diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/vagrant-proxyconf.gemspec b/vagrant-proxyconf.gemspec index abc1234..def5678 100644 --- a/vagrant-proxyconf.gemspec +++ b/vagrant-proxyconf.gemspec @@ -10,7 +10,7 @@ spec.email = ["teemu.matilainen@iki.fi"] spec.description = "A Vagrant Plugin that configures the virtual machine to use proxi...
Update home page link to gemspec
diff --git a/app/services/benchmark_pool.rb b/app/services/benchmark_pool.rb index abc1234..def5678 100644 --- a/app/services/benchmark_pool.rb +++ b/app/services/benchmark_pool.rb @@ -3,7 +3,7 @@ case repo_name when 'ruby' RemoteServerJob.perform_later(commit_sha, 'ruby_trunk') - RemoteServerJob.p...
Disable Discourse per commit benchmarks.
diff --git a/test/functional/admin/generic_editions_controller_tests/attachments_workflow_test.rb b/test/functional/admin/generic_editions_controller_tests/attachments_workflow_test.rb index abc1234..def5678 100644 --- a/test/functional/admin/generic_editions_controller_tests/attachments_workflow_test.rb +++ b/test/fun...
Add unimplemented test for display of attachments This test replaces some of the tests that we've just removed...
diff --git a/db/migrate/20141208152336_update_eastern_area.rb b/db/migrate/20141208152336_update_eastern_area.rb index abc1234..def5678 100644 --- a/db/migrate/20141208152336_update_eastern_area.rb +++ b/db/migrate/20141208152336_update_eastern_area.rb @@ -0,0 +1,22 @@+class UpdateEasternArea < Mongoid::Migration + de...
Update bsf area east-of-england to eastern
diff --git a/app/controllers/achievements_controller.rb b/app/controllers/achievements_controller.rb index abc1234..def5678 100644 --- a/app/controllers/achievements_controller.rb +++ b/app/controllers/achievements_controller.rb @@ -5,9 +5,6 @@ include ActionView::Helpers::TextHelper def index - # Use created...
Load achievements on achievement index page
diff --git a/app/controllers/api/v1/tasks_controller.rb b/app/controllers/api/v1/tasks_controller.rb index abc1234..def5678 100644 --- a/app/controllers/api/v1/tasks_controller.rb +++ b/app/controllers/api/v1/tasks_controller.rb @@ -1,6 +1,6 @@ class Api::V1::TasksController < ApplicationController before_action :au...
Add task list to params and add destroy action
diff --git a/spec/lita/handler_spec.rb b/spec/lita/handler_spec.rb index abc1234..def5678 100644 --- a/spec/lita/handler_spec.rb +++ b/spec/lita/handler_spec.rb @@ -0,0 +1,21 @@+require "spec_helper" + +describe Lita::Handler do + let(:robot) do + robot = double("Robot") + allow(robot).to receive(:name).and_retu...
Add partial coverage for Handler.
diff --git a/spec/models/label_spec.rb b/spec/models/label_spec.rb index abc1234..def5678 100644 --- a/spec/models/label_spec.rb +++ b/spec/models/label_spec.rb @@ -5,4 +5,27 @@ it { label.should be_valid } it { should belong_to(:project) } + + describe 'Validation' do + it 'should validate color code' do + ...
Add spec on labels validation
diff --git a/spec/support/functions.rb b/spec/support/functions.rb index abc1234..def5678 100644 --- a/spec/support/functions.rb +++ b/spec/support/functions.rb @@ -1,4 +1,12 @@+# Problems with temporary files being unlinked. +# Manually controlling garbage collection solves +# this +GC.disable + def generate_rules(se...
Fix temporary file unlinking problem: manual GC
diff --git a/app/controllers/static_pages_controller.rb b/app/controllers/static_pages_controller.rb index abc1234..def5678 100644 --- a/app/controllers/static_pages_controller.rb +++ b/app/controllers/static_pages_controller.rb @@ -3,7 +3,7 @@ def home @song = Song.includes(playings: :user).pickup - @lives...
Remove unnecessary `includes` in the home
diff --git a/lib/cassanity/retry_strategies/exponential_backoff.rb b/lib/cassanity/retry_strategies/exponential_backoff.rb index abc1234..def5678 100644 --- a/lib/cassanity/retry_strategies/exponential_backoff.rb +++ b/lib/cassanity/retry_strategies/exponential_backoff.rb @@ -6,7 +6,7 @@ ForeverSentinel = :foreve...
Change sleep times to be same case as other constants.
diff --git a/app/serializers/task_comment_serializer.rb b/app/serializers/task_comment_serializer.rb index abc1234..def5678 100644 --- a/app/serializers/task_comment_serializer.rb +++ b/app/serializers/task_comment_serializer.rb @@ -1,5 +1,5 @@ class TaskCommentSerializer < ActiveModel::Serializer - attributes :id, :c...
NEW: Add recipient_id and is_new to comment serializer
diff --git a/lib/model_patches.rb b/lib/model_patches.rb index abc1234..def5678 100644 --- a/lib/model_patches.rb +++ b/lib/model_patches.rb @@ -14,4 +14,13 @@ "information" end end + + OutgoingMessage.class_eval do + def default_letter + _("Under the right of access t...
Add intro paragraph to new request template
diff --git a/lib/punchblock/protocol/rayo/event/dtmf.rb b/lib/punchblock/protocol/rayo/event/dtmf.rb index abc1234..def5678 100644 --- a/lib/punchblock/protocol/rayo/event/dtmf.rb +++ b/lib/punchblock/protocol/rayo/event/dtmf.rb @@ -9,6 +9,10 @@ read_attr :signal end + def signal=(othe...
Allow setting the signal on a DTMF event
diff --git a/lib/services.rb b/lib/services.rb index abc1234..def5678 100644 --- a/lib/services.rb +++ b/lib/services.rb @@ -4,7 +4,8 @@ def self.publishing_api @publishing_api ||= GdsApi::PublishingApiV2.new( Plek.find('publishing-api'), - bearer_token: ENV['PUBLISHING_API_BEARER_TOKEN'] || 'example...
Set publishing-api timeout to 10 seconds Publishing API is sometimes a bit slow when handling large linksets like the education taxonomy.
diff --git a/lib/services.rb b/lib/services.rb index abc1234..def5678 100644 --- a/lib/services.rb +++ b/lib/services.rb @@ -2,6 +2,9 @@ module Services def self.publishing_api - @publishing_api ||= GdsApi::PublishingApiV2.new(Plek.new.find('publishing-api')) + @publishing_api ||= GdsApi::PublishingApiV2.new...
Add bearer_token for publishing API authentication
diff --git a/app/workers/send_contact_message_worker.rb b/app/workers/send_contact_message_worker.rb index abc1234..def5678 100644 --- a/app/workers/send_contact_message_worker.rb +++ b/app/workers/send_contact_message_worker.rb @@ -2,6 +2,6 @@ include Sidekiq::Worker def perform(contact_params) - ContactMail...
Fix parameters when running Sidekiq job
diff --git a/lib/convergence/config.rb b/lib/convergence/config.rb index abc1234..def5678 100644 --- a/lib/convergence/config.rb +++ b/lib/convergence/config.rb @@ -15,7 +15,7 @@ end def self.load(yaml_path) - setting = YAML.load(ERB.new(File.read(yaml_path)).result) + setting = YAML.safe_load(ERB.new(File...
Modify to use `YAML.safe_load` instead of `YAML.load`
diff --git a/lib/poke/controls.rb b/lib/poke/controls.rb index abc1234..def5678 100644 --- a/lib/poke/controls.rb +++ b/lib/poke/controls.rb @@ -1,6 +1,11 @@ class Controls PARAMS_REQUIRED = [:window] + + BUTTONS = { up: Gosu::KbUp, + down: Gosu::KbDown, + left: Gosu::KbLeft, + ...
Add BUTTONS constant hash to Controls
diff --git a/lib/extensions/ar_base.rb b/lib/extensions/ar_base.rb index abc1234..def5678 100644 --- a/lib/extensions/ar_base.rb +++ b/lib/extensions/ar_base.rb @@ -29,7 +29,7 @@ def self.connectable? connection && connected? - rescue ActiveRecord::NoDatabaseError, PG::ConnectionBad + rescue ActiveRe...
Fix connectable? due to a new error type in Rails 6.1
diff --git a/lib/goodbye_translated.rb b/lib/goodbye_translated.rb index abc1234..def5678 100644 --- a/lib/goodbye_translated.rb +++ b/lib/goodbye_translated.rb @@ -13,4 +13,55 @@ return "Goodbye, #{people}!" end end + + def self.say_goodbye_in(language) + translator = Translator.new(language) + re...
Add some more code to this gem
diff --git a/lib/ruboty/action.rb b/lib/ruboty/action.rb index abc1234..def5678 100644 --- a/lib/ruboty/action.rb +++ b/lib/ruboty/action.rb @@ -1,7 +1,7 @@ module Ruboty class Action def self.prefix_pattern(robot_name) - /\A@?#{Regexp.escape(robot_name)}:?\s+/ + /\A@?#{Regexp.escape(robot_name)}:?[[:...
Support unicode spaces like U+00a0 On some platform, spaces may be converted to Unicode spaces, and `\s+` is not matched with such Unicode spaces. This patch just changes regex pattern from `\s` to `[[:space:]]`. I confirmed that Slack on Mac OS X will convert `" "` to `" \u{00a0}"` automatically on copy-and-past.
diff --git a/lib/snmpjr/getter.rb b/lib/snmpjr/getter.rb index abc1234..def5678 100644 --- a/lib/snmpjr/getter.rb +++ b/lib/snmpjr/getter.rb @@ -14,6 +14,7 @@ get_request partial_oids }.flatten @session.close + #TODO: Make result be a single object if a single oid was requested result ...
Add a todo to return a single resposne when a single string is requested
diff --git a/lib/keylime/credential.rb b/lib/keylime/credential.rb index abc1234..def5678 100644 --- a/lib/keylime/credential.rb +++ b/lib/keylime/credential.rb @@ -17,15 +17,6 @@ get || prompt(message) end - def prompt(message) - set UserInput.new( - message: message, - secret: true,...
Make .prompt a private method Because .get! wraps .prompt, we don't want to expose .prompt directly to the user
diff --git a/lib/thermite/util.rb b/lib/thermite/util.rb index abc1234..def5678 100644 --- a/lib/thermite/util.rb +++ b/lib/thermite/util.rb @@ -23,6 +23,9 @@ # Utility methods # module Util + # + # Logs a debug message to the specified `config.debug_filename`, if set. + # def debug(msg) # ...
Add missing docs for debug
diff --git a/lib/w3clove/error.rb b/lib/w3clove/error.rb index abc1234..def5678 100644 --- a/lib/w3clove/error.rb +++ b/lib/w3clove/error.rb @@ -6,11 +6,8 @@ # message...... generic but descriptive text about the error # module W3Clove - class Error - attr_accessor :message_id, :line, :message + Error = Struct.n...
Simplify Error implementation, only a struct is needed at this point
diff --git a/metadata.rb b/metadata.rb index abc1234..def5678 100644 --- a/metadata.rb +++ b/metadata.rb @@ -6,6 +6,9 @@ long_description 'Installs/Configures s3_dir' version '1.4.1' +source_url 'https://github.com/evertrue/s3_dir/' if respond_to?(:source_url) +issues_url 'https://github.com/evertrue/s3_dir...
Add source and issues URLs
diff --git a/metadata.rb b/metadata.rb index abc1234..def5678 100644 --- a/metadata.rb +++ b/metadata.rb @@ -6,5 +6,5 @@ long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) version "2.0.3" -depends "application", "~> 3.0" +depends "application", "~> 4.0" depends "nginx"
Update dependency on app cookbook Refs #15
diff --git a/recipes/_deps.rb b/recipes/_deps.rb index abc1234..def5678 100644 --- a/recipes/_deps.rb +++ b/recipes/_deps.rb @@ -1,21 +1,24 @@ include_recipe 'build-essential' %w( - autoconf - libboost1.54-dev - libboost-context1.54-dev - libboost-filesystem1.54-dev - libboost-python1.54-dev - libboost-regex1....
Clean up & update dependency pkgs Folly & mcrouter have added some dependencies, and clarified others. Additionally, this list avoids duplicating deps that the build-essential cookbook provides.
diff --git a/ruby_event_store-rom/lib/ruby_event_store/rom/adapters/sql/changesets/update_events.rb b/ruby_event_store-rom/lib/ruby_event_store/rom/adapters/sql/changesets/update_events.rb index abc1234..def5678 100644 --- a/ruby_event_store-rom/lib/ruby_event_store/rom/adapters/sql/changesets/update_events.rb +++ b/ru...
Fix to indicate which columns to update
diff --git a/cmd/spree_cmd.gemspec b/cmd/spree_cmd.gemspec index abc1234..def5678 100644 --- a/cmd/spree_cmd.gemspec +++ b/cmd/spree_cmd.gemspec @@ -19,5 +19,5 @@ s.add_development_dependency 'rspec' # Temporary hack until https://github.com/wycats/thor/issues/234 is fixed - s.add_dependency 'thor', '~> 0.14' +...
Update thor requirement from ~> 0.14 to >= 0.14, < 2.0 in /cmd Updates the requirements on [thor](https://github.com/wycats/thor) to permit the latest version. - [Release notes](https://github.com/wycats/thor/releases) - [Changelog](https://github.com/erikhuda/thor/blob/master/CHANGELOG.md) - [Commits](https://github....
diff --git a/mongoid-sequence.gemspec b/mongoid-sequence.gemspec index abc1234..def5678 100644 --- a/mongoid-sequence.gemspec +++ b/mongoid-sequence.gemspec @@ -8,7 +8,7 @@ gem.summary = %q{Specify fields to behave like a sequence number (exactly like the "id" column in conventional SQL flavors).} gem.homepa...
Allow for mongoid 3 dependencies
diff --git a/json_spec.gemspec b/json_spec.gemspec index abc1234..def5678 100644 --- a/json_spec.gemspec +++ b/json_spec.gemspec @@ -22,5 +22,5 @@ s.add_dependency "rspec", "~> 2.0" s.add_development_dependency "rake", "~> 0.9" - s.add_development_dependency "cucumber", "~> 1.0" + s.add_development_dependency ...
Update the Cucumber dependency so that the step helper is used rather than Given/When/Then substeps
diff --git a/knife-ec2.gemspec b/knife-ec2.gemspec index abc1234..def5678 100644 --- a/knife-ec2.gemspec +++ b/knife-ec2.gemspec @@ -17,7 +17,7 @@ s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) } s.required_ruby_version = ">= 2.3" - s.add_dependency "fog-aws", "~> 1.0" + s.add_...
Allow for fog-aws 1.0 - 3.0 Give a range so this still works with older DK releases Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
diff --git a/lib/tasks/panopticon.rake b/lib/tasks/panopticon.rake index abc1234..def5678 100644 --- a/lib/tasks/panopticon.rake +++ b/lib/tasks/panopticon.rake @@ -14,7 +14,7 @@ slug: APP_SLUG, title: "UK Trade Tariff", description: "Search for import and export commodity codes and for tax, d...
Update need id to new format Using 100233: Find out the correct trade tariffs for items I am importing or exporting. Seems like the closest match as B659 is not longer there
diff --git a/lib/tasks/rich_tasks.rake b/lib/tasks/rich_tasks.rake index abc1234..def5678 100644 --- a/lib/tasks/rich_tasks.rake +++ b/lib/tasks/rich_tasks.rake @@ -2,7 +2,7 @@ desc "Create nondigest versions of all ckeditor digest assets" task "assets:precompile" do - fingerprint = /\-[0-9a-f]{32}\./ + fingerprin...
Fix rich rake task assets:precompile, to store non digest versions of assets. Because of sprockets version 3 use fingerprints with 64 chars length
diff --git a/lib/tumblargh/api/base.rb b/lib/tumblargh/api/base.rb index abc1234..def5678 100644 --- a/lib/tumblargh/api/base.rb +++ b/lib/tumblargh/api/base.rb @@ -2,6 +2,9 @@ module API class Base + + # Needed by renderer for context propagation + attr_accessor :context def initializ...
Allow resource objects to propagating rendering context
diff --git a/profile_test.rb b/profile_test.rb index abc1234..def5678 100644 --- a/profile_test.rb +++ b/profile_test.rb @@ -1,14 +1,9 @@ #!/usr/bin/env ruby -rprofile require ARGV[0]||"./core" require "./rijndael" -require "crypt/cbc" -puts "Encrypting a fairly big block of text...\n"; - -huge_ptext = File.open("b...
Add a new (non-CBC) profiler script
diff --git a/config/initializers/rummager.rb b/config/initializers/rummager.rb index abc1234..def5678 100644 --- a/config/initializers/rummager.rb +++ b/config/initializers/rummager.rb @@ -4,6 +4,6 @@ Whitehall::SearchClient.search_uri = Rummageable.rummager_host + Whitehall.router_prefix + "/search" -unless Rails....
Use real Rummageable implementation if the host has been set. This is more convenient when developing against a local rummager instance.
diff --git a/async_invocation.gemspec b/async_invocation.gemspec index abc1234..def5678 100644 --- a/async_invocation.gemspec +++ b/async_invocation.gemspec @@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = 'evt-async_invocation' - s.version = '0.1.0.4' + s.version = '0.1.0.5' s....
Package version is increased from 0.1.0.4 to 0.1.0.5
diff --git a/declarative_authorization.gemspec b/declarative_authorization.gemspec index abc1234..def5678 100644 --- a/declarative_authorization.gemspec +++ b/declarative_authorization.gemspec @@ -8,9 +8,7 @@ s.authors = ["Steffen Bartsch"] s.summary = "declarative_authorization is a Rails plugin for maintainable ...
Remove deprecated rdoc from gemspec
diff --git a/config/application.rb b/config/application.rb index abc1234..def5678 100644 --- a/config/application.rb +++ b/config/application.rb @@ -24,5 +24,11 @@ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. config.i18n.load_path += Dir[Rails.root.join('config...
Add setting not generate helper and assets
diff --git a/config/application.rb b/config/application.rb index abc1234..def5678 100644 --- a/config/application.rb +++ b/config/application.rb @@ -22,7 +22,7 @@ config.i18n.enforce_available_locales = true config.force_ssl = ENV["APPLICATION_HOST"] - config.middleware.insert_after ActionDispatch::SSL, R...
Allow docsdoctor.org to serve codetriage content
diff --git a/Casks/4k-youtube-to-mp3.rb b/Casks/4k-youtube-to-mp3.rb index abc1234..def5678 100644 --- a/Casks/4k-youtube-to-mp3.rb +++ b/Casks/4k-youtube-to-mp3.rb @@ -1,7 +1,7 @@ cask :v1 => '4k-youtube-to-mp3' do # note: "3" is not a version number, but an intrinsic part of the product name version '2.9' - sh...
Fix checksum in "4K YouTube to MP3.app" Cask It seems that the download package has recently been changed, although the version number has not been bumped. This commit corrects the sha256 hash.
diff --git a/lib/math24cli.rb b/lib/math24cli.rb index abc1234..def5678 100644 --- a/lib/math24cli.rb +++ b/lib/math24cli.rb @@ -0,0 +1,36 @@+class Math24CLI + attr_reader :operators + + def initialize + @operators = ["+", "-", "*", "/"] + end + + def run() + puts "Welcome to Math 24 solver! Please enter yo...
Add help option to command line. Refactor gsub/split combo.
diff --git a/pet.gemspec b/pet.gemspec index abc1234..def5678 100644 --- a/pet.gemspec +++ b/pet.gemspec @@ -24,6 +24,6 @@ s.add_runtime_dependency 'earth' s.add_dependency 'emitter', '~> 1.0.0' - s.add_development_dependency 'sniff', '~>0.11.3' + s.add_development_dependency 'sniff', '~> 1.0.0' s.add_devel...
Update sniff dependency to 1.x
diff --git a/spec/unit/control/rescue_body_spec.rb b/spec/unit/control/rescue_body_spec.rb index abc1234..def5678 100644 --- a/spec/unit/control/rescue_body_spec.rb +++ b/spec/unit/control/rescue_body_spec.rb @@ -17,6 +17,10 @@ it "should have control flow edges between each pair of children" do expect(s...
Add missing test case for rescue body
diff --git a/spec/models/student_spec.rb b/spec/models/student_spec.rb index abc1234..def5678 100644 --- a/spec/models/student_spec.rb +++ b/spec/models/student_spec.rb @@ -1,7 +1,7 @@ require 'rails_helper' require 'shoulda-matchers' RSpec.describe Student, type: :model do - it { should belong_to :user } + it { sh...
Fix student test so build passes
diff --git a/spec/reserved_words_spec.rb b/spec/reserved_words_spec.rb index abc1234..def5678 100644 --- a/spec/reserved_words_spec.rb +++ b/spec/reserved_words_spec.rb @@ -7,7 +7,7 @@ describe '.list' do it 'returns initial reserved words' do - expect(ReservedWords.list).to eq default_words + expect...
Fix spec to return sorted set
diff --git a/spec/support/api_helpers.rb b/spec/support/api_helpers.rb index abc1234..def5678 100644 --- a/spec/support/api_helpers.rb +++ b/spec/support/api_helpers.rb @@ -1,11 +1,14 @@ module NetHttp2 module ApiHelpers + WAIT_INTERVAL = 0.2 def wait_for(seconds=2, &block) - (0..seconds).each do + ...
Refactor wait for helper to speed up tests.
diff --git a/test/db.rb b/test/db.rb index abc1234..def5678 100644 --- a/test/db.rb +++ b/test/db.rb @@ -1,8 +1,18 @@ require 'sequelizer' DB = Object.new.extend(Sequelizer).db unless defined?(DB) -DB.run("use #{DB.opts[:database]}") if DB.opts[:adapter] =~ /(impala|hive)/ +if DB.database_type == :impala + # Make s...
Fix USE statement execution when testing on impala/hive Issuing the USE query once via Datase#run only works if only one connection is ever created. While that may be true for the current tests, this will bite us later if we ever have multithreaded access in the tests or there is an accidental disconnect during testi...
diff --git a/install.rb b/install.rb index abc1234..def5678 100644 --- a/install.rb +++ b/install.rb @@ -16,6 +16,4 @@ FileUtils.cp(hoff_image, image_file_name.gsub(backup_dir, image_dir)) end -puts 'dir: ' -puts directory -#FileUtils.chmod(0755, File.join(directory, 'play'))+FileUtils.chmod(0755, File.join(File.d...
Set play to be a binary executable git-svn-id: 9867ed3c45c5a294c22e66a9d3216297713dba95@202 ca9fbce6-ab17-0410-af20-b66f06baff09
diff --git a/ext/liquid_c/extconf.rb b/ext/liquid_c/extconf.rb index abc1234..def5678 100644 --- a/ext/liquid_c/extconf.rb +++ b/ext/liquid_c/extconf.rb @@ -1,5 +1,5 @@ require 'mkmf' -$CFLAGS << ' -Wall -Werror' +$CFLAGS << ' -Wall -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initializers' compiler = RbCo...
Enable -Wextra and disable unused parameter and missing field initializer warnings
diff --git a/db/migrate/20151029191946_update_user_from_user_full_details.rb b/db/migrate/20151029191946_update_user_from_user_full_details.rb index abc1234..def5678 100644 --- a/db/migrate/20151029191946_update_user_from_user_full_details.rb +++ b/db/migrate/20151029191946_update_user_from_user_full_details.rb @@ -0,0...
Add trigger to update User from user_full_details
diff --git a/db/migrate/20220613132127_change_bookmarks_bookmarks_to_text.rb b/db/migrate/20220613132127_change_bookmarks_bookmarks_to_text.rb index abc1234..def5678 100644 --- a/db/migrate/20220613132127_change_bookmarks_bookmarks_to_text.rb +++ b/db/migrate/20220613132127_change_bookmarks_bookmarks_to_text.rb @@ -0,0...
Allow arbitrary length bookmark names and urls fixes FOO-2891 Change-Id: I9430b2ef463341739ac93fd0718f78c2a1e18c6e Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/293834 Tested-by: Service Cloud Jenkins <9144042a601061f88f1e1d7a1753ea3e2972119d@instructure.com> Reviewed-by: Alex Slaughter <11669a22a05ead38...
diff --git a/lib/elastic_record/config.rb b/lib/elastic_record/config.rb index abc1234..def5678 100644 --- a/lib/elastic_record/config.rb +++ b/lib/elastic_record/config.rb @@ -22,7 +22,21 @@ self.servers = settings['servers'] if settings['options'] - # Deprecated route + warn("****...
Add a nice big warning for the lazy people
diff --git a/recipes/php55.rb b/recipes/php55.rb index abc1234..def5678 100644 --- a/recipes/php55.rb +++ b/recipes/php55.rb @@ -0,0 +1,49 @@+include_recipe "applications::default" +include_recipe "applications::apache" + +if platform?('mac_os_x') + applications_tap "josegonzalez/php" + applications_tap "homebrew...
Create a PHP 5.5 recipe
diff --git a/lib/extensions/ar_process.rb b/lib/extensions/ar_process.rb index abc1234..def5678 100644 --- a/lib/extensions/ar_process.rb +++ b/lib/extensions/ar_process.rb @@ -1,7 +1,8 @@ class << Process - def pid_with_safe - warn "Remove me: #{__FILE__}:#{__LINE__}. Safe level 2-4 are no longer supported as of ...
Remove alias_method_chain from Process override
diff --git a/red25519.gemspec b/red25519.gemspec index abc1234..def5678 100644 --- a/red25519.gemspec +++ b/red25519.gemspec @@ -8,7 +8,9 @@ gem.summary = "Red25519 provides both C and Java bindings to the Ed25519 public key signature system" gem.homepage = "https://github.com/tarcieri/red25519" - ge...
Include .jar in gem on JRuby
diff --git a/lib/firebolt/cache_worker.rb b/lib/firebolt/cache_worker.rb index abc1234..def5678 100644 --- a/lib/firebolt/cache_worker.rb +++ b/lib/firebolt/cache_worker.rb @@ -2,8 +2,8 @@ class CacheWorker include ::SuckerPunch::Worker - def perform(cache_warmer = nil) - results = ::Firebolt::CacheSto...
Use the new warmer interface in the cache worker. `CacheWorker#perform` now takes a warmer class as an argument and uses the new warmer interface to warmer the cache.
diff --git a/lib/hearthstone_api/cards.rb b/lib/hearthstone_api/cards.rb index abc1234..def5678 100644 --- a/lib/hearthstone_api/cards.rb +++ b/lib/hearthstone_api/cards.rb @@ -1,7 +1,7 @@ module HearthstoneApi class Cards < BaseModel - def all - get "/cards" + def all(options = {}) + get "/cards", o...
Add options for GET request
diff --git a/lib/jarvis/github/project.rb b/lib/jarvis/github/project.rb index abc1234..def5678 100644 --- a/lib/jarvis/github/project.rb +++ b/lib/jarvis/github/project.rb @@ -22,6 +22,7 @@ end def git_url - return "https://github.com/#{@organization}/#{@name}" + #return "https://github.com/#{@organizatio...
Use ssh for git clones Fixes #56
diff --git a/lib/cli.rb b/lib/cli.rb index abc1234..def5678 100644 --- a/lib/cli.rb +++ b/lib/cli.rb @@ -3,9 +3,10 @@ class RuneCLI < Thor desc 'optimize', 'optimize runes' - option :scrape, type: :boolean, default: :false - def optimize(scrape: :false) - run_optimizer(scrape) + option :scrape, type: :boolea...
Enable setting scrape and page_number from CLI
diff --git a/services/appharbor.rb b/services/appharbor.rb index abc1234..def5678 100644 --- a/services/appharbor.rb +++ b/services/appharbor.rb @@ -7,8 +7,8 @@ create_build_url = "https://appharbor.com/application/#{application_slug}/build?authorization=#{token}" - raise_config_error 'Missing Create build U...
Raise configuration errors on missing token or slug
diff --git a/jktebop.rb b/jktebop.rb index abc1234..def5678 100644 --- a/jktebop.rb +++ b/jktebop.rb @@ -6,6 +6,7 @@ option "with-examples", "Install the examples into share/#{name}" depends_on :fortran + depends_on "jktld" => :optional def install system "#{ENV.fc} -O2 -o #{name} #{name}.f" @@ -20,4 ...
Add note and optional install dependency jktld
diff --git a/week-4/variables-methods.rb b/week-4/variables-methods.rb index abc1234..def5678 100644 --- a/week-4/variables-methods.rb +++ b/week-4/variables-methods.rb @@ -1,3 +1,6 @@+ +# Full name greeting mini-challenge + puts "What\'s your first name?" first_name = gets.chomp puts "What\'s your middle name?" @@ ...
Add variable-methods file with both finished mini-challenges from Chris Pine book
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index abc1234..def5678 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -20,8 +20,7 @@ def list_last_commit(bz) depends_on_commits = Issue.where(:bz_id => bz.depends_on_ids).collect {|i| i....
Use Hash default value of 0 to simplify things.
diff --git a/app/helpers/friendships_helper.rb b/app/helpers/friendships_helper.rb index abc1234..def5678 100644 --- a/app/helpers/friendships_helper.rb +++ b/app/helpers/friendships_helper.rb @@ -0,0 +1,22 @@+module FriendshipsHelper + def friend_request_accept + # accepting a friend request is done by the recipie...
Add friend_request methods to friendship helpers file
diff --git a/app/services/steam_api_service.rb b/app/services/steam_api_service.rb index abc1234..def5678 100644 --- a/app/services/steam_api_service.rb +++ b/app/services/steam_api_service.rb @@ -1,12 +1,13 @@ class SteamApiService attr_reader :player + CSGO_APP_ID = 730 def initialize(_player) @player =...
Move app id to constant
diff --git a/install.rb b/install.rb index abc1234..def5678 100644 --- a/install.rb +++ b/install.rb @@ -1 +1,2 @@-# Install hook code here +# Copy the mock imap.rb to the project's test directory +File.copy(File.join(File.dirname(__FILE__), 'test/mocks/imap.rb'), File.join(File.dirname(__FILE__), '../../../test/mocks/...
Copy mock to project mock directory
diff --git a/spec/controllers/users_controller_spec.rb b/spec/controllers/users_controller_spec.rb index abc1234..def5678 100644 --- a/spec/controllers/users_controller_spec.rb +++ b/spec/controllers/users_controller_spec.rb @@ -1,7 +1,5 @@ require 'rails_helper' RSpec.describe UsersController, type: :controller do ...
Remove irrelevant tests from users controller
diff --git a/spec/decorators/project_decorator_spec.rb b/spec/decorators/project_decorator_spec.rb index abc1234..def5678 100644 --- a/spec/decorators/project_decorator_spec.rb +++ b/spec/decorators/project_decorator_spec.rb @@ -1,6 +1,6 @@ require "rails_helper" -describe ProjectDecorator do +RSpec.describe ProjectD...
Upgrade to newest RSPEC syntax
diff --git a/spec/models/spree/gateway_tagging_spec.rb b/spec/models/spree/gateway_tagging_spec.rb index abc1234..def5678 100644 --- a/spec/models/spree/gateway_tagging_spec.rb +++ b/spec/models/spree/gateway_tagging_spec.rb @@ -1,27 +1,56 @@ require "spec_helper" -# An inheritance bug made these specs fail. -# See c...
Test tagging polymorphism on a payment method
diff --git a/spec/unit/puppet/property/boolean_spec.rb b/spec/unit/puppet/property/boolean_spec.rb index abc1234..def5678 100644 --- a/spec/unit/puppet/property/boolean_spec.rb +++ b/spec/unit/puppet/property/boolean_spec.rb @@ -4,7 +4,7 @@ describe Puppet::Property::Boolean do subject { described_class.new(resource...
Use rspec-mocks instead of mocha
diff --git a/app/validators/array_validator.rb b/app/validators/array_validator.rb index abc1234..def5678 100644 --- a/app/validators/array_validator.rb +++ b/app/validators/array_validator.rb @@ -0,0 +1,27 @@+# frozen_string_literal: true + +class ArrayValidator < ActiveModel::EachValidator + # Taken from https://gis...
Add new validator for all elements of an array
diff --git a/week-9/ruby/fibonacci.rb b/week-9/ruby/fibonacci.rb index abc1234..def5678 100644 --- a/week-9/ruby/fibonacci.rb +++ b/week-9/ruby/fibonacci.rb @@ -8,13 +8,16 @@ # Initial Solution def is_fibonacci?(num) - if num <= 9 - true - elsif + plus_four = Math.sqrt( (num * 5) ** 2 + 4) +​ + minus_four = ...
Add second trial to solution
diff --git a/lib/toy_robot_simulator/command/matcher/place.rb b/lib/toy_robot_simulator/command/matcher/place.rb index abc1234..def5678 100644 --- a/lib/toy_robot_simulator/command/matcher/place.rb +++ b/lib/toy_robot_simulator/command/matcher/place.rb @@ -1,6 +1,5 @@ require './lib/toy_robot_simulator/command/matcher/...
Fix bug in Command::Matcher::Place args_extractor() args_extractor() should return a Pose object but was returning an OpenStruct instance. Ultimately this makes it dependant on Pose, a better solution would be to re-design the Pose class to accept a hash of attributes to mutate itself.
diff --git a/spec/practice_spec.rb b/spec/practice_spec.rb index abc1234..def5678 100644 --- a/spec/practice_spec.rb +++ b/spec/practice_spec.rb @@ -2,29 +2,31 @@ module Comptroller describe Practice do - it 'retrieves all pratices' do - expect(Practice.all.first).to eql(Practice.new(:export_url => 'https:...
Add context to practice specs
diff --git a/recipes/default.rb b/recipes/default.rb index abc1234..def5678 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -19,7 +19,7 @@ unicorn do port '8000' - worker_processes '2' + worker_processes 2 end end # Copyright (C) 2014 Erich Kaderka
Change value of worker_processes from String to Integer
diff --git a/gir_ffi-gtk.gemspec b/gir_ffi-gtk.gemspec index abc1234..def5678 100644 --- a/gir_ffi-gtk.gemspec +++ b/gir_ffi-gtk.gemspec @@ -13,10 +13,10 @@ s.files = Dir['{lib,test,tasks,examples}/**/*', "*.md", "Rakefile", "COPYING.LIB"] & `git ls-files -z`.split("\0") s.test_files = `git ls-files -z -- test`.sp...
Update dependency on GirFFI and other gems
diff --git a/mysql_adapter.rb b/mysql_adapter.rb index abc1234..def5678 100644 --- a/mysql_adapter.rb +++ b/mysql_adapter.rb @@ -1,6 +1,6 @@ require Pathname(__FILE__).dirname.expand_path / 'data_objects_adapter' -gem 'do_mysql', '~>0.9.11' +gem 'do_mysql', '~>0.9.12' require 'do_mysql' module DataMapper
Bump dependency for data_objects to 0.9.12 and extlib to 0.9.11
diff --git a/lib/actionmailer_with_request.rb b/lib/actionmailer_with_request.rb index abc1234..def5678 100644 --- a/lib/actionmailer_with_request.rb +++ b/lib/actionmailer_with_request.rb @@ -4,15 +4,7 @@ mattr_accessor :defaults - self.defaults = lambda do - host = Thread.current[:request].try(:host) ...
Move ActionMailerWithRequest::OptionsProxy.defaults initialization outside the class
diff --git a/lib/femto/model/mongo_adapter.rb b/lib/femto/model/mongo_adapter.rb index abc1234..def5678 100644 --- a/lib/femto/model/mongo_adapter.rb +++ b/lib/femto/model/mongo_adapter.rb @@ -30,7 +30,9 @@ def find(cls, query) results = [] get_coll(cls).find(query).each do |res| - ...
Set model id after finding
diff --git a/lib/gitlab/etag_caching/store.rb b/lib/gitlab/etag_caching/store.rb index abc1234..def5678 100644 --- a/lib/gitlab/etag_caching/store.rb +++ b/lib/gitlab/etag_caching/store.rb @@ -1,7 +1,7 @@ module Gitlab module EtagCaching class Store - EXPIRY_TIME = 10.minutes + EXPIRY_TIME = 20.minute...
Increase ETag cache expiry time As discussed in #29777.
diff --git a/lib/mspec/matchers/match_yaml.rb b/lib/mspec/matchers/match_yaml.rb index abc1234..def5678 100644 --- a/lib/mspec/matchers/match_yaml.rb +++ b/lib/mspec/matchers/match_yaml.rb @@ -30,7 +30,11 @@ def valid_yaml?(obj) require 'yaml' begin - YAML.load(obj) + if defined?(YAML.unsafe_load)...
spec/ruby/library/yaml: Test YAML.unsafe_load instead of YAML.load in 3.1
diff --git a/lib/bot.rb b/lib/bot.rb index abc1234..def5678 100644 --- a/lib/bot.rb +++ b/lib/bot.rb @@ -0,0 +1,16 @@+#### +# +# ElectroCode Channel Welcomer and AutoAssigner +# +#### + +class WelcomePlugin + include Cinch::Plugin + listen_to :channel, method: :doWelcome + + def doWelcome(m) + if m.channel == "#debu...
Add a Channel Registering Welcomer that auto assigns "Bots"
diff --git a/messaging.gemspec b/messaging.gemspec index abc1234..def5678 100644 --- a/messaging.gemspec +++ b/messaging.gemspec @@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = 'evt-messaging' - s.version = '0.15.0.0' + s.version = '0.15.1.0' s.summary = 'Messaging primitives f...
Package version is increased from 0.15.0.0 to 0.15.1.0
diff --git a/messaging.gemspec b/messaging.gemspec index abc1234..def5678 100644 --- a/messaging.gemspec +++ b/messaging.gemspec @@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = 'evt-messaging' - s.version = '0.24.0.0' + s.version = '0.25.0.0' s.summary = 'Common primitives for ...
Package version increased from 0.24.0.0 to 0.25.0.0
diff --git a/lib/ort.rb b/lib/ort.rb index abc1234..def5678 100644 --- a/lib/ort.rb +++ b/lib/ort.rb @@ -23,7 +23,7 @@ @url = Mapotempo::Application.config.optimize_url def self.optimize(capacity, matrix, time_window) - key = {capacity: capacity, matrix: matrix.hash, time_window: time_window}.to_json + key...
Make optimizer cache key smaller
diff --git a/lib/toy.rb b/lib/toy.rb index abc1234..def5678 100644 --- a/lib/toy.rb +++ b/lib/toy.rb @@ -1,3 +1,4 @@+require 'forwardable' require 'simple_uuid' require 'active_model' require 'active_support/json' @@ -8,6 +9,8 @@ require File.expand_path('../../vendor/moneta/lib/moneta', __FILE__) module Toy + e...
Switch to delegation for json stuff. Nothing big.
diff --git a/historyable.gemspec b/historyable.gemspec index abc1234..def5678 100644 --- a/historyable.gemspec +++ b/historyable.gemspec @@ -21,5 +21,5 @@ s.require_paths = ['lib'] s.rubyforge_project = '[none]' - s.add_dependency 'active_record', '>= 3.0.0' + s.add_dependency 'activerecord', '>= 3.0.0' end
Fix typo: active_record -> activerecord
diff --git a/lib/webhookr/adapter_response.rb b/lib/webhookr/adapter_response.rb index abc1234..def5678 100644 --- a/lib/webhookr/adapter_response.rb +++ b/lib/webhookr/adapter_response.rb @@ -1,3 +1,3 @@ module Webhookr - class AdapterResponse < Struct.new(:event_type, :payload); end + class AdapterResponse < Struct...
Update AdapterResponse to carry service_name
diff --git a/tasks/check-if-bosh-lite-resource-exists/run.rb b/tasks/check-if-bosh-lite-resource-exists/run.rb index abc1234..def5678 100644 --- a/tasks/check-if-bosh-lite-resource-exists/run.rb +++ b/tasks/check-if-bosh-lite-resource-exists/run.rb @@ -9,11 +9,14 @@ state_object = StateOfBoshLites.new state_object.get...
Add success message for check-if-bosh-lite-resource-exists [#129169949] Signed-off-by: James Wen <3b2f4c88287a5fcd7db73a67dd1ab82807db04ee@columbia.edu>
diff --git a/app/controllers/graphql_controller.rb b/app/controllers/graphql_controller.rb index abc1234..def5678 100644 --- a/app/controllers/graphql_controller.rb +++ b/app/controllers/graphql_controller.rb @@ -2,7 +2,7 @@ # If accessing from outside this domain, nullify the session # This allows for outside API...
Enable protect_from_forgery with: :null_session for graphql controller
diff --git a/app/controllers/unlocks_controller.rb b/app/controllers/unlocks_controller.rb index abc1234..def5678 100644 --- a/app/controllers/unlocks_controller.rb +++ b/app/controllers/unlocks_controller.rb @@ -20,4 +20,8 @@ def after_sending_unlock_instructions_path_for(resource) after_devise_path end + + ...
Fix JS Response for Unlocks Controller Show Update the UnlocksController show action to ensure that the return path when a user attempts to unlock their account via an email link is the root path with a flash message to login.
diff --git a/app/models/featured_products_block.rb b/app/models/featured_products_block.rb index abc1234..def5678 100644 --- a/app/models/featured_products_block.rb +++ b/app/models/featured_products_block.rb @@ -1,4 +1,6 @@ class FeaturedProductsBlock < Block + + attr_accessible :product_ids, :groups_of, :speed, :ref...
Add att_accessible to FeaturedProductsBlock's setting_items (ActionItem3256)
diff --git a/app/models/observers/team_observer.rb b/app/models/observers/team_observer.rb index abc1234..def5678 100644 --- a/app/models/observers/team_observer.rb +++ b/app/models/observers/team_observer.rb @@ -1,3 +1,5 @@+# frozen_string_literal: true + class TeamObserver < ActiveRecord::Observer def after_destr...
Optimize team name and member updates for teams with many results
diff --git a/releaf-core/spec/features/index_table_spec.rb b/releaf-core/spec/features/index_table_spec.rb index abc1234..def5678 100644 --- a/releaf-core/spec/features/index_table_spec.rb +++ b/releaf-core/spec/features/index_table_spec.rb @@ -13,18 +13,18 @@ visit admin_books_path within ".table.books thea...
Index table feature test corrected
diff --git a/httparty-icebox.gemspec b/httparty-icebox.gemspec index abc1234..def5678 100644 --- a/httparty-icebox.gemspec +++ b/httparty-icebox.gemspec @@ -14,7 +14,7 @@ s.rubyforge_project = "httparty-icebox" - s.add_dependency("httparty", "~> 0.8.1") + s.add_dependency("httparty", "~> 0.9.0") s.files ...
Update dependency to HTTParty 0.9.X
diff --git a/orientdb-schema-migrator.gemspec b/orientdb-schema-migrator.gemspec index abc1234..def5678 100644 --- a/orientdb-schema-migrator.gemspec +++ b/orientdb-schema-migrator.gemspec @@ -5,7 +5,7 @@ require 'rake' Gem::Specification.new do |spec| - spec.name = "orientdb_schema_migrator" + spec.name ...
Change gem name to use hyphens, not underscore. Not a big diff, but more consistent with general gem-naming conventions.