diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/lib/super_settings/config.rb b/lib/super_settings/config.rb index abc1234..def5678 100644 --- a/lib/super_settings/config.rb +++ b/lib/super_settings/config.rb @@ -7,7 +7,7 @@ # fetch! returns the value of they key if it exists. If it does not, # it then either yields to a block if given, or throw...
Use [] method from 2.0 openstruct rather than a different method name
diff --git a/lib/tankard/configuration.rb b/lib/tankard/configuration.rb index abc1234..def5678 100644 --- a/lib/tankard/configuration.rb +++ b/lib/tankard/configuration.rb @@ -8,14 +8,8 @@ def configure yield self validate_api_key! + reset_client self - end - - def reset! - Tan...
Remove reset and have configure call reset client. allows configuration to be changed after tankard is already initialized. updating the configuration would reset the tankard client so next time it is called it is regenerated.
diff --git a/euler7.rb b/euler7.rb index abc1234..def5678 100644 --- a/euler7.rb +++ b/euler7.rb @@ -0,0 +1,33 @@+=begin + +By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. + +What is the 10 001st prime number? + +=end + +def is_prime?(n) + !(2...n).any? { |k| n % k ...
Add unoptimized solution to problem 7
diff --git a/lib/whatsapp/request/code.rb b/lib/whatsapp/request/code.rb index abc1234..def5678 100644 --- a/lib/whatsapp/request/code.rb +++ b/lib/whatsapp/request/code.rb @@ -15,10 +15,10 @@ cc: country_code, in: number, id: IDENTITY, - lg: options[:lan...
Change named parameters to options hash
diff --git a/mysite/ruby/deploy.rb b/mysite/ruby/deploy.rb index abc1234..def5678 100644 --- a/mysite/ruby/deploy.rb +++ b/mysite/ruby/deploy.rb @@ -11,7 +11,7 @@ task :migrate do if exists?(:webserver_user) - run "sudo su #{webserver_user} -c '#{latest_release}/#{sake_path} dev/build flush=1'", :roles => :db +...
Change sudo su to sudo -u.
diff --git a/app/calculators/term_estimation_calculator.rb b/app/calculators/term_estimation_calculator.rb index abc1234..def5678 100644 --- a/app/calculators/term_estimation_calculator.rb +++ b/app/calculators/term_estimation_calculator.rb @@ -0,0 +1,61 @@+class TermEstimationCalculator < ConditionEstimationCalculator...
Add TERM condition estimation calculator
diff --git a/app/serializers/teaching_period_serializer.rb b/app/serializers/teaching_period_serializer.rb index abc1234..def5678 100644 --- a/app/serializers/teaching_period_serializer.rb +++ b/app/serializers/teaching_period_serializer.rb @@ -1,5 +1,5 @@ class TeachingPeriodSerializer < ActiveModel::Serializer - att...
FIX: Add units to teaching period serializer
diff --git a/rails/spec/requests/policies_controller_spec.rb b/rails/spec/requests/policies_controller_spec.rb index abc1234..def5678 100644 --- a/rails/spec/requests/policies_controller_spec.rb +++ b/rails/spec/requests/policies_controller_spec.rb @@ -11,11 +11,11 @@ describe "#show" do it { compare("/policy....
Enable tests for Policy => Details of votes page
diff --git a/railties/lib/rails/command/spellchecker.rb b/railties/lib/rails/command/spellchecker.rb index abc1234..def5678 100644 --- a/railties/lib/rails/command/spellchecker.rb +++ b/railties/lib/rails/command/spellchecker.rb @@ -7,50 +7,8 @@ def suggest(word, from:) if defined?(DidYouMean::SpellC...
Remove DidYouMean fallback for Rails::Command::Spellchecker In Ruby 2.7 DidYouMean is included as a default gem. The included version of DidYouMean (1.4.0) includes DidYouMean::Spellchecker: https://github.com/ruby/did_you_mean/blob/v1.4.0/lib/did_you_mean/spell_checker.rb As the SpellChecker is included by default, ...
diff --git a/spec/controllers/ci/projects_controller_spec.rb b/spec/controllers/ci/projects_controller_spec.rb index abc1234..def5678 100644 --- a/spec/controllers/ci/projects_controller_spec.rb +++ b/spec/controllers/ci/projects_controller_spec.rb @@ -9,7 +9,7 @@ # Specs for *deprecated* CI badge # describe '#...
Fix specs for deprecated CI build status badge
diff --git a/app/controllers/ask_controller.rb b/app/controllers/ask_controller.rb index abc1234..def5678 100644 --- a/app/controllers/ask_controller.rb +++ b/app/controllers/ask_controller.rb @@ -3,7 +3,7 @@ # Controller for ask.wikiedu.org search form class AskController < ApplicationController - ASK_ROOT = 'http...
Use 'relevance' sorting for ask.wikiedu.org queries This sorting has better results than sorting by activity, according to Ian and Samantha.
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 @@ -9,11 +9,11 @@ def working(agent) if agent.disabled? - '<span class="label label-warning">Disabled</span>'.htm...
Add 'working' link for disabled agents
diff --git a/app/models/system_activity_log.rb b/app/models/system_activity_log.rb index abc1234..def5678 100644 --- a/app/models/system_activity_log.rb +++ b/app/models/system_activity_log.rb @@ -6,5 +6,5 @@ validates :message, :category, presence: true scope :for_category, ->(category) { where(category: catego...
Change on_date lookup field to created_at for accuracy
diff --git a/lib/middleman-deploy/methods/rsync.rb b/lib/middleman-deploy/methods/rsync.rb index abc1234..def5678 100644 --- a/lib/middleman-deploy/methods/rsync.rb +++ b/lib/middleman-deploy/methods/rsync.rb @@ -17,7 +17,7 @@ def process # Append "@" to user if provided. - user = "#{...
Fix bug that user can not be specified
diff --git a/lib/omniauth/strategies/wunderlist.rb b/lib/omniauth/strategies/wunderlist.rb index abc1234..def5678 100644 --- a/lib/omniauth/strategies/wunderlist.rb +++ b/lib/omniauth/strategies/wunderlist.rb @@ -4,25 +4,46 @@ module Strategies class Wunderlist < OmniAuth::Strategies::OAuth2 option :name,...
Fix headers for token and info retrieval
diff --git a/lib/woocommerce_api/resources/meta.rb b/lib/woocommerce_api/resources/meta.rb index abc1234..def5678 100644 --- a/lib/woocommerce_api/resources/meta.rb +++ b/lib/woocommerce_api/resources/meta.rb @@ -13,5 +13,6 @@ attribute :ssl_enabled, Boolean attribute :permalinks_enabled, Boolean attribut...
Add new attribute `generate_password` according to api v3
diff --git a/Casks/handbrakecli-nightly.rb b/Casks/handbrakecli-nightly.rb index abc1234..def5678 100644 --- a/Casks/handbrakecli-nightly.rb +++ b/Casks/handbrakecli-nightly.rb @@ -1,6 +1,6 @@ cask :v1 => 'handbrakecli-nightly' do - version '6675svn' - sha256 'd64d63700af9eb77ed1e90ae4288f0f8d171657d7fb91f84d519203e9...
Update HandbrakeCLI Nightly to v6685svn HandBrakeCLI Nightly v6685svn built 2015-01-05.
diff --git a/lib/cloud_conductor/terraform/parent.rb b/lib/cloud_conductor/terraform/parent.rb index abc1234..def5678 100644 --- a/lib/cloud_conductor/terraform/parent.rb +++ b/lib/cloud_conductor/terraform/parent.rb @@ -10,11 +10,11 @@ case cloud.type when 'aws' - @variables = %w(bootstrap_...
Add ssh_username variable when execute terraform
diff --git a/lib/cd.rb b/lib/cd.rb index abc1234..def5678 100644 --- a/lib/cd.rb +++ b/lib/cd.rb @@ -10,8 +10,8 @@ def self.all output_Cds = [] - @@all_Cds.each do |key, value| - output_Cds << value + @@all_Cds.each_value do |album| + output_Cds << album end output_Cds end @@ -23,9...
Refactor variable names etc in search Cd methods.
diff --git a/spec/bundler/fetcher/compact_index_spec.rb b/spec/bundler/fetcher/compact_index_spec.rb index abc1234..def5678 100644 --- a/spec/bundler/fetcher/compact_index_spec.rb +++ b/spec/bundler/fetcher/compact_index_spec.rb @@ -0,0 +1,25 @@+# frozen_string_literal: true +require "spec_helper" + +describe Bundler::...
Add test for thread issue
diff --git a/spec/controllers/photos_controller_spec.rb b/spec/controllers/photos_controller_spec.rb index abc1234..def5678 100644 --- a/spec/controllers/photos_controller_spec.rb +++ b/spec/controllers/photos_controller_spec.rb @@ -0,0 +1,38 @@+# Copyright (c) 2010, Diaspora Inc. This file is +# licensed under th...
Add specs for photo mass assignment
diff --git a/increments-schedule.gemspec b/increments-schedule.gemspec index abc1234..def5678 100644 --- a/increments-schedule.gemspec +++ b/increments-schedule.gemspec @@ -8,10 +8,6 @@ spec.version = Increments::Schedule::VERSION spec.authors = ["Yuji Nakayama"] spec.email = ["nkymyj@gmail....
Remove allowed_push_host definition in gemspec
diff --git a/test/test_helper.rb b/test/test_helper.rb index abc1234..def5678 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -2,9 +2,8 @@ require 'rubygems' require 'bundler' +Bundler.require(:default, :development) require 'minitest/autorun' - -Bundler.require(:default, :development) unless RUBY_...
Fix for SimpleCov require minitest after simplecov
diff --git a/test/test_helper.rb b/test/test_helper.rb index abc1234..def5678 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -40,7 +40,7 @@ width.to_f / height end - def temp_dir(child_path = '') - File.join '/tmp/jpt', child_path + def temp_dir(*descendents) + File.join '/tmp/jpt', *des...
Add unlimited descendents to temp_dir test helper
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 @@ -23,4 +23,8 @@ def devise_mapping @devise_mapping ||= Devise.mappings[:user] end + + def trim_length(content, max...
Add Method for Trimming Content in Views Add a helper method that can be used to trim content to a certain length in views and adds ellipses '...' if the content has been trimmed.
diff --git a/examples/timeout.rb b/examples/timeout.rb index abc1234..def5678 100644 --- a/examples/timeout.rb +++ b/examples/timeout.rb @@ -4,4 +4,4 @@ cmd = TTY::Command.new -cmd.run("while test 1; do echo 'hello'; sleep 1; done", timeout: 5) +cmd.run("while test 1; do echo 'hello'; sleep 1; done", timeout: 5, si...
Change example to use signal
diff --git a/db/migrate/20150402004952_create_menus_items_table.rb b/db/migrate/20150402004952_create_menus_items_table.rb index abc1234..def5678 100644 --- a/db/migrate/20150402004952_create_menus_items_table.rb +++ b/db/migrate/20150402004952_create_menus_items_table.rb @@ -0,0 +1,14 @@+class CreateMenusItemsTable < ...
Add migration for menus_items table
diff --git a/test/integration/search_with_trait_sets_test.rb b/test/integration/search_with_trait_sets_test.rb index abc1234..def5678 100644 --- a/test/integration/search_with_trait_sets_test.rb +++ b/test/integration/search_with_trait_sets_test.rb @@ -4,7 +4,6 @@ fixtures :projects, :taxa, :trait_sets, :categorical_...
Use find to force capybara to wait for javascript
diff --git a/lib/authlogic_cas/session.rb b/lib/authlogic_cas/session.rb index abc1234..def5678 100644 --- a/lib/authlogic_cas/session.rb +++ b/lib/authlogic_cas/session.rb @@ -9,7 +9,12 @@ module Methods def self.included(klass) klass.class_eval do - persist.reject{|cb| [:persist_by_params...
Fix for skipping callbacks in Rails 3
diff --git a/lib/rails_config/integration/sinatra.rb b/lib/rails_config/integration/sinatra.rb index abc1234..def5678 100644 --- a/lib/rails_config/integration/sinatra.rb +++ b/lib/rails_config/integration/sinatra.rb @@ -21,7 +21,11 @@ RailsConfig.load_and_set_settings( File.join(root.to_s, "config", "se...
Load .local.yml files in Sinatra too. .local.yml file are loaded by default in Rails. This patches loads them in Sinatra too.
diff --git a/lib/boxcar/command/update.rb b/lib/boxcar/command/update.rb index abc1234..def5678 100644 --- a/lib/boxcar/command/update.rb +++ b/lib/boxcar/command/update.rb @@ -15,7 +15,7 @@ puts "Fetching..." FileUtils.cd('/tmp') do # Fetch - FileUtils.mkdir_p("build/#{dest}") + FileUtils.mkd...
Split cleanup to it's own cd block
diff --git a/command_line/dash_upper_i_spec.rb b/command_line/dash_upper_i_spec.rb index abc1234..def5678 100644 --- a/command_line/dash_upper_i_spec.rb +++ b/command_line/dash_upper_i_spec.rb @@ -8,4 +8,16 @@ it "adds the path to the load path ($:)" do ruby_exe(@script, options: "-I fixtures").should include("f...
Add more specs for -I include_dir
diff --git a/lib/danger/ci_source/surf.rb b/lib/danger/ci_source/surf.rb index abc1234..def5678 100644 --- a/lib/danger/ci_source/surf.rb +++ b/lib/danger/ci_source/surf.rb @@ -0,0 +1,24 @@+# http://github.com/surf-build/surf + +module Danger + module CISource + class Surf < CI + def self.validates?(env) + ...
Add Surf as a CI source
diff --git a/lib/debug_extras/injector.rb b/lib/debug_extras/injector.rb index abc1234..def5678 100644 --- a/lib/debug_extras/injector.rb +++ b/lib/debug_extras/injector.rb @@ -17,7 +17,7 @@ def response_is_html? return false unless @response.headers['Content-Type'].include?('html') - tags = %w[<html ...
Improve tests for valid html.
diff --git a/spec/helpers/items_helper_spec.rb b/spec/helpers/items_helper_spec.rb index abc1234..def5678 100644 --- a/spec/helpers/items_helper_spec.rb +++ b/spec/helpers/items_helper_spec.rb @@ -8,16 +8,16 @@ end describe "item_tell_types" do - it "should show comma-separated list of tell types" do + i...
Fix ItemsHelper spec for latest changes.
diff --git a/spec/import-js/mock_vim_buffer.rb b/spec/import-js/mock_vim_buffer.rb index abc1234..def5678 100644 --- a/spec/import-js/mock_vim_buffer.rb +++ b/spec/import-js/mock_vim_buffer.rb @@ -8,7 +8,9 @@ end def append(index, string) - @buffer_lines.insert(index, string) + # We replace newlines with "...
Make mock buffer behave more like a real buffer If you try to append a string with \n newline characters in it, a real vim buffer will output "^@" in place of the newline characters. The mock buffer that we've been using didn't do that which led to a bug fixed in https://github.com/trotzig/import-js/commit/5f91595aa4....
diff --git a/lib/gitlab/user_extractor.rb b/lib/gitlab/user_extractor.rb index abc1234..def5678 100644 --- a/lib/gitlab/user_extractor.rb +++ b/lib/gitlab/user_extractor.rb @@ -16,12 +16,9 @@ def users return User.none unless @text.present? + return User.none if references.empty? - relations = ...
Return early if there were no references in text
diff --git a/spec/models/badges/ashcat_spec.rb b/spec/models/badges/ashcat_spec.rb index abc1234..def5678 100644 --- a/spec/models/badges/ashcat_spec.rb +++ b/spec/models/badges/ashcat_spec.rb @@ -1,6 +1,6 @@ require 'vcr_helper' -RSpec.describe Ashcat, type: :model, skip: ENV['TRAVIS'] do +RSpec.describe Ashcat, typ...
Remove skip flag from Ashcat spec
diff --git a/lib/librato/rails/railtie.rb b/lib/librato/rails/railtie.rb index abc1234..def5678 100644 --- a/lib/librato/rails/railtie.rb +++ b/lib/librato/rails/railtie.rb @@ -23,7 +23,7 @@ config.librato_rails.log_target = ::Rails.logger end - tracker.log :info, "starting up......
Add pid and config type to startup message
diff --git a/spec/unit/recipes/default_spec.rb b/spec/unit/recipes/default_spec.rb index abc1234..def5678 100644 --- a/spec/unit/recipes/default_spec.rb +++ b/spec/unit/recipes/default_spec.rb @@ -26,7 +26,7 @@ context 'installs modules based on attributes' do it 'includes a module recipe when specified' do - ...
Test module inclusion using a module we still have
diff --git a/tasks/ship-v3-buildpack/run.rb b/tasks/ship-v3-buildpack/run.rb index abc1234..def5678 100644 --- a/tasks/ship-v3-buildpack/run.rb +++ b/tasks/ship-v3-buildpack/run.rb @@ -24,7 +24,12 @@ File.write('release-artifacts/name', "v#{next_version.to_s}") File.write('release-artifacts/tag', "v#{next_version....
Rework ship-v3 to properly use new packaging scripts Co-authored-by: Chhavi Kankaria <a45f933d80ef78816bcf302f872972e3887e5115@pivotal.io>
diff --git a/gem_tasks/yard.rake b/gem_tasks/yard.rake index abc1234..def5678 100644 --- a/gem_tasks/yard.rake +++ b/gem_tasks/yard.rake @@ -2,26 +2,30 @@ require 'yard/rake/yardoc_task' require File.expand_path(File.dirname(__FILE__) + '/../lib/cucumber/platform') +DOC_DIR = File.expand_path(File.dirname(__FIL...
Split up YARD doc tasks. This will make it easier to work on docs locally.
diff --git a/acts_as_shopping_cart.gemspec b/acts_as_shopping_cart.gemspec index abc1234..def5678 100644 --- a/acts_as_shopping_cart.gemspec +++ b/acts_as_shopping_cart.gemspec @@ -24,4 +24,5 @@ s.add_development_dependency "rspec" s.add_development_dependency "sqlite3" s.add_development_dependency "simplecov" ...
Add rake to dev dependencies
diff --git a/hummingbird-rails-api/app/controllers/users_controller.rb b/hummingbird-rails-api/app/controllers/users_controller.rb index abc1234..def5678 100644 --- a/hummingbird-rails-api/app/controllers/users_controller.rb +++ b/hummingbird-rails-api/app/controllers/users_controller.rb @@ -21,10 +21,10 @@ @clie...
Rename deliver_to as 'to' coinciding with decision to change the column name in the migration
diff --git a/config/software/opscode-erchef.rb b/config/software/opscode-erchef.rb index abc1234..def5678 100644 --- a/config/software/opscode-erchef.rb +++ b/config/software/opscode-erchef.rb @@ -1,5 +1,5 @@ name "opscode-erchef" -version "pc-rc-0.8.0-tag" +version "pc-rc-0.8.1-tag" dependencies ["erlang", "rsync"]...
Bring in first-build fixes for erchef
diff --git a/core/lib/spree/testing_support/common_rake.rb b/core/lib/spree/testing_support/common_rake.rb index abc1234..def5678 100644 --- a/core/lib/spree/testing_support/common_rake.rb +++ b/core/lib/spree/testing_support/common_rake.rb @@ -16,15 +16,10 @@ Spree::InstallGenerator.start ["--lib_name=#{ENV['LIB_N...
Use silence_stream to quiet output This should behave the same as before, except output any messages appearing on STDERR.
diff --git a/lib/celluloid/io/mailbox.rb b/lib/celluloid/io/mailbox.rb index abc1234..def5678 100644 --- a/lib/celluloid/io/mailbox.rb +++ b/lib/celluloid/io/mailbox.rb @@ -4,7 +4,7 @@ module IO # An alternative implementation of Celluloid::Mailbox using Wakers class Mailbox < Celluloid::Mailbox - attr...
Add an attr_reader for Celluloid::IO::Mailbox's waker object
diff --git a/lib/multipart_post/parts.rb b/lib/multipart_post/parts.rb index abc1234..def5678 100644 --- a/lib/multipart_post/parts.rb +++ b/lib/multipart_post/parts.rb @@ -2,10 +2,17 @@ require 'parts' Parts::ParamPart.class_eval do - def build_part(boundary, name, value) + def build_part(boundary, name, value, h...
Update monkeypatch for multipart-post to be compatible with version 2.0 Just needed to add another option to the method definition to pass along the headers hash. I made some notes in the file, but it seems like I should be able to pass along the proper content-type and remove this patch entirely, I just can't figure...
diff --git a/lib/s3_relay/private_url.rb b/lib/s3_relay/private_url.rb index abc1234..def5678 100644 --- a/lib/s3_relay/private_url.rb +++ b/lib/s3_relay/private_url.rb @@ -0,0 +1,32 @@+module S3Relay + class PrivateUrl < S3Relay::Base + + attr_reader :expires, :path + + def initialize(public_url, options={}) + ...
Add PrivateUrl class to generate signed URLs.
diff --git a/lib/generators/rails_backend/install/install_generator.rb b/lib/generators/rails_backend/install/install_generator.rb index abc1234..def5678 100644 --- a/lib/generators/rails_backend/install/install_generator.rb +++ b/lib/generators/rails_backend/install/install_generator.rb @@ -1,5 +1,5 @@ class RailsBack...
Remove symbolick links and replace for the path.
diff --git a/lib/zen/package/dashboard/lib/dashboard/widget/welcome.rb b/lib/zen/package/dashboard/lib/dashboard/widget/welcome.rb index abc1234..def5678 100644 --- a/lib/zen/package/dashboard/lib/dashboard/widget/welcome.rb +++ b/lib/zen/package/dashboard/lib/dashboard/widget/welcome.rb @@ -4,6 +4,6 @@ w.name = :we...
Use render_file for the "Welcome" widget. Signed-off-by: Yorick Peterse <82349cb6397bb932b4bf3561b4ea2fad50571f50@gmail.com>
diff --git a/lib/fluent/plugin/filter_script.rb b/lib/fluent/plugin/filter_script.rb index abc1234..def5678 100644 --- a/lib/fluent/plugin/filter_script.rb +++ b/lib/fluent/plugin/filter_script.rb @@ -11,7 +11,7 @@ def load_script_file(path) raise ConfigError, "Ruby script file does not exist: #{path}" unl...
Fix eval issue if file ends in a comment
diff --git a/lib/puppet/type/firewalld_ipset.rb b/lib/puppet/type/firewalld_ipset.rb index abc1234..def5678 100644 --- a/lib/puppet/type/firewalld_ipset.rb +++ b/lib/puppet/type/firewalld_ipset.rb @@ -26,6 +26,7 @@ newparam(:type) do desc "Type of the ipset (default: hash:ip)" defaultto "hash:ip" + newva...
Add constraint for ipset types
diff --git a/lib/fog/core/mock.rb b/lib/fog/core/mock.rb index abc1234..def5678 100644 --- a/lib/fog/core/mock.rb +++ b/lib/fog/core/mock.rb @@ -63,6 +63,16 @@ selection end + def self.reset + providers = Fog.providers.map{|p| eval("Fog::#{p}")} + providers.select!{|m| m.constants.includ...
Add a reset method to Fog::Mock that resets all providers/services.
diff --git a/lib/notes-cli/web.rb b/lib/notes-cli/web.rb index abc1234..def5678 100644 --- a/lib/notes-cli/web.rb +++ b/lib/notes-cli/web.rb @@ -24,7 +24,7 @@ # TODO: cache this somehow options = Notes::Options.defaults if flags = params[:flags] - options[:flags].concat(flags) + option...
Replace query flags instead of concatenating This allows one to remove the default flags.
diff --git a/lib/part_time/job.rb b/lib/part_time/job.rb index abc1234..def5678 100644 --- a/lib/part_time/job.rb +++ b/lib/part_time/job.rb @@ -1,10 +1,12 @@ module PartTime module Job def self.included(klass) - klass.class_eval do - def self.perform_async(*args) - PartTime.queue.push([sel...
Extend including class instead of using class_eval
diff --git a/lib/rake/chef/dsl.rb b/lib/rake/chef/dsl.rb index abc1234..def5678 100644 --- a/lib/rake/chef/dsl.rb +++ b/lib/rake/chef/dsl.rb @@ -16,7 +16,7 @@ @chef_client.load_node @chef_client.build_node run_context = ::Chef::RunContext.new(@chef_client.node, {}, @chef_client.eve...
Use task name as recipe name in output
diff --git a/libraries/default.rb b/libraries/default.rb index abc1234..def5678 100644 --- a/libraries/default.rb +++ b/libraries/default.rb @@ -16,7 +16,7 @@ # determine config dir based on platform def mce_config_dir - if platform_family?('rhel', 'fedora') + if platform_family?('rhel', 'fedora') # rubocop: disab...
Disable rubocop rule for 0.36 Using a conditional here doesn't make sense
diff --git a/sql.rb b/sql.rb index abc1234..def5678 100644 --- a/sql.rb +++ b/sql.rb @@ -17,6 +17,12 @@ Db.falsey_value end + # Parse a single string value into an object using the supplied type logic. + # + # @param r [Array] an array (table) of arrays (rows), usually resulting from a d...
Add method docstrings to the Sql module
diff --git a/app/helpers/compare_helper.rb b/app/helpers/compare_helper.rb index abc1234..def5678 100644 --- a/app/helpers/compare_helper.rb +++ b/app/helpers/compare_helper.rb @@ -1,6 +1,8 @@ module CompareHelper def compare_to_mr_button? - params[:from].present? && params[:to].present? && + @project.merge_re...
Fix bug with showing create merge request button while merge request are disabled in project settings
diff --git a/app/models/poll_email_info.rb b/app/models/poll_email_info.rb index abc1234..def5678 100644 --- a/app/models/poll_email_info.rb +++ b/app/models/poll_email_info.rb @@ -40,7 +40,12 @@ end def utm_hash(args = {}) - { utm_medium: 'email', utm_campaign: 'poll_mailer', utm_source: action_name }.merge(...
Add participation token to utm hash
diff --git a/tests/spec/requests/cors_spec.rb b/tests/spec/requests/cors_spec.rb index abc1234..def5678 100644 --- a/tests/spec/requests/cors_spec.rb +++ b/tests/spec/requests/cors_spec.rb @@ -1,7 +1,9 @@+ + require 'net/http' require 'spec_helper' -RSpec.feature "Cross-origin requests", type: :request do +RSpec.fe...
Add a tag to allow ignoring the CORS test
diff --git a/lib/active_scaffold/extensions/action_controller_rendering.rb b/lib/active_scaffold/extensions/action_controller_rendering.rb index abc1234..def5678 100644 --- a/lib/active_scaffold/extensions/action_controller_rendering.rb +++ b/lib/active_scaffold/extensions/action_controller_rendering.rb @@ -6,14 +6,10 ...
Revert "don't render adapter if response is js" This reverts commit f8a6288249550e948040a51f1b82b9645d35ff45. Conflicts: lib/active_scaffold/extensions/action_controller_rendering.rb
diff --git a/spec/factories/fee.rb b/spec/factories/fee.rb index abc1234..def5678 100644 --- a/spec/factories/fee.rb +++ b/spec/factories/fee.rb @@ -4,6 +4,6 @@ factory :fee do garage { FactoryGirl.create(:garage) } name Faker::Commerce.department - price Faker::Number.number(3) + price Faker::Com...
Change type faker price generate.
diff --git a/interrogate.gemspec b/interrogate.gemspec index abc1234..def5678 100644 --- a/interrogate.gemspec +++ b/interrogate.gemspec @@ -7,7 +7,7 @@ s.version = Interrogate::VERSION s.authors = ["Morgan Brown"] s.email = ["brown.mhg@gmail.com"] - s.homepage = "https://github.com/mhgbrown/i...
Change gem spec to reflect new homepage url
diff --git a/mongoid-undo.gemspec b/mongoid-undo.gemspec index abc1234..def5678 100644 --- a/mongoid-undo.gemspec +++ b/mongoid-undo.gemspec @@ -13,7 +13,7 @@ gem.files = `git ls-files`.split("\n") gem.require_path = 'lib' - gem.add_dependency 'activesupport' + gem.add_dependency 'activesupport', '~> ...
Set explicit activesupport dependency to 4.2
diff --git a/lib/beanstalk_integration_tests/other_test.rb b/lib/beanstalk_integration_tests/other_test.rb index abc1234..def5678 100644 --- a/lib/beanstalk_integration_tests/other_test.rb +++ b/lib/beanstalk_integration_tests/other_test.rb @@ -0,0 +1,17 @@+require 'beanstalk_integration_tests/test_helper' + +class Oth...
Test bad commands return UNKNOWN_COMMAND
diff --git a/app/jobs/update_clinical_trials.rb b/app/jobs/update_clinical_trials.rb index abc1234..def5678 100644 --- a/app/jobs/update_clinical_trials.rb +++ b/app/jobs/update_clinical_trials.rb @@ -1,13 +1,15 @@ class UpdateClinicalTrials < ApplicationJob def perform - Source.where(source_type: 'PubMed').eac...
Speed up clinical trial processing
diff --git a/app/controllers/admin/server_state_controller.rb b/app/controllers/admin/server_state_controller.rb index abc1234..def5678 100644 --- a/app/controllers/admin/server_state_controller.rb +++ b/app/controllers/admin/server_state_controller.rb @@ -4,7 +4,9 @@ @autorizedIps = ServerStatus.first.ips @author...
Correct index view main render
diff --git a/app/mailers/notification_mailer.rb b/app/mailers/notification_mailer.rb index abc1234..def5678 100644 --- a/app/mailers/notification_mailer.rb +++ b/app/mailers/notification_mailer.rb @@ -9,10 +9,12 @@ mail(to: notification_subscription.email, subject: 'Confirm to get notifications') end +=begin ...
Comment out old mailer method
diff --git a/app/models/spreadsheet_exporter.rb b/app/models/spreadsheet_exporter.rb index abc1234..def5678 100644 --- a/app/models/spreadsheet_exporter.rb +++ b/app/models/spreadsheet_exporter.rb @@ -34,7 +34,7 @@ def initialize super sheet1 = create_sheet("All Items") - sheet1 << %w(Category De...
Add item ref to master inventory
diff --git a/features/functions/create_data.rb b/features/functions/create_data.rb index abc1234..def5678 100644 --- a/features/functions/create_data.rb +++ b/features/functions/create_data.rb @@ -25,19 +25,3 @@ borrowers: [new_borrower1] } end - -def create_deed_hash_no_mid(title_number = generate_title_number...
Remove unused borrower generate functions
diff --git a/app/graphql/types/mutation_type.rb b/app/graphql/types/mutation_type.rb index abc1234..def5678 100644 --- a/app/graphql/types/mutation_type.rb +++ b/app/graphql/types/mutation_type.rb @@ -4,5 +4,6 @@ description 'The mutation root of this schema for creating or changing data.' field :UpdateDeveloper, ...
Add mutation to root mutation type
diff --git a/app/models/medical_safety_alert.rb b/app/models/medical_safety_alert.rb index abc1234..def5678 100644 --- a/app/models/medical_safety_alert.rb +++ b/app/models/medical_safety_alert.rb @@ -5,4 +5,16 @@ medical_specialism ) end + + def self.date_metadata_keys + %w( + issued_date + )...
Add issued date to medical safety alerts Add the issued date attribute to the medical safety alert date metadata in the model so that it can be shown in the frontend. This corresponds to this commit in specialist publisher: alphagov/specialist-publisher#281 The trello ticket can be found here: https://trello.com/c/QF...
diff --git a/app/policies/macro_policy/scope.rb b/app/policies/macro_policy/scope.rb index abc1234..def5678 100644 --- a/app/policies/macro_policy/scope.rb +++ b/app/policies/macro_policy/scope.rb @@ -8,9 +8,9 @@ scope.all elsif user.permissions?('ticket.agent') scope - .left_joins(:gro...
Maintenance: Simplify MacroPolicy::Scope to work without sub-selects.
diff --git a/app/serializers/task_serializer.rb b/app/serializers/task_serializer.rb index abc1234..def5678 100644 --- a/app/serializers/task_serializer.rb +++ b/app/serializers/task_serializer.rb @@ -3,7 +3,7 @@ has_one :assignment def url - project_story_task_path(project, story, id) + api_v1_project_sto...
Fix url path in task serializer
diff --git a/spec/controllers/middleware_server_controller_spec.rb b/spec/controllers/middleware_server_controller_spec.rb index abc1234..def5678 100644 --- a/spec/controllers/middleware_server_controller_spec.rb +++ b/spec/controllers/middleware_server_controller_spec.rb @@ -30,4 +30,18 @@ end end end + ...
Add a sample nested list test for MiddlewareServerController.
diff --git a/lib/aggro/cluster_config.rb b/lib/aggro/cluster_config.rb index abc1234..def5678 100644 --- a/lib/aggro/cluster_config.rb +++ b/lib/aggro/cluster_config.rb @@ -21,6 +21,11 @@ def nodes @nodes ||= {}.freeze + end + + def server_node=(value) + @is_server_node = value + persist_co...
Allow server node bool to be changed via config.
diff --git a/lib/elasticity/hive_step.rb b/lib/elasticity/hive_step.rb index abc1234..def5678 100644 --- a/lib/elasticity/hive_step.rb +++ b/lib/elasticity/hive_step.rb @@ -33,8 +33,8 @@ def to_aws_step(job_flow) args = %w(s3://elasticmapreduce/libs/hive/hive-script --run-hive-script --args) args.conc...
Sort options on step creation for testability
diff --git a/lib/furnace/ssa/constant.rb b/lib/furnace/ssa/constant.rb index abc1234..def5678 100644 --- a/lib/furnace/ssa/constant.rb +++ b/lib/furnace/ssa/constant.rb @@ -1,7 +1,7 @@ module Furnace class SSA::Constant < SSA::Value - attr_reader :type - attr_reader :value + attr_accessor :type + attr_ac...
Allow to change type and value of SSA::Constant.
diff --git a/lib/interactor/organizer.rb b/lib/interactor/organizer.rb index abc1234..def5678 100644 --- a/lib/interactor/organizer.rb +++ b/lib/interactor/organizer.rb @@ -1,5 +1,17 @@ module Interactor + # Public: Interactor::Organizer methods. Because Interactor::Organizer is a + # module, custom Interactor::Organ...
Add TomDoc documentation to the Interactor::Organizer module [ci skip]
diff --git a/lib/paperclip-s3/railtie.rb b/lib/paperclip-s3/railtie.rb index abc1234..def5678 100644 --- a/lib/paperclip-s3/railtie.rb +++ b/lib/paperclip-s3/railtie.rb @@ -14,7 +14,7 @@ class Railtie def self.insert in_production = false - s3_environments = ENV['S3_ENVIRONMENTS'] || ['produc...
Fix S3_ENVIRONMENTS to expect comma-separated list
diff --git a/lib/apostle_rails.rb b/lib/apostle_rails.rb index abc1234..def5678 100644 --- a/lib/apostle_rails.rb +++ b/lib/apostle_rails.rb @@ -1,2 +1,9 @@+require 'apostle' require "apostle_rails/version" require "apostle_rails/mailer" + +if defined?(Rails) && Rails.env.test? + Apostle.configure do |config| + c...
Set apostle config if in rails test mode
diff --git a/lib/frisky/device.rb b/lib/frisky/device.rb index abc1234..def5678 100644 --- a/lib/frisky/device.rb +++ b/lib/frisky/device.rb @@ -5,7 +5,6 @@ module Frisky class Device - # Multicasts discovery messages to advertise its root device, any embedded # devices, and any services. def start ...
Make control flow more manageable here.
diff --git a/lib/sprockets/rails/task.rb b/lib/sprockets/rails/task.rb index abc1234..def5678 100644 --- a/lib/sprockets/rails/task.rb +++ b/lib/sprockets/rails/task.rb @@ -12,8 +12,6 @@ # Override this task change the loaded dependencies desc "Load asset compile environment" task :envir...
Revert "Load gems of assets group before of precompile" This reverts commit bbc19aa2f54abb5dcddfc0a9bb0ec79b34bde128. The assets group doesn't exist anymore in Rails default Gemfile
diff --git a/delayed_job_active_record.gemspec b/delayed_job_active_record.gemspec index abc1234..def5678 100644 --- a/delayed_job_active_record.gemspec +++ b/delayed_job_active_record.gemspec @@ -1,17 +1,15 @@ # frozen_string_literal: true Gem::Specification.new do |spec| - spec.add_dependency "activerecord", [">=...
Allow less than Active Record 8 Active Record shouldn't introduce any breaking changes until version 8
diff --git a/config/initializers/carrierwave.rb b/config/initializers/carrierwave.rb index abc1234..def5678 100644 --- a/config/initializers/carrierwave.rb +++ b/config/initializers/carrierwave.rb @@ -12,11 +12,6 @@ if Rails.env.production? config.fog_directory = 'brigade-production' elsif Rails.env.test? - ...
Revert "Added aws_secret_acces_key on test for travis" This reverts commit 5918d24986c426b024bd7e7b9c4ba3ef5494210d.
diff --git a/lib/zuck/facebook/ad_set.rb b/lib/zuck/facebook/ad_set.rb index abc1234..def5678 100644 --- a/lib/zuck/facebook/ad_set.rb +++ b/lib/zuck/facebook/ad_set.rb @@ -12,15 +12,33 @@ known_keys :id, :name, :account_id, - :campaign_group_id, + :bid_am...
Update AdSet to pull down all available v2.4 fields, add insights connection
diff --git a/Casks/spotifybeta.rb b/Casks/spotifybeta.rb index abc1234..def5678 100644 --- a/Casks/spotifybeta.rb +++ b/Casks/spotifybeta.rb @@ -1,6 +1,6 @@ cask :v1 => 'spotifybeta' do - version '1.0.0.974.ga39487e3-1439' - sha256 '55ab8ed9446654f007a8dc1782f26d836b3ddd585a6dbc36b19148f7d624c18b' + version '1.0.0.9...
Update SpotifyBeta.app to version 1.0.0.995.gcdfee982-1486
diff --git a/lib/generators/templates/table.rb b/lib/generators/templates/table.rb index abc1234..def5678 100644 --- a/lib/generators/templates/table.rb +++ b/lib/generators/templates/table.rb @@ -1,4 +1,7 @@ class <%= class_name %>Table < TableCloth::Base + # To include actions on this table, uncomment this line + #...
Change instructions on actions in README.
diff --git a/lib/lotus/assets/configuration.rb b/lib/lotus/assets/configuration.rb index abc1234..def5678 100644 --- a/lib/lotus/assets/configuration.rb +++ b/lib/lotus/assets/configuration.rb @@ -10,8 +10,7 @@ end class Configuration - PATH_SEPARATOR = '/'.freeze - ASSET_TYPES = ->{Hash.new{|h,...
Remove unused constant from Configuration
diff --git a/lib/omniauth/strategies/gitlab.rb b/lib/omniauth/strategies/gitlab.rb index abc1234..def5678 100644 --- a/lib/omniauth/strategies/gitlab.rb +++ b/lib/omniauth/strategies/gitlab.rb @@ -6,18 +6,18 @@ option :name, 'gitlab' option :client_options, { - :site => 'https://gitlab.com', - ...
Use ruby1.9 hash syntax, add commas to info hash.
diff --git a/lib/rack/insight/enable-button.rb b/lib/rack/insight/enable-button.rb index abc1234..def5678 100644 --- a/lib/rack/insight/enable-button.rb +++ b/lib/rack/insight/enable-button.rb @@ -1,47 +1,35 @@ module Rack::Insight - class EnableButton + class EnableButton < Struct.new :app, :insight include Ren...
Complete rewrite of `EnableButton` to ensure compatibility with all other Rack apps
diff --git a/lib/stradivari/xlsx/controller.rb b/lib/stradivari/xlsx/controller.rb index abc1234..def5678 100644 --- a/lib/stradivari/xlsx/controller.rb +++ b/lib/stradivari/xlsx/controller.rb @@ -3,15 +3,15 @@ module Controller def render_xlsx(options = {}) - xlsx = render_to_string + filena...
Add ability to override the XLSX template name
diff --git a/lib/tasks/spending_proposals.rake b/lib/tasks/spending_proposals.rake index abc1234..def5678 100644 --- a/lib/tasks/spending_proposals.rake +++ b/lib/tasks/spending_proposals.rake @@ -0,0 +1,16 @@+namespace :spending_proposals do + + desc "Check if there are any spending proposals in DB" + task check: :e...
Add rake task to check for spending proposals
diff --git a/lib/thingfish/processor/sha256.rb b/lib/thingfish/processor/sha256.rb index abc1234..def5678 100644 --- a/lib/thingfish/processor/sha256.rb +++ b/lib/thingfish/processor/sha256.rb @@ -11,6 +11,9 @@ class Thingfish::Processor::SHA256 < Thingfish::Processor extend Loggability + # The chunk size to read +...
Fix the checksum processor for IOs without a path.
diff --git a/lib/right_on/role.rb b/lib/right_on/role.rb index abc1234..def5678 100644 --- a/lib/right_on/role.rb +++ b/lib/right_on/role.rb @@ -6,7 +6,7 @@ validates_uniqueness_of :title def to_s - self.title.titleize + self.title.try(:titleize) end alias_method :name, :to_s
Handle case of new object not having title yet
diff --git a/lib/tasks/blank.rake b/lib/tasks/blank.rake index abc1234..def5678 100644 --- a/lib/tasks/blank.rake +++ b/lib/tasks/blank.rake @@ -22,5 +22,5 @@ end end - task :build => ['blank:session_config', 'auth:gen:site_key', :environment, 'db:migrate', :test] + task :build => ['blank:session_config', 'a...
Make sure gems are installed prior to going forward
diff --git a/lib/tasks/rekey.rake b/lib/tasks/rekey.rake index abc1234..def5678 100644 --- a/lib/tasks/rekey.rake +++ b/lib/tasks/rekey.rake @@ -1,4 +1,6 @@ namespace :rekey do + # Generates new keys for all images, useful if you have public images + # indexed on Google that you want to get rid of. desc 'Re-key al...
Make task more verbose, comment
diff --git a/lib/tasks/setup.rake b/lib/tasks/setup.rake index abc1234..def5678 100644 --- a/lib/tasks/setup.rake +++ b/lib/tasks/setup.rake @@ -0,0 +1,19 @@+require 'SUPPORT' +require 'awesome_print' + +namespace :support do + desc "Initialize a new SUPPORT Server" + task :setup, :server_name do |t, args| + args....
Add Rake Task to Setup Server