diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/lib/tasks/mnemosyne/consume.rake b/lib/tasks/mnemosyne/consume.rake
index abc1234..def5678 100644
--- a/lib/tasks/mnemosyne/consume.rake
+++ b/lib/tasks/mnemosyne/consume.rake
@@ -13,6 +13,8 @@
Rails.application.eager_load!
+ Hutch::Logging.logger = Rails.logger
+
Hutch::Config.set :mq_exch... | Configure hutch to use rails logger
|
diff --git a/spec/scanny/checks/sql_injection/sanitize_sql_check_spec.rb b/spec/scanny/checks/sql_injection/sanitize_sql_check_spec.rb
index abc1234..def5678 100644
--- a/spec/scanny/checks/sql_injection/sanitize_sql_check_spec.rb
+++ b/spec/scanny/checks/sql_injection/sanitize_sql_check_spec.rb
@@ -10,7 +10,7 @@ e... | Use sanitize_sql according to the documentation
|
diff --git a/capistrano-hipchat.gemspec b/capistrano-hipchat.gemspec
index abc1234..def5678 100644
--- a/capistrano-hipchat.gemspec
+++ b/capistrano-hipchat.gemspec
@@ -18,7 +18,7 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
- spec.add_dependency "capistrano",... | Upgrade cap dependency (required for previous_revision variable)
|
diff --git a/spec/views/devise/mailer/unlock_instructions_spec.rb b/spec/views/devise/mailer/unlock_instructions_spec.rb
index abc1234..def5678 100644
--- a/spec/views/devise/mailer/unlock_instructions_spec.rb
+++ b/spec/views/devise/mailer/unlock_instructions_spec.rb
@@ -2,10 +2,7 @@ describe 'devise/mailer/unlock_ins... | Fix broken test for unlock instructions
There were some extra assertions left over from Devise's use of mocks that no
longer make sense.
|
diff --git a/Foursquare-API-v2.podspec b/Foursquare-API-v2.podspec
index abc1234..def5678 100644
--- a/Foursquare-API-v2.podspec
+++ b/Foursquare-API-v2.podspec
@@ -11,4 +11,5 @@ s.source_files = 'Classes', 'Foursquare2/**/*.{h,m}'
s.resources = 'Foursquare2/*.png', 'Foursquare2/**/*.{xib}'
s.requires_arc = tru... | Add required frameworks in podspec
|
diff --git a/lib/article_repository.rb b/lib/article_repository.rb
index abc1234..def5678 100644
--- a/lib/article_repository.rb
+++ b/lib/article_repository.rb
@@ -16,7 +16,7 @@ end
def self.find(id)
- self.new.find(id)
+ (new).find(id)
end
private
| Remove redundant `self.` from article repository
|
diff --git a/lib/codeclimate_ci/cli.rb b/lib/codeclimate_ci/cli.rb
index abc1234..def5678 100644
--- a/lib/codeclimate_ci/cli.rb
+++ b/lib/codeclimate_ci/cli.rb
@@ -14,10 +14,10 @@ CodeclimateCi.configuration.load_from_options(options)
if compare_gpa.worse?(branch_name)
- report_about_worse_code
+... | Refactor code quality reporting logic in CLI class
|
diff --git a/lib/core_charges_hooks.rb b/lib/core_charges_hooks.rb
index abc1234..def5678 100644
--- a/lib/core_charges_hooks.rb
+++ b/lib/core_charges_hooks.rb
@@ -1,6 +1,6 @@ class CoreChargesHooks < Spree::ThemeSupport::HookListener
- insert_bottom :admin_product_form_right do
+ insert_after :admin_product_form_... | Revert "Typo in hook declaration"
This reverts commit a41d3a1723ccfbdff1a485dea394affe25df7039.
|
diff --git a/Casks/tg-pro.rb b/Casks/tg-pro.rb
index abc1234..def5678 100644
--- a/Casks/tg-pro.rb
+++ b/Casks/tg-pro.rb
@@ -1,6 +1,6 @@ cask :v1 => 'tg-pro' do
- version '2.8.4'
- sha256 'e574e92e411b694f19c9a1ac0583361187f428524987d6a220ea82d39d64ac46'
+ version '2.8.5'
+ sha256 'ddffad55f0c8998323d270649f22f3e7a... | Update TG Pro.app to v2.8.5
|
diff --git a/gemgen.gemspec b/gemgen.gemspec
index abc1234..def5678 100644
--- a/gemgen.gemspec
+++ b/gemgen.gemspec
@@ -1,5 +1,6 @@ # -*- encoding: utf-8 -*-
-require File.expand_path('../lib/gemgen/version', __FILE__)
+$:.unshift File.expand_path('../lib', __FILE__)
+require 'gemgen/version'
Gem::Specification.new... | Fix already initialized constant VERSION warning
|
diff --git a/app/overrides/add_bulk_edit_tab_to_products_admin_sub_menu.rb b/app/overrides/add_bulk_edit_tab_to_products_admin_sub_menu.rb
index abc1234..def5678 100644
--- a/app/overrides/add_bulk_edit_tab_to_products_admin_sub_menu.rb
+++ b/app/overrides/add_bulk_edit_tab_to_products_admin_sub_menu.rb
@@ -1,4 +1,4 @@... | Make BPE menu tab selected
|
diff --git a/app/models/conversation.rb b/app/models/conversation.rb
index abc1234..def5678 100644
--- a/app/models/conversation.rb
+++ b/app/models/conversation.rb
@@ -2,5 +2,13 @@ belongs_to :sender, class_name: 'User', foreign_key: :sender_id
belongs_to :recipient, class_name: 'User', foreign_key: :recipient_id... | Add validations to Conversation model
|
diff --git a/csv2avro.gemspec b/csv2avro.gemspec
index abc1234..def5678 100644
--- a/csv2avro.gemspec
+++ b/csv2avro.gemspec
@@ -20,4 +20,6 @@
spec.add_development_dependency "bundler", "~> 1.6"
spec.add_development_dependency "rake", "~> 10.0"
+ spec.add_development_dependency "rspec"
+ spec.add_development_d... | Add development dependencies to gemspec |
diff --git a/activemodel/lib/active_model/mass_assignment_security/permission_set.rb b/activemodel/lib/active_model/mass_assignment_security/permission_set.rb
index abc1234..def5678 100644
--- a/activemodel/lib/active_model/mass_assignment_security/permission_set.rb
+++ b/activemodel/lib/active_model/mass_assignment_se... | Add missing require to use Set
|
diff --git a/Expecta.podspec b/Expecta.podspec
index abc1234..def5678 100644
--- a/Expecta.podspec
+++ b/Expecta.podspec
@@ -1,12 +1,12 @@ Pod::Spec.new do |s|
s.name = 'Expecta'
s.version = '0.2.4'
- s.license = 'MIT'
+ s.license = { :type => 'MIT', :file => 'LICENSE' }
s.summary = 'A matcher framew... | Add license format, disable ARC and add deployment targets to podspec
Also fixes format of tag version string. Passes `pod spec lint` validation. |
diff --git a/tests.rb b/tests.rb
index abc1234..def5678 100644
--- a/tests.rb
+++ b/tests.rb
@@ -10,7 +10,7 @@ end
def test_money_initialization
- assert_equal @money.value, 10
- assert_equal @money.currency, 'USD'
+ assert_equal 10, @money.value
+ assert_equal 'USD', @money.currency
end
end
| Fix class init test - `expected` was mixed with `actual`
|
diff --git a/0_code_wars/doggy_daycare.rb b/0_code_wars/doggy_daycare.rb
index abc1234..def5678 100644
--- a/0_code_wars/doggy_daycare.rb
+++ b/0_code_wars/doggy_daycare.rb
@@ -0,0 +1,11 @@+# http://www.codewars.com/kata/56951add53eccacf44000030/
+# --- iteration 1 ---
+class Dog
+ def check_dog
+ case [vaccinated,... | Add code wars (7) - doggy daycare
|
diff --git a/MHVideoPhotoGallery.podspec b/MHVideoPhotoGallery.podspec
index abc1234..def5678 100644
--- a/MHVideoPhotoGallery.podspec
+++ b/MHVideoPhotoGallery.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |s|
s.name = 'MHVideoPhotoGallery'
- s.version = '1.6'
+ s.version = '1.6.1'
s.license ... | Update SDWebImage to Version 3.6 from 3.5.2
|
diff --git a/buildserver/cookbooks/fdroidbuild-general/recipes/default.rb b/buildserver/cookbooks/fdroidbuild-general/recipes/default.rb
index abc1234..def5678 100644
--- a/buildserver/cookbooks/fdroidbuild-general/recipes/default.rb
+++ b/buildserver/cookbooks/fdroidbuild-general/recipes/default.rb
@@ -19,6 +19,11 @@ ... | Add compare-locales via easy_install for Firefox
|
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
@@ -13,3 +13,7 @@
# Add more helper methods to be used by all tests here...
end
+
+class ActionController::TestCase
+ include Devise::TestHelpers
+end
| Add devise helpers to tests
|
diff --git a/Casks/adobe-creative-cloud-cleaner-tool.rb b/Casks/adobe-creative-cloud-cleaner-tool.rb
index abc1234..def5678 100644
--- a/Casks/adobe-creative-cloud-cleaner-tool.rb
+++ b/Casks/adobe-creative-cloud-cleaner-tool.rb
@@ -0,0 +1,12 @@+cask :v1 => 'adobe-creative-cloud-cleaner-tool' do
+ version :latest
+ s... | Add Adobe CC Cleaner Tool
|
diff --git a/Casks/air-video-server-hd.rb b/Casks/air-video-server-hd.rb
index abc1234..def5678 100644
--- a/Casks/air-video-server-hd.rb
+++ b/Casks/air-video-server-hd.rb
@@ -0,0 +1,9 @@+class AirVideoServerHd < Cask
+ version '1.0.15'
+ sha256 '06fa8089a3cc7ba7e6386aff9bab5f5827fc4add47ff4021e00d82b1d7a432b8'
+
+ ... | Add "Air Video Server HD" 1.0.15
|
diff --git a/Casks/yubikey-neo-manager.rb b/Casks/yubikey-neo-manager.rb
index abc1234..def5678 100644
--- a/Casks/yubikey-neo-manager.rb
+++ b/Casks/yubikey-neo-manager.rb
@@ -1,6 +1,6 @@ cask :v1 => 'yubikey-neo-manager' do
- version '1.1.0'
- sha256 '3af16efa1ac02ea4244cf906d8d63d98e4b867b3f4ceaed668d405bd6d2b809e... | Upgrade YubiKey NEO Manager.app to v1.3.0
|
diff --git a/Hydrant.podspec b/Hydrant.podspec
index abc1234..def5678 100644
--- a/Hydrant.podspec
+++ b/Hydrant.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |s|
s.name = "Hydrant"
- s.version = "2.0.0-alpha"
+ s.version = "2.0.0-alpha.2"
s.summary = "A sim... | Bump podspec version to 2.0.0-alpha.2
|
diff --git a/examples/redirect_stdin.rb b/examples/redirect_stdin.rb
index abc1234..def5678 100644
--- a/examples/redirect_stdin.rb
+++ b/examples/redirect_stdin.rb
@@ -1,7 +1,9 @@ # encoding: utf-8
require 'tty-command'
+require 'pathname'
+cli = Pathname.new('examples/cli.rb')
cmd = TTY::Command.new
stdin = ... | Change example to use cli exec
|
diff --git a/app/controllers/users/email_preferences_controller.rb b/app/controllers/users/email_preferences_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/users/email_preferences_controller.rb
+++ b/app/controllers/users/email_preferences_controller.rb
@@ -1,6 +1,6 @@ class Users::EmailPreferencesCo... | Fix cukes, allow email pref update
|
diff --git a/Library/Formula/wakeonlan.rb b/Library/Formula/wakeonlan.rb
index abc1234..def5678 100644
--- a/Library/Formula/wakeonlan.rb
+++ b/Library/Formula/wakeonlan.rb
@@ -7,6 +7,11 @@
def install
system "perl", "Makefile.PL"
+ # Make sure script and manual get installed in Cellar properly
+ inrepla... | Fix to install in Cellar as it should
The current wakeonlan formula causes the script and man
page to get installed directly into /usr/local instead of
into the Cellar like it should, this patch fixes that.
Signed-off-by: Adam Vandenberg <34c2b6407fd5a10249a15d699d40f9ed1782e98c@gmail.com>
|
diff --git a/ferrety_ferret.gemspec b/ferrety_ferret.gemspec
index abc1234..def5678 100644
--- a/ferrety_ferret.gemspec
+++ b/ferrety_ferret.gemspec
@@ -1,5 +1,4 @@ # -*- encoding: utf-8 -*-
-require File.expand_path('../lib/ferrety_ferret/version', __FILE__)
Gem::Specification.new do |gem|
gem.authors = ["... | Remove version library from gemspec
|
diff --git a/0_code_wars/share_prices.rb b/0_code_wars/share_prices.rb
index abc1234..def5678 100644
--- a/0_code_wars/share_prices.rb
+++ b/0_code_wars/share_prices.rb
@@ -0,0 +1,5 @@+# http://www.codewars.com/kata/5603a4dd3d96ef798f000068/
+# --- iteration 1 ---
+def share_price(invested, changes)
+ "%.2f" % changes... | Add code wars (7) - share prices
|
diff --git a/app/api/pushificator/v1.rb b/app/api/pushificator/v1.rb
index abc1234..def5678 100644
--- a/app/api/pushificator/v1.rb
+++ b/app/api/pushificator/v1.rb
@@ -12,6 +12,7 @@ end
helpers do
+
def api_response response
case response
when Integer
@@ -35,6 +36,17 @@ ActionC... | Add current_user to API finded by token |
diff --git a/feedmodifier.rb b/feedmodifier.rb
index abc1234..def5678 100644
--- a/feedmodifier.rb
+++ b/feedmodifier.rb
@@ -2,6 +2,13 @@
def feed(input)
doc = Nokogiri::XML(input){|x| x.noblanks }
+ doc.xpath("//item").each do |item_node|
+ if item_node.xpath("guid").empty?
+ guid_node = Nokogiri::XML::N... | Add guid if none using link content.
|
diff --git a/twingly-url.gemspec b/twingly-url.gemspec
index abc1234..def5678 100644
--- a/twingly-url.gemspec
+++ b/twingly-url.gemspec
@@ -1,5 +1,3 @@-# encoding: utf-8
-
require File.expand_path('../lib/version', __FILE__)
Gem::Specification.new do |s|
| Remove unnecessary magic encoding comment
|
diff --git a/lib/generators/scripturable/templates/scripture_reference.rb b/lib/generators/scripturable/templates/scripture_reference.rb
index abc1234..def5678 100644
--- a/lib/generators/scripturable/templates/scripture_reference.rb
+++ b/lib/generators/scripturable/templates/scripture_reference.rb
@@ -39,6 +39,10 @@ ... | Check to see if scripture reference includes the passed verse
|
diff --git a/db/migrate/20090203101718_add_hashed_path_to_repositories.rb b/db/migrate/20090203101718_add_hashed_path_to_repositories.rb
index abc1234..def5678 100644
--- a/db/migrate/20090203101718_add_hashed_path_to_repositories.rb
+++ b/db/migrate/20090203101718_add_hashed_path_to_repositories.rb
@@ -3,9 +3,11 @@ ... | Make sure the hashed_path is set in the migration
|
diff --git a/core/db/migrate/20160608180751_ensure_store_on_orders.rb b/core/db/migrate/20160608180751_ensure_store_on_orders.rb
index abc1234..def5678 100644
--- a/core/db/migrate/20160608180751_ensure_store_on_orders.rb
+++ b/core/db/migrate/20160608180751_ensure_store_on_orders.rb
@@ -0,0 +1,12 @@+class EnsureStoreO... | Add migration to associate stores with orders.
This does the same job as the existing
solidus:migrations:ensure_store_on_orders:up rake task, but is a
migration so that it is easier to run.
|
diff --git a/spec/system/basic_spec.rb b/spec/system/basic_spec.rb
index abc1234..def5678 100644
--- a/spec/system/basic_spec.rb
+++ b/spec/system/basic_spec.rb
@@ -1,7 +1,7 @@ require 'spec_helper_system'
describe 'basic tests' do
- it 'class should work without errors' do
+ it 'class should work without errors a... | Test for idempotency in spec:system.
|
diff --git a/website-docs/payments/create.rb b/website-docs/payments/create.rb
index abc1234..def5678 100644
--- a/website-docs/payments/create.rb
+++ b/website-docs/payments/create.rb
@@ -4,8 +4,8 @@ payment = Mollie::Payment.create(
amount: { value: '10.0', currency: 'EUR' },
description: 'My first p... | Use snake_case for key names
|
diff --git a/db/migrate/20140610165551_migrate_data_person_to_user.rb b/db/migrate/20140610165551_migrate_data_person_to_user.rb
index abc1234..def5678 100644
--- a/db/migrate/20140610165551_migrate_data_person_to_user.rb
+++ b/db/migrate/20140610165551_migrate_data_person_to_user.rb
@@ -9,7 +9,8 @@
def change
... | Fix migration for person to user migration
|
diff --git a/Support/flog.rb b/Support/flog.rb
index abc1234..def5678 100644
--- a/Support/flog.rb
+++ b/Support/flog.rb
@@ -18,6 +18,8 @@ begin
flog = Flog.new(quiet: true, continue: true)
flog.flog ENV['TM_FILEPATH']
+
+ system ENV['TM_MATE'], "--clear-mark=warning"
flog.each_by_score Flog::... | Clear out marks before running
|
diff --git a/TTGTagCollectionView.podspec b/TTGTagCollectionView.podspec
index abc1234..def5678 100644
--- a/TTGTagCollectionView.podspec
+++ b/TTGTagCollectionView.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |s|
s.name = "TTGTagCollectionView"
- s.version = "2.0.0"
+ s.version = "2.0.1"... | Fix podspec source_files & headers config; Bump version to 2.0.1
|
diff --git a/db/migrate/20170106122600_populate_editions_part_1.rb b/db/migrate/20170106122600_populate_editions_part_1.rb
index abc1234..def5678 100644
--- a/db/migrate/20170106122600_populate_editions_part_1.rb
+++ b/db/migrate/20170106122600_populate_editions_part_1.rb
@@ -1,4 +1,6 @@ class PopulateEditionsPart1 < A... | Change query to not use a transaction
|
diff --git a/lib/deployml/rake/tasks.rb b/lib/deployml/rake/tasks.rb
index abc1234..def5678 100644
--- a/lib/deployml/rake/tasks.rb
+++ b/lib/deployml/rake/tasks.rb
@@ -15,10 +15,10 @@ @project.upload!
end
- desc 'Deploys the project'
task :deploy => :project do
@project.deploy!
end
end
+desc 'D... | Add a description to the 'deploy' task.
|
diff --git a/lib/devise_zxcvbn/model.rb b/lib/devise_zxcvbn/model.rb
index abc1234..def5678 100644
--- a/lib/devise_zxcvbn/model.rb
+++ b/lib/devise_zxcvbn/model.rb
@@ -14,7 +14,12 @@ private
def not_weak_password
- weak_words = [self.email] + DeviseZxcvbn::EmailTokeniser.split(self.email)
+ ... | Add email (and tokenized email parts) to dictionary only when non-nil
|
diff --git a/db/news_seeds.rb b/db/news_seeds.rb
index abc1234..def5678 100644
--- a/db/news_seeds.rb
+++ b/db/news_seeds.rb
@@ -0,0 +1,12 @@+topic = Topic.create!(topic: "News")
+
+# Real / verified accounts
+cnn = TwitterHandle.create!(topic: topic, twitter_handle: "cnnbrk")
+bbc = TwitterHandle.create!(topic: topic,... | Add real account and parody account for News topic listings
- Create one Topic "News"
- Add real and fake accounts for CNN, BBC Sports, and The Onion
- Each account listing is linked to the "News" topic
|
diff --git a/src/spec/gocli/integration/nats/nats_server_ca_issues_spec.rb b/src/spec/gocli/integration/nats/nats_server_ca_issues_spec.rb
index abc1234..def5678 100644
--- a/src/spec/gocli/integration/nats/nats_server_ca_issues_spec.rb
+++ b/src/spec/gocli/integration/nats/nats_server_ca_issues_spec.rb
@@ -1,18 +1,18 ... | Revert "A temp commit to test random failures"
This reverts commit 0331336e77a919cfd6c45826eab143a80fa1e2c3.
Signed-off-by: Andrew Su <6d7ded18778d8f6854a418786d073050217e1502@pivotal.io>
|
diff --git a/spec/components/renalware/problems/summary_component_spec.rb b/spec/components/renalware/problems/summary_component_spec.rb
index abc1234..def5678 100644
--- a/spec/components/renalware/problems/summary_component_spec.rb
+++ b/spec/components/renalware/problems/summary_component_spec.rb
@@ -0,0 +1,83 @@+# ... | Add caching specs for Problems::SummaryComponent
|
diff --git a/app/helpers/groups_helper.rb b/app/helpers/groups_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/groups_helper.rb
+++ b/app/helpers/groups_helper.rb
@@ -4,7 +4,7 @@ if person == nil
true
else
- Membership.pluck(:group_id).include?(group.id) == false
+ !person.member_of?... | Use member_of for helper methods |
diff --git a/Whisper.podspec b/Whisper.podspec
index abc1234..def5678 100644
--- a/Whisper.podspec
+++ b/Whisper.podspec
@@ -1,7 +1,7 @@ Pod::Spec.new do |s|
s.name = "Whisper"
s.summary = "Whisper is a component that will make the task of display messages and in-app notifications simple."
- ... | Update podspec with new version |
diff --git a/services/build_runner_service.rb b/services/build_runner_service.rb
index abc1234..def5678 100644
--- a/services/build_runner_service.rb
+++ b/services/build_runner_service.rb
@@ -16,6 +16,7 @@ self.build_runners = []
end
+ # @return TaskQueue::Task
def add_build_runner(build_runner: n... | Return the raw TaskQueue::Task when using `add_build_runner`
|
diff --git a/app/models/token_issuance.rb b/app/models/token_issuance.rb
index abc1234..def5678 100644
--- a/app/models/token_issuance.rb
+++ b/app/models/token_issuance.rb
@@ -20,8 +20,12 @@ # Kick _everyone_ off the broker. The clients with the revoked token will
# not be able to reconnect.
def maybe_... | Add timeout to eviction code
|
diff --git a/gem_config.rb b/gem_config.rb
index abc1234..def5678 100644
--- a/gem_config.rb
+++ b/gem_config.rb
@@ -3,8 +3,13 @@
# The gem command calls us with some extra arguments we don't use.
# Filter out anything that doesn't look like a configure option.
+OPTIONS = %w{ bindir sbindir libexecdir datadir s... | Discard options that are not valid for the configure script
|
diff --git a/lib/tasks/effective_email_templates/import_default_views.rake b/lib/tasks/effective_email_templates/import_default_views.rake
index abc1234..def5678 100644
--- a/lib/tasks/effective_email_templates/import_default_views.rake
+++ b/lib/tasks/effective_email_templates/import_default_views.rake
@@ -6,6 +6,14 @... | Add prompt to effective_email_templates:regenerate_default_views rake task
|
diff --git a/lib/generators/minitest/feature/feature_generator.rb b/lib/generators/minitest/feature/feature_generator.rb
index abc1234..def5678 100644
--- a/lib/generators/minitest/feature/feature_generator.rb
+++ b/lib/generators/minitest/feature/feature_generator.rb
@@ -9,7 +9,7 @@ @_minitest_capybara_source_... | Fix bug in spec configuration
The spec flag should have been switched to true. Oops.
|
diff --git a/lib/vagrant-snap/providers/virtualbox/driver/base.rb b/lib/vagrant-snap/providers/virtualbox/driver/base.rb
index abc1234..def5678 100644
--- a/lib/vagrant-snap/providers/virtualbox/driver/base.rb
+++ b/lib/vagrant-snap/providers/virtualbox/driver/base.rb
@@ -7,7 +7,7 @@ class Base
... | Make snapshot name more unique
|
diff --git a/jobs/nagios.rb b/jobs/nagios.rb
index abc1234..def5678 100644
--- a/jobs/nagios.rb
+++ b/jobs/nagios.rb
@@ -28,11 +28,17 @@ end
def criticals
- api.service_status(service_status_types: :critical).reject{ |s| s.acknowledged }
+ services(:critical)
end
def warnings
- api... | Hide acknowledged Nagios warnings by default
|
diff --git a/app/models/proposition.rb b/app/models/proposition.rb
index abc1234..def5678 100644
--- a/app/models/proposition.rb
+++ b/app/models/proposition.rb
@@ -7,7 +7,7 @@ alias_method :delivered_by, :representative
validates_presence_of :body
- validates_uniqueness_of :external_id
+ validates_uniqueness_... | Allow nil external_id on Proposition.
|
diff --git a/lib/promise.rb b/lib/promise.rb
index abc1234..def5678 100644
--- a/lib/promise.rb
+++ b/lib/promise.rb
@@ -18,15 +18,15 @@ end
def pending?
- @state == :pending
+ @state.equal?(:pending)
end
def fulfilled?
- @state == :fulfilled
+ @state.equal?(:fulfilled)
end
def reject... | Kill mutations in state methods
|
diff --git a/lib/rubulex.rb b/lib/rubulex.rb
index abc1234..def5678 100644
--- a/lib/rubulex.rb
+++ b/lib/rubulex.rb
@@ -2,7 +2,7 @@ require "sinatra"
require "sinatra/json"
require "slim"
-require "sass"
+require "sassc"
require "rubulex/version"
require "rubulex/app"
| Use sassc instead of sass
|
diff --git a/app/controllers/api/articles_controller.rb b/app/controllers/api/articles_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/articles_controller.rb
+++ b/app/controllers/api/articles_controller.rb
@@ -9,7 +9,7 @@ article = Article.new(article_params)
if article.valid?
art... | Use article in the params again and fix the status response
|
diff --git a/lib/generators/templates/migrations/create_mtg_cards.rb b/lib/generators/templates/migrations/create_mtg_cards.rb
index abc1234..def5678 100644
--- a/lib/generators/templates/migrations/create_mtg_cards.rb
+++ b/lib/generators/templates/migrations/create_mtg_cards.rb
@@ -7,8 +7,8 @@ t.string :gat... | Change oracle_text and flavor_text to be db column type 'text' instead of 'string'
|
diff --git a/spec/controllers/lottery_spec.rb b/spec/controllers/lottery_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/lottery_spec.rb
+++ b/spec/controllers/lottery_spec.rb
@@ -2,12 +2,14 @@ require 'rails_helper'
include AssignmentHelper
-describe LotteryController do
- describe "#run_intelligent_b... | Test for succesful webservice call added |
diff --git a/app/jobs/generate_registrations_xls_job.rb b/app/jobs/generate_registrations_xls_job.rb
index abc1234..def5678 100644
--- a/app/jobs/generate_registrations_xls_job.rb
+++ b/app/jobs/generate_registrations_xls_job.rb
@@ -11,9 +11,9 @@ xls = Spreadsheet::Workbook.new
sheet = xls.create_worksheet
-... | Add created_at to xls export
|
diff --git a/hutch.gemspec b/hutch.gemspec
index abc1234..def5678 100644
--- a/hutch.gemspec
+++ b/hutch.gemspec
@@ -10,7 +10,7 @@ end
gem.add_runtime_dependency 'carrot-top', '~> 0.0.7'
gem.add_runtime_dependency 'multi_json', '~> 1.12'
- gem.add_runtime_dependency 'activesupport', '>= 4.2', '< 6'
+ gem.add_... | Update activesupport requirement from >= 4.2, < 6 to >= 4.2, < 7
Updates the requirements on [activesupport](https://github.com/rails/rails) to permit the latest version.
- [Release notes](https://github.com/rails/rails/releases)
- [Changelog](https://github.com/rails/rails/blob/v6.0.0/activesupport/CHANGELOG.md)
- [C... |
diff --git a/app/helpers/stacks_helper.rb b/app/helpers/stacks_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/stacks_helper.rb
+++ b/app/helpers/stacks_helper.rb
@@ -2,10 +2,12 @@
def render_commit_message(commit)
url = commit.pull_request_url || github_commit_url(commit.stack.repo_owner, commit.sta... | Fix commit message HTML escaping
Fixes #76
|
diff --git a/app/views/destinations/_show.json.jbuilder b/app/views/destinations/_show.json.jbuilder
index abc1234..def5678 100644
--- a/app/views/destinations/_show.json.jbuilder
+++ b/app/views/destinations/_show.json.jbuilder
@@ -1,4 +1,6 @@-json.extract! destination, :id, :name, :street, :postalcode, :city, :lat, :... | Fix display window format on destination list
|
diff --git a/app/policies/place_policy.rb b/app/policies/place_policy.rb
index abc1234..def5678 100644
--- a/app/policies/place_policy.rb
+++ b/app/policies/place_policy.rb
@@ -1,7 +1,7 @@ class PlacePolicy < ApplicationPolicy
class Scope < Scope
def resolve
- if user.admin?
+ if user&.admin?
... | Check if user is signed
|
diff --git a/app/queries/get_linkables.rb b/app/queries/get_linkables.rb
index abc1234..def5678 100644
--- a/app/queries/get_linkables.rb
+++ b/app/queries/get_linkables.rb
@@ -7,14 +7,7 @@ end
def call
- latest_updated_at = Edition
- .where(document_type: [document_type, "placeholder_#{document_... | Use two queries to get latest_updated_at for linkables
Querying on a single document_type yields a significantly faster result
than two, so two queries beat one.
|
diff --git a/libsyn.gemspec b/libsyn.gemspec
index abc1234..def5678 100644
--- a/libsyn.gemspec
+++ b/libsyn.gemspec
@@ -21,4 +21,5 @@ spec.add_development_dependency "bundler", "~> 1.6"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "vcr", "~> 2.9.2"
+ spec.add_development_d... | Add pry as development dependency
|
diff --git a/app/workers/entry_deleter.rb b/app/workers/entry_deleter.rb
index abc1234..def5678 100644
--- a/app/workers/entry_deleter.rb
+++ b/app/workers/entry_deleter.rb
@@ -7,12 +7,22 @@ entry_count = Entry.where(feed_id: feed_id).count
if entry_count > entry_limit
entries_to_keep = Entry.where(feed... | Remove old public_ids from redis.
|
diff --git a/lib/helios/cylon_effect.rb b/lib/helios/cylon_effect.rb
index abc1234..def5678 100644
--- a/lib/helios/cylon_effect.rb
+++ b/lib/helios/cylon_effect.rb
@@ -27,7 +27,6 @@ end
def pause
- sleep 0.1
end
def set_light(index, value)
| Remove sleep to speed up effect
|
diff --git a/lib/ice_cube/deprecated.rb b/lib/ice_cube/deprecated.rb
index abc1234..def5678 100644
--- a/lib/ice_cube/deprecated.rb
+++ b/lib/ice_cube/deprecated.rb
@@ -7,7 +7,7 @@ def deprecated_alias(name, replacement)
# Create a wrapped version
define_method(name) do |*args, &block|
- warn "... | Update deprecation messages to print caller on own line
|
diff --git a/bbq-rspec/lib/bbq/rspec.rb b/bbq-rspec/lib/bbq/rspec.rb
index abc1234..def5678 100644
--- a/bbq-rspec/lib/bbq/rspec.rb
+++ b/bbq-rspec/lib/bbq/rspec.rb
@@ -27,7 +27,11 @@ end
::RSpec.configure do |config|
- config.include Feature, :type => :acceptance, :example_group => {:file_path => %r{sp... | Fix deprecation warning for RSpec 3
|
diff --git a/app/controllers/errors_controller.rb b/app/controllers/errors_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/errors_controller.rb
+++ b/app/controllers/errors_controller.rb
@@ -2,7 +2,7 @@ skip_before_action :authenticate_user!, raise: false
def show
- render status: status, te... | Fix dynamic error rendering for production
* Explicitly specify to render html template
|
diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/search_controller.rb
+++ b/app/controllers/search_controller.rb
@@ -5,7 +5,7 @@ page = params.fetch(:page, 1)
query = params[:query]
- @results = DocumentcloudSearch... | Make the actual search qith the query
|
diff --git a/opsworks_custom_env/recipes/write_config_from_opsworks_env.rb b/opsworks_custom_env/recipes/write_config_from_opsworks_env.rb
index abc1234..def5678 100644
--- a/opsworks_custom_env/recipes/write_config_from_opsworks_env.rb
+++ b/opsworks_custom_env/recipes/write_config_from_opsworks_env.rb
@@ -0,0 +1,13 @... | Set up configuration file from opsworks env variables
|
diff --git a/lib/magnum/payload/base.rb b/lib/magnum/payload/base.rb
index abc1234..def5678 100644
--- a/lib/magnum/payload/base.rb
+++ b/lib/magnum/payload/base.rb
@@ -47,12 +47,16 @@ private
def parse_payload(payload)
- if payload.kind_of?(String)
- Hashr.new(MultiJson.decode(payload))
... | Raise ParseError on invalid json
|
diff --git a/features/support/env.rb b/features/support/env.rb
index abc1234..def5678 100644
--- a/features/support/env.rb
+++ b/features/support/env.rb
@@ -2,11 +2,9 @@ ENV["RAILS_ENV"] = "test"
require File.expand_path(File.dirname(__FILE__) + '/../../config/environment')
require 'cucumber/rails/world'
-require 'cu... | Fix cucumber configuration for integrity
|
diff --git a/rack-authenticate.gemspec b/rack-authenticate.gemspec
index abc1234..def5678 100644
--- a/rack-authenticate.gemspec
+++ b/rack-authenticate.gemspec
@@ -21,5 +21,5 @@ s.add_dependency 'ruby-hmac', '~> 0.4.0'
s.add_dependency 'rack', '~> 1.3.5'
s.add_development_dependency 'rspec', '~> 2.8.0.rc1'
- ... | Use rack-test instead of sinatra. |
diff --git a/routes/stars/get_images.rb b/routes/stars/get_images.rb
index abc1234..def5678 100644
--- a/routes/stars/get_images.rb
+++ b/routes/stars/get_images.rb
@@ -27,6 +27,10 @@
images = Starsgcsimage.all(limit: 10, order: [:created_at.desc]) -
Starsgcsimage.all(Starsgcsimage.starsimagevote.st... | Remove downvotes and greatvotes for next images
|
diff --git a/lib/clipboard/cygwin.rb b/lib/clipboard/cygwin.rb
index abc1234..def5678 100644
--- a/lib/clipboard/cygwin.rb
+++ b/lib/clipboard/cygwin.rb
@@ -5,11 +5,11 @@ extend self
def paste(_ = nil)
- File.read("/dev/clipboard")
+ ::File.read("/dev/clipboard")
end
def copy(data)
- ... | Use system File class instead of Clipboard::File.
|
diff --git a/app/models/concerns/with_language.rb b/app/models/concerns/with_language.rb
index abc1234..def5678 100644
--- a/app/models/concerns/with_language.rb
+++ b/app/models/concerns/with_language.rb
@@ -7,7 +7,7 @@ scope :with_language, -> (language) {
if language
where(
- "languages ... | Fix issue with referencing correct language column
|
diff --git a/app/serializers/author_serializer.rb b/app/serializers/author_serializer.rb
index abc1234..def5678 100644
--- a/app/serializers/author_serializer.rb
+++ b/app/serializers/author_serializer.rb
@@ -1,9 +1,3 @@ class AuthorSerializer < ActiveModel::Serializer
- attributes :id, :name, :avatar_url, :descriptio... | Update author serializer to reflect removal of Paperclip
|
diff --git a/lib/rtorctl.rb b/lib/rtorctl.rb
index abc1234..def5678 100644
--- a/lib/rtorctl.rb
+++ b/lib/rtorctl.rb
@@ -0,0 +1,52 @@+#!/usr/bin/env ruby
+require 'bundler/setup'
+require 'citrus'
+require 'socket'
+
+# Load all of our grammars.
+def load_grammars()
+ # This is a really long way of saying ../grammars/.... | Add an empty shell of an RTorCtl::RTorCtl.
|
diff --git a/import_o_matic.gemspec b/import_o_matic.gemspec
index abc1234..def5678 100644
--- a/import_o_matic.gemspec
+++ b/import_o_matic.gemspec
@@ -15,7 +15,7 @@ s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.rdoc"]
s.test_files = Dir["test/**/*"]
- s.add_dependency "rails", "... | Allow usage with Rails 4.x and 5.x
|
diff --git a/core/process/abort_spec.rb b/core/process/abort_spec.rb
index abc1234..def5678 100644
--- a/core/process/abort_spec.rb
+++ b/core/process/abort_spec.rb
@@ -8,6 +8,16 @@
after :each do
rm_r @name
+ end
+
+ it "raises a SystemExit with the given message" do
+ lambda do
+ begin
+ abo... | Add spec for abort setting the message of the SystemExit exception
|
diff --git a/recipes/amqp-publisher.rb b/recipes/amqp-publisher.rb
index abc1234..def5678 100644
--- a/recipes/amqp-publisher.rb
+++ b/recipes/amqp-publisher.rb
@@ -1,5 +1,7 @@ remote_file "#{node['gerrit']['install_dir']}/plugins/rabbitmq.jar" do
- source "https://github.com/TYPO3-infrastructure/gerrit-rabbitmq-plugi... | Use temporary URL for rabbitmq plugin download
|
diff --git a/pakyow-presenter/spec/unit/app/resource_bindings_spec.rb b/pakyow-presenter/spec/unit/app/resource_bindings_spec.rb
index abc1234..def5678 100644
--- a/pakyow-presenter/spec/unit/app/resource_bindings_spec.rb
+++ b/pakyow-presenter/spec/unit/app/resource_bindings_spec.rb
@@ -0,0 +1,76 @@+require_relative '... | Add test for resource bindings
|
diff --git a/spec/dummy/spec/features/middleware_integration_spec.rb b/spec/dummy/spec/features/middleware_integration_spec.rb
index abc1234..def5678 100644
--- a/spec/dummy/spec/features/middleware_integration_spec.rb
+++ b/spec/dummy/spec/features/middleware_integration_spec.rb
@@ -3,6 +3,7 @@ feature 'Middleware int... | Add links to possibly related stuff
|
diff --git a/spec/unit/data_mapper/mapper/class_methods/from_spec.rb b/spec/unit/data_mapper/mapper/class_methods/from_spec.rb
index abc1234..def5678 100644
--- a/spec/unit/data_mapper/mapper/class_methods/from_spec.rb
+++ b/spec/unit/data_mapper/mapper/class_methods/from_spec.rb
@@ -4,17 +4,15 @@ subject { described... | Clean up spec for Mapper.from
|
diff --git a/lib/twat/endpoints/base.rb b/lib/twat/endpoints/base.rb
index abc1234..def5678 100644
--- a/lib/twat/endpoints/base.rb
+++ b/lib/twat/endpoints/base.rb
@@ -6,7 +6,7 @@ def authorize_account(name)
oauth_conf = oauth_options.merge ({ :site => url })
- oauth = OAuth::Consumer.new( *[*consume... | Remove potentially broken implementation dependant ordering
|
diff --git a/example/foobar.rb b/example/foobar.rb
index abc1234..def5678 100644
--- a/example/foobar.rb
+++ b/example/foobar.rb
@@ -17,6 +17,77 @@ tag 'Service', 'foobar'
tag 'Stack', stack.cloud
end
+
+ #
+ # Create an instance with encrypted EBS mount point
+ # and an ephemeral... | Add more documentation for ec2_instance
|
diff --git a/breadcrumbs_on_rails.gemspec b/breadcrumbs_on_rails.gemspec
index abc1234..def5678 100644
--- a/breadcrumbs_on_rails.gemspec
+++ b/breadcrumbs_on_rails.gemspec
@@ -18,4 +18,6 @@ spec.files = `git ls-files`.split("\n")
spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
... | Add Rails as explicit dependency
Closed GH-109
|
diff --git a/features/support/env.rb b/features/support/env.rb
index abc1234..def5678 100644
--- a/features/support/env.rb
+++ b/features/support/env.rb
@@ -21,3 +21,7 @@ end
end
+Before do
+ @aruba_timeout_seconds = 10
+end
+
| Increase aruba timeout from default of 3 seconds to 10.
cucumber.feature takes longer than 3 seconds.
|
diff --git a/lib/krikri.rb b/lib/krikri.rb
index abc1234..def5678 100644
--- a/lib/krikri.rb
+++ b/lib/krikri.rb
@@ -19,27 +19,5 @@ 'krikri/entity_behaviors/aggregation_entity_behavior'
autoload :OriginalRecordEntityBehavior,
'krikri/entity_behaviors/original_record_entity_behavior'
+
end
-
-... | Revert "Monkeypatch parser Scanner to catch long terminals"
This reverts commit cd2caaa294643b2684ae3cb67b19f147de0b41e1.
|
diff --git a/lib/thinking_sphinx/active_record/callbacks/delta_callbacks.rb b/lib/thinking_sphinx/active_record/callbacks/delta_callbacks.rb
index abc1234..def5678 100644
--- a/lib/thinking_sphinx/active_record/callbacks/delta_callbacks.rb
+++ b/lib/thinking_sphinx/active_record/callbacks/delta_callbacks.rb
@@ -16,9 +1... | Check for deltas at a higher level first.
Only if deltas are enabled and exist for this model do we actually care if there are changes. This does mean things will be slightly slower on the first call (as indices are loaded to the point of knowing if deltas are in play), but that’ll be cached for future calls.
|
diff --git a/app/controllers/admin/process_version_jobs_controller.rb b/app/controllers/admin/process_version_jobs_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/admin/process_version_jobs_controller.rb
+++ b/app/controllers/admin/process_version_jobs_controller.rb
@@ -31,7 +31,7 @@ end
def al... | Fix individual photo version processing
|
diff --git a/db/migrate/20190221195501_change_notification_id_to_bigint.rb b/db/migrate/20190221195501_change_notification_id_to_bigint.rb
index abc1234..def5678 100644
--- a/db/migrate/20190221195501_change_notification_id_to_bigint.rb
+++ b/db/migrate/20190221195501_change_notification_id_to_bigint.rb
@@ -0,0 +1,9 @@... | Update notification_id primary key to bigint
|
diff --git a/lib/strenv.rb b/lib/strenv.rb
index abc1234..def5678 100644
--- a/lib/strenv.rb
+++ b/lib/strenv.rb
@@ -25,6 +25,10 @@ # STRICT_ENV.with_protected_env { example.run }
# end
# end
+ #
+ # Note that this may play up with your editor features if it mutates environment variables
+ # bas... | Add a note on TM_ envvars
|
diff --git a/app/jobs/list_cleanup_job.rb b/app/jobs/list_cleanup_job.rb
index abc1234..def5678 100644
--- a/app/jobs/list_cleanup_job.rb
+++ b/app/jobs/list_cleanup_job.rb
@@ -4,9 +4,9 @@ # rescue_from(Gibbon::MailChimpError) do |exception|
# end
- def perform(lists)
+ def perform(list_uids = [])
gibbon_... | Modify list clean up job
|
diff --git a/chef/roles/flyway-mysql.rb b/chef/roles/flyway-mysql.rb
index abc1234..def5678 100644
--- a/chef/roles/flyway-mysql.rb
+++ b/chef/roles/flyway-mysql.rb
@@ -1,17 +1,19 @@ name "flyway-mysql"
description "flyway mysql demo"
+override_attributes(
+ :mysql => {
+ :server_root_password => "password",
+ :ser... | Call override attributes before setting run list, attributes for mysql weren't taking precedence
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.