diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/week-4/basic-math.rb b/week-4/basic-math.rb
index abc1234..def5678 100644
--- a/week-4/basic-math.rb
+++ b/week-4/basic-math.rb
@@ -0,0 +1,84 @@+# Solution Below
+
+num1 = 26
+num2 = 94
+sum = num1+num2
+difference = num1-num2
+quotient = num1.to_f/num2.to_f
+product = num2 * num1
+modulus = num1 % num2
+
... | Add completed 4.2.3 local variables and basic arithmetic.
|
diff --git a/share/fathead/made_how/parse.rb b/share/fathead/made_how/parse.rb
index abc1234..def5678 100644
--- a/share/fathead/made_how/parse.rb
+++ b/share/fathead/made_how/parse.rb
@@ -35,8 +35,17 @@ File.open("download/#{file}", 'r') do |f|
item = nil
f.each_line do |line|
- if item && (m = line.m... | Use at most 3 sentences from each synopsis.
|
diff --git a/config/environments/test.rb b/config/environments/test.rb
index abc1234..def5678 100644
--- a/config/environments/test.rb
+++ b/config/environments/test.rb
@@ -4,7 +4,7 @@ #
# More details:
# https://guides.rubyonrails.org/caching_with_rails.html#activesupport-cache-memcachestore
- config.cache_st... | Use Dalli to manage memcached in CI env
This will ensure that Test is closer to the live environments.
|
diff --git a/config/unicorn.rb b/config/unicorn.rb
index abc1234..def5678 100644
--- a/config/unicorn.rb
+++ b/config/unicorn.rb
@@ -4,7 +4,7 @@ if ENV['PX_DYNO']
worker_processes 18
else
- worker_processes 3
+ worker_processes 2
end
# Requests with more than 30 sec will be killed
| Change unicord process count to 2
|
diff --git a/oxblood.gemspec b/oxblood.gemspec
index abc1234..def5678 100644
--- a/oxblood.gemspec
+++ b/oxblood.gemspec
@@ -16,6 +16,7 @@ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
... | Set min supported ruby version
|
diff --git a/gems/manageiq-providers-amazon/app/models/manageiq/providers/amazon/network_manager/refresher.rb b/gems/manageiq-providers-amazon/app/models/manageiq/providers/amazon/network_manager/refresher.rb
index abc1234..def5678 100644
--- a/gems/manageiq-providers-amazon/app/models/manageiq/providers/amazon/network... | Fix amazon refersher to use legacy refresh
|
diff --git a/lib/abnormal.rb b/lib/abnormal.rb
index abc1234..def5678 100644
--- a/lib/abnormal.rb
+++ b/lib/abnormal.rb
@@ -9,15 +9,15 @@ def self.ab_test(identity, test_name, alternatives, conversions)
db['tests'].update(
{:name => test_name},
- {:$set => {:alternatives => alternatives, :id => Dige... | Call it test_hash instead of test_id
|
diff --git a/jschema.gemspec b/jschema.gemspec
index abc1234..def5678 100644
--- a/jschema.gemspec
+++ b/jschema.gemspec
@@ -1,21 +1,20 @@ Gem::Specification.new do |s|
- s.name = "jschema"
- s.version = "0.0.0"
- s.date = "2013-11-11"
- s.summary = "JSON Schema implementation"
- s.descriptio... | Delete platform attribute from gemspec
|
diff --git a/spec/factories/email_factory.rb b/spec/factories/email_factory.rb
index abc1234..def5678 100644
--- a/spec/factories/email_factory.rb
+++ b/spec/factories/email_factory.rb
@@ -2,5 +2,6 @@ factory :email do
type :university
address { Faker::Internet.email }
+ primary false
end
end | Set email factory primary to false by default
|
diff --git a/spec/functions/filename_spec.rb b/spec/functions/filename_spec.rb
index abc1234..def5678 100644
--- a/spec/functions/filename_spec.rb
+++ b/spec/functions/filename_spec.rb
@@ -7,7 +7,7 @@ Puppet::Parser::Functions.function("pget_filename").should == "function_pget_filename"
end
it "should return ... | Add test for URI with parameters
|
diff --git a/spec/vm/opcodes/test_op_pick.rb b/spec/vm/opcodes/test_op_pick.rb
index abc1234..def5678 100644
--- a/spec/vm/opcodes/test_op_pick.rb
+++ b/spec/vm/opcodes/test_op_pick.rb
@@ -3,14 +3,14 @@ class VM
describe 'op_pick' do
- let(:vm){ VM.new 0, [] }
-
- subject{
- vm.op_pick
- ... | Complete the +pick+ opcode test in multithread env.
|
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
@@ -1,7 +1,7 @@ require "rails_helper"
RSpec.describe "Home page" do
- scenario "visit" do
+ scenario "can access" do
visit r... | Change home page scenario description
|
diff --git a/subdomain_locale.gemspec b/subdomain_locale.gemspec
index abc1234..def5678 100644
--- a/subdomain_locale.gemspec
+++ b/subdomain_locale.gemspec
@@ -5,7 +5,7 @@ spec.version = "0.1.1"
spec.authors = ["Semyon Perepelitsa"]
spec.email = ["sema@sema.in"]
- spec.description = "Mov... | Replace description with summary (required)
|
diff --git a/mute.gemspec b/mute.gemspec
index abc1234..def5678 100644
--- a/mute.gemspec
+++ b/mute.gemspec
@@ -21,6 +21,7 @@ spec.add_development_dependency 'bundler', '~> 1.5'
spec.add_development_dependency 'cane', '~> 2.6.1'
spec.add_development_dependency 'cane-hashcheck', '~> 1.2.0'
+ s... | Add pry as development dependency
|
diff --git a/core/db/migrate/20201012091259_add_filterable_column_to_spree_option_types.rb b/core/db/migrate/20201012091259_add_filterable_column_to_spree_option_types.rb
index abc1234..def5678 100644
--- a/core/db/migrate/20201012091259_add_filterable_column_to_spree_option_types.rb
+++ b/core/db/migrate/2020101209125... | Check column and index presence in db in filtrable for option types migration
|
diff --git a/asana.gemspec b/asana.gemspec
index abc1234..def5678 100644
--- a/asana.gemspec
+++ b/asana.gemspec
@@ -9,7 +9,7 @@ gem.homepage = "http://github.com/rbright/asana"
gem.license = 'MIT'
- gem.add_dependency 'activeresource', '~> 3.2.3'
+ gem.add_dependency 'activeresource', '>= 3.2.3'
... | Update dependencies to work with rails4 |
diff --git a/qunited.gemspec b/qunited.gemspec
index abc1234..def5678 100644
--- a/qunited.gemspec
+++ b/qunited.gemspec
@@ -6,7 +6,7 @@ s.name = "qunited"
s.version = QUnited::VERSION
s.authors = ["Aaron Royer"]
- s.email = ["aaronroyer@gmail.com"]
+ s.email = ["aaronroyer@gmail.co... | Add myself to authors in gemspec
|
diff --git a/lib/construi.rb b/lib/construi.rb
index abc1234..def5678 100644
--- a/lib/construi.rb
+++ b/lib/construi.rb
@@ -1,9 +1,11 @@-require 'construi/config'
-require 'construi/runner'
require 'yaml'
module Construi
+ require 'construi/config'
+ require 'construi/runner'
+
+
String.disable_colorization... | Fix require order to avoid NameError
|
diff --git a/lib/ditty/db.rb b/lib/ditty/db.rb
index abc1234..def5678 100644
--- a/lib/ditty/db.rb
+++ b/lib/ditty/db.rb
@@ -18,7 +18,7 @@ )
DB.sql_log_level = (ENV['SEQUEL_LOGGING_LEVEL'] || :debug).to_sym
- DB.loggers << Ditty::Services::Logger.instance
+ DB.loggers << Ditty::Services::Logger.instance if ENV... | chore: Allow DB logging to be turned off
|
diff --git a/web/lib/assets/umakadata/lib/umakadata/sparql_helper.rb b/web/lib/assets/umakadata/lib/umakadata/sparql_helper.rb
index abc1234..def5678 100644
--- a/web/lib/assets/umakadata/lib/umakadata/sparql_helper.rb
+++ b/web/lib/assets/umakadata/lib/umakadata/sparql_helper.rb
@@ -0,0 +1,33 @@+require 'umakadata/my_... | Create sparql helper module to use custom SPARQL::Client class.
|
diff --git a/spec/web_test.rb b/spec/web_test.rb
index abc1234..def5678 100644
--- a/spec/web_test.rb
+++ b/spec/web_test.rb
@@ -31,7 +31,7 @@ expect(page).to have_content 'Your shortened URL is'
end
- it 'disallows custom URLs under 5 characters' do
+ it 'disallows custom urls under 5 characters' do... | Test for randomly generated url
|
diff --git a/cookbooks/postgresql/recipes/pgdg.rb b/cookbooks/postgresql/recipes/pgdg.rb
index abc1234..def5678 100644
--- a/cookbooks/postgresql/recipes/pgdg.rb
+++ b/cookbooks/postgresql/recipes/pgdg.rb
@@ -4,9 +4,9 @@ apt_repository 'pgdg' do
uri 'http://apt.postgresql.org/pub/repos/apt/'
distribution "#{node[... | Make PostgreSQL 9.5 Beta apt packages available
This change is a little helper for users interested to install 9.5 on
the build fly. The pre-installation of 9.5 on Travis machine/container
images will only come after general availability (which is currently
planned for end 2015).
Note: '9.4' apt component is no longe... |
diff --git a/tilde/bin/brew-leaves.rb b/tilde/bin/brew-leaves.rb
index abc1234..def5678 100644
--- a/tilde/bin/brew-leaves.rb
+++ b/tilde/bin/brew-leaves.rb
@@ -0,0 +1,7 @@+require 'formula'
+deps_graph = Formula.get_used_by
+formulas = HOMEBREW_CELLAR.children.select { |pn| pn.directory? }.collect { |pn| pn.basename.t... | Add function to get homebrew installed leaves
Leaves are formula without a dependent parent
|
diff --git a/lib/gem_search/commands/base.rb b/lib/gem_search/commands/base.rb
index abc1234..def5678 100644
--- a/lib/gem_search/commands/base.rb
+++ b/lib/gem_search/commands/base.rb
@@ -11,14 +11,14 @@
def puts_abort(args)
puts args
- abort
+ exit 1
end
def ... | Remove stacktrace in occuring http error
|
diff --git a/lib/girepository/irepository.rb b/lib/girepository/irepository.rb
index abc1234..def5678 100644
--- a/lib/girepository/irepository.rb
+++ b/lib/girepository/irepository.rb
@@ -1,7 +1,13 @@ module GIRepository
class IRepository
+ @@singleton = nil
+
def self.default
- @@singleton ||= new(Lib... | Make sure GType is always initialized
|
diff --git a/lib/hpcloud/commands/servers.rb b/lib/hpcloud/commands/servers.rb
index abc1234..def5678 100644
--- a/lib/hpcloud/commands/servers.rb
+++ b/lib/hpcloud/commands/servers.rb
@@ -23,7 +23,7 @@ if servers.empty?
display "You currently have no servers, use `#{selfname} servers:add <name>`... | Add name to the table listing.
|
diff --git a/spinners.gemspec b/spinners.gemspec
index abc1234..def5678 100644
--- a/spinners.gemspec
+++ b/spinners.gemspec
@@ -30,5 +30,5 @@
# Gems Dependencies
s.add_dependency("sass", ["~> 3.2"])
- s.add_dependency("compass", ["~> 0.12.2"])
+ s.add_dependency("compass", ["~> 1.0.0.alpha"])
end
| Update required Compass version for gem
|
diff --git a/lib/rubikon/application/base.rb b/lib/rubikon/application/base.rb
index abc1234..def5678 100644
--- a/lib/rubikon/application/base.rb
+++ b/lib/rubikon/application/base.rb
@@ -21,9 +21,7 @@ # @since 0.2.0
class Base
- class << self
- include Rubikon::Application::ClassMethods
- ... | Use a more direct syntax to include ClassMethods
|
diff --git a/lib/rubocop/cop/rails/output.rb b/lib/rubocop/cop/rails/output.rb
index abc1234..def5678 100644
--- a/lib/rubocop/cop/rails/output.rb
+++ b/lib/rubocop/cop/rails/output.rb
@@ -6,7 +6,7 @@ # This cop checks for the use of output calls like puts and print
class Output < Cop
MSG = 'Do no... | Fix the possessive spelling of Rails's
|
diff --git a/config/environments/development.rb b/config/environments/development.rb
index abc1234..def5678 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -27,6 +27,7 @@ # number of complex assets.
config.assets.debug = true
+ config.assets.digest = true
# Adds ad... | Set asset digest to true.
|
diff --git a/config/initializers/carrierwave.rb b/config/initializers/carrierwave.rb
index abc1234..def5678 100644
--- a/config/initializers/carrierwave.rb
+++ b/config/initializers/carrierwave.rb
@@ -9,7 +9,7 @@ config.storage = :azure
config.azure_storage_account_name = ENV['AZURE_ASSETS_STORAGE_BLOG_ACCOUNT... | Remove account from azure asset container var
|
diff --git a/locobot.gemspec b/locobot.gemspec
index abc1234..def5678 100644
--- a/locobot.gemspec
+++ b/locobot.gemspec
@@ -8,9 +8,9 @@ spec.version = Locobot::VERSION
spec.authors = ['Rafaël Gonzalez']
spec.email = ['rafaelgonzalez@users.noreply.github.com']
- spec.summary = %q{TODO... | Update gem spec homepage, summary and description |
diff --git a/spec/fake-aws/s3/resource_spec_spec.rb b/spec/fake-aws/s3/resource_spec_spec.rb
index abc1234..def5678 100644
--- a/spec/fake-aws/s3/resource_spec_spec.rb
+++ b/spec/fake-aws/s3/resource_spec_spec.rb
@@ -8,6 +8,8 @@
let(:s3) { described_class.new }
+ let(:existing_bucket_name) { "fake-aws-sdk-s3... | Validate behaviour against a real bucket.
|
diff --git a/spec/features/admin_edits_user_spec.rb b/spec/features/admin_edits_user_spec.rb
index abc1234..def5678 100644
--- a/spec/features/admin_edits_user_spec.rb
+++ b/spec/features/admin_edits_user_spec.rb
@@ -0,0 +1,22 @@+require 'spec_helper'
+
+RSpec.feature 'Admin goes to user page', :WebDriver => true do
+ ... | Add feature test for admin editing user.
|
diff --git a/spec/requests/feeds_controller_spec.rb b/spec/requests/feeds_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/requests/feeds_controller_spec.rb
+++ b/spec/requests/feeds_controller_spec.rb
@@ -5,9 +5,7 @@ fixtures :all
before :each do
- # The PHP app uses cache tables for rankings that... | Update comment - we acutally do need this in Rails, not just PHP
|
diff --git a/spec/views/games/show.html.erb_spec.rb b/spec/views/games/show.html.erb_spec.rb
index abc1234..def5678 100644
--- a/spec/views/games/show.html.erb_spec.rb
+++ b/spec/views/games/show.html.erb_spec.rb
@@ -3,6 +3,8 @@ RSpec.describe "games/show", type: :view do
before(:each) do
@game = assign(:game, ... | Add specs to pass game view
|
diff --git a/db/migrate/20090626143038_convert_versioned_association_from_hash_to_object.rb b/db/migrate/20090626143038_convert_versioned_association_from_hash_to_object.rb
index abc1234..def5678 100644
--- a/db/migrate/20090626143038_convert_versioned_association_from_hash_to_object.rb
+++ b/db/migrate/20090626143038_... | Fix migration so you don't get duplicate parts. |
diff --git a/lib/rom/yaml.rb b/lib/rom/yaml.rb
index abc1234..def5678 100644
--- a/lib/rom/yaml.rb
+++ b/lib/rom/yaml.rb
@@ -1,4 +1,4 @@-require 'rom'
+require 'rom-core'
require 'rom/yaml/version'
require 'rom/yaml/gateway'
| Change require rom to rom-core only
|
diff --git a/core/app/models/spree/prototype.rb b/core/app/models/spree/prototype.rb
index abc1234..def5678 100644
--- a/core/app/models/spree/prototype.rb
+++ b/core/app/models/spree/prototype.rb
@@ -1,10 +1,5 @@ class Spree::Prototype < ActiveRecord::Base
-<<<<<<< HEAD
has_and_belongs_to_many :properties, :class_n... | Remove accidental conflict in Prototype model
|
diff --git a/minidoc.gemspec b/minidoc.gemspec
index abc1234..def5678 100644
--- a/minidoc.gemspec
+++ b/minidoc.gemspec
@@ -13,8 +13,8 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
- spec.add_dependency "activesupport", ">= 3.0.0"
- spec.add_dependency "activ... | Add upper bounds to avoid Rails 5 libraries
|
diff --git a/railties/lib/rails/test_help.rb b/railties/lib/rails/test_help.rb
index abc1234..def5678 100644
--- a/railties/lib/rails/test_help.rb
+++ b/railties/lib/rails/test_help.rb
@@ -10,10 +10,6 @@ require "rails/generators/test_case"
require "active_support/testing/autorun"
-
-if defined?(Capybara) && defined... | Remove unnecessary system test code
It turns out that we don't need to require system tests in the railties
test helper so we can remove it. If you're using system tests they will
be loaded by inheriting from ActionDispatch::SystemTestCase and the
routes will be loaded by ActionDispatch::IntegrationTest.
|
diff --git a/spec/integration/navigation_spec.rb b/spec/integration/navigation_spec.rb
index abc1234..def5678 100644
--- a/spec/integration/navigation_spec.rb
+++ b/spec/integration/navigation_spec.rb
@@ -1,7 +1,7 @@ require 'spec_helper'
describe "Navigation" do
- include Capybara
+ include Capybara::DSL
i... | Include Capybara::DSL instead of deprecated Capybara in integration spec.
|
diff --git a/app/helpers/application_helper/toolbar/configuration_manager_provider_center.rb b/app/helpers/application_helper/toolbar/configuration_manager_provider_center.rb
index abc1234..def5678 100644
--- a/app/helpers/application_helper/toolbar/configuration_manager_provider_center.rb
+++ b/app/helpers/application... | Remove the Tagging menu for the configuration profiles list - as this feature is not yet added
|
diff --git a/spec/default_spec.rb b/spec/default_spec.rb
index abc1234..def5678 100644
--- a/spec/default_spec.rb
+++ b/spec/default_spec.rb
@@ -15,4 +15,67 @@ it 'does install packages' do
expect(subject).to install_package('curl')
end
+
+ it 'should create group' do
+ expect(subject).to create_group('nd... | Add more tests for chefspec
|
diff --git a/spec/request_spec.rb b/spec/request_spec.rb
index abc1234..def5678 100644
--- a/spec/request_spec.rb
+++ b/spec/request_spec.rb
@@ -42,8 +42,10 @@ end
end
- context "and" do
- it { is_expected.to document_all_paths }
+ context 'and' do
+ it 'tests all documented routes' do
+ expect(su... | Replace short form with descriptive test
|
diff --git a/spec/timecop_spec.rb b/spec/timecop_spec.rb
index abc1234..def5678 100644
--- a/spec/timecop_spec.rb
+++ b/spec/timecop_spec.rb
@@ -17,4 +17,14 @@
Timecop.return
end
+
+ it 'when stub Time' do
+ allow(Time).to receive(:now).and_return(time_1)
+
+ expect(Time.now).to eq time_1
+
+ allow(T... | Add tests to see how knapsack_pro handle case then someone stub Time.now
|
diff --git a/react-native-pdf.podspec b/react-native-pdf.podspec
index abc1234..def5678 100644
--- a/react-native-pdf.podspec
+++ b/react-native-pdf.podspec
@@ -12,4 +12,5 @@ s.source = { :git => 'https://github.com/wonday/react-native-pdf.git' }
s.platform = :ios, '8.0'
s.source_files = "ios/**/*.... | Add React dependency to podspec
Add React dependency to podspec to support CocoaPods 1.5.0
CocoaPods 1.5.0 does no longer add all header search paths for each xcconfig generated and instead, it only adds the header search paths for the dependencies of the pod as stated in http://blog.cocoapods.org/CocoaPods-1.5.0/
... |
diff --git a/app/controllers/brands.rb b/app/controllers/brands.rb
index abc1234..def5678 100644
--- a/app/controllers/brands.rb
+++ b/app/controllers/brands.rb
@@ -1,9 +1,9 @@ get '/contribute' do
- erb :'/contribute'
+ erb :'/brands/contribute'
end
get '/brands/new' do
- erb :'/new_brand'
+ erb :'brands/new_b... | Fix bug on path to erb views
|
diff --git a/actionpack/test/template/erb/tag_helper_test.rb b/actionpack/test/template/erb/tag_helper_test.rb
index abc1234..def5678 100644
--- a/actionpack/test/template/erb/tag_helper_test.rb
+++ b/actionpack/test/template/erb/tag_helper_test.rb
@@ -3,9 +3,6 @@
module ERBTest
class TagHelperTest < BlockTestCase... | Remove AS declarative extension from erb tag test
The extension was removed in 22bc12ec374b8bdeb3818ca0a3eb787dd3ce39d8,
making "test" an alias for minitest's "it".
|
diff --git a/actionview/lib/action_view/testing/resolvers.rb b/actionview/lib/action_view/testing/resolvers.rb
index abc1234..def5678 100644
--- a/actionview/lib/action_view/testing/resolvers.rb
+++ b/actionview/lib/action_view/testing/resolvers.rb
@@ -36,10 +36,11 @@ end
end
- class NullResolver < PathReso... | Reimplement NullResolver on base resolver
|
diff --git a/Casks/handbrakecli-nightly.rb b/Casks/handbrakecli-nightly.rb
index abc1234..def5678 100644
--- a/Casks/handbrakecli-nightly.rb
+++ b/Casks/handbrakecli-nightly.rb
@@ -1,6 +1,6 @@ cask :v1 => 'handbrakecli-nightly' do
- version '6937svn'
- sha256 '90b9a33ea8e87c3a0a7ce1bb68bc71a63973800cfe373e5a67960ea57... | Update HandbrakeCLI Nightly to v6945svn
HandBrakeCLI Nightly v6945svn built 2015-02-28.
|
diff --git a/db/data_migration/20121119163057_remove_reverted_detailed_guides_from_search.rb b/db/data_migration/20121119163057_remove_reverted_detailed_guides_from_search.rb
index abc1234..def5678 100644
--- a/db/data_migration/20121119163057_remove_reverted_detailed_guides_from_search.rb
+++ b/db/data_migration/20121... | Make sure we remove old guides that may not exist
There are 4 guides from the previous version of this migration that
don't appear to exist in the DB anymore, but some of them exist in the
search index. This tries to de-index the documents from ElasticSearch
even if they don't exist in the DB.
https://www.pivotaltrac... |
diff --git a/db/data_migration/20170914142009_unpublish_seed_enterprise_investment_scheme.rb b/db/data_migration/20170914142009_unpublish_seed_enterprise_investment_scheme.rb
index abc1234..def5678 100644
--- a/db/data_migration/20170914142009_unpublish_seed_enterprise_investment_scheme.rb
+++ b/db/data_migration/20170... | Fix missing `end` in data migration
A syntax error is preventing the data migration from running.
Fix this by adding the missing `end` for the `if` construct.
|
diff --git a/db/seeds.rb b/db/seeds.rb
index abc1234..def5678 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -1,12 +1,12 @@ admin = User.get_from_ENV
-block_list = BlockList.create(
- :name => 'Testing12',
+block_list = BlockList.find_or_create_by(name: 'Testing12')
+block_list.update_attributes(
:descript... | Allow successive calls to rake db:seed
|
diff --git a/app/controllers/admin/after_create_controller.rb b/app/controllers/admin/after_create_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/admin/after_create_controller.rb
+++ b/app/controllers/admin/after_create_controller.rb
@@ -1,20 +1,14 @@ class Admin::AfterCreateController < Admin::Admin... | Remove invitations step for now
|
diff --git a/spec/lib/wechat/helpers_spec.rb b/spec/lib/wechat/helpers_spec.rb
index abc1234..def5678 100644
--- a/spec/lib/wechat/helpers_spec.rb
+++ b/spec/lib/wechat/helpers_spec.rb
@@ -15,7 +15,7 @@ end
it '#wechat_config_js' do
- controller.request = ActionController::TestRequest.create
+ cont... | Fix Rails 5.1 ActionController::TestRequest.create expect at least 1 argument problem.
|
diff --git a/routes/solve.rb b/routes/solve.rb
index abc1234..def5678 100644
--- a/routes/solve.rb
+++ b/routes/solve.rb
@@ -13,7 +13,7 @@ end
get "/solve/:id" do
- @solve = ReconDatabase::Solve.where(id: params[:id]).first
+ @solve = ReconDatabase::Solve.first(id: params[:id])
erb :solve
end
@@ -35,14 +35,1... | Switch from .where(...).first to .first(...)
|
diff --git a/lib/greeve/eve/alliance_list.rb b/lib/greeve/eve/alliance_list.rb
index abc1234..def5678 100644
--- a/lib/greeve/eve/alliance_list.rb
+++ b/lib/greeve/eve/alliance_list.rb
@@ -17,11 +17,6 @@ attribute :start_date, xpath: "@startDate", type: :datetime
end
- rowset :member_co... | Remove unused memberCorporations rowset from Eve::AllianceList.
|
diff --git a/lib/rack/link_headers/helper.rb b/lib/rack/link_headers/helper.rb
index abc1234..def5678 100644
--- a/lib/rack/link_headers/helper.rb
+++ b/lib/rack/link_headers/helper.rb
@@ -17,8 +17,8 @@ links << {:url => url.to_s, :params => params}
self["Link"] = links.to_a.map do |link|
- ... | Sort params keys before mapping to force order.
|
diff --git a/lib/simplest_photo/has_photo.rb b/lib/simplest_photo/has_photo.rb
index abc1234..def5678 100644
--- a/lib/simplest_photo/has_photo.rb
+++ b/lib/simplest_photo/has_photo.rb
@@ -1,7 +1,7 @@ module SimplestPhoto
module HasPhoto
- def has_photo(name, required: false)
+ def has_photo(name, options = ... | Allow users to pass through additional validation options
- Like `on: :update`
|
diff --git a/exe/gmail-slack-notifier.rb b/exe/gmail-slack-notifier.rb
index abc1234..def5678 100644
--- a/exe/gmail-slack-notifier.rb
+++ b/exe/gmail-slack-notifier.rb
@@ -2,4 +2,4 @@
require 'gmail/slack/notifier'
-Gmail::Slack::Notifier.new.run!
+Gmail::Slack::Notifier.new.run
| Update exe to remove bang off run method
|
diff --git a/lib/vidibus/watch_folder/job.rb b/lib/vidibus/watch_folder/job.rb
index abc1234..def5678 100644
--- a/lib/vidibus/watch_folder/job.rb
+++ b/lib/vidibus/watch_folder/job.rb
@@ -31,7 +31,7 @@ end
def delete_all(uuid, event, path)
- regex = /Vidibus::WatchFolder::Job\nuuid: #{uuid}... | Allow white space after class name for Ruby 1.8.7 |
diff --git a/Casks/vivaldi-snapshot.rb b/Casks/vivaldi-snapshot.rb
index abc1234..def5678 100644
--- a/Casks/vivaldi-snapshot.rb
+++ b/Casks/vivaldi-snapshot.rb
@@ -1,6 +1,6 @@ cask :v1 => 'vivaldi-snapshot' do
- version '1.0.209.3'
- sha256 '07067b11414f7dffff6fb03deb832fdd23bef64cfc67c27911f2c131842d8641'
+ versio... | Upgrade Vivaldi.app (Snapshot) to v1.0.219.51
|
diff --git a/ffi.gemspec b/ffi.gemspec
index abc1234..def5678 100644
--- a/ffi.gemspec
+++ b/ffi.gemspec
@@ -9,6 +9,7 @@ s.files = %w(ffi.gemspec History.txt LICENSE COPYING COPYING.LESSER README.md Rakefile) + Dir.glob("{ext,gen,lib,spec,libtest}/**/*").reject { |f| f =~ /lib\/1\.[89]/}
s.extensions << 'ext/ffi_c... | Exclude object files from rdoc
|
diff --git a/arproxy-query_caller_location_annotator.gemspec b/arproxy-query_caller_location_annotator.gemspec
index abc1234..def5678 100644
--- a/arproxy-query_caller_location_annotator.gemspec
+++ b/arproxy-query_caller_location_annotator.gemspec
@@ -20,7 +20,7 @@ spec.require_paths = ['lib']
spec.add_dependen... | Move rails dependency to runtime one
|
diff --git a/app/models/alert_types/bad_work_alert.rb b/app/models/alert_types/bad_work_alert.rb
index abc1234..def5678 100644
--- a/app/models/alert_types/bad_work_alert.rb
+++ b/app/models/alert_types/bad_work_alert.rb
@@ -46,7 +46,8 @@ private
def set_default_values
- self.message = "BadWorkAlert for #{art... | Add link to article to notification message
|
diff --git a/app/models/spree/avatax_configuration.rb b/app/models/spree/avatax_configuration.rb
index abc1234..def5678 100644
--- a/app/models/spree/avatax_configuration.rb
+++ b/app/models/spree/avatax_configuration.rb
@@ -4,7 +4,7 @@ preference :company_code, :string, default: ENV['AVATAX_COMPANY_CODE']
prefere... | Make default_environment a class method
As instance methods are deprecated since this PR[0].
[0] `https://github.com/solidusio/solidus/pull/4064`
|
diff --git a/torasup.gemspec b/torasup.gemspec
index abc1234..def5678 100644
--- a/torasup.gemspec
+++ b/torasup.gemspec
@@ -11,7 +11,7 @@ gem.description = %q{"Retuns metadata about a phone number such as operator, area code and more"}
gem.summary = %q{"Retuns metadata about a phone number such as operato... | Fix syntax error in gemspec
|
diff --git a/migrate/20190801141446_add_nr_fields_to_country_statistics.rb b/migrate/20190801141446_add_nr_fields_to_country_statistics.rb
index abc1234..def5678 100644
--- a/migrate/20190801141446_add_nr_fields_to_country_statistics.rb
+++ b/migrate/20190801141446_add_nr_fields_to_country_statistics.rb
@@ -0,0 +1,8 @@... | Add NR stats to country statistics
|
diff --git a/app/workers/notification_email_worker.rb b/app/workers/notification_email_worker.rb
index abc1234..def5678 100644
--- a/app/workers/notification_email_worker.rb
+++ b/app/workers/notification_email_worker.rb
@@ -6,6 +6,7 @@ max_in_interval: 10,
min_delay: 5.minutes,
reject_with: :reschedule,
... | Disable rate-limiter rejection tracking on notification email worker |
diff --git a/lib/amazon-drs.rb b/lib/amazon-drs.rb
index abc1234..def5678 100644
--- a/lib/amazon-drs.rb
+++ b/lib/amazon-drs.rb
@@ -1,4 +1,5 @@ require 'amazon-drs/version'
+require 'amazon-drs/client'
module AmazonDrs
# Your code goes here...
| Add require Client on top
|
diff --git a/lib/engineyard.rb b/lib/engineyard.rb
index abc1234..def5678 100644
--- a/lib/engineyard.rb
+++ b/lib/engineyard.rb
@@ -1,7 +1,7 @@ module EY
require 'engineyard/ruby_ext'
- VERSION = "0.3.0"
+ VERSION = "0.3.1.pre"
autoload :Account, 'engineyard/account'
autoload :API, 'engineyard/api'
| Add .pre for next release
Change-Id: I52cd42b0bbd79d676ed6164803886e7b5384b935
Reviewed-on: http://review.engineyard.com/261
Reviewed-by: Sam Merritt <5aec43857f03982d0d771daf2f8c2a359d3ce580@engineyard.com>
Tested-by: Sam Merritt <5aec43857f03982d0d771daf2f8c2a359d3ce580@engineyard.com>
|
diff --git a/lib/s3_storage.rb b/lib/s3_storage.rb
index abc1234..def5678 100644
--- a/lib/s3_storage.rb
+++ b/lib/s3_storage.rb
@@ -4,7 +4,11 @@ NotConfiguredError = Class.new(StandardError)
def self.build(bucket_name)
- bucket_name.present? ? new(bucket_name) : Null.new
+ if bucket_name.present?
+ n... | Convert ternary expression into if/else in S3Storage.build
I'm about to make this logic more complicated and I think it will be
easier to see the changes if I make this change first.
|
diff --git a/test/fakie/spot_test.rb b/test/fakie/spot_test.rb
index abc1234..def5678 100644
--- a/test/fakie/spot_test.rb
+++ b/test/fakie/spot_test.rb
@@ -0,0 +1,30 @@+require 'test_helper'
+
+module Fakie
+ class SpotTest < TestCase
+ def test_fr
+ phone_number = PhoneNumber.parse('+33 06 61 25 00 00')
+ ... | Add some tests for numbers that weren't working with Phonie
|
diff --git a/lib/saxon/xslt.rb b/lib/saxon/xslt.rb
index abc1234..def5678 100644
--- a/lib/saxon/xslt.rb
+++ b/lib/saxon/xslt.rb
@@ -4,10 +4,6 @@ $CLASSPATH << File.expand_path('../../../vendor/saxonica/saxon9-unpack.jar', __FILE__)
java_import javax.xml.transform.stream.StreamSource
-
-module JavaIO
- include_pac... | Fix bug; make use of basic java.io.* classes more JRuby-ish
|
diff --git a/test/spec/posts_spec.rb b/test/spec/posts_spec.rb
index abc1234..def5678 100644
--- a/test/spec/posts_spec.rb
+++ b/test/spec/posts_spec.rb
@@ -0,0 +1,17 @@+require 'minitest_helper'
+
+# MediumSpec is used to test the main Medium SDK Client
+module MediumSpec
+ describe 'Medium Posts Client', 'The Medium... | Add boilerplate to begin testing Posts
|
diff --git a/test/cli_test.rb b/test/cli_test.rb
index abc1234..def5678 100644
--- a/test/cli_test.rb
+++ b/test/cli_test.rb
@@ -3,20 +3,37 @@ class CliTest < MiniTest::Test
def test_list
- cli = Cheatly::CLI.new([], nopaginate: true, test: true)
- cli.list
+ begin
+ cli = Cheatly::CLI.new([], nopagi... | Add exceptions to CLI test
|
diff --git a/view_markdown.rb b/view_markdown.rb
index abc1234..def5678 100644
--- a/view_markdown.rb
+++ b/view_markdown.rb
@@ -1,9 +1,10 @@ #!/usr/bin/env ruby
# Quick script for viewing getting at kramdown's view of a markdown file
-require 'kramdown'
+require 'mdl/doc'
require 'pry'
-doc = Kramdown::Document.ne... | Change the quick test script to use a doc object
This allows using markdownlint's doc object methods as used in rules when
troubleshooting a document.
|
diff --git a/test/target/file_target_test.rb b/test/target/file_target_test.rb
index abc1234..def5678 100644
--- a/test/target/file_target_test.rb
+++ b/test/target/file_target_test.rb
@@ -3,7 +3,7 @@ class Tumugi::Target::FileTargetTest < Test::Unit::TestCase
sub_test_case '#exist?' do
setup do
- @file = ... | Fix test for ruby <= 2.2
|
diff --git a/pessimize.gemspec b/pessimize.gemspec
index abc1234..def5678 100644
--- a/pessimize.gemspec
+++ b/pessimize.gemspec
@@ -10,9 +10,9 @@ gem.email = ["jon@joncairns.com"]
gem.description = %q{Add the pessimistic constraint operator to all gems in your Gemfile, restricting the maximum update ver... | Improve description and add homepage
|
diff --git a/phantomjs.gemspec b/phantomjs.gemspec
index abc1234..def5678 100644
--- a/phantomjs.gemspec
+++ b/phantomjs.gemspec
@@ -10,6 +10,7 @@ gem.license = 'MIT'
gem.add_development_dependency 'poltergeist'
+ gem.add_development_dependency 'capybara', '~> 2.0.0'
gem.add_development_dependency 'rsp... | Enforce Capybara ~> 2.0, since Poltergeist fails with 2.1
|
diff --git a/shameless.gemspec b/shameless.gemspec
index abc1234..def5678 100644
--- a/shameless.gemspec
+++ b/shameless.gemspec
@@ -5,8 +5,8 @@ Gem::Specification.new do |spec|
spec.name = "shameless"
spec.version = Shameless::VERSION
- spec.authors = ["Olek Janiszewski"]
- spec.email ... | Add Chas and Marek as contributors
|
diff --git a/lib/cowsay.rb b/lib/cowsay.rb
index abc1234..def5678 100644
--- a/lib/cowsay.rb
+++ b/lib/cowsay.rb
@@ -10,7 +10,7 @@ end
def character_classes
- @character_classes ||= Character.constants - [:Base, :Template]
+ @character_classes ||= Character.constants.map { |c| c.to_sym } - [:Base, :Templat... | Make character_classes compatible with Ruby 1.8.
|
diff --git a/lib/hanvox.rb b/lib/hanvox.rb
index abc1234..def5678 100644
--- a/lib/hanvox.rb
+++ b/lib/hanvox.rb
@@ -4,4 +4,5 @@
module Hanvox
-end+end
+
| Add space at bottom of file
|
diff --git a/lib/mactag.rb b/lib/mactag.rb
index abc1234..def5678 100644
--- a/lib/mactag.rb
+++ b/lib/mactag.rb
@@ -9,7 +9,7 @@ autoload :Rails, 'rails'
def self.warn(message)
- $stderr.puts(message)
+ STDERR.puts(message)
end
end
| Use constant instead of global variable.
|
diff --git a/lib/runner.rb b/lib/runner.rb
index abc1234..def5678 100644
--- a/lib/runner.rb
+++ b/lib/runner.rb
@@ -24,7 +24,7 @@ EM.run do
player = Spotbot::Player.new($logger)
player.run
- Thin::Server.start Spotbot::Web.new(player), '0.0.0.0', 3000
+ Thin::Server.start Spotbot::Web.new(p... | Read server port from ENV |
diff --git a/lib/ruzai2.rb b/lib/ruzai2.rb
index abc1234..def5678 100644
--- a/lib/ruzai2.rb
+++ b/lib/ruzai2.rb
@@ -15,12 +15,10 @@ )
end
- def banned?(user_id, hoge_id, fuga_id)
+ def banned?(id_params)
RuzaiList.where(
- user_id: user_id,
- hoge_id: hoge_id,
- ... | Fix production code for passing test.
|
diff --git a/spec/factories/organs.rb b/spec/factories/organs.rb
index abc1234..def5678 100644
--- a/spec/factories/organs.rb
+++ b/spec/factories/organs.rb
@@ -3,12 +3,12 @@
FactoryGirl.define do
factory :organ do
- factory :tasa_arvotyoryhma, :class => Organ do
+ factory :tasa_arvotyoryhma do
name ... | Remove unnecessary class specification from factory |
diff --git a/test/integration_test_helper.rb b/test/integration_test_helper.rb
index abc1234..def5678 100644
--- a/test/integration_test_helper.rb
+++ b/test/integration_test_helper.rb
@@ -3,6 +3,7 @@ require 'webmock'
DatabaseCleaner.strategy = :transaction
+WebMock.disable_net_connect!
class ActionDispatch::Int... | Disable connections in integration tests
|
diff --git a/spec/moovy/movie_spec.rb b/spec/moovy/movie_spec.rb
index abc1234..def5678 100644
--- a/spec/moovy/movie_spec.rb
+++ b/spec/moovy/movie_spec.rb
@@ -0,0 +1,9 @@+require 'spec_helper'
+
+describe Moovy::Movie do
+ it 'allows me to search for a movie title' do
+ movies = Moovy::Movie.search('Frozen')
+ ... | Add moovy spec directory and movie spec
|
diff --git a/nobrainer.gemspec b/nobrainer.gemspec
index abc1234..def5678 100644
--- a/nobrainer.gemspec
+++ b/nobrainer.gemspec
@@ -15,7 +15,7 @@ s.description = "ORM for RethinkDB"
s.license = 'MIT'
- s.add_dependency "rethinkdb", "~> 1.10.0"
+ s.add_dependency "rethinkdb", "~> 1.11.0.1"
s.add_dep... | Update to latest rethinkdb library (v1.11.0.1)
|
diff --git a/ci_environment/kerl/attributes/source.rb b/ci_environment/kerl/attributes/source.rb
index abc1234..def5678 100644
--- a/ci_environment/kerl/attributes/source.rb
+++ b/ci_environment/kerl/attributes/source.rb
@@ -1,2 +1,2 @@-default[:kerl][:releases] = %w(R14B02 R14B03 R14B04 R15B R15B01 R15B02 R15B03 R16B ... | Support Erlang 17.0-rc1 with kerl |
diff --git a/powerpack.gemspec b/powerpack.gemspec
index abc1234..def5678 100644
--- a/powerpack.gemspec
+++ b/powerpack.gemspec
@@ -17,7 +17,7 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ['lib']
- spec.add_development_dependency 'bundler', '~> 1.3'
+ spec.add_devel... | Update gemspec to allow bundler 2.x
|
diff --git a/test/test_parameter_renaming.rb b/test/test_parameter_renaming.rb
index abc1234..def5678 100644
--- a/test/test_parameter_renaming.rb
+++ b/test/test_parameter_renaming.rb
@@ -31,4 +31,15 @@ assert_equal 666,
ExecJS.exec( shuffled )
end
+
+ def test_references_updated
+ ... | Add last test, which already passes
|
diff --git a/sprout-osx-base/attributes/versions.rb b/sprout-osx-base/attributes/versions.rb
index abc1234..def5678 100644
--- a/sprout-osx-base/attributes/versions.rb
+++ b/sprout-osx-base/attributes/versions.rb
@@ -1 +1 @@-node.default['versions']['bash_it'] = '5cb0ecc1c813bc5619e0f708b8015a4596a37d6c'
+node.default[... | Update bash-it sha to latest for chruby support
* existing version is from Aug 2012
* changes: https://github.com/revans/bash-it/compare/5cb0ecc...8bf641b
|
diff --git a/spree_log_viewer.gemspec b/spree_log_viewer.gemspec
index abc1234..def5678 100644
--- a/spree_log_viewer.gemspec
+++ b/spree_log_viewer.gemspec
@@ -16,5 +16,5 @@ s.require_path = 'lib'
s.requirements << 'none'
- s.add_dependency('spree_core', '>= 0.60.4')
+ s.add_dependency('spree_core', '>= 0.70.... | Revert "Retains compatibility with 0.60.4"
This reverts commit 8a4f12d0f09626d9ada0bf76f20c417597cd034e.
|
diff --git a/yubioath.gemspec b/yubioath.gemspec
index abc1234..def5678 100644
--- a/yubioath.gemspec
+++ b/yubioath.gemspec
@@ -6,7 +6,7 @@ spec.name = 'yubioath'
spec.version = '0.0.1'
spec.authors = ['James Ottaway']
- spec.email = ['git@james.ottaway.io']
+ spec.email ... | Update my email address in the gemspec
|
diff --git a/exercises/crypto-square/.meta/solutions/crypto_square.rb b/exercises/crypto-square/.meta/solutions/crypto_square.rb
index abc1234..def5678 100644
--- a/exercises/crypto-square/.meta/solutions/crypto_square.rb
+++ b/exercises/crypto-square/.meta/solutions/crypto_square.rb
@@ -37,3 +37,7 @@ chunks.transp... | Include BookKeeping version in crypto-square example solution
|
diff --git a/app/interactors/pavlov/search_helper.rb b/app/interactors/pavlov/search_helper.rb
index abc1234..def5678 100644
--- a/app/interactors/pavlov/search_helper.rb
+++ b/app/interactors/pavlov/search_helper.rb
@@ -7,8 +7,8 @@ raise Pavlov::AccessDenied unless authorized?
return [] if filtered_keywor... | Use Pavlov syntax for search interactor
|
diff --git a/rb_tuntap.gemspec b/rb_tuntap.gemspec
index abc1234..def5678 100644
--- a/rb_tuntap.gemspec
+++ b/rb_tuntap.gemspec
@@ -26,4 +26,5 @@
spec.add_development_dependency "bundler", "~> 1.7"
spec.add_development_dependency "rake", "~> 10.0"
+ spec.add_development_dependency "rake-compiler"
end
| Add rake-compiler to development dependencies.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.