diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/validate_as_email.gemspec b/validate_as_email.gemspec
index abc1234..def5678 100644
--- a/validate_as_email.gemspec
+++ b/validate_as_email.gemspec
@@ -20,4 +20,6 @@ gem.add_development_dependency 'rspec-rails', '~> 2.11'
gem.add_development_dependency 'cucumber', '~> 1.2'
gem.add_development_depen... | Add activerecord to development dependencies
|
diff --git a/ropes.gemspec b/ropes.gemspec
index abc1234..def5678 100644
--- a/ropes.gemspec
+++ b/ropes.gemspec
@@ -23,4 +23,5 @@ spec.add_development_dependency "rake"
spec.add_dependency "debeasy"
spec.add_dependency "gpgme"
+ spec.add_dependency "arr-pm"
end
| Add arr-pm to gem dependencies
|
diff --git a/spec/lib/cli_spec.rb b/spec/lib/cli_spec.rb
index abc1234..def5678 100644
--- a/spec/lib/cli_spec.rb
+++ b/spec/lib/cli_spec.rb
@@ -24,6 +24,17 @@ end
end
+ describe 'given "--help"' do
+ it 'prints help text' do
+ out, err, env = build_command_support
+ expect(Kernel).to... | Add spec for `markdo --help`
|
diff --git a/db/migrate/014_move_to_innodb.rb b/db/migrate/014_move_to_innodb.rb
index abc1234..def5678 100644
--- a/db/migrate/014_move_to_innodb.rb
+++ b/db/migrate/014_move_to_innodb.rb
@@ -20,7 +20,7 @@ @@ver_tbl.each { |tbl|
add_column "current_#{tbl}", "version", :bigint, :limit => 20, :null => false
... | api06: Fix the version-numbers-on-current-tables migration: We want the rows
in the current table to have the same version number as the latest one in the
history table (the latest version is kept in both the current and the history
tables.)
|
diff --git a/dta_rapid.gemspec b/dta_rapid.gemspec
index abc1234..def5678 100644
--- a/dta_rapid.gemspec
+++ b/dta_rapid.gemspec
@@ -2,7 +2,7 @@
Gem::Specification.new do |spec|
spec.name = "dta_rapid"
- spec.version = "1.4.2"
+ spec.version = "1.4.3"
spec.authors = ["Gareth Rogers"... | Update gem version to 1.4.3
|
diff --git a/lib/active_set.rb b/lib/active_set.rb
index abc1234..def5678 100644
--- a/lib/active_set.rb
+++ b/lib/active_set.rb
@@ -16,23 +16,23 @@ end
def filter(structure)
- structure.reject { |_, value| value.blank? }
- .reduce(@set) do |set, (key, value)|
- set.select { |item| i... | Allow the ActiveSet instance methods (filter, sort, paginate) to be chainable
|
diff --git a/lib/ci/api/api.rb b/lib/ci/api/api.rb
index abc1234..def5678 100644
--- a/lib/ci/api/api.rb
+++ b/lib/ci/api/api.rb
@@ -25,7 +25,7 @@
format :json
- helpers Helpers
+ helpers ::Ci::API::Helpers
helpers ::API::Helpers
helpers Gitlab::CurrentSettings
| Fix hot reloading for CI API
|
diff --git a/spec/factories/factories.rb b/spec/factories/factories.rb
index abc1234..def5678 100644
--- a/spec/factories/factories.rb
+++ b/spec/factories/factories.rb
@@ -1,20 +1,3 @@ FactoryGirl.define do
to_create(&:save)
-
- trait :with_organization do
- association :organization
- end
-
- # Used with Ent... | Remove unrequired shared FactoryGirl traits
|
diff --git a/spec/github_gateway_spec.rb b/spec/github_gateway_spec.rb
index abc1234..def5678 100644
--- a/spec/github_gateway_spec.rb
+++ b/spec/github_gateway_spec.rb
@@ -3,14 +3,17 @@
describe GithubGateway do
before(:all) do
- @gateway = GithubGateway.new( {
- :parent_repo => "chrissiedeist"
- })
+ ... | Fix argument to GithubGateway test
|
diff --git a/spec/models/holding_spec.rb b/spec/models/holding_spec.rb
index abc1234..def5678 100644
--- a/spec/models/holding_spec.rb
+++ b/spec/models/holding_spec.rb
@@ -3,6 +3,28 @@ let(:service_response) { create(:service_response) }
subject(:holding) { Holding.new(service_response) }
it { should be_a Hold... | Add holding state examples to the holding specification
|
diff --git a/spec/msgr/msgr/pool_spec.rb b/spec/msgr/msgr/pool_spec.rb
index abc1234..def5678 100644
--- a/spec/msgr/msgr/pool_spec.rb
+++ b/spec/msgr/msgr/pool_spec.rb
@@ -2,7 +2,6 @@
class Runner
def test_method(*args)
- puts "test_method => #{args}"
end
end
@@ -44,7 +43,7 @@ it 'should dispatch mes... | Add TODO to sleep in spec.
|
diff --git a/lib/moped/bson.rb b/lib/moped/bson.rb
index abc1234..def5678 100644
--- a/lib/moped/bson.rb
+++ b/lib/moped/bson.rb
@@ -11,8 +11,6 @@
module Moped
module BSON
- class InvalidKeyName < Exception; end
-
EOD = NULL_BYTE = "\u0000".freeze
INT32_PACK = 'l'.freeze
@@ -20,7 +18,5 @@ FLOAT_... | Remove unused BSON::OrderedHash and InvalidKeyName
|
diff --git a/config/initializers/juggernaut.rb b/config/initializers/juggernaut.rb
index abc1234..def5678 100644
--- a/config/initializers/juggernaut.rb
+++ b/config/initializers/juggernaut.rb
@@ -0,0 +1,13 @@+module Juggernaut
+ def self.[](key)
+ unless @config
+ raw_config = File.read(RAILS_ROOT + "/config/... | Add an initializer to include a Harmony-like config store.
|
diff --git a/spec/models/config/go_spec.rb b/spec/models/config/go_spec.rb
index abc1234..def5678 100644
--- a/spec/models/config/go_spec.rb
+++ b/spec/models/config/go_spec.rb
@@ -15,7 +15,11 @@ enabled: true
EOS
commit = instance_double("Commit", file_content: raw_content)
- hound_config ... | Make HoundConfig double an instance double
|
diff --git a/sucker_punch.gemspec b/sucker_punch.gemspec
index abc1234..def5678 100644
--- a/sucker_punch.gemspec
+++ b/sucker_punch.gemspec
@@ -11,6 +11,7 @@ gem.description = %q{Asynchronous processing library for Ruby}
gem.summary = %q{Sucker Punch is a Ruby asynchronous processing using Celluloid, heav... | Add missing license to gemspec, is MIT
See
- https://github.com/bf4/gemproject/issues/1
- http://guides.rubygems.org/specification-reference/#license=
- http://www.benjaminfleischer.com/2013/07/12/make-the-world-a-better-place-put-a-license-in-your-gemspec/ |
diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb
index abc1234..def5678 100644
--- a/app/mailers/user_mailer.rb
+++ b/app/mailers/user_mailer.rb
@@ -1,4 +1,7 @@ class UserMailer < ApplicationMailer
+ def welcome_email(user, organization)
+ build_email user, :welcome, 'welcome', organization
+ e... | Add welcome email to mailer
|
diff --git a/app/models/access_token.rb b/app/models/access_token.rb
index abc1234..def5678 100644
--- a/app/models/access_token.rb
+++ b/app/models/access_token.rb
@@ -12,6 +12,10 @@ end
def after_create
+ store_api_credentials
+ end
+
+ def store_api_credentials
base_key = "rails:oauth_access_token... | Move access token credentials storage to a method
|
diff --git a/app/models/user_session.rb b/app/models/user_session.rb
index abc1234..def5678 100644
--- a/app/models/user_session.rb
+++ b/app/models/user_session.rb
@@ -3,7 +3,7 @@ pds_url Settings.pds.login_url
redirect_logout_url Settings.pds.logout_url
aleph_url Exlibris::Aleph::Config.base_url
- calling_sy... | Use getit name for PDS :sunflower:
|
diff --git a/lib/cancan/inherited_resource.rb b/lib/cancan/inherited_resource.rb
index abc1234..def5678 100644
--- a/lib/cancan/inherited_resource.rb
+++ b/lib/cancan/inherited_resource.rb
@@ -3,7 +3,8 @@ class InheritedResource < ControllerResource # :nodoc:
def load_resource_instance
if parent?
- ... | Fix for deeply nested resources when using inherited resources
|
diff --git a/lib/ext/heroku/command/deploy.rb b/lib/ext/heroku/command/deploy.rb
index abc1234..def5678 100644
--- a/lib/ext/heroku/command/deploy.rb
+++ b/lib/ext/heroku/command/deploy.rb
@@ -6,6 +6,7 @@ # deploy a ref (usually, the current HEAD)
#
# -m, --migrate # run migrations after deploy
+ # -b, --back... | Allow performing a backup before migrating.
|
diff --git a/did_you_mean.gemspec b/did_you_mean.gemspec
index abc1234..def5678 100644
--- a/did_you_mean.gemspec
+++ b/did_you_mean.gemspec
@@ -15,7 +15,7 @@
spec.files = `git ls-files`.split($/)
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
- spec.test_files = spec.files.... | Remove spec/ and features/ from test files spec
|
diff --git a/spec/models/api_sampler/endpoint_spec.rb b/spec/models/api_sampler/endpoint_spec.rb
index abc1234..def5678 100644
--- a/spec/models/api_sampler/endpoint_spec.rb
+++ b/spec/models/api_sampler/endpoint_spec.rb
@@ -8,6 +8,7 @@
it { is_expected.to validate_presence_of(:path) }
it { is_expected.to va... | Test the presence of an index on api_sampler_endpoint(path)
|
diff --git a/db/migrate/20180831134926_create_daily_reports.rb b/db/migrate/20180831134926_create_daily_reports.rb
index abc1234..def5678 100644
--- a/db/migrate/20180831134926_create_daily_reports.rb
+++ b/db/migrate/20180831134926_create_daily_reports.rb
@@ -1,5 +1,10 @@ class CreateDailyReports < ActiveRecord::Migra... | Put reporting_daily views into the correct schema
|
diff --git a/app/views/subjects/show.json.jbuilder b/app/views/subjects/show.json.jbuilder
index abc1234..def5678 100644
--- a/app/views/subjects/show.json.jbuilder
+++ b/app/views/subjects/show.json.jbuilder
@@ -1 +1 @@-json.extract! @subject, :name, :neighborhood_id, :type, :created_at, :updated_at, :lat, :long, :pro... | Remove property_info_set from JSON rep of subject (not needed, only lat long necessary)
|
diff --git a/nodejs.rb b/nodejs.rb
index abc1234..def5678 100644
--- a/nodejs.rb
+++ b/nodejs.rb
@@ -1,5 +1,5 @@ dep 'nodejs', :version, :template => 'src' do
- version.default!('0.10.21')
+ version.default!('0.12.0')
source "http://nodejs.org/dist/v#{version}/node-v#{version}.tar.gz"
provides "node ~> #{versio... | Update node.js version to 0.12.0 |
diff --git a/app/controllers/milestones_controller.rb b/app/controllers/milestones_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/milestones_controller.rb
+++ b/app/controllers/milestones_controller.rb
@@ -41,7 +41,7 @@
def destroy
@milestone = current_project.milestones.find(params[:id])
- ... | Remove pointless try, since find will throw anyway.
|
diff --git a/src/order_parser.rb b/src/order_parser.rb
index abc1234..def5678 100644
--- a/src/order_parser.rb
+++ b/src/order_parser.rb
@@ -10,8 +10,8 @@ end
def description
- lines[6..-1].map(&:strip).each_slice(2).map do |s|
- "#{s[1].split.first} #{s[0]}"
+ items_in_order.map do |item|
+ "#{i... | Fix order parser for shipped orders
|
diff --git a/griddler-mandrill.gemspec b/griddler-mandrill.gemspec
index abc1234..def5678 100644
--- a/griddler-mandrill.gemspec
+++ b/griddler-mandrill.gemspec
@@ -13,7 +13,7 @@ spec.homepage = 'https://github.com/wingrunr21/griddler-mandrill'
spec.license = 'MIT'
- spec.files = `git ls-file... | Fix null byte in gemspec
|
diff --git a/email_center_api.gemspec b/email_center_api.gemspec
index abc1234..def5678 100644
--- a/email_center_api.gemspec
+++ b/email_center_api.gemspec
@@ -9,9 +9,9 @@ gem.version = EmailCenterApi::VERSION
gem.authors = ["Ed Robinson"]
gem.email = Base64.decode64("ZWQucm9iaW5zb25AcmVldm... | Update gem spec so bundle doesn't complain.
|
diff --git a/cookbooks/universe_ubuntu/attributes/default.rb b/cookbooks/universe_ubuntu/attributes/default.rb
index abc1234..def5678 100644
--- a/cookbooks/universe_ubuntu/attributes/default.rb
+++ b/cookbooks/universe_ubuntu/attributes/default.rb
@@ -1,4 +1,5 @@ default['universe']['user'] = 'vagrant'
+default['unive... | Add gpu flag to attributes file
|
diff --git a/db/migrate/20170202090345_devise_token_auth_create_users.rb b/db/migrate/20170202090345_devise_token_auth_create_users.rb
index abc1234..def5678 100644
--- a/db/migrate/20170202090345_devise_token_auth_create_users.rb
+++ b/db/migrate/20170202090345_devise_token_auth_create_users.rb
@@ -16,8 +16,12 @@ ... | Fix devise token auth migration
https://github.com/lynndylanhurley/devise_token_auth/issues/121
|
diff --git a/acts-as-dag.gemspec b/acts-as-dag.gemspec
index abc1234..def5678 100644
--- a/acts-as-dag.gemspec
+++ b/acts-as-dag.gemspec
@@ -20,6 +20,7 @@
# As specified in test/dag_test.rb
s.add_development_dependency 'activerecord', '~> 3.0.3'
+ s.add_development_dependency 'rake'
s.add_development_depende... | Add rake as a development dependency so that "bundle exec rake" works.
|
diff --git a/app/models/repositories/bower.rb b/app/models/repositories/bower.rb
index abc1234..def5678 100644
--- a/app/models/repositories/bower.rb
+++ b/app/models/repositories/bower.rb
@@ -14,18 +14,18 @@ def self.projects
@projects ||= begin
projects = {}
- # p1 = get("https://bower-comp... | Revert "Bower search server is offline"
This reverts commit b2165e3900e82b9a9f9f6e3a7ea66dcd44412957.
|
diff --git a/gem_rake_helper.rb b/gem_rake_helper.rb
index abc1234..def5678 100644
--- a/gem_rake_helper.rb
+++ b/gem_rake_helper.rb
@@ -17,11 +17,11 @@ end
Cucumber::Rake::Task.new(:test, 'Run features that should pass') do |t|
- exempt_tags = ""
+ exempt_tags = ["--tags ~@wip"]
exempt_tags << "--tags ~@nojava... | Fix cucumber flags in jruby
|
diff --git a/spec/unit/hanami/utils/file_list_spec.rb b/spec/unit/hanami/utils/file_list_spec.rb
index abc1234..def5678 100644
--- a/spec/unit/hanami/utils/file_list_spec.rb
+++ b/spec/unit/hanami/utils/file_list_spec.rb
@@ -3,11 +3,11 @@ RSpec.describe Hanami::Utils::FileList do
describe '.[]' do
it 'returns c... | Update fixtures reference in specs
|
diff --git a/IBMWatsonCompareComplyV1.podspec b/IBMWatsonCompareComplyV1.podspec
index abc1234..def5678 100644
--- a/IBMWatsonCompareComplyV1.podspec
+++ b/IBMWatsonCompareComplyV1.podspec
@@ -1,7 +1,7 @@ Pod::Spec.new do |s|
s.name = 'IBMWatsonCompareComplyV1'
- s.version = '1.1.1'... | chore(CompareComplyV1): Update CompareComplyV1 podspec to the most recent version of the SDK (1.2.0)
Somehow C&C's version lagged behind the others
|
diff --git a/app/services/jira/work_logger.rb b/app/services/jira/work_logger.rb
index abc1234..def5678 100644
--- a/app/services/jira/work_logger.rb
+++ b/app/services/jira/work_logger.rb
@@ -2,26 +2,63 @@ class WorkLogger
include HTTParty
- attr_accessor :issue_key, :time_entries
+ attr_accessor :usern... | Tweak work logger to get it almost working
|
diff --git a/app/services/redirect_service.rb b/app/services/redirect_service.rb
index abc1234..def5678 100644
--- a/app/services/redirect_service.rb
+++ b/app/services/redirect_service.rb
@@ -12,9 +12,6 @@ attr_reader :token
def link
- if @link
- return @link
- end
- Link.where(token: token).first... | Fix redirect service link memoization
Summary
-------
While examining code coverage metrics, it seems that the memoization
inside the RedirectService object was not implemented correctly. The
"Link" value would never have been set, the condition to determine if
we've previously loaded the link would always fail, and ... |
diff --git a/homebrew/chruby.rb b/homebrew/chruby.rb
index abc1234..def5678 100644
--- a/homebrew/chruby.rb
+++ b/homebrew/chruby.rb
@@ -14,7 +14,7 @@ def caveats; <<-EOS.undent
Add the following to the ~/.bashrc or ~/.zshrc file:
- source #{opt_prefix}/share/chruby/chruby.sh
+ source #{opt_share}/ch... | Update brew formula opt shortcut.
|
diff --git a/features/support/env.rb b/features/support/env.rb
index abc1234..def5678 100644
--- a/features/support/env.rb
+++ b/features/support/env.rb
@@ -1,5 +1,13 @@ if ENV['SIMPLECOV']
require 'simplecov'
+
+ SimpleCov.start :rails do
+ if ENV['CI_BUILD_NAME']
+ coverage_dir "coverage/#{ENV['CI_BUILD_N... | Add simplecov to spinach tests
|
diff --git a/lib/mws/orders/parsers/model.rb b/lib/mws/orders/parsers/model.rb
index abc1234..def5678 100644
--- a/lib/mws/orders/parsers/model.rb
+++ b/lib/mws/orders/parsers/model.rb
@@ -22,7 +22,8 @@ end
def text_at_xpath(path)
- at_xpath(path).text
+ node = at_xpath(path)
+ ... | Return nil if can't parse text at a node
|
diff --git a/lib/nfl_live_update/schedule.rb b/lib/nfl_live_update/schedule.rb
index abc1234..def5678 100644
--- a/lib/nfl_live_update/schedule.rb
+++ b/lib/nfl_live_update/schedule.rb
@@ -4,8 +4,8 @@
attr_reader :_data, :_xml, :games, :updated_at, :week, :year
- def initialize
- @_xml = open(BASE_URL +... | Allow alternate path to XML file be provided
|
diff --git a/lib/raven/integrations/rails.rb b/lib/raven/integrations/rails.rb
index abc1234..def5678 100644
--- a/lib/raven/integrations/rails.rb
+++ b/lib/raven/integrations/rails.rb
@@ -11,13 +11,6 @@ ActiveSupport.on_load :action_controller do
require 'raven/integrations/rails/controller_methods'
... | Revert "Add support for ActiveJob."
This reverts commit dfe26167b1f26c165db1b9832233e25d3e7060fc.
|
diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/home_controller.rb
+++ b/app/controllers/home_controller.rb
@@ -10,7 +10,7 @@
tree = groups.sort_by(&:name).map do |group|
- servers = Group.accessible_by(current... | Fix : Bad cancan validation example
|
diff --git a/lib/shopify_login_protection.rb b/lib/shopify_login_protection.rb
index abc1234..def5678 100644
--- a/lib/shopify_login_protection.rb
+++ b/lib/shopify_login_protection.rb
@@ -4,10 +4,10 @@ if session[:shopify]
begin
# session[:shopify] set in LoginController#finalize
- ActiveRes... | Use ShopifyAPI instead of ActiveResource
|
diff --git a/lib/stacks/standalone_server.rb b/lib/stacks/standalone_server.rb
index abc1234..def5678 100644
--- a/lib/stacks/standalone_server.rb
+++ b/lib/stacks/standalone_server.rb
@@ -4,10 +4,10 @@ class Stacks::StandaloneServer < Stacks::MachineDef
attr_reader :environment
- def initialize(base_hostname, lo... | Revert "rpearce/grichards/tanderson: Fixing hard coded networks for standalone servers"
This reverts commit c99de0dc128768e09bada69bd9b79de778a0f372.
|
diff --git a/language/spec/quickstart_spec.rb b/language/spec/quickstart_spec.rb
index abc1234..def5678 100644
--- a/language/spec/quickstart_spec.rb
+++ b/language/spec/quickstart_spec.rb
@@ -20,8 +20,8 @@ it "detect sentiment" do
language = Google::Cloud::Language.new
expect(Google::Cloud::Language).to re... | Change alignment of client instantiation mocking
|
diff --git a/cuprum.gemspec b/cuprum.gemspec
index abc1234..def5678 100644
--- a/cuprum.gemspec
+++ b/cuprum.gemspec
@@ -22,8 +22,8 @@ gem.files = Dir['lib/**/*.rb', 'LICENSE', '*.md']
gem.add_development_dependency 'rspec', '~> 3.6'
- gem.add_development_dependency 'rspec-sleeping_... | Clean up gemspec dependency versions.
|
diff --git a/app/models/channels/web_channel.rb b/app/models/channels/web_channel.rb
index abc1234..def5678 100644
--- a/app/models/channels/web_channel.rb
+++ b/app/models/channels/web_channel.rb
@@ -14,23 +14,28 @@ end
def client
- @@client ||= RSS::Parser.parse(service_identifier)
+ @client ||=
+ ... | Replace RSS with Feedjira for web channel
|
diff --git a/Casks/dockertoolbox.rb b/Casks/dockertoolbox.rb
index abc1234..def5678 100644
--- a/Casks/dockertoolbox.rb
+++ b/Casks/dockertoolbox.rb
@@ -1,6 +1,6 @@ cask :v1_1 => 'dockertoolbox' do
- version '1.9.0a'
- sha256 '45c9447345a5b91aa8b120172a5b3621e0cce34a76e9e577beda29364d8367a0'
+ version '1.9.0b'
+ sh... | Update Docker Toolbox to 1.9.0b
|
diff --git a/lib/active_set/structure/path.rb b/lib/active_set/structure/path.rb
index abc1234..def5678 100644
--- a/lib/active_set/structure/path.rb
+++ b/lib/active_set/structure/path.rb
@@ -34,7 +34,7 @@ end
def value_for(item:)
- @path.reduce(item, :try)
+ resource_for(item: item).send(attribut... | Fix a bug in getting at the value for a Structure::Path
|
diff --git a/app/workers/daily_import_worker.rb b/app/workers/daily_import_worker.rb
index abc1234..def5678 100644
--- a/app/workers/daily_import_worker.rb
+++ b/app/workers/daily_import_worker.rb
@@ -4,6 +4,7 @@
def perform
client = ClinicalTrials::Client.new
+ client.download_xml_files
client.populat... | Add download method to import worker.
|
diff --git a/lib/fluid_table/class_methods.rb b/lib/fluid_table/class_methods.rb
index abc1234..def5678 100644
--- a/lib/fluid_table/class_methods.rb
+++ b/lib/fluid_table/class_methods.rb
@@ -1,7 +1,9 @@ class FluidTable
module ClassMethods
- def define_column(identity, alt_name = nil, options = {}, &proc)... | Make defining columns much simpler by not needing to pass in nil to alt_name when wanting options. |
diff --git a/app/uploaders/image_uploader.rb b/app/uploaders/image_uploader.rb
index abc1234..def5678 100644
--- a/app/uploaders/image_uploader.rb
+++ b/app/uploaders/image_uploader.rb
@@ -19,6 +19,10 @@
version :hero do
process :resize_to_fill => [800, 300]
+ end
+
+ def filename
+ Time.now.to_i.to_s ... | Rename uploaded images with a timestamp
|
diff --git a/google-id-token.gemspec b/google-id-token.gemspec
index abc1234..def5678 100644
--- a/google-id-token.gemspec
+++ b/google-id-token.gemspec
@@ -15,7 +15,7 @@
Gem::Specification.new do |s|
s.name = 'google-id-token'
- s.version = '1.3.2'
+ s.version = '1.3.1'
s.homepage = 'https://github.com/goo... | Revert "bump up version for RubyGem"
|
diff --git a/lib/smart_energy_group/client.rb b/lib/smart_energy_group/client.rb
index abc1234..def5678 100644
--- a/lib/smart_energy_group/client.rb
+++ b/lib/smart_energy_group/client.rb
@@ -26,7 +26,7 @@
def send_data(node_name, options)
time = options[:when] || Time.now
- time = time.strftime('%FT... | Make sure we send UTC time
|
diff --git a/lib/syncer/listeners/fsevents.rb b/lib/syncer/listeners/fsevents.rb
index abc1234..def5678 100644
--- a/lib/syncer/listeners/fsevents.rb
+++ b/lib/syncer/listeners/fsevents.rb
@@ -7,7 +7,7 @@
def initialize(absolute_path, excludes, settings, callback)
@absolute_path = absolute_path
- ... | Disable rb-fsevent no_defer, force it explicitly to false
See https://github.com/thibaudgg/rb-fsevent#nodefer for details on the changed behaviour..
|
diff --git a/glpk.rb b/glpk.rb
index abc1234..def5678 100644
--- a/glpk.rb
+++ b/glpk.rb
@@ -0,0 +1,12 @@+require 'brewkit'
+
+class Glpk <Formula
+ url 'http://ftp.gnu.org/gnu/glpk/glpk-4.39.tar.gz'
+ homepage 'http://www.gnu.org/software/glpk/'
+ md5 '95f276ef6c94c6de1eb689f161f525f3'
+
+ def install
+ system ... | Add formula for GNU Linear Programming Kit
Provides a library and stand-alone tool for solving linear programs (LPs) and
integer linear programs (ILPs). Doesn't depend on anything else.
|
diff --git a/test/initial_test_data_test.rb b/test/initial_test_data_test.rb
index abc1234..def5678 100644
--- a/test/initial_test_data_test.rb
+++ b/test/initial_test_data_test.rb
@@ -3,6 +3,8 @@ require 'initial-test-data'
class InitialTestDataTest < ActiveSupport::TestCase
+ include InitialTestData::Utilities
+
... | Add test for fetch method
|
diff --git a/spec/models/track_thing_spec.rb b/spec/models/track_thing_spec.rb
index abc1234..def5678 100644
--- a/spec/models/track_thing_spec.rb
+++ b/spec/models/track_thing_spec.rb
@@ -3,10 +3,30 @@ describe TrackThing, "when tracking changes" do
fixtures :track_things, :users
+ before do
+ @track_... | Add some new TrackThing tests
|
diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb
index abc1234..def5678 100644
--- a/app/mailers/user_mailer.rb
+++ b/app/mailers/user_mailer.rb
@@ -1,6 +1,7 @@ class UserMailer < ApplicationMailer
def welcome_email(user, organization)
- build_email user, :welcome, 'welcome', organization
+ ... | Allow rendering html directly in mailer
|
diff --git a/lib/axiom/types/type.rb b/lib/axiom/types/type.rb
index abc1234..def5678 100644
--- a/lib/axiom/types/type.rb
+++ b/lib/axiom/types/type.rb
@@ -16,13 +16,8 @@
def self.constraint(constraint = Undefined, &block)
constraint = block if constraint.equal?(Undefined)
- current = @const... | Refactor constraint method so adding the constraint is separate
|
diff --git a/points_api/lib/corenlp_client.rb b/points_api/lib/corenlp_client.rb
index abc1234..def5678 100644
--- a/points_api/lib/corenlp_client.rb
+++ b/points_api/lib/corenlp_client.rb
@@ -7,23 +7,11 @@ @http_client = Net::HTTP.new(@uri.host, @uri.port)
end
- def request_parse(sentence)
+ def request_par... | Return parses for all sentences
Motivation:
-in a move to handling groups of sentences at a time
Change Explanation:
-return the array of sentence parses, not only the first
|
diff --git a/brew/cask/awsaml.rb b/brew/cask/awsaml.rb
index abc1234..def5678 100644
--- a/brew/cask/awsaml.rb
+++ b/brew/cask/awsaml.rb
@@ -1,6 +1,6 @@ cask 'awsaml' do
version '1.3.0'
- sha256 '47d6305bad6de41b95832970cf33d0d1c2e287ce7f0658a9bc6e4b9da307f0b6'
+ sha256 '4f4459551c3991aed287b02486b8bf0562f6d2fb99e... | Update the SHA256 checksum in the Homebrew cask with the v1.3.0 release.
|
diff --git a/spec/conway_spec.rb b/spec/conway_spec.rb
index abc1234..def5678 100644
--- a/spec/conway_spec.rb
+++ b/spec/conway_spec.rb
@@ -21,15 +21,15 @@ end
describe "when a game is started" do
- it "should have X cells that are alive" do
- conway.start
+ it "should have 50 cells that are alive" do
+... | Add concrete number of alive cells after start in test.
|
diff --git a/spec/sequel_spec.rb b/spec/sequel_spec.rb
index abc1234..def5678 100644
--- a/spec/sequel_spec.rb
+++ b/spec/sequel_spec.rb
@@ -13,7 +13,7 @@ params = if RUBY_PLATFORM == 'java'
RawConnectionFactory::CONFIG
else
- config.slice(:adapter, :host, :databa... | Fix sequel spec connection error
|
diff --git a/RPInstantAlpha.podspec b/RPInstantAlpha.podspec
index abc1234..def5678 100644
--- a/RPInstantAlpha.podspec
+++ b/RPInstantAlpha.podspec
@@ -3,7 +3,7 @@ s.version = "0.1.0"
s.summary = "Easily allow users to remove the background from an image"
s.homepage = "https://github.... | Update screenshot URL in podspec
|
diff --git a/lib/fakefs/fake/file.rb b/lib/fakefs/fake/file.rb
index abc1234..def5678 100644
--- a/lib/fakefs/fake/file.rb
+++ b/lib/fakefs/fake/file.rb
@@ -41,7 +41,6 @@ end
def content=(str)
- @mtime = Time.now
@inode.content = str
end
| Remove unneeded @mtime update in FakeFile
|
diff --git a/lib/fb/configuration.rb b/lib/fb/configuration.rb
index abc1234..def5678 100644
--- a/lib/fb/configuration.rb
+++ b/lib/fb/configuration.rb
@@ -15,7 +15,7 @@ # convention is to use [Fb.configure].
#
# @example
- # Fb.configuration.fb_client_id = 1234
+ # Fb.configuration.client_id = 1234
... | Fix variable name in the comment
|
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
@@ -16,3 +16,11 @@ path = File.join(File.dirname(__FILE__), 'fixtures', "#{csv_file}.csv")
File.read(path)
end
+
+def json(body)
+ JSON.parse(body)
+end
+
+def xml(xml)
+ Hash... | Add content_type related helper methods
|
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,7 @@ require "codeclimate-test-reporter"
CodeClimate::TestReporter.start
+
+WebMock.disable_net_connect!(:allow => "codeclimate.com")
ENV["RACK_ENV"] ||= 'test'
| Allow WebMock to connect to Code Climate
|
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,7 @@ require 'simplecov'
require 'simplecov-rcov'
SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
-SimpleCov.minimum_coverage 100
+SimpleCov.minimum_coverage 99... | Set code coverage to 99% to enable deployment
|
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,6 +1,12 @@ $LOAD_PATH.unshift File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'simplecov'
+
+# save to CircleCI's artifacts directory if we're on Cir... | Add code coverage to Circle.
|
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
@@ -17,4 +17,4 @@ end
end
-Dir[File.dirname(__FILE__) + '/support/*.rb'].each { |f| load f }
+Dir[File.dirname(__FILE__) + '/support/*.rb'].each { |f| require f }
| Use a require instead of a load
|
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,7 @@ require 'simplecov'
-SimpleCov.start 'rails'
+SimpleCov.start 'rails' do
+ add_filter "/vendor/"
+end
Encoding.default_external = "UTF-8" if defined? Encoding
Enc... | spec: Add filter for simplecov to filter vendor directory
|
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,12 +1,17 @@-require 'nyny'
require 'rack'
require 'securerandom'
if ENV['TRAVIS']
require 'coveralls'
Coveralls.wear!
+else
+ require 'simplecov'
+ SimpleCov.start ... | Add offline coverage report using simplecov
|
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
@@ -30,6 +30,19 @@ config.after do
Test.remove_constants
end
+
+ config.after do
+ [
+ Dry::View,
+ Dry::View::PartBuilder,
+ Dry::View::Path,
+ Dry:... | Clear all caches after each spec example
This should ensure our tests run faithfully regardless of order
|
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
@@ -10,10 +10,6 @@ require 'have_attributes'
require 'openssl'
require 'socket'
-require 'simplecov'
-
-SimpleCov.start
-
def errback
@errback ||= Proc.new { |e| fail 'cannot ... | Revert "simplecov start in spec helper". slanger runs in a forked process so simple cannot know about what code is executed.
This reverts commit c66da5beb65d722f0eaca194b7664dade7a52bb5.
|
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
@@ -9,7 +9,7 @@ # Print the 10 slowest examples and example groups at the
# end of the spec run, to help surface which specs are running
# particularly slow.
- config.profile... | Disable tracking for slower specs.
|
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
@@ -47,7 +47,7 @@ config.include(CompressHelper)
config.include(ParserHelper)
config.include(Mutant::NodeHelpers)
- config.mock_with :rspec do |rspec|
+ config.expect_with :... | Fix rspec configuration to use expect_with, not mock_with
|
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,9 +20,9 @@ SimpleCov.at_exit do
SimpleCov.result.format!
# do not change the coverage percentage, instead add more unit tests to fix coverage failures.
- if Simp... | Increase test coverage threshold to 81%
We currently have 83.5% coverage. So increase by 10%.
|
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,15 +7,15 @@ GFS_FS_MOUNT = ENV['GFS_FS_MOUNT'] || '/mnt/dist-volume'
# Settings for stress tests
-GFS_MEM_DIR_ITERATIONS = ENV['MEM_DIR_ITERATIONS'] || 50
-GFS_MEM_FILE_ITERA... | Convert env values to integers
|
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
@@ -5,3 +5,4 @@ require 'terraforming/dnsimple'
require 'webmock/rspec'
+WebMock.disable_net_connect!(:allow => "codeclimate.com")
| Allow real connection to CodeClimate
https://github.com/codeclimate/ruby-test-reporter#webmocknetconnectnotallowederror
|
diff --git a/jquery-toastmessage-rails.gemspec b/jquery-toastmessage-rails.gemspec
index abc1234..def5678 100644
--- a/jquery-toastmessage-rails.gemspec
+++ b/jquery-toastmessage-rails.gemspec
@@ -6,7 +6,7 @@ Gem::Specification.new do |spec|
spec.name = "jquery-toastmessage-rails"
spec.version = Jq... | Remove \n from author field in gemspec
|
diff --git a/capture_warnings.rb b/capture_warnings.rb
index abc1234..def5678 100644
--- a/capture_warnings.rb
+++ b/capture_warnings.rb
@@ -1,34 +1,40 @@ # With thanks to @myronmarston
-# http://myronmars.to/n/dev-blog/2011/08/making-your-gem-warning-free
+# https://github.com/vcr/vcr/blob/master/spec/capture_warnings... | Update capture warnings script to use rspec hooks
|
diff --git a/lib/heroku-request-id/railtie.rb b/lib/heroku-request-id/railtie.rb
index abc1234..def5678 100644
--- a/lib/heroku-request-id/railtie.rb
+++ b/lib/heroku-request-id/railtie.rb
@@ -1,7 +1,7 @@ module HerokuRequestId
class Railtie < Rails::Railtie
initializer 'heroku_request_id.add_middleware' do |ap... | Load the middleware before Rack::Runtime.
|
diff --git a/lib/merb_global/base.rb b/lib/merb_global/base.rb
index abc1234..def5678 100644
--- a/lib/merb_global/base.rb
+++ b/lib/merb_global/base.rb
@@ -5,7 +5,7 @@ module Global
attr_accessor :lang, :provider
def lang #:nodoc:
- @lang ||= (ENV['LC_ALL'] || 'C').split('.')[0]
+ @lang ||= "en"
... | Change default language to simply english
|
diff --git a/lib/pragma/decorator.rb b/lib/pragma/decorator.rb
index abc1234..def5678 100644
--- a/lib/pragma/decorator.rb
+++ b/lib/pragma/decorator.rb
@@ -3,9 +3,12 @@
require 'pragma/decorator/version'
require 'pragma/decorator/base'
+require 'pragma/decorator/collection'
module Pragma
# Represent your API ... | Add author to Pragma::Decorator module
|
diff --git a/lib/omniauth/strategies/myecp.rb b/lib/omniauth/strategies/myecp.rb
index abc1234..def5678 100644
--- a/lib/omniauth/strategies/myecp.rb
+++ b/lib/omniauth/strategies/myecp.rb
@@ -23,7 +23,7 @@
info do
{
- :name => raw_info['first_name'] + raw_info['last_name'],
+ :name =... | Fix space between first and last names
|
diff --git a/lib/sermepa_web_tpv/signature.rb b/lib/sermepa_web_tpv/signature.rb
index abc1234..def5678 100644
--- a/lib/sermepa_web_tpv/signature.rb
+++ b/lib/sermepa_web_tpv/signature.rb
@@ -19,8 +19,7 @@ end
def cipher
- @cipher ||= Mcrypt.new(:tripledes, :cbc, merchant_key,
- ... | Use new Mcrypt instance on every cipher call
|
diff --git a/lib/tasks/orphaned_editions.rake b/lib/tasks/orphaned_editions.rake
index abc1234..def5678 100644
--- a/lib/tasks/orphaned_editions.rake
+++ b/lib/tasks/orphaned_editions.rake
@@ -0,0 +1,53 @@+namespace :orphaned_editions do
+ desc "Destroy editions having an artefact with the state 'archived'"
+
+ QUALI... | Make rake task to delete orphaned editions
|
diff --git a/lib/dolphy/core.rb b/lib/dolphy/core.rb
index abc1234..def5678 100644
--- a/lib/dolphy/core.rb
+++ b/lib/dolphy/core.rb
@@ -41,12 +41,12 @@
if block = router.routes[http_method][path]
@status = 200
- @response = [instance_eval(&block)]
+ @response = instance_eval(&block)
... | Convert to an array in return statement.
|
diff --git a/lib/hawk/linker.rb b/lib/hawk/linker.rb
index abc1234..def5678 100644
--- a/lib/hawk/linker.rb
+++ b/lib/hawk/linker.rb
@@ -0,0 +1,94 @@+module Hawk
+
+ # Allows adding to any Ruby object an accessor referencing an {Hawk::Model}.
+ #
+ # Example, assuming Bar is defined and Foo responds_to `bar_id`:
+ ... | Add Linker, for accessors on foreign object
|
diff --git a/app/models/riews/relationship.rb b/app/models/riews/relationship.rb
index abc1234..def5678 100644
--- a/app/models/riews/relationship.rb
+++ b/app/models/riews/relationship.rb
@@ -4,6 +4,6 @@ alias_method :view, :riews_view
validates_presence_of :view
- validates :name, presence: true
+ va... | Validate the associations that can be performed
|
diff --git a/lib/yelp/client.rb b/lib/yelp/client.rb
index abc1234..def5678 100644
--- a/lib/yelp/client.rb
+++ b/lib/yelp/client.rb
@@ -25,8 +25,9 @@ token: @token,
token_secret: @token_secret }
- @connection ||= Faraday.new API_HOST do |conn|
+ @connection = Faraday.new API_... | Set the adapter to net/http
|
diff --git a/lib/deep_cover/node/exceptions.rb b/lib/deep_cover/node/exceptions.rb
index abc1234..def5678 100644
--- a/lib/deep_cover/node/exceptions.rb
+++ b/lib/deep_cover/node/exceptions.rb
@@ -29,6 +29,11 @@ children[2]
end
alias_method :next_instruction, :body
+
+ def naive_cover
+ ... | Fix naive coverage for rescue clause
|
diff --git a/lib/copy_peste/core/module_mng.rb b/lib/copy_peste/core/module_mng.rb
index abc1234..def5678 100644
--- a/lib/copy_peste/core/module_mng.rb
+++ b/lib/copy_peste/core/module_mng.rb
@@ -0,0 +1,49 @@+require_relative '../modules.rb'
+
+module CopyPeste
+ class Core
+
+ class ModuleMng
+ attr_accessor... | Change modules loading and storing method
|
diff --git a/lib/daimon_skycrawlers/crawler.rb b/lib/daimon_skycrawlers/crawler.rb
index abc1234..def5678 100644
--- a/lib/daimon_skycrawlers/crawler.rb
+++ b/lib/daimon_skycrawlers/crawler.rb
@@ -1,37 +1,44 @@-require 'net/http'
+require 'faraday'
require 'uri'
module DaimonSkycrawlers
class Crawler
- def fe... | Use Faraday instead of net/http
Still use net/http as Faraday backend.
|
diff --git a/api/spec/support/controller_hacks.rb b/api/spec/support/controller_hacks.rb
index abc1234..def5678 100644
--- a/api/spec/support/controller_hacks.rb
+++ b/api/spec/support/controller_hacks.rb
@@ -25,7 +25,14 @@
def api_process(action, params = {}, session = nil, flash = nil, method = "get")
scopin... | Fix keyword argument warnings in API specs
Rails 5.0 deprecated non keyword arguments on testing controllers. This
commit updates the controller_hacks file to remove the deprecation
warning by using only keyword arguments.
|
diff --git a/spec/features/home_page_spec.rb b/spec/features/home_page_spec.rb
index abc1234..def5678 100644
--- a/spec/features/home_page_spec.rb
+++ b/spec/features/home_page_spec.rb
@@ -0,0 +1,22 @@+require "rails_helper"
+
+describe "Home page" do
+ before do
+ visit '/'
+ end
+
+ it "has a link redirecting to Abo... | Add tests for checking Home page links
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.