diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/app/api/v0/entities.rb b/app/api/v0/entities.rb
index abc1234..def5678 100644
--- a/app/api/v0/entities.rb
+++ b/app/api/v0/entities.rb
@@ -16,7 +16,9 @@ is_child = lambda {|instance, options| options[:type] == :child}
is_parent = lambda {|instance, options| options[:type] == :parent}
- ... | Cut off prefix for uuids during display.
|
diff --git a/db/data_migration/20200421181910_vanish_placeholder_working_groups_in_broken_state.rb b/db/data_migration/20200421181910_vanish_placeholder_working_groups_in_broken_state.rb
index abc1234..def5678 100644
--- a/db/data_migration/20200421181910_vanish_placeholder_working_groups_in_broken_state.rb
+++ b/db/da... | Add migration to vanish broken groups
We want to vanish these working groups as they are in a broken state
across GOV.UK's stack, they're recorded as live & draft in
publishing-api and content-store but do not exist in whitehall or router
meaning the pages are returning a 404. This weirdity seems to originate
from a m... |
diff --git a/atom.rb b/atom.rb
index abc1234..def5678 100644
--- a/atom.rb
+++ b/atom.rb
@@ -1,11 +1,75 @@-dep 'atom.app' do
+dep 'atom' do
+ requires \
+ 'Atom.app',
+ 'atom packages'
+end
+
+dep 'Atom.app' do
source "https://atom.io/download/mac"
- provides 'Atom.app'
version '0'
end
-dep 'atom', :te... | Add all basic Atom packages |
diff --git a/spec/controllers/unsubmitted_courses_controller_spec.rb b/spec/controllers/unsubmitted_courses_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/unsubmitted_courses_controller_spec.rb
+++ b/spec/controllers/unsubmitted_courses_controller_spec.rb
@@ -18,5 +18,19 @@ expect(respons... | Create test for unsubmitted courses
|
diff --git a/Casks/omnipresence-beta.rb b/Casks/omnipresence-beta.rb
index abc1234..def5678 100644
--- a/Casks/omnipresence-beta.rb
+++ b/Casks/omnipresence-beta.rb
@@ -0,0 +1,13 @@+cask :v1 => 'omnipresence-beta' do
+ version '1.4.x-r232733'
+ sha256 'c21289a7a90b4efc8f0eb9cf3775bb4bb19145688229cd886718881b2c34377a'... | Add Omnipresence beta track (currently 1.4)
This creates a new cask for the Omnipresence beta (at v1.4 at the
time of creation).
|
diff --git a/lib/goshortener.rb b/lib/goshortener.rb
index abc1234..def5678 100644
--- a/lib/goshortener.rb
+++ b/lib/goshortener.rb
@@ -12,7 +12,7 @@ end
def shorten(long_url)
- if long_url.is_a? String
+ if long_url.is_a?(String) && long_url.present?
request_json = {'longUrl' => long_url}.to_json
... | Handle empty URLs while shortening.
|
diff --git a/lib/qrb/heading.rb b/lib/qrb/heading.rb
index abc1234..def5678 100644
--- a/lib/qrb/heading.rb
+++ b/lib/qrb/heading.rb
@@ -1,4 +1,10 @@ module Qrb
+ #
+ # Helper class for tuple and relation types.
+ #
+ # A heading is a set of attributes, with the constraint that no two
+ # attributes have the same ... | Document Heading and change hash strategy.
|
diff --git a/lib/tasks/lpi.rake b/lib/tasks/lpi.rake
index abc1234..def5678 100644
--- a/lib/tasks/lpi.rake
+++ b/lib/tasks/lpi.rake
@@ -0,0 +1,11 @@+namespace :lpi do
+ desc 'Import an LPI CSV file, attributing the import to the given user'
+ task :import, [:file, :user_email] => [:environment] do |t, args|
+ use... | Add rake task for LPI file import
|
diff --git a/test/specs/template_spec.rb b/test/specs/template_spec.rb
index abc1234..def5678 100644
--- a/test/specs/template_spec.rb
+++ b/test/specs/template_spec.rb
@@ -4,11 +4,30 @@ SparkleFormation.sparkle_path = File.join(File.dirname(__FILE__), 'cloudformation')
end
- describe 'Simple template' do
+ ... | Build templates and validate expected results
|
diff --git a/phonebook.rb b/phonebook.rb
index abc1234..def5678 100644
--- a/phonebook.rb
+++ b/phonebook.rb
@@ -0,0 +1,15 @@+# A directory of names and phone numbers
+class Phonebook
+ attr_accessor :data
+
+ def initialize()
+ self.data = {}
+ end
+
+ # Add a contact to this phone book
+ # @param name [String... | Add simple Phonebook data structure
We are going to be trying to search through a list of contacts (which I
am calling a Phonebook for ease of discussion). We are going to store
these in some form; for now, the simplest possible answer is a hash
mapping Names to Numbers.
For the time being, we are going to consider p... |
diff --git a/core/argf/rewind_spec.rb b/core/argf/rewind_spec.rb
index abc1234..def5678 100644
--- a/core/argf/rewind_spec.rb
+++ b/core/argf/rewind_spec.rb
@@ -28,9 +28,7 @@ end
end
- # This fails on all versions as reported in bug #1693. If it's deemed not to
- # be a bug, this guard can be removed
- ruby... | Update ruby_bug version to 1.9 for ARGF.rewind bug.
|
diff --git a/app/models/viewport.rb b/app/models/viewport.rb
index abc1234..def5678 100644
--- a/app/models/viewport.rb
+++ b/app/models/viewport.rb
@@ -6,12 +6,16 @@ belongs_to :project
validates :project, presence: true
- # @return [String]
+ # @return [String] A representation of the Viewport instance in th... | Improve documentation for Viewport methods
Just adding some YARD descriptions to the return types to make this
class more coherent.
Change-Id: I9a64961eb136fe4c4a09909fa7fc1e7b12351388
|
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
@@ -3,17 +3,17 @@ Sicuro.assert('true', 'true').should == true
context 'sandbox_error passed a string' do
- Sicuro.should_receive(:warn).with("[SANDBOX WARNING] te... | Check for $stderr.puts, instead of Sicuro.warn.
|
diff --git a/spec/hash_object_spec.rb b/spec/hash_object_spec.rb
index abc1234..def5678 100644
--- a/spec/hash_object_spec.rb
+++ b/spec/hash_object_spec.rb
@@ -11,7 +11,8 @@ :posts => [
{:title => 'It is christmas'},
{:title => 'NOT'}
- ]
+ ],
+ :living? => true
}
end
@... | Add postfix example-attribute to HashObject spec
|
diff --git a/spec/models/game_spec.rb b/spec/models/game_spec.rb
index abc1234..def5678 100644
--- a/spec/models/game_spec.rb
+++ b/spec/models/game_spec.rb
@@ -8,22 +8,26 @@ let(:default_starting_word) { "hangman" }
describe "#score" do
+ subject { game.score }
+
it "should be set" do
-... | Change rspec tests to make better use of subject
|
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb
index abc1234..def5678 100644
--- a/spec/models/user_spec.rb
+++ b/spec/models/user_spec.rb
@@ -1,25 +1,22 @@ require 'rails_helper'
RSpec.describe User, type: :model do
- it "has a valid factory" do
+ it 'has a valid factory' do
create(:user).s... | Use single quotes unless double quotes are needed
|
diff --git a/nasdaq_scraper.gemspec b/nasdaq_scraper.gemspec
index abc1234..def5678 100644
--- a/nasdaq_scraper.gemspec
+++ b/nasdaq_scraper.gemspec
@@ -18,6 +18,8 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
+ spec.required_ruby_version = '>= 1.9.3'
+
spec... | Add ruby version to gemspec
|
diff --git a/lib/generators/redactor/templates/active_record/carrierwave/redactor/document.rb b/lib/generators/redactor/templates/active_record/carrierwave/redactor/document.rb
index abc1234..def5678 100644
--- a/lib/generators/redactor/templates/active_record/carrierwave/redactor/document.rb
+++ b/lib/generators/redac... | Remove thumb from Document's json methods
|
diff --git a/cookbooks/sys_dns/recipes/do_set_private.rb b/cookbooks/sys_dns/recipes/do_set_private.rb
index abc1234..def5678 100644
--- a/cookbooks/sys_dns/recipes/do_set_private.rb
+++ b/cookbooks/sys_dns/recipes/do_set_private.rb
@@ -5,8 +5,33 @@ # RightScale Terms of Service available at http://www.rightscale.com/t... | Add private_ip detection for non-clouds.
|
diff --git a/db/migrate/20150417081217_change_name_of_payment_method_types.rb b/db/migrate/20150417081217_change_name_of_payment_method_types.rb
index abc1234..def5678 100644
--- a/db/migrate/20150417081217_change_name_of_payment_method_types.rb
+++ b/db/migrate/20150417081217_change_name_of_payment_method_types.rb
@@ ... | Add migration to change the names of already made payment methods.
|
diff --git a/faraday-detailed_logger.gemspec b/faraday-detailed_logger.gemspec
index abc1234..def5678 100644
--- a/faraday-detailed_logger.gemspec
+++ b/faraday-detailed_logger.gemspec
@@ -10,7 +10,7 @@ spec.email = [""]
spec.summary = %q{A detailed request and response logger for Faraday.}
spec.d... | Use GitHub as the gem homepage. |
diff --git a/lib/marples/model_action_broadcast.rb b/lib/marples/model_action_broadcast.rb
index abc1234..def5678 100644
--- a/lib/marples/model_action_broadcast.rb
+++ b/lib/marples/model_action_broadcast.rb
@@ -28,7 +28,8 @@ end
def self.build_marples_client
- Marples::Client.new(marples_t... | Make the ActiveModel integration use option-style arguments
|
diff --git a/spec/lib/gitlab/ci/pipeline/chain/validate/config_spec.rb b/spec/lib/gitlab/ci/pipeline/chain/validate/config_spec.rb
index abc1234..def5678 100644
--- a/spec/lib/gitlab/ci/pipeline/chain/validate/config_spec.rb
+++ b/spec/lib/gitlab/ci/pipeline/chain/validate/config_spec.rb
@@ -0,0 +1,127 @@+require 'spec... | Add specs for pipeline builder that validates config
|
diff --git a/opal/yeah/thing.rb b/opal/yeah/thing.rb
index abc1234..def5678 100644
--- a/opal/yeah/thing.rb
+++ b/opal/yeah/thing.rb
@@ -1,6 +1,10 @@ class Yeah::Thing
class << self
attr_accessor :look, :body
+
+ def look
+ @look ||= Look
+ end
end
attr_reader :game
@@ -9,7 +13,7 @@ def ini... | Make optional Thing ::look, ::body
|
diff --git a/ProductionBlogPost2/models/pricing/persistant_pricing_model.rb b/ProductionBlogPost2/models/pricing/persistant_pricing_model.rb
index abc1234..def5678 100644
--- a/ProductionBlogPost2/models/pricing/persistant_pricing_model.rb
+++ b/ProductionBlogPost2/models/pricing/persistant_pricing_model.rb
@@ -2,7 +2,... | Update for millis/seconds mistake in the persistent pricing model expiration default
|
diff --git a/app/services/play_card.rb b/app/services/play_card.rb
index abc1234..def5678 100644
--- a/app/services/play_card.rb
+++ b/app/services/play_card.rb
@@ -23,7 +23,7 @@ top_card = @round.pile.top
return true if @card.playable_on?(top_card)
- @errors.push "cannot play card, #{@card.to_s} on #{top... | Refactor string interpolation call to_s as implicit
|
diff --git a/db/migrate/20171002161539_create_gpg_key_subkeys_for_existing_gpg_keys.rb b/db/migrate/20171002161539_create_gpg_key_subkeys_for_existing_gpg_keys.rb
index abc1234..def5678 100644
--- a/db/migrate/20171002161539_create_gpg_key_subkeys_for_existing_gpg_keys.rb
+++ b/db/migrate/20171002161539_create_gpg_key_... | Add migration to generate GpgKeySubkeys records and update signatures
|
diff --git a/tipsi-stripe.podspec b/tipsi-stripe.podspec
index abc1234..def5678 100644
--- a/tipsi-stripe.podspec
+++ b/tipsi-stripe.podspec
@@ -19,5 +19,5 @@ s.source_files = 'ios/TPSStripe/**/*.{h,m}'
s.dependency 'React'
- s.dependency 'Stripe', '>= 16.0.7'
+ s.dependency 'Stripe', '>= 19.0.1'
end
| Fix build on xcode 11.4
See https://github.com/stripe/stripe-ios/pull/1526
|
diff --git a/app/models/user.rb b/app/models/user.rb
index abc1234..def5678 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -4,7 +4,7 @@
include BCrypt
- has_many :decks, through :rounds
+ has_many :decks, through: :rounds
validates :last_name, :first_name, :user_name, :email, presence: true
| Fix another typo in User model
|
diff --git a/app/models/vote.rb b/app/models/vote.rb
index abc1234..def5678 100644
--- a/app/models/vote.rb
+++ b/app/models/vote.rb
@@ -0,0 +1,7 @@+class Vote < ActiveRecord::Base
+ belongs_to :voter, class_name: "User"
+ belongs_to :voteable, polymorphic: true
+
+ validates :value, minimum: -1, maximum:1
+
+end
| Add associations and validations to model
|
diff --git a/cluster-discovery.gemspec b/cluster-discovery.gemspec
index abc1234..def5678 100644
--- a/cluster-discovery.gemspec
+++ b/cluster-discovery.gemspec
@@ -8,8 +8,8 @@ spec.version = Cluster::Discovery::VERSION
spec.authors = ['Andrew Thompson']
spec.email = ['Andrew_Thompson@rapid7... | Update gemspec summary and description
|
diff --git a/coinbase-official.podspec b/coinbase-official.podspec
index abc1234..def5678 100644
--- a/coinbase-official.podspec
+++ b/coinbase-official.podspec
@@ -14,11 +14,13 @@ s.platform = :ios, '7.0'
s.requires_arc = true
- s.source_files = 'Pod/Classes'
s.resources = 'Pod/Assets'
-
s.public_hea... | Update podspec to remove conflicting files
|
diff --git a/config/dependencies.rb b/config/dependencies.rb
index abc1234..def5678 100644
--- a/config/dependencies.rb
+++ b/config/dependencies.rb
@@ -35,3 +35,19 @@ register("groups.musicbrainz") do |musicbrainz_key|
Groups::MusicBrainz.new(musicbrainz_key)
end
+
+register("releases.sync") do |model, **options|
... | Add missing sync release dependency
|
diff --git a/backend/app/controllers/spree/admin/images_controller.rb b/backend/app/controllers/spree/admin/images_controller.rb
index abc1234..def5678 100644
--- a/backend/app/controllers/spree/admin/images_controller.rb
+++ b/backend/app/controllers/spree/admin/images_controller.rb
@@ -8,30 +8,27 @@
private
... | Revert "fix n+1 for admin product images"
This reverts commit 2acb334efd85c5e0467a1db64938cf28f08d8fe8.
|
diff --git a/spec/controllers/application_controller/policy_support_spec.rb b/spec/controllers/application_controller/policy_support_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/application_controller/policy_support_spec.rb
+++ b/spec/controllers/application_controller/policy_support_spec.rb
@@ -17,4 +1... | Add specs regarding canceling policy simulation
|
diff --git a/spec/models/spree/calculator_spec.rb b/spec/models/spree/calculator_spec.rb
index abc1234..def5678 100644
--- a/spec/models/spree/calculator_spec.rb
+++ b/spec/models/spree/calculator_spec.rb
@@ -10,9 +10,7 @@ let!(:line_item2) { create(:line_item, order: order) }
before do
- order.line_ite... | Fix problem in calculator spec
I am not sure why this started failing on this branch only and not in master but this fix is correct because line_items are created with order defined already, an order.reload is enough to load them into the order
|
diff --git a/deep_merge.gemspec b/deep_merge.gemspec
index abc1234..def5678 100644
--- a/deep_merge.gemspec
+++ b/deep_merge.gemspec
@@ -16,7 +16,6 @@ "CHANGELOG",
"README.md",
"Rakefile",
- "VERSION",
"lib/deep_merge.rb",
"lib/deep_merge/core.rb",
"lib/deep_merge/deep_merge_hash.rb",
| Remove deleted VERSION file from gemspec
|
diff --git a/core/lib/tasks/email.rake b/core/lib/tasks/email.rake
index abc1234..def5678 100644
--- a/core/lib/tasks/email.rake
+++ b/core/lib/tasks/email.rake
@@ -1,9 +1,9 @@ namespace :email do
- desc 'Sends test email to specified address - Example: EMAIL=spree@example.com bundle exec rake test:email'
+ desc 'Sen... | Fix documentation typo on mailer rake task.
Fixes #6326
|
diff --git a/core/lib/tasks/users.rake b/core/lib/tasks/users.rake
index abc1234..def5678 100644
--- a/core/lib/tasks/users.rake
+++ b/core/lib/tasks/users.rake
@@ -1,11 +1,10 @@ namespace :user do
task :add, [:user, :email, :password] => :environment do |t, args|
u = User.new({ username: args.user,
-
- ... | Set confirmed_at for the generated user
|
diff --git a/recipes/default.rb b/recipes/default.rb
index abc1234..def5678 100644
--- a/recipes/default.rb
+++ b/recipes/default.rb
@@ -1,7 +1,9 @@ pythons = node['sprout']['pyenv']['pythons']
default_python = node['sprout']['pyenv']['default_python']
-package 'pyenv'
+node.default['homebrew']['formulas'] = ... | Install pyenv using brew instead of package;
;
|
diff --git a/db/seeds/demo/demo_students.seeds.rb b/db/seeds/demo/demo_students.seeds.rb
index abc1234..def5678 100644
--- a/db/seeds/demo/demo_students.seeds.rb
+++ b/db/seeds/demo/demo_students.seeds.rb
@@ -16,7 +16,8 @@ StudentAssessment.destroy_all
DisciplineIncident.destroy_all
AttendanceEvent.destroy_all
-
+Sch... | Destroy school year & student school year objects before seeding
|
diff --git a/doc/ex/colorize.rb b/doc/ex/colorize.rb
index abc1234..def5678 100644
--- a/doc/ex/colorize.rb
+++ b/doc/ex/colorize.rb
@@ -10,8 +10,8 @@ # Convert the color image to monochrome
mono = polynesia.quantize(256, Magick::GRAYColorspace)
-# Colorize with a 20% blend of a brownish-orange color
-colorized = mo... | Use a color that's closer to "true" sepia.
|
diff --git a/jailer-column-to-association.rb b/jailer-column-to-association.rb
index abc1234..def5678 100644
--- a/jailer-column-to-association.rb
+++ b/jailer-column-to-association.rb
@@ -1,11 +1,13 @@ #!/usr/bin/env ruby
-require 'rubygems'
-require 'slop'
+def main(argv)
+ usage if argv.empty?
+
+ p argv
+end
-... | Rework options to more simple unix-way
|
diff --git a/app/controllers/dataset_edits_controller.rb b/app/controllers/dataset_edits_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/dataset_edits_controller.rb
+++ b/app/controllers/dataset_edits_controller.rb
@@ -11,8 +11,10 @@ @dataset_edit = current_user.dataset_edits.new(dataset_edit_para... | Clean up dataset edits success message code
|
diff --git a/app/controllers/travel_advice_controller.rb b/app/controllers/travel_advice_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/travel_advice_controller.rb
+++ b/app/controllers/travel_advice_controller.rb
@@ -29,11 +29,10 @@ end
respond_to do |format|
- format.html { render "... | Remove redundant render calls from controller
|
diff --git a/app/models/concerns/transaction_skipping.rb b/app/models/concerns/transaction_skipping.rb
index abc1234..def5678 100644
--- a/app/models/concerns/transaction_skipping.rb
+++ b/app/models/concerns/transaction_skipping.rb
@@ -5,7 +5,7 @@
class_methods do
def transaction(*args)
- if @skip_transa... | Make transaction skipping logic threadsafe
|
diff --git a/lib/ember/es6_template/sprockets2.rb b/lib/ember/es6_template/sprockets2.rb
index abc1234..def5678 100644
--- a/lib/ember/es6_template/sprockets2.rb
+++ b/lib/ember/es6_template/sprockets2.rb
@@ -1,7 +1,7 @@ begin
require 'coffee_script'
rescue LoadError => e
- raise e unless e.message == 'cannot load... | Make coffee_script detection jRuby compatible
|
diff --git a/Injineer.podspec b/Injineer.podspec
index abc1234..def5678 100644
--- a/Injineer.podspec
+++ b/Injineer.podspec
@@ -8,7 +8,7 @@ s.homepage = "https://github.com/vangelov/Injineer"
s.license = { :type => "ISC", :file => "LICENSE" }
s.author = { "Vladimir Angelov" => "vlady.angel... | Update git tag in podspec.
|
diff --git a/spec/process_shared/shared_memory_io_spec.rb b/spec/process_shared/shared_memory_io_spec.rb
index abc1234..def5678 100644
--- a/spec/process_shared/shared_memory_io_spec.rb
+++ b/spec/process_shared/shared_memory_io_spec.rb
@@ -1,3 +1,7 @@+# encoding: UTF-8
+# ^^^
+# NOTE: This magic comment is necessary f... | Fix test on 1.9.x by adding magic file encoding comment
|
diff --git a/warden-doorkeeper.gemspec b/warden-doorkeeper.gemspec
index abc1234..def5678 100644
--- a/warden-doorkeeper.gemspec
+++ b/warden-doorkeeper.gemspec
@@ -13,5 +13,5 @@
s.files = Dir["lib/**/*", "LICENSE", "README.md"]
- s.add_dependency "warden", "~> 1.2"
+ s.add_runtime_dependency "warden", "~> 1.2"... | Update gemspec to use 'add_runtime_dependency'
|
diff --git a/watir/lib/watir/loader.rb b/watir/lib/watir/loader.rb
index abc1234..def5678 100644
--- a/watir/lib/watir/loader.rb
+++ b/watir/lib/watir/loader.rb
@@ -22,8 +22,9 @@ def load_driver
require "watir-#{driver}"
rescue LoadError
- puts "watir-#{driver} gem is missing. Install it with the f... | Exit when gem is missing.
|
diff --git a/test/lib/examples/galena/tissue/migration/helpers/test_case.rb b/test/lib/examples/galena/tissue/migration/helpers/test_case.rb
index abc1234..def5678 100644
--- a/test/lib/examples/galena/tissue/migration/helpers/test_case.rb
+++ b/test/lib/examples/galena/tissue/migration/helpers/test_case.rb
@@ -11,10 +... | Create the migrator with the test options.
|
diff --git a/core/app/controllers/spree/admin/adjustments_controller.rb b/core/app/controllers/spree/admin/adjustments_controller.rb
index abc1234..def5678 100644
--- a/core/app/controllers/spree/admin/adjustments_controller.rb
+++ b/core/app/controllers/spree/admin/adjustments_controller.rb
@@ -1,9 +1,6 @@ module Spre... | Revert "Inherit from namespaced ResourceController + explain why"
This workaround is not needed anymore as rd_resource_controller is now removed
This reverts commit 3959c7b9f008e6653e79674a3af1f907cf90cbb9.
|
diff --git a/db/migrate/20150205061809_make_firmware_unique_on_version_and_channel.rb b/db/migrate/20150205061809_make_firmware_unique_on_version_and_channel.rb
index abc1234..def5678 100644
--- a/db/migrate/20150205061809_make_firmware_unique_on_version_and_channel.rb
+++ b/db/migrate/20150205061809_make_firmware_uniq... | Make firmware unique on version and channel
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -4,4 +4,4 @@ license 'Apache 2.0'
description 'System Software configuration and maintenance'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
-version '1.18.1'
+v... | Add (no-)proxy support for subversion and some smaller fixes
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -4,8 +4,9 @@ license 'Apache 2.0'
description 'Chef Pantry is a workstation automation cookbook'
version '0.2.2'
-depends 'homebrew', '~> 2.1'
-depends 'chocolatey'... | Remove version constraints and depend on build-essential
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
|
diff --git a/lib/bun/bots/catalog/ls_task.rb b/lib/bun/bots/catalog/ls_task.rb
index abc1234..def5678 100644
--- a/lib/bun/bots/catalog/ls_task.rb
+++ b/lib/bun/bots/catalog/ls_task.rb
@@ -4,8 +4,8 @@ desc "ls", "List the catalog file for the archive"
option 'archive', :aliases=>'-a', :type=>'string', :desc=>'Archive ... | Add column headings to git catalog ls
|
diff --git a/lib/cinch/plugins/straw_poll.rb b/lib/cinch/plugins/straw_poll.rb
index abc1234..def5678 100644
--- a/lib/cinch/plugins/straw_poll.rb
+++ b/lib/cinch/plugins/straw_poll.rb
@@ -18,7 +18,10 @@ options << "pol pot" if mode == "pol"
response = request_poll(title.strip, options)
unless... | Add repeats to vote announcement
|
diff --git a/lib/copian/collector/generic.rb b/lib/copian/collector/generic.rb
index abc1234..def5678 100644
--- a/lib/copian/collector/generic.rb
+++ b/lib/copian/collector/generic.rb
@@ -16,6 +16,7 @@ end
end
protected
+ # :stopdoc:
def load_ifnames
return if @loaded_i... | Hide protected methods from RDoc
|
diff --git a/test/inch/cli/command/list_test.rb b/test/inch/cli/command/list_test.rb
index abc1234..def5678 100644
--- a/test/inch/cli/command/list_test.rb
+++ b/test/inch/cli/command/list_test.rb
@@ -18,6 +18,26 @@ assert_match /\bFoo::Bar#method_without_doc\b/, out
end
+ it "should run with filelist in args... | Add test for path assignment with *args
|
diff --git a/app/models/transfer.rb b/app/models/transfer.rb
index abc1234..def5678 100644
--- a/app/models/transfer.rb
+++ b/app/models/transfer.rb
@@ -20,8 +20,8 @@ attr_accessor :source, :destination, :amount, :hours, :minutes
def make_movements
- movements.create(account: Account.find(source), amount: -am... | Remove depreceations about using Model.find(instance)
|
diff --git a/callcredit.gemspec b/callcredit.gemspec
index abc1234..def5678 100644
--- a/callcredit.gemspec
+++ b/callcredit.gemspec
@@ -7,7 +7,7 @@ gem.add_runtime_dependency 'unicode_utils', '~> 1.4.0'
gem.add_development_dependency 'rspec', '~> 3.8.0'
- gem.add_development_dependency 'webmock... | Update webmock requirement from ~> 3.6.0 to ~> 3.7.0
Updates the requirements on [webmock](https://github.com/bblimke/webmock) to permit the latest version.
- [Release notes](https://github.com/bblimke/webmock/releases)
- [Changelog](https://github.com/bblimke/webmock/blob/master/CHANGELOG.md)
- [Commits](https://gith... |
diff --git a/db/migrate/20200327172134_convert_training_modules_to_utf8_mb4.rb b/db/migrate/20200327172134_convert_training_modules_to_utf8_mb4.rb
index abc1234..def5678 100644
--- a/db/migrate/20200327172134_convert_training_modules_to_utf8_mb4.rb
+++ b/db/migrate/20200327172134_convert_training_modules_to_utf8_mb4.rb... | Remove and re-add training slug index
This may let us work around the index size problem.
|
diff --git a/RxNimble.podspec b/RxNimble.podspec
index abc1234..def5678 100644
--- a/RxNimble.podspec
+++ b/RxNimble.podspec
@@ -17,4 +17,6 @@ s.dependency "Nimble", "~> 3.0"
s.dependency "RxSwift", "~> 2.0"
s.dependency "RxBlocking", "~> 2.0"
+
+ s.pod_target_xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '$(inhe... | Update Framework Search Paths to include XCTest
|
diff --git a/cashmonies.gemspec b/cashmonies.gemspec
index abc1234..def5678 100644
--- a/cashmonies.gemspec
+++ b/cashmonies.gemspec
@@ -21,4 +21,6 @@ spec.add_development_dependency "bundler", "~> 1.6"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec"
+ spec.add_development_depend... | Add some utility gems for development.
|
diff --git a/lib/droplet_kit/mappings/ssh_key_mapping.rb b/lib/droplet_kit/mappings/ssh_key_mapping.rb
index abc1234..def5678 100644
--- a/lib/droplet_kit/mappings/ssh_key_mapping.rb
+++ b/lib/droplet_kit/mappings/ssh_key_mapping.rb
@@ -7,11 +7,11 @@ root_key singular: 'ssh_key', plural: 'ssh_keys', scopes: [:rea... | Fix SshKeyMapping scopes - should be arrays.
|
diff --git a/lib/g5_authenticatable_api/grape_helpers.rb b/lib/g5_authenticatable_api/grape_helpers.rb
index abc1234..def5678 100644
--- a/lib/g5_authenticatable_api/grape_helpers.rb
+++ b/lib/g5_authenticatable_api/grape_helpers.rb
@@ -5,7 +5,8 @@ if access_token
validate_access_token
else
... | Add error message to 401 response body
|
diff --git a/lib/xcode-installer/download.rb b/lib/xcode-installer/download.rb
index abc1234..def5678 100644
--- a/lib/xcode-installer/download.rb
+++ b/lib/xcode-installer/download.rb
@@ -1,23 +1,25 @@ #
# XcodeInstaller::Download (Command Class)
#
+# Determines the requested Xcode release (with the help of the Rele... | Store release information in a property and ensure to pass the requested release down to ReleaseManager
|
diff --git a/lib/sastrawi/dictionary/array_dictionary.rb b/lib/sastrawi/dictionary/array_dictionary.rb
index abc1234..def5678 100644
--- a/lib/sastrawi/dictionary/array_dictionary.rb
+++ b/lib/sastrawi/dictionary/array_dictionary.rb
@@ -28,6 +28,10 @@
@words.push(word)
end
+
+ def remove(word)
+ ... | Add function to remove word from dictionary
|
diff --git a/lib/windows_store/push_notification/tile.rb b/lib/windows_store/push_notification/tile.rb
index abc1234..def5678 100644
--- a/lib/windows_store/push_notification/tile.rb
+++ b/lib/windows_store/push_notification/tile.rb
@@ -4,8 +4,11 @@ def to_s
return %Q(
<tile>
- <visual>
- ... | ADD square title type (Tile)
|
diff --git a/lib/puppet/util/es_instance_validator.rb b/lib/puppet/util/es_instance_validator.rb
index abc1234..def5678 100644
--- a/lib/puppet/util/es_instance_validator.rb
+++ b/lib/puppet/util/es_instance_validator.rb
@@ -10,6 +10,13 @@ def initialize(instance_server, instance_port)
@instance_server =... | Fix deprecated access to configtimeout in Puppet >= 4
|
diff --git a/db/migrate/20080612111014_add_event_path.rb b/db/migrate/20080612111014_add_event_path.rb
index abc1234..def5678 100644
--- a/db/migrate/20080612111014_add_event_path.rb
+++ b/db/migrate/20080612111014_add_event_path.rb
@@ -0,0 +1,9 @@+class AddEventPath < ActiveRecord::Migration
+ def self.up
+ add_co... | Migrate events to add path
|
diff --git a/spec/git_helper.rb b/spec/git_helper.rb
index abc1234..def5678 100644
--- a/spec/git_helper.rb
+++ b/spec/git_helper.rb
@@ -10,6 +10,8 @@
def git_init
`git init`
+ `git config user.name TEST`
+ `git config user.email TEST`
end
def git_add_file(name, &block)
| Add git config settings after repository initialization
|
diff --git a/spool_pool.gemspec b/spool_pool.gemspec
index abc1234..def5678 100644
--- a/spool_pool.gemspec
+++ b/spool_pool.gemspec
@@ -1,11 +1,11 @@ Gem::Specification.new do |s|
s.name = "spool_pool"
- s.version = "0.1"
+ s.version = "0.2"
s.required_ruby_version = ">= 1.9.1"
s.required_rubygems_version... | Update gemspec; bump version to 0.2
|
diff --git a/spec/reporters/state_reporter_spec.rb b/spec/reporters/state_reporter_spec.rb
index abc1234..def5678 100644
--- a/spec/reporters/state_reporter_spec.rb
+++ b/spec/reporters/state_reporter_spec.rb
@@ -25,11 +25,11 @@ end
it "publishes notifications of given type" do
- reporter.notify('build:... | Use different paylods in tests
|
diff --git a/examples/twitter.rb b/examples/twitter.rb
index abc1234..def5678 100644
--- a/examples/twitter.rb
+++ b/examples/twitter.rb
@@ -22,16 +22,16 @@
element :id, Integer
element :text, String
- element :created_at, Time
- element :source, String
- element :truncated, Boolean
- element :in_reply_to_stat... | Replace tab with 2 spaces |
diff --git a/core/thread/list_spec.rb b/core/thread/list_spec.rb
index abc1234..def5678 100644
--- a/core/thread/list_spec.rb
+++ b/core/thread/list_spec.rb
@@ -5,6 +5,13 @@ it "includes the current and main thread" do
Thread.list.should include(Thread.current)
Thread.list.should include(Thread.main)
+ end... | Add a spec for Thread.list with thread groups
|
diff --git a/ext/extconf.rb b/ext/extconf.rb
index abc1234..def5678 100644
--- a/ext/extconf.rb
+++ b/ext/extconf.rb
@@ -3,19 +3,8 @@
require 'mkmf'
-if RUBY_PLATFORM =~ /darwin/
- $stderr.puts "Error: native extension disabled on OS X. This will not work."
- exit 1
-end
-
-unless RUBY_PLATFORM =~ /linux/
- $std... | Remove all failure points and update base lib naming.
|
diff --git a/features/support/rspec.rb b/features/support/rspec.rb
index abc1234..def5678 100644
--- a/features/support/rspec.rb
+++ b/features/support/rspec.rb
@@ -0,0 +1,18 @@+require 'timeout'
+
+RSpec::Matchers.define(:become) do |expected|
+ match do |block|
+ begin
+ Timeout.timeout(Capybara.default_wait... | Add custom become matcher for acceptance tests
|
diff --git a/git_tracker.gemspec b/git_tracker.gemspec
index abc1234..def5678 100644
--- a/git_tracker.gemspec
+++ b/git_tracker.gemspec
@@ -15,7 +15,6 @@
gem.add_development_dependency "rspec", "~> 2.12"
gem.add_development_dependency "rspec-spies", "~> 2.0"
- gem.add_development_dependency "pry", "~> 0.9"
... | Remove development dependency on Pry
|
diff --git a/app/helpers/code_helper.rb b/app/helpers/code_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/code_helper.rb
+++ b/app/helpers/code_helper.rb
@@ -2,6 +2,7 @@
module CodeHelper
def model_file(controller)
+ controller.gsub!(/features/, 'notes')
File.join('app', 'models', "#{ controller... | Fix sanitisation of controller/actions names
|
diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb
index abc1234..def5678 100644
--- a/app/mailers/user_mailer.rb
+++ b/app/mailers/user_mailer.rb
@@ -3,7 +3,7 @@
def signup_email(user)
@user = user
- @twitter_message = "A8 is upgrading nutrition. Didn’t want to leave you all behind. Check... | Add twitter handle to twitter message
|
diff --git a/app/models/graph/schema.rb b/app/models/graph/schema.rb
index abc1234..def5678 100644
--- a/app/models/graph/schema.rb
+++ b/app/models/graph/schema.rb
@@ -12,6 +12,11 @@
object_from_id ->(id, query_ctx) do
gid = GlobalID.parse(id)
+ possible_types = query_ctx.warden.possible_types(GraphQ... | Check if possible type in object from id
|
diff --git a/raygun_client.gemspec b/raygun_client.gemspec
index abc1234..def5678 100644
--- a/raygun_client.gemspec
+++ b/raygun_client.gemspec
@@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'raygun_client'
- s.version = '0.1.8'
+ s.version = '0.1.9'
s.summary = 'Client for t... | Package version is increased from 0.1.8 to 0.1.9
|
diff --git a/spec/generator_spec.rb b/spec/generator_spec.rb
index abc1234..def5678 100644
--- a/spec/generator_spec.rb
+++ b/spec/generator_spec.rb
@@ -9,16 +9,12 @@ destination File.expand_path("../tmp", __FILE__)
arguments %w(photo)
- let(:time) { Time.new.utc.strftime("%Y%m%d%H%M%S") }
-
before do
p... | Remove references to time now that we're using assert_migration
|
diff --git a/spec/support/routes.rb b/spec/support/routes.rb
index abc1234..def5678 100644
--- a/spec/support/routes.rb
+++ b/spec/support/routes.rb
@@ -1,7 +1,7 @@ # Sets up use_route across controller tests, from:
# http://bit.ly/PU4Wm4 (stackoverflow)
-module ControllerHacks
+module ControllerSetup
def get(act... | Rename ControllerHacks so it sounds less like a temporary fix.
|
diff --git a/example_root_schema.rb b/example_root_schema.rb
index abc1234..def5678 100644
--- a/example_root_schema.rb
+++ b/example_root_schema.rb
@@ -5,7 +5,7 @@ t.integer "host_id"
end
- add_index "databases", "database"
+ add_index "databases", "database", :unique => true
add_index "databases", "mast... | Set a good example using unique index
|
diff --git a/lib/docs/scrapers/yii.rb b/lib/docs/scrapers/yii.rb
index abc1234..def5678 100644
--- a/lib/docs/scrapers/yii.rb
+++ b/lib/docs/scrapers/yii.rb
@@ -8,7 +8,7 @@ HTML
version '2.0' do
- self.release = '2.0.8'
+ self.release = '2.0.9'
self.base_url = 'http://www.yiiframework.com/do... | Update Yii documentation (2.0.9, 1.1.17)
|
diff --git a/examples/list_files.rb b/examples/list_files.rb
index abc1234..def5678 100644
--- a/examples/list_files.rb
+++ b/examples/list_files.rb
@@ -1,12 +1,47 @@ require 'gphoto2'
-# List all files
+# Recursively list folder contents with extended metadata.
+MAGNITUDES = %w[bytes KiB MiB GiB].freeze
+
+# @para... | Update list files example to include file metadata
|
diff --git a/site-cookbooks/dna/recipes/apache2.rb b/site-cookbooks/dna/recipes/apache2.rb
index abc1234..def5678 100644
--- a/site-cookbooks/dna/recipes/apache2.rb
+++ b/site-cookbooks/dna/recipes/apache2.rb
@@ -9,6 +9,10 @@ template "#{node['sprout']['home']}/Sites/tools/setdocroot.php" do
source "setdocroot.php"
... | Fix permissions of tools file
|
diff --git a/dropbox_api.gemspec b/dropbox_api.gemspec
index abc1234..def5678 100644
--- a/dropbox_api.gemspec
+++ b/dropbox_api.gemspec
@@ -23,6 +23,6 @@ spec.add_development_dependency "vcr"
spec.add_development_dependency "webmock"
- spec.add_dependency "faraday", "<= 1.0"
+ spec.add_dependency "faraday", "... | Allow also any 1.0.x faraday dependency version.
closes #71 |
diff --git a/spec/controllers/organization_spec.rb b/spec/controllers/organization_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/organization_spec.rb
+++ b/spec/controllers/organization_spec.rb
@@ -0,0 +1,59 @@+require 'spec_helper'
+
+describe Cyclid::UI::Controllers::Organization do
+ include Rack::Te... | Add tests for the organization endpoints
|
diff --git a/spec/unit/vagrant_butcher/env_spec.rb b/spec/unit/vagrant_butcher/env_spec.rb
index abc1234..def5678 100644
--- a/spec/unit/vagrant_butcher/env_spec.rb
+++ b/spec/unit/vagrant_butcher/env_spec.rb
@@ -1,9 +1,11 @@ require 'spec_helper.rb'
describe Vagrant::Butcher::Env do
+
subject { described_class.n... | Fix specs for newer vagrant versions
|
diff --git a/activesupport/lib/active_support/deprecation/instance_delegator.rb b/activesupport/lib/active_support/deprecation/instance_delegator.rb
index abc1234..def5678 100644
--- a/activesupport/lib/active_support/deprecation/instance_delegator.rb
+++ b/activesupport/lib/active_support/deprecation/instance_delegato... | Correct caller tracking in delegated deprecation methods
|
diff --git a/lib/domgen/ruby/model.rb b/lib/domgen/ruby/model.rb
index abc1234..def5678 100644
--- a/lib/domgen/ruby/model.rb
+++ b/lib/domgen/ruby/model.rb
@@ -1,8 +1,5 @@ module Domgen
module Ruby
- class RubyAttribute < BaseParentedElement
- end
-
class RubyClass < Domgen.ParentedElement(:object_type)
... | Remove empty RubyAttribute extension class
|
diff --git a/db/data_migration/20131010140102_52623285_remove_unwanted_policy_teams.rb b/db/data_migration/20131010140102_52623285_remove_unwanted_policy_teams.rb
index abc1234..def5678 100644
--- a/db/data_migration/20131010140102_52623285_remove_unwanted_policy_teams.rb
+++ b/db/data_migration/20131010140102_52623285... | Remove defunct unwanted policy teams.
Also removes connections to editions and
attachments (though there aren't any for these
groups). |
diff --git a/post_install.rb b/post_install.rb
index abc1234..def5678 100644
--- a/post_install.rb
+++ b/post_install.rb
@@ -1,7 +1 @@ # This file is executed in the Rails evironment by the `rails-post-install` script
-
-PublicBody.each{|body|
- body.translations.each{|translation|
- translation.update_attrib... | Remove old update_attribute in post-install
|
diff --git a/lib/pg-quilter/config.rb b/lib/pg-quilter/config.rb
index abc1234..def5678 100644
--- a/lib/pg-quilter/config.rb
+++ b/lib/pg-quilter/config.rb
@@ -11,7 +11,8 @@ PGSQL_HACKERS = 'pgsql-hackers'
HACKERS_ARCHIVE = 'http://www.postgresql.org/message-id'
- WORK_DIR = '/tmp/postgres'
+ # N.B.: ... | Fix workdir (easier than linking dir for fakesu)
|
diff --git a/lib/rack/handler/puma.rb b/lib/rack/handler/puma.rb
index abc1234..def5678 100644
--- a/lib/rack/handler/puma.rb
+++ b/lib/rack/handler/puma.rb
@@ -4,12 +4,26 @@ module Rack
module Handler
module Puma
- DEFAULT_OPTIONS = {:Host => '0.0.0.0', :Port => 8080, :Threads => '0:16'}
+ DEFAULT_OP... | Add output when used via rackup
|
diff --git a/lib/rtemplate/sinatra.rb b/lib/rtemplate/sinatra.rb
index abc1234..def5678 100644
--- a/lib/rtemplate/sinatra.rb
+++ b/lib/rtemplate/sinatra.rb
@@ -0,0 +1,37 @@+# Support for RTemplate in your Sinatra app.
+#
+# require 'rtemplate/sinatra'
+#
+# class App < Sinatra::Base
+# include RTemplate::Sinatra
+# ... | Add Sinatra support, layouts and all. Whoopie!
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.