diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/spec/support/sample_api.rb b/spec/support/sample_api.rb
index abc1234..def5678 100644
--- a/spec/support/sample_api.rb
+++ b/spec/support/sample_api.rb
@@ -10,12 +10,12 @@
desc 'create a widget'
params do
- requires :name,
- type: 'string',
+ requires 'name',
+ type: Stri... | Use actual type when defining param in sample api
As of grape v0.15.0 it seems the type is being checked and an actual
type is required. Using a string will cause a problem
[here](https://github.com/ruby-grape/grape/blob/v0.15.0/lib/grape/validations/types.rb#L117-L123)
|
diff --git a/spec/unix_listener_spec.rb b/spec/unix_listener_spec.rb
index abc1234..def5678 100644
--- a/spec/unix_listener_spec.rb
+++ b/spec/unix_listener_spec.rb
@@ -10,7 +10,7 @@ end
it "creates a new UNIXListener" do
- listener = Cool.io::UNIXListener.new(@tmp.path)
+ _listener = Cool.io::UNIXListener... | Add '_' prefix to unused local variable
This can suppress following warnings
spec/unix_listener_spec.rb:13: warning: assigned but unused variable - listener
|
diff --git a/app/helpers/people_helper.rb b/app/helpers/people_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/people_helper.rb
+++ b/app/helpers/people_helper.rb
@@ -1,9 +1,13 @@ module PeopleHelper
def administrator?
- current_person && current_person.administrator?
+ current_person.try :administra... | Add official\? method and use try
|
diff --git a/app/jobs/story_update_job.rb b/app/jobs/story_update_job.rb
index abc1234..def5678 100644
--- a/app/jobs/story_update_job.rb
+++ b/app/jobs/story_update_job.rb
@@ -13,6 +13,8 @@ def receive_story_update(data)
load_resources(data)
episode ? update_episode : create_episode
+ episode.copy_audio... | Remove duplicate publish, and copy_audio calls
|
diff --git a/week-5/pad-array/my_solution.rb b/week-5/pad-array/my_solution.rb
index abc1234..def5678 100644
--- a/week-5/pad-array/my_solution.rb
+++ b/week-5/pad-array/my_solution.rb
@@ -19,13 +19,36 @@
# 1. Initial Solution
-def pad!(array, min_size, value = nil) #destructive
- # Your code here
-end
+# def pad!... | Add first draft of peer 5.2
|
diff --git a/lib/capybara/firebug.rb b/lib/capybara/firebug.rb
index abc1234..def5678 100644
--- a/lib/capybara/firebug.rb
+++ b/lib/capybara/firebug.rb
@@ -26,7 +26,7 @@ Capybara::Driver::Selenium.new(app, :browser => :firefox, :profile => profile)
end
-if defined?(Cucumber)
+if defined?(Cucumber::RbSupport)
B... | Check a different constant for Cucumber.
|
diff --git a/lib/esri_shapefile/converter/svg.rb b/lib/esri_shapefile/converter/svg.rb
index abc1234..def5678 100644
--- a/lib/esri_shapefile/converter/svg.rb
+++ b/lib/esri_shapefile/converter/svg.rb
@@ -40,8 +40,8 @@ width = main_file_header.x_max - main_file_header.x_min
header << "<svg "
- ... | Set SVG width and height to 100%
|
diff --git a/build_tools/aws-sdk-code-generator/aws-sdk-code-generator.gemspec b/build_tools/aws-sdk-code-generator/aws-sdk-code-generator.gemspec
index abc1234..def5678 100644
--- a/build_tools/aws-sdk-code-generator/aws-sdk-code-generator.gemspec
+++ b/build_tools/aws-sdk-code-generator/aws-sdk-code-generator.gemspec... | Add dependencies and templates to code-gen package.
|
diff --git a/lib/ordoro/record/purchase_order.rb b/lib/ordoro/record/purchase_order.rb
index abc1234..def5678 100644
--- a/lib/ordoro/record/purchase_order.rb
+++ b/lib/ordoro/record/purchase_order.rb
@@ -4,15 +4,24 @@ module Record
class PurchaseOrder < Base
- attribute :status
- attribute :shipping... | Allow POs to be marked as sent
|
diff --git a/lib/rrj/janus/responses/standard.rb b/lib/rrj/janus/responses/standard.rb
index abc1234..def5678 100644
--- a/lib/rrj/janus/responses/standard.rb
+++ b/lib/rrj/janus/responses/standard.rb
@@ -16,11 +16,31 @@ data_id
end
+ # Read response for plugin request
+ def plugin
+ ... | Add method for simplify response data
|
diff --git a/lib/javascript_strip.rb b/lib/javascript_strip.rb
index abc1234..def5678 100644
--- a/lib/javascript_strip.rb
+++ b/lib/javascript_strip.rb
@@ -6,7 +6,7 @@ class Strip
attr_reader :html
- HTML_EVENT_HANDLERS==%w{onload onunload onchange onsubmit onreset onselect onblur onfocus onkeydown onk... | Fix error in constant definition
|
diff --git a/spec/acceptance/validation_spec.rb b/spec/acceptance/validation_spec.rb
index abc1234..def5678 100644
--- a/spec/acceptance/validation_spec.rb
+++ b/spec/acceptance/validation_spec.rb
@@ -0,0 +1,35 @@+require 'spec_helper_acceptance'
+
+describe 'concat validate_cmd parameter' do
+ basedir = default.tmpdi... | Add acceptance test for validate_cmd parameter.
|
diff --git a/test/cookbooks/test/recipes/helloworld_example.rb b/test/cookbooks/test/recipes/helloworld_example.rb
index abc1234..def5678 100644
--- a/test/cookbooks/test/recipes/helloworld_example.rb
+++ b/test/cookbooks/test/recipes/helloworld_example.rb
@@ -1,7 +1,9 @@ tomcat_install 'helloworld' do
version '8.0.... | Extend the test recipe a bit
|
diff --git a/lib/latinverb_querent_for_classification_builder/querent_mutators/irregular/json_deserializer.rb b/lib/latinverb_querent_for_classification_builder/querent_mutators/irregular/json_deserializer.rb
index abc1234..def5678 100644
--- a/lib/latinverb_querent_for_classification_builder/querent_mutators/irregular... | Handle bug for broken lookup
If a serialized_verb is not found, let's parse
some bogus JSON instead of blowing up with `nil`.
|
diff --git a/lib/tasks/populate.rake b/lib/tasks/populate.rake
index abc1234..def5678 100644
--- a/lib/tasks/populate.rake
+++ b/lib/tasks/populate.rake
@@ -0,0 +1,54 @@+require 'open-uri'
+
+namespace :db do
+ desc 'Load the legacy data into the databse'
+ task populate: :environment do
+ [Medicine, Prescription,... | Add task to import legacy data into the application
|
diff --git a/lib/thailand/country.rb b/lib/thailand/country.rb
index abc1234..def5678 100644
--- a/lib/thailand/country.rb
+++ b/lib/thailand/country.rb
@@ -26,7 +26,10 @@ end
def inspect
- "<##{self.class}>"
+ "#<#{self.class} name: \"#{name}\", official_name: \"#{official_name}\">"
end
+
+ ... | Update inspect method and add alias methods for Country
|
diff --git a/lib/tasks/analysis.rake b/lib/tasks/analysis.rake
index abc1234..def5678 100644
--- a/lib/tasks/analysis.rake
+++ b/lib/tasks/analysis.rake
@@ -0,0 +1,13 @@+namespace :analysis do
+ task :tags_without_propositions => :environment do
+
+ Election.all.each do |election|
+ puts "=> #{election.name}"
... | Add a rake task to detect tags without propositions
|
diff --git a/db/migrate/20150429184013_create_fitness_professional_profiles.rb b/db/migrate/20150429184013_create_fitness_professional_profiles.rb
index abc1234..def5678 100644
--- a/db/migrate/20150429184013_create_fitness_professional_profiles.rb
+++ b/db/migrate/20150429184013_create_fitness_professional_profiles.rb... | Fix field types and remove array defaults in fitness professional profiles migration
|
diff --git a/lib/airbrush/processors/image/rmagick.rb b/lib/airbrush/processors/image/rmagick.rb
index abc1234..def5678 100644
--- a/lib/airbrush/processors/image/rmagick.rb
+++ b/lib/airbrush/processors/image/rmagick.rb
@@ -5,6 +5,7 @@ module Image
class Rmagick < ImageProcessor
before_filter :puri... | Add after filter for colour profiles afterwards
git-svn-id: 6d9b9a8f21f96071dc3ac7ff320f08f2a342ec80@68 daa9635f-4444-0410-9b3d-b8c75a019348
|
diff --git a/test/system/users_test.rb b/test/system/users_test.rb
index abc1234..def5678 100644
--- a/test/system/users_test.rb
+++ b/test/system/users_test.rb
@@ -1,9 +1,9 @@-require 'application_system_test_case'
+require "application_system_test_case"
class UsersTest < ApplicationSystemTestCase
- test 'visiting... | Revert "Set invalid username to ensure testing on circle ci"
This reverts commit 4e085d93460c59448623b2b5025999e3993fc6a5.
|
diff --git a/spec/erlen/schema/documentation_spec.rb b/spec/erlen/schema/documentation_spec.rb
index abc1234..def5678 100644
--- a/spec/erlen/schema/documentation_spec.rb
+++ b/spec/erlen/schema/documentation_spec.rb
@@ -0,0 +1,62 @@+# frozen_string_literal: true
+
+require 'spec_helper'
+
+describe Erlen::Schema::Docu... | Use deterministic values for documentation module
|
diff --git a/lib/jsminc.rb b/lib/jsminc.rb
index abc1234..def5678 100644
--- a/lib/jsminc.rb
+++ b/lib/jsminc.rb
@@ -1,2 +1,2 @@ require "jsminc/version"
-require "jsminc.#{Config::CONFIG['DLEXT']}"
+require "jsminc.#{RbConfig::CONFIG['DLEXT']}"
| Replace deprecated Config with RbConfig
|
diff --git a/cdq.gemspec b/cdq.gemspec
index abc1234..def5678 100644
--- a/cdq.gemspec
+++ b/cdq.gemspec
@@ -21,7 +21,7 @@ gem.name = "cdq"
gem.require_paths = ["lib"]
gem.add_runtime_dependency 'ruby-xcdm', '>= 0.0.9'
- gem.add_runtime_dependency 'motion-yaml', '= 1.4'
+ gem.add_runtime_dependency '... | Remove motion-yaml 1.4 lock. Allow >= 1.6.
|
diff --git a/spec/slather/cocoapods_plugin_spec.rb b/spec/slather/cocoapods_plugin_spec.rb
index abc1234..def5678 100644
--- a/spec/slather/cocoapods_plugin_spec.rb
+++ b/spec/slather/cocoapods_plugin_spec.rb
@@ -1,6 +1,6 @@ require 'cocoapods'
+require File.join(File.dirname(__FILE__), '..', 'spec_helper')
require Fi... | Load spec_helper before cocoapods_plugin to fix code coverage.
Otherwise slather gets required because coverage is started and the main libraries aren't covered. |
diff --git a/lib/rspec_api_docs/formatter/resource.rb b/lib/rspec_api_docs/formatter/resource.rb
index abc1234..def5678 100644
--- a/lib/rspec_api_docs/formatter/resource.rb
+++ b/lib/rspec_api_docs/formatter/resource.rb
@@ -5,8 +5,10 @@
module RspecApiDocs
class Resource
- def initialize(example)
- @examp... | Rename example variable to rspec_example
|
diff --git a/paperclip-optimizer.gemspec b/paperclip-optimizer.gemspec
index abc1234..def5678 100644
--- a/paperclip-optimizer.gemspec
+++ b/paperclip-optimizer.gemspec
@@ -14,11 +14,12 @@ spec.license = "MIT"
spec.add_dependency "paperclip", "~> 3.4.1"
+ spec.add_dependency "image_optim", "~> 0.8"
s... | Add Rails as a dependency for testing
|
diff --git a/dsvedit.rb b/dsvedit.rb
index abc1234..def5678 100644
--- a/dsvedit.rb
+++ b/dsvedit.rb
@@ -37,7 +37,9 @@
raise e
end
-rescue ScriptError, StandardError => e
+rescue SystemExit, Interrupt
+ raise
+rescue Exception => e
logger = Logger.new("crashlog.txt")
logger.error e
| Fix some types of crashes (such as infinite stack recursion) not being logged
related to #62
|
diff --git a/app/models/social/instagram_hashtag.rb b/app/models/social/instagram_hashtag.rb
index abc1234..def5678 100644
--- a/app/models/social/instagram_hashtag.rb
+++ b/app/models/social/instagram_hashtag.rb
@@ -21,5 +21,9 @@ InstagramPhoto.get_hashtag_photos(instagram_hashtag)
end
end
+
+ d... | Add to_s method for printing the name of the hashtag
|
diff --git a/app/models/spree/shipment_decorator.rb b/app/models/spree/shipment_decorator.rb
index abc1234..def5678 100644
--- a/app/models/spree/shipment_decorator.rb
+++ b/app/models/spree/shipment_decorator.rb
@@ -2,7 +2,7 @@ has_many :fulfillments
def fulfillment_provider
- shipping_method.calculator.resp... | Fix shipment fulfillment provider method to handle missing shipping method or calculator
|
diff --git a/spec/cc/analyzer/path_patterns_spec.rb b/spec/cc/analyzer/path_patterns_spec.rb
index abc1234..def5678 100644
--- a/spec/cc/analyzer/path_patterns_spec.rb
+++ b/spec/cc/analyzer/path_patterns_spec.rb
@@ -29,6 +29,23 @@ patterns.expanded.sort.must_equal(expected.sort)
end
+ it "works w... | Add explicit check of PathPatterns with cc-yaml
This is to ensure no regressions in this area. PathPatterns is coming to
become our defacto glob handler and it must be solid.
|
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.2.6"
+ spec.version = "1.3.0"
spec.authors = ["Gareth Rogers"... | Bump gem to include feedback widget
|
diff --git a/lib/announcr.rb b/lib/announcr.rb
index abc1234..def5678 100644
--- a/lib/announcr.rb
+++ b/lib/announcr.rb
@@ -1,5 +1,49 @@ require "announcr/version"
+require "announcr/prefix"
+require "announcr/namespace"
+require "announcr/event"
+require "announcr/event_scope"
+require "announcr/backends"
+
module... | Add main gem module and DSL
|
diff --git a/lib/beso/job.rb b/lib/beso/job.rb
index abc1234..def5678 100644
--- a/lib/beso/job.rb
+++ b/lib/beso/job.rb
@@ -9,7 +9,7 @@ end
def prop( name, title=nil )
- @props[ name.to_sym ] = ( title || name.to_s.titleize )
+ @props[ name.to_sym ] = "Prop:#{title || name.to_s.titleize}"
end... | Refactor title manipulation out of instance_exec block
|
diff --git a/app/controllers/old_relation_controller.rb b/app/controllers/old_relation_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/old_relation_controller.rb
+++ b/app/controllers/old_relation_controller.rb
@@ -35,7 +35,7 @@ rescue ActiveRecord::RecordNotFound
render :nothing => true, :... | Apply patch by Lars from osm dev list with the typo
|
diff --git a/app/controllers/publications_controller.rb b/app/controllers/publications_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/publications_controller.rb
+++ b/app/controllers/publications_controller.rb
@@ -2,47 +2,35 @@
class PublicationsController < ApplicationController
respond_to :jso... | Fix parameter handling for API endpoint
|
diff --git a/app/controllers/wasabbi_file_controller.rb b/app/controllers/wasabbi_file_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/wasabbi_file_controller.rb
+++ b/app/controllers/wasabbi_file_controller.rb
@@ -10,7 +10,7 @@ raise render(:file => "#{Rails.root}/public/404.html", :layout => f... | Revert "Fix file controller bug"
This reverts commit 32fb75345a2eaebfacccee25f12f6bfae4287d30.
|
diff --git a/chefapp.rb b/chefapp.rb
index abc1234..def5678 100644
--- a/chefapp.rb
+++ b/chefapp.rb
@@ -5,8 +5,6 @@ get '/' do
erb :index
end
-
+
end
-#ChefApp.run!
-
| Remove whitespace and commented out code.
|
diff --git a/app/controllers/districts_controller.rb b/app/controllers/districts_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/districts_controller.rb
+++ b/app/controllers/districts_controller.rb
@@ -22,6 +22,8 @@ end
def apply_stack
+ # Make sure the related resources are in-sync
+ @d... | Save district before applying stack so that related resources are in-sync
|
diff --git a/app/controllers/watchlist_controller.rb b/app/controllers/watchlist_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/watchlist_controller.rb
+++ b/app/controllers/watchlist_controller.rb
@@ -19,6 +19,7 @@ @anime = Anime.find(params[:anime_id])
@watch = Watchlist.find_by_anime_id_a... | Fix remove from watchlist bug.
|
diff --git a/spec/exif_gps_injector/media_spec.rb b/spec/exif_gps_injector/media_spec.rb
index abc1234..def5678 100644
--- a/spec/exif_gps_injector/media_spec.rb
+++ b/spec/exif_gps_injector/media_spec.rb
@@ -9,5 +9,6 @@ expect(media.tags).to_not eq(nil)
expect(media.tags).to_not eq({})
expect(media.tags.... | Add spec for specific tags
|
diff --git a/spec/integration/audit/audit_spec.rb b/spec/integration/audit/audit_spec.rb
index abc1234..def5678 100644
--- a/spec/integration/audit/audit_spec.rb
+++ b/spec/integration/audit/audit_spec.rb
@@ -0,0 +1,80 @@+require "spec_helper"
+
+require "support/shared/integration/integration_helper"
+require "chef/mi... | Add a happy path integration test.
Signed-off-by: Pete Higgins <e3b6cda228242c30b711ac17cb264f1dbadfd0b6@peterhiggins.org>
|
diff --git a/app/models/referrals/withdrawal_history.rb b/app/models/referrals/withdrawal_history.rb
index abc1234..def5678 100644
--- a/app/models/referrals/withdrawal_history.rb
+++ b/app/models/referrals/withdrawal_history.rb
@@ -1,5 +1,6 @@ module Referrals
class WithdrawalHistory < ApplicationRecord
belong... | Add default scope to withdrawal history
|
diff --git a/app/models/referent_value.rb b/app/models/referent_value.rb
index abc1234..def5678 100644
--- a/app/models/referent_value.rb
+++ b/app/models/referent_value.rb
@@ -1,4 +1,5 @@ class ReferentValue < ActiveRecord::Base
+ attr_accessible :key_name, :value, :normalized_value, :metadata, :private_data
belon... | Update referent values for mass assignment issue/requirement in recent rails 3 versions.
|
diff --git a/app/observers/api_sweeper.rb b/app/observers/api_sweeper.rb
index abc1234..def5678 100644
--- a/app/observers/api_sweeper.rb
+++ b/app/observers/api_sweeper.rb
@@ -2,6 +2,6 @@ observe Category, Entry
def after_save record
- expire_action(:controller => "/api/sync", :action => "all")
+ expire_a... | @thenathanjones: Remove the leading slash on the cache action to expire for the namespace
|
diff --git a/db/seeds.rb b/db/seeds.rb
index abc1234..def5678 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -22,6 +22,7 @@ user_id: rand(1..50),
commentable_id: rand(1..50),
commentable_type: "Question" )
+end
100.times do
Answer.create!( content: Fake... | Fix seed file, add 'end'
|
diff --git a/ddc.gemspec b/ddc.gemspec
index abc1234..def5678 100644
--- a/ddc.gemspec
+++ b/ddc.gemspec
@@ -18,11 +18,11 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
- spec.add_development_dependency "bundler", "~> 1.7"
- spec.add_development_dependency "rak... | Upgrade dependencies to support Rails 5.1
|
diff --git a/src/oca/rm/repo_manager.rb b/src/oca/rm/repo_manager.rb
index abc1234..def5678 100644
--- a/src/oca/rm/repo_manager.rb
+++ b/src/oca/rm/repo_manager.rb
@@ -3,6 +3,7 @@ #require 'storage_pool'
require 'uuid'
require 'fileutils'
+gem 'sequel', '< 3.0'
require 'sequel'
require 'logger'
| Use sequel < 3.0, it breaks repoman
git-svn-id: addd40251ba30a5efebfaf2146a7968786ebe177@713 3034c82b-c49b-4eb3-8279-a7acafdc01c0
|
diff --git a/lib/rich_cms.rb b/lib/rich_cms.rb
index abc1234..def5678 100644
--- a/lib/rich_cms.rb
+++ b/lib/rich_cms.rb
@@ -1,3 +1,5 @@+require 'jzip'
+require 'sass/plugin'
require "config/routes"
| Add 2 requires in order to fix apps in the test environment.
One require on sass should not be needed and should be investigated.
|
diff --git a/lib/ruby_ami.rb b/lib/ruby_ami.rb
index abc1234..def5678 100644
--- a/lib/ruby_ami.rb
+++ b/lib/ruby_ami.rb
@@ -13,10 +13,6 @@ module RubyAMI
def self.new_uuid
SecureRandom.uuid
- end
-
- def self.rbx?
- RbConfig::CONFIG['RUBY_INSTALL_NAME'] == 'rbx'
end
end
| [CS] Remove unused code to check for RBX
|
diff --git a/lib/testjour.rb b/lib/testjour.rb
index abc1234..def5678 100644
--- a/lib/testjour.rb
+++ b/lib/testjour.rb
@@ -18,7 +18,7 @@ return @logger if @logger
@logger = Logger.new("log/testjour.log")
@logger.formatter = proc { |severity, time, progname, msg| "#{time.strftime("%b %d %H:%M:%S")} [#{$P... | Allow environment variable to override log level
|
diff --git a/lib/keymap.rb b/lib/keymap.rb
index abc1234..def5678 100644
--- a/lib/keymap.rb
+++ b/lib/keymap.rb
@@ -16,6 +16,7 @@ '/' => 'HELP',
'?' => 'HELP',
'b' => 'BLANK',
+ '.' => 'BLANK',
'F' => 'FOOTER',
'f' => 'F... | Add a couple keyboard shortcuts
This allows the popular Logitech R800 to be used out of the box for full
control, including screen blanking and code execution. The play button
will run code on first tap, then clear results on second.
|
diff --git a/lib/mailer.rb b/lib/mailer.rb
index abc1234..def5678 100644
--- a/lib/mailer.rb
+++ b/lib/mailer.rb
@@ -0,0 +1,21 @@+require 'pony'
+class Mailer
+ def self.send(address, subject, message)
+ Pony.mail(
+ to: address,
+ from: "government_api_validator@continuity.net",
+ subject: subject,
... | Add Mailer class to send email to an address, with a subject and message.
|
diff --git a/lib/string.rb b/lib/string.rb
index abc1234..def5678 100644
--- a/lib/string.rb
+++ b/lib/string.rb
@@ -9,9 +9,4 @@ .tr('-', '_')
.downcase
end
-
- # Alias to .to_snake
- def underscore
- self.to_snake
- end
end
| Remove String.underscore due to Rails conflict
|
diff --git a/load_average.rb b/load_average.rb
index abc1234..def5678 100644
--- a/load_average.rb
+++ b/load_average.rb
@@ -0,0 +1,78 @@+#
+# load_average.rb
+#
+# This fact provides information about the load average on the underlying
+# system for last one, five and fifteen minutes; plus number of currently
+# runni... | Add Facter fact that provides information about the load average, etc ...
This fact provides information about the load average on the underlying
system for last one, five and fifteen minutes; plus number of currently
running processes and the total number of processes, and last process
ID that was used recently.
Sig... |
diff --git a/test/integration/round_creation_test.rb b/test/integration/round_creation_test.rb
index abc1234..def5678 100644
--- a/test/integration/round_creation_test.rb
+++ b/test/integration/round_creation_test.rb
@@ -7,5 +7,10 @@
post '/round/' + assigns[:round].url, charity: 'test_charity'
assert_respon... | Test round can be viewed via GET after creation
|
diff --git a/hiera-aws.gemspec b/hiera-aws.gemspec
index abc1234..def5678 100644
--- a/hiera-aws.gemspec
+++ b/hiera-aws.gemspec
@@ -23,4 +23,5 @@ spec.add_development_dependency "bundler"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec"
+ spec.add_development_dependency "rubocop"... | Add rubocop as dev dependency
|
diff --git a/spec/models/oauth_authentication_spec.rb b/spec/models/oauth_authentication_spec.rb
index abc1234..def5678 100644
--- a/spec/models/oauth_authentication_spec.rb
+++ b/spec/models/oauth_authentication_spec.rb
@@ -18,15 +18,6 @@ is_expected.to be_valid
subject.provider = nil
is_expected.t... | Remove a spec for the useless validation
|
diff --git a/lib/necromancer/converters/hash.rb b/lib/necromancer/converters/hash.rb
index abc1234..def5678 100644
--- a/lib/necromancer/converters/hash.rb
+++ b/lib/necromancer/converters/hash.rb
@@ -15,7 +15,7 @@ # # => {a: "1", b: "2", c: "3"}
#
# @api public
- def call(value, string: conf... | Change to fix option name
|
diff --git a/lib/omniauth/strategies/twitter.rb b/lib/omniauth/strategies/twitter.rb
index abc1234..def5678 100644
--- a/lib/omniauth/strategies/twitter.rb
+++ b/lib/omniauth/strategies/twitter.rb
@@ -5,7 +5,8 @@ module Strategies
class Twitter < OmniAuth::Strategies::OAuth
option :name, 'twitter'
- ... | Patch updating authorisation per Twitter authentication
Prevents authorising from opening Allow prompt on every authentication attempt. See: https://dev.twitter.com/docs/api/1/get/oauth/authenticate |
diff --git a/lib/puffery/builder/expanded_ad.rb b/lib/puffery/builder/expanded_ad.rb
index abc1234..def5678 100644
--- a/lib/puffery/builder/expanded_ad.rb
+++ b/lib/puffery/builder/expanded_ad.rb
@@ -10,8 +10,8 @@
attribute :description, max_chars: 80
- attribute :path1
- attribute :path2
+ at... | Set max_chars 15 for path1 and path2
|
diff --git a/adapters/spec/spec_helper.rb b/adapters/spec/spec_helper.rb
index abc1234..def5678 100644
--- a/adapters/spec/spec_helper.rb
+++ b/adapters/spec/spec_helper.rb
@@ -1,7 +1,8 @@ $LOAD_PATH.push File.expand_path('../../abc/', __FILE__)
-require 'abc-adapters'
require 'simplecov'
SimpleCov.start do
add_... | Fix coverage config in adapters module
Coverage was reporting 0%. This was because simplecov wasn't placed
before the abc-adapters part was loaded. Shuffling that one line fixed
the coverage report.
|
diff --git a/lib/stevenson/output_filter/zip.rb b/lib/stevenson/output_filter/zip.rb
index abc1234..def5678 100644
--- a/lib/stevenson/output_filter/zip.rb
+++ b/lib/stevenson/output_filter/zip.rb
@@ -31,17 +31,17 @@ end
def writeEntries(entries, path, io)
- entries.each { |e|
- zipFilePa... | Use do..end syntax for multiline-blocks
|
diff --git a/config/initializers/raven.rb b/config/initializers/raven.rb
index abc1234..def5678 100644
--- a/config/initializers/raven.rb
+++ b/config/initializers/raven.rb
@@ -2,4 +2,5 @@ # httpclient is the only faraday adpater which handles no_proxy
config.http_adapter = :httpclient
config.send_modules = fa... | Tweak sentry to include plugins in app only stacktraces
|
diff --git a/config/projects/angrychef.rb b/config/projects/angrychef.rb
index abc1234..def5678 100644
--- a/config/projects/angrychef.rb
+++ b/config/projects/angrychef.rb
@@ -0,0 +1,28 @@+#
+# Copyright:: Copyright (c) 2012 Opscode, Inc.
+# License:: Apache License, Version 2.0
+#
+# Licensed under the Apache License... | Add a project to build chef in separate directory
We cannot install vanilla omnibus packages on the machines that build or
test omnibus packages because they conflict over the /opt/chef
directory. We could install w/ rubygems but on some platforms omnibus is
the only viable method we have for building chef and all of ... |
diff --git a/lib/globalize/active_record/translation.rb b/lib/globalize/active_record/translation.rb
index abc1234..def5678 100644
--- a/lib/globalize/active_record/translation.rb
+++ b/lib/globalize/active_record/translation.rb
@@ -1,6 +1,9 @@ module Globalize
module ActiveRecord
class Translation < ::ActiveRe... | Update Translation model to make :locale accessible |
diff --git a/lib/hydra_attribute/association_builder.rb b/lib/hydra_attribute/association_builder.rb
index abc1234..def5678 100644
--- a/lib/hydra_attribute/association_builder.rb
+++ b/lib/hydra_attribute/association_builder.rb
@@ -25,7 +25,7 @@ def add_association_for_class
assoc = config.association(@type... | Use delete_all instead destroy for removing hydra attributes |
diff --git a/lib/inheritance_integer_type/extensions.rb b/lib/inheritance_integer_type/extensions.rb
index abc1234..def5678 100644
--- a/lib/inheritance_integer_type/extensions.rb
+++ b/lib/inheritance_integer_type/extensions.rb
@@ -21,7 +21,7 @@ included do
class << self
def _inheritance_mapping
- ... | Copy parents' mappings instead of accidentally sharing.
|
diff --git a/lib/localstorageshim-rails/view_helpers.rb b/lib/localstorageshim-rails/view_helpers.rb
index abc1234..def5678 100644
--- a/lib/localstorageshim-rails/view_helpers.rb
+++ b/lib/localstorageshim-rails/view_helpers.rb
@@ -3,7 +3,7 @@ def localstorage_shim
<<-HTML.strip.html_safe
<!--[if lte IE 7]... | Add .js ext to localstorageshim asset path
|
diff --git a/lib/puppet/provider/database_user/mysql.rb b/lib/puppet/provider/database_user/mysql.rb
index abc1234..def5678 100644
--- a/lib/puppet/provider/database_user/mysql.rb
+++ b/lib/puppet/provider/database_user/mysql.rb
@@ -9,7 +9,7 @@
def self.instances
users = mysql("mysql", '-BNe' "select concat(Us... | Fix bug when querying for all database users
This commit fixes an issue in self.instances of
database_user where none of the users were actually
being detected.
There was a accidental '\' in front of the '.' which
means that it will only consider users that have
one or more '.' in front of the '@'.
This commit remo... |
diff --git a/RKKiwiMatchers.podspec b/RKKiwiMatchers.podspec
index abc1234..def5678 100644
--- a/RKKiwiMatchers.podspec
+++ b/RKKiwiMatchers.podspec
@@ -15,7 +15,7 @@ s.source_files = 'Code/*.{h,m}'
# NOTE: The RestKit dependency is not specified within the Podspec because this pod is designed to be exclusivel... | Remove pre from Testing Podspec reference
|
diff --git a/OROpenSubtitleDownloader.podspec b/OROpenSubtitleDownloader.podspec
index abc1234..def5678 100644
--- a/OROpenSubtitleDownloader.podspec
+++ b/OROpenSubtitleDownloader.podspec
@@ -5,11 +5,11 @@ s.homepage = "https://github.com/orta/OROpenSubtitleDownloader"
s.license = { :type => 'BSD', :file... | Fix podspec to conforms sources to a specific tag
|
diff --git a/app/controllers/admins/registrations_controller.rb b/app/controllers/admins/registrations_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/admins/registrations_controller.rb
+++ b/app/controllers/admins/registrations_controller.rb
@@ -7,4 +7,10 @@ def check_first_user
redirect_to ne... | Attach the first user to the first team
|
diff --git a/app/views/api/v1/declarables/_declarable.json.rabl b/app/views/api/v1/declarables/_declarable.json.rabl
index abc1234..def5678 100644
--- a/app/views/api/v1/declarables/_declarable.json.rabl
+++ b/app/views/api/v1/declarables/_declarable.json.rabl
@@ -4,10 +4,18 @@
child :section do
attributes :title,... | Add notes to chapter and section nodes of commodity response
|
diff --git a/backend/app/helpers/spree/promotion_rules_helper.rb b/backend/app/helpers/spree/promotion_rules_helper.rb
index abc1234..def5678 100644
--- a/backend/app/helpers/spree/promotion_rules_helper.rb
+++ b/backend/app/helpers/spree/promotion_rules_helper.rb
@@ -2,8 +2,8 @@ module PromotionRulesHelper
def ... | Use i18n model_name syntax for promotion rules
This change opts to use the model_name.human syntax over the previous
convoluted Spree.t and demodulize method.
|
diff --git a/modules/openx/spec/default/spec.rb b/modules/openx/spec/default/spec.rb
index abc1234..def5678 100644
--- a/modules/openx/spec/default/spec.rb
+++ b/modules/openx/spec/default/spec.rb
@@ -7,3 +7,7 @@ describe port(443) do
it { should be_listening }
end
+
+describe command('curl localhost/admin/install.... | Add curl test for openx
|
diff --git a/spec/jobs/audit_job_spec.rb b/spec/jobs/audit_job_spec.rb
index abc1234..def5678 100644
--- a/spec/jobs/audit_job_spec.rb
+++ b/spec/jobs/audit_job_spec.rb
@@ -8,21 +8,20 @@ @file.apply_depositor_metadata(@user)
@file.save
end
- after do
- @file.delete
- end
describe "passing audit" do
... | Mark audit job tests as pending
|
diff --git a/db/migrate/20150618193748_create_skills.rb b/db/migrate/20150618193748_create_skills.rb
index abc1234..def5678 100644
--- a/db/migrate/20150618193748_create_skills.rb
+++ b/db/migrate/20150618193748_create_skills.rb
@@ -2,7 +2,7 @@ def change
create_table :skills do |t|
t.string :title, null:... | Change default of current_streak to 1
|
diff --git a/config/initializers/_libs.rb b/config/initializers/_libs.rb
index abc1234..def5678 100644
--- a/config/initializers/_libs.rb
+++ b/config/initializers/_libs.rb
@@ -8,8 +8,6 @@ require 'blank_to_nil'
require 'date_tools'
require 'csv'
-# FIXME
-#require 'csv_serialization'
require 'openssl'
require 'bas... | Remove csv serialization file. Not needed?
|
diff --git a/app/controllers/subnet_topology_controller.rb b/app/controllers/subnet_topology_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/subnet_topology_controller.rb
+++ b/app/controllers/subnet_topology_controller.rb
@@ -0,0 +1,18 @@+class SubnetTopologyController < ApplicationController
+ incl... | Add new subnet topology controller
|
diff --git a/app/serializers/helpdesk_ticket_serializer.rb b/app/serializers/helpdesk_ticket_serializer.rb
index abc1234..def5678 100644
--- a/app/serializers/helpdesk_ticket_serializer.rb
+++ b/app/serializers/helpdesk_ticket_serializer.rb
@@ -6,6 +6,7 @@ :target_grade,
:description,
... | QUALITY: Add missing is_closed field to ticket serialiser
|
diff --git a/octokit.gemspec b/octokit.gemspec
index abc1234..def5678 100644
--- a/octokit.gemspec
+++ b/octokit.gemspec
@@ -17,7 +17,7 @@ spec.name = 'octokit'
spec.require_paths = ['lib']
spec.required_rubygems_version = '>= 1.3.5'
- spec.summary = spec.description
+ spec.summary = "Ruby toolkit for working... | Update gemspec to avoid build warning
|
diff --git a/lib/expression.rb b/lib/expression.rb
index abc1234..def5678 100644
--- a/lib/expression.rb
+++ b/lib/expression.rb
@@ -14,7 +14,7 @@ if rand > (1/(2**depth) + 0.05)
op = create_terminal(variable_terminals)
else
- op = Expression::Base.create(variable_terminals, depth + 1)
+ op = ... | Update reference to Expression class
|
diff --git a/platforms/ios/framework/Tangram-es.podspec b/platforms/ios/framework/Tangram-es.podspec
index abc1234..def5678 100644
--- a/platforms/ios/framework/Tangram-es.podspec
+++ b/platforms/ios/framework/Tangram-es.podspec
@@ -8,7 +8,7 @@ s.homepage = 'https://github.com/tangrams/tangram-es'
s.licen... | Update iOS podspec docs URL
|
diff --git a/app/models/activity.rb b/app/models/activity.rb
index abc1234..def5678 100644
--- a/app/models/activity.rb
+++ b/app/models/activity.rb
@@ -5,12 +5,12 @@ validates :project, :presence => true, :allow_blank => false
validates :person, :presence => true, :allow_blank => false
- attr_accessor :minu... | Move some code to more logic place in Activity.
|
diff --git a/app/models/settings.rb b/app/models/settings.rb
index abc1234..def5678 100644
--- a/app/models/settings.rb
+++ b/app/models/settings.rb
@@ -1,7 +1,6 @@ class Settings < ActiveRecord::Base
- @instance = first
-
def self.instance
+ @instance ||= first
@instance ||= new
end
end
| Fix circular dependency while loading Settings [SCI-1004]
|
diff --git a/plugin/dtrace/lib/dtrace_report.rb b/plugin/dtrace/lib/dtrace_report.rb
index abc1234..def5678 100644
--- a/plugin/dtrace/lib/dtrace_report.rb
+++ b/plugin/dtrace/lib/dtrace_report.rb
@@ -5,6 +5,7 @@
def self.included(base)
base.extend DtraceMacro
+ @@tracer = nil
end
module DtraceMacro... | Handle the case where you have the plugin installed but not switched on.
git-svn-id: 40196796c19c0e7557af02d93710b150381d7241@92 f5dbc166-08e2-44d3-850c-36126807790f
|
diff --git a/db/migrate/20170117100902_combine_items_in_cart.rb b/db/migrate/20170117100902_combine_items_in_cart.rb
index abc1234..def5678 100644
--- a/db/migrate/20170117100902_combine_items_in_cart.rb
+++ b/db/migrate/20170117100902_combine_items_in_cart.rb
@@ -18,4 +18,17 @@ end
end
end
+
+ def down ... | Add reverse method for counting product quantity in cart
|
diff --git a/poker-dice/hand_spec.rb b/poker-dice/hand_spec.rb
index abc1234..def5678 100644
--- a/poker-dice/hand_spec.rb
+++ b/poker-dice/hand_spec.rb
@@ -3,13 +3,13 @@
describe Hand do
it "has five dice, each of which has a known face value" do
- dice = 5.times.map { LoadedDie.new('Q') }
+ dice = %w[ Q Q ... | Make all the lines that create dice be consistent
|
diff --git a/ruby_git_hooks.gemspec b/ruby_git_hooks.gemspec
index abc1234..def5678 100644
--- a/ruby_git_hooks.gemspec
+++ b/ruby_git_hooks.gemspec
@@ -22,6 +22,8 @@ spec.require_paths = ["lib"]
spec.bindir = "bin"
+ spec.add_runtime_dependency "pony" # For email
+
spec.add_development_dependency "b... | Include Pony gem in gemspec for email notification
|
diff --git a/app/resources/api/v1/searchable_resource.rb b/app/resources/api/v1/searchable_resource.rb
index abc1234..def5678 100644
--- a/app/resources/api/v1/searchable_resource.rb
+++ b/app/resources/api/v1/searchable_resource.rb
@@ -8,17 +8,35 @@ key_type :string
def self.find_by_key(text, options = ... | Move Places toward top of search.
Why:
Searching for "Bedford", for example, didn't return desired results --
to see that municipality. Now, we put the matching municipality on top
of the search results.
|
diff --git a/test/cir_test_case.rb b/test/cir_test_case.rb
index abc1234..def5678 100644
--- a/test/cir_test_case.rb
+++ b/test/cir_test_case.rb
@@ -0,0 +1,61 @@+require 'cir'
+require 'tmpdir'
+require 'test/unit'
+require 'fileutils'
+
+##
+# Parent test case that will contain shared functionality that we need
+# acr... | Add missing parent test case class
|
diff --git a/script/cruise_build.rb b/script/cruise_build.rb
index abc1234..def5678 100644
--- a/script/cruise_build.rb
+++ b/script/cruise_build.rb
@@ -8,7 +8,7 @@ project_name = ARGV.first
case project_name
-when "racing_on_rails"
+when "racing_on_rails", "montanacycling_branch"
exec "rake cruise"
when "aba", ... | Add cc.rb CI config for montana cycling branch without /local
|
diff --git a/resque-logstash.gemspec b/resque-logstash.gemspec
index abc1234..def5678 100644
--- a/resque-logstash.gemspec
+++ b/resque-logstash.gemspec
@@ -8,8 +8,8 @@ spec.version = Resque::Logstash::VERSION
spec.authors = ["Eugene Pimenov"]
spec.email = ["eugene@libc.st"]
- spec.descript... | Add description and summary in the gemspec
Bundler was complaining about FIXME in both of them
|
diff --git a/Casks/appcode-eap-bundled-jdk.rb b/Casks/appcode-eap-bundled-jdk.rb
index abc1234..def5678 100644
--- a/Casks/appcode-eap-bundled-jdk.rb
+++ b/Casks/appcode-eap-bundled-jdk.rb
@@ -0,0 +1,21 @@+cask :v1 => 'appcode-eap-bundled-jdk' do
+ version '141.1399.2'
+ sha256 'f9f9b7ae73321a1d4a31aaaed7ebb2d15ada03... | Add cask for AppCode EAP with bundled JDK
|
diff --git a/reactive_record.gemspec b/reactive_record.gemspec
index abc1234..def5678 100644
--- a/reactive_record.gemspec
+++ b/reactive_record.gemspec
@@ -13,7 +13,7 @@ gem.homepage = "https://github.com/twopoint718/reactive_record"
gem.licenses = ['MIT']
- gem.files = `git ls-files`.split($... | Fix missing parser.rb in packaged gem
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -10,4 +10,3 @@
depends 'python'
depends 'runit'
-depends 'mercurial'
| Drop mercurial like it's hot
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -9,7 +9,7 @@
depends 'apt'
depends 'ubuntu_base', '0.6.0'
-depends 'octobase', '0.4.0'
+depends 'octobase', '0.5.0'
depends 'docker', '0.2.0'
depends 'redis'
depends 'nodejs'
| Make sure newer octobase is used.
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -6,7 +6,7 @@ long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.2.1'
-depends 'yum', '~> 3.0'
+depends 'yum', '~> 3.2'
%w(amazon centos fedora oracle redhat scientific).each... | Update yum dep from 3.0 to 3.2
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -9,6 +9,6 @@ source_url 'https://github.com/evertrue/s3_put-cookbook' if respond_to?(:source_url)
issues_url 'https://github.com/evertrue/s3_put-cookbook/issues' if respond_to?(:issues_url)
-supports 'ubuntu',... | Update meta to properly reflect testing/support
This cookbook isn’t tested on Ubuntu 12, and it’s EOL anyway.
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -6,7 +6,7 @@ long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '2.2.0'
-depends 'compat_resource', '>= 12.14.6'
+depends 'compat_resource', '>= 12.14.7'
depends 'yum-epel'
%w... | Use a slightly better compat_resource
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.