diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/lib/webpay/entity.rb b/lib/webpay/entity.rb index abc1234..def5678 100644 --- a/lib/webpay/entity.rb +++ b/lib/webpay/entity.rb @@ -41,6 +41,7 @@ raise "unexpected object" if attributes['object'] != @attributes['object'] new_object = ResponseConverter.new.convert(attributes) @attributes...
Update methods should respond itself
diff --git a/lib/tty.rb b/lib/tty.rb index abc1234..def5678 100644 --- a/lib/tty.rb +++ b/lib/tty.rb @@ -35,6 +35,15 @@ # Raised when the argument type is different from expected class TypeError < ArgumentError; end + # Raised when the required argument is not supplied + class ArgumentRequired < ArgumentError;...
Add specific argument error types.
diff --git a/tasks/db/indexes.rake b/tasks/db/indexes.rake index abc1234..def5678 100644 --- a/tasks/db/indexes.rake +++ b/tasks/db/indexes.rake @@ -14,7 +14,7 @@ end end puts "Foreign Keys:" - indexes.each do |table, columns| + indexes.sort.each do |table, columns| puts column...
Sort the results by table name before printing
diff --git a/yardstick-client.gemspec b/yardstick-client.gemspec index abc1234..def5678 100644 --- a/yardstick-client.gemspec +++ b/yardstick-client.gemspec @@ -8,8 +8,8 @@ gem.version = Yardstick::Client::VERSION gem.authors = ["Jason Wall", "Daniel Huckstep"] gem.email = ["danielh@getyards...
Make gemspec valid with somewhat real descriptions
diff --git a/deviantart.gemspec b/deviantart.gemspec index abc1234..def5678 100644 --- a/deviantart.gemspec +++ b/deviantart.gemspec @@ -14,7 +14,7 @@ spec.homepage = "https://github.com/aycabta/deviantart" spec.license = "MIT" - spec.files = `git ls-files -z`.split("\x0").reject { |f| f.matc...
Remove spec dir what is rejected in .gemspec
diff --git a/config/initializers/omniauth.rb b/config/initializers/omniauth.rb index abc1234..def5678 100644 --- a/config/initializers/omniauth.rb +++ b/config/initializers/omniauth.rb @@ -3,6 +3,7 @@ oauth_config = OpenWebslides::Configuration.oauth2 before_callback_phase do |env| + # TODO: verify state ...
Add TODO for session state checking
diff --git a/config/initializers/sunlight.rb b/config/initializers/sunlight.rb index abc1234..def5678 100644 --- a/config/initializers/sunlight.rb +++ b/config/initializers/sunlight.rb @@ -0,0 +1,5 @@+if defined?(SETTINGS) && key = SETTINGS[:sunlight_api_key] + Sunlight.api_key = key +else + warn "No Sunlight API key...
Add initializer for Sunlight API key
diff --git a/spec/root_spec.rb b/spec/root_spec.rb index abc1234..def5678 100644 --- a/spec/root_spec.rb +++ b/spec/root_spec.rb @@ -5,11 +5,19 @@ root_page.goto end - it 'should have posts that contain text' do + def check_posts posts = root_page.posts posts.each do |post| puts "Data post I...
Add in root page title test Also DRY up check posts portion of the tests
diff --git a/lib/rubocop/cop/rails/output.rb b/lib/rubocop/cop/rails/output.rb index abc1234..def5678 100644 --- a/lib/rubocop/cop/rails/output.rb +++ b/lib/rubocop/cop/rails/output.rb @@ -6,7 +6,7 @@ # This cop checks for the use of output calls like puts and print class Output < Cop MSG = 'Do no...
Fix the possessive spelling of Rails's
diff --git a/lib/selectivizr/rails/engine.rb b/lib/selectivizr/rails/engine.rb index abc1234..def5678 100644 --- a/lib/selectivizr/rails/engine.rb +++ b/lib/selectivizr/rails/engine.rb @@ -1,10 +1,8 @@ module Selectivizr module Rails class Engine < ::Rails::Engine - if Rails.version >= '3.1' - initi...
Remove the rails 3.1 version check. There is really no reason to use this gem unless you're already on 3.1, so don't bother checking.
diff --git a/lib/tasks/platform6_update.rake b/lib/tasks/platform6_update.rake index abc1234..def5678 100644 --- a/lib/tasks/platform6_update.rake +++ b/lib/tasks/platform6_update.rake @@ -0,0 +1,34 @@+namespace :platform6 do + desc "Update Platform6 stuff" + task :update => :environment do + require 'rpm' + re...
Add rake task for update Platform6
diff --git a/0_code_wars/parts_of_a_list.rb b/0_code_wars/parts_of_a_list.rb index abc1234..def5678 100644 --- a/0_code_wars/parts_of_a_list.rb +++ b/0_code_wars/parts_of_a_list.rb @@ -0,0 +1,5 @@+# http://www.codewars.com/kata/56f3a1e899b386da78000732/ +# --- iteration 1 --- +def partlist(arr) + (0..arr.size-2).map ...
Add code wars (7) - parts of a list
diff --git a/lib/abilities/extensions/action_controller/base.rb b/lib/abilities/extensions/action_controller/base.rb index abc1234..def5678 100644 --- a/lib/abilities/extensions/action_controller/base.rb +++ b/lib/abilities/extensions/action_controller/base.rb @@ -10,7 +10,7 @@ %w(can? cannot?).each do |name|...
Use helper instead of instance variable
diff --git a/config/initializers/redis.rb b/config/initializers/redis.rb index abc1234..def5678 100644 --- a/config/initializers/redis.rb +++ b/config/initializers/redis.rb @@ -13,5 +13,5 @@ $redis = Redis.new(redis_options) -# Minegems::Rack::SubdomainRouter.ensure_consistent_lookup! -# Minegems::Rack::SubdomainRo...
Revert "Temporary disable subdomains constraints" This reverts commit 935f76632d774bc9b0ed368948c7b10266bb8397.
diff --git a/myaso.gemspec b/myaso.gemspec index abc1234..def5678 100644 --- a/myaso.gemspec +++ b/myaso.gemspec @@ -12,7 +12,7 @@ spec.description = 'Myaso is a morphological analysis library in Ruby.' spec.summary = 'Myaso is a morphological analysis and synthesis ' \ 'library in ...
Update the homepage URI [ci skip]
diff --git a/mrblib/mrubyjs.rb b/mrblib/mrubyjs.rb index abc1234..def5678 100644 --- a/mrblib/mrubyjs.rb +++ b/mrblib/mrubyjs.rb @@ -19,9 +19,17 @@ end # For methods that do not conflict with Ruby, we can directly - # call them + # call them or fetch them, the following rules are used: + # 1. If arg...
Add [] syntax for JS functions
diff --git a/rails_event_store/lib/rails_event_store/active_job_dispatcher.rb b/rails_event_store/lib/rails_event_store/active_job_dispatcher.rb index abc1234..def5678 100644 --- a/rails_event_store/lib/rails_event_store/active_job_dispatcher.rb +++ b/rails_event_store/lib/rails_event_store/active_job_dispatcher.rb @@ ...
Use serialized_event in ActiveJob Dispatcher
diff --git a/db/migrate/20120726133325_copy_isbn_from_publication_to_attachment.rb b/db/migrate/20120726133325_copy_isbn_from_publication_to_attachment.rb index abc1234..def5678 100644 --- a/db/migrate/20120726133325_copy_isbn_from_publication_to_attachment.rb +++ b/db/migrate/20120726133325_copy_isbn_from_publication_...
Update the migration that copies ISBNs to attachments. This migration has already run in preview but not yet in production, which is why I'm happy to update it.
diff --git a/puppet-lint-no_cron_resources-check.gemspec b/puppet-lint-no_cron_resources-check.gemspec index abc1234..def5678 100644 --- a/puppet-lint-no_cron_resources-check.gemspec +++ b/puppet-lint-no_cron_resources-check.gemspec @@ -21,7 +21,7 @@ spec.add_development_dependency 'rspec', '~> 3.9.0' spec.add_dev...
Update rubocop requirement from ~> 0.82.0 to ~> 0.83.0 Updates the requirements on [rubocop](https://github.com/rubocop-hq/rubocop) to permit the latest version. - [Release notes](https://github.com/rubocop-hq/rubocop/releases) - [Changelog](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md) - [Commits](h...
diff --git a/lib/common.rb b/lib/common.rb index abc1234..def5678 100644 --- a/lib/common.rb +++ b/lib/common.rb @@ -0,0 +1,20 @@+require 'socket' +require 'pp' + +class Common + # http://hibberttech.blogspot.fr/2013/05/ruby-check-if-port-is-open.html + def checkPortIsOpen?(ip, port, timeout) + start_time = Time.n...
Add function for check timeout
diff --git a/railties/test/rails_info_controller_test.rb b/railties/test/rails_info_controller_test.rb index abc1234..def5678 100644 --- a/railties/test/rails_info_controller_test.rb +++ b/railties/test/rails_info_controller_test.rb @@ -50,7 +50,6 @@ test "info controller renders with routes" do get :routes - ...
Fix failing test in railties Related to the HTML route inspector changes: ae68fc3864e99ab43c18fd12577744e1583f6b64
diff --git a/lib/values.rb b/lib/values.rb index abc1234..def5678 100644 --- a/lib/values.rb +++ b/lib/values.rb @@ -1,6 +1,6 @@ class Value def self.new(*fields) - return Class.new do + Class.new do attr_reader *fields define_method(:initialize) do |*values| @@ -32,7 +32,7 @@ end ...
Remove unnecessary uses of return
diff --git a/Casks/graphicconverter.rb b/Casks/graphicconverter.rb index abc1234..def5678 100644 --- a/Casks/graphicconverter.rb +++ b/Casks/graphicconverter.rb @@ -2,7 +2,7 @@ version '9.2098' sha256 'ae584e3e4d508eb4a6d99e8caa234466d0e88108465486ddd45cd641fc7d24df' - # lemkesoft.org was verified as official w...
Fix `url` stanza comment for GraphicConverter.
diff --git a/Casks/thunderbird-beta.rb b/Casks/thunderbird-beta.rb index abc1234..def5678 100644 --- a/Casks/thunderbird-beta.rb +++ b/Casks/thunderbird-beta.rb @@ -1,6 +1,6 @@ cask :v1 => 'thunderbird-beta' do - version '34.0b1' - sha256 '7f6025c689633e893203490f11504b4790c46eca88393d7ab678b5405b8a8acb' + version '...
Upgrade Thunderbird Beta to 37.0b1 (from 34.0b1)
diff --git a/core/thread/shared/wakeup.rb b/core/thread/shared/wakeup.rb index abc1234..def5678 100644 --- a/core/thread/shared/wakeup.rb +++ b/core/thread/shared/wakeup.rb @@ -21,12 +21,12 @@ exit_loop = true - Thread.pass while t.status and t.status != "sleep" + 10.times { sleep 0.1 if t.status and t.st...
Add limit to avoid accidental infinite loop.
diff --git a/Casks/android-studio-canary.rb b/Casks/android-studio-canary.rb index abc1234..def5678 100644 --- a/Casks/android-studio-canary.rb +++ b/Casks/android-studio-canary.rb @@ -0,0 +1,14 @@+class AndroidStudioCanary < Cask + version '0.8.13' + sha256 '8718a91fead9d90e24272d39a9140b131c2c411d38d1e26dc825cd0c5f...
Add Canary track to Android Studio cask
diff --git a/email_formatter.rb b/email_formatter.rb index abc1234..def5678 100644 --- a/email_formatter.rb +++ b/email_formatter.rb @@ -23,8 +23,7 @@ body_raw = <<BODY # Branch #{GitInfo.branch_name} -#{!target_branch_is_master ? "\n# Target branch\n" : ''} -#{special ? "\n# Deploy instructions\n1. \n" : ''} +#{...
Fix formatting of conditional email body text If the user sets the target branch to master and considers the deploy request a non-special one, then this would result in two empty lines after the line with the name of the current branch. If none of the two trigger, then there should only be one blank line after the br...
diff --git a/lib/craigslister/scraper.rb b/lib/craigslister/scraper.rb index abc1234..def5678 100644 --- a/lib/craigslister/scraper.rb +++ b/lib/craigslister/scraper.rb @@ -1,4 +1,4 @@-# Houses all higher level scraping logic +# Scrapes links and feeds them to PostScraper class Scraper def initialize(url, base_url)...
Add more descriptive comment for Scraper
diff --git a/lib/flatware/sink/client.rb b/lib/flatware/sink/client.rb index abc1234..def5678 100644 --- a/lib/flatware/sink/client.rb +++ b/lib/flatware/sink/client.rb @@ -22,7 +22,7 @@ private def push(message) - if die.recv(false) == 'seppuku' + if die.recv(block: false) == 'seppuku' ...
Use named arguments for non-blocking recv
diff --git a/lib/gold_record/fixtures.rb b/lib/gold_record/fixtures.rb index abc1234..def5678 100644 --- a/lib/gold_record/fixtures.rb +++ b/lib/gold_record/fixtures.rb @@ -1,10 +1,13 @@-# Replace Fixtures.identify for binary UUIDs. module GoldRecord module Fixtures def self.included(base) base.class_ev...
Change Fixtures.identify to mimic MySQL’s binary(16) representation of integer input.
diff --git a/lib/rabl-rails/responder.rb b/lib/rabl-rails/responder.rb index abc1234..def5678 100644 --- a/lib/rabl-rails/responder.rb +++ b/lib/rabl-rails/responder.rb @@ -36,7 +36,7 @@ options[:prefixes] = controller._prefixes options[:template] ||= template - controller.default_render optio...
Remove location from response by default
diff --git a/lib/tasks/data_hygiene.rake b/lib/tasks/data_hygiene.rake index abc1234..def5678 100644 --- a/lib/tasks/data_hygiene.rake +++ b/lib/tasks/data_hygiene.rake @@ -0,0 +1,6 @@+namespace :data_hygiene do + desc "Bulk update the organisations associated with users." + task :bulk_update_organisation, %i(csv_fil...
Add a Rake task for bulk updating organisations This uses the bulk organisation updater class to perform the actual change.
diff --git a/lib/text_helpers/railtie.rb b/lib/text_helpers/railtie.rb index abc1234..def5678 100644 --- a/lib/text_helpers/railtie.rb +++ b/lib/text_helpers/railtie.rb @@ -4,7 +4,7 @@ initializer "text_helpers.configure_rails_initialization" do - class ActionView::Base + ActionView::Base.class_eval d...
Use class_eval over reopening the class. This way an exception is raised if the class doesn't exist, rather than silently/potentially erroneously defining it as a new class.
diff --git a/spec/unit/virtus/coercion/object/class_methods/to_string_spec.rb b/spec/unit/virtus/coercion/object/class_methods/to_string_spec.rb index abc1234..def5678 100644 --- a/spec/unit/virtus/coercion/object/class_methods/to_string_spec.rb +++ b/spec/unit/virtus/coercion/object/class_methods/to_string_spec.rb @@ ...
Fix spec by replacing the mock with an Object instance * For some reason RSpec::Mocks::Mock defines #to_str in rspec 2, and with the spec we're trying to assert what will happen when a non-String-like object is passed to the string coercion method.
diff --git a/services/QuillLMS/spec/system/login_spec.rb b/services/QuillLMS/spec/system/login_spec.rb index abc1234..def5678 100644 --- a/services/QuillLMS/spec/system/login_spec.rb +++ b/services/QuillLMS/spec/system/login_spec.rb @@ -3,7 +3,7 @@ RSpec.describe 'User login' do let!(:user) { create(:teacher) } - ...
Add retry to capybara spec
diff --git a/spec/default_search_spec.rb b/spec/default_search_spec.rb index abc1234..def5678 100644 --- a/spec/default_search_spec.rb +++ b/spec/default_search_spec.rb @@ -2,8 +2,12 @@ describe "Default search" do - it "Should match call numbers" do + it "Should match popular items" do default_search('b3340...
Add title search that were failing.
diff --git a/spec/features/users_spec.rb b/spec/features/users_spec.rb index abc1234..def5678 100644 --- a/spec/features/users_spec.rb +++ b/spec/features/users_spec.rb @@ -3,10 +3,14 @@ RSpec.feature "Users", type: :feature do describe "#sign_up" do + subject(:vist_sign_up) do + visit(root_url) + click_link...
Add Visit Subject, User Feature Test, DRY Up Code
diff --git a/spec/support/alt_db_init.rb b/spec/support/alt_db_init.rb index abc1234..def5678 100644 --- a/spec/support/alt_db_init.rb +++ b/spec/support/alt_db_init.rb @@ -8,6 +8,7 @@ FileUtils.cp "#{db_directory}/test.sqlite3", "#{db_directory}/test-foo.sqlite3" FileUtils.cp "#{db_directory}/test.sqlite3", "#{db...
Fix VersionConcern spec helper for Ruby18
diff --git a/lib/generators/active_admin/resource/templates/admin.rb b/lib/generators/active_admin/resource/templates/admin.rb index abc1234..def5678 100644 --- a/lib/generators/active_admin/resource/templates/admin.rb +++ b/lib/generators/active_admin/resource/templates/admin.rb @@ -9,9 +9,9 @@ # or # # permit...
Fix indents in permit_params block Indents changed to use 2 spaces instead of 1,
diff --git a/lib/ci_in_a_can/persistence.rb b/lib/ci_in_a_can/persistence.rb index abc1234..def5678 100644 --- a/lib/ci_in_a_can/persistence.rb +++ b/lib/ci_in_a_can/persistence.rb @@ -14,6 +14,13 @@ store.transaction(true) { store[id] } end + def self.hash_for type + store = store_for(type) + ...
Write a method to extract a hash from a pstore.
diff --git a/lib/minitest/minitap_plugin.rb b/lib/minitest/minitap_plugin.rb index abc1234..def5678 100644 --- a/lib/minitest/minitap_plugin.rb +++ b/lib/minitest/minitap_plugin.rb @@ -1,5 +1,6 @@ module Minitest + # def self.plugin_minitap_options(opts, options) opts.on "--tapy", "Use TapY reporter." do ...
Remove unused code from plugin. [minor]
diff --git a/lib/rspec/request_describer.rb b/lib/rspec/request_describer.rb index abc1234..def5678 100644 --- a/lib/rspec/request_describer.rb +++ b/lib/rspec/request_describer.rb @@ -19,6 +19,10 @@ def self.included(base) base.instance_eval do subject do + send_request + end + + ...
Add `send_request` to explicitly call `subject`
diff --git a/db/seeds/routes_from_varnish.rb b/db/seeds/routes_from_varnish.rb index abc1234..def5678 100644 --- a/db/seeds/routes_from_varnish.rb +++ b/db/seeds/routes_from_varnish.rb @@ -9,16 +9,21 @@ abort "GOVUK_APP_DOMAIN is not set. Maybe you need to run under govuk_setenv..." end -backends = [ - 'canary-f...
Allow backend seeds to optionally require TLS The router is going to be hosted with a different provider to some of the apps (eg EFG and Licensify). The router needs to reverse proxy to Licensify but as the data is travelling across the internet we should use HTTPS rather than HTTP.
diff --git a/spec/features/auth_signin_spec.rb b/spec/features/auth_signin_spec.rb index abc1234..def5678 100644 --- a/spec/features/auth_signin_spec.rb +++ b/spec/features/auth_signin_spec.rb @@ -12,7 +12,7 @@ password: "password", password_confirmation: "password") visit si...
Change name to username in auth signin features spec
diff --git a/airooi.rb b/airooi.rb index abc1234..def5678 100644 --- a/airooi.rb +++ b/airooi.rb @@ -0,0 +1,85 @@+#!/usr/bin/env ruby + +require 'optparse' +require 'mysql2' +require 'io/console' + +# Argument definitions +options = {} +optparse = ::OptionParser.new do |opts| + opts.banner = 'Usage: airooi.rb' + + opti...
Use OptionParser to read arguments, and connect to the database
diff --git a/spec/lib/human_api/config_spec.rb b/spec/lib/human_api/config_spec.rb index abc1234..def5678 100644 --- a/spec/lib/human_api/config_spec.rb +++ b/spec/lib/human_api/config_spec.rb @@ -0,0 +1,14 @@+require 'spec_helper' + +describe HumanApi::Config do + let(:config) { described_class.new } + + it 'sets so...
Add basic specs to Config class
diff --git a/spec/services/snapshotter_spec.rb b/spec/services/snapshotter_spec.rb index abc1234..def5678 100644 --- a/spec/services/snapshotter_spec.rb +++ b/spec/services/snapshotter_spec.rb @@ -34,7 +34,7 @@ context 'when snapshot script outputs non-JSON' do let(:encoded_output) { 'This is not JSON' } -...
Fix (cosmetic) typo in snapshotter spec
diff --git a/config/initializers/secret_token.rb b/config/initializers/secret_token.rb index abc1234..def5678 100644 --- a/config/initializers/secret_token.rb +++ b/config/initializers/secret_token.rb @@ -1,7 +1,42 @@-# Be sure to restart your server when you modify this file. +# Corylus - ERP software +# Copyright (c)...
Config: Put the secret token into a separate file * Having it into the source code is madness. Use an installation-specific configuration file to store it * If this file is not found during application startup, Corylus will generate a new secret token This code was inspired from this blog entry from Michael Hart...
diff --git a/config/initializers/secret_token.rb b/config/initializers/secret_token.rb index abc1234..def5678 100644 --- a/config/initializers/secret_token.rb +++ b/config/initializers/secret_token.rb @@ -1,7 +1,3 @@ # Be sure to restart your server when you modify this file. -# Your secret key for verifying the inte...
Remove possibly confusing comment about secret token
diff --git a/transam_audit.gemspec b/transam_audit.gemspec index abc1234..def5678 100644 --- a/transam_audit.gemspec +++ b/transam_audit.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',...
Make the rails version in the gemspec more restrictive
diff --git a/scoped_search.gemspec b/scoped_search.gemspec index abc1234..def5678 100644 --- a/scoped_search.gemspec +++ b/scoped_search.gemspec @@ -1,7 +1,7 @@ Gem::Specification.new do |s| s.name = 'scoped_search' - s.version = '0.3.0' - s.date = '2008-09-21' + s.version = '0.6.0' + s.date = '2008-09-...
Set gem version to 0.6.0
diff --git a/spec/controllers/webhook_controller_spec.rb b/spec/controllers/webhook_controller_spec.rb index abc1234..def5678 100644 --- a/spec/controllers/webhook_controller_spec.rb +++ b/spec/controllers/webhook_controller_spec.rb @@ -2,7 +2,10 @@ describe StripeEvent::WebhookController do before do - @base_p...
Test that requests can succeed and fail with a custom event retriever
diff --git a/Library/Formula/android-ndk.rb b/Library/Formula/android-ndk.rb index abc1234..def5678 100644 --- a/Library/Formula/android-ndk.rb +++ b/Library/Formula/android-ndk.rb @@ -1,10 +1,10 @@ require 'formula' class AndroidNdk <Formula - url 'http://dl.google.com/android/ndk/android-ndk-r4-darwin-x86.zip' + ...
Update Android NDK to the latest r5 revision. Signed-off-by: Adam Vandenberg <34c2b6407fd5a10249a15d699d40f9ed1782e98c@gmail.com>
diff --git a/core/spec/classes/lazy_spec.rb b/core/spec/classes/lazy_spec.rb index abc1234..def5678 100644 --- a/core/spec/classes/lazy_spec.rb +++ b/core/spec/classes/lazy_spec.rb @@ -1,14 +1,7 @@ require File.expand_path('../../../app/classes/lazy.rb', __FILE__) -describe "Fukushima" do - it "should fail" do - ...
Revert "Markje pullen. Broken commit pushen." This reverts commit 58466fb069650cf9ef78cc27ecd8c60f55c7cdd5.
diff --git a/db/migrate/20150107153747_add_slug_to_tags.rb b/db/migrate/20150107153747_add_slug_to_tags.rb index abc1234..def5678 100644 --- a/db/migrate/20150107153747_add_slug_to_tags.rb +++ b/db/migrate/20150107153747_add_slug_to_tags.rb @@ -1,6 +1,6 @@ class AddSlugToTags < ActiveRecord::Migration def up - ad...
Remove null constraint on tag slug. SQLite3 did /not/ appreciate that.
diff --git a/db/migrate/20190522180629_add_raw_contents.rb b/db/migrate/20190522180629_add_raw_contents.rb index abc1234..def5678 100644 --- a/db/migrate/20190522180629_add_raw_contents.rb +++ b/db/migrate/20190522180629_add_raw_contents.rb @@ -15,7 +15,7 @@ # Apply HTML cleansing / munging to existing content at...
Fix reference to refactored method
diff --git a/yefeme.gemspec b/yefeme.gemspec index abc1234..def5678 100644 --- a/yefeme.gemspec +++ b/yefeme.gemspec @@ -10,7 +10,7 @@ spec.homepage = "https://github.com/yefim/yefeme" spec.license = "MIT" - spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r{^(assets|_layouts...
Add index.md to gem files
diff --git a/examples/design_by_contract.rb b/examples/design_by_contract.rb index abc1234..def5678 100644 --- a/examples/design_by_contract.rb +++ b/examples/design_by_contract.rb @@ -56,3 +56,16 @@ a.sell 10 a.sell -10 +############################## + +class A + include DesignByContract + + precond { |price| ...
Add another example api for design by contract
diff --git a/Casks/displaycal.rb b/Casks/displaycal.rb index abc1234..def5678 100644 --- a/Casks/displaycal.rb +++ b/Casks/displaycal.rb @@ -4,6 +4,8 @@ # sourceforge.net/projects/dispcalgui was verified as official when first introduced to the cask url "https://downloads.sourceforge.net/dispcalgui/release/#{ver...
Add sourceforge appcast for DisplayCAL
diff --git a/Casks/logdna-cli.rb b/Casks/logdna-cli.rb index abc1234..def5678 100644 --- a/Casks/logdna-cli.rb +++ b/Casks/logdna-cli.rb @@ -2,6 +2,7 @@ version '1.0.9' sha256 '76531e0538c9c8945ade50fc5707e1d34945b364a6475f38af6ccd499aad2aaa' + # github.com/logdna/logdna-cli was verified as official when first ...
Fix `url` stanza comment for LogDNA CLI.
diff --git a/lib/heroku/middleware.rb b/lib/heroku/middleware.rb index abc1234..def5678 100644 --- a/lib/heroku/middleware.rb +++ b/lib/heroku/middleware.rb @@ -17,7 +17,6 @@ stats[:addr] = ADDR stats[:queue_time] = headers['X-Request-Start'] ? (start_time - headers['X-Request-Start'].to_f).round : 0...
Remove request_time - other notifications do that
diff --git a/Casks/pl2303.rb b/Casks/pl2303.rb index abc1234..def5678 100644 --- a/Casks/pl2303.rb +++ b/Casks/pl2303.rb @@ -0,0 +1,9 @@+class Pl2303 < Cask + homepage 'http://www.prolific.com.tw/US/ShowProduct.aspx?p_id=229&pcid=41' + version '1.5.1' + url "http://www.prolific.com.tw/UserFiles/files/md_PL2303_MacOS...
Add Prolific PL2303 Serial to USB Driver v1.5.1
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.7.3' - sha256 '085ef1270ae2393e1460bb19d3bf3d5430507007a16de9f83bf50bfee5e5dc14' + version '2.7.4' + sha256 '94df19f67316c900929542445d7d0b86a...
Update TG Pro.app to v2.7.4
diff --git a/lib/recap/support/cli.rb b/lib/recap/support/cli.rb index abc1234..def5678 100644 --- a/lib/recap/support/cli.rb +++ b/lib/recap/support/cli.rb @@ -1,4 +1,5 @@ require 'thor' +require 'recap/support/shell_command' module Recap::Support
Add a missing require statement. It appears that the `recap setup` task is untested.
diff --git a/lib/saas_pulse/client.rb b/lib/saas_pulse/client.rb index abc1234..def5678 100644 --- a/lib/saas_pulse/client.rb +++ b/lib/saas_pulse/client.rb @@ -15,7 +15,7 @@ end def track(data={}) - open(build_url(data)) + Thread.new {open(build_url(data))} end def build_url(data)
Make the call to SP in its own thread
diff --git a/cf_spec/integration/deploy_staticfile_app_spec.rb b/cf_spec/integration/deploy_staticfile_app_spec.rb index abc1234..def5678 100644 --- a/cf_spec/integration/deploy_staticfile_app_spec.rb +++ b/cf_spec/integration/deploy_staticfile_app_spec.rb @@ -13,5 +13,8 @@ browser.visit_path('/') expect(bro...
Test that json files are served with correct mime type [#89505182] Signed-off-by: Colin Jackson <a89a308d481f83b953c5ad185298958072312fde@gmail.com>
diff --git a/ReactNativePermissions.podspec b/ReactNativePermissions.podspec index abc1234..def5678 100644 --- a/ReactNativePermissions.podspec +++ b/ReactNativePermissions.podspec @@ -11,7 +11,7 @@ s.authors = package["author"] s.homepage = package["homepage"] - s.platform = :ios, "9.0" +...
Add tvOS support to Podspec
diff --git a/lib/tasks/dbcompile.rake b/lib/tasks/dbcompile.rake index abc1234..def5678 100644 --- a/lib/tasks/dbcompile.rake +++ b/lib/tasks/dbcompile.rake @@ -1,4 +1,5 @@ namespace :db do + desc "compile based on the contents of #{RAILS_ROOT}/db/compile.yml" task :compile => 'environment' do require 'dbcompi...
Add in a task description so the db:compile task shows in rake -T
diff --git a/tools/s3-log-migrator.rb b/tools/s3-log-migrator.rb index abc1234..def5678 100644 --- a/tools/s3-log-migrator.rb +++ b/tools/s3-log-migrator.rb @@ -0,0 +1,88 @@+#!/usr/bin/env ruby +require 'aws-sdk-core' +require 'json' +require 'logger' + +bucket = ENV.fetch('BARBEQUE_S3_BUCKET_NAME') +num_workers = Inte...
Add script to migrate S3 log changed in v0.7.0
diff --git a/qtapp.gemspec b/qtapp.gemspec index abc1234..def5678 100644 --- a/qtapp.gemspec +++ b/qtapp.gemspec @@ -5,11 +5,11 @@ Gem::Specification.new do |s| s.name = "qtapp" s.version = Qtapp::VERSION - s.authors = ["Keita Urashima", "Hirofumi Wakasugi"] - s.email = ["ursm@ursm.jp"] + ...
Add rake dependency to gemspec
diff --git a/core/lib/generators/spree/custom_user/custom_user_generator.rb b/core/lib/generators/spree/custom_user/custom_user_generator.rb index abc1234..def5678 100644 --- a/core/lib/generators/spree/custom_user/custom_user_generator.rb +++ b/core/lib/generators/spree/custom_user/custom_user_generator.rb @@ -1,7 +1,...
Use ActiveRecord::Generators::Migration in custom user generator The former usage of `Rails::Generators::Migration` forced us to write our own `next_migration_number` generator. This generator was erroneous and sometimes lead to duplicated migration versions. Using the activerecord migration generator uses its own bat...
diff --git a/lib/travis/redis_pool.rb b/lib/travis/redis_pool.rb index abc1234..def5678 100644 --- a/lib/travis/redis_pool.rb +++ b/lib/travis/redis_pool.rb @@ -0,0 +1,29 @@+require 'connection_pool' +require 'redis' +require 'metriks' + +class RedisPool + def initialize(options) + @options = options.delete(:pool)...
Add a Redis connection pool.
diff --git a/pidgin2adium.gemspec b/pidgin2adium.gemspec index abc1234..def5678 100644 --- a/pidgin2adium.gemspec +++ b/pidgin2adium.gemspec @@ -1,25 +1,26 @@-# -*- encoding: utf-8 -*- -$:.push File.expand_path("../lib", __FILE__) +# coding: utf-8 +lib = File.expand_path('../lib', __FILE__) +$LOAD_PATH.unshift(lib) unl...
Bump to new autogenerated gemspec
diff --git a/test/models/team_test.rb b/test/models/team_test.rb index abc1234..def5678 100644 --- a/test/models/team_test.rb +++ b/test/models/team_test.rb @@ -3,6 +3,14 @@ class TeamTest < ActiveSupport::TestCase test 'team with ineligible user is ineligible for prizes' do assert_equal(false, teams(:team_one)...
Add quick test for testing set_team_captain code in the team model.
diff --git a/fork_break.gemspec b/fork_break.gemspec index abc1234..def5678 100644 --- a/fork_break.gemspec +++ b/fork_break.gemspec @@ -19,6 +19,7 @@ gem.require_paths = ['lib'] gem.version = ForkBreak::VERSION gem.add_dependency 'fork', '= 1.0.1' - gem.add_development_dependency 'rspec', '~> 3.1', '>= ...
Update development dependencies and lock them properly
diff --git a/lib/rulers.rb b/lib/rulers.rb index abc1234..def5678 100644 --- a/lib/rulers.rb +++ b/lib/rulers.rb @@ -14,7 +14,7 @@ end klass, action = get_controller_and_action(env) - controller = klass.new + controller = klass.new(env) text = controller.send(action) ...
Fix controller issue with environment
diff --git a/lib/runner.rb b/lib/runner.rb index abc1234..def5678 100644 --- a/lib/runner.rb +++ b/lib/runner.rb @@ -14,7 +14,7 @@ detective.brief(repo: config.repo, number: config.id, head_sha: config.sha) detective.investigate detective.violations.each do |violation| - octokit.create_pull_request_c...
Fix bug with comment create
diff --git a/db/migrate/20110929004340_destroy_empty_photos.rb b/db/migrate/20110929004340_destroy_empty_photos.rb index abc1234..def5678 100644 --- a/db/migrate/20110929004340_destroy_empty_photos.rb +++ b/db/migrate/20110929004340_destroy_empty_photos.rb @@ -0,0 +1,16 @@+class DestroyEmptyPhotos < Mongoid::Migration ...
Remove photos that contain nil images
diff --git a/code_output.gemspec b/code_output.gemspec index abc1234..def5678 100644 --- a/code_output.gemspec +++ b/code_output.gemspec @@ -17,6 +17,7 @@ gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) gem.require_paths = ["lib"] - gem.add_development_dependency('rspec') - gem.add_development_d...
Add rake as a development dependency
diff --git a/Casks/rubymine-eap.rb b/Casks/rubymine-eap.rb index abc1234..def5678 100644 --- a/Casks/rubymine-eap.rb +++ b/Casks/rubymine-eap.rb @@ -1,10 +1,10 @@ cask :v1 => 'rubymine-eap' do - version '139.262' - sha256 'e255b6a0f94fee55e72c9969919619c3431bf6507e678e0ac9303edc0d441072' + version '140.2694' + sha2...
Upgrade Rubymine EAP to v140.2694
diff --git a/lib/adamantium.rb b/lib/adamantium.rb index abc1234..def5678 100644 --- a/lib/adamantium.rb +++ b/lib/adamantium.rb @@ -45,6 +45,7 @@ # # @api private def self.included(descendant) + super descendant.class_eval do include Memoizable extend ModuleMethods
Change Adamantium.included to call super
diff --git a/omniauth-tradegecko.gemspec b/omniauth-tradegecko.gemspec index abc1234..def5678 100644 --- a/omniauth-tradegecko.gemspec +++ b/omniauth-tradegecko.gemspec @@ -15,7 +15,7 @@ gem.version = Omniauth::TradeGecko::VERSION gem.add_dependency 'omniauth', '~> 1.0' - gem.add_dependency 'omniauth-oaut...
Fix breaking change in omniauth-oauth2
diff --git a/lib/aggro/event_proxy.rb b/lib/aggro/event_proxy.rb index abc1234..def5678 100644 --- a/lib/aggro/event_proxy.rb +++ b/lib/aggro/event_proxy.rb @@ -7,8 +7,6 @@ end def method_missing(method_sym, *args) - return unless @aggregate.handles_event?(method_sym) - details = merge_details_wi...
Allow undefined events to be logged.
diff --git a/builder/test-integration/spec/hypriotos-image/device-init_spec.rb b/builder/test-integration/spec/hypriotos-image/device-init_spec.rb index abc1234..def5678 100644 --- a/builder/test-integration/spec/hypriotos-image/device-init_spec.rb +++ b/builder/test-integration/spec/hypriotos-image/device-init_spec.rb...
Fix tests for device init 0.1.8 Signed-off-by: Dieter Reuter <554783fc552b5b2a46dd3d7d7b9b2cce9a82c122@me.com>
diff --git a/lib/chef_zero/endpoints/not_found_endpoint.rb b/lib/chef_zero/endpoints/not_found_endpoint.rb index abc1234..def5678 100644 --- a/lib/chef_zero/endpoints/not_found_endpoint.rb +++ b/lib/chef_zero/endpoints/not_found_endpoint.rb @@ -1,8 +1,10 @@+require 'json' + module ChefZero module Endpoints cla...
Return actual json in 404 (fixes issue with recent cehf bootstrap)
diff --git a/exercises/concept/exceptions/simple_calculator.rb b/exercises/concept/exceptions/simple_calculator.rb index abc1234..def5678 100644 --- a/exercises/concept/exceptions/simple_calculator.rb +++ b/exercises/concept/exceptions/simple_calculator.rb @@ -1,7 +1,5 @@ class SimpleCalculator ALLOWED_OPERATIONS = ...
Remove custom error from stub
diff --git a/lib/graphql/static_validation/rules/fields_have_appropriate_selections.rb b/lib/graphql/static_validation/rules/fields_have_appropriate_selections.rb index abc1234..def5678 100644 --- a/lib/graphql/static_validation/rules/fields_have_appropriate_selections.rb +++ b/lib/graphql/static_validation/rules/field...
Validate selections for dynamic fields
diff --git a/db/seeds/maintainer_users.rb b/db/seeds/maintainer_users.rb index abc1234..def5678 100644 --- a/db/seeds/maintainer_users.rb +++ b/db/seeds/maintainer_users.rb @@ -1,5 +1,5 @@ if Rails.env.development? || ENV['STAGING'] - names = %w[kevin rachel austin] + names = %w[kevin rachel austin sully] names....
Add "sully" to maintainer user seeds
diff --git a/jpbuilder.gemspec b/jpbuilder.gemspec index abc1234..def5678 100644 --- a/jpbuilder.gemspec +++ b/jpbuilder.gemspec @@ -4,9 +4,9 @@ gem.authors = ["Jason Webb"] gem.email = ["bigjasonwebb@gmail.com"] gem.summary = "A small template extension to add JSONP support to Jbuilder." - ...
Fix gemspec to use relative paths Closes #3.
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index abc1234..def5678 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -23,6 +23,7 @@ def store_location # store last url - this is needed for post-login re...
Add homepage to store location conditional so if user sign in from homepage redirect to courses and not back to root
diff --git a/delegate_to_instance.gemspec b/delegate_to_instance.gemspec index abc1234..def5678 100644 --- a/delegate_to_instance.gemspec +++ b/delegate_to_instance.gemspec @@ -18,6 +18,7 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] + spec.add_development_depe...
Add rspec as dev dependency
diff --git a/test/test-day-23-opening-the-turing-lock.rb b/test/test-day-23-opening-the-turing-lock.rb index abc1234..def5678 100644 --- a/test/test-day-23-opening-the-turing-lock.rb +++ b/test/test-day-23-opening-the-turing-lock.rb @@ -2,16 +2,53 @@ require 'day-23-opening-the-turing-lock' class TestDay23OpeningThe...
Add tests for inc and hlf.
diff --git a/app/helpers/discuss/application_helper.rb b/app/helpers/discuss/application_helper.rb index abc1234..def5678 100644 --- a/app/helpers/discuss/application_helper.rb +++ b/app/helpers/discuss/application_helper.rb @@ -5,8 +5,8 @@ end def markdown(text) - markdown = ::Redcarpet::Markdown.new(h...
Extend Redcarpet markdown to support footnotes for the one copy that uses them
diff --git a/lib/attrtastic.rb b/lib/attrtastic.rb index abc1234..def5678 100644 --- a/lib/attrtastic.rb +++ b/lib/attrtastic.rb @@ -1,3 +1,4 @@+# -*- encoding: utf-8 -*- require "attrtastic/semantic_attributes_helper" require "attrtastic/semantic_attributes_builder" ##
Update encidong for file with my name
diff --git a/spec/lib/mobi_spec.rb b/spec/lib/mobi_spec.rb index abc1234..def5678 100644 --- a/spec/lib/mobi_spec.rb +++ b/spec/lib/mobi_spec.rb @@ -1,8 +1,10 @@ require 'spec_helper' + +require 'mobi' describe Mobi do it "should instantiate a Mobi::Metadata object" do - file = File.open('spec/fixtures/test.mo...
Fix mobi spec by require the mobi file
diff --git a/html-pipeline-gitlab.gemspec b/html-pipeline-gitlab.gemspec index abc1234..def5678 100644 --- a/html-pipeline-gitlab.gemspec +++ b/html-pipeline-gitlab.gemspec @@ -21,5 +21,6 @@ spec.add_development_dependency 'bundler', '~> 1.6' spec.add_development_dependency 'rake', '~> 10.0' + spec.add_runtime_...
Add html-pipeline dependency again because upstream is fixed
diff --git a/lib/croissant.rb b/lib/croissant.rb index abc1234..def5678 100644 --- a/lib/croissant.rb +++ b/lib/croissant.rb @@ -35,11 +35,10 @@ end end -Mime::Type.register "text/ascii", :ascii, [], %w( html ) +Mime::Type.register "text/ascii", :ascii ActionController::Renderers.add :ascii do |filename, option...
Remove excess alias from register mime type
diff --git a/lib/guard/less.rb b/lib/guard/less.rb index abc1234..def5678 100644 --- a/lib/guard/less.rb +++ b/lib/guard/less.rb @@ -1,6 +1,8 @@ require 'guard' require 'guard/guard' require 'less' + +require File.dirname(__FILE__) + "/less/version" module Guard class Less < Guard @@ -10,7 +12,7 @@ # ======...
Use the version from the conventional version.rb file.
diff --git a/homebrew/chruby.rb b/homebrew/chruby.rb index abc1234..def5678 100644 --- a/homebrew/chruby.rb +++ b/homebrew/chruby.rb @@ -30,7 +30,7 @@ if rubies_dir message << %{ - RUBIES=#{rubies_dir}/* + RUBIES=(#{rubies_dir}/*) } else message << %{
Use the correct globbed Array syntax.
diff --git a/lib/lazy_const.rb b/lib/lazy_const.rb index abc1234..def5678 100644 --- a/lib/lazy_const.rb +++ b/lib/lazy_const.rb @@ -14,7 +14,7 @@ self.clear LazyConst::CACHE.keys.each do |class_dot_name| klass, name = class_dot_name.split('.') - m = klass.constantize.send name.to_sym + m = kl...
Use public_send instead of send