diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/populate-me.gemspec b/populate-me.gemspec
index abc1234..def5678 100644
--- a/populate-me.gemspec
+++ b/populate-me.gemspec
@@ -1,20 +1,21 @@-require_relative './lib/populate_me/version'
+require_relative 'lib/populate_me/version'
Gem::Specification.new do |s|
- s.name = 'populate-me'
- s.version =... | Update the gemspec a bit
|
diff --git a/roles/cassandra_datanode.rb b/roles/cassandra_datanode.rb
index abc1234..def5678 100644
--- a/roles/cassandra_datanode.rb
+++ b/roles/cassandra_datanode.rb
@@ -11,7 +11,6 @@ cassandra::autoconf
cassandra::server
cassandra::jna_support
- cassandra::iptables
]
# Attributes applied if the node ... | Revert iptables addition for now...not working.
|
diff --git a/lib/vagrant/cli.rb b/lib/vagrant/cli.rb
index abc1234..def5678 100644
--- a/lib/vagrant/cli.rb
+++ b/lib/vagrant/cli.rb
@@ -1,3 +1,5 @@+require 'optparse'
+
module Vagrant
# Manages the command line interface to Vagrant.
class CLI < Command::Base
@@ -15,7 +17,26 @@ :prefix => fa... | Print help and exit on "-h"
|
diff --git a/config/initializers/browse_everything.rb b/config/initializers/browse_everything.rb
index abc1234..def5678 100644
--- a/config/initializers/browse_everything.rb
+++ b/config/initializers/browse_everything.rb
@@ -5,7 +5,7 @@ }
elsif Settings.dropbox.path =~ %r{^s3://}
obj = FileLocator::S3File.new(Set... | Add config key required for newer browse-everything
|
diff --git a/lib/simple_pusher.rb b/lib/simple_pusher.rb
index abc1234..def5678 100644
--- a/lib/simple_pusher.rb
+++ b/lib/simple_pusher.rb
@@ -3,6 +3,12 @@ require 'simple_pusher/engine' if defined?(Rails)
module SimplePusher
+ autoload :Configuration, 'simple_pusher/configuration'
+ autoload :Connection, 'si... | Move autoload into SimplePusher module inside. |
diff --git a/providers/common.rb b/providers/common.rb
index abc1234..def5678 100644
--- a/providers/common.rb
+++ b/providers/common.rb
@@ -8,6 +8,12 @@ action :create
gid new_resource.group
end
+ end
+
+ directory new_resource.path do
+ action :create
+ owner new_resource.owner
+ group ne... | Set up directory for checkout with proper perms
|
diff --git a/lib/active_admin/ajax_filter.rb b/lib/active_admin/ajax_filter.rb
index abc1234..def5678 100644
--- a/lib/active_admin/ajax_filter.rb
+++ b/lib/active_admin/ajax_filter.rb
@@ -15,8 +15,10 @@ dsl.instance_eval do
collection_action :filter, method: :get do
scope = collection.r... | Apply decorator before calling to_json
|
diff --git a/lib/active_force/association.rb b/lib/active_force/association.rb
index abc1234..def5678 100644
--- a/lib/active_force/association.rb
+++ b/lib/active_force/association.rb
@@ -29,7 +29,7 @@
def belongs_to relation_name, options = {}
model = options[:model] || relation_model(relation_name)
... | Add foreing key option in belongs_to |
diff --git a/lib/opal/parser/with_c_lexer.rb b/lib/opal/parser/with_c_lexer.rb
index abc1234..def5678 100644
--- a/lib/opal/parser/with_c_lexer.rb
+++ b/lib/opal/parser/with_c_lexer.rb
@@ -1,9 +1,10 @@ # frozen_string_literal: true
+# There's no compatible c_lexer for parser 3.0.0.0 at this point...
begin
require... | Hide the "Failed to load WithCLexer, using pure Ruby lexer" warning.
The rationale behind this is that we don't have a matching c_lexer for
parser 3.0.0.0 and this warning can be misleading. It isn't code removal,
as we may want to reenable this warning once c_lexer becomes compatible.
|
diff --git a/features/step_definitions/setup_steps.rb b/features/step_definitions/setup_steps.rb
index abc1234..def5678 100644
--- a/features/step_definitions/setup_steps.rb
+++ b/features/step_definitions/setup_steps.rb
@@ -1,5 +1,7 @@ Given /^the application is set up$/ do
# Using smackaho.st to give us automatic ... | Add note about smackaho.st use in Cucumber features.
|
diff --git a/arm-none-eabi-gcc.rb b/arm-none-eabi-gcc.rb
index abc1234..def5678 100644
--- a/arm-none-eabi-gcc.rb
+++ b/arm-none-eabi-gcc.rb
@@ -3,10 +3,10 @@ class ArmNoneEabiGcc < Formula
homepage 'https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads'
- version '6-2016-q4-update'
+ version '6-2... | Update ARM gcc to `6-2017-q1-update`
|
diff --git a/nio4r.gemspec b/nio4r.gemspec
index abc1234..def5678 100644
--- a/nio4r.gemspec
+++ b/nio4r.gemspec
@@ -5,7 +5,7 @@ gem.authors = ["Tony Arcieri"]
gem.email = ["tony.arcieri@gmail.com"]
gem.description = "New IO for Ruby"
- gem.summary = "NIO exposes a set of high performance... | Disable native extension on JRuby
|
diff --git a/lib/rails_admin_tag_list/engine.rb b/lib/rails_admin_tag_list/engine.rb
index abc1234..def5678 100644
--- a/lib/rails_admin_tag_list/engine.rb
+++ b/lib/rails_admin_tag_list/engine.rb
@@ -1,4 +1,9 @@ module RailsAdminTagList
class Engine < ::Rails::Engine
+ initializer 'rails_admin_rag_list.action_co... | Include view helper module on initialization
|
diff --git a/lib/fezzik.rb b/lib/fezzik.rb
index abc1234..def5678 100644
--- a/lib/fezzik.rb
+++ b/lib/fezzik.rb
@@ -13,7 +13,7 @@ Rake::Task["fezzik:#{task}"].invoke
end
puts "[success]".green
- rescue SystemExit => e
+ rescue SystemExit, Rake::CommandFailedError => e
puts "[fail]".r... | Add support for catching errors from bin/run_app.sh to avoid dumping a stack trace.
|
diff --git a/spec/geezeo_spec.rb b/spec/geezeo_spec.rb
index abc1234..def5678 100644
--- a/spec/geezeo_spec.rb
+++ b/spec/geezeo_spec.rb
@@ -2,13 +2,18 @@
describe "Geezeo accounts" do
before(:each) do
- @client = Geezeo.client(credentials["api_key"], credentials["user_id"])
+ @geezeo = Geezeo.client(credent... | Add second test 'it gets the sum of allaccount balances'
|
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index abc1234..def5678 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -12,7 +12,7 @@ rescue LoadError
nil
end
-
+Usable.logger.level = 0
RSpec.configure do |config|
config.raise_errors_for_deprecations!
# config.filter_run focus: true
| Set logger level to debug for tests
|
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index abc1234..def5678 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -8,10 +8,10 @@ end
require 'rspec'
-lib = File.expand_path('../ruby', File.dirname(__FILE__))
-unless $LOAD_PATH.include? lib
- $LOAD_PATH.unshift lib
-end
+ext = File.expand_p... | Adjust spec helper to account for new directory structure
Broken since 8ec8f73.
|
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index abc1234..def5678 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -26,4 +26,4 @@
component_name = "ahn_queue"
-AHN_QUEUE = ComponentTester.new(component_name, File.dirname(__FILE__) + "/../..", "/#{component_name}/lib/#{component_name}.rb")
+... | Fix path to tested component |
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index abc1234..def5678 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,13 +1,15 @@ require 'pathname'
require 'rubygems'
-gem 'dm-core', '0.10.0'
-gem 'dm-validations', '0.10.0'
-
+gem 'dm-core', '0.10.0'
require 'dm-core'
-require 'dm-v... | [dm-more] Use the local dm-validations gem in specs if available
|
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index abc1234..def5678 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -20,7 +20,7 @@ end
RYODO_SPEC_ROOT = File.expand_path("..", __FILE__)
-RYODO_TMP_ROOT = File.expand_path("../../tmp", __FILE__)
+RYODO_TMP_ROOT = File.expand_path("../../tmp/s... | Modify ryodo temp spec folder |
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index abc1234..def5678 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,5 +1,3 @@-$:.unshift File.expand_path("../lib", __dir__)
-$:.unshift File.expand_path("..", __dir__)
require "mixlib/shellout"
require "tmpdir"
| Remove the path shifts in the spec helper
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
|
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index abc1234..def5678 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,7 +1,10 @@-begin
- require "coveralls"
- Coveralls.wear!
-rescue LoadError
+# Send coveralls report on one job per build only
+ENV["TRAVIS_JOB_NUMBER"].to_s.end_with?(".1")
+ ... | Send coveralls report on one job per build only
|
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index abc1234..def5678 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -34,8 +34,14 @@ end
config.before :suite do
- DatabaseCleaner.strategy = :truncation
- DatabaseCleaner.clean
+ DatabaseCleaner.strategy = :transaction
+ ... | Clean database while testing more frequently
|
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index abc1234..def5678 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -2,6 +2,9 @@ require 'neo-tmdb'
require 'webmock/rspec'
require 'vcr'
+
+# Allow VCR to process real HTTP requests.
+WebMock.allow_net_connect!
VCR.configure do |config|
co... | Make WebMock allow network connections
|
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index abc1234..def5678 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -7,6 +7,12 @@
Dir["#{path}/spec/support/*.rb"].each {|file| require file}
+# Set default env parameters to prevent CI failing on pull requests
+ENV['UPS_LICENSE_NUMBER'] = '' u... | Set default env parameters to prevent CI failing on pull requests
|
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index abc1234..def5678 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -26,6 +26,8 @@
RSpec.configure do |config|
config.include Factory::Syntax::Methods
+ config.include EmailSpec::Helpers, type: :mailer
+ config.include EmailSpec::Matchers, t... | Add mail matchers to rspec.
|
diff --git a/spec/support/vcr.rb b/spec/support/vcr.rb
index abc1234..def5678 100644
--- a/spec/support/vcr.rb
+++ b/spec/support/vcr.rb
@@ -4,7 +4,10 @@ c.cassette_library_dir = 'spec/fixtures/cassettes'
c.hook_into :faraday
c.configure_rspec_metadata!
- c.default_cassette_options = { :record => :once }
+ c.... | Work around Faraday 0.9 changing param ordering, for tests
Should close #35
|
diff --git a/lib/asteroids/componenets/game_object.rb b/lib/asteroids/componenets/game_object.rb
index abc1234..def5678 100644
--- a/lib/asteroids/componenets/game_object.rb
+++ b/lib/asteroids/componenets/game_object.rb
@@ -27,5 +27,11 @@ @removable = true
end
+ protected
+
+ def object_pool
+ ... | Add method to game object class to return object pool.
|
diff --git a/ooxml_parser.gemspec b/ooxml_parser.gemspec
index abc1234..def5678 100644
--- a/ooxml_parser.gemspec
+++ b/ooxml_parser.gemspec
@@ -9,19 +9,7 @@ s.summary = 'OoxmlParser Gem'
s.description = 'Parse OOXML files (docx, xlsx, pptx)'
s.email = ['shockwavenn@gmail.com', 'rzagudaev@gmail.com']
- s.files... | Simplify expression for list of files in gemspec
Also solve problem with building gem with names with space in `spec` folder
|
diff --git a/lib/minfraud/components/shopping_cart.rb b/lib/minfraud/components/shopping_cart.rb
index abc1234..def5678 100644
--- a/lib/minfraud/components/shopping_cart.rb
+++ b/lib/minfraud/components/shopping_cart.rb
@@ -8,8 +8,11 @@ # @return [Array<Minfraud::Components::ShoppingCartItem>]
attr_access... | Correct shopping cart constructor type
|
diff --git a/guides/check_typo.rb b/guides/check_typo.rb
index abc1234..def5678 100644
--- a/guides/check_typo.rb
+++ b/guides/check_typo.rb
@@ -9,5 +9,5 @@ ARGF.each do |line|
print ARGF.file.path, " ",
ARGF.file.lineno, ":",
- line if line.gsub!(/([へにおはがでな])\1/, '[[\&]]')
+ line if line.gsub!(/([へにおはがでな... | Use UTF-8 for for checking typo
|
diff --git a/cookbooks/lib/features/mysql_spec.rb b/cookbooks/lib/features/mysql_spec.rb
index abc1234..def5678 100644
--- a/cookbooks/lib/features/mysql_spec.rb
+++ b/cookbooks/lib/features/mysql_spec.rb
@@ -26,7 +26,7 @@ root
travis
).each do |mysql_user|
- describe command(%(mysql -u #{mysql_u... | Add a missing `-e` :facepalm:
|
diff --git a/cookbooks/toolkit/recipes/default.rb b/cookbooks/toolkit/recipes/default.rb
index abc1234..def5678 100644
--- a/cookbooks/toolkit/recipes/default.rb
+++ b/cookbooks/toolkit/recipes/default.rb
@@ -30,8 +30,24 @@ repo "https://github.com/cyclestreets/toolkit.git"
revision "master"
user "www-data"
+ ... | Use bundle to install all the gems
|
diff --git a/pseudo_model.gemspec b/pseudo_model.gemspec
index abc1234..def5678 100644
--- a/pseudo_model.gemspec
+++ b/pseudo_model.gemspec
@@ -16,4 +16,6 @@ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_path... | Add ActiveModel as a gem dependency. |
diff --git a/lib/action_tracker.rb b/lib/action_tracker.rb
index abc1234..def5678 100644
--- a/lib/action_tracker.rb
+++ b/lib/action_tracker.rb
@@ -9,6 +9,6 @@ module ActionTracker
if defined?(Rails)
require 'action_tracker/engine'
- ActiveSupport.on_load(:action_controller) { include ActionTracker::Concern... | Change to work on rails 5.0 |
diff --git a/lib/bootstrap-sass.rb b/lib/bootstrap-sass.rb
index abc1234..def5678 100644
--- a/lib/bootstrap-sass.rb
+++ b/lib/bootstrap-sass.rb
@@ -17,6 +17,8 @@ else
raise Bootstrap::FrameworkNotFound, "bootstrap-sass requires either Rails > 3.1 or Compass, neither of which are loaded"
end
+ styles... | Add Sass.load_paths entry to help absolute @import paths
Nice feature added in Sass 2.3 - see nex3/sass@5c93cbfe
This should resolve thomas-mcdonald/bootstrap-sass#259 better than making users manually adding a load_paths entry.
|
diff --git a/lib/puppet/type/php_extension.rb b/lib/puppet/type/php_extension.rb
index abc1234..def5678 100644
--- a/lib/puppet/type/php_extension.rb
+++ b/lib/puppet/type/php_extension.rb
@@ -17,8 +17,23 @@ isnamevar
end
+ newparam(:extension) do
+ end
+
newparam(:version) do
defaultto '>= 0'
end... | Add extra params to extension type
|
diff --git a/lib/lurker/plugins.rb b/lib/lurker/plugins.rb
index abc1234..def5678 100644
--- a/lib/lurker/plugins.rb
+++ b/lib/lurker/plugins.rb
@@ -1,5 +1,6 @@ module Lurker
module Plugins
+ # @TODO Save and load this stuff from a YAML file
def plugins
@plugins ||= {
:Logger => true,
| Load plugin information from file
|
diff --git a/Formula/xdebug.rb b/Formula/xdebug.rb
index abc1234..def5678 100644
--- a/Formula/xdebug.rb
+++ b/Formula/xdebug.rb
@@ -7,6 +7,9 @@
def install
Dir.chdir 'xdebug-2.0.5' do
+ # See http://github.com/mxcl/homebrew/issues/#issue/69
+ ENV.universal_binary unless Hardware.is_64_bit?
+
... | Build a universal binary on Leopard
Fixes Homebrew/homebrew#69
|
diff --git a/lib/xommelier/xml/element/dsl.rb b/lib/xommelier/xml/element/dsl.rb
index abc1234..def5678 100644
--- a/lib/xommelier/xml/element/dsl.rb
+++ b/lib/xommelier/xml/element/dsl.rb
@@ -20,16 +20,16 @@
private
- def define_text_accessors
- define_method(:text) { read_text ... | Make element, attribute and text accessors getters | setters without or with value sent as first parameter
|
diff --git a/lib/qb/role/errors.rb b/lib/qb/role/errors.rb
index abc1234..def5678 100644
--- a/lib/qb/role/errors.rb
+++ b/lib/qb/role/errors.rb
@@ -1,3 +1,13 @@+# Refinements
+# =======================================================================
+
+require 'nrser/refinements'
+using NRSER
+
+
+# Definitions
+# ===... | Make an error message nicer using binding.erb
|
diff --git a/lib/rubycritic/cli.rb b/lib/rubycritic/cli.rb
index abc1234..def5678 100644
--- a/lib/rubycritic/cli.rb
+++ b/lib/rubycritic/cli.rb
@@ -19,7 +19,7 @@ end.parse!
ARGV << "." if ARGV.empty?
- Rubycritic.new.critique(ARGV)
+ puts "New critique at #{Rubycritic.new.critique(ARGV)}"
exit 0
end
| Print the href of the smells index page after running
|
diff --git a/lib/schreihals/app.rb b/lib/schreihals/app.rb
index abc1234..def5678 100644
--- a/lib/schreihals/app.rb
+++ b/lib/schreihals/app.rb
@@ -25,7 +25,7 @@ end
def render_page(slug)
- if @post = Post.with_slug(slug)
+ if @post = Post.where(slugs: slug).first
haml :post
else
... | Fix rendering of individual posts. |
diff --git a/quickeebooks.gemspec b/quickeebooks.gemspec
index abc1234..def5678 100644
--- a/quickeebooks.gemspec
+++ b/quickeebooks.gemspec
@@ -21,7 +21,6 @@
gem.add_development_dependency 'rake'
gem.add_development_dependency 'simplecov'
- gem.add_development_dependency 'rr', '~> 1.0.2'
gem.add_develop... | Remove RR as a dependency
We should not have dependencies in the gemspec that are not being used
anywhere even if they are development dependencies.
|
diff --git a/lib/tasks/errors.rake b/lib/tasks/errors.rake
index abc1234..def5678 100644
--- a/lib/tasks/errors.rake
+++ b/lib/tasks/errors.rake
@@ -19,6 +19,10 @@ def asset_data(path)
File.read(Rails.root.join('app', 'assets', 'images', path))
end
+
+ def home_page?
+ false
+ end... | Add home_page? method to error view context
THe header partial now uses the home_page? method to decide whether to
make the site name a link or not so we need to add that to our context.
https://www.pivotaltracker.com/story/show/99040670
|
diff --git a/lib/tasks/resque.rake b/lib/tasks/resque.rake
index abc1234..def5678 100644
--- a/lib/tasks/resque.rake
+++ b/lib/tasks/resque.rake
@@ -11,7 +11,7 @@ require Rails.root.join('config/environment')
end
- # Close DB connections before forking a worker.
+ # Close DB connections. No need for processe... | Update comment in Resque Pool rake task to clarify
|
diff --git a/spec/heidi_spec.rb b/spec/heidi_spec.rb
index abc1234..def5678 100644
--- a/spec/heidi_spec.rb
+++ b/spec/heidi_spec.rb
@@ -3,6 +3,10 @@ describe Heidi do
before(:all) do
fake_me_a_heidi
+ end
+
+ after(:all) do
+ FileUtils.remove_entry_secure @fake
end
it "should gather projects on lo... | Remove fake heidi when done
|
diff --git a/spec/support/db.rb b/spec/support/db.rb
index abc1234..def5678 100644
--- a/spec/support/db.rb
+++ b/spec/support/db.rb
@@ -1,3 +1,9 @@+ActiveRecord::Base.connection.tables.each do |t|
+ ActiveRecord::Base.connection.foreign_keys(t).each do |fk|
+ ActiveRecord::Base.connection.remove_foreign_key t, fk.... | Fix specs repetition with MySQL
|
diff --git a/spec/users_spec.rb b/spec/users_spec.rb
index abc1234..def5678 100644
--- a/spec/users_spec.rb
+++ b/spec/users_spec.rb
@@ -0,0 +1,42 @@+require 'spec_helper'
+
+describe "gitlab::users" do
+ let(:chef_run) { ChefSpec::Runner.new.converge("gitlab::users") }
+
+
+ describe "under ubuntu" do
+ ["12.04",... | Add a users recipe spec.
|
diff --git a/smirk.gemspec b/smirk.gemspec
index abc1234..def5678 100644
--- a/smirk.gemspec
+++ b/smirk.gemspec
@@ -1,8 +1,8 @@ Gem::Specification.new do |s|
s.name = "smirk"
- s.version = "0.2.0"
+ s.version = "0.2.1"
s.authors = ["James Miller"]
- s.date = "2010-02-22"
+ s.date = "2010-05-18"
s.summary ... | Update date and bump to 0.2.1
|
diff --git a/lib/flintlock/cli.rb b/lib/flintlock/cli.rb
index abc1234..def5678 100644
--- a/lib/flintlock/cli.rb
+++ b/lib/flintlock/cli.rb
@@ -9,17 +9,18 @@ method_option :debug, :type => :boolean, :description => "enable debug output", :default => false
def deploy(uri, app_dir)
mod = get_module(uri, ... | Change CLI output a bit
|
diff --git a/lib/her/model/orm.rb b/lib/her/model/orm.rb
index abc1234..def5678 100644
--- a/lib/her/model/orm.rb
+++ b/lib/her/model/orm.rb
@@ -23,7 +23,7 @@ end # }}}
# Fetch a specific resource based on an ID
- def find(id) # {{{
+ def find(id, params={}) # {{{
request(params.merge(... | Fix missing params in ORM.find
|
diff --git a/app/models/lab.rb b/app/models/lab.rb
index abc1234..def5678 100644
--- a/app/models/lab.rb
+++ b/app/models/lab.rb
@@ -3,7 +3,7 @@ belongs_to :lab_description
# Returns all labs for given group
- def self.find_by_group(group_íd)
+ def self.find_by_group(group_id)
end
end
| Remove strange char from code
|
diff --git a/lib/typhoeus/pool.rb b/lib/typhoeus/pool.rb
index abc1234..def5678 100644
--- a/lib/typhoeus/pool.rb
+++ b/lib/typhoeus/pool.rb
@@ -18,10 +18,8 @@ # @example Release easy.
# hydra.release_easy(easy)
def release(easy)
- @mutex.synchronize do
- easy.reset
- easies << easy
-... | Synchronize Typhoeus::Pool.clear and small improvements.
|
diff --git a/libraries/helpers.rb b/libraries/helpers.rb
index abc1234..def5678 100644
--- a/libraries/helpers.rb
+++ b/libraries/helpers.rb
@@ -0,0 +1,63 @@+# Copyright (c) 2013, Rackspace Hosting
+
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated docum... | Add hepler library for templates.
The margarine.ini template uses a uri helper function to simplify
creation of the URIs in that file.
|
diff --git a/test/tests.rb b/test/tests.rb
index abc1234..def5678 100644
--- a/test/tests.rb
+++ b/test/tests.rb
@@ -7,17 +7,17 @@ $: << File.join($oj_dir, dir)
end
-require 'test_strict'
-require 'test_null'
require 'test_compat'
-require 'test_object'
require 'test_custom'
-require 'test_writer'
require 'test... | Order required test files by there name
"test/tests.rb" is a file which runs other test files.
Ordering required test files helps us to detect wihich
files are loaded.
|
diff --git a/cancancan.gemspec b/cancancan.gemspec
index abc1234..def5678 100644
--- a/cancancan.gemspec
+++ b/cancancan.gemspec
@@ -15,7 +15,9 @@ s.license = "MIT"
s.files = Dir["{lib,spec}/**/*", "[A-Z]*", "init.rb"] - ["Gemfile.lock"]
- s.require_path = "lib"
+ s.require_paths = ["lib"]
+ s.requ... | Update gem spec with more modern configs. |
diff --git a/app/helpers/charities_helper.rb b/app/helpers/charities_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/charities_helper.rb
+++ b/app/helpers/charities_helper.rb
@@ -1,2 +1,35 @@ module CharitiesHelper
+ def initialize
+ @account_name = account_name
+ @api_key = api_key
+ end
+
+ def hel... | Add api code from the volunteermatch git hub
|
diff --git a/fabrication.gemspec b/fabrication.gemspec
index abc1234..def5678 100644
--- a/fabrication.gemspec
+++ b/fabrication.gemspec
@@ -29,6 +29,6 @@ s.add_development_dependency("sequel")
s.add_development_dependency("sqlite3")
- s.files = Dir.glob("{lib,spec}/**/*") + %w(LICENSE README.markdown Rakefile)... | Remove spec folder from distributed gem
|
diff --git a/chef-zero.gemspec b/chef-zero.gemspec
index abc1234..def5678 100644
--- a/chef-zero.gemspec
+++ b/chef-zero.gemspec
@@ -6,8 +6,8 @@ s.version = ChefZero::VERSION
s.summary = "Self-contained, easy-setup, fast-start in-memory Chef server for testing and solo setup purposes"
s.description = s.summary
... | Update the gem owner to be Chef
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
|
diff --git a/app/models/contentful_client.rb b/app/models/contentful_client.rb
index abc1234..def5678 100644
--- a/app/models/contentful_client.rb
+++ b/app/models/contentful_client.rb
@@ -12,6 +12,6 @@ end
def carousel_items
- @client.entries('content_type' => '5AYS9ZskFiUiYCc8owESc', 'order' => 'sys.created... | Use proper hash syntax for carousel items
|
diff --git a/app/models/country_statistic.rb b/app/models/country_statistic.rb
index abc1234..def5678 100644
--- a/app/models/country_statistic.rb
+++ b/app/models/country_statistic.rb
@@ -29,6 +29,7 @@ (overseas_total_protected_marine_area / overseas_total_marine_area) * 100
end
+ # TODO Need confirmation re... | Add comment that calculation needs to be confirmed
|
diff --git a/app/models/variant_decorator.rb b/app/models/variant_decorator.rb
index abc1234..def5678 100644
--- a/app/models/variant_decorator.rb
+++ b/app/models/variant_decorator.rb
@@ -4,6 +4,6 @@ before_save :set_or_update_initial_count
def set_or_update_initial_count
- initial_count_on_hand = [initial_c... | Make sure comparision is possible.
|
diff --git a/test/unit/i_base_info_test.rb b/test/unit/i_base_info_test.rb
index abc1234..def5678 100644
--- a/test/unit/i_base_info_test.rb
+++ b/test/unit/i_base_info_test.rb
@@ -1,11 +1,11 @@ require File.expand_path('../test_helper.rb', File.dirname(__FILE__))
-describe GirFFI::IBaseInfo do
+describe GObjectIntro... | Fix namespace of IBaseInfo in merged test.
|
diff --git a/config/schedule.rb b/config/schedule.rb
index abc1234..def5678 100644
--- a/config/schedule.rb
+++ b/config/schedule.rb
@@ -21,4 +21,5 @@
every 5.minutes do
runner "MailboxReader.process_all_mailboxes"
+ env :MAILTO, 'cyclescape-errors@cyclestreets.net'
end
| Send cron emails to a third-party address.
This means they might get noticed, and also saves filling the database with emails, especially
when the emails are regarding emails not being processed.
Fixes https://github.com/cyclestreets/toolkit-chef/issues/13
|
diff --git a/app/uploaders/asset_uploader.rb b/app/uploaders/asset_uploader.rb
index abc1234..def5678 100644
--- a/app/uploaders/asset_uploader.rb
+++ b/app/uploaders/asset_uploader.rb
@@ -7,7 +7,7 @@ def store_dir
id = model.id.to_s
path = id.scan(/\d{2}/)[0..1].join("/")
- "#{Rails.root}/uploads/assets... | Use GOVUK_APP_ROOT rather than Rails.root to find out the working dir
When referring to files, it's better if we use the
environment-provided variables instead of letting Rails try to work
out it out.
|
diff --git a/app/models/contestant.rb b/app/models/contestant.rb
index abc1234..def5678 100644
--- a/app/models/contestant.rb
+++ b/app/models/contestant.rb
@@ -28,4 +28,19 @@ validates :mentoring_teacher_first_name, presence: true
validates :mentoring_teacher_last_name, presence: true
+ def first_name
+ use... | Make things pretty in rails admin
|
diff --git a/app/models/featurable.rb b/app/models/featurable.rb
index abc1234..def5678 100644
--- a/app/models/featurable.rb
+++ b/app/models/featurable.rb
@@ -9,7 +9,8 @@ feature_lists.find_by(locale: locale) || feature_lists.build(locale: locale)
end
- def load_or_create_feature_list(locale)
- feature_l... | Fix the remaining cucumber tests
params[:locale] is blank when the /features path
is requested without a locale suffix. This was
causing a validation error when creating the
feature list and the view was failing to render
because the path helper was missing a
feature_list_id param. |
diff --git a/AttributedLib.podspec b/AttributedLib.podspec
index abc1234..def5678 100644
--- a/AttributedLib.podspec
+++ b/AttributedLib.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |s|
s.name = 'AttributedLib'
- s.version = '2.2.0'
+ s.version = '2.2.1'
s.summary = 'Modern Sw... | Update podspec for release 2.2.1
|
diff --git a/Casks/micro-snitch.rb b/Casks/micro-snitch.rb
index abc1234..def5678 100644
--- a/Casks/micro-snitch.rb
+++ b/Casks/micro-snitch.rb
@@ -6,5 +6,20 @@ name 'Micro Snitch'
homepage 'https://www.obdev.at/products/microsnitch/index.html'
+ auto_updates true
+ depends_on macos: '>= :el_capitan'
+
app... | Add auto_updates, depends_on, uninstall and zap |
diff --git a/Casks/screenmailer.rb b/Casks/screenmailer.rb
index abc1234..def5678 100644
--- a/Casks/screenmailer.rb
+++ b/Casks/screenmailer.rb
@@ -2,10 +2,10 @@ version :latest
sha256 :no_check
- url 'http://www.screenmailer.com/download'
- appcast 'http://www.screenmailer.com/releases/current/releases.xml'
... | Fix url, appcast and homepage to use SSL in Screenmailer Cask
The new url is from the appcast entry.
The HTTP URL is already getting redirected to HTTPS. Using the HTTPS URL directly
makes it more secure and saves a HTTP round-trip.
|
diff --git a/test/test_quill_builder_html.rb b/test/test_quill_builder_html.rb
index abc1234..def5678 100644
--- a/test/test_quill_builder_html.rb
+++ b/test/test_quill_builder_html.rb
@@ -0,0 +1,37 @@+require 'helper'
+require 'quill/builder/html'
+
+class Quill::Builder::HTML::Test < Test::Unit::TestCase
+ def test_... | Add tests, test_convert_text_only and test_convert_inline_only
|
diff --git a/lib/origen/core_ext/bignum.rb b/lib/origen/core_ext/bignum.rb
index abc1234..def5678 100644
--- a/lib/origen/core_ext/bignum.rb
+++ b/lib/origen/core_ext/bignum.rb
@@ -1,36 +1,38 @@-class Bignum
- # Extend Fixnum to enable 10.cycles
- def cycles
- if block_given?
- times do
- yield
- ... | Patch for Ruby 2.4.0 compatibility
|
diff --git a/lib/stack_master/validator.rb b/lib/stack_master/validator.rb
index abc1234..def5678 100644
--- a/lib/stack_master/validator.rb
+++ b/lib/stack_master/validator.rb
@@ -11,9 +11,10 @@ template_body = TemplateCompiler.compile(@stack_definition.template_file_path)
cf.validate_template(template_bo... | Return false when validation fails
|
diff --git a/traut.gemspec b/traut.gemspec
index abc1234..def5678 100644
--- a/traut.gemspec
+++ b/traut.gemspec
@@ -7,7 +7,7 @@ s.version = Traut::VERSION
s.authors = ["Brian L. Troutwine"]
s.email = ["brian.troutwine@carepilot.com"]
- s.homepage = ""
+ s.homepage = "https://github.com/Ca... | Include homepage value, points to GitHub project.
Signed-off-by: Brian L. Troutwine <760e7dab2836853c63805033e514668301fa9c47@troutwine.us>
|
diff --git a/.chef/knife.rb b/.chef/knife.rb
index abc1234..def5678 100644
--- a/.chef/knife.rb
+++ b/.chef/knife.rb
@@ -18,5 +18,5 @@ knife[:aws_ssh_key_id] = ENV['USER']
knife[:region] = "us-east-1"
knife[:flavor] = "m1.medium"
-knife[:image] = "ami-7ce17315" # ... | Downgrade the Debian AMI to 6.0.6
The new Debian image is missing ca-certificates package, and
thus downloading the omnibus installer with SSL fails.
|
diff --git a/lib/vmdb/permission_stores.rb b/lib/vmdb/permission_stores.rb
index abc1234..def5678 100644
--- a/lib/vmdb/permission_stores.rb
+++ b/lib/vmdb/permission_stores.rb
@@ -3,10 +3,10 @@ module Vmdb
class PermissionStores
def self.instance
- @instance ||= new(blacklist)
+ @instance ||= new(uns... | Rename term to unsupported for clarity
|
diff --git a/lib/hermes.rb b/lib/hermes.rb
index abc1234..def5678 100644
--- a/lib/hermes.rb
+++ b/lib/hermes.rb
@@ -1,6 +1,8 @@ require "hermes/version"
require 'thor'
require 'plist'
+
+require 'hermes/deploy'
module Hermes
@@ -9,15 +11,15 @@ desc "check", "will check if everything necessary for building e... | Update the CLI to use a plist as the sole argument
|
diff --git a/topaz_test_case.rb b/topaz_test_case.rb
index abc1234..def5678 100644
--- a/topaz_test_case.rb
+++ b/topaz_test_case.rb
@@ -1,15 +1,21 @@ #!/usr/bin/ruby
-require 'test/unit'
require 'topaz'
require 'stone'
+require 'test/unit'
require 'rake'
include FileUtils
+TEST_STONE_NAME = 'testcase'
+
cla... | Make testcase just a bit more failproof
|
diff --git a/lesson11/imagine.rb b/lesson11/imagine.rb
index abc1234..def5678 100644
--- a/lesson11/imagine.rb
+++ b/lesson11/imagine.rb
@@ -0,0 +1,12 @@+# Lesson 11 - Rhythm 4 - 'Split Chord'
+# Imagine - The Beatles
+eval(
+ IO.read("#{Dir.home}/ruby/pianoforall/lesson11/split_chord.rb"),
+ binding
+)
+
+use_synth ... | Add Imagine and finish off Lesson 11
|
diff --git a/valid.gemspec b/valid.gemspec
index abc1234..def5678 100644
--- a/valid.gemspec
+++ b/valid.gemspec
@@ -3,11 +3,11 @@
Gem::Specification.new do |s|
s.name = 'valid'
- s.version = '0.1.1'
+ s.version = '0.1.2'
s.authors = ['Jeremy Bush']
s.email = ['contractfrombelow@gmail.com']
s.summary = ... | Add proper homepage in gemspec
|
diff --git a/lib/gds_api/base.rb b/lib/gds_api/base.rb
index abc1234..def5678 100644
--- a/lib/gds_api/base.rb
+++ b/lib/gds_api/base.rb
@@ -21,7 +21,7 @@ :post_json, :post_json!,
:put_json, :put_json!,
:delete_json!,
- ... | Add post_multipart to the delegated methods list |
diff --git a/lib/hightops/cli.rb b/lib/hightops/cli.rb
index abc1234..def5678 100644
--- a/lib/hightops/cli.rb
+++ b/lib/hightops/cli.rb
@@ -15,6 +15,13 @@ load_environment
setup
start_runner(workers)
+ end
+
+ desc 'bootstrap FirstWorker,SecondWorker, ... ,NthWorker', 'Bootstrap workers'
+ ... | Add bootstrap task for CLI
|
diff --git a/level_1/short_circuit_evaluation/game.rb b/level_1/short_circuit_evaluation/game.rb
index abc1234..def5678 100644
--- a/level_1/short_circuit_evaluation/game.rb
+++ b/level_1/short_circuit_evaluation/game.rb
@@ -0,0 +1,15 @@+# Short-Circuit Evaluation
+# Using Short-Circuit Evaluation can clean up your cod... | Add new problem to be solved using short circuit evaluations
|
diff --git a/lib/rack_tracker.rb b/lib/rack_tracker.rb
index abc1234..def5678 100644
--- a/lib/rack_tracker.rb
+++ b/lib/rack_tracker.rb
@@ -17,7 +17,7 @@
def self.plugins
included_plugins.collect do |plugin|
- plugin.to_s.split('::').last.downcase
+ plugin.to_s.split('::').last.underscore
... | Make sure that plugins lists doesn't mangle plugin names
|
diff --git a/lib/samuel/drivers/net_http_log_entry.rb b/lib/samuel/drivers/net_http_log_entry.rb
index abc1234..def5678 100644
--- a/lib/samuel/drivers/net_http_log_entry.rb
+++ b/lib/samuel/drivers/net_http_log_entry.rb
@@ -34,8 +34,9 @@ end
def error?
- error_classes = [Exception, Net::HTTPClientError... | Check classes using strings, so this file can be safely required when Net::HTTP isn't loaded
|
diff --git a/lib/subway/utils.rb b/lib/subway/utils.rb
index abc1234..def5678 100644
--- a/lib/subway/utils.rb
+++ b/lib/subway/utils.rb
@@ -1,7 +1,9 @@ module Subway
module Utils
- def self.require_pattern(root, pattern)
+ extend self
+
+ def require_pattern(root, pattern)
Dir[root.join(pattern)].... | Support including/extending the Utils module
|
diff --git a/config/initializers/settings.rb b/config/initializers/settings.rb
index abc1234..def5678 100644
--- a/config/initializers/settings.rb
+++ b/config/initializers/settings.rb
@@ -6,7 +6,7 @@ include Singleton
class << self
- def respond_to?(method, include_private = false)
+ def respond_to?(metho... | Use keyword arguments for boolean with default value
|
diff --git a/modules/users/spec/classes/users_spec.rb b/modules/users/spec/classes/users_spec.rb
index abc1234..def5678 100644
--- a/modules/users/spec/classes/users_spec.rb
+++ b/modules/users/spec/classes/users_spec.rb
@@ -0,0 +1,21 @@+require_relative '../../../../spec_helper'
+
+# get the list of groups
+def class_... | Test that all included users have manifests
This is to make the task of removing users who have left easier. Instead of
having ensure absent, we should just remove their manifest and remove it from
any groups that include them.
|
diff --git a/queue/broadcaster.rb b/queue/broadcaster.rb
index abc1234..def5678 100644
--- a/queue/broadcaster.rb
+++ b/queue/broadcaster.rb
@@ -2,7 +2,7 @@ require_relative 'lib/file-queue'
require 'ezmq'
-publisher = EZMQ::Publisher.new port: 5557#, topic: 'busy-queues'
+publisher = EZMQ::Publisher.new port: 5557
... | Comment removed, no longer supported by ezmq
|
diff --git a/maruku_gem.rb b/maruku_gem.rb
index abc1234..def5678 100644
--- a/maruku_gem.rb
+++ b/maruku_gem.rb
@@ -11,8 +11,8 @@ }
s.files = Dir['lib/**/*.rb'] + Dir['lib/*.rb'] +
Dir['docs/*.md'] + Dir['docs/*.html'] +
- Dir['tests/**/*.md'] +
- Dir['bin/*'] + Dir['*.sh'] + ['Rakefile', 'maruku_gem.r... | Include the spec files in the gem.
|
diff --git a/mastermind.rb b/mastermind.rb
index abc1234..def5678 100644
--- a/mastermind.rb
+++ b/mastermind.rb
@@ -1,29 +1,49 @@ #Create a Game class
class Game
#Initialize a new game by setting up a board containing a random code
+
def initialize
- protected
@code = ""
4.times {@code += rand(6).to_... | Set up check_guess and feedback methods
|
diff --git a/money.gemspec b/money.gemspec
index abc1234..def5678 100644
--- a/money.gemspec
+++ b/money.gemspec
@@ -18,7 +18,7 @@ s.add_development_dependency("rspec", "~> 3.2")
s.add_development_dependency("database_cleaner", "~> 1.6")
s.add_development_dependency("sqlite3", "~> 1.3.6")
- s.add_development_d... | Use bigdecimal 1.4.x since 1.3.x is unsupported on 2.6
|
diff --git a/event_store-client-http.gemspec b/event_store-client-http.gemspec
index abc1234..def5678 100644
--- a/event_store-client-http.gemspec
+++ b/event_store-client-http.gemspec
@@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'event_store-client-http'
- s.version = '0.1.1.0'... | Package version is increased from 0.1.1.0 to 0.1.1.1
|
diff --git a/AFNetworking-Synchronous.podspec b/AFNetworking-Synchronous.podspec
index abc1234..def5678 100644
--- a/AFNetworking-Synchronous.podspec
+++ b/AFNetworking-Synchronous.podspec
@@ -10,7 +10,7 @@ s.license = 'MIT'
s.author = { "Paul Melnikow" => "github@paulmelnikow.com" }
s.source =... | Podspec: Use modern version tag (without v)
|
diff --git a/Coordinator.podspec b/Coordinator.podspec
index abc1234..def5678 100644
--- a/Coordinator.podspec
+++ b/Coordinator.podspec
@@ -7,6 +7,8 @@ s.license = { :type => "MIT", :file => "LICENSE" }
s.author = { 'Aleksandar Vacić' => 'radianttap.com' }
s.social_media_url = "https://twitter.... | Bring back damn deployment targets
|
diff --git a/resources/profile.rb b/resources/profile.rb
index abc1234..def5678 100644
--- a/resources/profile.rb
+++ b/resources/profile.rb
@@ -1,11 +1,38 @@+# encoding: UTF-8
+#
+# Cookbook Name:: system
+# Resource:: profile
+#
+# Copyright 2012-2015, Chris Fordham
+#
+# Licensed under the Apache License, Version 2.... | Add comment header and indent attribute definition params.
|
diff --git a/Casks/eagle.rb b/Casks/eagle.rb
index abc1234..def5678 100644
--- a/Casks/eagle.rb
+++ b/Casks/eagle.rb
@@ -1,6 +1,6 @@ cask :v1 => 'eagle' do
- version '7.1.0'
- sha256 '95a721bae751ea210fad390c9b414ec5e317332133072f08247b552e125ab2d5'
+ version '7.2.0'
+ sha256 '9cae311072d8be5a16631ce08d9e0653bdc21e... | Update Cadsoft Eagle.app to 7.2.0
|
diff --git a/Casks/franz.rb b/Casks/franz.rb
index abc1234..def5678 100644
--- a/Casks/franz.rb
+++ b/Casks/franz.rb
@@ -2,6 +2,7 @@ version '3.1.0'
sha256 '1789fb44c47fd25db123c8ad6142e24007901fa07a8494263c312dbab7708eb9'
+ # github.com/imprecision/franz-app was verified as official when first introduced to th... | Fix `url` stanza comment for Franz.
|
diff --git a/rspec-virtus.gemspec b/rspec-virtus.gemspec
index abc1234..def5678 100644
--- a/rspec-virtus.gemspec
+++ b/rspec-virtus.gemspec
@@ -19,4 +19,6 @@
gem.add_dependency "rspec", "~> 2.13"
gem.add_dependency "virtus", "~> 0.5"
+
+ gem.add_development_dependency "rake", "~> 10.0.0"
end
| Add Rake as a development dependency
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.