diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/omniauth-thebase.gemspec b/omniauth-thebase.gemspec index abc1234..def5678 100644 --- a/omniauth-thebase.gemspec +++ b/omniauth-thebase.gemspec @@ -14,10 +14,8 @@ gem.require_paths = ["lib"] gem.version = OmniAuth::Thebase::VERSION - gem.add_dependency 'omniauth' - # Nothing lower than omnia...
Fix omniauth and omniauth-oauth2 gems version
diff --git a/db/migrate/20150429184013_create_fitness_professional_profiles.rb b/db/migrate/20150429184013_create_fitness_professional_profiles.rb index abc1234..def5678 100644 --- a/db/migrate/20150429184013_create_fitness_professional_profiles.rb +++ b/db/migrate/20150429184013_create_fitness_professional_profiles.rb...
Add fitness prof profile migration
diff --git a/actionview/lib/action_view/template/types.rb b/actionview/lib/action_view/template/types.rb index abc1234..def5678 100644 --- a/actionview/lib/action_view/template/types.rb +++ b/actionview/lib/action_view/template/types.rb @@ -32,7 +32,7 @@ alias to_str to_s def ref - to_sym ||...
Make ref return the internal symbol. We delegate to_sym to the internal symbol, which we've already called to_sym on in initialize, so we don't need to do that. We also know to_sym will never return a falsy value, so we'll never hit to_s. Just return the symbolized symbol.
diff --git a/meta_model.gemspec b/meta_model.gemspec index abc1234..def5678 100644 --- a/meta_model.gemspec +++ b/meta_model.gemspec @@ -19,7 +19,7 @@ s.add_dependency 'rails', '~> 4.2.0' s.add_dependency 'neo4j', '~> 4.1.0' - s.add_dependency 'ember-rails', '~> 0.15.0' + s.add_dependency 'ember-rails', '~> 0....
Update ember-rails to fix compile bug
diff --git a/app/presenters/dspace/community_presenter.rb b/app/presenters/dspace/community_presenter.rb index abc1234..def5678 100644 --- a/app/presenters/dspace/community_presenter.rb +++ b/app/presenters/dspace/community_presenter.rb @@ -11,7 +11,7 @@ end def items - @items ||= Dspace::CommunitiesToItem.wh...
Fix reference to self.id parameter
diff --git a/config/initializers/default_settings.rb b/config/initializers/default_settings.rb index abc1234..def5678 100644 --- a/config/initializers/default_settings.rb +++ b/config/initializers/default_settings.rb @@ -1,10 +1,10 @@-Setting.save_default(:ctf_name, 'Parasol') -Setting.save_default(:submit_burst_count,...
Use `defaults' instead of `save_default' for default settings.
diff --git a/test/generator_test.rb b/test/generator_test.rb index abc1234..def5678 100644 --- a/test/generator_test.rb +++ b/test/generator_test.rb @@ -3,6 +3,10 @@ class GeneratorTest < TestHelper def setup @gen = setup_test[:gen] + end + + def encrypt(password) + @gen.send(:file_it).send(:encrypt).encry...
Add encryption functionality to generator
diff --git a/app/models/spree/slide.rb b/app/models/spree/slide.rb index abc1234..def5678 100644 --- a/app/models/spree/slide.rb +++ b/app/models/spree/slide.rb @@ -13,7 +13,7 @@ scope :published, -> { where(published: true).order('position ASC') } scope :location, -> (location) { joins(:slide_locations).where('sp...
Add `optional: true` to `belongs_to` to retain the rails<5 behaviour.
diff --git a/main.rb b/main.rb index abc1234..def5678 100644 --- a/main.rb +++ b/main.rb @@ -16,7 +16,7 @@ end x+=1 end - "<iframe width=\"100%\" height=\"100%\" src=\"https://s3-us-west-1.amazonaws.com/cc-travis-api-doc/api_docs/#{number}/index.html\" seamless />" + "<iframe width=\"100%\" heig...
Update api-docs to pull from new s3 bucket
diff --git a/rubo.gemspec b/rubo.gemspec index abc1234..def5678 100644 --- a/rubo.gemspec +++ b/rubo.gemspec @@ -18,6 +18,7 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ['lib'] + spec.add_runtime_dependency 'twitter', '~> 5.7.1' spec.add_runtime_dependency 'hashie'...
Add twitter gem to dependency
diff --git a/helpers/race_helper.rb b/helpers/race_helper.rb index abc1234..def5678 100644 --- a/helpers/race_helper.rb +++ b/helpers/race_helper.rb @@ -16,20 +16,20 @@ } RACE_ID = { - "Aluvian" => 0, - "Gharundim" => 1, - "Gharu'ndim" => 1, - "Sho" => 2, - "Viamontian" => 3, - "Shadowbound" ...
Fix off by one issue in race helper
diff --git a/scss-lint.gemspec b/scss-lint.gemspec index abc1234..def5678 100644 --- a/scss-lint.gemspec +++ b/scss-lint.gemspec @@ -27,5 +27,5 @@ s.add_development_dependency 'nokogiri', '~> 1.6.0' s.add_development_dependency 'rspec', '~> 2.0' - s.add_development_dependency 'rubocop', '0.23.0' + s.add_develo...
Upgrade Rubocop version pin from 0.23.0 -> 0.24.1 This didn't result in any new lints. Change-Id: I21d0d4b8f6f7afb4ed2a2ead6f6fe58fefe9abd3 Reviewed-on: http://gerrit.causes.com/40446 Tested-by: jenkins <d95b56ce41a2e1ac4cecdd398defd7414407cc08@causes.com> Reviewed-by: Shane da Silva <67fb7bfe39f841b16a1f86d3928acc56...
diff --git a/scss_lint.gemspec b/scss_lint.gemspec index abc1234..def5678 100644 --- a/scss_lint.gemspec +++ b/scss_lint.gemspec @@ -25,6 +25,7 @@ s.required_ruby_version = '>= 1.9.3' + s.add_dependency 'rake', '~> 10.0' s.add_dependency 'sass', '~> 3.4.15' s.add_development_dependency 'rspec', '~> 3.3.0...
Add explicit dependency on rake gem This appears to be required as of Ruby 2.3, otherwise we get a LoadError when attempting to run `bundle exec rspec` (since our SimpleCov integration loads rake).
diff --git a/cookbooks/universe_ubuntu/metadata.rb b/cookbooks/universe_ubuntu/metadata.rb index abc1234..def5678 100644 --- a/cookbooks/universe_ubuntu/metadata.rb +++ b/cookbooks/universe_ubuntu/metadata.rb @@ -1,4 +1,4 @@-name 'Universe on Ubuntu' +name 'universe_ubuntu' maintainer 'Alexandro de Oliveira' maintain...
Change cookbook name to meet specification
diff --git a/spec/deep_struct_spec.rb b/spec/deep_struct_spec.rb index abc1234..def5678 100644 --- a/spec/deep_struct_spec.rb +++ b/spec/deep_struct_spec.rb @@ -26,31 +26,29 @@ } end - before(:each) do - @object = DeepStruct.new(hash) + subject(:deep_struct) { DeepStruct.new(hash) } + + it 'turns top lev...
Update DeepStruct spec to use expect
diff --git a/spec/unit/spec_helper.rb b/spec/unit/spec_helper.rb index abc1234..def5678 100644 --- a/spec/unit/spec_helper.rb +++ b/spec/unit/spec_helper.rb @@ -7,4 +7,5 @@ config.version = '10.11.1' config.before { stub_const('ENV', 'SUDO_USER' => 'fauxhai') } config.after(:suite) { FileUtils.rm_r('.librarian'...
Set chef file cache path for tests We were making an expecation on the path that wasn't necessarily true
diff --git a/test/models/instance/validations/relationship_ref_must_match_cited_by__ref_test.rb b/test/models/instance/validations/relationship_ref_must_match_cited_by__ref_test.rb index abc1234..def5678 100644 --- a/test/models/instance/validations/relationship_ref_must_match_cited_by__ref_test.rb +++ b/test/models/in...
Set an empty test to a skip.
diff --git a/thor.gemspec b/thor.gemspec index abc1234..def5678 100644 --- a/thor.gemspec +++ b/thor.gemspec @@ -4,7 +4,7 @@ require "thor/version" Gem::Specification.new do |spec| - spec.add_development_dependency "bundler", "~> 1.0" + spec.add_development_dependency "bundler", ">= 1.0", "< 3" spec.authors = [...
Allow testing with bundler 2
diff --git a/spec/ciso_spec.rb b/spec/ciso_spec.rb index abc1234..def5678 100644 --- a/spec/ciso_spec.rb +++ b/spec/ciso_spec.rb @@ -1,17 +1,18 @@ require_relative '../lib/ciso.rb' +require 'open-uri' describe CISO do describe "compression" do + # TODO Write this out to a file after the first fetch + subjec...
Make tests pass for other people
diff --git a/services/twitter.rb b/services/twitter.rb index abc1234..def5678 100644 --- a/services/twitter.rb +++ b/services/twitter.rb @@ -6,7 +6,7 @@ commit = commit.last begin Timeout::timeout(2) do - github_url = Net::HTTP.get "tinyurl.com", "/api-create.php?url=#{commit['url']}" + gi...
Use is.gd instead of tinyurl.com
diff --git a/rqrcode_rails3.gemspec b/rqrcode_rails3.gemspec index abc1234..def5678 100644 --- a/rqrcode_rails3.gemspec +++ b/rqrcode_rails3.gemspec @@ -5,7 +5,7 @@ s.summary = "Render QR codes with Rails 3" s.description = "Render QR codes with Rails 3" - s.files = Dir["{app,lib,config}/**/*"] + ["...
Update readme from rdoc to markdown in gemspec
diff --git a/Formula/root5.rb b/Formula/root5.rb index abc1234..def5678 100644 --- a/Formula/root5.rb +++ b/Formula/root5.rb @@ -0,0 +1,62 @@+class Root5 < Formula + homepage "http://root.cern.ch" + + stable do + version "5.34.36" + sha256 "fc868e5f4905544c3f392cc9e895ef5571a08e48682e7fe173bd44c0ba0c7dcd" +...
Add Formula for ROOT 5.34.36
diff --git a/simple_form.gemspec b/simple_form.gemspec index abc1234..def5678 100644 --- a/simple_form.gemspec +++ b/simple_form.gemspec @@ -7,7 +7,7 @@ s.version = SimpleForm::VERSION.dup s.platform = Gem::Platform::RUBY s.summary = "Forms made easy!" - s.email = "contact@plataformatec.com.br...
Change the gem email to use the opensource
diff --git a/lib/entraceable.rb b/lib/entraceable.rb index abc1234..def5678 100644 --- a/lib/entraceable.rb +++ b/lib/entraceable.rb @@ -8,7 +8,7 @@ def #{method}(*args) indent = " " * ((@indent_level ||= 0) * 2) puts = ->c{Rails.logger.tagged(%Q(#{tag})) {Rails.logger.send :#{level}, indent + c...
:sparkles: Put arguments as arguments, not as an array
diff --git a/lib/frankie/app.rb b/lib/frankie/app.rb index abc1234..def5678 100644 --- a/lib/frankie/app.rb +++ b/lib/frankie/app.rb @@ -18,8 +18,8 @@ end def self.run! port=9292 - use Rack::ShowExceptions - use Rack::CommonLogger + middlewares.unshift Rack::ShowExceptions, Rack::CommonLogger ...
Add the default middleware on top os the stack
diff --git a/lib/proteus/kit.rb b/lib/proteus/kit.rb index abc1234..def5678 100644 --- a/lib/proteus/kit.rb +++ b/lib/proteus/kit.rb @@ -16,13 +16,15 @@ if system "git ls-remote #{url(kit_name)} #{repo_name} > /dev/null 2>&1" puts "Starting a new proteus-#{kit_name} project in #{repo_name}" - sy...
Change string characters to %{ } and remove unnecessary trailing slashes
diff --git a/lib/steam_stats.rb b/lib/steam_stats.rb index abc1234..def5678 100644 --- a/lib/steam_stats.rb +++ b/lib/steam_stats.rb @@ -1,3 +1,7 @@+require 'nokogiri' +require 'open-uri' +require 'json' + require "steam_stats/version" require "steam_stats/user"
Add importing required libs to module
diff --git a/lib/twitter_ads.rb b/lib/twitter_ads.rb index abc1234..def5678 100644 --- a/lib/twitter_ads.rb +++ b/lib/twitter_ads.rb @@ -12,7 +12,7 @@ # Usage: # Initialisation # -# ads=TwitterAds::Client.new({consumer_key :"YOUR_CONSUER_KEY", +# ads=TwitterAds::Client.new({consumer_key :"YOUR_CONSUER_KEY", # ...
Add missing fles in the gem
diff --git a/workers/ping_worker.rb b/workers/ping_worker.rb index abc1234..def5678 100644 --- a/workers/ping_worker.rb +++ b/workers/ping_worker.rb @@ -1,6 +1,8 @@ class PingWorker include Sidekiq::Worker def perform(message) - puts message + adapter = Bazooka::Adapter.fetch('gobierno-federal') + adapte...
Fix adapter variables in worker
diff --git a/lib/generators/manageiq/plugin/templates/lib/%plugin_path%/engine.rb b/lib/generators/manageiq/plugin/templates/lib/%plugin_path%/engine.rb index abc1234..def5678 100644 --- a/lib/generators/manageiq/plugin/templates/lib/%plugin_path%/engine.rb +++ b/lib/generators/manageiq/plugin/templates/lib/%plugin_pat...
Change plugin common methods to class methods
diff --git a/db/migrate/20141205225139_create_programs.rb b/db/migrate/20141205225139_create_programs.rb index abc1234..def5678 100644 --- a/db/migrate/20141205225139_create_programs.rb +++ b/db/migrate/20141205225139_create_programs.rb @@ -0,0 +1,17 @@+class CreatePrograms < ActiveRecord::Migration + def change + ...
Create migration for new model programs
diff --git a/files/chef-marketplace-cookbooks/chef-marketplace/recipes/_automate_enable.rb b/files/chef-marketplace-cookbooks/chef-marketplace/recipes/_automate_enable.rb index abc1234..def5678 100644 --- a/files/chef-marketplace-cookbooks/chef-marketplace/recipes/_automate_enable.rb +++ b/files/chef-marketplace-cookbo...
Fix path for license file. Signed-off-by: Ryan Hass <7a1efea0847aa10fda44596a4a622bd3187d968e@users.noreply.github.com>
diff --git a/spec/ci/yarn_pnp_spec.rb b/spec/ci/yarn_pnp_spec.rb index abc1234..def5678 100644 --- a/spec/ci/yarn_pnp_spec.rb +++ b/spec/ci/yarn_pnp_spec.rb @@ -4,7 +4,7 @@ it "zero-install with NODE_MODLES_CACHE=false should deploy successfully" do app = Hatchet::Runner.new( "spec/fixtures/repos/yarn-pnp...
Use correct ENV var for pnp spec
diff --git a/spec/models/farm_spec.rb b/spec/models/farm_spec.rb index abc1234..def5678 100644 --- a/spec/models/farm_spec.rb +++ b/spec/models/farm_spec.rb @@ -13,4 +13,17 @@ expect(@farm.latitude).not_to be_nil expect(@farm.longitude).not_to be_nil end + + it "inserts a farm relation entry" do + relat...
Add tests for farm relation insertions.
diff --git a/spec/pcore/stall_spec.rb b/spec/pcore/stall_spec.rb index abc1234..def5678 100644 --- a/spec/pcore/stall_spec.rb +++ b/spec/pcore/stall_spec.rb @@ -33,6 +33,29 @@ expect(ex['errors']).to eq([]) expect(ex['counters']).to eq({ 'msgs' => 4 }) end + + it 'executes its attributes' do + + ...
Add "stall" vs attributes spec
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -16,12 +16,12 @@ c.discover begin Timeout.timeout(5) do - while c.lights.empty? + while !c.lights.find { |l| l.label =~ /^Test/ } ...
Use a light beginning with Test
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,8 +1,8 @@-PADRINO_ENV = 'test' +RACK_ENV = 'test' PADRINO_ROOT = File.dirname(__FILE__) unless defined?(PADRINO_ROOT) require 'rubygems' unless defined?(Gem) require 'bundler...
Use RACK_ENV instead of deprecated PADRINO_ENV
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -23,24 +23,3 @@ PuppetlabsSpec::Files.cleanup end end - -require 'pathname' -dir = Pathname.new(__FILE__).parent -Puppet[:modulepath] = File.join(dir, 'fixtures', 'modules'...
Use modulesync to manage meta files
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -28,9 +28,4 @@ # (e.g. via a command-line flag). config.default_formatter = 'doc' end - - # Print the 10 slowest examples and example groups at the - # end of the spe...
Remove RSpec 10 profile examples
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -4,4 +4,4 @@ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'bayonet' -require 'pry-byebug' +require 'byebug'
Fix byebug dependency in spec helper
diff --git a/gitfyncy.gemspec b/gitfyncy.gemspec index abc1234..def5678 100644 --- a/gitfyncy.gemspec +++ b/gitfyncy.gemspec @@ -8,9 +8,10 @@ gem.version = Gitfyncy::VERSION gem.authors = ["Ryan McGowan"] gem.email = ["ryan@ryanmcg.com"] - gem.description = %q{TODO: Write a gem descriptio...
Add description and things to gemspec.
diff --git a/start_bot.rb b/start_bot.rb index abc1234..def5678 100644 --- a/start_bot.rb +++ b/start_bot.rb @@ -15,6 +15,6 @@ end end -# Thread.abort_on_exception = true +Thread.abort_on_exception = true if ARGV[0] == '-dev' EM.run { Bot::Core.new(File.join(Dir.pwd, 'lib', 'settings', 'bot_settings.json')) } ex...
Add -dev flag for non-silent exception throwing
diff --git a/BHCDatabase/app/grids/initiatives_grid.rb b/BHCDatabase/app/grids/initiatives_grid.rb index abc1234..def5678 100644 --- a/BHCDatabase/app/grids/initiatives_grid.rb +++ b/BHCDatabase/app/grids/initiatives_grid.rb @@ -6,11 +6,9 @@ end filter(:id, :string, :multiple => ',') - filter(:name, :string) do...
Update initiatives grid to make use of baby_sqeel
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -15,7 +15,7 @@ end def sequel_database_memory - "#{Alf::Sequel::Adapter.sqlite_protocol}:memory" + "#{Alf::Sequel::Adapter.sqlite_protocol}::memory:" end def s...
Fix URIs of memory databases.
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,3 +1,5 @@+require 'adjutant' + RSpec.configure do |config| # Many RSpec users commonly either run the entire suite or an individual # file, and it's useful to allow more ...
Add root module require in spec helper
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -2,3 +2,7 @@ require 'chefspec/berkshelf' at_exit { ChefSpec::Coverage.report! } + +RSpec.configure do |config| + config.log_level = :error +end
Set testing log level to error, to remove deprecation spam
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,9 +1,7 @@ # Setup for test coverage instrumentation (e.g. simplecov, codeclimate) # MUST happen before any other code is loaded require 'simplecov' -SimpleCov.start do - add_...
Use simplecov default "test_frameworks" profile
diff --git a/rspec-matchers_test.gemspec b/rspec-matchers_test.gemspec index abc1234..def5678 100644 --- a/rspec-matchers_test.gemspec +++ b/rspec-matchers_test.gemspec @@ -20,5 +20,5 @@ spec.add_development_dependency "bundler", "~> 1.7" spec.add_development_dependency "rake", "~> 10.0" - spec.add_development_...
Upgrade rspec, so we are using the new matchers
diff --git a/lib/firering/instantiator.rb b/lib/firering/instantiator.rb index abc1234..def5678 100644 --- a/lib/firering/instantiator.rb +++ b/lib/firering/instantiator.rb @@ -17,7 +17,7 @@ else msg = "WARNING: Could not set attribute '#{key}' to value '#{value}' on #{self} object." msg <...
Change conn to correct connection instance
diff --git a/lib/hooks/docker-hub/hook.rb b/lib/hooks/docker-hub/hook.rb index abc1234..def5678 100644 --- a/lib/hooks/docker-hub/hook.rb +++ b/lib/hooks/docker-hub/hook.rb @@ -1,6 +1,6 @@ module Idobata::Hook class DockerHub < Base - screen_name 'Docker Hub automated build' + screen_name 'Docker Hub' ico...
Rename screen_name: Docker Hub automated build -> Docker Hub
diff --git a/lib/import/import_samples.rb b/lib/import/import_samples.rb index abc1234..def5678 100644 --- a/lib/import/import_samples.rb +++ b/lib/import/import_samples.rb @@ -2,14 +2,16 @@ class Import::ImportSamples def self.import_samples_from_file(file_path, collection_id) - xlsx = Roo::Spreadsheet.open(fi...
Add ActiveRecord Base Transaction into import of samples from file
diff --git a/db/data_migration/20130429203455_deindex_duplicate_eos.rb b/db/data_migration/20130429203455_deindex_duplicate_eos.rb index abc1234..def5678 100644 --- a/db/data_migration/20130429203455_deindex_duplicate_eos.rb +++ b/db/data_migration/20130429203455_deindex_duplicate_eos.rb @@ -0,0 +1,4 @@+Rummageable.del...
Remove bad URLs for Number10 and DPMO from search https://www.pivotaltracker.com/story/show/48925175
diff --git a/db/migrate/20150727212724_add_private_profile_to_users.rb b/db/migrate/20150727212724_add_private_profile_to_users.rb index abc1234..def5678 100644 --- a/db/migrate/20150727212724_add_private_profile_to_users.rb +++ b/db/migrate/20150727212724_add_private_profile_to_users.rb @@ -1,5 +1,5 @@ class AddPrivat...
Make private_profile flag true by default. Change the expression index to match the usual query for it.
diff --git a/lib/tasks/elasticsearch.rake b/lib/tasks/elasticsearch.rake index abc1234..def5678 100644 --- a/lib/tasks/elasticsearch.rake +++ b/lib/tasks/elasticsearch.rake @@ -35,7 +35,7 @@ end end end - Spree::Product.where(out_of_date_at: nil).find_each do |product| + Spree::Product.availab...
Change rake task to use .available instead of out_of_date_at (sometimes a product is unavailable for a reason other than its out_of_date_at field)
diff --git a/Casks/aerofs.rb b/Casks/aerofs.rb index abc1234..def5678 100644 --- a/Casks/aerofs.rb +++ b/Casks/aerofs.rb @@ -1,7 +1,7 @@ class Aerofs < Cask - url 'https://dsy5cjk52fz4a.cloudfront.net/AeroFSInstall.dmg' + url 'https://dsy5cjk52fz4a.cloudfront.net/AeroFSInstall-0.8.32.dmg' homepage 'https://www.aer...
Fix AeroFS cask url (now v0.0.32)
diff --git a/lib/astaire/railtie.rb b/lib/astaire/railtie.rb index abc1234..def5678 100644 --- a/lib/astaire/railtie.rb +++ b/lib/astaire/railtie.rb @@ -5,7 +5,10 @@ end initializer "astaire.cascade_routing" do |app| - app.middleware.use ActionDispatch::Cascade, lambda { ApplicationController } + #...
Fix a bug with reloading in development mode
diff --git a/lib/webpack_support_rails.rb b/lib/webpack_support_rails.rb index abc1234..def5678 100644 --- a/lib/webpack_support_rails.rb +++ b/lib/webpack_support_rails.rb @@ -2,5 +2,17 @@ require 'webpack_support_rails/railtie' if defined?(Rails) module WebpackSupportRails - mattr_accessor :update_webpack_manifes...
Set defaults in WebpackSupportRails module
diff --git a/test/cookbook/recipes/django.rb b/test/cookbook/recipes/django.rb index abc1234..def5678 100644 --- a/test/cookbook/recipes/django.rb +++ b/test/cookbook/recipes/django.rb @@ -19,7 +19,7 @@ application '/opt/test_django' do git 'https://github.com/poise/test_django.git' - python 'pypy3' + python 'py...
Make pypy3 work again by switching to the 3.3 compat alpha, which works with pip 9.
diff --git a/plugin.rb b/plugin.rb index abc1234..def5678 100644 --- a/plugin.rb +++ b/plugin.rb @@ -5,9 +5,11 @@ # url: https://github.com/xfalcox/discourse-backups-to-dropbox gem 'public_suffix', '2.0.5', {require: false } +gem 'domain_name', '0.5.20170404', {require: false } gem 'addressable', '2.5.1', {requir...
Add gem dependencies dropped by Discourse
diff --git a/lib/solid/default_security_rules.rb b/lib/solid/default_security_rules.rb index abc1234..def5678 100644 --- a/lib/solid/default_security_rules.rb +++ b/lib/solid/default_security_rules.rb @@ -14,3 +14,10 @@ Module => [:const_get, :const_set, :const_defined?, :freeze, :ancestors], Class => [:new, :allo...
Allow to_json for Integer and Bignum instances under 1.9.3
diff --git a/test/support/mock_controller.rb b/test/support/mock_controller.rb index abc1234..def5678 100644 --- a/test/support/mock_controller.rb +++ b/test/support/mock_controller.rb @@ -13,12 +13,12 @@ "http://example.com" end - def url_helpers - self + def url_options + {} end - def hash_for_...
Update the MockController code to work with Rails 4
diff --git a/lib/rubill/customer.rb b/lib/rubill/customer.rb index abc1234..def5678 100644 --- a/lib/rubill/customer.rb +++ b/lib/rubill/customer.rb @@ -9,24 +9,17 @@ new(record) end - def self.receive_payment(opts) - ReceivedPayment.create(opts) - end - - def self.void_received_payment(id) -...
Add syncReference as optional field in credit creation.
diff --git a/lib/thredded/errors.rb b/lib/thredded/errors.rb index abc1234..def5678 100644 --- a/lib/thredded/errors.rb +++ b/lib/thredded/errors.rb @@ -5,7 +5,7 @@ module Errors class DatabaseEmpty < Thredded::Error def message - 'Seed the database with "rake thredded:dev:seed".' + 'Seed th...
[JRO] Update error w/correct rake task to run If there's no data and you visit the dummy app server you will get this error. The previous error message had the incorrect rake task in the error message - this fixes that.
diff --git a/recipes/default.rb b/recipes/default.rb index abc1234..def5678 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -29,3 +29,14 @@ action :nothing end +directory File.join(node['jvogt_tomcat']['install_path'], 'conf') do + group node['jvogt_tomcat']['group'] # TODO: write execute to idempoten...
Manage permissions on tomcat directories
diff --git a/lib/hyphenify/rails/action_view/base.rb b/lib/hyphenify/rails/action_view/base.rb index abc1234..def5678 100644 --- a/lib/hyphenify/rails/action_view/base.rb +++ b/lib/hyphenify/rails/action_view/base.rb @@ -5,14 +5,17 @@ extend ActiveSupport::Concern included do - alias_method_...
Make it compatible with rails 3.2
diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb index abc1234..def5678 100644 --- a/app/controllers/comments_controller.rb +++ b/app/controllers/comments_controller.rb @@ -7,6 +7,7 @@ format.html { render :partial => 'entries/comment', :object => created_comment } ...
Add starlight to a new comment's entry.
diff --git a/lib/mspec/matchers/be_valid_dns_name.rb b/lib/mspec/matchers/be_valid_dns_name.rb index abc1234..def5678 100644 --- a/lib/mspec/matchers/be_valid_dns_name.rb +++ b/lib/mspec/matchers/be_valid_dns_name.rb @@ -1,7 +1,8 @@ class BeValidDNSName # http://stackoverflow.com/questions/106179/regular-expression-...
Change DNS matcher to allow underscores. Caused failing specs if you've got certain things in your hosts file
diff --git a/app/controllers/profiles_controller.rb b/app/controllers/profiles_controller.rb index abc1234..def5678 100644 --- a/app/controllers/profiles_controller.rb +++ b/app/controllers/profiles_controller.rb @@ -13,7 +13,7 @@ private def profile_params - allowed = %w[name staff_number grade organisation cu...
Remove organisation from allowed params.
diff --git a/db/migrate/20110516083636_change_feedback_field_to_integer.rb b/db/migrate/20110516083636_change_feedback_field_to_integer.rb index abc1234..def5678 100644 --- a/db/migrate/20110516083636_change_feedback_field_to_integer.rb +++ b/db/migrate/20110516083636_change_feedback_field_to_integer.rb @@ -0,0 +1,24 @...
Change field type for feedback
diff --git a/db/migrate/20200416210758_drop_enrollment_section_index.rb b/db/migrate/20200416210758_drop_enrollment_section_index.rb index abc1234..def5678 100644 --- a/db/migrate/20200416210758_drop_enrollment_section_index.rb +++ b/db/migrate/20200416210758_drop_enrollment_section_index.rb @@ -0,0 +1,28 @@+# +# Copyr...
Drop index on course_section_id from enrollments closes: KNO-408 test plan - migrations should run - specs should pass Change-Id: I3414d55110f9cb84e0d99d03796f0613081af7e1 Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/234401 Reviewed-by: James Williams <3a5f4ed991dbfa5c9ef76ad729d240ca12f62180@instruc...
diff --git a/app/helpers/seo_cms/articles_helper.rb b/app/helpers/seo_cms/articles_helper.rb index abc1234..def5678 100644 --- a/app/helpers/seo_cms/articles_helper.rb +++ b/app/helpers/seo_cms/articles_helper.rb @@ -1,7 +1,14 @@ module SeoCms module ArticlesHelper def generate_breadcrumbs(breadcrumbs_info) - ...
Update breadrcumbs formatting not to include link on the last node
diff --git a/Expecta.podspec b/Expecta.podspec index abc1234..def5678 100644 --- a/Expecta.podspec +++ b/Expecta.podspec @@ -1,12 +1,12 @@ Pod::Spec.new do |s| s.name = 'Expecta' s.version = '0.2.4' - s.license = 'MIT' + s.license = { :type => 'MIT', :file => 'LICENSE' } s.summary = 'A matcher framew...
Add license format, disable ARC and add deployment targets to podspec Also fixes format of tag version string. Passes `pod spec lint` validation.
diff --git a/ruby-gumbo.gemspec b/ruby-gumbo.gemspec index abc1234..def5678 100644 --- a/ruby-gumbo.gemspec +++ b/ruby-gumbo.gemspec @@ -0,0 +1,25 @@+require 'rake/file_list' + +Gem::Specification.new do |spec| + spec.name = "ruby-gumbo" + spec.version = "1.1.0.rc1" + spec.summary = "Ruby bindings for the gumbo html...
Add temporary gemspec so that the gem can be built via URL
diff --git a/lib/active_set/filtering/operation.rb b/lib/active_set/filtering/operation.rb index abc1234..def5678 100644 --- a/lib/active_set/filtering/operation.rb +++ b/lib/active_set/filtering/operation.rb @@ -30,7 +30,10 @@ attribute_instructions.reject(&:processed?).reduce(activerecord_filtered_set) do |...
Fix the logic for ensuring the filtering Enumerable adapter has properly processed a filtering instruction
diff --git a/app.rb b/app.rb index abc1234..def5678 100644 --- a/app.rb +++ b/app.rb @@ -22,6 +22,7 @@ configure :production do require 'rack/ssl-enforcer' use Rack::SslEnforcer + disable :logging end configure do
Disable route logging in production
diff --git a/main.rb b/main.rb index abc1234..def5678 100644 --- a/main.rb +++ b/main.rb @@ -19,6 +19,7 @@ obj = JSON.parse(request.body.read) order_no = obj['data']['order_no'] order_socket_pair[order_no].send JSON.generate({status: 'charged'}) + 'ok' end post '/charge' do
Add a correct return to webhooks
diff --git a/Text/reverse_string/lib/reverse_string.rb b/Text/reverse_string/lib/reverse_string.rb index abc1234..def5678 100644 --- a/Text/reverse_string/lib/reverse_string.rb +++ b/Text/reverse_string/lib/reverse_string.rb @@ -1,4 +1,4 @@-require "reverse_string/version" +# reverse_string.rb module ReverseString ...
Update the solution so that the script now prompts the user.
diff --git a/lib/tasks/add_achievements_to_fb.rake b/lib/tasks/add_achievements_to_fb.rake index abc1234..def5678 100644 --- a/lib/tasks/add_achievements_to_fb.rake +++ b/lib/tasks/add_achievements_to_fb.rake @@ -1,6 +1,40 @@ namespace :db do + require 'koala' + require 'json' task add_achievements_to_fb: :envir...
Complete rake task for adding existing achievements to FB as badges. References Coursemology/coursemology.org#192.
diff --git a/Lock-GooglePlus.podspec b/Lock-GooglePlus.podspec index abc1234..def5678 100644 --- a/Lock-GooglePlus.podspec +++ b/Lock-GooglePlus.podspec @@ -6,10 +6,10 @@ [![Auth0](https://i.cloudup.com/1vaSVATKTL.png)](http://auth0.com) Plugin for [Auth0 Lock](https://githu...
Use new origin and deprecate it
diff --git a/lib/vendors/simple_navigation/renderer/twitter_sidenav.rb b/lib/vendors/simple_navigation/renderer/twitter_sidenav.rb index abc1234..def5678 100644 --- a/lib/vendors/simple_navigation/renderer/twitter_sidenav.rb +++ b/lib/vendors/simple_navigation/renderer/twitter_sidenav.rb @@ -3,6 +3,8 @@ content, fi...
Hide edit and destroy links from sidenav
diff --git a/Formula/scalate.rb b/Formula/scalate.rb index abc1234..def5678 100644 --- a/Formula/scalate.rb +++ b/Formula/scalate.rb @@ -1,10 +1,10 @@ require 'formula' class Scalate <Formula - url 'http://repo.fusesource.com/nexus/content/repositories/public/org/fusesource/scalate/scalate-distro/1.4.0/scalate-dist...
Update Scalate to release 1.4.1. Signed-off-by: Adam Vandenberg <34c2b6407fd5a10249a15d699d40f9ed1782e98c@gmail.com>
diff --git a/Slash.podspec b/Slash.podspec index abc1234..def5678 100644 --- a/Slash.podspec +++ b/Slash.podspec @@ -15,14 +15,6 @@ s.osx.deployment_target = '10.6' s.public_header_files = 'Slash/Slash.h', 'Slash/SLSMarkupParser.h', 'Slash/SLSErrors.h' - - s.subspec 'arc' do |ss| - ss.source_files = 'Slash/S...
Update podspec to suppress ARC in generated source files using the current CocoaPods syntax
diff --git a/test/test_misc.rb b/test/test_misc.rb index abc1234..def5678 100644 --- a/test/test_misc.rb +++ b/test/test_misc.rb @@ -0,0 +1,18 @@+# encoding: UTF-8 +require File.dirname(__FILE__) + '/helper' + +# Random tests for specific issues. +# +# The test suite will be cleaned up at some point soon. +class TestMi...
Test parsing dodgy HTML attributes
diff --git a/test/test_post.rb b/test/test_post.rb index abc1234..def5678 100644 --- a/test/test_post.rb +++ b/test/test_post.rb @@ -12,33 +12,41 @@ end subject do - filename = '2015-01-01-a-post.markdown' - file_path = File.join(test_site.source_paths[:posts], filename) - Dimples::Post.new(test_site, f...
Switch to a different subject post, add tests for previous and next posts and the inspect method, switch to the simpler write method.
diff --git a/lib/combustion/database/reset.rb b/lib/combustion/database/reset.rb index abc1234..def5678 100644 --- a/lib/combustion/database/reset.rb +++ b/lib/combustion/database/reset.rb @@ -12,8 +12,11 @@ end def call - ActiveRecord::Base.configurations.values.each do |conf| - operator_class(conf['ada...
Handle databases specified by URL.
diff --git a/lib/aruba-doubles/hooks.rb b/lib/aruba-doubles/hooks.rb index abc1234..def5678 100644 --- a/lib/aruba-doubles/hooks.rb +++ b/lib/aruba-doubles/hooks.rb @@ -3,5 +3,6 @@ end Before('@repeat_arguments') do + warn(%{\e[35m The @repeat_arguments tag is deprecated and will be removed in v0.1.1. Please use...
Add deprecation warning to @repeat_arguments hook
diff --git a/lib/checky/checks/check.rb b/lib/checky/checks/check.rb index abc1234..def5678 100644 --- a/lib/checky/checks/check.rb +++ b/lib/checky/checks/check.rb @@ -47,7 +47,7 @@ def to_s(base) return base unless called? - base + (pass? ? ' PASSED' : (error ? 'FAILED (%s)' % error : ' FAILED...
Fix missing space in results.
diff --git a/lib/guard/rspectacle/humanity.rb b/lib/guard/rspectacle/humanity.rb index abc1234..def5678 100644 --- a/lib/guard/rspectacle/humanity.rb +++ b/lib/guard/rspectacle/humanity.rb @@ -1,8 +1,15 @@ module Guard class RSpectacle + # The humanity class helps to bring some randomness + # into the so bor...
Add yardoc and remove unnecessary ['abc'].
diff --git a/lib/rambulance/exceptions_app.rb b/lib/rambulance/exceptions_app.rb index abc1234..def5678 100644 --- a/lib/rambulance/exceptions_app.rb +++ b/lib/rambulance/exceptions_app.rb @@ -19,7 +19,7 @@ private def status_in_words - ActionDispatch::ExceptionWrapper.rescue_responses[exception.class.t...
Use status value to get http status in symbol
diff --git a/lib/glimpse/views/redis.rb b/lib/glimpse/views/redis.rb index abc1234..def5678 100644 --- a/lib/glimpse/views/redis.rb +++ b/lib/glimpse/views/redis.rb @@ -8,9 +8,9 @@ self.query_count = 0 self.query_time = 0 - def call_with_timing(*args) + def call_with_timing(*args, &block) start = Time.now...
Include the block if one is given
diff --git a/lib/tasks/full_import.rake b/lib/tasks/full_import.rake index abc1234..def5678 100644 --- a/lib/tasks/full_import.rake +++ b/lib/tasks/full_import.rake @@ -6,7 +6,20 @@ event_type: 'full_import' ) - Study.destroy_all + all_tables = ActiveRecord::Base.connection.tables + +...
Truncate tables for full load.
diff --git a/spec/builders/pdf_spec.rb b/spec/builders/pdf_spec.rb index abc1234..def5678 100644 --- a/spec/builders/pdf_spec.rb +++ b/spec/builders/pdf_spec.rb @@ -1,12 +1,16 @@ require 'spec_helper' describe Polytexnic::Builders::Pdf do - before(:all) { generate_book } + before(:all) do + generate_book + @...
Move builder.build! into before(:all) block for PDf [#52758883]
diff --git a/lib/tasks/development/load_calendar_data.rake b/lib/tasks/development/load_calendar_data.rake index abc1234..def5678 100644 --- a/lib/tasks/development/load_calendar_data.rake +++ b/lib/tasks/development/load_calendar_data.rake @@ -4,14 +4,14 @@ desc 'Load banes-default-calendar' task load_banes_defau...
Fix typos in this old file
diff --git a/spec/lib/truncate_spec.rb b/spec/lib/truncate_spec.rb index abc1234..def5678 100644 --- a/spec/lib/truncate_spec.rb +++ b/spec/lib/truncate_spec.rb @@ -25,4 +25,9 @@ query = 'SELECT * FROM t' expect(described_class.parse(query).truncate(10)).to eq 'SELECT ...' end + + it 'works problematic cas...
Add additional test for truncation/deparsing.
diff --git a/spec/font_attribute_spec.rb b/spec/font_attribute_spec.rb index abc1234..def5678 100644 --- a/spec/font_attribute_spec.rb +++ b/spec/font_attribute_spec.rb @@ -2,6 +2,7 @@ before do @builder = MotionMastr::Builder.new + @font = UIFont.systemFontOfSize(30) end it "should return nil if gi...
Test for font getting built.
diff --git a/spec/spec_helper_rails.rb b/spec/spec_helper_rails.rb index abc1234..def5678 100644 --- a/spec/spec_helper_rails.rb +++ b/spec/spec_helper_rails.rb @@ -3,9 +3,10 @@ require 'action_controller/railtie' require 'rails/test_unit/railtie' -Class.new(Rails::Application) do +class TestApplication < Rails::App...
Use a sub-class of Rails::Application for 1.8.7.
diff --git a/specs/raygun/raygun_spec.rb b/specs/raygun/raygun_spec.rb index abc1234..def5678 100644 --- a/specs/raygun/raygun_spec.rb +++ b/specs/raygun/raygun_spec.rb @@ -0,0 +1,34 @@+require_relative '../spec_helper' +require 'stringio' + +describe Raygun do + let(:failsafe_logger) { FakeLogger.new } + + describe ...
Add test around send_in_background and timeouts Unfortunately this just triggers a timeout, doesn't actually confirm it will time out. But confirms that the behaviour when a time out _does_ happen is correct
diff --git a/models/model_object.rb b/models/model_object.rb index abc1234..def5678 100644 --- a/models/model_object.rb +++ b/models/model_object.rb @@ -20,8 +20,8 @@ # This expects a to_hash method to be defined. # # Returns the JSON representation of the model object. - def to_json - t...
Fix general case of to_json for model objects.
diff --git a/lib/active_attr/version.rb b/lib/active_attr/version.rb index abc1234..def5678 100644 --- a/lib/active_attr/version.rb +++ b/lib/active_attr/version.rb @@ -1,5 +1,5 @@ module ActiveAttr # Complete version string # @since 0.1.0 - VERSION = "0.8.2" + VERSION = "0.8.3" end
Mark the release of 0.8.3 [ci skip]
diff --git a/core/spec/controllers/spree/admin/shipping_methods_controller_spec.rb b/core/spec/controllers/spree/admin/shipping_methods_controller_spec.rb index abc1234..def5678 100644 --- a/core/spec/controllers/spree/admin/shipping_methods_controller_spec.rb +++ b/core/spec/controllers/spree/admin/shipping_methods_co...
Add stub_authorization to admin/shipping_methods controller spec