diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/spec/attr_deprecated_spec.rb b/spec/attr_deprecated_spec.rb
index abc1234..def5678 100644
--- a/spec/attr_deprecated_spec.rb
+++ b/spec/attr_deprecated_spec.rb
@@ -1,15 +1,33 @@ require 'spec_helper'
+
+class Foo
+ attr_accessor :fresh_attribute, :an_unused_attribute
+end
+
describe "Sample spec" do
... | Define specs for marking a setter method as deprecated
|
diff --git a/spec/core/file/umask_spec.rb b/spec/core/file/umask_spec.rb
index abc1234..def5678 100644
--- a/spec/core/file/umask_spec.rb
+++ b/spec/core/file/umask_spec.rb
@@ -16,8 +16,9 @@ end
specify "umask should return the current umask value for the process" do
- File.umask(0006).should == 18
- ... | Make umask spec work with different host process starting umasks, clean up literals to be easier to read through.
|
diff --git a/spec/helpers/image_helper.rb b/spec/helpers/image_helper.rb
index abc1234..def5678 100644
--- a/spec/helpers/image_helper.rb
+++ b/spec/helpers/image_helper.rb
@@ -2,7 +2,7 @@
def process_image_version(test_file_name, version)
result, content = nil, nil
- Tempfile.open("specs", :encoding => 'bi... | Make tests compatible with 1.8.7.
|
diff --git a/spec/models/document_spec.rb b/spec/models/document_spec.rb
index abc1234..def5678 100644
--- a/spec/models/document_spec.rb
+++ b/spec/models/document_spec.rb
@@ -0,0 +1,65 @@+# == Schema Information
+#
+# Table name: documents
+#
+# id :integer(4) not null, primary key
+# name ... | Fix of weird conflict file
|
diff --git a/serialize_typed_attributes.gemspec b/serialize_typed_attributes.gemspec
index abc1234..def5678 100644
--- a/serialize_typed_attributes.gemspec
+++ b/serialize_typed_attributes.gemspec
@@ -16,5 +16,5 @@
s.add_development_dependency "test-unit"
s.add_development_dependency "pg"
- s.add_development_de... | Upgrade to latest activerecord-postgres-hstore gem
|
diff --git a/lib/bundler/cli/add.rb b/lib/bundler/cli/add.rb
index abc1234..def5678 100644
--- a/lib/bundler/cli/add.rb
+++ b/lib/bundler/cli/add.rb
@@ -13,6 +13,10 @@
# raise error when no gems are specified
raise InvalidOption, "Please specify gems to add." if @gems.empty?
+
+ # show warning when ... | Add warning when using options with mutiple gems
|
diff --git a/spec/helpers_spec.rb b/spec/helpers_spec.rb
index abc1234..def5678 100644
--- a/spec/helpers_spec.rb
+++ b/spec/helpers_spec.rb
@@ -1 +1,36 @@ require 'spec_helper'
+
+describe Cyclid::UI::Helpers do
+ include Rack::Test::Methods
+
+ subject { Class.new { extend Cyclid::UI::Helpers } }
+
+ describe '#cs... | Add tests for the helper methods
|
diff --git a/bob.gemspec b/bob.gemspec
index abc1234..def5678 100644
--- a/bob.gemspec
+++ b/bob.gemspec
@@ -6,8 +6,8 @@ Gem::Specification.new do |spec|
spec.name = "bob"
spec.version = Bob::VERSION
- spec.authors = ["Giorgos Avramidis"]
- spec.email = ["avramidggmail.com"]
+ spec... | Add myself to the contributors.
|
diff --git a/lib/ethon.rb b/lib/ethon.rb
index abc1234..def5678 100644
--- a/lib/ethon.rb
+++ b/lib/ethon.rb
@@ -20,5 +20,9 @@ # see how others use Ethon look at the Typhoeus code.
#
# @see https://www.github.com/typhoeus/typhoeus Typhoeus
+#
+# @note Please update to the latest libcurl version in order
+# to benef... | Add docs about latest libcurl version.
|
diff --git a/lib/hanzo.rb b/lib/hanzo.rb
index abc1234..def5678 100644
--- a/lib/hanzo.rb
+++ b/lib/hanzo.rb
@@ -10,7 +10,9 @@ module Hanzo
def self.run(command)
print(command, :green)
- Bundler.with_clean_env { `#{command}` }
+ output = nil
+ ::Bundler.with_clean_env { output = `#{command}` }
+ out... | Make Hanzo.run return the output
|
diff --git a/lib/nrser.rb b/lib/nrser.rb
index abc1234..def5678 100644
--- a/lib/nrser.rb
+++ b/lib/nrser.rb
@@ -1,4 +1,8 @@-module NRSER; end
+require 'pathname'
+
+module NRSER
+ ROOT = ( Pathname.new(__FILE__).dirname / '..' ).expand_path
+end
require_relative './nrser/version'
require_relative './nrser/no_arg'... | Add NRSER::ROOT pointing to Gem root dir.
|
diff --git a/lib/table.rb b/lib/table.rb
index abc1234..def5678 100644
--- a/lib/table.rb
+++ b/lib/table.rb
@@ -1,8 +1,12 @@ class Table
def initialize(width,height)
- @width = width
- @height = height
+ @width = 0..width
+ @height = 0..height
+ end
+
+ def valid_position?(x,y)
+ @width.include?(... | Check for valid range in Table Class
|
diff --git a/rufus-scheduler.gemspec b/rufus-scheduler.gemspec
index abc1234..def5678 100644
--- a/rufus-scheduler.gemspec
+++ b/rufus-scheduler.gemspec
@@ -32,8 +32,8 @@
s.add_runtime_dependency 'fugit', '~> 1.1', '>= 1.1.1'
- s.add_development_dependency 'rspec', '~> 3.4'
- s.add_development_dependency 'chron... | Upgrade Rspec, peg Chronic at 0.10
|
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"
s.add_depen... | Update to latest rethinkdb library (v1.11.0)
|
diff --git a/spec/support/connection_helpers.rb b/spec/support/connection_helpers.rb
index abc1234..def5678 100644
--- a/spec/support/connection_helpers.rb
+++ b/spec/support/connection_helpers.rb
@@ -1,4 +1,8 @@ module ConnectionHelpers
+ def foreign_keys_for(table_name)
+ ActiveRecord::Base.connection.foreign_key... | Add helper to retrieve foreign keys for the received table
|
diff --git a/orats.gemspec b/orats.gemspec
index abc1234..def5678 100644
--- a/orats.gemspec
+++ b/orats.gemspec
@@ -26,5 +26,5 @@ spec.add_development_dependency 'bundler', '~> 1.5'
spec.add_development_dependency 'rake', '~> 0'
spec.add_development_dependency 'minitest', '~> 5.3'
- spec.add_development_depen... | Update rubocop to fix vulnerability in < 0.48.1
|
diff --git a/app/helpers/rnp_helper.rb b/app/helpers/rnp_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/rnp_helper.rb
+++ b/app/helpers/rnp_helper.rb
@@ -8,7 +8,8 @@ module RnpHelper
def requirements_url
- "https://wiki.rnp.br/pages/viewpage.action?pageId=89112372#ManualdoUsuáriodoserviçodeconferênci... | Replace the requirements URL with a link to /check
|
diff --git a/app/models/agenda_time.rb b/app/models/agenda_time.rb
index abc1234..def5678 100644
--- a/app/models/agenda_time.rb
+++ b/app/models/agenda_time.rb
@@ -1,7 +1,8 @@ # frozen_string_literal: true
class AgendaTime < ApplicationRecord
- has_many :agendas, dependent: :nullify
+ has_many :agendas, foreign_k... | Fix foreign_key not correct for agneda and time
|
diff --git a/src/vsphere_cpi/spec/integration/spec_helper.rb b/src/vsphere_cpi/spec/integration/spec_helper.rb
index abc1234..def5678 100644
--- a/src/vsphere_cpi/spec/integration/spec_helper.rb
+++ b/src/vsphere_cpi/spec/integration/spec_helper.rb
@@ -7,17 +7,18 @@ # before(:suite) and before(:all) seem to run in di... | Fix issue where suite_cpi is shadowed by nil
ruby is fun
Signed-off-by: Zak Auerbach <84a275e6a279738f2aa78daf0002615dee69cc28@pivotal.io>
|
diff --git a/Implementation/src/main/ruby/entity_setup.rb b/Implementation/src/main/ruby/entity_setup.rb
index abc1234..def5678 100644
--- a/Implementation/src/main/ruby/entity_setup.rb
+++ b/Implementation/src/main/ruby/entity_setup.rb
@@ -21,9 +21,14 @@ end
def with_classes(in_remote_class, in_entity_class)
... | Add option to add default desires
|
diff --git a/test/torrent_reader_writer_test.rb b/test/torrent_reader_writer_test.rb
index abc1234..def5678 100644
--- a/test/torrent_reader_writer_test.rb
+++ b/test/torrent_reader_writer_test.rb
@@ -9,7 +9,8 @@ piece_msg_in = PieceMessage.new(payload)
metainfo = Metainfo.default
- torrent_file_io = Torr... | Use a test output file for reading and writing test. Delete the file at the end of the test for a clean test environment.
|
diff --git a/chef/cookbooks/cdo-apps/attributes/default.rb b/chef/cookbooks/cdo-apps/attributes/default.rb
index abc1234..def5678 100644
--- a/chef/cookbooks/cdo-apps/attributes/default.rb
+++ b/chef/cookbooks/cdo-apps/attributes/default.rb
@@ -14,40 +14,7 @@
'i18n' => {
'languages' => {
- 'ar' => 'ل... | Move languages to chef app.
|
diff --git a/skroutz_api.gemspec b/skroutz_api.gemspec
index abc1234..def5678 100644
--- a/skroutz_api.gemspec
+++ b/skroutz_api.gemspec
@@ -20,6 +20,7 @@
spec.add_development_dependency "bundler", "~> 1.6"
spec.add_development_dependency "rake"
+ spec.add_development_dependency 'rspec', '~> 3.2'
spec.add_... | Add rspec gem development dependency version 3.2
|
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.167.2'
- sha256 'ded8ebb78e7f49bfdc56ed4444782dc90ec0d51965c672076f5c8e5109515608'
+ versio... | Upgrade Vivaldi.app to v1.0.174.8 (Snapshot)
|
diff --git a/tasks/sanescan.rake b/tasks/sanescan.rake
index abc1234..def5678 100644
--- a/tasks/sanescan.rake
+++ b/tasks/sanescan.rake
@@ -0,0 +1,9 @@+namespace sanescan do
+ desc "Install sane library for scanners"
+ task :sanescan do
+ version = "sane-backends_1.0.23"
+ url = "https://launchpad.... | Add task for installing scanner library
|
diff --git a/config/initializers/postgresql_database_tasks.rb b/config/initializers/postgresql_database_tasks.rb
index abc1234..def5678 100644
--- a/config/initializers/postgresql_database_tasks.rb
+++ b/config/initializers/postgresql_database_tasks.rb
@@ -1,17 +1,15 @@ # frozen_string_literal: true
-module ActiveRec... | Use module prepend to include ActiveRecordPGTasks
So that a host app can orverride it by reopening the module and callng super from #drop
|
diff --git a/lib/axiom/types/type.rb b/lib/axiom/types/type.rb
index abc1234..def5678 100644
--- a/lib/axiom/types/type.rb
+++ b/lib/axiom/types/type.rb
@@ -14,18 +14,13 @@ raise NotImplementedError, "#{inspect} should not be instantiated"
end
- def self.constraint(constraint = Undefined, &block)
... | Change constraint to be a protected method
* Cannot be called on the class directly, except by other instances
of that class.
|
diff --git a/lib/chatrix/bot/plugins.rb b/lib/chatrix/bot/plugins.rb
index abc1234..def5678 100644
--- a/lib/chatrix/bot/plugins.rb
+++ b/lib/chatrix/bot/plugins.rb
@@ -4,7 +4,7 @@ require 'chatrix/bot/plugin'
module Chatrix
- module Bot
+ class Bot
# Contains a number of standard plugins for the bot.
mo... | Fix module instead of class in Plugins
|
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
@@ -23,7 +23,7 @@
def test_filename(entry = caller.first)
test_name = Haml::Util.caller_info(entry)[2]
- test_name.sub!(/^block in /, '')
+ test_name.sub!(/^(block|resc... | [Sass] Fix a test incompatibility with Ruby 1.9.
|
diff --git a/lib/fish0/concerns/base.rb b/lib/fish0/concerns/base.rb
index abc1234..def5678 100644
--- a/lib/fish0/concerns/base.rb
+++ b/lib/fish0/concerns/base.rb
@@ -28,9 +28,18 @@ end
def scope(name, body)
+ scopes << [name, body]
+ end
+
+ def scopes
... | Fix bugs and add :default_scope class method
|
diff --git a/lib/harvest/api/account.rb b/lib/harvest/api/account.rb
index abc1234..def5678 100644
--- a/lib/harvest/api/account.rb
+++ b/lib/harvest/api/account.rb
@@ -15,8 +15,11 @@ # @return [Harvest::User]
def who_am_i
response = request(:get, credentials, '/account/who_am_i')
- Harvest... | Stop throwing away company info
Company information is returned as a top-level key in the response to `/account/who_am_i`. By feeding that response directly into `Harvest::User.parse`, we throw away that data. This change preserves that data and makes it accessible by simply tacking it on to the returned user object a... |
diff --git a/lib/qpush/base/redis.rb b/lib/qpush/base/redis.rb
index abc1234..def5678 100644
--- a/lib/qpush/base/redis.rb
+++ b/lib/qpush/base/redis.rb
@@ -29,7 +29,7 @@ def build_keys(namespace, priorities)
name = "#{QPush::Base::KEY}:#{namespace}"
keys = Hash[QPush::Base::SUB_KEYS.colle... | Fix perform list priority number.
|
diff --git a/lib/invoker/power/power.rb b/lib/invoker/power/power.rb
index abc1234..def5678 100644
--- a/lib/invoker/power/power.rb
+++ b/lib/invoker/power/power.rb
@@ -1,29 +1,3 @@ require "invoker/power/http_response"
require "invoker/power/dns"
require "invoker/power/balancer"
-
-module Invoker
- module Power
- ... | Remove redundant tld handling code
|
diff --git a/config/application.rb b/config/application.rb
index abc1234..def5678 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -22,5 +22,10 @@ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
# config.i18n.default_locale = :de
config.assets.prefix = ... | Enable pages to be used in iframes
See https://github.com/alphagov/manuals-frontend/pull/123
Rails 4+ sets the X-Frame-Options header to SAMEORIGIN by default. This means
that the resource can only be put into an iframe on the same domain.
One problem this causes is that the side-by-side browser - which is a tool us... |
diff --git a/core/spec/lib/comma_extractor_extentions_spec.rb b/core/spec/lib/comma_extractor_extentions_spec.rb
index abc1234..def5678 100644
--- a/core/spec/lib/comma_extractor_extentions_spec.rb
+++ b/core/spec/lib/comma_extractor_extentions_spec.rb
@@ -0,0 +1,40 @@+describe Comma::Extractor do
+ describe '#hash_to... | Add tests for `Comma::Extractor` extentions
|
diff --git a/lib/magi/plugin_manager.rb b/lib/magi/plugin_manager.rb
index abc1234..def5678 100644
--- a/lib/magi/plugin_manager.rb
+++ b/lib/magi/plugin_manager.rb
@@ -1,13 +1,21 @@ module Magi
class PluginManager
- def plugins_directory
- @plugins_directory ||= Rails.root + "plugins"
+ def plugins_direc... | Handle ./plugins as plugins directory too
|
diff --git a/lib/bootscale/entry.rb b/lib/bootscale/entry.rb
index abc1234..def5678 100644
--- a/lib/bootscale/entry.rb
+++ b/lib/bootscale/entry.rb
@@ -3,7 +3,7 @@ DL_EXTENSIONS = [
RbConfig::CONFIG['DLEXT'],
RbConfig::CONFIG['DLEXT2'],
- ].reject { |ext| ext.nil? || ext.empty? }.map { |ext| ".#{e... | Replace weird nbsp by a regular space
|
diff --git a/lib/mutant/killer/rspec.rb b/lib/mutant/killer/rspec.rb
index abc1234..def5678 100644
--- a/lib/mutant/killer/rspec.rb
+++ b/lib/mutant/killer/rspec.rb
@@ -17,7 +17,9 @@ #
def run
mutation.insert
- !!::RSpec::Core::Runner.run(command_line_arguments, strategy.error_stream, strat... | Fix code to no longer reference non-existent methods
* This code is not final, but I could not figure out a clean way to
reference the error and output stream from this method.
|
diff --git a/lib/pedant/organization.rb b/lib/pedant/organization.rb
index abc1234..def5678 100644
--- a/lib/pedant/organization.rb
+++ b/lib/pedant/organization.rb
@@ -1,14 +1,37 @@ module Pedant
class Organization
+
attr_reader :name, :validator_key
- def initialize(name, key)
+ attr_reader :validator
+... | Store validators as proper Requestors
|
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index abc1234..def5678 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,6 +1,9 @@ $:.unshift File.expand_path("../..", __FILE__)
+
require 'simplecov'
-SimpleCov.start
+SimpleCov.start do
+ add_filter "/.bundle/"
+end
require 'lib/lxc'
| Add .bundle to simplecov filter
|
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index abc1234..def5678 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -10,4 +10,5 @@
RSpec.configure do |config|
config.include JQueryTestHelpers
+ config.formatter = :doc
end
| Use doc format for specs |
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index abc1234..def5678 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -8,7 +8,7 @@
SimpleCov.start do
# exclude Gemfiles and gems bundled by Travis
- add_filter 'ci/'
+ add_filter 'gemfiles/'
add_filter 'spec/'
end
end
| Update SimpleCov filter to exclude "gemfiles" folder from coverage
|
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
@@ -2,6 +2,7 @@ require 'simplecov'
SimpleCov.start do
add_filter "/spec/"
+ add_filter "lib/support"
end
end
| Exclude lib/support from spec coverage
|
diff --git a/lib/troo/api/request.rb b/lib/troo/api/request.rb
index abc1234..def5678 100644
--- a/lib/troo/api/request.rb
+++ b/lib/troo/api/request.rb
@@ -13,6 +13,11 @@
def response
@response ||= Response.parse(request)
+ rescue RestClient::Exception => e
+ ErrorResponse.new({ body: e.ht... | Handle RestClient exceptions; also lack of network. |
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index abc1234..def5678 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -7,6 +7,9 @@ }.each { |f| require f }
Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|f| require f}
+
+Coveralls.wear!
+require "ruby_speech"
schema_file_path = File.... | [SPEC] Fix code coverage reporting: ensure nokogiri is loaded first
|
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
@@ -23,24 +23,3 @@ PuppetlabsSpec::Files.cleanup
end
end
-
-require 'pathname'
-dir = Pathname.new(__FILE__).parent
-Puppet[:modulepath] = File.join(dir, 'fixtures', 'modules'... | Use modulesync to manage meta files
|
diff --git a/lib/zxcvbn/omnimatch.rb b/lib/zxcvbn/omnimatch.rb
index abc1234..def5678 100644
--- a/lib/zxcvbn/omnimatch.rb
+++ b/lib/zxcvbn/omnimatch.rb
@@ -9,11 +9,10 @@ end
def matches(password, user_inputs = [])
- result = []
- (@matchers + user_input_matchers(user_inputs)).each do |matcher|
- ... | Use map to create an array, instead of each |
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
@@ -2,6 +2,7 @@
VCR.configure do |c|
c.cassette_library_dir = "spec/cassettes"
+ c.allow_http_connections_when_no_cassette = true
c.hook_into :webmock
c.configure_rspec_me... | Add VCR allow connections when no cassette option
|
diff --git a/db/migrate/20160303110710_add_status_to_users.rb b/db/migrate/20160303110710_add_status_to_users.rb
index abc1234..def5678 100644
--- a/db/migrate/20160303110710_add_status_to_users.rb
+++ b/db/migrate/20160303110710_add_status_to_users.rb
@@ -1,6 +1,9 @@ class AddStatusToUsers < ActiveRecord::Migration
+ ... | Fix old migration by hard-coding value. It doesn't won't since it references a method that doesn't exist any more.
|
diff --git a/lib/tasks/my_cucumber.rake b/lib/tasks/my_cucumber.rake
index abc1234..def5678 100644
--- a/lib/tasks/my_cucumber.rake
+++ b/lib/tasks/my_cucumber.rake
@@ -1,13 +1,21 @@ vendored_cucumber_bin = Dir["#{RAILS_ROOT}/vendor/{gems,plugins}/cucumber*/bin/cucumber"].first
-namespace :cucumber do
- Cucumber::Ra... | Add dependency check to custom cucumber rake task.
|
diff --git a/lib/youtube_video_tools.rb b/lib/youtube_video_tools.rb
index abc1234..def5678 100644
--- a/lib/youtube_video_tools.rb
+++ b/lib/youtube_video_tools.rb
@@ -7,9 +7,9 @@ youtube_api_video_response['items'].count > 0 &&
youtube_api_video_response['items'][0].key('snippet') &&
youtube... | Add comma to tags when youtube video has several tags
|
diff --git a/lib/magician/random.rb b/lib/magician/random.rb
index abc1234..def5678 100644
--- a/lib/magician/random.rb
+++ b/lib/magician/random.rb
@@ -0,0 +1,16 @@+# Magician's extensions to the Random class.
+class Random
+
+ def boolean
+ [true, false].sample
+ end
+
+ def coin
+ ['heads', 'tails'].sample
... | Add boolean, coin, and die instance methods to the Random class
|
diff --git a/UIActivityIndicator-for-SDWebImage.podspec b/UIActivityIndicator-for-SDWebImage.podspec
index abc1234..def5678 100644
--- a/UIActivityIndicator-for-SDWebImage.podspec
+++ b/UIActivityIndicator-for-SDWebImage.podspec
@@ -1,12 +1,12 @@ Pod::Spec.new do |s|
- s.name = "UIActivityIndicator-for-SDWebI... | Update podspec preparing to publish fork to trunk.
|
diff --git a/transam_lib.gemspec b/transam_lib.gemspec
index abc1234..def5678 100644
--- a/transam_lib.gemspec
+++ b/transam_lib.gemspec
@@ -18,7 +18,7 @@
s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.rdoc"]
- s.add_dependency 'rails', '>=4.1.9'
+ s.add_dependency 'rails', '~> 4.1... | Make the rails version in the gemspec more restrictive
|
diff --git a/0_code_wars/make_them_bark.rb b/0_code_wars/make_them_bark.rb
index abc1234..def5678 100644
--- a/0_code_wars/make_them_bark.rb
+++ b/0_code_wars/make_them_bark.rb
@@ -0,0 +1,7 @@+# http://www.codewars.com/kata/5535572c1de94ba2db0000f6
+# --- iteration 1 ---
+class Object
+ def bark
+ "Woof!"
+ end
+e... | Add code wars (7) - make them bark
|
diff --git a/spec/end_to_end_spec.rb b/spec/end_to_end_spec.rb
index abc1234..def5678 100644
--- a/spec/end_to_end_spec.rb
+++ b/spec/end_to_end_spec.rb
@@ -5,15 +5,26 @@ before { Dir.mkdir("tmp") unless Dir.exist?("tmp") }
describe "split" do
- before { `bundle exec ruby -Ilib bin/ffsplitter 'spec/fixt... | Write end-to-end spec for audio only |
diff --git a/spec/tara/shell_spec.rb b/spec/tara/shell_spec.rb
index abc1234..def5678 100644
--- a/spec/tara/shell_spec.rb
+++ b/spec/tara/shell_spec.rb
@@ -0,0 +1,34 @@+# encoding: utf-8
+
+require 'spec_helper'
+
+
+module Tara
+ describe Shell do
+ let :shell do
+ described_class
+ end
+
+ let :tmpdir... | Add tests for Shell module |
diff --git a/lib/cert_module.rb b/lib/cert_module.rb
index abc1234..def5678 100644
--- a/lib/cert_module.rb
+++ b/lib/cert_module.rb
@@ -20,10 +20,5 @@ def fallback_fonts
%w[TwitterColorEmoji SourceHanSans]
end
-
- # def self.generate(options = {}, &block)
- #
- # super(template, options, &bl... | Remove commented out code from cert module. |
diff --git a/patch-contacts.gemspec b/patch-contacts.gemspec
index abc1234..def5678 100644
--- a/patch-contacts.gemspec
+++ b/patch-contacts.gemspec
@@ -17,7 +17,7 @@ s.required_rubygems_version = ">= 1.3.6"
s.add_development_dependency "rspec"
- s.files = Dir["{lib,rails,spec,vendor}/**/*"] + %w(LICENSE README... | Fix gem files yet again.
|
diff --git a/db/migrate/20131112133401_migrate_stripe_preferences.rb b/db/migrate/20131112133401_migrate_stripe_preferences.rb
index abc1234..def5678 100644
--- a/db/migrate/20131112133401_migrate_stripe_preferences.rb
+++ b/db/migrate/20131112133401_migrate_stripe_preferences.rb
@@ -1,6 +1,6 @@ class MigrateStripePref... | Fix undefined method where for Array error in migration.
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -12,7 +12,7 @@ recipe 'kafka::binary', 'Downloads, extracts and installs Kafka from binary releases'
recipe 'kafka::zookeeper', 'Setups standalone ZooKeeper instance using the ZooKeeper version that is bundled w... | Switch java recommendation to suggests
This gets around a rather insane set of circumstances wherein Berkshelf
won't let you ignore recommends [1]. Basically, Berkshelf will always
download a recommends, but not a suggests, so if we downgrade this
keyword (which is of course meaningless in Chef terms), then we can
sti... |
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -9,6 +9,6 @@ license 'all_rights'
description 'Installs/Configures windows_cert'
long_description 'Installs/Configures windows_cert'
-version '0.1.1'
+version '0.1.2'
supports 'windows'
| Update the patch version for the pull request |
diff --git a/app/overrides/show_fulfillment_date_in_orders.rb b/app/overrides/show_fulfillment_date_in_orders.rb
index abc1234..def5678 100644
--- a/app/overrides/show_fulfillment_date_in_orders.rb
+++ b/app/overrides/show_fulfillment_date_in_orders.rb
@@ -1,7 +1,7 @@ Deface::Override.new(
virtual_path: 'spree/admin... | Fix typo with partial naming
|
diff --git a/lib/multi_spork.rb b/lib/multi_spork.rb
index abc1234..def5678 100644
--- a/lib/multi_spork.rb
+++ b/lib/multi_spork.rb
@@ -8,20 +8,26 @@ autoload :Configuration, "multi_spork/configuration"
class << self
- attr_accessor :each_run_block
-
def prefork
Spork.prefork do
yield
- ... | Change the way MultiSpork prefork and each_run work, remove debugging instruction
|
diff --git a/lib/nats/ext/em.rb b/lib/nats/ext/em.rb
index abc1234..def5678 100644
--- a/lib/nats/ext/em.rb
+++ b/lib/nats/ext/em.rb
@@ -6,7 +6,7 @@ end
# Check for get_outbound_data_size support, fake it out if it doesn't exist, e.g. jruby
-if !EM::Connection.respond_to? :get_outbound_data_size
+if !EM::Connection.... | Check for method on instance
|
diff --git a/test/integration/top_test.rb b/test/integration/top_test.rb
index abc1234..def5678 100644
--- a/test/integration/top_test.rb
+++ b/test/integration/top_test.rb
@@ -0,0 +1,9 @@+# -*- coding: utf-8 -*-
+require 'test_helper'
+
+class Toptest < ActionDispatch::IntegrationTest
+ test "Sponserd link should be ... | Add test of top page
|
diff --git a/lib/rrdiff/file.rb b/lib/rrdiff/file.rb
index abc1234..def5678 100644
--- a/lib/rrdiff/file.rb
+++ b/lib/rrdiff/file.rb
@@ -16,7 +16,7 @@ sfile
end
- def delta(file, sfile)
+ def delta(sfile, file)
dfile = Tempfile.new("delfile")
RRDiff.delta(file.path, sfile.path, dfile.pa... | Switch arguments for delta to avoid confusion |
diff --git a/Mantle-HAL-Remix.podspec b/Mantle-HAL-Remix.podspec
index abc1234..def5678 100644
--- a/Mantle-HAL-Remix.podspec
+++ b/Mantle-HAL-Remix.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |s|
s.name = "Mantle-HAL-Remix"
- s.version = "1.0.0"
+ s.version = "1.0.1"
s.summary = "HAL Parser... | Update podspec version to 1.0.1
|
diff --git a/process_exists.gemspec b/process_exists.gemspec
index abc1234..def5678 100644
--- a/process_exists.gemspec
+++ b/process_exists.gemspec
@@ -1,16 +1,17 @@-# -*- encoding: utf-8 -*-
+lib = File.expand_path('lib', __dir__)
+$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
-require File.expand_path('.... | Use the new Bundler gemspec conventions
|
diff --git a/lib/todo_finder.rb b/lib/todo_finder.rb
index abc1234..def5678 100644
--- a/lib/todo_finder.rb
+++ b/lib/todo_finder.rb
@@ -16,8 +16,8 @@
all_files.each do |file_name|
File.open(file_name, :encoding => 'ISO-8859-1') do |file|
- file.each_line do |line|
- @matches[file_n... | Add line numbers to the output
|
diff --git a/lib/vonage/gsm7.rb b/lib/vonage/gsm7.rb
index abc1234..def5678 100644
--- a/lib/vonage/gsm7.rb
+++ b/lib/vonage/gsm7.rb
@@ -1,11 +1,13 @@-# typed: ignore
+# typed: strong
module Vonage
module GSM7
+ extend T::Sig
CHARACTERS = "\n\f\r !\"\#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXY... | Add sorbet types to Vonage::GSM7
|
diff --git a/db/seeds.rb b/db/seeds.rb
index abc1234..def5678 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -29,3 +29,9 @@ LocationCategory.new(name: cat).save!
end
end
+
+# Ensure all message threads have public tokens
+MessageThread.where("public_token IS NULL").each do |thread|
+ thread.set_public_token
+ ... | Set message thread public tokens on threads in DB seed file.
|
diff --git a/migrations/02_pages.rb b/migrations/02_pages.rb
index abc1234..def5678 100644
--- a/migrations/02_pages.rb
+++ b/migrations/02_pages.rb
@@ -0,0 +1,14 @@+Sequel.migration do
+ change do
+ alter_table(:pages) do
+ add_column :shorthand_title, String, unique: true
+ add_column :title_char, Strin... | Add more columns to pages
|
diff --git a/Casks/sublime-text-dev.rb b/Casks/sublime-text-dev.rb
index abc1234..def5678 100644
--- a/Casks/sublime-text-dev.rb
+++ b/Casks/sublime-text-dev.rb
@@ -1,8 +1,8 @@ class SublimeTextDev < Cask
- url 'http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%20Build%203062.dmg'
+ url 'http://c758482.r82.cf2.rackcd... | Update sublime text dev to 3064. |
diff --git a/xmlrpc-scgi.gemspec b/xmlrpc-scgi.gemspec
index abc1234..def5678 100644
--- a/xmlrpc-scgi.gemspec
+++ b/xmlrpc-scgi.gemspec
@@ -8,9 +8,9 @@ spec.version = XMLRPC::SCGI::VERSION
spec.authors = ["Stephen Muth"]
spec.email = ["smuth4@gmail.com"]
- spec.summary = %q{Extend XM... | Add github to gemspec as homepage
|
diff --git a/app/controllers/concerns/authentication.rb b/app/controllers/concerns/authentication.rb
index abc1234..def5678 100644
--- a/app/controllers/concerns/authentication.rb
+++ b/app/controllers/concerns/authentication.rb
@@ -3,6 +3,7 @@
included do
helper_method :user_signed_in?
+ before_action :sto... | Store the current page in the session.
public_website uses this to know where to redirect to after login.
|
diff --git a/app/controllers/api/v1/reports_controller.rb b/app/controllers/api/v1/reports_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/v1/reports_controller.rb
+++ b/app/controllers/api/v1/reports_controller.rb
@@ -21,7 +21,7 @@ private
def reported_status_ids
- reported_account.stat... | Fix being able to report otherwise inaccessible statuses
|
diff --git a/core/fiber/resume_spec.rb b/core/fiber/resume_spec.rb
index abc1234..def5678 100644
--- a/core/fiber/resume_spec.rb
+++ b/core/fiber/resume_spec.rb
@@ -12,28 +12,5 @@ fiber2 = Fiber.new { fiber1.resume; :fiber2 }
fiber2.resume.should == :fiber2
end
-
- with_feature :fork do
- ruby... | Remove old guarded spec, implementations should be allowed to do either.
|
diff --git a/test/controllers/summa_controller_view_test.rb b/test/controllers/summa_controller_view_test.rb
index abc1234..def5678 100644
--- a/test/controllers/summa_controller_view_test.rb
+++ b/test/controllers/summa_controller_view_test.rb
@@ -3,7 +3,7 @@ class SummaControllerViewTest < ActionController::TestCase
... | Correct Summa view tests by loading the show action.
|
diff --git a/app/controllers/admin/dashboard_controller.rb b/app/controllers/admin/dashboard_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/admin/dashboard_controller.rb
+++ b/app/controllers/admin/dashboard_controller.rb
@@ -6,6 +6,7 @@ if params[:impersonate_user_id].blank?
@projects =... | Fix bug when book.book_data is nil'
|
diff --git a/app/helpers/obs_factory/application_helper.rb b/app/helpers/obs_factory/application_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/obs_factory/application_helper.rb
+++ b/app/helpers/obs_factory/application_helper.rb
@@ -3,10 +3,10 @@
# Catch some url helpers used in the OBS layout and for... | Replace user_* routes with session_* routes
The OBS routes has been changed with
https://github.com/openSUSE/open-build-service/pull/4731
|
diff --git a/lib/ember_secure_builder/open_pull_requests.rb b/lib/ember_secure_builder/open_pull_requests.rb
index abc1234..def5678 100644
--- a/lib/ember_secure_builder/open_pull_requests.rb
+++ b/lib/ember_secure_builder/open_pull_requests.rb
@@ -31,7 +31,7 @@ end
def save(path)
- upload(path, summary... | Make sure that the summary listing is JSON.
|
diff --git a/cucumber/bddfire_steps.rb b/cucumber/bddfire_steps.rb
index abc1234..def5678 100644
--- a/cucumber/bddfire_steps.rb
+++ b/cucumber/bddfire_steps.rb
@@ -0,0 +1,46 @@+require 'bddfire'
+
+# Load config
+require 'yaml'
+$config = YAML.load_file("config.yml")
+puts($config.inspect)
+
+def navigate_to(page)
+ ... | Add bddfire cucumber common steps
|
diff --git a/lib/kitchen/provisioner/chef_zero_berks_env.rb b/lib/kitchen/provisioner/chef_zero_berks_env.rb
index abc1234..def5678 100644
--- a/lib/kitchen/provisioner/chef_zero_berks_env.rb
+++ b/lib/kitchen/provisioner/chef_zero_berks_env.rb
@@ -17,7 +17,7 @@ SandboxBerksEnv.new(config, sandbox_path, instanc... | Make gem work with test-kitchen 1.16.0.
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -1,6 +1,6 @@ name 'chef_slack'
-maintainer 'Ian Henry'
-maintainer_email 'ihenry@chef.io'
+maintainer 'Chef Software, Inc.'
+maintainer_email 'cookbooks@chef.io'
license 'Apache ... | Update maintainer to be chef inc.
|
diff --git a/Library/Homebrew/test/dev-cmd/extract_spec.rb b/Library/Homebrew/test/dev-cmd/extract_spec.rb
index abc1234..def5678 100644
--- a/Library/Homebrew/test/dev-cmd/extract_spec.rb
+++ b/Library/Homebrew/test/dev-cmd/extract_spec.rb
@@ -0,0 +1,13 @@+describe "brew extract", :integration_test do
+ it "extracts ... | Add a starter file for spec
|
diff --git a/rfd.gemspec b/rfd.gemspec
index abc1234..def5678 100644
--- a/rfd.gemspec
+++ b/rfd.gemspec
@@ -20,7 +20,7 @@
spec.add_dependency 'curses', '>= 1.0.0'
spec.add_dependency 'rubyzip', '>= 1.0.0'
- spec.add_development_dependency "bundler", "~> 1.3"
+ spec.add_development_dependency 'bundler'
spec... | Allow us to use newer bundler
|
diff --git a/lib/kosmos/packages/docking_port_alignment_indicator.rb b/lib/kosmos/packages/docking_port_alignment_indicator.rb
index abc1234..def5678 100644
--- a/lib/kosmos/packages/docking_port_alignment_indicator.rb
+++ b/lib/kosmos/packages/docking_port_alignment_indicator.rb
@@ -0,0 +1,8 @@+class DockingPortAlignm... | Add a package for Docking Port Alignment Indicator.
|
diff --git a/app/models/sales_cycle.rb b/app/models/sales_cycle.rb
index abc1234..def5678 100644
--- a/app/models/sales_cycle.rb
+++ b/app/models/sales_cycle.rb
@@ -2,5 +2,6 @@
belongs_to :user
has_many :inventory_items
+ has_many :items, :through => :inventory_items
has_many :orders
end
| Add Item to Sales Cycle Relationship
|
diff --git a/app/models/spree/check.rb b/app/models/spree/check.rb
index abc1234..def5678 100644
--- a/app/models/spree/check.rb
+++ b/app/models/spree/check.rb
@@ -13,5 +13,24 @@ def has_payment_profile?
gateway_customer_profile_id.present? || gateway_payment_profile_id.present?
end
+
+ def actions
... | Add actions to the payment method
|
diff --git a/activesupport/test/core_ext/object/inclusion_test.rb b/activesupport/test/core_ext/object/inclusion_test.rb
index abc1234..def5678 100644
--- a/activesupport/test/core_ext/object/inclusion_test.rb
+++ b/activesupport/test/core_ext/object/inclusion_test.rb
@@ -30,7 +30,7 @@ assert !3.in?(s)
end
- ... | Update test name to the corresponding method name
Signed-off-by: Santiago Pastorino <792d28329de7ed446c01b83f731a071248ffeaf4@wyeworks.com>
|
diff --git a/app/controllers/upload_processable.rb b/app/controllers/upload_processable.rb
index abc1234..def5678 100644
--- a/app/controllers/upload_processable.rb
+++ b/app/controllers/upload_processable.rb
@@ -4,7 +4,7 @@ protected
def store_uploaded_file(uploaded)
- file_name = "#{controller_name}-#{S... | 2844: Remove filename for security reasons.
|
diff --git a/app/services/facets/finder_service.rb b/app/services/facets/finder_service.rb
index abc1234..def5678 100644
--- a/app/services/facets/finder_service.rb
+++ b/app/services/facets/finder_service.rb
@@ -9,7 +9,7 @@ end
def pinned_item_links(content_id = LINKED_FINDER_CONTENT_ID)
- finder_links... | Return an empty array when they are no pinned items
When no items are pinned to the finder, `ordered_related_items`
is not present in `links`, therefore nothing is returned by
`pinned_item_links`. This then leads to an error when `.include?`
is invoked on the returned object (or lack of) in TaggingUpdateForm.
|
diff --git a/lib/link_thumbnailer/scrapers/opengraph/video.rb b/lib/link_thumbnailer/scrapers/opengraph/video.rb
index abc1234..def5678 100644
--- a/lib/link_thumbnailer/scrapers/opengraph/video.rb
+++ b/lib/link_thumbnailer/scrapers/opengraph/video.rb
@@ -13,6 +13,10 @@
def attribute
if we... | Document Vimeo workaround in code.
|
diff --git a/webdriver-user-agent.gemspec b/webdriver-user-agent.gemspec
index abc1234..def5678 100644
--- a/webdriver-user-agent.gemspec
+++ b/webdriver-user-agent.gemspec
@@ -16,7 +16,7 @@ gem.add_dependency 'selenium-webdriver'
gem.add_dependency 'facets'
gem.add_dependency 'json'
+ gem.add_dependency 'psyc... | Add pysch dependency to gemspec
|
diff --git a/flip.gemspec b/flip.gemspec
index abc1234..def5678 100644
--- a/flip.gemspec
+++ b/flip.gemspec
@@ -19,7 +19,7 @@ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
- s.add_dependency("activesupport", "~> 3.0")
+ s.add_dependency("activesupp... | Update gemspec to allow installing on Rails 4
Adapted from devise's gemspec (https://github.com/plataformatec/devise/blob/master/devise.gemspec) |
diff --git a/YTVimeoExtractor.podspec b/YTVimeoExtractor.podspec
index abc1234..def5678 100644
--- a/YTVimeoExtractor.podspec
+++ b/YTVimeoExtractor.podspec
@@ -13,7 +13,7 @@ s.source = { :git => "https://github.com/lilfaf/YTVimeoExtractor.git", :tag => "0.2.0" }
s.ios.deployment_target = '7.0'
- s.osx.de... | Add 10.9 requirement to podspec
NSURLSession is available on 10.9 or later the pod spec previously had 10.8. |
diff --git a/lib/database_rewinder/multiple_statements_executor.rb b/lib/database_rewinder/multiple_statements_executor.rb
index abc1234..def5678 100644
--- a/lib/database_rewinder/multiple_statements_executor.rb
+++ b/lib/database_rewinder/multiple_statements_executor.rb
@@ -15,7 +15,11 @@ when 'ActiveRecord::... | Make sure all queries are finished also when MULTI_STATEMENTS is enabled
|
diff --git a/ruby/kata/game_test.rb b/ruby/kata/game_test.rb
index abc1234..def5678 100644
--- a/ruby/kata/game_test.rb
+++ b/ruby/kata/game_test.rb
@@ -3,19 +3,25 @@
class GameTest < Test::Unit::TestCase
+ def setup
+ @game = Game.new
+ end
+
+ def roll_many(n, pins)
+ n.times do
+ @game.roll(pins)
+... | Refactor test to extract duplicate code
|
diff --git a/omnisocial.gemspec b/omnisocial.gemspec
index abc1234..def5678 100644
--- a/omnisocial.gemspec
+++ b/omnisocial.gemspec
@@ -10,14 +10,14 @@ gem.platform = Gem::Platform::RUBY
gem.authors = ['Tim Riley']
gem.email = 'tim@openmonkey.com'
- gem.homepage = 'http://github.com/ti... | Update gemspec: depend explicitly on current versions of omniauth and ruby-bcrypt, fix homepage. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.