diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/flack.gemspec b/flack.gemspec
index abc1234..def5678 100644
--- a/flack.gemspec
+++ b/flack.gemspec
@@ -32,7 +32,7 @@ s.add_runtime_dependency 'flor'
s.add_runtime_dependency 'rack', '>= 1.6', '< 3.0'
- s.add_runtime_dependency 'httpclient', '~> 2.8'
+ #s.add_runtime_dependency 'httpclient', '~> 2... | Remove dependency on httpclient gem
|
diff --git a/Casks/bitwig-studio.rb b/Casks/bitwig-studio.rb
index abc1234..def5678 100644
--- a/Casks/bitwig-studio.rb
+++ b/Casks/bitwig-studio.rb
@@ -1,11 +1,13 @@ cask 'bitwig-studio' do
- version '1.3.3'
- sha256 '6d614095b1b39e387ed4c96a70342c5d982a6d4a5c71e6a4498f25b7898b909b'
+ version '1.3.5'
+ sha256 'f15... | Update Bitwig Studio cask to 1.3.5
Add Bitwig Studio auto_updates stanza
|
diff --git a/test/test_action_scp.rb b/test/test_action_scp.rb
index abc1234..def5678 100644
--- a/test/test_action_scp.rb
+++ b/test/test_action_scp.rb
@@ -0,0 +1,10 @@+require 'helper'
+
+class TestActionSCP < Test::Unit::TestCase
+ context "The 'rutty scp' action" do
+ setup { ensure_fresh_config! }
+ teardow... | Add 'rutty scp' tests file
|
diff --git a/spec/models/club_spec.rb b/spec/models/club_spec.rb
index abc1234..def5678 100644
--- a/spec/models/club_spec.rb
+++ b/spec/models/club_spec.rb
@@ -1,5 +1,26 @@ require 'spec_helper'
describe Club do
- skip "add some examples to (or delete) #{__FILE__}"
+ let(:creator) {
+ FactoryGirl::create(:user... | Add tests for club model
|
diff --git a/site-cookbooks/backup_restore/recipes/setup.rb b/site-cookbooks/backup_restore/recipes/setup.rb
index abc1234..def5678 100644
--- a/site-cookbooks/backup_restore/recipes/setup.rb
+++ b/site-cookbooks/backup_restore/recipes/setup.rb
@@ -1,4 +1,9 @@ include_recipe 'cron'
+
+package ['zlib-devel', 'xz-devel']... | Add required packages to build nokogiri.
|
diff --git a/Casks/gitbox.rb b/Casks/gitbox.rb
index abc1234..def5678 100644
--- a/Casks/gitbox.rb
+++ b/Casks/gitbox.rb
@@ -3,5 +3,5 @@ homepage 'http://gitboxapp.com/'
version '1.6.2'
sha1 '20fdea01bf3b26f6ba23fa2b909a7d56cddb6250'
- link :app, 'Gitbox.app'
+ link 'Gitbox.app'
end
| Simplify link :app, to link
|
diff --git a/spec/blocktrain/client_spec.rb b/spec/blocktrain/client_spec.rb
index abc1234..def5678 100644
--- a/spec/blocktrain/client_spec.rb
+++ b/spec/blocktrain/client_spec.rb
@@ -20,5 +20,13 @@
expect(described_class.index).to eq('my_cool_index')
end
+
+ it 'builds the endpoint' do
+ allow(EN... | Add test for endpoint building
|
diff --git a/lib/tinami.rb b/lib/tinami.rb
index abc1234..def5678 100644
--- a/lib/tinami.rb
+++ b/lib/tinami.rb
@@ -19,7 +19,7 @@ end
# Delegate to {TINAMI::Client}
- def self.respond_to?(method_name)
- return client.respond_to?(method_name) || super
+ def self.respond_to?(method_name, include_private = fa... | Add optional arg include_private to TINAMI.method_missing
|
diff --git a/acapi.gemspec b/acapi.gemspec
index abc1234..def5678 100644
--- a/acapi.gemspec
+++ b/acapi.gemspec
@@ -8,8 +8,8 @@ spec.version = Acapi::VERSION
spec.authors = ["Dan Thomas"]
spec.email = ["dan.thomas@dc.gov"]
- spec.summary = %q{Enterprise communication onramp to Afford... | Add description to avoid bundler throwing exception during install
|
diff --git a/EliteFramework.podspec b/EliteFramework.podspec
index abc1234..def5678 100644
--- a/EliteFramework.podspec
+++ b/EliteFramework.podspec
@@ -1,7 +1,7 @@ Pod::Spec.new do |spec|
spec.name = "EliteFramework"
- spec.version = "4.0.1"
+ spec.version = "4.2.1"
spec.summary = "UI and NS extended, write ... | Update .podspec version to 4.2.1
|
diff --git a/test/register_test.rb b/test/register_test.rb
index abc1234..def5678 100644
--- a/test/register_test.rb
+++ b/test/register_test.rb
@@ -0,0 +1,22 @@+require 'test_helper'
+
+describe 'Redis::Breadcrumb' do
+ before do
+ Redis::Breadcrumb.redis = MockRedis.new
+ end
+
+ it 'can register owned keys for... | Add test 'can register owned keys for a specific object'
|
diff --git a/app/controllers/metrics_controller.rb b/app/controllers/metrics_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/metrics_controller.rb
+++ b/app/controllers/metrics_controller.rb
@@ -6,12 +6,21 @@ STEP = 10
# GET
def get
+ unless params[:metric] then
+ render json: available_metrics... | Add metrics listing to metrics controller when no metric given
Logic and API RESTfulness to follow
|
diff --git a/app/controllers/sources_controller.rb b/app/controllers/sources_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/sources_controller.rb
+++ b/app/controllers/sources_controller.rb
@@ -13,6 +13,8 @@ end
def create
+ return redirect_alert unless @is_admin
+
if SourceResolver.re... | Add permissions check when submitting sources form
|
diff --git a/app.rb b/app.rb
index abc1234..def5678 100644
--- a/app.rb
+++ b/app.rb
@@ -19,6 +19,10 @@ module Transitmix
class App < Sinatra::Application
set :root, File.expand_path('../', __FILE__)
+
+ configure :production do
+ require 'newrelic_npm'
+ end
end
end
| Set New Relic to only run on prod
|
diff --git a/app/models/spree/variant_decorator.rb b/app/models/spree/variant_decorator.rb
index abc1234..def5678 100644
--- a/app/models/spree/variant_decorator.rb
+++ b/app/models/spree/variant_decorator.rb
@@ -0,0 +1,11 @@+Spree::Variant.class_eval do
+
+ scope :complete_order, -> { joins(:orders).where.not(spree_o... | Add scope for get variant data
|
diff --git a/has_magic_columns.gemspec b/has_magic_columns.gemspec
index abc1234..def5678 100644
--- a/has_magic_columns.gemspec
+++ b/has_magic_columns.gemspec
@@ -1,6 +1,5 @@ # -*- encoding: utf-8 -*-
-#lib = File.expand_path('../lib/', __FILE__)
-$:.push File.expand_path("../lib", __FILE__) #lib unless $:.include?(l... | Remove old comments from gemspec
|
diff --git a/lib/codeclimate_ci/get_gpa.rb b/lib/codeclimate_ci/get_gpa.rb
index abc1234..def5678 100644
--- a/lib/codeclimate_ci/get_gpa.rb
+++ b/lib/codeclimate_ci/get_gpa.rb
@@ -1,4 +1,7 @@- class CodeclimateCi::GetGpa
+module CodeclimateCi
+ class GetGpa
+ NULL_VALUE = 0
+
def initialize(api_requester, br... | Add NULL_VALUE constant in GetGpa class
|
diff --git a/server.rb b/server.rb
index abc1234..def5678 100644
--- a/server.rb
+++ b/server.rb
@@ -1,20 +1,13 @@ require 'sinatra'
# dumblib
-class App
- @@text_id = nil
- def self.text_id *args
- if args.empty?
- @@text_id
- else
- @@text_id = args.first
- end
- end
-end
-
module Dumbstore
... | Fix bugs in dummy weather app
|
diff --git a/imgur.gemspec b/imgur.gemspec
index abc1234..def5678 100644
--- a/imgur.gemspec
+++ b/imgur.gemspec
@@ -4,7 +4,7 @@ require 'imgur/version'
Gem::Specification.new do |spec|
- spec.name = 'imgur'
+ spec.name = 'imgur-api'
spec.version = Imgur::VERSION
spec.authors = ... | Change name to avoid RubyGems conflict
|
diff --git a/TreasureData-iOS-SDK.podspec b/TreasureData-iOS-SDK.podspec
index abc1234..def5678 100644
--- a/TreasureData-iOS-SDK.podspec
+++ b/TreasureData-iOS-SDK.podspec
@@ -4,7 +4,7 @@ s.summary = "TreasureData SDK for iOS."
s.license = "Apache"
s.author = { "TreasureData" => "mitsu@treasure... | Set minimum iOS version on `platform` in the podspec file
|
diff --git a/recipes/default.rb b/recipes/default.rb
index abc1234..def5678 100644
--- a/recipes/default.rb
+++ b/recipes/default.rb
@@ -10,6 +10,7 @@ include_recipe 'pacman'
package('git') { action :install }
+package('hub') { action :install }
git "#{Chef::Config[:file_cache_path]}/git-extras" do
repository ... | Install 'hub' from community package
|
diff --git a/recipes/default.rb b/recipes/default.rb
index abc1234..def5678 100644
--- a/recipes/default.rb
+++ b/recipes/default.rb
@@ -22,6 +22,6 @@ template "/etc/apt/sources.list" do
mode 00644
variables :code_name => node['lsb']['codename']
- notifies :run, resources(:execute => "apt-get update"), :immediat... | Use the new format for notifies
|
diff --git a/recipes/disable.rb b/recipes/disable.rb
index abc1234..def5678 100644
--- a/recipes/disable.rb
+++ b/recipes/disable.rb
@@ -23,7 +23,8 @@ swap_devices += node['filesystem'].select { |_fs, conf| conf['fs_type'] == 'swap' }.keys
swap_devices.uniq.each do |swap_device|
- mount 'none' do
+ mount "none_#{s... | Make sure resource name is unique on each loop run
|
diff --git a/recipes/smartos.rb b/recipes/smartos.rb
index abc1234..def5678 100644
--- a/recipes/smartos.rb
+++ b/recipes/smartos.rb
@@ -18,5 +18,10 @@ #
potentially_at_compile_time do
+ package 'autoconf'
+ package 'binutils'
package 'build-essential'
+ package 'gcc47'
+ package 'gmake'
+ package 'pkg-confi... | Add more development packages for SmartOS
|
diff --git a/justice.gemspec b/justice.gemspec
index abc1234..def5678 100644
--- a/justice.gemspec
+++ b/justice.gemspec
@@ -21,7 +21,7 @@ s.test_files = s.files.grep(%r{^(spec|features)/})
s.require_paths = [ 'lib' ]
- s.add_development_dependency 'bundler', '~> 1.3'
+ s.add_development_dependency 'bundler... | Allow Bundler 1.2.5 for Ruby 1.0.
|
diff --git a/db/migrate/20171019023214_add_tenant_name_to_sites.rb b/db/migrate/20171019023214_add_tenant_name_to_sites.rb
index abc1234..def5678 100644
--- a/db/migrate/20171019023214_add_tenant_name_to_sites.rb
+++ b/db/migrate/20171019023214_add_tenant_name_to_sites.rb
@@ -4,6 +4,9 @@ def change
add_column(:s... | Update schema information for site when update tenant name
|
diff --git a/yertle_formatter.gemspec b/yertle_formatter.gemspec
index abc1234..def5678 100644
--- a/yertle_formatter.gemspec
+++ b/yertle_formatter.gemspec
@@ -18,7 +18,7 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
- spec.add_runtime_dependency "rspec", ">= ... | Update to support any 3.x version of rspec
|
diff --git a/lib/rubocop/cop/lint/duplicate_case_condition.rb b/lib/rubocop/cop/lint/duplicate_case_condition.rb
index abc1234..def5678 100644
--- a/lib/rubocop/cop/lint/duplicate_case_condition.rb
+++ b/lib/rubocop/cop/lint/duplicate_case_condition.rb
@@ -17,7 +17,7 @@ # end
#
class DuplicateCas... | Improve a bit the message of DuplicateCaseCondition
|
diff --git a/lib/slackbot_frd/slack_methods/validate_slack.rb b/lib/slackbot_frd/slack_methods/validate_slack.rb
index abc1234..def5678 100644
--- a/lib/slackbot_frd/slack_methods/validate_slack.rb
+++ b/lib/slackbot_frd/slack_methods/validate_slack.rb
@@ -13,7 +13,7 @@ else
'Slack re... | Switch validation error to StandardError
|
diff --git a/lib/ruby_hue.rb b/lib/ruby_hue.rb
index abc1234..def5678 100644
--- a/lib/ruby_hue.rb
+++ b/lib/ruby_hue.rb
@@ -1,10 +1,12 @@ require "ruby_hue/version"
-require "ruby_hue/client"
-require "ruby_hue/model"
-require "ruby_hue/light"
-require "ruby_hue/light/basic_state"
-require "ruby_hue/light/state"
-requ... | Move everything into autoloads that can be.
|
diff --git a/scss_toolkit_rails.gemspec b/scss_toolkit_rails.gemspec
index abc1234..def5678 100644
--- a/scss_toolkit_rails.gemspec
+++ b/scss_toolkit_rails.gemspec
@@ -18,6 +18,6 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
- spec.add_development_dependency "... | Change bundler version spec in Gemfile
|
diff --git a/Casks/scansnap-manager.rb b/Casks/scansnap-manager.rb
index abc1234..def5678 100644
--- a/Casks/scansnap-manager.rb
+++ b/Casks/scansnap-manager.rb
@@ -2,7 +2,7 @@ url 'http://www.fujitsu.com/downloads/IMAGE/driver/ss/mgr/m-sv600/MacScanSnapV62L10WW.dmg'
homepage 'http://www.fujitsu.com/global/support... | Update sha256 for ScanSnap Manager
|
diff --git a/lib/helper.rb b/lib/helper.rb
index abc1234..def5678 100644
--- a/lib/helper.rb
+++ b/lib/helper.rb
@@ -5,32 +5,15 @@
class LadderHelper
- def self.dynamic_chunk(klass_or_collection, factor = 1)
+ def self.chunkify(klass_or_collection, opts = {})
- # super rough/hacky free mem calculation (inclu... | Remove LadderHelper::dynamic chunk; default to 1000 docs/chunk
|
diff --git a/db/migrate/20151119100750_change_description_column_types.rb b/db/migrate/20151119100750_change_description_column_types.rb
index abc1234..def5678 100644
--- a/db/migrate/20151119100750_change_description_column_types.rb
+++ b/db/migrate/20151119100750_change_description_column_types.rb
@@ -4,7 +4,7 @@ ... | Set the column default after the data migration…
This makes it so that the table isn’t locked during
the slow data migration (about 15 seconds or so) |
diff --git a/lib/rtrail.rb b/lib/rtrail.rb
index abc1234..def5678 100644
--- a/lib/rtrail.rb
+++ b/lib/rtrail.rb
@@ -0,0 +1,19 @@+[
+ 'api',
+ 'case',
+ 'client',
+ 'entity',
+ 'exceptions',
+ 'plan',
+ 'project',
+ 'result',
+ 'run',
+ 'suite',
+ 'test'
+].each do |file|
+ require_relative "rtrail/#{file}"... | Make it easier to require all of RTrail
|
diff --git a/transam_spatial.gemspec b/transam_spatial.gemspec
index abc1234..def5678 100644
--- a/transam_spatial.gemspec
+++ b/transam_spatial.gemspec
@@ -23,7 +23,7 @@ s.add_development_dependency "rspec-rails"
s.add_development_dependency "factory_girl_rails"
s.add_development_dependency "database_cleaner" ... | Use the mysql gem required for testing
|
diff --git a/omniauth-teamsnap.gemspec b/omniauth-teamsnap.gemspec
index abc1234..def5678 100644
--- a/omniauth-teamsnap.gemspec
+++ b/omniauth-teamsnap.gemspec
@@ -19,7 +19,7 @@
spec.add_dependency "omniauth", "~> 1.2"
spec.add_dependency "omniauth-oauth2", "1.3.1"
- spec.add_dependency "faraday", ">= 0.9.2"
+... | Improve version reference for Faraday
|
diff --git a/SwiftlySalesforce.podspec b/SwiftlySalesforce.podspec
index abc1234..def5678 100644
--- a/SwiftlySalesforce.podspec
+++ b/SwiftlySalesforce.podspec
@@ -22,7 +22,7 @@ 'SwiftlySalesforce' => ['Pod/Assets/*.png']
}
- s.dependency 'PromiseKit', '~> 3.0'
+ s.dependency 'PromiseKit', '~> 3.2.1'
s.d... | Upgrade PromiseKit dependency to '~> 3.2.1'
|
diff --git a/spec/models/publisher_spec.rb b/spec/models/publisher_spec.rb
index abc1234..def5678 100644
--- a/spec/models/publisher_spec.rb
+++ b/spec/models/publisher_spec.rb
@@ -36,4 +36,9 @@ other = build(:publisher, endpoint: publisher.endpoint)
expect(other).not_to be_valid
end
+
+ it 'requires a cit... | Add spec for publisher validation
|
diff --git a/nokogiri/google_finance/spec/stock_trend_spec.rb b/nokogiri/google_finance/spec/stock_trend_spec.rb
index abc1234..def5678 100644
--- a/nokogiri/google_finance/spec/stock_trend_spec.rb
+++ b/nokogiri/google_finance/spec/stock_trend_spec.rb
@@ -4,10 +4,29 @@
let(:s) { StockTrend.new }
- # check googl... | Return html nokogiri objects back
|
diff --git a/test/integration_test.rb b/test/integration_test.rb
index abc1234..def5678 100644
--- a/test/integration_test.rb
+++ b/test/integration_test.rb
@@ -25,7 +25,7 @@ def test_fizz_test_is_selected
@repo.checkout('change_fizz')
output = RakeHelper.rake('ttnt:test:run', dir: @repo.workdir)
- ... | Use string instead of regexp
|
diff --git a/event_store-client-http.gemspec b/event_store-client-http.gemspec
index abc1234..def5678 100644
--- a/event_store-client-http.gemspec
+++ b/event_store-client-http.gemspec
@@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'event_store-client-http'
- s.version = '0.3.0'
+... | Package version is increased from 0.3.0 to 0.3.1
|
diff --git a/Formula/chocolate-doom.rb b/Formula/chocolate-doom.rb
index abc1234..def5678 100644
--- a/Formula/chocolate-doom.rb
+++ b/Formula/chocolate-doom.rb
@@ -7,6 +7,7 @@
depends_on 'sdl'
depends_on 'sdl_net'
+ depends_on 'sdl_mixer'
def install
system "./configure", "--prefix=#{prefix}",
| Add missing depend for sdl_mixer
|
diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb
index abc1234..def5678 100644
--- a/test/application_system_test_case.rb
+++ b/test/application_system_test_case.rb
@@ -21,7 +21,7 @@ "#{file_name}-#{format("%02d", @counter)}.png"
)
page.save_screenshot(Rails.root.... | Remove extra output in system tests
|
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
@@ -19,6 +19,7 @@
class ActiveSupport::TestCase
fixtures :all
+ include FactoryGirl::Syntax::Methods
end
require_dependency 'auth/current_user_provider'
| Add FactoryGirl helpers to tests
|
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
@@ -15,6 +15,7 @@ require 'rails/test_help'
require 'mocha/setup'
+Mocha::Configuration.prevent(:stubbing_non_existent_method)
require 'webmock/minitest'
WebMock.disable_net_co... | Configure Mocha to prevent stubbing of non-existent methods
Stubbing non-existent methods can lead to tests which don't test the real
interactions between objects. Dangerous!
|
diff --git a/TilllessBCScanner.podspec b/TilllessBCScanner.podspec
index abc1234..def5678 100644
--- a/TilllessBCScanner.podspec
+++ b/TilllessBCScanner.podspec
@@ -1,24 +1,25 @@ Pod::Spec.new do |s|
- s.name = "TilllessBCScanner"
- s.version = "0.0.2"
- s.summary = "TBarcodeScannerView... | Update to remedy after upgrade to 0.36.1 of cocoapods
|
diff --git a/lib/benchmark_email_api.rb b/lib/benchmark_email_api.rb
index abc1234..def5678 100644
--- a/lib/benchmark_email_api.rb
+++ b/lib/benchmark_email_api.rb
@@ -3,11 +3,14 @@ require "net/https"
require "openssl"
require "xmlrpc/client"
+require "uri"
module BenchmarkEmailApi
class Client
def initi... | Add headers to avoid error.
|
diff --git a/lib/cocoapods/file_list.rb b/lib/cocoapods/file_list.rb
index abc1234..def5678 100644
--- a/lib/cocoapods/file_list.rb
+++ b/lib/cocoapods/file_list.rb
@@ -30,18 +30,7 @@ end
end
-module Pod
- FileList = Rake::FileList
-end
-
-class Pathname
- alias_method :_original_sum, :+
- def +(other)
- if ... | [FileList] Remove unnecessary monkey patch and move definition of Pod::FileList
|
diff --git a/lib/dbd_onto/provenance.rb b/lib/dbd_onto/provenance.rb
index abc1234..def5678 100644
--- a/lib/dbd_onto/provenance.rb
+++ b/lib/dbd_onto/provenance.rb
@@ -12,23 +12,27 @@ def provenance
return @provenance if @provenance
@provenance = Dbd::ProvenanceResource.new
- context_public = Db... | Apply some Sandi Metz rules for refactoring
* a lot more readable now :-)
* spefically the paragraph below from
http://robots.thoughtbot.com/post/50655960596/sandi-metz-rules-for-developers
is relevant:
"Having only one line per branch urged us to use well-named private methods
to get work done. Private met... |
diff --git a/lib/docs/scrapers/cmake.rb b/lib/docs/scrapers/cmake.rb
index abc1234..def5678 100644
--- a/lib/docs/scrapers/cmake.rb
+++ b/lib/docs/scrapers/cmake.rb
@@ -21,8 +21,13 @@ Licensed under the BSD 3-clause License.
HTML
+ version '3.7' do
+ self.release = '3.7.0'
+ self.base_url = 'h... | Update CMake documentation (3.7.0, 3.6.3, 3.5.2)
|
diff --git a/lib/feed2email/database.rb b/lib/feed2email/database.rb
index abc1234..def5678 100644
--- a/lib/feed2email/database.rb
+++ b/lib/feed2email/database.rb
@@ -11,11 +11,18 @@
private
- def setup_connection(options)
- @connection = Sequel.connect(options)
+ def create_entries_table
+ co... | Create each table in a separate method
SRP
|
diff --git a/lib/frecon/models/robot.rb b/lib/frecon/models/robot.rb
index abc1234..def5678 100644
--- a/lib/frecon/models/robot.rb
+++ b/lib/frecon/models/robot.rb
@@ -11,9 +11,13 @@
module FReCon
class Robot < Model
+ # This is an optional field we included for organization.
field :name, type: String
bel... | Add some validations for the Robot
|
diff --git a/lib/honey_format/header.rb b/lib/honey_format/header.rb
index abc1234..def5678 100644
--- a/lib/honey_format/header.rb
+++ b/lib/honey_format/header.rb
@@ -10,8 +10,12 @@ # @param [Array] valid array of symbols representing valid columns.
# @raise [MissingCSVHeaderError] raised when header is miss... | Remove unneeded method and call to Sanitize::array
|
diff --git a/lib/mutant/mutator/self.rb b/lib/mutant/mutator/self.rb
index abc1234..def5678 100644
--- a/lib/mutant/mutator/self.rb
+++ b/lib/mutant/mutator/self.rb
@@ -0,0 +1,21 @@+module Mutant
+ class Mutator
+ # Mutator for Rubinius::AST::Self
+ class Self < Mutator
+
+ handle(Rubinius::AST::Self)
+ ... | Add noop mutator for Rubinius::AST::Self
|
diff --git a/lib/pdf/reader/bookmark.rb b/lib/pdf/reader/bookmark.rb
index abc1234..def5678 100644
--- a/lib/pdf/reader/bookmark.rb
+++ b/lib/pdf/reader/bookmark.rb
@@ -16,7 +16,7 @@ end
def level
- parent ? parent.level + 1 : 1
+ @parent ? @parent.level + 1 : 1
end
def find... | Fix problem with level calculation in Bookmark
|
diff --git a/lib/smartsheet/api/faraday_adapter/middleware/response_parser.rb b/lib/smartsheet/api/faraday_adapter/middleware/response_parser.rb
index abc1234..def5678 100644
--- a/lib/smartsheet/api/faraday_adapter/middleware/response_parser.rb
+++ b/lib/smartsheet/api/faraday_adapter/middleware/response_parser.rb
@@ ... | Change json parser to check for 'application/json' not 'json'
|
diff --git a/POSLMDB.podspec b/POSLMDB.podspec
index abc1234..def5678 100644
--- a/POSLMDB.podspec
+++ b/POSLMDB.podspec
@@ -12,7 +12,7 @@
s.source = { :git => 'https://github.com/pavelosipov/POSLMDB.git', :submodules => true }
s.source_files = %w{ mdb.c lmdb.h midl.h midl.c }.map { |f| File.join "lmdb-libr... | Replace module_name attribute with header_mappings_dir.
|
diff --git a/db/migrate/20160802075029_create_user_notifications.rb b/db/migrate/20160802075029_create_user_notifications.rb
index abc1234..def5678 100644
--- a/db/migrate/20160802075029_create_user_notifications.rb
+++ b/db/migrate/20160802075029_create_user_notifications.rb
@@ -2,7 +2,7 @@ change do
create_tab... | Add default to user notifications
|
diff --git a/logs/attributes/default.rb b/logs/attributes/default.rb
index abc1234..def5678 100644
--- a/logs/attributes/default.rb
+++ b/logs/attributes/default.rb
@@ -3,5 +3,5 @@ default[:logs][:apache] = true
default[:logs][:symfony_datetime] = '[%Y-%m-%d %H:%M:%S]'
default[:logs][:install_dir] = '/opt/aws/cloudwa... | Use version 1.3.9 of cloud watch installer as its broken in newer release
|
diff --git a/lib/jsonapi/rails/serializable_active_model_errors.rb b/lib/jsonapi/rails/serializable_active_model_errors.rb
index abc1234..def5678 100644
--- a/lib/jsonapi/rails/serializable_active_model_errors.rb
+++ b/lib/jsonapi/rails/serializable_active_model_errors.rb
@@ -25,7 +25,7 @@ end
def as_jso... | Use active record error attribute_names intead errors.keys if available
|
diff --git a/peeek.gemspec b/peeek.gemspec
index abc1234..def5678 100644
--- a/peeek.gemspec
+++ b/peeek.gemspec
@@ -4,19 +4,20 @@ require 'peeek/version'
Gem::Specification.new do |spec|
- spec.name = 'peeek'
- spec.version = Peeek::VERSION
- spec.authors = ['Takahiro Kondo']
- spec.email ... | Write summary and description of gemspec
|
diff --git a/week-4/simple-string.rb b/week-4/simple-string.rb
index abc1234..def5678 100644
--- a/week-4/simple-string.rb
+++ b/week-4/simple-string.rb
@@ -0,0 +1,26 @@+# Solution Below
+
+# RSpec Tests. They are included in this file because the local variables you are creating are not accessible across files. If we ... | Test code for reverse and upcase string - 0 failures
|
diff --git a/board_spec.rb b/board_spec.rb
index abc1234..def5678 100644
--- a/board_spec.rb
+++ b/board_spec.rb
@@ -0,0 +1,40 @@+require_relative 'board'
+
+describe 'ChessBoard' do
+
+ it 'should instantiate a new ChessBoard' do
+ board = ChessBoard.new
+ expect(board).to be_a ChessBoard
+ end
+
+ it 'shoul... | Set up skeleton for board specs
|
diff --git a/config/initializers/exlibris_aleph.rb b/config/initializers/exlibris_aleph.rb
index abc1234..def5678 100644
--- a/config/initializers/exlibris_aleph.rb
+++ b/config/initializers/exlibris_aleph.rb
@@ -3,6 +3,7 @@ Exlibris::Aleph::TablesManager.instance.sub_libraries.all
# Load all the item circulation ... | Print a message to standard output indicating that Exlibris::Aleph has completed initialization
|
diff --git a/lib/candy_check/app_store/receipt_collection.rb b/lib/candy_check/app_store/receipt_collection.rb
index abc1234..def5678 100644
--- a/lib/candy_check/app_store/receipt_collection.rb
+++ b/lib/candy_check/app_store/receipt_collection.rb
@@ -15,7 +15,7 @@ # Check if the latest expiration date is passed... | Add method for getting overdue days
|
diff --git a/lib/lucid/generators/project/events-symbiont.rb b/lib/lucid/generators/project/events-symbiont.rb
index abc1234..def5678 100644
--- a/lib/lucid/generators/project/events-symbiont.rb
+++ b/lib/lucid/generators/project/events-symbiont.rb
@@ -16,12 +16,14 @@ Dir::mkdir('results') if not File.directory?('r... | Fix for non-browser after event.
|
diff --git a/Casks/aptana-studio.rb b/Casks/aptana-studio.rb
index abc1234..def5678 100644
--- a/Casks/aptana-studio.rb
+++ b/Casks/aptana-studio.rb
@@ -1,7 +1,7 @@ class AptanaStudio < Cask
- url 'http://download.aptana.com/studio3/standalone/3.5.0/mac/Aptana_Studio_3_Setup_3.5.0.dmg'
+ url 'http://download.aptana.c... | Downgrade Aptana Studio to version 3.4.2
The previous version 3.5.0 is no longer available, and the url
is dead. Perhaps it was a pre-release.
|
diff --git a/src/modules/module_say_spec.rb b/src/modules/module_say_spec.rb
index abc1234..def5678 100644
--- a/src/modules/module_say_spec.rb
+++ b/src/modules/module_say_spec.rb
@@ -0,0 +1,20 @@+require 'rubygems'
+require 'mocha'
+require 'rspec'
+require 'module_say'
+
+describe Module_Say, "#privmsg" do
+
+ befo... | Add simple spec for module_say
Signed-off-by: Aki Saarinen <278bc57fbbff6b7b38435aea0f9d37e3d879167e@akisaarinen.fi>
|
diff --git a/poorsmatic.rb b/poorsmatic.rb
index abc1234..def5678 100644
--- a/poorsmatic.rb
+++ b/poorsmatic.rb
@@ -58,9 +58,9 @@ delete '/term/:id' do
TorqueBox.transaction do
Term.get(params[:id]).destroy
+ terms_changed
end
- terms_changed
redirect to('/terms')
end
| Send notification to the queue after term removal only when the record deletion in database was successfull
|
diff --git a/spec/controllers/events/localities_controller_spec.rb b/spec/controllers/events/localities_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/events/localities_controller_spec.rb
+++ b/spec/controllers/events/localities_controller_spec.rb
@@ -1,30 +1,29 @@ require 'rails_helper'
-# d... | Fix get :index call - add missing event id. Passing tests.
|
diff --git a/spec/rspec/rails/example/mailer_example_group_spec.rb b/spec/rspec/rails/example/mailer_example_group_spec.rb
index abc1234..def5678 100644
--- a/spec/rspec/rails/example/mailer_example_group_spec.rb
+++ b/spec/rspec/rails/example/mailer_example_group_spec.rb
@@ -8,6 +8,12 @@ allow(Rails).to receive_... | Deal with odd 1.9.2 warning on Travis.
See this build:
https://travis-ci.org/rspec/rspec-rails/jobs/23480818#L471
|
diff --git a/spec/unit/morpher/evaluator/transformer/block_spec.rb b/spec/unit/morpher/evaluator/transformer/block_spec.rb
index abc1234..def5678 100644
--- a/spec/unit/morpher/evaluator/transformer/block_spec.rb
+++ b/spec/unit/morpher/evaluator/transformer/block_spec.rb
@@ -0,0 +1,69 @@+require 'spec_helper'
+
+descr... | Add mutation covering unit spec for Morpher::Evaluator::Transformer::Block
|
diff --git a/qwtplot3d.rb b/qwtplot3d.rb
index abc1234..def5678 100644
--- a/qwtplot3d.rb
+++ b/qwtplot3d.rb
@@ -6,7 +6,7 @@ sha256 "8ed5f5cc9d5db2ca195e41280dbe8d2c971ca12253a0c02368fb37c491e5952b"
depends_on :x11
- depends_on 'qt'
+ depends_on 'cartr/qt4/qt'
def install
| Fix formula for new qt |
diff --git a/rain.gemspec b/rain.gemspec
index abc1234..def5678 100644
--- a/rain.gemspec
+++ b/rain.gemspec
@@ -4,9 +4,9 @@ Gem::Specification.new do |s|
s.authors = ["Vaughn Draughon"]
s.email = ["vaughn@rocksolidwebdesign.com"]
- s.license = "BSD"
- s.summary = %q{TODO: Ruby Artificia... | Remove todo from gemspec description
|
diff --git a/spec/active_replicas/proxying_connection_pool_spec.rb b/spec/active_replicas/proxying_connection_pool_spec.rb
index abc1234..def5678 100644
--- a/spec/active_replicas/proxying_connection_pool_spec.rb
+++ b/spec/active_replicas/proxying_connection_pool_spec.rb
@@ -0,0 +1,59 @@+require 'spec_helper'
+
+descr... | Add basic specs for `ProxyingConnectionPool`
|
diff --git a/actionmailer/lib/action_mailer/mail_delivery_job.rb b/actionmailer/lib/action_mailer/mail_delivery_job.rb
index abc1234..def5678 100644
--- a/actionmailer/lib/action_mailer/mail_delivery_job.rb
+++ b/actionmailer/lib/action_mailer/mail_delivery_job.rb
@@ -3,7 +3,7 @@ require "active_job"
module ActionMa... | Fix class name in the documentation [ci skip]
|
diff --git a/spec/easy_settings_test/spec/easy_settings_spec.rb b/spec/easy_settings_test/spec/easy_settings_spec.rb
index abc1234..def5678 100644
--- a/spec/easy_settings_test/spec/easy_settings_spec.rb
+++ b/spec/easy_settings_test/spec/easy_settings_spec.rb
@@ -2,8 +2,9 @@
describe EasySettings do
subject { des... | :white_check_mark: Add test of source_file for rails integration
|
diff --git a/lib/acts_as_reviewable.rb b/lib/acts_as_reviewable.rb
index abc1234..def5678 100644
--- a/lib/acts_as_reviewable.rb
+++ b/lib/acts_as_reviewable.rb
@@ -2,7 +2,7 @@ # The named scopes are:
# in_order: Returns reviews in the order they were created (created_at ASC).
# recent: Returns reviews by how r... | Add with rating helper method
|
diff --git a/app/models/setup/deletion.rb b/app/models/setup/deletion.rb
index abc1234..def5678 100644
--- a/app/models/setup/deletion.rb
+++ b/app/models/setup/deletion.rb
@@ -7,7 +7,12 @@ def run(message)
if (model = data_type_from(message).records_model)
scope = objects_from(message)
- des... | Fix | Destroy callback for non active-models
|
diff --git a/lib/ap/core_ext/string.rb b/lib/ap/core_ext/string.rb
index abc1234..def5678 100644
--- a/lib/ap/core_ext/string.rb
+++ b/lib/ap/core_ext/string.rb
@@ -11,7 +11,7 @@ define_method :"#{color}ish" do "\033[0;#{30+i}m#{self}\033[0m" end
else
define_method color do self end
- alias :"#{c... | Switch to alias_method from alias to fix non-tty method aliasing.
|
diff --git a/lib/bricolage/sqlutils.rb b/lib/bricolage/sqlutils.rb
index abc1234..def5678 100644
--- a/lib/bricolage/sqlutils.rb
+++ b/lib/bricolage/sqlutils.rb
@@ -11,7 +11,7 @@ alias s sql_string_literal
def escape_sql_string(s)
- s.gsub(/'/, "''")
+ s.gsub(/'/, "''").gsub(/\\/, '\\\\')
end
... | Add backslash escape to sql escape method
|
diff --git a/lib/creatubbles/client.rb b/lib/creatubbles/client.rb
index abc1234..def5678 100644
--- a/lib/creatubbles/client.rb
+++ b/lib/creatubbles/client.rb
@@ -3,12 +3,13 @@ class Creatubbles::Client
attr_writer :api_url, :username, :password
- def initialize(client_id: nil, client_secret: nil, username: nil... | Add scope when getting an oauth token
|
diff --git a/lib/guard/motion/tasks.rb b/lib/guard/motion/tasks.rb
index abc1234..def5678 100644
--- a/lib/guard/motion/tasks.rb
+++ b/lib/guard/motion/tasks.rb
@@ -15,7 +15,7 @@ spec_files = App.config.spec_files.select{|file_path| !(file_path =~ /_spec.rb$/)}
spec_files += files.split(';')
App.con... | Switch to rake spec to support both RubyMotion iOS and OSX
|
diff --git a/lib/mongoid/references.rb b/lib/mongoid/references.rb
index abc1234..def5678 100644
--- a/lib/mongoid/references.rb
+++ b/lib/mongoid/references.rb
@@ -13,7 +13,7 @@ end
else
define_method(field) do
- klass.where.in(_id: (self.send("#{field_singular}_ids") |... | drop-webapp: Fix Mongoid::References for Mongoid 3+
|
diff --git a/lib/qspec/spork_helper.rb b/lib/qspec/spork_helper.rb
index abc1234..def5678 100644
--- a/lib/qspec/spork_helper.rb
+++ b/lib/qspec/spork_helper.rb
@@ -5,15 +5,39 @@ PORT = ::Spork::TestFramework::Qspec::DEFAULT_PORT
def start_spork_workers
+ Signal.trap(:INT){
+ output.puts "Stop sp... | Create file for port numbers
|
diff --git a/lib/rspec-live/monitor.rb b/lib/rspec-live/monitor.rb
index abc1234..def5678 100644
--- a/lib/rspec-live/monitor.rb
+++ b/lib/rspec-live/monitor.rb
@@ -17,26 +17,29 @@ @runner.on_update { @display.update @suite }
@suite.reset
while !@quit do
- if services.any?(&:updates_available... | Refactor update loop and handle interrupts in Monitor
|
diff --git a/lib/swagger/v2/example.rb b/lib/swagger/v2/example.rb
index abc1234..def5678 100644
--- a/lib/swagger/v2/example.rb
+++ b/lib/swagger/v2/example.rb
@@ -23,10 +23,6 @@ parser = Swagger::MimeType.parser_for(media_type)
parser.parse(@raw)
end
-
- def inspect
- @raw.inspect
... | Remove extra inspect method from Example
|
diff --git a/lib/terragov/terraform.rb b/lib/terragov/terraform.rb
index abc1234..def5678 100644
--- a/lib/terragov/terraform.rb
+++ b/lib/terragov/terraform.rb
@@ -26,6 +26,10 @@ Dir.chdir directory
init(backend, dryrun, verbose)
+ if command == 'plan'
+ command = 'plan -detailed-exitcode'
+... | Add "detailed-exitcode" as default to plan
This is a useful flag that should be included when we run a plan, so we
can use the exitcode to determine if an apply needs to happen upon a
project.
Update the error checking so we do not overwrite the exitcode, as the
abort writes the exitcode to 1 since it gathers that 2 ... |
diff --git a/SetNeedsReadable.podspec b/SetNeedsReadable.podspec
index abc1234..def5678 100644
--- a/SetNeedsReadable.podspec
+++ b/SetNeedsReadable.podspec
@@ -8,7 +8,7 @@
Pod::Spec.new do |s|
s.name = 'SetNeedsReadable'
- s.version = '2.1'
+ s.version = '2.2'
s.summary ... | Update .podspec to reference latest tag
|
diff --git a/lib/chicago/rake_tasks.rb b/lib/chicago/rake_tasks.rb
index abc1234..def5678 100644
--- a/lib/chicago/rake_tasks.rb
+++ b/lib/chicago/rake_tasks.rb
@@ -4,7 +4,7 @@ # Rake tasks for a Chicago project.
class RakeTasks < Rake::TaskLib
def initialize(db)
- @migration_dir = "db/migrate"
+ @m... | Add rake task to create null records.
|
diff --git a/lib/docs/scrapers/node.rb b/lib/docs/scrapers/node.rb
index abc1234..def5678 100644
--- a/lib/docs/scrapers/node.rb
+++ b/lib/docs/scrapers/node.rb
@@ -23,7 +23,7 @@ HTML
version do
- self.release = '5.11.0'
+ self.release = '6.0.0'
self.base_url = 'https://nodejs.org/api/'
... | Update Node.js documentation (6.0.0, 4.4.3)
|
diff --git a/lib/action_sms/connection_adapters/abstract_adapter.rb b/lib/action_sms/connection_adapters/abstract_adapter.rb
index abc1234..def5678 100644
--- a/lib/action_sms/connection_adapters/abstract_adapter.rb
+++ b/lib/action_sms/connection_adapters/abstract_adapter.rb
@@ -16,6 +16,7 @@
http = Net::H... | Set verify mode to none for https
|
diff --git a/lib/gooddata/bricks/middleware/restforce_middleware.rb b/lib/gooddata/bricks/middleware/restforce_middleware.rb
index abc1234..def5678 100644
--- a/lib/gooddata/bricks/middleware/restforce_middleware.rb
+++ b/lib/gooddata/bricks/middleware/restforce_middleware.rb
@@ -15,8 +15,6 @@ oauth_token = param... | Remove empty and not used initializer
|
diff --git a/civil.gemspec b/civil.gemspec
index abc1234..def5678 100644
--- a/civil.gemspec
+++ b/civil.gemspec
@@ -22,4 +22,5 @@ spec.add_development_dependency "bundler", "~> 1.10"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "rspec", "~> 3.5"
+ spec.add_development_depe... | Add pry as dev dependency
|
diff --git a/lib/parole/commentable.rb b/lib/parole/commentable.rb
index abc1234..def5678 100644
--- a/lib/parole/commentable.rb
+++ b/lib/parole/commentable.rb
@@ -11,8 +11,7 @@
# Role-specific comments for the record
commentable_options.fetch(:roles).each do |role|
- options = association_option... | Remove unnecessary “before_add” association option
|
diff --git a/lib/simple_gate/router.rb b/lib/simple_gate/router.rb
index abc1234..def5678 100644
--- a/lib/simple_gate/router.rb
+++ b/lib/simple_gate/router.rb
@@ -23,22 +23,20 @@ # The graph must be acyclical or it will loop forever.
def find(start, target)
return [target] if start == target
- if paths.h... | Use inline unless to make code more readable
|
diff --git a/lib/tasks/generators.rake b/lib/tasks/generators.rake
index abc1234..def5678 100644
--- a/lib/tasks/generators.rake
+++ b/lib/tasks/generators.rake
@@ -2,8 +2,8 @@ desc "Create classes"
task :create_classes do
root = File.expand_path("../../", File.dirname(__FILE__))
- target = Rake.original_d... | Add the rake task to actually copy the files... let's see if this works
|
diff --git a/lib/tasks/panopticon.rake b/lib/tasks/panopticon.rake
index abc1234..def5678 100644
--- a/lib/tasks/panopticon.rake
+++ b/lib/tasks/panopticon.rake
@@ -1,6 +1,6 @@ namespace :panopticon do
- desc "Register application metadata with panopticon"
- task :register => [:environment] do
+ desc "Republish all ... | Rename rake task to republish tags
`rake panopticon:republish_tags` is more descriptive and won't
interfere with the pattern of running `panopticon:register` on each
deploy.
|
diff --git a/app/models/meeting.rb b/app/models/meeting.rb
index abc1234..def5678 100644
--- a/app/models/meeting.rb
+++ b/app/models/meeting.rb
@@ -1,7 +1,7 @@ class Meeting < ActiveRecord::Base
default_scope { order("met DESC") }
- scope :met_between, ->(start_time, end_time) { where("met >= ? AND met < ?", sta... | Fix previous 30 days stat
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.