diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/lib/bitbucket_rest_api/teams.rb b/lib/bitbucket_rest_api/teams.rb index abc1234..def5678 100644 --- a/lib/bitbucket_rest_api/teams.rb +++ b/lib/bitbucket_rest_api/teams.rb @@ -10,7 +10,7 @@ def list(user_role) response = get_request("/2.0/teams/?role=#{user_role.to_s}") - return response ...
Return values array from response Returning an array of the data rather than the entire response to allow iteration over
diff --git a/lib/usaidwat/either.rb b/lib/usaidwat/either.rb index abc1234..def5678 100644 --- a/lib/usaidwat/either.rb +++ b/lib/usaidwat/either.rb @@ -0,0 +1,22 @@+module USaidWat + class Either + attr_reader :value + + def initialize(value) + @value = value + end + end + + class Left < Either + d...
Create a basic Either monad for chaining operators together
diff --git a/lib/passman/commands/command.rb b/lib/passman/commands/command.rb index abc1234..def5678 100644 --- a/lib/passman/commands/command.rb +++ b/lib/passman/commands/command.rb @@ -1,42 +1,44 @@ require_relative '../helpers/hyphenizer' module Passman - class Command - attr_reader :global, :options, :args...
Include Commands module outside the Command class
diff --git a/spec/dragonfly/data_storage/couch_data_store_spec.rb b/spec/dragonfly/data_storage/couch_data_store_spec.rb index abc1234..def5678 100644 --- a/spec/dragonfly/data_storage/couch_data_store_spec.rb +++ b/spec/dragonfly/data_storage/couch_data_store_spec.rb @@ -3,6 +3,7 @@ require File.dirname(__FILE__) + '/...
Set couch tests to pending when couch isn't being run
diff --git a/test/controllers/gobierto_data/api/v1/query_controller_test.rb b/test/controllers/gobierto_data/api/v1/query_controller_test.rb index abc1234..def5678 100644 --- a/test/controllers/gobierto_data/api/v1/query_controller_test.rb +++ b/test/controllers/gobierto_data/api/v1/query_controller_test.rb @@ -0,0 +1,...
Add tests for data API query controller
diff --git a/app/controllers/backend/articles_controller.rb b/app/controllers/backend/articles_controller.rb index abc1234..def5678 100644 --- a/app/controllers/backend/articles_controller.rb +++ b/app/controllers/backend/articles_controller.rb @@ -6,7 +6,7 @@ before_action -> { breadcrumb.add t('b.articles'), backen...
Order the list of articles.
diff --git a/app/models/concerns/application_userstamp_concern.rb b/app/models/concerns/application_userstamp_concern.rb index abc1234..def5678 100644 --- a/app/models/concerns/application_userstamp_concern.rb +++ b/app/models/concerns/application_userstamp_concern.rb @@ -15,7 +15,12 @@ def add_userstamp_associat...
Fix assets precompile needing a database connection.
diff --git a/lib/opbeat/capistrano.rb b/lib/opbeat/capistrano.rb index abc1234..def5678 100644 --- a/lib/opbeat/capistrano.rb +++ b/lib/opbeat/capistrano.rb @@ -1,7 +1,7 @@ require 'capistrano' require 'capistrano/version' -if Capistrano.constants.include? :VERSION +if Capistrano::VERSION.to_i <= 2 require 'opbea...
Change weird Capistrano version check
diff --git a/lib/vote_tracker/vote.rb b/lib/vote_tracker/vote.rb index abc1234..def5678 100644 --- a/lib/vote_tracker/vote.rb +++ b/lib/vote_tracker/vote.rb @@ -19,7 +19,7 @@ end def to_s - "Senate #{action} #{article} #{type} for #{issue}: #{summary}" + "#Senate #{action} #{article} #{type} for #{...
Add a hashtag for tweets.
diff --git a/0_code_wars/7_jaden_case.rb b/0_code_wars/7_jaden_case.rb index abc1234..def5678 100644 --- a/0_code_wars/7_jaden_case.rb +++ b/0_code_wars/7_jaden_case.rb @@ -0,0 +1,13 @@+# http://www.codewars.com/kata/5390bac347d09b7da40006f6/ +# --- iterations --- +class String + def to_jaden_case + split(" ").map(...
Add code wars (7) jaden case
diff --git a/app/exporters/publishing_api_manual_with_sections_publisher.rb b/app/exporters/publishing_api_manual_with_sections_publisher.rb index abc1234..def5678 100644 --- a/app/exporters/publishing_api_manual_with_sections_publisher.rb +++ b/app/exporters/publishing_api_manual_with_sections_publisher.rb @@ -6,24 +6...
Rename document -> section in PublishingApiManualWithSectionsPublisher
diff --git a/app/models/competitions/portland_short_track_series/overall.rb b/app/models/competitions/portland_short_track_series/overall.rb index abc1234..def5678 100644 --- a/app/models/competitions/portland_short_track_series/overall.rb +++ b/app/models/competitions/portland_short_track_series/overall.rb @@ -9,7 +9,...
Disable monothly short track standings
diff --git a/simple_backend/app/controllers/recipe_lookup.rb b/simple_backend/app/controllers/recipe_lookup.rb index abc1234..def5678 100644 --- a/simple_backend/app/controllers/recipe_lookup.rb +++ b/simple_backend/app/controllers/recipe_lookup.rb @@ -0,0 +1,6 @@+get '/search_recipes' do + response = RestClient.get "...
Change name of recipe search controller
diff --git a/spec/requests/message_thread/thread_views_spec.rb b/spec/requests/message_thread/thread_views_spec.rb index abc1234..def5678 100644 --- a/spec/requests/message_thread/thread_views_spec.rb +++ b/spec/requests/message_thread/thread_views_spec.rb @@ -0,0 +1,18 @@+require "spec_helper" + +# This is a very thin...
Add a thin integration test to ensure that the correct autoscroll class appears when viewing a thread.
diff --git a/spec/controllers/restaurants_controller_spec.rb b/spec/controllers/restaurants_controller_spec.rb index abc1234..def5678 100644 --- a/spec/controllers/restaurants_controller_spec.rb +++ b/spec/controllers/restaurants_controller_spec.rb @@ -1,7 +1,7 @@ require 'rails_helper' -# RSpec.describe RestaurantsC...
Fix restaurants controller rspec test file to pass Travis CI
diff --git a/docurium.gemspec b/docurium.gemspec index abc1234..def5678 100644 --- a/docurium.gemspec +++ b/docurium.gemspec @@ -18,7 +18,7 @@ s.add_dependency "mustache", ">= 0.99.4" s.add_dependency "rocco", "= 0.7.0" s.add_dependency "gli", "~>2.5" - s.add_dependency "rugged", "~>0.17.beta" + s.add_depende...
Use the more accurate ~>0.18.b1 rugged version
diff --git a/lib/specinfra/command/linux/base/lxc_container.rb b/lib/specinfra/command/linux/base/lxc_container.rb index abc1234..def5678 100644 --- a/lib/specinfra/command/linux/base/lxc_container.rb +++ b/lib/specinfra/command/linux/base/lxc_container.rb @@ -1,11 +1,17 @@ class Specinfra::Command::Linux::Base::LxcCon...
Support libvirt lxc as well
diff --git a/app/admin/optional_modules/videos/video_upload.rb b/app/admin/optional_modules/videos/video_upload.rb index abc1234..def5678 100644 --- a/app/admin/optional_modules/videos/video_upload.rb +++ b/app/admin/optional_modules/videos/video_upload.rb @@ -7,6 +7,11 @@ decorate_with VideoUploadDecorator conf...
Add batch action to toggle status for VideoUpload
diff --git a/minimal-mistakes-jekyll.gemspec b/minimal-mistakes-jekyll.gemspec index abc1234..def5678 100644 --- a/minimal-mistakes-jekyll.gemspec +++ b/minimal-mistakes-jekyll.gemspec @@ -15,7 +15,8 @@ f.match(%r{^(assets|_(includes|layouts|sass)/|(LICENSE|README|CHANGELOG)((\.(txt|md|markdown)|$)))}i) end - ...
Add Jekyll v3.3 as dependency
diff --git a/curriculum_vitae.gemspec b/curriculum_vitae.gemspec index abc1234..def5678 100644 --- a/curriculum_vitae.gemspec +++ b/curriculum_vitae.gemspec @@ -9,7 +9,7 @@ spec.authors = ['Murdho'] spec.email = ['murdho@murdho.com'] - spec.summary = 'Simple DSL for creating CV}' + spec.sum...
Remove lost character from gemspec
diff --git a/unicorn/recipes/default.rb b/unicorn/recipes/default.rb index abc1234..def5678 100644 --- a/unicorn/recipes/default.rb +++ b/unicorn/recipes/default.rb @@ -1,10 +1,10 @@-env = YAML::load( `gem environment` )["RubyGems Environment"].detect { |x| x["EXECUTABLE DIRECTORY"] } +require 'rubygems' template "/et...
Use RubyGems class methods to get bindir instead of exec'ing out to the shell
diff --git a/backend/app/controllers/api/v1/jobs_controller.rb b/backend/app/controllers/api/v1/jobs_controller.rb index abc1234..def5678 100644 --- a/backend/app/controllers/api/v1/jobs_controller.rb +++ b/backend/app/controllers/api/v1/jobs_controller.rb @@ -10,7 +10,7 @@ def create job = Job.new(job_params) ...
Fix job create route (redirect issue)
diff --git a/lib/chef/knife/cloudformation_destroy.rb b/lib/chef/knife/cloudformation_destroy.rb index abc1234..def5678 100644 --- a/lib/chef/knife/cloudformation_destroy.rb +++ b/lib/chef/knife/cloudformation_destroy.rb @@ -33,6 +33,7 @@ end if(config[:polling]) if(stacks.size == 1) + ...
Refresh stack information prior to polling to prevent immediate exit
diff --git a/test/integration/default/serverspec/influxdb_spec.rb b/test/integration/default/serverspec/influxdb_spec.rb index abc1234..def5678 100644 --- a/test/integration/default/serverspec/influxdb_spec.rb +++ b/test/integration/default/serverspec/influxdb_spec.rb @@ -0,0 +1,19 @@+require "serverspec" + +include Se...
Add test for the InfluxDB service
diff --git a/vendor/aq_sh/aquarii-sh.rb b/vendor/aq_sh/aquarii-sh.rb index abc1234..def5678 100644 --- a/vendor/aq_sh/aquarii-sh.rb +++ b/vendor/aq_sh/aquarii-sh.rb @@ -1,12 +1,21 @@ #!/usr/bin/env ruby -require 'pathname' +begin + require 'pathname' + base = Pathname(__FILE__).expand_path + lib = base + "../lib/a...
Improve a bit the error handling stuff in aquarii shell
diff --git a/db/migrate/20170106100107_january6_remove_conflicting_content_items.rb b/db/migrate/20170106100107_january6_remove_conflicting_content_items.rb index abc1234..def5678 100644 --- a/db/migrate/20170106100107_january6_remove_conflicting_content_items.rb +++ b/db/migrate/20170106100107_january6_remove_conflict...
Add a migration to remove conflicting content items
diff --git a/examples/jack.rb b/examples/jack.rb index abc1234..def5678 100644 --- a/examples/jack.rb +++ b/examples/jack.rb @@ -4,6 +4,9 @@ # creeper -j jack.rb # OR # ./jack.rb +# +# If you remove the shebang, it can also be run with: +# ruby jack.rb $LOAD_PATH.unshift(File.dirname(__FILE__) + '/../lib') unless ...
Update example to use :all syntax
diff --git a/native-navigation.podspec b/native-navigation.podspec index abc1234..def5678 100644 --- a/native-navigation.podspec +++ b/native-navigation.podspec @@ -5,7 +5,7 @@ Pod::Spec.new do |s| s.name = "native-navigation" s.version = package['version'] - s.summary = "React Native Mapview c...
[minor] Fix podspec summary (wrong project) Just a very minor tweak. It appears that the podspec's summary is describing https://github.com/airbnb/react-native-maps, so probably just a copy-and-paste error.
diff --git a/lib/mongomodel/attributes/typecasting.rb b/lib/mongomodel/attributes/typecasting.rb index abc1234..def5678 100644 --- a/lib/mongomodel/attributes/typecasting.rb +++ b/lib/mongomodel/attributes/typecasting.rb @@ -27,7 +27,7 @@ end def before_type_cast(key) - values_before_typecas...
Fix before type cast values when loaded from database
diff --git a/i18n-hygiene.gemspec b/i18n-hygiene.gemspec index abc1234..def5678 100644 --- a/i18n-hygiene.gemspec +++ b/i18n-hygiene.gemspec @@ -2,8 +2,8 @@ s.name = 'i18n-hygiene' s.version = '0.1.0' s.license = 'MIT' - s.summary = "Helps maintain translations." - s.description = "Provides...
Update gem summary and description to help potential users I lost the discussion about changing the gem name, but I think it's worth expanding the summary and description to provide more detail. In particular, I wanted to include "linter" as a short cut to communicating the type of tool this is.
diff --git a/finances.gemspec b/finances.gemspec index abc1234..def5678 100644 --- a/finances.gemspec +++ b/finances.gemspec @@ -25,5 +25,5 @@ spec.add_development_dependency "cucumber" spec.add_development_dependency "rspec" spec.add_development_dependency "page-object" - spec.add_development_dependency "tmux...
Switch to teamocil for tmux
diff --git a/library/fiddle/handle/initialize_spec.rb b/library/fiddle/handle/initialize_spec.rb index abc1234..def5678 100644 --- a/library/fiddle/handle/initialize_spec.rb +++ b/library/fiddle/handle/initialize_spec.rb @@ -0,0 +1,10 @@+require_relative '../../../spec_helper' +require 'fiddle' + +describe "Fiddle::Han...
Add spec and fix exception for Fiddle::Handle.new with a missing library * Fixes https://github.com/oracle/truffleruby/issues/2714
diff --git a/test/benchmark/metrics.rb b/test/benchmark/metrics.rb index abc1234..def5678 100644 --- a/test/benchmark/metrics.rb +++ b/test/benchmark/metrics.rb @@ -0,0 +1,38 @@+require 'statsd-instrument' +require 'benchmark/ips' + +def helperFunction() + a = 10 + a += a + a -= a + a *= a +end + +Benchmark...
Add benchmarking script for metric types
diff --git a/fonetica.gemspec b/fonetica.gemspec index abc1234..def5678 100644 --- a/fonetica.gemspec +++ b/fonetica.gemspec @@ -15,6 +15,7 @@ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } s.require_paths ...
Add rspec as development dependency
diff --git a/fragrant.gemspec b/fragrant.gemspec index abc1234..def5678 100644 --- a/fragrant.gemspec +++ b/fragrant.gemspec @@ -17,6 +17,7 @@ s.add_dependency 'puma' s.add_dependency 'vegas' s.add_dependency 'grape', "~> 0.2.1" # vendorized, though + s.add_dependency 'virtus' # vendorized grape requires this,...
Add missing 'virtus' gem dependency
diff --git a/db/data/20141102203932_update_display_text_for_obo_sentences.rb b/db/data/20141102203932_update_display_text_for_obo_sentences.rb index abc1234..def5678 100644 --- a/db/data/20141102203932_update_display_text_for_obo_sentences.rb +++ b/db/data/20141102203932_update_display_text_for_obo_sentences.rb @@ -3,7...
Improve code style: Use fancy string.
diff --git a/db/migrate/20151009190325_add_operator_to_schedule_stop_pair.rb b/db/migrate/20151009190325_add_operator_to_schedule_stop_pair.rb index abc1234..def5678 100644 --- a/db/migrate/20151009190325_add_operator_to_schedule_stop_pair.rb +++ b/db/migrate/20151009190325_add_operator_to_schedule_stop_pair.rb @@ -1,6...
Define up migration to avoid re-importing all SSPs
diff --git a/site-cookbooks/mysql_part/recipes/create_database.rb b/site-cookbooks/mysql_part/recipes/create_database.rb index abc1234..def5678 100644 --- a/site-cookbooks/mysql_part/recipes/create_database.rb +++ b/site-cookbooks/mysql_part/recipes/create_database.rb @@ -24,6 +24,7 @@ # create database user mysql_dat...
Fix host parameter in case of creating user.
diff --git a/spec/features/dynamic_exam_spec.rb b/spec/features/dynamic_exam_spec.rb index abc1234..def5678 100644 --- a/spec/features/dynamic_exam_spec.rb +++ b/spec/features/dynamic_exam_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -feature 'Exercise Flow', organization_workspace: :test do +feature 'Dynamic Exam',...
Fix name left over from copy-paste
diff --git a/lib/has_uuid/active_record/associations/singular_association.rb b/lib/has_uuid/active_record/associations/singular_association.rb index abc1234..def5678 100644 --- a/lib/has_uuid/active_record/associations/singular_association.rb +++ b/lib/has_uuid/active_record/associations/singular_association.rb @@ -5,8...
Handle empty uuids on associations
diff --git a/app/models/aws_accessor.rb b/app/models/aws_accessor.rb index abc1234..def5678 100644 --- a/app/models/aws_accessor.rb +++ b/app/models/aws_accessor.rb @@ -27,6 +27,9 @@ private def credentials - Aws::Credentials.new(@access_key_id, @secret_access_key) + Aws::Credentials.new( + @access_ke...
Use environment variables by default
diff --git a/app/concerns/action_controller/cors_protection.rb b/app/concerns/action_controller/cors_protection.rb index abc1234..def5678 100644 --- a/app/concerns/action_controller/cors_protection.rb +++ b/app/concerns/action_controller/cors_protection.rb @@ -21,7 +21,9 @@ "accept", "content-type", "referer", ...
Fix core for PUT & PATCH
diff --git a/app/models/song_section.rb b/app/models/song_section.rb index abc1234..def5678 100644 --- a/app/models/song_section.rb +++ b/app/models/song_section.rb @@ -3,7 +3,7 @@ validates_presence_of :title, :song_id - before_save :set_position_to_end_of_song, if: -> { ordered_by.zero? } + before_save :set_p...
Fix bug when saving SongSection with blank order We were not properly checking for a blank field before assuming it was a numeric. This is corrected. Closes #2
diff --git a/app/controllers/users/contributions_controller.rb b/app/controllers/users/contributions_controller.rb index abc1234..def5678 100644 --- a/app/controllers/users/contributions_controller.rb +++ b/app/controllers/users/contributions_controller.rb @@ -8,7 +8,6 @@ def request_refund authorize resource ...
Remove cancan from users/contributions controller
diff --git a/app/models/work_package.rb b/app/models/work_package.rb index abc1234..def5678 100644 --- a/app/models/work_package.rb +++ b/app/models/work_package.rb @@ -16,6 +16,8 @@ class WorkPackage < Eventable + attr_accessible :wp_type, :description, :learnt, :next_steps, :days + after_create {|q| q.events....
Fix issue adding work package
diff --git a/app/services/jadu/claim.rb b/app/services/jadu/claim.rb index abc1234..def5678 100644 --- a/app/services/jadu/claim.rb +++ b/app/services/jadu/claim.rb @@ -9,19 +9,25 @@ end def perform - if operation.ok? - claim.update fee_group_reference: operation['feeGroupReference'] if operation...
Remove redundant private methods & reduce complexity of perform method
diff --git a/test/fixtures/policies/_base.rb b/test/fixtures/policies/_base.rb index abc1234..def5678 100644 --- a/test/fixtures/policies/_base.rb +++ b/test/fixtures/policies/_base.rb @@ -1,7 +1,7 @@ default_source :community default_source :chef_repo, '..' cookbook 'redis', path: '../../..' -run_list 'redis::defaul...
Add sudo default recipe for /etc/sudoers fix.
diff --git a/lib/formtastic/util.rb b/lib/formtastic/util.rb index abc1234..def5678 100644 --- a/lib/formtastic/util.rb +++ b/lib/formtastic/util.rb @@ -18,8 +18,11 @@ end def rails_safe_buffer_class - return ActionView::SafeBuffer if defined?(ActionView::SafeBuffer) - ActiveSupport::SafeBuffer + ...
Fix a deprecation warning in Rails 2.3.6 and newer
diff --git a/lib/static_sync/config.rb b/lib/static_sync/config.rb index abc1234..def5678 100644 --- a/lib/static_sync/config.rb +++ b/lib/static_sync/config.rb @@ -22,6 +22,7 @@ def storage Fog::Storage.new({ :provider => self.remote['provider'], + :region => self...
Allow regions to be supplied.
diff --git a/lib/hatchet/git_app.rb b/lib/hatchet/git_app.rb index abc1234..def5678 100644 --- a/lib/hatchet/git_app.rb +++ b/lib/hatchet/git_app.rb @@ -17,7 +17,9 @@ end def git_repo - "git@heroku.com:#{name}.git" + 'http' == ENV['HATCHET_GIT_PROTOCOL'] ? + "https://git.heroku.com/#{name}.g...
Use http git when HATCHET_GIT_PROTOCOL is set for http
diff --git a/lib/transproc/compiler.rb b/lib/transproc/compiler.rb index abc1234..def5678 100644 --- a/lib/transproc/compiler.rb +++ b/lib/transproc/compiler.rb @@ -1,3 +1,5 @@+# frozen_string_literal: true + module Transproc # @api private class Compiler
Add missing frozen_string_literal: true comment
diff --git a/lib/usesthis/interview.rb b/lib/usesthis/interview.rb index abc1234..def5678 100644 --- a/lib/usesthis/interview.rb +++ b/lib/usesthis/interview.rb @@ -1,13 +1,13 @@ module UsesThis class Interview < Salt::Post - def initialize(site, path) - super(site, path) - @metadata['layout'] = 'inte...
Set a class path method, ditch the output_path override method.
diff --git a/server.rb b/server.rb index abc1234..def5678 100644 --- a/server.rb +++ b/server.rb @@ -22,5 +22,6 @@ :metadata => {'email' => params[:stripeEmail]}, :description => "Charge for test@example.com" ) + 'success' end end
Stop returning a charge object in POST
diff --git a/server.rb b/server.rb index abc1234..def5678 100644 --- a/server.rb +++ b/server.rb @@ -10,6 +10,8 @@ require "./lib/calculatorapp.rb" require "./lib/calculatorloader.rb" require "./lib/calculatorrouter.rb" + +# HACK: We should find a better way to handle `require'ing this file if __FILE__ == $0 Ca...
Document __FILE__ == $0 hack
diff --git a/lib/chbs/generator.rb b/lib/chbs/generator.rb index abc1234..def5678 100644 --- a/lib/chbs/generator.rb +++ b/lib/chbs/generator.rb @@ -2,11 +2,17 @@ require 'nokogiri' class Chbs::Generator + attr_reader :corpus def initialize(options={}) corpusname = options[:corpus] || 'tv-and-movies' ...
Support path to corpus file. attr_reader :corpus.
diff --git a/lib/git_tracker/runner.rb b/lib/git_tracker/runner.rb index abc1234..def5678 100644 --- a/lib/git_tracker/runner.rb +++ b/lib/git_tracker/runner.rb @@ -19,7 +19,8 @@ end def self.install - puts "`git-tracker install` is deprecated. Please use `git-tracker init`" + warn("`git-tracker in...
Use a warning for the deprecation notice
diff --git a/lib/email_assessor.rb b/lib/email_assessor.rb index abc1234..def5678 100644 --- a/lib/email_assessor.rb +++ b/lib/email_assessor.rb @@ -18,6 +18,6 @@ file_name ||= "" domain = domain.downcase - File.open(file_name).each_line.any? { |line| domain.match?(%r{\A(?:.+\.)*?#{line.chomp}\z}i) } + ...
Use File.foreach to avoid the need to close files
diff --git a/lib/feature/gitaly.rb b/lib/feature/gitaly.rb index abc1234..def5678 100644 --- a/lib/feature/gitaly.rb +++ b/lib/feature/gitaly.rb @@ -7,7 +7,6 @@ # Server feature flags should use '_' to separate words. SERVER_FEATURE_FLAGS = %w[ - get_commit_signatures cache_invalidator ...
Add latest changes from gitlab-org/gitlab@master
diff --git a/lib/frecon/console.rb b/lib/frecon/console.rb index abc1234..def5678 100644 --- a/lib/frecon/console.rb +++ b/lib/frecon/console.rb @@ -6,7 +6,7 @@ begin require "pry" - Pry.start + FReCon.pry rescue Exception => e require "irb"
Include FReCon on Pry start
diff --git a/lib/alipay/sign/rsa.rb b/lib/alipay/sign/rsa.rb index abc1234..def5678 100644 --- a/lib/alipay/sign/rsa.rb +++ b/lib/alipay/sign/rsa.rb @@ -9,8 +9,8 @@ Base64.encode64(rsa.sign('sha1', string)) end - def self.verify?(string, sign) - rsa = OpenSSL::PKey::RSA.new(ALIPAY_RSA_PUBLI...
Fix Sign::RSA key arg missing
diff --git a/Library/Homebrew/test/utils/livecheck_formula_spec.rb b/Library/Homebrew/test/utils/livecheck_formula_spec.rb index abc1234..def5678 100644 --- a/Library/Homebrew/test/utils/livecheck_formula_spec.rb +++ b/Library/Homebrew/test/utils/livecheck_formula_spec.rb @@ -0,0 +1,39 @@+# frozen_string_literal: true ...
Add tests for livecheck_formula utils
diff --git a/lib/rails-footnotes.rb b/lib/rails-footnotes.rb index abc1234..def5678 100644 --- a/lib/rails-footnotes.rb +++ b/lib/rails-footnotes.rb @@ -17,6 +17,11 @@ mattr_accessor :enabled @@enabled = false + + class << self + delegate :notes, :to => Filter + delegate :notes=, :to => Filter + end ...
Allow to change the notes config directly from Footnotes.setup
diff --git a/lib/oprah/test_helpers.rb b/lib/oprah/test_helpers.rb index abc1234..def5678 100644 --- a/lib/oprah/test_helpers.rb +++ b/lib/oprah/test_helpers.rb @@ -1,11 +1,11 @@ module Oprah module TestHelpers - def present_many(*args, &block) - Oprah.present_many(*args, &block) + def present_many(*args,...
Add kwargs splats to TestHelpers
diff --git a/rotp.gemspec b/rotp.gemspec index abc1234..def5678 100644 --- a/rotp.gemspec +++ b/rotp.gemspec @@ -5,7 +5,6 @@ s.name = "rotp" s.version = ROTP::VERSION s.platform = Gem::Platform::RUBY - s.required_ruby_version = '>= 1.9.3' s.license = "MIT" s.authors = ["Mark Perciva...
Save minimum ruby for version 3
diff --git a/lib/pad_utils/pad_text.rb b/lib/pad_utils/pad_text.rb index abc1234..def5678 100644 --- a/lib/pad_utils/pad_text.rb +++ b/lib/pad_utils/pad_text.rb @@ -1,7 +1,7 @@ module PadUtils # Convert a string into a proper Ruby name. - # For example, 'app_name' will be converted to 'AppName' + # For example,...
Add signatures for text insert methods
diff --git a/lib/em-wpn/test_helper.rb b/lib/em-wpn/test_helper.rb index abc1234..def5678 100644 --- a/lib/em-wpn/test_helper.rb +++ b/lib/em-wpn/test_helper.rb @@ -24,13 +24,8 @@ end Client.class_eval do - unless instance_methods.include?(:deliver_with_testing) - def deliver_with_testing(notific...
Test helper shouldn't deliver the notification
diff --git a/lib/engineyard/version.rb b/lib/engineyard/version.rb index abc1234..def5678 100644 --- a/lib/engineyard/version.rb +++ b/lib/engineyard/version.rb @@ -1,4 +1,4 @@ module EY - VERSION = '3.2.0' + VERSION = '3.2.1.pre' ENGINEYARD_SERVERSIDE_VERSION = ENV['ENGINEYARD_SERVERSIDE_VERSION'] || '2.6.3' end...
Add .pre for next release
diff --git a/lib/resque_poll/engine.rb b/lib/resque_poll/engine.rb index abc1234..def5678 100644 --- a/lib/resque_poll/engine.rb +++ b/lib/resque_poll/engine.rb @@ -1,7 +1,5 @@ module ResquePoll class Engine < ::Rails::Engine isolate_namespace ResquePoll - - config.authentication_method = nil end end
Remove auth method config option
diff --git a/test/functional/notable_detailed_template_test.rb b/test/functional/notable_detailed_template_test.rb index abc1234..def5678 100644 --- a/test/functional/notable_detailed_template_test.rb +++ b/test/functional/notable_detailed_template_test.rb @@ -29,5 +29,3 @@ # assert Digest::MD5.hexdigest(File.read(@fi...
Test still runs but commented out? win!
diff --git a/lib/stairway/stairs.rb b/lib/stairway/stairs.rb index abc1234..def5678 100644 --- a/lib/stairway/stairs.rb +++ b/lib/stairway/stairs.rb @@ -35,6 +35,12 @@ end end + def run_step(name, context={}, options={}) + notify(context, options) + + @steps[name].run + end + protected ...
Add run_step to run a single step at once
diff --git a/argf.rb b/argf.rb index abc1234..def5678 100644 --- a/argf.rb +++ b/argf.rb @@ -7,13 +7,10 @@ } # Get all lines of all files, one by one using file handles -puts ARGF.filename -ARGF.file.each_line { |line| - puts line -} -ARGF.close -puts ARGF.filename -ARGF.file.each_line { |line| - puts line -} -A...
Use a loop instead of the previous version which only handled exactly two files
diff --git a/0_code_wars/make_acronym.rb b/0_code_wars/make_acronym.rb index abc1234..def5678 100644 --- a/0_code_wars/make_acronym.rb +++ b/0_code_wars/make_acronym.rb @@ -0,0 +1,7 @@+# http://www.codewars.com/kata/557efeb04effce569d000022/ +# --- iteration 1 --- +def make_acronym(phrase) + return "Not a string" unle...
Add code wars (7) - make acronym
diff --git a/db/migrate/20110914211417_default_email_prefs_to_true.rb b/db/migrate/20110914211417_default_email_prefs_to_true.rb index abc1234..def5678 100644 --- a/db/migrate/20110914211417_default_email_prefs_to_true.rb +++ b/db/migrate/20110914211417_default_email_prefs_to_true.rb @@ -0,0 +1,10 @@+class DefaultEmail...
Set email prefs to true for exising records (prior default behavior)
diff --git a/db/migrate/20190212171331_change_request_id_to_bigint.rb b/db/migrate/20190212171331_change_request_id_to_bigint.rb index abc1234..def5678 100644 --- a/db/migrate/20190212171331_change_request_id_to_bigint.rb +++ b/db/migrate/20190212171331_change_request_id_to_bigint.rb @@ -0,0 +1,9 @@+class ChangeRequest...
Update request_id primary key to bigint
diff --git a/lib/gds_api/helpers.rb b/lib/gds_api/helpers.rb index abc1234..def5678 100644 --- a/lib/gds_api/helpers.rb +++ b/lib/gds_api/helpers.rb @@ -0,0 +1,25 @@+require 'gds_api/publisher' +require 'gds_api/imminence' +require 'gds_api/panopticon' + +module GdsApi + module Helpers + def publisher_api + @a...
Add a helper module that can be used in our apps' controllers
diff --git a/SVWebViewController.podspec b/SVWebViewController.podspec index abc1234..def5678 100644 --- a/SVWebViewController.podspec +++ b/SVWebViewController.podspec @@ -6,7 +6,7 @@ s.license = 'MIT' s.author = { 'Sam Vermette' => 'hello@samvermette.com' } s.source = { :git => 'https://gi...
Make podspec iOS 7 only.
diff --git a/lib/locale_kit/version.rb b/lib/locale_kit/version.rb index abc1234..def5678 100644 --- a/lib/locale_kit/version.rb +++ b/lib/locale_kit/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module LocaleKit - VERSION = '0.0.3'.freeze + VERSION = "0.0.3" end
Change syntax for raise rubocop offences
diff --git a/helpers/utils.rb b/helpers/utils.rb index abc1234..def5678 100644 --- a/helpers/utils.rb +++ b/helpers/utils.rb @@ -1,6 +1,6 @@ def valid_datatype(datatype) - return ['int', 'double', 'float', 'string', 'String', 'bool', 'boolean', 'char'].include? datatype.chomp + return ['short', 'byte', 'char', 'int...
Add more valid data types
diff --git a/lib/wright/provider.rb b/lib/wright/provider.rb index abc1234..def5678 100644 --- a/lib/wright/provider.rb +++ b/lib/wright/provider.rb @@ -2,26 +2,26 @@ require 'wright/util/recursive_autoloader' module Wright - # Public: Provider class. + # Provider class. class Provider - # Public: Wright sta...
Convert Provider top level docs to yard
diff --git a/manifests/cf-manifest/scripts/generate-cf-secrets.rb b/manifests/cf-manifest/scripts/generate-cf-secrets.rb index abc1234..def5678 100644 --- a/manifests/cf-manifest/scripts/generate-cf-secrets.rb +++ b/manifests/cf-manifest/scripts/generate-cf-secrets.rb @@ -0,0 +1,43 @@+#!/usr/bin/env ruby + +require 'op...
Create new CF secret generator that uses new lib This will allow us to pass in the existing secrets so that only ones that are missing will be generated.
diff --git a/lib/wicked_pdf/railtie.rb b/lib/wicked_pdf/railtie.rb index abc1234..def5678 100644 --- a/lib/wicked_pdf/railtie.rb +++ b/lib/wicked_pdf/railtie.rb @@ -3,12 +3,16 @@ if defined?(Rails) - if Rails::VERSION::MAJOR == 4 + if Rails::VERSION::MAJOR == 3 class WickedRailtie < Rails::Railtie i...
Split Railtie logic for Rails 2, 3, and 4+
diff --git a/lib/purpur/helpers.rb b/lib/purpur/helpers.rb index abc1234..def5678 100644 --- a/lib/purpur/helpers.rb +++ b/lib/purpur/helpers.rb @@ -8,7 +8,7 @@ content_tag(:span, {class: styleclass, data: { icon: Purpur.icon_name(name), 'icon-size' => size }}.deep_merge(options)) do content_tag(:span, c...
Fix synonym set for the icons
diff --git a/spec/services/ci/stop_environment_service_spec.rb b/spec/services/ci/stop_environment_service_spec.rb index abc1234..def5678 100644 --- a/spec/services/ci/stop_environment_service_spec.rb +++ b/spec/services/ci/stop_environment_service_spec.rb @@ -7,7 +7,7 @@ let(:service) { described_class.new(project, ...
Extend tests for service that stops environment
diff --git a/4_custom/reverse_linked_list.rb b/4_custom/reverse_linked_list.rb index abc1234..def5678 100644 --- a/4_custom/reverse_linked_list.rb +++ b/4_custom/reverse_linked_list.rb @@ -0,0 +1,88 @@+require_relative "./testable" + +class ReverseLinkedList + include Testable + + # Definition for singly-linked list....
Add iterative reverse linked list
diff --git a/lib/modalsupport/mixins/bracket_constructor.rb b/lib/modalsupport/mixins/bracket_constructor.rb index abc1234..def5678 100644 --- a/lib/modalsupport/mixins/bracket_constructor.rb +++ b/lib/modalsupport/mixins/bracket_constructor.rb @@ -1,4 +1,26 @@-# Mixin that adds a [] operator constructor to a class +# ...
Add some comments to BracketConstructor.
diff --git a/examples/livefeed_loop.rb b/examples/livefeed_loop.rb index abc1234..def5678 100644 --- a/examples/livefeed_loop.rb +++ b/examples/livefeed_loop.rb @@ -13,7 +13,7 @@ result = client.next_result result.posts.each do |post| - puts "#{post.indexed} - #{post.url}" + puts "#{post.indexed_at} - #{po...
Fix attribute for livefeed loop example Was changed in dff29e6808ce9cbdbee94a5fdc8970610b4a7cdd
diff --git a/site-cookbooks/backup_restore/spec/recipes/restore_ruby_spec.rb b/site-cookbooks/backup_restore/spec/recipes/restore_ruby_spec.rb index abc1234..def5678 100644 --- a/site-cookbooks/backup_restore/spec/recipes/restore_ruby_spec.rb +++ b/site-cookbooks/backup_restore/spec/recipes/restore_ruby_spec.rb @@ -0,0...
Add chef-spec for restore_ruby recipe
diff --git a/lib/phare/check/jshint.rb b/lib/phare/check/jshint.rb index abc1234..def5678 100644 --- a/lib/phare/check/jshint.rb +++ b/lib/phare/check/jshint.rb @@ -8,7 +8,7 @@ @config = File.expand_path("#{directory}.jshintrc", __FILE__) @path = File.expand_path("#{directory}app/assets/javascripts", _...
Fix issue with es6 extension with JSHint
diff --git a/hurley.gemspec b/hurley.gemspec index abc1234..def5678 100644 --- a/hurley.gemspec +++ b/hurley.gemspec @@ -9,6 +9,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency "bundler", "~> 1.0" + spec.add_development_dependency "sinatra", "~> 1.4" spec.authors = contributors.keys.compac...
Add sinatra as development dependency for testing purposes Used for test suite
diff --git a/lib/quartz/validations.rb b/lib/quartz/validations.rb index abc1234..def5678 100644 --- a/lib/quartz/validations.rb +++ b/lib/quartz/validations.rb @@ -5,12 +5,21 @@ File.exist?(File.join(directory, 'go')) end - raise 'Go not installed' unless go_exists + raise 'Go not installed.' unless...
Support multiple directories in GOPATH
diff --git a/lib/quill/builder/html.rb b/lib/quill/builder/html.rb index abc1234..def5678 100644 --- a/lib/quill/builder/html.rb +++ b/lib/quill/builder/html.rb @@ -25,6 +25,12 @@ attrs << ['<b>', '</b>'] when 'italic' attrs << ['<i>', '</i>'] + when 'underline' + ...
Support underline, strike and background
diff --git a/lib/tent-client/middleware/content_type_header.rb b/lib/tent-client/middleware/content_type_header.rb index abc1234..def5678 100644 --- a/lib/tent-client/middleware/content_type_header.rb +++ b/lib/tent-client/middleware/content_type_header.rb @@ -4,7 +4,7 @@ module Middleware class ContentTypeHeade...
Fix content type header middleware
diff --git a/neo-dci.gemspec b/neo-dci.gemspec index abc1234..def5678 100644 --- a/neo-dci.gemspec +++ b/neo-dci.gemspec @@ -15,7 +15,7 @@ gem.require_paths = ["lib"] gem.version = Neo::DCI::VERSION - gem.add_runtime_dependency 'on', '~> 0.3.3' + gem.add_runtime_dependency 'on', '~> 1.0.0' gem.add_d...
Upgrade 'on' gem to 1.0.0
diff --git a/lib/tasks/emails.rake b/lib/tasks/emails.rake index abc1234..def5678 100644 --- a/lib/tasks/emails.rake +++ b/lib/tasks/emails.rake @@ -2,14 +2,14 @@ task send_emails: :environment do next unless PullRequest.in_date_range? - User.all.each do |user| + User.all.find_each do |user| Notification.ne...
Load users in batches in email tasks
diff --git a/lib/tasks/import.rake b/lib/tasks/import.rake index abc1234..def5678 100644 --- a/lib/tasks/import.rake +++ b/lib/tasks/import.rake @@ -1,10 +1,12 @@ namespace :import do + # usage rake import:all_photos['~/Pictures'] task :all_photos, [:path] => :environment do |t, args| require "album_set_proces...
Add usage comments for tasks
diff --git a/lib/tasks/travis.rake b/lib/tasks/travis.rake index abc1234..def5678 100644 --- a/lib/tasks/travis.rake +++ b/lib/tasks/travis.rake @@ -27,7 +27,6 @@ db:migrate tmp:create spec - js:test js:lint spec:coverage:ensure ]
Disable JS tests until we sort out buster.
diff --git a/app/controllers/spree/conekta/payments_controller.rb b/app/controllers/spree/conekta/payments_controller.rb index abc1234..def5678 100644 --- a/app/controllers/spree/conekta/payments_controller.rb +++ b/app/controllers/spree/conekta/payments_controller.rb @@ -1,5 +1,6 @@ module Spree::Conekta class Paym...
Add OrderHelpers for FIX error in show the payments for missing order_just_completed? method
diff --git a/app/models/concerns/is_an_entity_with_identifiers.rb b/app/models/concerns/is_an_entity_with_identifiers.rb index abc1234..def5678 100644 --- a/app/models/concerns/is_an_entity_with_identifiers.rb +++ b/app/models/concerns/is_an_entity_with_identifiers.rb @@ -12,6 +12,16 @@ new_model.identifiers = ne...
Add add_identifier and remove_identifier methods to IsAnEntityWithIdentifiers concern
diff --git a/lib/spork/run_strategy.rb b/lib/spork/run_strategy.rb index abc1234..def5678 100644 --- a/lib/spork/run_strategy.rb +++ b/lib/spork/run_strategy.rb @@ -28,7 +28,7 @@ protected def self.factory(test_framework) - if RUBY_PLATFORM =~ /mswin/ + if RUBY_PLATFORM =~ /mswin|mingw/ Spor...
Work with mingw compiled versions of Windows.
diff --git a/minitest_to_rspec.gemspec b/minitest_to_rspec.gemspec index abc1234..def5678 100644 --- a/minitest_to_rspec.gemspec +++ b/minitest_to_rspec.gemspec @@ -9,8 +9,8 @@ spec.authors = ["Jared Beck"] spec.email = ["jared@jaredbeck.com"] - spec.summary = %q{Converts minitest files to rspec} - spec.homepa...
Add homepage to gemspec [ci skip]