diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/recipes/wp-database.rb b/recipes/wp-database.rb index abc1234..def5678 100644 --- a/recipes/wp-database.rb +++ b/recipes/wp-database.rb @@ -19,7 +19,6 @@ # include_recipe "mysql::client" unless platform_family?('windows') # No MySQL client on Windows -include_recipe "mysql::ruby" db = node['wordpress...
Update for use with v5.0.0 of community coookbook
diff --git a/lib/tasks/maintenance.rake b/lib/tasks/maintenance.rake index abc1234..def5678 100644 --- a/lib/tasks/maintenance.rake +++ b/lib/tasks/maintenance.rake @@ -0,0 +1,42 @@+namespace :maintenance do + desc "Dump the current database, replace it with what's in production" + task export: :environment do + f...
Make the filename more descriptive
diff --git a/lib/alf/sequel/unit_of_work/update.rb b/lib/alf/sequel/unit_of_work/update.rb index abc1234..def5678 100644 --- a/lib/alf/sequel/unit_of_work/update.rb +++ b/lib/alf/sequel/unit_of_work/update.rb @@ -6,9 +6,44 @@ def initialize(connection, relvar_name, updating, predicate) super(connec...
Add matching_relation and pk_matching_relation to UnitOfWork::Update
diff --git a/lib/protest/utils/backtrace_filter.rb b/lib/protest/utils/backtrace_filter.rb index abc1234..def5678 100644 --- a/lib/protest/utils/backtrace_filter.rb +++ b/lib/protest/utils/backtrace_filter.rb @@ -6,6 +6,9 @@ ESCAPE_PATHS = [ # Path to the library's 'lib' dir. /^#{Regexp.escape(F...
Clean the backtraces a bit more Ignore the test loaders from the backtrace, it's irrelevant to the test when it fails if it's loaded via rake, testrb, or whatever. And if it's not, then your problem isn't the backtrace :P
diff --git a/lib/kuroko2/configuration.rb b/lib/kuroko2/configuration.rb index abc1234..def5678 100644 --- a/lib/kuroko2/configuration.rb +++ b/lib/kuroko2/configuration.rb @@ -9,10 +9,10 @@ @config ||= build_config end + private + def build_config - filename = Rails.root.join('confi...
Make use `config_for` method for loading config file Since Rails 4.2 YAML configuration files can be easily loaded with the new config_for
diff --git a/lib/mastermind/mastermind.rb b/lib/mastermind/mastermind.rb index abc1234..def5678 100644 --- a/lib/mastermind/mastermind.rb +++ b/lib/mastermind/mastermind.rb @@ -2,7 +2,12 @@ def initialize end + def clear + print "\e[2J\e[f" + end + def run + clear puts 'Welcome to MASTERMIND' ...
Add a clear screen function on game start
diff --git a/lib/monarchy/acts_as_role.rb b/lib/monarchy/acts_as_role.rb index abc1234..def5678 100644 --- a/lib/monarchy/acts_as_role.rb +++ b/lib/monarchy/acts_as_role.rb @@ -11,7 +11,7 @@ has_many :members_roles, dependent: :destroy, class_name: 'Monarchy::MembersRole' has_many :members, through: :m...
Fix rails 5 belongs_to require validation
diff --git a/lib/multi_json/engines/oj.rb b/lib/multi_json/engines/oj.rb index abc1234..def5678 100644 --- a/lib/multi_json/engines/oj.rb +++ b/lib/multi_json/engines/oj.rb @@ -5,6 +5,8 @@ # Use the Oj library to encode/decode. class Oj ParseError = SyntaxError + + ::Oj.default_options = {:mode => ...
Set Oj to compat mode
diff --git a/lib/rake/loaders/makefile.rb b/lib/rake/loaders/makefile.rb index abc1234..def5678 100644 --- a/lib/rake/loaders/makefile.rb +++ b/lib/rake/loaders/makefile.rb @@ -4,18 +4,16 @@ class MakefileLoader include Rake::DSL - SPACE_MARK = "__ __" + SPACE_MARK = "\0" # Load the makefile ...
Deal with escaped spaces better. Ruby commit r22791
diff --git a/lib/realtime/view_helpers.rb b/lib/realtime/view_helpers.rb index abc1234..def5678 100644 --- a/lib/realtime/view_helpers.rb +++ b/lib/realtime/view_helpers.rb @@ -1,29 +1,26 @@ module Realtime - module ViewHelpers + module ViewHelpers - def realtime_support - return render(:template =>"realtime/real...
Switch the view helpers to the new Ruby hash notation
diff --git a/dummy/test/test_helper.rb b/dummy/test/test_helper.rb index abc1234..def5678 100644 --- a/dummy/test/test_helper.rb +++ b/dummy/test/test_helper.rb @@ -1,4 +1,4 @@-Rails.env = "test" +ENV['RAILS_ENV'] = 'test' require File.expand_path("../../config/environment", __FILE__) require "rails/test_help" requi...
Use ENV, fixes uninitialized constant Rails (NameError)
diff --git a/rumember.gemspec b/rumember.gemspec index abc1234..def5678 100644 --- a/rumember.gemspec +++ b/rumember.gemspec @@ -14,6 +14,13 @@ "rumember.gemspec", "bin/ru", "lib/rumember.rb", + "lib/rumember/abstract.rb", + "lib/rumember/account.rb", + "lib/rumember/list.rb", + "lib/rumember/...
Add missing files to gemspec
diff --git a/spec/infrastructure/location_repository_spec.rb b/spec/infrastructure/location_repository_spec.rb index abc1234..def5678 100644 --- a/spec/infrastructure/location_repository_spec.rb +++ b/spec/infrastructure/location_repository_spec.rb @@ -15,4 +15,34 @@ found_location = location_repository.find(UnLoco...
Initialize locations with hash list.
diff --git a/post_install.rb b/post_install.rb index abc1234..def5678 100644 --- a/post_install.rb +++ b/post_install.rb @@ -1,4 +1,4 @@ # This file is executed in the Rails environment by rails-post-install # Create any necessary global Censor rules -require 'censor_rules.rb' +require 'censor_rules'
Fix syntax of require statement.
diff --git a/paperclip-sftp.gemspec b/paperclip-sftp.gemspec index abc1234..def5678 100644 --- a/paperclip-sftp.gemspec +++ b/paperclip-sftp.gemspec @@ -20,7 +20,7 @@ gem.add_dependency "paperclip", "~> 3.2.0" gem.add_dependency "net-sftp", "~> 2.0.5" - gem.add_development_dependency "minitest", "~> 3.3...
Remove versions from development dependencies.
diff --git a/lib/jimsy/cli.rb b/lib/jimsy/cli.rb index abc1234..def5678 100644 --- a/lib/jimsy/cli.rb +++ b/lib/jimsy/cli.rb @@ -24,6 +24,12 @@ end end + desc "password", "Generate a customer-friendly random password" + def password + words = File.read("/usr/share/dict/words").split("\n") + ...
Add a friendly password generator.
diff --git a/lib/lightstep.rb b/lib/lightstep.rb index abc1234..def5678 100644 --- a/lib/lightstep.rb +++ b/lib/lightstep.rb @@ -26,9 +26,8 @@ # Returns a random guid. Note: this intentionally does not use SecureRandom, # which is slower and cryptographically secure randomness is not required here. def self.gui...
Use Process.pid instead of $$ This is a bit clearer, and I think makes the comment for this block unnecessary.
diff --git a/lib/cuba/ron.rb b/lib/cuba/ron.rb index abc1234..def5678 100644 --- a/lib/cuba/ron.rb +++ b/lib/cuba/ron.rb @@ -7,9 +7,9 @@ Thread.current[:_cache] ||= Tilt::Cache.new end - def render(template, locals = {}) + def render(template, locals = {}, options = {}) _cache.fetch(template, ...
Add the ability to pass in template options.
diff --git a/yubikey.gemspec b/yubikey.gemspec index abc1234..def5678 100644 --- a/yubikey.gemspec +++ b/yubikey.gemspec @@ -12,7 +12,7 @@ s.extra_rdoc_files = [ "LICENSE", - "README.rdoc" + "README.md" ] s.files = [ "examples/otp.rb",
Update gemspec - README.rdoc was renamed to .md
diff --git a/radriar.gemspec b/radriar.gemspec index abc1234..def5678 100644 --- a/radriar.gemspec +++ b/radriar.gemspec @@ -18,10 +18,16 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] + spec.required_ruby_version = "~> 2.0" + spec.add_dependency "activesuppo...
Add required ruby 2 to gemfile and few deps
diff --git a/rails/routes.rb b/rails/routes.rb index abc1234..def5678 100644 --- a/rails/routes.rb +++ b/rails/routes.rb @@ -1,7 +1,7 @@ if defined?(Rails::Application) # Rails3 routes - Rails::Application.routes.draw do |map| + Rails.application.routes.draw do |map| match "/#{Jammit.package_path}/:package.:e...
Fix warning message in rails 3.0rc
diff --git a/lib/api/routes/exercises.rb b/lib/api/routes/exercises.rb index abc1234..def5678 100644 --- a/lib/api/routes/exercises.rb +++ b/lib/api/routes/exercises.rb @@ -21,7 +21,7 @@ end get '/exercises/:language/:slug' do |language, slug| - halt *Xapi.get("exercises", language, slug) + ...
Call new endpoint on x-api
diff --git a/lib/get-fooda/restaurant.rb b/lib/get-fooda/restaurant.rb index abc1234..def5678 100644 --- a/lib/get-fooda/restaurant.rb +++ b/lib/get-fooda/restaurant.rb @@ -16,7 +16,7 @@ end def to_s - "#{name} (#{cuisine})" + "#{name} (#{cuisine}) - #{link}" end def slack_text
Add link to printed text
diff --git a/rails_template.rb b/rails_template.rb index abc1234..def5678 100644 --- a/rails_template.rb +++ b/rails_template.rb @@ -1,22 +1,22 @@ # Template engine -gem 'haml-rails' +gem "haml-rails" # Test framework -gem 'rspec-rails' +gem "rspec-rails" # Linters -gem 'rubocop' -gem 'haml-lint' -gem 'scss-lint'...
Use double quotes for Ruby stuff
diff --git a/lib/portal_configuration.rb b/lib/portal_configuration.rb index abc1234..def5678 100644 --- a/lib/portal_configuration.rb +++ b/lib/portal_configuration.rb @@ -1,5 +1,5 @@ # Add some investigation functionality to the User model -class User < ActiveRecord::Base +User.class_eval do has_many :investigatio...
Use class_eval so that our modifications actually get included.
diff --git a/rticles.gemspec b/rticles.gemspec index abc1234..def5678 100644 --- a/rticles.gemspec +++ b/rticles.gemspec @@ -16,7 +16,7 @@ s.files = `git ls-files`.split($\) - s.add_dependency "rails", "~> 3.2.8" + s.add_dependency "rails", "~> 3.2.8", '<4.1' s.add_dependency "acts_as_list", ">=0.1.8",...
Expand dependencies to include Rails 4.0.
diff --git a/lib/capistrano/dsl/stages.rb b/lib/capistrano/dsl/stages.rb index abc1234..def5678 100644 --- a/lib/capistrano/dsl/stages.rb +++ b/lib/capistrano/dsl/stages.rb @@ -4,9 +4,6 @@ def stages Dir[stage_definitions].map { |f| File.basename(f, '.rb') } - end - - def infer_stages_from_st...
Remove unused and empty method definition
diff --git a/apps/base.rb b/apps/base.rb index abc1234..def5678 100644 --- a/apps/base.rb +++ b/apps/base.rb @@ -26,4 +26,26 @@ dep 'xquartz.cask' -dep 'zsh.bin' +dep 'zsh.bin' + +dep 'osx-core-all' do + requires 'osx-core-apps' + requires 'osx-core-apps-extended' +end + +dep 'osx-core-apps' do + requires 'home...
Add core dependency set tasks.
diff --git a/lib/kindle_manager/client.rb b/lib/kindle_manager/client.rb index abc1234..def5678 100644 --- a/lib/kindle_manager/client.rb +++ b/lib/kindle_manager/client.rb @@ -31,12 +31,12 @@ end def load_kindle_books - set_adapter(:books, @options) + set_adapter(:books, @options.except(:create)) ...
Fix a bug with 'create: true' option
diff --git a/lib/lifx/light_collection.rb b/lib/lifx/light_collection.rb index abc1234..def5678 100644 --- a/lib/lifx/light_collection.rb +++ b/lib/lifx/light_collection.rb @@ -21,11 +21,13 @@ tags_field = site.tag_manager.tags_field_for_tags(*tags) site.queue_write(params.merge(tagged: true, tags: tag...
Add with_tags method and delegate more array methods to lights
diff --git a/sidekiq-statsd.gemspec b/sidekiq-statsd.gemspec index abc1234..def5678 100644 --- a/sidekiq-statsd.gemspec +++ b/sidekiq-statsd.gemspec @@ -18,5 +18,7 @@ gem.require_paths = ["lib"] gem.add_dependency "activesupport" - gem.add_dependency "sidekiq", ">= 2.6" + gem.add_dependency "sidekiq", ">= 2.7"...
Fix bad merge with master Address https://github.com/phstc/sidekiq-statsd/commit/b7c7998d36465b55b7f75475bf6b700d3a66096d#r36336711 and https://github.com/phstc/sidekiq-statsd/commit/b7c7998d36465b55b7f75475bf6b700d3a66096d#r36336689
diff --git a/lib/mailman-rails.rb b/lib/mailman-rails.rb index abc1234..def5678 100644 --- a/lib/mailman-rails.rb +++ b/lib/mailman-rails.rb @@ -1,5 +1,6 @@ require "mailman-rails/version" -require "mailman" +Gem.send :require, "mailman" # Force loading of the Gem, not my file +require 'mailman' require "mailman/rails...
Load the Mailman Gem instead of the file in this Gem
diff --git a/lib/pix_scale/pic.rb b/lib/pix_scale/pic.rb index abc1234..def5678 100644 --- a/lib/pix_scale/pic.rb +++ b/lib/pix_scale/pic.rb @@ -11,15 +11,15 @@ @path = path @dirname = File.dirname(path) @basename = File.basename(path, ".*") - @extname = File.extname(path).sub(/^\./, "") + ...
Fix a extname format as File.extname png -> .png ^
diff --git a/lib/ditty/controllers/user_login_traits_controller.rb b/lib/ditty/controllers/user_login_traits_controller.rb index abc1234..def5678 100644 --- a/lib/ditty/controllers/user_login_traits_controller.rb +++ b/lib/ditty/controllers/user_login_traits_controller.rb @@ -36,5 +36,9 @@ policy_scope(::Ditty:...
chore: Order login traits by updated_at, reversed
diff --git a/lib/sucker_punch/railtie.rb b/lib/sucker_punch/railtie.rb index abc1234..def5678 100644 --- a/lib/sucker_punch/railtie.rb +++ b/lib/sucker_punch/railtie.rb @@ -2,6 +2,10 @@ class Railtie < ::Rails::Railtie initializer "sucker_punch.logger" do SuckerPunch.logger = Rails.logger + + ActionD...
Clear registry when Rails reloader is invoked
diff --git a/generic_api_rails.gemspec b/generic_api_rails.gemspec index abc1234..def5678 100644 --- a/generic_api_rails.gemspec +++ b/generic_api_rails.gemspec @@ -5,11 +5,11 @@ # Describe your gem and declare its dependencies: Gem::Specification.new do |s| - s.name = "generic_api_rails" + s.name = ...
Change the name of the gem to match the rest of the world
diff --git a/lib/unisms/adapter/kotsms.rb b/lib/unisms/adapter/kotsms.rb index abc1234..def5678 100644 --- a/lib/unisms/adapter/kotsms.rb +++ b/lib/unisms/adapter/kotsms.rb @@ -9,8 +9,11 @@ end def deliver(message, to: nil, from: nil) - @kotsms.deliver to, message, @kotsms_options + raise ArgumentError.new("...
Fix bug of Kotsms adapter: Accept phone number in international format
diff --git a/lib/yard/rake/yardoc_task.rb b/lib/yard/rake/yardoc_task.rb index abc1234..def5678 100644 --- a/lib/yard/rake/yardoc_task.rb +++ b/lib/yard/rake/yardoc_task.rb @@ -12,7 +12,7 @@ def initialize(name = :yardoc) @name = name @options = [] - @files = ['lib/**/*.rb'] + @fil...
Remove default files from rake task because they're specified in the CLI
diff --git a/perfecta.gemspec b/perfecta.gemspec index abc1234..def5678 100644 --- a/perfecta.gemspec +++ b/perfecta.gemspec @@ -19,5 +19,6 @@ gem.add_dependency "rest-client" gem.add_dependency "activesupport" + gem.add_dependency "rake" gem.add_development_dependency "mocha" end
Add rake as a dependency
diff --git a/server/lib/silently.rb b/server/lib/silently.rb index abc1234..def5678 100644 --- a/server/lib/silently.rb +++ b/server/lib/silently.rb @@ -0,0 +1,11 @@+# http://www.caliban.org/ruby/rubyguide.shtml#warnings +class Silently + def self.silently(&block) + warn_level = $VERBOSE + $VERBOSE = nil + re...
Add library for silencing warnings from 3rd party modules
diff --git a/pharrell.gemspec b/pharrell.gemspec index abc1234..def5678 100644 --- a/pharrell.gemspec +++ b/pharrell.gemspec @@ -7,7 +7,7 @@ s.platform = Gem::Platform::RUBY s.authors = ["Callum Stott"] s.email = ["callum@seadowg.com"] - s.summary = "I'm a provider gurl." + s.summary = "I'm a provider gurl. B...
Make the description actually useful
diff --git a/Library/Contributions/examples/brew-audit.rb b/Library/Contributions/examples/brew-audit.rb index abc1234..def5678 100644 --- a/Library/Contributions/examples/brew-audit.rb +++ b/Library/Contributions/examples/brew-audit.rb @@ -26,6 +26,11 @@ problems << " * Remove 'use_mirror' from url." end + #...
Add depends_on spacing checks to brew_audit
diff --git a/plugins/emoji.rb b/plugins/emoji.rb index abc1234..def5678 100644 --- a/plugins/emoji.rb +++ b/plugins/emoji.rb @@ -12,6 +12,7 @@ match /breplace (.+)/, method: :breplace match /:b:replace (.+)/, method: :breplace match /🅱️replace (.+)/, method: :breplace + match /tm (.+)/, method: :tm def s...
Add !tm command. everything is trademarked
diff --git a/2019/puzzle.rb b/2019/puzzle.rb index abc1234..def5678 100644 --- a/2019/puzzle.rb +++ b/2019/puzzle.rb @@ -12,6 +12,11 @@ input = input.map(&:strip) if strip input = input.first if input.size == 1 # unwrap the array if it's still just one value input + end + + # defined in case I don't use...
Define test_cases in the base to save dups
diff --git a/spec/backlog_kit/hash_extensions_spec.rb b/spec/backlog_kit/hash_extensions_spec.rb index abc1234..def5678 100644 --- a/spec/backlog_kit/hash_extensions_spec.rb +++ b/spec/backlog_kit/hash_extensions_spec.rb @@ -14,7 +14,7 @@ abcdEfgh_1234_ijklMnop: 'テスト', abcdEfgh_5678_ijklMnop: 'テスト', ...
Fix SyntaxError on Ruby 2.0.0 and 2.1
diff --git a/spec/importers/rows/behavior_row_spec.rb b/spec/importers/rows/behavior_row_spec.rb index abc1234..def5678 100644 --- a/spec/importers/rows/behavior_row_spec.rb +++ b/spec/importers/rows/behavior_row_spec.rb @@ -17,10 +17,5 @@ it 'records a discipline incident' do expect { row.build.save! }.to c...
Remove extra behavior row spec
diff --git a/spec/models/spree/payment_method_spec.rb b/spec/models/spree/payment_method_spec.rb index abc1234..def5678 100644 --- a/spec/models/spree/payment_method_spec.rb +++ b/spec/models/spree/payment_method_spec.rb @@ -19,7 +19,6 @@ it "generates a clean name for known Payment Method types" do Spree::P...
Remove test for PayPalExpress UK which does not exist anymore
diff --git a/AdjustIO.podspec b/AdjustIO.podspec index abc1234..def5678 100644 --- a/AdjustIO.podspec +++ b/AdjustIO.podspec @@ -7,7 +7,7 @@ s.author = { "Christian Wellenbrock" => "welle@adeven.com" } s.source = { :git => "https://github.com/adeven/adjust_ios_sdk.git", :tag => "v2.0.1" } s.platform...
Add missing quotes in podspec
diff --git a/db/migrate/20161017125927_add_unique_index_to_labels.rb b/db/migrate/20161017125927_add_unique_index_to_labels.rb index abc1234..def5678 100644 --- a/db/migrate/20161017125927_add_unique_index_to_labels.rb +++ b/db/migrate/20161017125927_add_unique_index_to_labels.rb @@ -7,9 +7,9 @@ disable_ddl_transacti...
Fix broken label uniqueness label migration The previous implementation of the migration failed on staging because the migration was attempted to remove labels from projects that did not actually have duplicates. This occurred because the SQL query did not account for the project ID when selecting the labels. To repl...
diff --git a/frontend/config/routes.rb b/frontend/config/routes.rb index abc1234..def5678 100644 --- a/frontend/config/routes.rb +++ b/frontend/config/routes.rb @@ -6,6 +6,7 @@ resources :products, only: [:index, :show] get '/locale/set', to: 'locale#set' + post '/locale/set', to: 'locale#set', as: :select_loca...
Copy set_locale route from solidus_i18n Our existing route to locale#set was a GET (which it shouldn't be), this adds it again as a POST. The existing get route is left for compatibility. The route is named "select_locale" instead of "set_locale" to avoid a conflict with the existing solidus_i18n route.
diff --git a/Fountain.podspec b/Fountain.podspec index abc1234..def5678 100644 --- a/Fountain.podspec +++ b/Fountain.podspec @@ -5,7 +5,7 @@ s.authors = { "Tobias Kräntzer" => "info@tobias-kraentzer.de" } s.license = { :type => 'BSD', :file => 'LICENSE.md' } s.homepage ...
Set tag in the repository correctly.
diff --git a/Casks/easytag.rb b/Casks/easytag.rb index abc1234..def5678 100644 --- a/Casks/easytag.rb +++ b/Casks/easytag.rb @@ -0,0 +1,7 @@+class Easytag < Cask + url 'https://github.com/rfw/easytag-mac/releases/download/v2.1.8-mac-alpha-1/easytag-v2.1.8-mac-alpha-1.dmg' + homepage 'http://rfw.name/easytag-mac/' + ...
Add EasyTAG 2.1.8-mac-alpha-1 This is not an official build.
diff --git a/Casks/filebot.rb b/Casks/filebot.rb index abc1234..def5678 100644 --- a/Casks/filebot.rb +++ b/Casks/filebot.rb @@ -0,0 +1,6 @@+class Filebot < Cask + url 'http://downloads.sourceforge.net/project/filebot/filebot/FileBot_3.6/FileBot_3.6.app.tar.gz' + homepage 'http://www.filebot.net/' + version '3.6' + ...
Add Filebot starting with version 3.6
diff --git a/docx.gemspec b/docx.gemspec index abc1234..def5678 100644 --- a/docx.gemspec +++ b/docx.gemspec @@ -12,7 +12,7 @@ s.homepage = 'https://github.com/chrahunt/docx' s.files = Dir["README.md", "LICENSE.md", "lib/**/*.rb"] - s.add_dependency 'nokogiri', '~> 1.8', '>= 1.8.1' + s.add_dependency ...
Support newer nokogiri as well To address security vulnerability only resolved in nokogiri 1.10.4
diff --git a/griddler-sendgrid.gemspec b/griddler-sendgrid.gemspec index abc1234..def5678 100644 --- a/griddler-sendgrid.gemspec +++ b/griddler-sendgrid.gemspec @@ -20,5 +20,6 @@ spec.add_development_dependency 'rake' spec.add_development_dependency 'rspec', '~> 3.5' - spec.add_dependency 'griddler' + spec.add...
Update gemspec for minimum griddler and mail versions
diff --git a/lib/acts_as_revisable/acts/deletable.rb b/lib/acts_as_revisable/acts/deletable.rb index abc1234..def5678 100644 --- a/lib/acts_as_revisable/acts/deletable.rb +++ b/lib/acts_as_revisable/acts/deletable.rb @@ -8,7 +8,7 @@ end def destroy - now = Time.now + now = Time.zone.n...
Use Time.zone.new for deleted_at timestamp. Signed-off-by: Rich Cavanaugh <5cb1f7e6d556f019dce85071c0a1f08204371cc3@mac.com>
diff --git a/spec/unshortme_spec.rb b/spec/unshortme_spec.rb index abc1234..def5678 100644 --- a/spec/unshortme_spec.rb +++ b/spec/unshortme_spec.rb @@ -1,15 +1,24 @@ require 'spec_helper' describe 'Unshortme' do - - it 'should not return the unshorted url' do + + it "should not return the unshorted url if the u...
Use stubs to avoid connecting to internet
diff --git a/app/models/section_edition.rb b/app/models/section_edition.rb index abc1234..def5678 100644 --- a/app/models/section_edition.rb +++ b/app/models/section_edition.rb @@ -39,9 +39,9 @@ scope :with_slug_prefix, ->(slug) { where(slug: /^#{slug}.*/) } - index "section_id" - index "state" - index "update...
Update indexes in SectionEdition for Mongoid 3 This avoids the following problem when running `rake`: Problem: Invalid index specification on SectionEdition: section_id, {} Summary: Indexes in Mongoid are defined as a hash of field name and direction/2d pairs, with a hash for any additional ...
diff --git a/app/helpers/invoice_helper.rb b/app/helpers/invoice_helper.rb index abc1234..def5678 100644 --- a/app/helpers/invoice_helper.rb +++ b/app/helpers/invoice_helper.rb @@ -8,7 +8,8 @@ end def suggested_invoices_for_booking(booking) - invoices = Invoice.open_balance.where(:amount => booking.amount) + ...
Fix current referenced invoice not showing in select.
diff --git a/app/helpers/plugins_helper.rb b/app/helpers/plugins_helper.rb index abc1234..def5678 100644 --- a/app/helpers/plugins_helper.rb +++ b/app/helpers/plugins_helper.rb @@ -37,5 +37,11 @@ instance_exec(&content) end.join end + + def plugins_search_post_contents + @plugins.dispatch(:search_po...
Allow plugins to add contents after search results
diff --git a/app/models/section_edition.rb b/app/models/section_edition.rb index abc1234..def5678 100644 --- a/app/models/section_edition.rb +++ b/app/models/section_edition.rb @@ -4,7 +4,7 @@ include Mongoid::Document include Mongoid::Timestamps - store_in "manual_section_editions" + store_in collection: "man...
Update call to store_in for Mongoid 3 This addresses the following error message I was seeing when running `rake`: Problem: Invalid options passed to SectionEdition.store_in: manual_section_editions. Summary: The :store_in macro takes only a hash of parameters with the keys :database, ...
diff --git a/lib/google_directory_daemon/listener.rb b/lib/google_directory_daemon/listener.rb index abc1234..def5678 100644 --- a/lib/google_directory_daemon/listener.rb +++ b/lib/google_directory_daemon/listener.rb @@ -20,8 +20,8 @@ conn.start ch = conn.create_channel - x = ch.direct(@exchange_name...
Add topic to rabbitmq exchange and queue durability
diff --git a/lib/wakame/command/propagate_service.rb b/lib/wakame/command/propagate_service.rb index abc1234..def5678 100644 --- a/lib/wakame/command/propagate_service.rb +++ b/lib/wakame/command/propagate_service.rb @@ -1,32 +1,29 @@ class Wakame::Command::PropagateService include Wakame::Command + include Wakam...
Update to recognize new propergate_service command options.
diff --git a/recipes/_ruby.rb b/recipes/_ruby.rb index abc1234..def5678 100644 --- a/recipes/_ruby.rb +++ b/recipes/_ruby.rb @@ -17,7 +17,10 @@ # Build and install Ruby version using chruby and ruby-build include_recipe "chruby::system" -# Prepend our Ruby version to PATH +# The chruby cookbook installs /etc/profile...
Clarify why we modify PATH
diff --git a/spec/views/home/index.html.slim_spec.rb b/spec/views/home/index.html.slim_spec.rb index abc1234..def5678 100644 --- a/spec/views/home/index.html.slim_spec.rb +++ b/spec/views/home/index.html.slim_spec.rb @@ -4,11 +4,40 @@ include Devise::TestHelpers - let(:user) { FactoryGirl.create :user }...
Improve test coverage of index view
diff --git a/app/controllers/api/v1/credentials_controller.rb b/app/controllers/api/v1/credentials_controller.rb index abc1234..def5678 100644 --- a/app/controllers/api/v1/credentials_controller.rb +++ b/app/controllers/api/v1/credentials_controller.rb @@ -1,6 +1,5 @@ module Api::V1 class CredentialsController < Api...
Remove redundant respond_to :json class method
diff --git a/bosh_cli/lib/cli/deployment_manifest_compiler.rb b/bosh_cli/lib/cli/deployment_manifest_compiler.rb index abc1234..def5678 100644 --- a/bosh_cli/lib/cli/deployment_manifest_compiler.rb +++ b/bosh_cli/lib/cli/deployment_manifest_compiler.rb @@ -15,7 +15,7 @@ end def result - ERB.new(@raw_man...
Remove $SAFE level for ERB parsing $SAFE=4 level was removed from ruby 2.1.1. In general, this SAFE level does not provide enough security. Signed-off-by: Maria Shaldibina <a39f51a90bfcf8ca23756ef12127e1cf20796cba@pivotallabs.com>
diff --git a/scripts/csv_to_yaml.rb b/scripts/csv_to_yaml.rb index abc1234..def5678 100644 --- a/scripts/csv_to_yaml.rb +++ b/scripts/csv_to_yaml.rb @@ -0,0 +1,94 @@+# +# This is a really fast and dirty script that I used to migrate photos out of +# Black Swan and Flickr and over to a Dropbox solution. I'm keeping it i...
Add dirty script to get photos out of Black Swan/Flickr
diff --git a/vagrant-chefzero.gemspec b/vagrant-chefzero.gemspec index abc1234..def5678 100644 --- a/vagrant-chefzero.gemspec +++ b/vagrant-chefzero.gemspec @@ -18,6 +18,9 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] + spec.add_runtime_dependency 'chef', '~> 1...
Add chef and berkshelf dependencies
diff --git a/mongo_mapper.gemspec b/mongo_mapper.gemspec index abc1234..def5678 100644 --- a/mongo_mapper.gemspec +++ b/mongo_mapper.gemspec @@ -21,4 +21,6 @@ s.add_dependency 'activesupport', '>= 5.0' s.add_dependency 'activemodel', ">= 5.0" s.add_dependency 'activemodel-serializers-xml', "~> 1.0" + + s.add...
Add rexml to gemspec for Ruby 3.0 rexml is no longer default gem in Ruby 3.0. When we use activemodel 6.1.0 or greater, it includes rexml in its gemspec and we don't get errors on it. https://github.com/rails/rails/pull/40281 Otherwise, we can get a LoadError like the following: LoadError: cannot load...
diff --git a/box_clean.rb b/box_clean.rb index abc1234..def5678 100644 --- a/box_clean.rb +++ b/box_clean.rb @@ -0,0 +1,43 @@+# 'vagrant box list' display a list of the currently downloaded vagrant boxes +# This list is ordered by box name and then by version. I don't have multiple +# providers, so I don't know how tho...
Add script to clean up outdated boxes. vagrant doesn't have a way to clean up outdated boxes. I have an open issue (https://github.com/mitchellh/vagrant/issues/4412). I will likely implement it once I get feedback from the maintainer as to how he would want it exposed in the command-line UI.
diff --git a/app/policies/collection_policy.rb b/app/policies/collection_policy.rb index abc1234..def5678 100644 --- a/app/policies/collection_policy.rb +++ b/app/policies/collection_policy.rb @@ -34,4 +34,8 @@ def linkable_user_collection_preferences policy_for(UserCollectionPreference).scope_for(:show) end ...
Add linkable user groups for Collection
diff --git a/Casks/xampp.rb b/Casks/xampp.rb index abc1234..def5678 100644 --- a/Casks/xampp.rb +++ b/Casks/xampp.rb @@ -5,7 +5,7 @@ # sourceforge.net is the official download host per the vendor homepage url "http://downloads.sourceforge.net/project/xampp/XAMPP%20Mac%20OS%20X/#{version.sub(%r{-\d+$},'')}/xampp-os...
Fix homepage to use SSL in XAMPP Cask The HTTP URL is already getting redirected to HTTPS. Using the HTTPS URL directly makes it more secure and saves a HTTP round-trip.
diff --git a/lib/unimatrix/authorization/client_credentials_grant.rb b/lib/unimatrix/authorization/client_credentials_grant.rb index abc1234..def5678 100644 --- a/lib/unimatrix/authorization/client_credentials_grant.rb +++ b/lib/unimatrix/authorization/client_credentials_grant.rb @@ -13,13 +13,15 @@ params = ...
Fix request in ClientCredentialsGrant to use_ssl if applicable
diff --git a/JDSlider.podspec b/JDSlider.podspec index abc1234..def5678 100644 --- a/JDSlider.podspec +++ b/JDSlider.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "JDSlider" - s.version = "1.0.0" + s.version = "1.0.1" s.summary = "An iOS Slider written in swift." ...
[MODIFIED] Set PodSpec to release 1.0.1.
diff --git a/mutt.rb b/mutt.rb index abc1234..def5678 100644 --- a/mutt.rb +++ b/mutt.rb @@ -9,8 +9,10 @@ depends_on 'slang' def patches - # I only care about the trash patch - ['https://gist.github.com/raw/1361946/632541cf9ae54e3d1caed5c748149962f8972c28/mutt-trash-folder.patch'] + [ + 'http://patc...
Add purge-message patch. Switch to Debian patch sources.
diff --git a/app/decorators/disk_decorator.rb b/app/decorators/disk_decorator.rb index abc1234..def5678 100644 --- a/app/decorators/disk_decorator.rb +++ b/app/decorators/disk_decorator.rb @@ -0,0 +1,12 @@+class DiskDecorator < MiqDecorator + def fonticon + case device_type + when 'floppy' + 'fa fa-floppy-o...
Add decorator for the Disk model with fonticons for various disktypes
diff --git a/db/migrate/20131004150321_remove_metadata_from_rooms.rb b/db/migrate/20131004150321_remove_metadata_from_rooms.rb index abc1234..def5678 100644 --- a/db/migrate/20131004150321_remove_metadata_from_rooms.rb +++ b/db/migrate/20131004150321_remove_metadata_from_rooms.rb @@ -1,9 +1,7 @@ class RemoveMetadataFro...
Make the migration RemoveMetadataFromRooms faster
diff --git a/db/migrate/20150615094200_add_color_to_organizations.rb b/db/migrate/20150615094200_add_color_to_organizations.rb index abc1234..def5678 100644 --- a/db/migrate/20150615094200_add_color_to_organizations.rb +++ b/db/migrate/20150615094200_add_color_to_organizations.rb @@ -8,7 +8,7 @@ end down do - ...
Fix migration (delete column color instead of text)
diff --git a/app/models/setup/oauth2_scope.rb b/app/models/setup/oauth2_scope.rb index abc1234..def5678 100644 --- a/app/models/setup/oauth2_scope.rb +++ b/app/models/setup/oauth2_scope.rb @@ -19,7 +19,7 @@ validates_uniqueness_of :name, scope: :provider def scope_title - provider && provider.custom_tit...
Update | using safe operator
diff --git a/app/helpers/nivo_helper.rb b/app/helpers/nivo_helper.rb index abc1234..def5678 100644 --- a/app/helpers/nivo_helper.rb +++ b/app/helpers/nivo_helper.rb @@ -0,0 +1,24 @@+module NivoHelper + def slider(files, hash = {}) + options = { :theme => :default } + options.merge!(hash) + + content_tag(:div,...
Add a helper to easily generate sliders
diff --git a/app/helpers/user_helper.rb b/app/helpers/user_helper.rb index abc1234..def5678 100644 --- a/app/helpers/user_helper.rb +++ b/app/helpers/user_helper.rb @@ -1,9 +1,10 @@ module UserHelper def guider_options groups = Group.includes(:users) + { 'Groups': groups.map do |group| - [gro...
Reduce huge N+1 querying for associated user IDs This was causing a huge N+1 query through groups / assignments / users.
diff --git a/rom-sql.gemspec b/rom-sql.gemspec index abc1234..def5678 100644 --- a/rom-sql.gemspec +++ b/rom-sql.gemspec @@ -19,9 +19,9 @@ spec.add_runtime_dependency 'sequel', '>= 4.49' spec.add_runtime_dependency 'dry-equalizer', '~> 0.2' - spec.add_runtime_dependency 'dry-types', '~> 0.11', '>= 0.11.1' + sp...
Update rom and dry-types deps
diff --git a/spec/dummy/app/jobs/process_messenger_callback_job.rb b/spec/dummy/app/jobs/process_messenger_callback_job.rb index abc1234..def5678 100644 --- a/spec/dummy/app/jobs/process_messenger_callback_job.rb +++ b/spec/dummy/app/jobs/process_messenger_callback_job.rb @@ -0,0 +1,13 @@+class ProcessMessengerCallback...
Copy ProcessMessegnerCallbackJob into spec/dummy/app/jobs folder for specs
diff --git a/spec/unit/coercible/coercer/class_methods/new_spec.rb b/spec/unit/coercible/coercer/class_methods/new_spec.rb index abc1234..def5678 100644 --- a/spec/unit/coercible/coercer/class_methods/new_spec.rb +++ b/spec/unit/coercible/coercer/class_methods/new_spec.rb @@ -7,7 +7,7 @@ it { should be_instance_of(...
Fix spec for ruby 1.9.2
diff --git a/app/models/jellyfish_aws/product_type/ec2.rb b/app/models/jellyfish_aws/product_type/ec2.rb index abc1234..def5678 100644 --- a/app/models/jellyfish_aws/product_type/ec2.rb +++ b/app/models/jellyfish_aws/product_type/ec2.rb @@ -33,7 +33,6 @@ def order_questions [ - { name: :zone_i...
Remove availability zone order question
diff --git a/Formula/apr.rb b/Formula/apr.rb index abc1234..def5678 100644 --- a/Formula/apr.rb +++ b/Formula/apr.rb @@ -0,0 +1,28 @@+require 'brewkit' + +class AprUtil <Formula + @url='http://www.mirrorservice.org/sites/ftp.apache.org/apr/apr-util-1.3.9.tar.bz2' + @md5='29dd557f7bd891fc2bfdffcfa081db59' +end + +clas...
Remove MacPorts and Fink from the build environment Closes Homebrew/homebrew#13
diff --git a/web/db/seeds.rb b/web/db/seeds.rb index abc1234..def5678 100644 --- a/web/db/seeds.rb +++ b/web/db/seeds.rb @@ -1,7 +1,9 @@-# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the ...
Add DB seed with mock bills
diff --git a/AmazeKit.podspec b/AmazeKit.podspec index abc1234..def5678 100644 --- a/AmazeKit.podspec +++ b/AmazeKit.podspec @@ -5,7 +5,7 @@ s.homepage = "https://github.com/detroit-labs/AmazeKit" s.license = "Apache" s.author = {"Jeff Kelley" => "SlaunchaMan@gmail.com"} - s.source = { :gi...
Update podspec to pass validation.
diff --git a/spec/fixtures/movie.rb b/spec/fixtures/movie.rb index abc1234..def5678 100644 --- a/spec/fixtures/movie.rb +++ b/spec/fixtures/movie.rb @@ -1,5 +1,5 @@ class Movie - attr_accessor :title, :rating, :year, :country, :seen, :star_rating + attr_accessor :title, :rating, :year, :country, :seen, :star_rating, ...
Update fixture to give it a collection attribute home_formats will return an array of 2 of the available home formats
diff --git a/Casks/trailer.rb b/Casks/trailer.rb index abc1234..def5678 100644 --- a/Casks/trailer.rb +++ b/Casks/trailer.rb @@ -1,6 +1,6 @@ cask :v1 => 'trailer' do - version '1.3.0' - sha256 '1e546d9375e761e4d3ff3a74c218f39b89b9a0e0c4731108558249f0d1e1dc0f' + version '1.3.1' + sha256 '7be6fb7479d51d31ff535bc5c61a...
Update Trailer version to 1.3.1 This commit updates the version and SHA
diff --git a/test/integration/upgrades/serverspec/default_spec.rb b/test/integration/upgrades/serverspec/default_spec.rb index abc1234..def5678 100644 --- a/test/integration/upgrades/serverspec/default_spec.rb +++ b/test/integration/upgrades/serverspec/default_spec.rb @@ -0,0 +1,40 @@+require 'serverspec' + +set :backe...
Add new test suite to test upgrading agent with cookbook * To properly run, the attributes in `test/cookbooks/install_old_agent/attributes/default.rb` need to be updated
diff --git a/spec/helpers.rb b/spec/helpers.rb index abc1234..def5678 100644 --- a/spec/helpers.rb +++ b/spec/helpers.rb @@ -1,7 +1,7 @@ require 'helpers/dummy_data' module Helpers - def self.included(base) - base.include Dummy_data + def self.included(_base) + include Dummy_data end end
Fix include grammer of ruby remove an unnecesary receiver
diff --git a/spec/helpers.rb b/spec/helpers.rb index abc1234..def5678 100644 --- a/spec/helpers.rb +++ b/spec/helpers.rb @@ -2,6 +2,6 @@ module Helpers def self.included(_base) - include DummyData + _base.include DummyData end end
Fix to include in itself It was not correctly included when rspec command is used to specify test file
diff --git a/spec/suby_spec.rb b/spec/suby_spec.rb index abc1234..def5678 100644 --- a/spec/suby_spec.rb +++ b/spec/suby_spec.rb @@ -11,7 +11,8 @@ suby = File.expand_path('../../bin/suby', __FILE__) Dir.chdir(dir) do system suby, file - Digest::MD5.hexdigest(File.read(srt)).should == 'd76d5...
Fix too precise integration test
diff --git a/test/app/models/s3_upload/upload_test.rb b/test/app/models/s3_upload/upload_test.rb index abc1234..def5678 100644 --- a/test/app/models/s3_upload/upload_test.rb +++ b/test/app/models/s3_upload/upload_test.rb @@ -0,0 +1,121 @@+require "test_helper" + +describe S3Relay::Upload do + before do + @upload = ...
Add tests for upload model.
diff --git a/conductor.rb b/conductor.rb index abc1234..def5678 100644 --- a/conductor.rb +++ b/conductor.rb @@ -1,11 +1,12 @@-cask :v1 => 'conductor' do - version '1.2.2' - sha256 'a5f9ba34c258c7d6a902de86c4f14e36e0b6283ab3893d6c43a7ba95f3831e63' +cask :v1 => "conductor" do + version "1.2.2" + sha256 "a5f9ba34c258...
Update brew cask formula from upstream
diff --git a/app/models/people_identifier.rb b/app/models/people_identifier.rb index abc1234..def5678 100644 --- a/app/models/people_identifier.rb +++ b/app/models/people_identifier.rb @@ -8,7 +8,7 @@ def people @people ||= if params[:email] # annoying that you can't do case insensitive withou...
Refactor common regexp to method
diff --git a/Casks/air-video-server.rb b/Casks/air-video-server.rb index abc1234..def5678 100644 --- a/Casks/air-video-server.rb +++ b/Casks/air-video-server.rb @@ -0,0 +1,6 @@+class AirVideoServer < Cask + url 'http://s3.amazonaws.com/AirVideo/Air+Video+Server+2.4.6-beta3u1.dmg' + homepage 'http://www.inmethod.com/a...
Add cask for Air Video Server
diff --git a/app/services/quality_control.rb b/app/services/quality_control.rb index abc1234..def5678 100644 --- a/app/services/quality_control.rb +++ b/app/services/quality_control.rb @@ -1,6 +1,6 @@ class QualityControl def self.dedupe(user) - readings = user.readings + readings = user.readings.order(created...
Sort readings for quality control dedupe