diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/lib/generators/invitational/entity/entity_generator.rb b/lib/generators/invitational/entity/entity_generator.rb index abc1234..def5678 100644 --- a/lib/generators/invitational/entity/entity_generator.rb +++ b/lib/generators/invitational/entity/entity_generator.rb @@ -3,8 +3,20 @@ class EntityGenerator ...
Build the generator to setup an entity
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -14,6 +14,7 @@ end resources :ideas do get :toggle_used + get :toggle_interesting end resources :games, except: [:index] do resources :posts, only: [:new,...
Add route 'toggle_interesting' to Ideas
diff --git a/congress.gemspec b/congress.gemspec index abc1234..def5678 100644 --- a/congress.gemspec +++ b/congress.gemspec @@ -6,7 +6,7 @@ gem.add_dependency 'faraday_middleware', '~> 0.7' gem.add_dependency 'hashie', '~> 2.0' gem.add_dependency 'multi_json', '~> 1.0' - gem.add_dependency 'rash', '~> 0.3' + ...
Update rash dependency to version ~> 0.4
diff --git a/app/models/poll_option.rb b/app/models/poll_option.rb index abc1234..def5678 100644 --- a/app/models/poll_option.rb +++ b/app/models/poll_option.rb @@ -32,8 +32,10 @@ def display_name(zone: nil) if poll.dates_as_options formatted_datetime(name, zone || poll.time_zone) + elsif poll.poll_opt...
Fix casing for user-generated poll options in email
diff --git a/definitions/disk-monitor.rb b/definitions/disk-monitor.rb index abc1234..def5678 100644 --- a/definitions/disk-monitor.rb +++ b/definitions/disk-monitor.rb @@ -1,35 +1,35 @@ define :disk_monitor, :template => "alert.sh.erb", :bin_path => "/usr/local/bin" do - application = Hash.new("").tap do |a| - a[:...
Stop using tap to support ruby 1.8.6
diff --git a/lib/foreigner.rb b/lib/foreigner.rb index abc1234..def5678 100644 --- a/lib/foreigner.rb +++ b/lib/foreigner.rb @@ -15,7 +15,7 @@ Base.class_eval do if %w(mysql postgresql).include? connection_pool.spec.config[:adapter].downcase - require "foreigner/connection_adapters/#{connection.adapter_...
Fix when no database exists when using rake db:create
diff --git a/lib/browserid-rails.rb b/lib/browserid-rails.rb index abc1234..def5678 100644 --- a/lib/browserid-rails.rb +++ b/lib/browserid-rails.rb @@ -19,7 +19,7 @@ # config.browserid.audience should only be set in production end - initializer "browserid-rails.extend" do |app| + config.befo...
Change engine initializer into a before_initialize hook.
diff --git a/db/migrate/20170627024417_add_index_to_doc_method.rb b/db/migrate/20170627024417_add_index_to_doc_method.rb index abc1234..def5678 100644 --- a/db/migrate/20170627024417_add_index_to_doc_method.rb +++ b/db/migrate/20170627024417_add_index_to_doc_method.rb @@ -1,4 +1,4 @@-class AddIndexToDocMethods < Active...
Fix migration constant not matching filename. This was breaking bootsnap in dev, changing the constant solves the issue
diff --git a/spec/views/ballots/new.html.haml_spec.rb b/spec/views/ballots/new.html.haml_spec.rb index abc1234..def5678 100644 --- a/spec/views/ballots/new.html.haml_spec.rb +++ b/spec/views/ballots/new.html.haml_spec.rb @@ -19,6 +19,9 @@ mock_model(Nomination, :id => 32, :name => "Belinda Marsh") ] ass...
Fix ballots/new spec broken by 200bbdd63e4faf1a2fe7b2bfc8136ce340efd2d.
diff --git a/lib/global_id_utils.rb b/lib/global_id_utils.rb index abc1234..def5678 100644 --- a/lib/global_id_utils.rb +++ b/lib/global_id_utils.rb @@ -14,7 +14,7 @@ # the model within it. Otherwise, find the model normally. def self.locate(gid, _options = {}) if (gid = GlobalID.parse(gid)) - re...
Remove call to super class method
diff --git a/lib/halogen/railtie.rb b/lib/halogen/railtie.rb index abc1234..def5678 100644 --- a/lib/halogen/railtie.rb +++ b/lib/halogen/railtie.rb @@ -16,7 +16,7 @@ config.after_initialize do if Halogen.enabled result = Coverage.result(:retain => true) - Halogen.dispatch(result) + Ha...
Add run count for initial load cover.
diff --git a/lib/kmc/package_dsl.rb b/lib/kmc/package_dsl.rb index abc1234..def5678 100644 --- a/lib/kmc/package_dsl.rb +++ b/lib/kmc/package_dsl.rb @@ -3,7 +3,6 @@ def merge_directory(from, opts = {}) destination = opts[:into] || '.' - FileUtils.mkdir_p(File.dirname(File.join(self.class.ksp_path, des...
Revert "Ensure there is something to copy the origin to"
diff --git a/lib/json/jose.rb b/lib/json/jose.rb index abc1234..def5678 100644 --- a/lib/json/jose.rb +++ b/lib/json/jose.rb @@ -51,7 +51,7 @@ else decode_compact_serialized input, key_or_secret, algorithms, encryption_methods end - rescue JSON::ParserError + rescue JSON::ParserErr...
Fix 'JSON::JWT.decode when JSON parse failed should raise JSON::JWT::InvalidFormat' spec
diff --git a/lib/mercenary.rb b/lib/mercenary.rb index abc1234..def5678 100644 --- a/lib/mercenary.rb +++ b/lib/mercenary.rb @@ -1,14 +1,12 @@-lib = File.expand_path('../', __FILE__) - -require "#{lib}/mercenary/version" +require File.expand_path("../mercenary/version", __FILE__) require "optparse" require "logger" ...
Use File.expand_path to build paths.
diff --git a/lib/metric_fu.rb b/lib/metric_fu.rb index abc1234..def5678 100644 --- a/lib/metric_fu.rb +++ b/lib/metric_fu.rb @@ -2,16 +2,19 @@ module MetricFu APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__),'..')) LIB_ROOT = File.join(APP_ROOT,'lib/metric_fu') - def self.root_dir + + module_functio...
Make MetricFu base module use module_function for simplicity
diff --git a/hash_selectors.gemspec b/hash_selectors.gemspec index abc1234..def5678 100644 --- a/hash_selectors.gemspec +++ b/hash_selectors.gemspec @@ -2,7 +2,7 @@ spec = Gem::Specification.new do |s| s.name = "hash_selectors" - s.version = "0.0.2" + s.version = "0.0.3" s.summary = "Some s...
Increment version 0.0.2 -> 0.0.3: Add ...values_for_keys methods
diff --git a/gemdiff.gemspec b/gemdiff.gemspec index abc1234..def5678 100644 --- a/gemdiff.gemspec +++ b/gemdiff.gemspec @@ -25,5 +25,5 @@ spec.add_development_dependency "minitest", "~> 5.4" spec.add_development_dependency "mocha", "~> 1.1" - spec.add_development_dependency "rake", "~> 12.0" + spec.add_develo...
Use rake 13 in development
diff --git a/jekyll-compass.gemspec b/jekyll-compass.gemspec index abc1234..def5678 100644 --- a/jekyll-compass.gemspec +++ b/jekyll-compass.gemspec @@ -1,7 +1,7 @@ Gem::Specification.new do |s| s.name = 'jekyll-compass' - s.version = '0.2-dev' + s.version = '0.2.dev' s.summary = "Jeky...
Fix version number to something valid to rubygems
diff --git a/contentful_client.gemspec b/contentful_client.gemspec index abc1234..def5678 100644 --- a/contentful_client.gemspec +++ b/contentful_client.gemspec @@ -8,9 +8,9 @@ spec.version = Contentful::VERSION spec.authors = ['Mateusz Sójka'] spec.email = ['yagooar@gmail.com'] - spec.desc...
Make clear it's a ruby client
diff --git a/lib/resync/resource.rb b/lib/resync/resource.rb index abc1234..def5678 100644 --- a/lib/resync/resource.rb +++ b/lib/resync/resource.rb @@ -44,6 +44,16 @@ end # ------------------------------------------------------------ + # Overrides + + # ResourceSync schema requires '##other' elements ...
Make sure rs:ln and rs:md appear last
diff --git a/lib/shared_mustache.rb b/lib/shared_mustache.rb index abc1234..def5678 100644 --- a/lib/shared_mustache.rb +++ b/lib/shared_mustache.rb @@ -9,7 +9,7 @@ end def self.file_list - Dir[File.join(view_dir, '**', '*.mustache')] + Dir[File.join(view_dir, '**', '*.mustache')].sort end def self...
Sort the file list so it is in a reliable order So that the compile file is reliably the same no matter where or when it is run.
diff --git a/lib/sequent/core/helpers/date_time_validator.rb b/lib/sequent/core/helpers/date_time_validator.rb index abc1234..def5678 100644 --- a/lib/sequent/core/helpers/date_time_validator.rb +++ b/lib/sequent/core/helpers/date_time_validator.rb @@ -10,11 +10,9 @@ class DateTimeValidator < ActiveModel::EachVal...
Refactor to remove begin in begin/rescue block
diff --git a/core/lib/spree/testing_support/factories/stock_location_factory.rb b/core/lib/spree/testing_support/factories/stock_location_factory.rb index abc1234..def5678 100644 --- a/core/lib/spree/testing_support/factories/stock_location_factory.rb +++ b/core/lib/spree/testing_support/factories/stock_location_factor...
Use stock_location's country for stock_location's state in stock_location factory This is so that it doesn't create a new country and associate the state with that.
diff --git a/lib/crocoduck/entry.rb b/lib/crocoduck/entry.rb index abc1234..def5678 100644 --- a/lib/crocoduck/entry.rb +++ b/lib/crocoduck/entry.rb @@ -5,32 +5,14 @@ require 'crocoduck/store' module Crocoduck - class Entry - def self.keys - Redis.keys "entries:*" + class Entry + attr_accessor :entr...
Stop all this redis stuff. Don't need it. Entry and its data is "authoritatively" stored in Mongo, lets use it.
diff --git a/spec/models/post_spec.rb b/spec/models/post_spec.rb index abc1234..def5678 100644 --- a/spec/models/post_spec.rb +++ b/spec/models/post_spec.rb @@ -1,4 +1,20 @@ require 'spec_helper' describe Post do + describe 'create' do + before do + Post.create( + title: 'EXCELLENT!', + body: ...
Add specs for Post model.
diff --git a/spec/support/capybara.rb b/spec/support/capybara.rb index abc1234..def5678 100644 --- a/spec/support/capybara.rb +++ b/spec/support/capybara.rb @@ -4,9 +4,27 @@ Capybara.configure do |config| config.ignore_hidden_elements = true + Capybara.default_driver = :webkit config.javascript_driver = :webki...
Configure Capybara to support single and multi tenant feature specs
diff --git a/Casks/phpstorm-bundled-jdk.rb b/Casks/phpstorm-bundled-jdk.rb index abc1234..def5678 100644 --- a/Casks/phpstorm-bundled-jdk.rb +++ b/Casks/phpstorm-bundled-jdk.rb @@ -0,0 +1,17 @@+cask :v1 => 'phpstorm-bundled-jdk' do + version '9.0.1' + sha256 '274f050445971108e503655cad01d407ee24b078a9a8d7075bd260bea4...
Add PHPStorm with bundled JDK
diff --git a/spec/unit/spec_helper.rb b/spec/unit/spec_helper.rb index abc1234..def5678 100644 --- a/spec/unit/spec_helper.rb +++ b/spec/unit/spec_helper.rb @@ -4,9 +4,7 @@ RSpec.configure do |config| config.platform = 'mac_os_x' - config.version = '10.8.2' # FIXME: system ruby and fauxhai don't play nice - # ...
Use Fauxhai platform version 10.11.1 instead of 10.8.2
diff --git a/garager.gemspec b/garager.gemspec index abc1234..def5678 100644 --- a/garager.gemspec +++ b/garager.gemspec @@ -16,8 +16,6 @@ s.files = %w( Gemfile README.md LICENSE.txt garager.gemspec ) s.files += Dir.glob("lib/**/*") s.files += Dir.glob("bin/*") - s.executables = s.files...
Remove executables. Install interference fix
diff --git a/app/importers/file_importers/educators_importer.rb b/app/importers/file_importers/educators_importer.rb index abc1234..def5678 100644 --- a/app/importers/file_importers/educators_importer.rb +++ b/app/importers/file_importers/educators_importer.rb @@ -21,7 +21,6 @@ if educator.present? educato...
Remove student searchbar caching from educator import job + Good catch from @jhilde: this isn't needed on every import since all the main educator users of the platform have had this data precomputed for them with a background job. + https://github.com/studentinsights/studentinsights/issues/993#issuecomment-329496753
diff --git a/roger.gemspec b/roger.gemspec index abc1234..def5678 100644 --- a/roger.gemspec +++ b/roger.gemspec @@ -0,0 +1,29 @@+# -*- encoding: utf-8 -*- + +Gem::Specification.new do |s| + s.name = "roger" + s.version = "0.0.1" + + s.authors = ["Flurin Egger", "Edwin van der Graaf", "Joran Kapteijns"] + s.email...
Add the gemspec for the new name
diff --git a/roles/nchc.rb b/roles/nchc.rb index abc1234..def5678 100644 --- a/roles/nchc.rb +++ b/roles/nchc.rb @@ -2,6 +2,12 @@ description "Role applied to all servers at NCHC" default_attributes( + :accounts => { + :users => { + :steven => { :status => :administrator }, + :ceasar => { :status => :a...
Add local admin accounts for NCHC machines
diff --git a/git_wit.gemspec b/git_wit.gemspec index abc1234..def5678 100644 --- a/git_wit.gemspec +++ b/git_wit.gemspec @@ -10,7 +10,7 @@ s.homepage = "https://github.com/xdissent/git_wit" s.description = s.summary = "Dead simple Git hosting for Rails apps." - s.files = Dir["{app,config,db,lib}/**/*"] + ["M...
Update gemspec for new readme.
diff --git a/lib/route_validator.rb b/lib/route_validator.rb index abc1234..def5678 100644 --- a/lib/route_validator.rb +++ b/lib/route_validator.rb @@ -12,7 +12,7 @@ valid = route[:controller] == 'duckrails/mocks' && route[:action] == 'serve_mock' && route[:duckrails_mock_id] == record.id rescue URI::Invali...
Fix unused interpolation in mock route validator.
diff --git a/CrashlyticsLumberjack.podspec b/CrashlyticsLumberjack.podspec index abc1234..def5678 100644 --- a/CrashlyticsLumberjack.podspec +++ b/CrashlyticsLumberjack.podspec @@ -10,14 +10,11 @@ s.source_files = 'Source', 'Source/CrashlyticsLogger.{h,m}' s.requires_arc = true - s.osx.deployment_target = '10...
Fix podspec to depend on official crashlytics
diff --git a/osrshighscores.gemspec b/osrshighscores.gemspec index abc1234..def5678 100644 --- a/osrshighscores.gemspec +++ b/osrshighscores.gemspec @@ -1,4 +1,4 @@-# coding: utf-8 +# encoding: utf-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'osrshighs...
Fix tiny typo in encoding declaration
diff --git a/spec/controllers/ansible_repository_controller_spec.rb b/spec/controllers/ansible_repository_controller_spec.rb index abc1234..def5678 100644 --- a/spec/controllers/ansible_repository_controller_spec.rb +++ b/spec/controllers/ansible_repository_controller_spec.rb @@ -14,6 +14,7 @@ it "return correct ht...
Add missing empty lines between test cases
diff --git a/app/controllers/authors_controller.rb b/app/controllers/authors_controller.rb index abc1234..def5678 100644 --- a/app/controllers/authors_controller.rb +++ b/app/controllers/authors_controller.rb @@ -1,5 +1,5 @@ class AuthorsController < ApplicationController def index - ['casey', 'kelly'] + ['cas...
Add more items to authors test array.
diff --git a/app/controllers/content_controller.rb b/app/controllers/content_controller.rb index abc1234..def5678 100644 --- a/app/controllers/content_controller.rb +++ b/app/controllers/content_controller.rb @@ -25,8 +25,8 @@ # TODO: Make this work for all content. def auto_discovery_feed(options = { }) with...
Make sure feed discovery url includes host name.
diff --git a/spec/integration/release/create_bosh_release_spec.rb b/spec/integration/release/create_bosh_release_spec.rb index abc1234..def5678 100644 --- a/spec/integration/release/create_bosh_release_spec.rb +++ b/spec/integration/release/create_bosh_release_spec.rb @@ -2,18 +2,20 @@ describe 'create bosh release',...
Refactor create bosh release test Signed-off-by: Maria Shaldibina <dc03896a0185453e5852a5e0f0fab6cbd2e026ff@pivotal.io>
diff --git a/spec/overcommit/hook/pre_commit/bundle_check_spec.rb b/spec/overcommit/hook/pre_commit/bundle_check_spec.rb index abc1234..def5678 100644 --- a/spec/overcommit/hook/pre_commit/bundle_check_spec.rb +++ b/spec/overcommit/hook/pre_commit/bundle_check_spec.rb @@ -13,45 +13,51 @@ it { should warn } end ...
Fix BundleCheck spec to stub in_path? This spec didn't stub the call to `in_path?` when it should have. It worked because `bundler` is installed on Travis, but it is better form to not make that assumption. Change-Id: Ie974f5e22f55c3ab977c69f232e8667a4b34460c Reviewed-on: http://gerrit.causes.com/37941 Tested-by: jen...
diff --git a/lib/kracken/railtie.rb b/lib/kracken/railtie.rb index abc1234..def5678 100644 --- a/lib/kracken/railtie.rb +++ b/lib/kracken/railtie.rb @@ -7,5 +7,27 @@ app.middleware.insert_after ActionDispatch::DebugExceptions, ::Kracken::JsonApi::PublicExceptions end + + ...
Add Rails filters to remove more sensitive fields This focuses on removing sensitive parameter fields related to users and authentication. We exclude specific fields in the auth hash, in case apps use them elsewhere, as well as the entire raw auth hash. Additionally, this excludes parameters use specifically in the OA...
diff --git a/lib/paginated_array.rb b/lib/paginated_array.rb index abc1234..def5678 100644 --- a/lib/paginated_array.rb +++ b/lib/paginated_array.rb @@ -1,8 +1,10 @@ class PaginatedArray < Array - attr_reader(:total_count) - def initialize(values, total_count) + attr_reader(:total_count, :page, :per_page) + def ini...
Update PaginatedArray that conforms Kaminari::PaginatableArray
diff --git a/test/test_time_manager.rb b/test/test_time_manager.rb index abc1234..def5678 100644 --- a/test/test_time_manager.rb +++ b/test/test_time_manager.rb @@ -1,6 +1,7 @@ require 'minitest/autorun' require 'minitest/reporters' require "mastermind/oscar/time_manager" +require "time" class TimeManagerTest < Mi...
Add test for getting and evaluation gameplay time
diff --git a/lib/stickler/client.rb b/lib/stickler/client.rb index abc1234..def5678 100644 --- a/lib/stickler/client.rb +++ b/lib/stickler/client.rb @@ -30,7 +30,6 @@ def parse( argv ) opts = Trollop::with_standard_exception_handling( parser ) do - raise Trollop::HelpNeeded if argv.empty? # show hel...
Allow the 'list' command to work with no flags.
diff --git a/config/initializers/forbidden_yaml.rb b/config/initializers/forbidden_yaml.rb index abc1234..def5678 100644 --- a/config/initializers/forbidden_yaml.rb +++ b/config/initializers/forbidden_yaml.rb @@ -0,0 +1,59 @@+# XXX: This is purely a monkey patch to close the exploit vector for now, a more +# permanent ...
Patch YAML to allow only some Gem classes to be unmarshalled
diff --git a/snooper.gemspec b/snooper.gemspec index abc1234..def5678 100644 --- a/snooper.gemspec +++ b/snooper.gemspec @@ -1,6 +1,8 @@ $:.unshift File.expand_path('../lib/', __FILE__) require 'snooper/version' +require 'rbconfig' +HOST_OS ||= RbConfig::CONFIG['target_os'] Gem::Specification.new do |s| s.name...
Update Gemspec to Recognise Windows If we're on windows we need to get the WDM module. WE can't have the Terminfo module either. Still need to update snoop to recognise this.
diff --git a/brew-cask-upgrade.gemspec b/brew-cask-upgrade.gemspec index abc1234..def5678 100644 --- a/brew-cask-upgrade.gemspec +++ b/brew-cask-upgrade.gemspec @@ -1,7 +1,6 @@ Gem::Specification.new do |s| s.name = "brew-cask-upgrade" s.version = "0.1.1" - s.date = "2015-11-06" s.summary ...
Remove date field from gemspec
diff --git a/evtx.gemspec b/evtx.gemspec index abc1234..def5678 100644 --- a/evtx.gemspec +++ b/evtx.gemspec @@ -20,13 +20,13 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ['lib'] - spec.add_dependency 'bindata', '~> 2.3.0' + spec.add_dependency 'bindata'...
Remove development gem dependency version pins.
diff --git a/app/jobs/process_user_job.rb b/app/jobs/process_user_job.rb index abc1234..def5678 100644 --- a/app/jobs/process_user_job.rb +++ b/app/jobs/process_user_job.rb @@ -0,0 +1,11 @@+# frozen_string_literal: true + +class ProcessUserJob < ApplicationJob + queue_as :default + + def perform(id) + u = User.fin...
Add ActiveJob that will just free existing users for worker Jobs that are in the queue currently will still retry a few times (or go to the deadset). If there's no job they will be sent straight to the dead queue. With this the existing jobs will not fail and will transition to worker without any issues.
diff --git a/app/models/educator_label.rb b/app/models/educator_label.rb index abc1234..def5678 100644 --- a/app/models/educator_label.rb +++ b/app/models/educator_label.rb @@ -6,6 +6,10 @@ validates :label_key, { presence: true, uniqueness: { scope: [:label_key, :educator] }, - inclusion: { in: ['shs_ex...
Add educator labels for K8 counselor and housemaster to validation
diff --git a/app/models/resource_group.rb b/app/models/resource_group.rb index abc1234..def5678 100644 --- a/app/models/resource_group.rb +++ b/app/models/resource_group.rb @@ -1,4 +1,5 @@ class ResourceGroup < ApplicationRecord + acts_as_miq_taggable alias_attribute :images, :templates has_many :vm_or_templat...
Make resource groups taggable concerns
diff --git a/lib/authlogic/controller_adapters/sinatra_adapter.rb b/lib/authlogic/controller_adapters/sinatra_adapter.rb index abc1234..def5678 100644 --- a/lib/authlogic/controller_adapters/sinatra_adapter.rb +++ b/lib/authlogic/controller_adapters/sinatra_adapter.rb @@ -58,4 +58,4 @@ end end -Sinatra::Request.se...
Fix undefined method error in Sinatra adapter.
diff --git a/app/models/competitions/concerns/overall_bar/races.rb b/app/models/competitions/concerns/overall_bar/races.rb index abc1234..def5678 100644 --- a/app/models/competitions/concerns/overall_bar/races.rb +++ b/app/models/competitions/concerns/overall_bar/races.rb @@ -10,9 +10,11 @@ event = children.d...
Use finder to eager-load results
diff --git a/features/step_definitions/rails_steps.rb b/features/step_definitions/rails_steps.rb index abc1234..def5678 100644 --- a/features/step_definitions/rails_steps.rb +++ b/features/step_definitions/rails_steps.rb @@ -1,8 +1,16 @@ Given /^a pristine Rails application$/ do @aruba_timeout_seconds = 20 + app_na...
Improve Rails app generation step (speedup)
diff --git a/site-cookbooks/media-server/recipes/plex.rb b/site-cookbooks/media-server/recipes/plex.rb index abc1234..def5678 100644 --- a/site-cookbooks/media-server/recipes/plex.rb +++ b/site-cookbooks/media-server/recipes/plex.rb @@ -36,11 +36,15 @@ ] devices [ { - "PathOnHost"...
Remove priviledged status from Plex
diff --git a/disqus_rails.gemspec b/disqus_rails.gemspec index abc1234..def5678 100644 --- a/disqus_rails.gemspec +++ b/disqus_rails.gemspec @@ -10,8 +10,8 @@ s.authors = ['Thach Chau'] s.email = ['rog.kane@gmail.com'] s.homepage = 'http://github.com/chautoni' - s.summary = 'Summary of DisqusR...
Update summary and description in gemspec
diff --git a/recipes/default.rb b/recipes/default.rb index abc1234..def5678 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -24,6 +24,7 @@ file '/etc/X11/xorg.conf.d/20-nvidia.conf' do action :delete end + package 'xserver-xorg' end # Software.
Install Xorg on non-nvidia systems.
diff --git a/lib/enum_set.rb b/lib/enum_set.rb index abc1234..def5678 100644 --- a/lib/enum_set.rb +++ b/lib/enum_set.rb @@ -11,7 +11,9 @@ def enum_set(enums) enums.each do |column, names| names.map!(&:to_sym) - names_with_bits = names.each_with_index.map { |name, i| [name, 1 << i] } + ...
Use clearer(?) `reduce` block for setter
diff --git a/lib/exercism.rb b/lib/exercism.rb index abc1234..def5678 100644 --- a/lib/exercism.rb +++ b/lib/exercism.rb @@ -12,7 +12,11 @@ class Exercism def self.home - Dir.home(Etc.getlogin) + if ENV["OS"] == 'Windows_NT' then + ENV["HOMEDRIVE"]+ENV["HOMEPATH"] + else + Dir.home(Etc.getlogin)...
Resolve home path for windows users from environment variables Fixes #20 . My ruby skills are non-existant, but it seems to run here...
diff --git a/spec/controllers/welcome_controller_spec.rb b/spec/controllers/welcome_controller_spec.rb index abc1234..def5678 100644 --- a/spec/controllers/welcome_controller_spec.rb +++ b/spec/controllers/welcome_controller_spec.rb @@ -1,4 +1,4 @@-require 'rails_helper' +require "rails_helper" RSpec.describe Welcom...
Add tests checking for esi:include tag when feature is enabled
diff --git a/spec/lib/heaven/provider/capistrano_spec.rb b/spec/lib/heaven/provider/capistrano_spec.rb index abc1234..def5678 100644 --- a/spec/lib/heaven/provider/capistrano_spec.rb +++ b/spec/lib/heaven/provider/capistrano_spec.rb @@ -3,7 +3,7 @@ describe Heaven::Provider::Capistrano do include FixtureHelper - ...
Update capistrano provider spec to use decoded fixture data
diff --git a/core/math/fixtures/classes.rb b/core/math/fixtures/classes.rb index abc1234..def5678 100644 --- a/core/math/fixtures/classes.rb +++ b/core/math/fixtures/classes.rb @@ -3,7 +3,7 @@ end module MathSpecs - class Float + class Float < Numeric def initialize(value=1.0) @value = value end
Math: Make Float fixture inherit from Numeric for 1.9.
diff --git a/lib/capistrano/twelvefactor/tasks/capistrano-twelvefactor.rake b/lib/capistrano/twelvefactor/tasks/capistrano-twelvefactor.rake index abc1234..def5678 100644 --- a/lib/capistrano/twelvefactor/tasks/capistrano-twelvefactor.rake +++ b/lib/capistrano/twelvefactor/tasks/capistrano-twelvefactor.rake @@ -3,31 +3...
Check if params are valid
diff --git a/lib/convection/model/template/resource/aws_sns_subscription.rb b/lib/convection/model/template/resource/aws_sns_subscription.rb index abc1234..def5678 100644 --- a/lib/convection/model/template/resource/aws_sns_subscription.rb +++ b/lib/convection/model/template/resource/aws_sns_subscription.rb @@ -9,12 +9...
Add filter policy property to sns subscriptions resource
diff --git a/app/workers/wallpaper_purity_locker_worker.rb b/app/workers/wallpaper_purity_locker_worker.rb index abc1234..def5678 100644 --- a/app/workers/wallpaper_purity_locker_worker.rb +++ b/app/workers/wallpaper_purity_locker_worker.rb @@ -7,6 +7,6 @@ def perform Wallpaper.where('updated_at < ?', 1.hour.ago...
Use update_all instead of update_attribute
diff --git a/activesupport/lib/active_support/messages/rotation_configuration.rb b/activesupport/lib/active_support/messages/rotation_configuration.rb index abc1234..def5678 100644 --- a/activesupport/lib/active_support/messages/rotation_configuration.rb +++ b/activesupport/lib/active_support/messages/rotation_configur...
Unify rotate method definitions to take keyword arguments
diff --git a/examples/parallel-console.rb b/examples/parallel-console.rb index abc1234..def5678 100644 --- a/examples/parallel-console.rb +++ b/examples/parallel-console.rb @@ -5,7 +5,7 @@ usage = <<-EOS Usage: - $ ./parallel-ssh user@host1 user@host2 ... + $ ruby parallel-console.rb user@host1 user@host2 ... EOS...
Update parallel console to use new features.
diff --git a/lib/aasm_with_fixes.rb b/lib/aasm_with_fixes.rb index abc1234..def5678 100644 --- a/lib/aasm_with_fixes.rb +++ b/lib/aasm_with_fixes.rb @@ -1,14 +1,16 @@+module AASM + class StateMachine + def clone + klone = super + klone.states = states.clone + klone.events = events.clone + klone ...
Update monkey patch to work with AASM 2.0.5
diff --git a/lib/descendants_tracker.rb b/lib/descendants_tracker.rb index abc1234..def5678 100644 --- a/lib/descendants_tracker.rb +++ b/lib/descendants_tracker.rb @@ -13,19 +13,21 @@ # @api public attr_reader :descendants - # Hook called when module is extended + # Setup the class for descendant tracking ...
Change extended method into setup and alias extended to it * The setup method is what is being used directly so I thought it would be better to have it be the explicitly named method rather than extended, which is only used as a side effect.
diff --git a/app/controllers/attendees_controller.rb b/app/controllers/attendees_controller.rb index abc1234..def5678 100644 --- a/app/controllers/attendees_controller.rb +++ b/app/controllers/attendees_controller.rb @@ -5,7 +5,7 @@ def autocomplete matching_attendees = current_user.attendees.where( "emai...
Make attendees autocomplete case insensitive
diff --git a/experian.gemspec b/experian.gemspec index abc1234..def5678 100644 --- a/experian.gemspec +++ b/experian.gemspec @@ -18,7 +18,7 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] - spec.add_dependency "excon" - spec.add_dependency "builder" + spec.add_...
Add required versions for dependent gems
diff --git a/config/locales/plurals.rb b/config/locales/plurals.rb index abc1234..def5678 100644 --- a/config/locales/plurals.rb +++ b/config/locales/plurals.rb @@ -1,34 +1 @@-{ - # Dari - this isn't an iso code. Probably should be 'prs' as per ISO 639-3. - dr: { i18n: { plural: { keys: %i[one other], rule: ->(n) { n...
Use plural rules from govuk_app_config We're moving these rules into govuk_app_config so that it is easier to maintain them.
diff --git a/knapsack.gemspec b/knapsack.gemspec index abc1234..def5678 100644 --- a/knapsack.gemspec +++ b/knapsack.gemspec @@ -9,8 +9,8 @@ spec.authors = ["ArturT"] spec.email = ["arturtrzop@gmail.com"] spec.summary = %q{Parallel specs across CI server nodes based on each spec file's time ...
Update description and homepage for gem
diff --git a/test/controllers/graphql_controller_test.rb b/test/controllers/graphql_controller_test.rb index abc1234..def5678 100644 --- a/test/controllers/graphql_controller_test.rb +++ b/test/controllers/graphql_controller_test.rb @@ -12,10 +12,12 @@ test 'should return my profile' do query = <<~GRAPHQL q...
Fix more deprecated GraphQL queries in tests
diff --git a/test/helpers/checklist_tests_helper_test.rb b/test/helpers/checklist_tests_helper_test.rb index abc1234..def5678 100644 --- a/test/helpers/checklist_tests_helper_test.rb +++ b/test/helpers/checklist_tests_helper_test.rb @@ -2,6 +2,15 @@ class ChecklistTestsHelperTest < ActiveSupport::TestCase include ...
Add tests to verify that lookup_codevalues is working correctly
diff --git a/shogi_koma.gemspec b/shogi_koma.gemspec index abc1234..def5678 100644 --- a/shogi_koma.gemspec +++ b/shogi_koma.gemspec @@ -20,6 +20,9 @@ spec.add_runtime_dependency("cairo") + spec.add_development_dependency("test-unit") + spec.add_development_dependency("test-unit-notify") + spec.add_development...
Add development dependencies for testing
diff --git a/signed_xml.gemspec b/signed_xml.gemspec index abc1234..def5678 100644 --- a/signed_xml.gemspec +++ b/signed_xml.gemspec @@ -10,7 +10,7 @@ gem.email = ["todd.thomas@openlogic.com"] gem.description = %q{XML Signature verification} gem.summary = %q{Provides [incomplete] support for ver...
Set gem homepage to openlogic repo.
diff --git a/two-factor-authentication/verify-webhook/verify-webhook.5.x.rb b/two-factor-authentication/verify-webhook/verify-webhook.5.x.rb index abc1234..def5678 100644 --- a/two-factor-authentication/verify-webhook/verify-webhook.5.x.rb +++ b/two-factor-authentication/verify-webhook/verify-webhook.5.x.rb @@ -0,0 +1,...
Add verify 2FA webhook signature Ruby snippet
diff --git a/lib/api_call.rb b/lib/api_call.rb index abc1234..def5678 100644 --- a/lib/api_call.rb +++ b/lib/api_call.rb @@ -6,18 +6,24 @@ class Call attr_accessor :title + # Take argument title and set it as instance variable. + # def initialize(title) @title = title @action = 'query'...
Add brief comments to ApiCall::Call methods.
diff --git a/connector.rb b/connector.rb index abc1234..def5678 100644 --- a/connector.rb +++ b/connector.rb @@ -3,19 +3,50 @@ require 'net/http' require 'json' require 'fileutils' +require 'optparse' + + require './app/chatbot.rb' require './app/chathandler.rb' require './app/consoleinput.rb' +require './app/sock...
Add option parsing, among other changes
diff --git a/lib/datastax_rails/types/binary_type.rb b/lib/datastax_rails/types/binary_type.rb index abc1234..def5678 100644 --- a/lib/datastax_rails/types/binary_type.rb +++ b/lib/datastax_rails/types/binary_type.rb @@ -5,6 +5,7 @@ def encode(str) raise ArgumentError.new("#{self} requires a String") unl...
Reduce memory usage when storing files
diff --git a/lib/tasks/process.rake b/lib/tasks/process.rake index abc1234..def5678 100644 --- a/lib/tasks/process.rake +++ b/lib/tasks/process.rake @@ -1,4 +1,4 @@-namespace :weekly_scheduler do +namespace :redmine_recurring_tasks do desc 'Run issues check' task exec: :environment do date = Time.now
Rename rake task namespace to redmine_recurring_tasks.
diff --git a/lib/travis/features.rb b/lib/travis/features.rb index abc1234..def5678 100644 --- a/lib/travis/features.rb +++ b/lib/travis/features.rb @@ -7,7 +7,8 @@ module Features mattr_accessor :redis, :rollout class << self - delegate *Rollout.public_instance_methods(false), :to => :rollout + m...
Fix issue on JRuby 1.8.
diff --git a/lib/es/utils.rb b/lib/es/utils.rb index abc1234..def5678 100644 --- a/lib/es/utils.rb +++ b/lib/es/utils.rb @@ -10,7 +10,7 @@ while results['hits']['hits'].any? requests = results['hits']['hits'].each_with_object([]) do |hit, requests| - requests << {index: {_type: hit['_type'], _id: hi...
Maintain _id when copying index
diff --git a/lib/fire/cli.rb b/lib/fire/cli.rb index abc1234..def5678 100644 --- a/lib/fire/cli.rb +++ b/lib/fire/cli.rb @@ -3,15 +3,16 @@ module Fire + # Fire's command line interface. # class CLI - # + # Fire her up! def self.run(argv=ARGV) new(argv).run end - # + # Fire he...
Fix CLI and document a little better.
diff --git a/lib/rolistic.rb b/lib/rolistic.rb index abc1234..def5678 100644 --- a/lib/rolistic.rb +++ b/lib/rolistic.rb @@ -28,6 +28,6 @@ end def inspect - to_s + "#<#{self.class} :#{to_s}>" end end
Make inspect slightly more useful
diff --git a/lib/poke/map.rb b/lib/poke/map.rb index abc1234..def5678 100644 --- a/lib/poke/map.rb +++ b/lib/poke/map.rb @@ -7,6 +7,8 @@ include Poke::ReadMap + # Params required at initialization. + PARAMS_REQUIRED = {:map_file} # Creates a Map object. #
Add required params constant to Map
diff --git a/srl-api.gemspec b/srl-api.gemspec index abc1234..def5678 100644 --- a/srl-api.gemspec +++ b/srl-api.gemspec @@ -27,7 +27,7 @@ s.required_ruby_version = '>= 2.3.0' - s.add_development_dependency = 'minitest' - s.add_development_dependency = 'rake' - s.add_development_dependency = 'simplecov' + s.a...
Fix derp with dev dependencies.
diff --git a/lib/tasks/static_error_pages_tasks.rake b/lib/tasks/static_error_pages_tasks.rake index abc1234..def5678 100644 --- a/lib/tasks/static_error_pages_tasks.rake +++ b/lib/tasks/static_error_pages_tasks.rake @@ -5,7 +5,7 @@ output = "#{error}.html" puts "Generating #{output}..." outpath = File.jo...
Fix error path for rails 4.2
diff --git a/grit-ext.gemspec b/grit-ext.gemspec index abc1234..def5678 100644 --- a/grit-ext.gemspec +++ b/grit-ext.gemspec @@ -20,7 +20,7 @@ s.test_files = `git ls-files -- {spec}/*`.split("\n") s.require_paths = ['lib'] - s.add_dependency 'grit', '~> 2.5.0' - s.add_development_dependency 'rake', '~> 10.1...
Update dependency versioning to not be pessimistic
diff --git a/lib/arel/engines/sql/relations/writes.rb b/lib/arel/engines/sql/relations/writes.rb index abc1234..def5678 100644 --- a/lib/arel/engines/sql/relations/writes.rb +++ b/lib/arel/engines/sql/relations/writes.rb @@ -31,9 +31,13 @@ protected def assignment_sql - assignments.collect do |attribute, ...
Allow strings as update assignments
diff --git a/grape-route-helpers.gemspec b/grape-route-helpers.gemspec index abc1234..def5678 100644 --- a/grape-route-helpers.gemspec +++ b/grape-route-helpers.gemspec @@ -11,7 +11,7 @@ gem.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR) gem.homepage = 'https://github.com/reprah/grape-route-helpers...
Make dependency on grape open-ended
diff --git a/Casks/googleappenginelauncher.rb b/Casks/googleappenginelauncher.rb index abc1234..def5678 100644 --- a/Casks/googleappenginelauncher.rb +++ b/Casks/googleappenginelauncher.rb @@ -1,7 +1,7 @@ class Googleappenginelauncher < Cask - url 'https://commondatastorage.googleapis.com/appengine-sdks/featured/Googl...
Update Google App Engine Launcher to v1.9.2
diff --git a/config/initializers/edition_services.rb b/config/initializers/edition_services.rb index abc1234..def5678 100644 --- a/config/initializers/edition_services.rb +++ b/config/initializers/edition_services.rb @@ -1,18 +1,50 @@-Whitehall.edition_services.tap do |es| - es.subscribe(/^(force_publish|publish|unwit...
Refactor initialiser config for Edition Services Changes to make the code easier to read and understand. * Removes duplicate patterns * Shortens line lengths * Makes method chaining clearer
diff --git a/hideable.gemspec b/hideable.gemspec index abc1234..def5678 100644 --- a/hideable.gemspec +++ b/hideable.gemspec @@ -17,6 +17,6 @@ s.add_development_dependency 'timecop', '~> 0.6.1' s.add_development_dependency 'appraisal', '~> 0.5.2' - s.files = Dir['{lib}/**/*.rb'] + ['README.md'] +...
Update gemspec to include license
diff --git a/lib/quick_travel/status.rb b/lib/quick_travel/status.rb index abc1234..def5678 100644 --- a/lib/quick_travel/status.rb +++ b/lib/quick_travel/status.rb @@ -5,13 +5,13 @@ QuickTravel::Cache.clear QuickTravel::Cache.cache('status-check') { 'start' } unless QuickTravel::Cache.cache('status...
Return DIFFERENT error messages for DIFFERENT problems
diff --git a/lib/sidekiq/cron/poller.rb b/lib/sidekiq/cron/poller.rb index abc1234..def5678 100644 --- a/lib/sidekiq/cron/poller.rb +++ b/lib/sidekiq/cron/poller.rb @@ -19,6 +19,7 @@ # Punt and try again at the next interval logger.error ex.message logger.error ex.backtrace.first + hand...
Handle exception by Sidekiq error handler
diff --git a/cookbooks/rs_utils/recipes/setup_ssh.rb b/cookbooks/rs_utils/recipes/setup_ssh.rb index abc1234..def5678 100644 --- a/cookbooks/rs_utils/recipes/setup_ssh.rb +++ b/cookbooks/rs_utils/recipes/setup_ssh.rb @@ -38,5 +38,9 @@ :private_ssh_key => "#{node.rs_utils.private_ssh_key}" ) end + +else ...
Add log for no ssh key.
diff --git a/pagelapse.gemspec b/pagelapse.gemspec index abc1234..def5678 100644 --- a/pagelapse.gemspec +++ b/pagelapse.gemspec @@ -8,9 +8,9 @@ spec.version = Pagelapse::VERSION spec.authors = ["Robert Lord"] spec.email = ["robert@lord.io"] - spec.summary = %q{TODO: Write a short sum...
Add description and URL to gemspec