diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/language/BEGIN_spec.rb b/language/BEGIN_spec.rb
index abc1234..def5678 100644
--- a/language/BEGIN_spec.rb
+++ b/language/BEGIN_spec.rb
@@ -18,6 +18,11 @@ -> { eval "1.times { BEGIN { 1 } }" }.should raise_error(SyntaxError)
end
+ it "uses top-level for self" do
+ eval("BEGIN { ScratchPad << s... | Write self before BEGIN node
|
diff --git a/lib/sinatra_asset_packager/routes.rb b/lib/sinatra_asset_packager/routes.rb
index abc1234..def5678 100644
--- a/lib/sinatra_asset_packager/routes.rb
+++ b/lib/sinatra_asset_packager/routes.rb
@@ -24,5 +24,11 @@ SinatraAssetPackager.environment["#{params[:splat][0]}.#{format}"]
end
end
+... | Add image support for .svgs
|
diff --git a/lib/stack_master/commands/compile.rb b/lib/stack_master/commands/compile.rb
index abc1234..def5678 100644
--- a/lib/stack_master/commands/compile.rb
+++ b/lib/stack_master/commands/compile.rb
@@ -5,7 +5,7 @@ include Commander::UI
def perform
- puts(proposed_stack.template_body)
+ ... | Print template to StackMaster configured stdout
Allows us to test the output via Cucumber
|
diff --git a/lib/stripe/resources/issuing/card.rb b/lib/stripe/resources/issuing/card.rb
index abc1234..def5678 100644
--- a/lib/stripe/resources/issuing/card.rb
+++ b/lib/stripe/resources/issuing/card.rb
@@ -13,7 +13,7 @@
def details(params = {}, opts = {})
resp, opts = request(:get, resource_url + "/... | Revert "Use Util.convert_to_stripe_object instead of initialize_from"
This reverts commit ea736eba1b8f33d8febbf0b1be0957f34f7b04db.
|
diff --git a/vagrant-butcher.gemspec b/vagrant-butcher.gemspec
index abc1234..def5678 100644
--- a/vagrant-butcher.gemspec
+++ b/vagrant-butcher.gemspec
@@ -18,7 +18,7 @@ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ["lib"]
- gem.add_dependency "ridley", ">= 1.5.3"
+ gem.a... | Update gemspec to fix incompatibilities
|
diff --git a/guessing_game/guess.rb b/guessing_game/guess.rb
index abc1234..def5678 100644
--- a/guessing_game/guess.rb
+++ b/guessing_game/guess.rb
@@ -5,7 +5,20 @@ # A guessing game in which the hints might not be true!
#
#=======================================================
+# Create the game class
+class Gam... | Create game and player class:
|
diff --git a/examples/checkout/search/search_abandoned_transactions.rb b/examples/checkout/search/search_abandoned_transactions.rb
index abc1234..def5678 100644
--- a/examples/checkout/search/search_abandoned_transactions.rb
+++ b/examples/checkout/search/search_abandoned_transactions.rb
@@ -8,7 +8,10 @@ # You can pa... | Add more options to search abandonated transaction example.
|
diff --git a/ruby_event_store/lib/ruby_event_store/transform_keys.rb b/ruby_event_store/lib/ruby_event_store/transform_keys.rb
index abc1234..def5678 100644
--- a/ruby_event_store/lib/ruby_event_store/transform_keys.rb
+++ b/ruby_event_store/lib/ruby_event_store/transform_keys.rb
@@ -14,16 +14,15 @@ private
... | Refactor to handle Array of arrays
|
diff --git a/lib/factory_girl/remote.rb b/lib/factory_girl/remote.rb
index abc1234..def5678 100644
--- a/lib/factory_girl/remote.rb
+++ b/lib/factory_girl/remote.rb
@@ -16,7 +16,7 @@ end
def invoke(method, attrs)
- Rack::Remote.invoke self.remote, :factory_girl_remote, attrs, { 'Accept' => 'application/... | Add method to register Rack::Remote handler.
|
diff --git a/ted_utils.rb b/ted_utils.rb
index abc1234..def5678 100644
--- a/ted_utils.rb
+++ b/ted_utils.rb
@@ -0,0 +1,19 @@+module TedUtils
+
+def self.active_view
+ Sketchup.active_model.active_view
+end
+
+def self.camera
+ active_view.camera
+end
+
+# set the active camera's aspect ratio to be locked to whatever
+... | Add short-hand helpers- added utility to set aspect ratio based on view
|
diff --git a/lib/hal_api/representer.rb b/lib/hal_api/representer.rb
index abc1234..def5678 100644
--- a/lib/hal_api/representer.rb
+++ b/lib/hal_api/representer.rb
@@ -1,6 +1,12 @@ # encoding: utf-8
class HalApi::Representer < Roar::Decorator
+ include Roar::Hypermedia
+ include Roar::JSON::HAL
+ include Roar::J... | Fix includes, specifically require roar/rails/hal or it does not load correctly
|
diff --git a/lib/neoteric-protection.rb b/lib/neoteric-protection.rb
index abc1234..def5678 100644
--- a/lib/neoteric-protection.rb
+++ b/lib/neoteric-protection.rb
@@ -2,17 +2,26 @@
module Neoteric
module Protection
- extend ActiveSupport::Concern
+ def self.included(base)
+ base.extend ClassMethods
+ ... | Make the username easier to configure, default to neoteric password
|
diff --git a/lib/response/status.rb b/lib/response/status.rb
index abc1234..def5678 100644
--- a/lib/response/status.rb
+++ b/lib/response/status.rb
@@ -11,6 +11,8 @@ NOT_MODIFIED = new(304, 'Not Modified' )
FOUND = new(302, 'Found' )
MOVED_PERMANENTLY = new(301, 'Moved Per... | Add http stats code fixtures for 401 and 403
|
diff --git a/lib/superstore/base.rb b/lib/superstore/base.rb
index abc1234..def5678 100644
--- a/lib/superstore/base.rb
+++ b/lib/superstore/base.rb
@@ -1,6 +1,5 @@ require 'set'
-require 'active_record/attributes'
-require 'active_record/define_callbacks' if ActiveRecord.version >= Gem::Version.new('5.1.0')
+require '... | Remove code that supported rails 5.1
|
diff --git a/lib/troo/api/client.rb b/lib/troo/api/client.rb
index abc1234..def5678 100644
--- a/lib/troo/api/client.rb
+++ b/lib/troo/api/client.rb
@@ -35,10 +35,6 @@ response.is_a?(Array)
end
- def log_endpoint
- Troo.logger.debug(endpoint) if log?
- end
-
def empty_response?
... | Move method to improve class readability. |
diff --git a/scraper_tools.gemspec b/scraper_tools.gemspec
index abc1234..def5678 100644
--- a/scraper_tools.gemspec
+++ b/scraper_tools.gemspec
@@ -16,8 +16,8 @@ s.add_development_dependency "minitest"
s.add_development_dependency "webmock"
s.add_development_dependency "mocha"
-
- s.files = Dir.glob("... | Remove files referenced by gem spec that don’t yet exist |
diff --git a/lib/cfer/core/hooks.rb b/lib/cfer/core/hooks.rb
index abc1234..def5678 100644
--- a/lib/cfer/core/hooks.rb
+++ b/lib/cfer/core/hooks.rb
@@ -2,13 +2,15 @@ # Provides support for hooking into resource types, and evaluating code before or after properties are set
module Hooks
def pre_block
- se... | Reduce code duplication for CodeClimate
|
diff --git a/lib/contextio/account_collection.rb b/lib/contextio/account_collection.rb
index abc1234..def5678 100644
--- a/lib/contextio/account_collection.rb
+++ b/lib/contextio/account_collection.rb
@@ -1,9 +1,15 @@-require_relative 'api/resource_collection'
+require_relative 'api/filtered_resource_collection'
+requi... | Make AccountCollection filtered and document it.
|
diff --git a/lib/event/team_join.rb b/lib/event/team_join.rb
index abc1234..def5678 100644
--- a/lib/event/team_join.rb
+++ b/lib/event/team_join.rb
@@ -17,6 +17,7 @@
def process
@user = Operationcode::Slack::User.new(@data['event']['user'])
+ logger.info("Welcoming user #{resolve_user_name}")
... | Add logging to team join
|
diff --git a/lib/plugins/pokemon.rb b/lib/plugins/pokemon.rb
index abc1234..def5678 100644
--- a/lib/plugins/pokemon.rb
+++ b/lib/plugins/pokemon.rb
@@ -26,7 +26,10 @@ result['types'].each { |type| types += "#{type['name']}" }
end
+ # Easter Egg Images
image = 'http://i.imgur.com/di... | Add easter egg image to Pokemon plugin
|
diff --git a/lib/rack/fiber_pool.rb b/lib/rack/fiber_pool.rb
index abc1234..def5678 100644
--- a/lib/rack/fiber_pool.rb
+++ b/lib/rack/fiber_pool.rb
@@ -2,9 +2,11 @@
module Rack
class FiberPool
+ SIZE = 100
+
def initialize(app)
@app = app
- @fiber_pool = ::FiberPool.new
+ @fiber_pool = ::... | Use size constant for tunable pool size, not the best solution but
better.
|
diff --git a/lib/trashed/railtie.rb b/lib/trashed/railtie.rb
index abc1234..def5678 100644
--- a/lib/trashed/railtie.rb
+++ b/lib/trashed/railtie.rb
@@ -28,8 +28,8 @@ app.config.trashed.gauge_sample_rate ||= 0.05
app.config.trashed.logger ||= Rails.logger
- app.middleware.insert_after Rack::Runtime,... | Fix error when fixing deprecation warnings
These needed to be `::Rack::Runtime` not `Rack::Runtime` when the quotes
were removed to fix deprecation warnings from Rails.
|
diff --git a/spec/controllers/myaccount/overviews_controller_spec.rb b/spec/controllers/myaccount/overviews_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/myaccount/overviews_controller_spec.rb
+++ b/spec/controllers/myaccount/overviews_controller_spec.rb
@@ -11,6 +11,13 @@ end
it "show ... | Add test for better test coverage |
diff --git a/spec/system/verification/level_two_verification_spec.rb b/spec/system/verification/level_two_verification_spec.rb
index abc1234..def5678 100644
--- a/spec/system/verification/level_two_verification_spec.rb
+++ b/spec/system/verification/level_two_verification_spec.rb
@@ -24,10 +24,7 @@ end
context "... | Remove unnecessary locales check in specs
We define the available locales in the test environment, so Spanish is
always available in this environment even if it isn't available in the
production environment.
|
diff --git a/lib/tasks/hotspot-metrics-seed.rake b/lib/tasks/hotspot-metrics-seed.rake
index abc1234..def5678 100644
--- a/lib/tasks/hotspot-metrics-seed.rake
+++ b/lib/tasks/hotspot-metrics-seed.rake
@@ -1,11 +1,11 @@ require 'yaml'
desc 'Generate a seeds file from a metrics YAML file'
-task :hotspot_metrics_seed, ... | Fix the last rubocop warnings
|
diff --git a/lib/versionator/detector/drupal7.rb b/lib/versionator/detector/drupal7.rb
index abc1234..def5678 100644
--- a/lib/versionator/detector/drupal7.rb
+++ b/lib/versionator/detector/drupal7.rb
@@ -10,7 +10,7 @@ set :detect_files, %w{CHANGELOG.txt cron.php index.php install.php xmlrpc.php}
set :in... | Fix installed version detection for Drupal 7 |
diff --git a/call_sign.gemspec b/call_sign.gemspec
index abc1234..def5678 100644
--- a/call_sign.gemspec
+++ b/call_sign.gemspec
@@ -18,6 +18,8 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
+ spec.add_dependency 'countries'
+
spec.add_development_dependency ... | Add the countries gem to the gemspec.
|
diff --git a/db/seeds.rb b/db/seeds.rb
index abc1234..def5678 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -8,7 +8,7 @@ survey = Survey.create(user_id: User.first.id,
name: "DBC Feedback")
-question = Question.create(survey_id: survey.id,
+question1 = Question.create(survey_id: survey.id,
... | Update seed file so survey has two questions
|
diff --git a/spec/features/admin/runners_spec.rb b/spec/features/admin/runners_spec.rb
index abc1234..def5678 100644
--- a/spec/features/admin/runners_spec.rb
+++ b/spec/features/admin/runners_spec.rb
@@ -8,6 +8,9 @@
describe "GET /admin/runners" do
before do
+ runner = FactoryGirl.create(:runner)
+ ... | Write test for 500 error on runners page
|
diff --git a/spec/realworld/double_check_spec.rb b/spec/realworld/double_check_spec.rb
index abc1234..def5678 100644
--- a/spec/realworld/double_check_spec.rb
+++ b/spec/realworld/double_check_spec.rb
@@ -1,6 +1,6 @@ # frozen_string_literal: true
-RSpec.describe "double checking sources", :realworld => true do
+RSpec... | Enable retries on flaky spec
|
diff --git a/spec/requests/user/profiles_spec.rb b/spec/requests/user/profiles_spec.rb
index abc1234..def5678 100644
--- a/spec/requests/user/profiles_spec.rb
+++ b/spec/requests/user/profiles_spec.rb
@@ -8,4 +8,10 @@ current_path.should == "/users/#{user.id}-#{user.name.parameterize}/profile"
page.should have... | Add pending user profile tests.
|
diff --git a/lib/active_record_where_assoc.rb b/lib/active_record_where_assoc.rb
index abc1234..def5678 100644
--- a/lib/active_record_where_assoc.rb
+++ b/lib/active_record_where_assoc.rb
@@ -4,7 +4,15 @@ require "active_record"
module ActiveRecordWhereAssoc
- # Default options for the gem. Meant to be modified in... | Add information about the default_options directly in the code
|
diff --git a/guard-rspec.gemspec b/guard-rspec.gemspec
index abc1234..def5678 100644
--- a/guard-rspec.gemspec
+++ b/guard-rspec.gemspec
@@ -18,7 +18,7 @@ s.require_path = 'lib'
s.add_dependency 'guard', '~> 2.1'
- s.add_dependency 'rspec', '>= 2.14', '< 4.0'
+ # s.add_dependency 'rspec', '>= 2.14', '< 4.0'
... | Disable rspec dependency for now
|
diff --git a/chef-zero.gemspec b/chef-zero.gemspec
index abc1234..def5678 100644
--- a/chef-zero.gemspec
+++ b/chef-zero.gemspec
@@ -13,7 +13,7 @@ s.license = 'Apache 2.0'
s.add_dependency 'mixlib-log', '~> 1.3'
- s.add_dependency 'hashie', '~> 2.0'
+ s.add_dependency 'hashie', '>= 2.0', '< 4.... | Allow Hashie to float to 3.x (no need to be so specific)
|
diff --git a/lib/headhunter/html_validator.rb b/lib/headhunter/html_validator.rb
index abc1234..def5678 100644
--- a/lib/headhunter/html_validator.rb
+++ b/lib/headhunter/html_validator.rb
@@ -8,9 +8,9 @@ @responses = []
end
- def validate(url, html)
+ def validate(uri, html)
# Docs for Tidy: ... | Rename url parameter to uri
|
diff --git a/lib/dap/input/csv.rb b/lib/dap/input/csv.rb
index abc1234..def5678 100644
--- a/lib/dap/input/csv.rb
+++ b/lib/dap/input/csv.rb
@@ -34,7 +34,12 @@ res = {}
line = self.fd.readline rescue nil
return Error::EOF unless line
- arr = CSV.parse(line) rescue nil
+
+ # Short-circuit t... | Speed up CSV parsing by 4 x when the line doesn't contain quotes
|
diff --git a/lib/puppet/parser/functions/get_latest_vagrant_version.rb b/lib/puppet/parser/functions/get_latest_vagrant_version.rb
index abc1234..def5678 100644
--- a/lib/puppet/parser/functions/get_latest_vagrant_version.rb
+++ b/lib/puppet/parser/functions/get_latest_vagrant_version.rb
@@ -5,6 +5,6 @@ newfunction(:... | Use new checkpoint api for latest version lookup
|
diff --git a/lib/dm-timestamps.rb b/lib/dm-timestamps.rb
index abc1234..def5678 100644
--- a/lib/dm-timestamps.rb
+++ b/lib/dm-timestamps.rb
@@ -19,7 +19,7 @@
module InstanceMethods
def update_magic_properties
- self.class.properties.slice(*MAGIC_PROPERTIES.keys).each do |property|
+ self.cla... | Change slice to find_all in update_magic_properties
|
diff --git a/lib/docker_runner.rb b/lib/docker_runner.rb
index abc1234..def5678 100644
--- a/lib/docker_runner.rb
+++ b/lib/docker_runner.rb
@@ -26,8 +26,7 @@ c.attach(logs: true) do |s,c|
yield s,c
end
- ensure e
- puts "Caught error inside DockerRunner: #{e}"
+ ensure
# This ap... | Revert "For debugging purposes show the error"
This reverts commit 8d43cbab5fbcd4429871b45a5fa9b2e34449c374.
|
diff --git a/lib/mirah/jvm/types/null_type.rb b/lib/mirah/jvm/types/null_type.rb
index abc1234..def5678 100644
--- a/lib/mirah/jvm/types/null_type.rb
+++ b/lib/mirah/jvm/types/null_type.rb
@@ -3,7 +3,7 @@ module Types
class NullType < Type
def initialize
- super('java.lang.Object')
+ ... | Add a class mirror to the NullType
|
diff --git a/lib/partial_ks/filtered_table.rb b/lib/partial_ks/filtered_table.rb
index abc1234..def5678 100644
--- a/lib/partial_ks/filtered_table.rb
+++ b/lib/partial_ks/filtered_table.rb
@@ -26,9 +26,9 @@
def filter_based_on_custom_filter_relation
if custom_filter_relation.is_a?(ActiveRecord::Relation) |... | Refactor : remove useless variable assignment
|
diff --git a/lib/tasks/store_files_on_s3.rake b/lib/tasks/store_files_on_s3.rake
index abc1234..def5678 100644
--- a/lib/tasks/store_files_on_s3.rake
+++ b/lib/tasks/store_files_on_s3.rake
@@ -13,29 +13,34 @@ false
end
+ def push_to_s3(item, filename)
+ id_partition = ("%09d" % item.id).scan(/\d{3}/).join(... | Include Journal attachments when migrating to S3
|
diff --git a/lib/tasks/update_timeframes.rake b/lib/tasks/update_timeframes.rake
index abc1234..def5678 100644
--- a/lib/tasks/update_timeframes.rake
+++ b/lib/tasks/update_timeframes.rake
@@ -0,0 +1,9 @@+namespace :sensorstory do
+ desc "Update text_component timeframes (from and to hour)"
+ task :update_timeframes ... | Add rake task to change from and to hour in existing text components
|
diff --git a/cruise_config.rb b/cruise_config.rb
index abc1234..def5678 100644
--- a/cruise_config.rb
+++ b/cruise_config.rb
@@ -1,4 +1,5 @@ Project.configure do |project|
project.email_notifier.emails = ['scott@butlerpress.com']
project.build_command = "./script/cruise_build.rb #{project.name}"
+ project.trigge... | Add cc.rb trigger for local part of repository
|
diff --git a/lib/conceptql/tree.rb b/lib/conceptql/tree.rb
index abc1234..def5678 100644
--- a/lib/conceptql/tree.rb
+++ b/lib/conceptql/tree.rb
@@ -14,7 +14,6 @@ @behavior = opts.fetch(:behavior, nil)
@defined = {}
@temp_tables = {}
- @opts = {}
@scope = opts.fetch(:scope, Scope.new)
... | Allow setting scope from Tree
|
diff --git a/lib/csv2api/server.rb b/lib/csv2api/server.rb
index abc1234..def5678 100644
--- a/lib/csv2api/server.rb
+++ b/lib/csv2api/server.rb
@@ -14,25 +14,34 @@ end
# Auto-creates endpoints from filenames
- # @example
- # If :files contains 'tasks.csv', it will generate an endpoint like:
+ # ... | Add xml content_type response support
Cleanup previous end-point generation block
|
diff --git a/lib/dry/types/enum.rb b/lib/dry/types/enum.rb
index abc1234..def5678 100644
--- a/lib/dry/types/enum.rb
+++ b/lib/dry/types/enum.rb
@@ -13,13 +13,18 @@ # @return [Hash]
attr_reader :mapping
+ # @return [Hash]
+ attr_reader :inverted_mapping
+
# @param [Type] type
# @p... | Replace array search with hash lookup
|
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,6 +5,9 @@ require 'support/mocks'
RSpec.configure do |config|
+ config.color_enabled = true
+ config.formatter = :documentation
+
config.before(:each) do
# Pret... | Enable color and format documentation in test
|
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
@@ -12,6 +12,7 @@ 'api-fake.knapsackpro.com',
'api-staging.knapsackpro.com',
'api.knapsackpro.dev',
+ 'api-disabled-for-fork.knapsackpro.com',
)
end
@@ -22,4 +2... | Add missing url we test
|
diff --git a/spec/system_spec.rb b/spec/system_spec.rb
index abc1234..def5678 100644
--- a/spec/system_spec.rb
+++ b/spec/system_spec.rb
@@ -0,0 +1,72 @@+require 'spec_helper'
+
+require 'observed/system'
+
+describe Observed::System do
+ subject {
+ described_class.new(the_config)
+ }
+
+ context 'with reporters... | Add the spec for Observed::System
|
diff --git a/lib/foreman/kicker.rb b/lib/foreman/kicker.rb
index abc1234..def5678 100644
--- a/lib/foreman/kicker.rb
+++ b/lib/foreman/kicker.rb
@@ -20,7 +20,7 @@ end
@watchdog = Foreman::Kicker::Watchdog.new
- @watchdog.start(*args)
+ @watchdog.start(*args.map(&:to_s))
end
def self... | Make sure to cast to string.
|
diff --git a/lib/js_assets/list.rb b/lib/js_assets/list.rb
index abc1234..def5678 100644
--- a/lib/js_assets/list.rb
+++ b/lib/js_assets/list.rb
@@ -1,23 +1,27 @@ module JsAssets
class List
+ class << self
+ attr_accessor :exclude, :allow
+ end
@exclude = ['application.js']
- @allow = ['.eof']
+ ... | Add configurable variables for filter
|
diff --git a/lib/sneakers/tasks.rb b/lib/sneakers/tasks.rb
index abc1234..def5678 100644
--- a/lib/sneakers/tasks.rb
+++ b/lib/sneakers/tasks.rb
@@ -26,8 +26,8 @@ EOF
exit(1)
end
-
- r = Sneakers::Runner.new(workers)
+ opts = (ENV['WORKER_COUNT'].present? ? {:workers => ENV['WORKER_COUNT'].to_i} : {})... | Modify rake task to take worker count as ENV variable
|
diff --git a/lib/tasks/streak.rake b/lib/tasks/streak.rake
index abc1234..def5678 100644
--- a/lib/tasks/streak.rake
+++ b/lib/tasks/streak.rake
@@ -12,4 +12,19 @@
puts JSON.pretty_generate(to_display)
end
+
+ desc "View the stages and their associated keys for a given pipeline. Use this to figure out the sta... | Create task for viewing stages and stage keys
|
diff --git a/wwdc.gemspec b/wwdc.gemspec
index abc1234..def5678 100644
--- a/wwdc.gemspec
+++ b/wwdc.gemspec
@@ -15,7 +15,7 @@ s.description = "A command-line interface for accessing WWDC session content"
s.add_dependency "commander", "~> 4.1"
- s.add_dependency "excon", "~> 0.25"
+ s.add_dependency "excon", "... | Upgrade excon to version 0.71.0 or later
|
diff --git a/spec/features/registration_spec.rb b/spec/features/registration_spec.rb
index abc1234..def5678 100644
--- a/spec/features/registration_spec.rb
+++ b/spec/features/registration_spec.rb
@@ -0,0 +1,28 @@+require 'spec_helper'
+
+describe 'Registration', :type => :feature, feature: true, js: true do
+ let(:e... | Make middleware definition less complex
|
diff --git a/spec/models/vagrant_driver_spec.rb b/spec/models/vagrant_driver_spec.rb
index abc1234..def5678 100644
--- a/spec/models/vagrant_driver_spec.rb
+++ b/spec/models/vagrant_driver_spec.rb
@@ -12,9 +12,9 @@ end
it 'should detect a single aws vm' do
expect(@vms.size).to eq(1)
- expect(@vms[0... | Fix extra whitespace inside parentheses
Rubocop rule: Layout/SpaceInsideParens: Space inside parentheses detected
|
diff --git a/spec/system/prefork_worker_spec.rb b/spec/system/prefork_worker_spec.rb
index abc1234..def5678 100644
--- a/spec/system/prefork_worker_spec.rb
+++ b/spec/system/prefork_worker_spec.rb
@@ -0,0 +1,60 @@+require 'spec_helper_system'
+
+case node.facts['osfamily']
+when 'RedHat'
+ servicename = 'httpd'
+when ... | Add system tests for prefork / worker mpm module
|
diff --git a/config/god/app.rb b/config/god/app.rb
index abc1234..def5678 100644
--- a/config/god/app.rb
+++ b/config/god/app.rb
@@ -2,8 +2,10 @@
SidekiqWorkers.configure do
if ENV['RAILS_ENV']=='production'
- # one worker for the hets queue
- watch 'hets', 2
+ # one worker per core
+ `nproc`.to_i.time... | Adjust the number of hets processes by the number of cpu cores.
|
diff --git a/Casks/sqlite-database-browser.rb b/Casks/sqlite-database-browser.rb
index abc1234..def5678 100644
--- a/Casks/sqlite-database-browser.rb
+++ b/Casks/sqlite-database-browser.rb
@@ -1,8 +1,8 @@ class SqliteDatabaseBrowser < Cask
- version '3.2.0'
- sha256 '4f89640ffecf6e663554e07987dc6d555929f9e8c0db55b228... | Update Database Browser 3.3.1 for SQLite
This new version reflects the project rename upstream
|
diff --git a/test/integration/add_to_list/inspec/add_to_list_spec.rb b/test/integration/add_to_list/inspec/add_to_list_spec.rb
index abc1234..def5678 100644
--- a/test/integration/add_to_list/inspec/add_to_list_spec.rb
+++ b/test/integration/add_to_list/inspec/add_to_list_spec.rb
@@ -15,5 +15,5 @@
# Add to an empty l... | Fix matching "(" in tests
|
diff --git a/site-cookbooks/backup_restore/spec/recipes/fetch_s3_spec.rb b/site-cookbooks/backup_restore/spec/recipes/fetch_s3_spec.rb
index abc1234..def5678 100644
--- a/site-cookbooks/backup_restore/spec/recipes/fetch_s3_spec.rb
+++ b/site-cookbooks/backup_restore/spec/recipes/fetch_s3_spec.rb
@@ -0,0 +1,34 @@+requir... | Add chef-spec for fetch_s3 recipe
|
diff --git a/chef/roles/vagrant.rb b/chef/roles/vagrant.rb
index abc1234..def5678 100644
--- a/chef/roles/vagrant.rb
+++ b/chef/roles/vagrant.rb
@@ -3,7 +3,6 @@
run_list([
"recipe[vagrant_extras]",
- "recipe[vagrant_extras::ssl_cert]",
])
default_attributes({
| Remove no longer used recipe.
|
diff --git a/Casks/configure-application-dock-tile.rb b/Casks/configure-application-dock-tile.rb
index abc1234..def5678 100644
--- a/Casks/configure-application-dock-tile.rb
+++ b/Casks/configure-application-dock-tile.rb
@@ -0,0 +1,12 @@+cask :v1 => 'configure-application-dock-tile' do
+ version '1.0'
+ sha256 '064f5... | Add Configure Application Dock Tile
Use version string interpolation for app stanza
|
diff --git a/spec/controllers/api/v0/product_images_controller_spec.rb b/spec/controllers/api/v0/product_images_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/api/v0/product_images_controller_spec.rb
+++ b/spec/controllers/api/v0/product_images_controller_spec.rb
@@ -2,37 +2,37 @@
require 'sp... | Increase readability of image controller spec
Best viewed without whitespace changes.
- Decrease indent.
- Move `let` to top like in other specs.
- Avoid `let!` to speed up the specs.
|
diff --git a/Casks/ubar.rb b/Casks/ubar.rb
index abc1234..def5678 100644
--- a/Casks/ubar.rb
+++ b/Casks/ubar.rb
@@ -1,6 +1,6 @@ cask :v1 => 'ubar' do
- version '2.5.0'
- sha256 '0b5388a7bd599d48836e08b9138acc0c802aa86e65d6128f66e03a734eb2a823'
+ version '3.0.3'
+ sha256 '6e3d650aa0560e7f71c4e4b68f1fd175c1c76a9611f... | Update uBar to version 3.0.3 |
diff --git a/spec/requests/report/update_spec.rb b/spec/requests/report/update_spec.rb
index abc1234..def5678 100644
--- a/spec/requests/report/update_spec.rb
+++ b/spec/requests/report/update_spec.rb
@@ -0,0 +1,75 @@+describe 'POST /api/reports' do
+ let(:user) { create(:user) }
+ let!(:report) { create(:report) }
+... | Add missing request spec for reports api.
|
diff --git a/spec/services/change_dealer_spec.rb b/spec/services/change_dealer_spec.rb
index abc1234..def5678 100644
--- a/spec/services/change_dealer_spec.rb
+++ b/spec/services/change_dealer_spec.rb
@@ -0,0 +1,15 @@+require 'rails_helper'
+
+RSpec.describe ChangeDealer do
+ describe "#call" do
+ subject(:service)... | Add RSpec test for ChangeDealer
|
diff --git a/Formula/go.rb b/Formula/go.rb
index abc1234..def5678 100644
--- a/Formula/go.rb
+++ b/Formula/go.rb
@@ -7,7 +7,7 @@ case
when Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
- url "https://redirector.gvt1.com/edgedl/go/go1.9.2.linux-amd64.tar.gz"
+ url "https://dl.google.com/... | Change download url of Go
See [1], [2] and [3] for details.
[1]: https://github.com/golang/tools/commit/9c477bae194915bfd4bc8c314e90e28b9ec1c831
[2]: https://go.googlesource.com/tools/+/9c477bae194915bfd4bc8c314e90e28b9ec1c831
[3]: https://github.com/golang/go/issues/22648
|
diff --git a/source/languages/retag/generate.rb b/source/languages/retag/generate.rb
index abc1234..def5678 100644
--- a/source/languages/retag/generate.rb
+++ b/source/languages/retag/generate.rb
@@ -0,0 +1,41 @@+require_relative '../../../directory'
+require_relative PathFor[:repo_helper]
+require_relative PathFor[:t... | Fix bugs with retag, copy over top_level
|
diff --git a/lib/garage/docs/application.rb b/lib/garage/docs/application.rb
index abc1234..def5678 100644
--- a/lib/garage/docs/application.rb
+++ b/lib/garage/docs/application.rb
@@ -26,11 +26,15 @@ attr_reader :pathname
def self.renderer
- @renderer ||= Redcarpet::Markdown.new(Redcarpet::Render... | Change redcarpet option: disable emphasis
|
diff --git a/lib/gitlab/visibility_level.rb b/lib/gitlab/visibility_level.rb
index abc1234..def5678 100644
--- a/lib/gitlab/visibility_level.rb
+++ b/lib/gitlab/visibility_level.rb
@@ -35,7 +35,11 @@ end
def non_restricted_level?(level)
- ! current_application_settings.restricted_visibility_levels... | Handle nil restricted visibility settings
Return `true` from `non_restricted_level?` when the
`restricted_visibility_levels` setting is nil.
|
diff --git a/spec/unit/generator/section_spec.rb b/spec/unit/generator/section_spec.rb
index abc1234..def5678 100644
--- a/spec/unit/generator/section_spec.rb
+++ b/spec/unit/generator/section_spec.rb
@@ -0,0 +1,34 @@+# frozen_string_literal: true
+
+module GitHubChangelogGenerator
+ RSpec.describe Section do
+ let... | Add a test for Section
|
diff --git a/mongoid-tree.gemspec b/mongoid-tree.gemspec
index abc1234..def5678 100644
--- a/mongoid-tree.gemspec
+++ b/mongoid-tree.gemspec
@@ -12,7 +12,7 @@
s.files = Dir.glob('{lib,spec}/**/*') + %w(LICENSE README.md Rakefile Gemfile .rspec)
- s.add_runtime_dependency('mongoid', ['<= 7.0', '>= 4.0'])
... | Allow minor versions of mongoid 7
|
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/admin_controller.rb
+++ b/app/controllers/admin_controller.rb
@@ -32,7 +32,7 @@ @invited_beta = BetaInvite.where(invited: true).count
@user_count = User.count
- @ani... | Exclude "Anime Influenced" from the missing MAL IDs list.
|
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/admin_controller.rb
+++ b/app/controllers/admin_controller.rb
@@ -3,7 +3,7 @@ authorize_resource :class => false
def show
- @projects = Project.all
+ @projects = Projec... | Order the admin page by project name, so we can assume the same order each time.
|
diff --git a/app/controllers/chart_controller.rb b/app/controllers/chart_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/chart_controller.rb
+++ b/app/controllers/chart_controller.rb
@@ -15,9 +15,9 @@
log_index = 0
date_range.each do |date|
- if(@logs[log_index].created_at == date)
+... | Fix errors with previous commit
- ruby doesn't have ++ operator
- @logs may have fewer items than date_range, so prevent index out of bounds
|
diff --git a/app/controllers/claim_controller.rb b/app/controllers/claim_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/claim_controller.rb
+++ b/app/controllers/claim_controller.rb
@@ -1,12 +1,18 @@+
class ClaimController < ApplicationController
skip_before_filter :require_authorization
d... | Use OpenGraph to get new user's name in claim flow
Instead of a "Lost" inspired default name, we utilize the Facebook OpenGraph
JSON API to pull basic contact details based on a Facebook UID.
Change-Id: I78ed6f37f34aad081ed2994bf406f7c37defffcb
Reviewed-on: https://gerrit.causes.com/5113
Reviewed-by: Lann Martin <564... |
diff --git a/test/integration/test_ber.rb b/test/integration/test_ber.rb
index abc1234..def5678 100644
--- a/test/integration/test_ber.rb
+++ b/test/integration/test_ber.rb
@@ -0,0 +1,30 @@+require_relative '../test_helper'
+
+class TestBERIntegration < LDAPIntegrationTestCase
+ # Test whether the TRUE boolean value i... | Add BER integration test for true value
|
diff --git a/config/application.rb b/config/application.rb
index abc1234..def5678 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -9,7 +9,7 @@ module YearInPicturesRailsHelper
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
- ... | Update Rails default settings from 5.1 to 7.0
Time for some more modern defaults. Specifically, updates CSRF defaults
to solve deprecation warning.
|
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -17,7 +17,8 @@ # succès d'enregistrement et redirection users/:id.
redirect_to @user
else
- b... | Clean password and password_confirmation for case failure create user
|
diff --git a/test/test_helper.rb b/test/test_helper.rb
index abc1234..def5678 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -1,5 +1,6 @@ require_relative "../load"
require "minitest/autorun"
+require "minitest/pride"
require "webmock/minitest"
require "mocha/mini_test"
| Add some colours to the test output |
diff --git a/test/models/category_test.rb b/test/models/category_test.rb
index abc1234..def5678 100644
--- a/test/models/category_test.rb
+++ b/test/models/category_test.rb
@@ -1,7 +1,20 @@ require 'test_helper'
class CategoryTest < ActiveSupport::TestCase
- # test "the truth" do
- # assert true
- # end
+ setu... | Add tests for category model
|
diff --git a/lib/spontaneous/cli/migrate.rb b/lib/spontaneous/cli/migrate.rb
index abc1234..def5678 100644
--- a/lib/spontaneous/cli/migrate.rb
+++ b/lib/spontaneous/cli/migrate.rb
@@ -10,11 +10,21 @@
desc :apply, "Runs Spontaneous migrations"
def apply
- prepare! :migrate
+ site = prepare! :migrat... | Include site-specific migrations in standard task
|
diff --git a/config/environment.rb b/config/environment.rb
index abc1234..def5678 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -4,6 +4,7 @@ # If no ROOT_URL is set, get one via socket
require 'socket'
ROOT_URL = ENV['ROOT_URL'] || Socket.gethostname
+Rails.config.default_url_options.host = ROOT_U... | Add default host so mailer won't asplode
|
diff --git a/SSPPullToRefresh.podspec b/SSPPullToRefresh.podspec
index abc1234..def5678 100644
--- a/SSPPullToRefresh.podspec
+++ b/SSPPullToRefresh.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |s|
s.name = 'SSPPullToRefresh'
- s.version = '0.1.7'
+ s.version = '0.1.8'
s.summary ... | Update pod spec to 0.1.8
|
diff --git a/app/policies/article/post_policy.rb b/app/policies/article/post_policy.rb
index abc1234..def5678 100644
--- a/app/policies/article/post_policy.rb
+++ b/app/policies/article/post_policy.rb
@@ -1,6 +1,8 @@ class Article::PostPolicy < ApplicationPolicy
def create?
- user.superuser? or user.article_colum... | Allow non-superusers to visit new posts page
Fixes #62.
|
diff --git a/test/integration/binary/serverspec/localhost/binary_spec.rb b/test/integration/binary/serverspec/localhost/binary_spec.rb
index abc1234..def5678 100644
--- a/test/integration/binary/serverspec/localhost/binary_spec.rb
+++ b/test/integration/binary/serverspec/localhost/binary_spec.rb
@@ -3,13 +3,6 @@ requir... | Check additional directories in binary suite |
diff --git a/lib/happy/collector.rb b/lib/happy/collector.rb
index abc1234..def5678 100644
--- a/lib/happy/collector.rb
+++ b/lib/happy/collector.rb
@@ -7,7 +7,7 @@ end
def taint_eop list
- list.last[:eop] = true
+ list.last[:price_count] = list.size
end
def log_market_xrp_impl(base, co... | Check the count of prices
|
diff --git a/activerecord/test/models/admin/user.rb b/activerecord/test/models/admin/user.rb
index abc1234..def5678 100644
--- a/activerecord/test/models/admin/user.rb
+++ b/activerecord/test/models/admin/user.rb
@@ -14,7 +14,7 @@ end
belongs_to :account
- store :params, accessors: [ :color ], coder: YAML
+ st... | Remove warnings in test suite
lib/active_record/store.rb:79: warning: method redefined; discarding old color=
lib/active_record/store.rb:79: warning: previous definition of color= was here
lib/active_record/store.rb:83: warning: method redefined; discarding old color
lib/active_record/store.rb:83: warning: previous de... |
diff --git a/app/admin/scholarship_application.rb b/app/admin/scholarship_application.rb
index abc1234..def5678 100644
--- a/app/admin/scholarship_application.rb
+++ b/app/admin/scholarship_application.rb
@@ -4,12 +4,12 @@ selectable_column
id_column
- column 'Scholarship' do |scholarship_app|
- scho... | Index displays associated names not ids |
diff --git a/spec/api2_spec.rb b/spec/api2_spec.rb
index abc1234..def5678 100644
--- a/spec/api2_spec.rb
+++ b/spec/api2_spec.rb
@@ -2,6 +2,7 @@
describe Cryptsy::API2::Client do
subject { Cryptsy::API2::Client.new }
+
describe 'attributes' do
it { is_expected.to respond_to(:user) }
it { is_expe... | Add first tests for Currencies class
|
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/groups_controller.rb
+++ b/app/controllers/groups_controller.rb
@@ -9,7 +9,8 @@ if user.save
redirect_to root_path
else
- redirect :back
+ flash[:now] = ... | Add an error message if the user cannot be assigned to a group.
|
diff --git a/app/navigations/common_navigation.rb b/app/navigations/common_navigation.rb
index abc1234..def5678 100644
--- a/app/navigations/common_navigation.rb
+++ b/app/navigations/common_navigation.rb
@@ -2,7 +2,7 @@ SimpleNavigation::Configuration.run do |navigation|
navigation.items do |primary|
pri... | Make elective blocks link empty (temporary)
Change-Id: I4155302649760445c86c17e23a8a0ca19ed439a4
|
diff --git a/app/serializers/collection_serializer.rb b/app/serializers/collection_serializer.rb
index abc1234..def5678 100644
--- a/app/serializers/collection_serializer.rb
+++ b/app/serializers/collection_serializer.rb
@@ -1,5 +1,5 @@ class CollectionSerializer < ActiveModel::Serializer
- attributes :id, :label, :ty... | Fix collection api spec - remove used type from collection serializer
|
diff --git a/lib/billy/handlers/stub_handler.rb b/lib/billy/handlers/stub_handler.rb
index abc1234..def5678 100644
--- a/lib/billy/handlers/stub_handler.rb
+++ b/lib/billy/handlers/stub_handler.rb
@@ -20,7 +20,7 @@ end
def handles_request?(method, url, headers, body)
- find_stub(method, url).nil? ? fals... | Update StubHandler per GitHub comments.
|
diff --git a/lib/neighborly/dashboard/engine.rb b/lib/neighborly/dashboard/engine.rb
index abc1234..def5678 100644
--- a/lib/neighborly/dashboard/engine.rb
+++ b/lib/neighborly/dashboard/engine.rb
@@ -4,6 +4,7 @@ isolate_namespace Neighborly::Dashboard
initializer 'neighborly.dashboard.assets.precompile'... | Add vendor/assets/components to assets path
|
diff --git a/lib/shipistrano/helpers/helpers.rb b/lib/shipistrano/helpers/helpers.rb
index abc1234..def5678 100644
--- a/lib/shipistrano/helpers/helpers.rb
+++ b/lib/shipistrano/helpers/helpers.rb
@@ -42,4 +42,8 @@
def local_command_exists?(command)
system("which #{ command} > /dev/null 2>&1")
-end+end
+
+def curr... | Move current time to generic helper
|
diff --git a/lib/strong_routes/rails/railtie.rb b/lib/strong_routes/rails/railtie.rb
index abc1234..def5678 100644
--- a/lib/strong_routes/rails/railtie.rb
+++ b/lib/strong_routes/rails/railtie.rb
@@ -6,8 +6,8 @@ config.strong_routes = ::StrongRoutes.config
initializer 'strong_routes.initialize' do |app|... | Use correct config to specify allowed routes
|
diff --git a/lib/swift_storage/configuration.rb b/lib/swift_storage/configuration.rb
index abc1234..def5678 100644
--- a/lib/swift_storage/configuration.rb
+++ b/lib/swift_storage/configuration.rb
@@ -4,7 +4,7 @@ :auth_method, :authtenant_type
def initialize
- @auth_version = ENV['SWIFT_ST... | Switch back to auth 1.0 suppport for spec pass
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.