diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/ReactNativePermissions.podspec b/ReactNativePermissions.podspec index abc1234..def5678 100644 --- a/ReactNativePermissions.podspec +++ b/ReactNativePermissions.podspec @@ -18,4 +18,6 @@ s.preserve_paths = 'LICENSE', 'package.json' s.source_files = '**/*.{h,m}' s.exclude_files ...
Add React dep to podspec
diff --git a/vn_tagger.gemspec b/vn_tagger.gemspec index abc1234..def5678 100644 --- a/vn_tagger.gemspec +++ b/vn_tagger.gemspec @@ -8,8 +8,8 @@ spec.version = VnTagger::VERSION spec.authors = ["Hieu Nguyen"] spec.email = ["hieuk09@gmail.com"] - spec.summary = %q{This is a wrapper for...
[ax] Fix typo in gem description
diff --git a/db/migrate/083_add_indices_track_sent.rb b/db/migrate/083_add_indices_track_sent.rb index abc1234..def5678 100644 --- a/db/migrate/083_add_indices_track_sent.rb +++ b/db/migrate/083_add_indices_track_sent.rb @@ -0,0 +1,9 @@+class AddIndicesTrackSent < ActiveRecord::Migration + def self.up + add_i...
Add index to create_at for track sent, so can remove old ones / only use new ones
diff --git a/NAKPlaybackIndicatorView.podspec b/NAKPlaybackIndicatorView.podspec index abc1234..def5678 100644 --- a/NAKPlaybackIndicatorView.podspec +++ b/NAKPlaybackIndicatorView.podspec @@ -15,8 +15,8 @@ tag: s.version.to_s } - s.platform = :ios, '7.0' - s.ios.deployment_target = '7.0' + s.platform = :io...
Set deployment target to iOS 8.0
diff --git a/gherkin_lint.gemspec b/gherkin_lint.gemspec index abc1234..def5678 100644 --- a/gherkin_lint.gemspec +++ b/gherkin_lint.gemspec @@ -9,10 +9,10 @@ s.license = 'MIT' s.files = `git ls-files`.split("\n") s.executables = s.files.grep(%r{^bin/}) { |file| File.basename(file) } - s.add_runtime_...
Add limits to gem dependency versions Capping off dependency versions at their next major version so that we don't get impacted by breaking changes by surprise.
diff --git a/actiontext/app/models/action_text/rich_text.rb b/actiontext/app/models/action_text/rich_text.rb index abc1234..def5678 100644 --- a/actiontext/app/models/action_text/rich_text.rb +++ b/actiontext/app/models/action_text/rich_text.rb @@ -1,10 +1,10 @@ # frozen_string_literal: true -# The RichText record ho...
Fix API docs of `ActionText::RichText` [ci skip] This text should appear on the page https://api.rubyonrails.org/v6.0/classes/ActionText/RichText.html Related to 86517942e469193e8624d5078d718785552c1270
diff --git a/spec/features/login_spec.rb b/spec/features/login_spec.rb index abc1234..def5678 100644 --- a/spec/features/login_spec.rb +++ b/spec/features/login_spec.rb @@ -0,0 +1,11 @@+require 'rails_helper' + +feature 'login' do + it "should have a login button on the front page" do + visit '/' + expect(page)....
Add test that looks for login button
diff --git a/spec/models/article_spec.rb b/spec/models/article_spec.rb index abc1234..def5678 100644 --- a/spec/models/article_spec.rb +++ b/spec/models/article_spec.rb @@ -1,10 +1,30 @@ require "rails_helper" -RSpec.describe User, :type => :model do - it "orders by last name" do - lindeman = User.create!(first_n...
Add tests for article model
diff --git a/spec/tasks/trailmix_spec.rb b/spec/tasks/trailmix_spec.rb index abc1234..def5678 100644 --- a/spec/tasks/trailmix_spec.rb +++ b/spec/tasks/trailmix_spec.rb @@ -15,7 +15,7 @@ Rake::Task["trailmix:schedule_all_prompts"].invoke - expect(emailed_addresses).to eq([utc_8am.email, arz_1am.email]) +...
Use "contain exactly" instead of "eq" We don't care about the order of the email addresses here.
diff --git a/test/factories/notices.rb b/test/factories/notices.rb index abc1234..def5678 100644 --- a/test/factories/notices.rb +++ b/test/factories/notices.rb @@ -30,12 +30,8 @@ end trait :with_tags do - ignore do - tags_count { rand(3) + 1 } - end - after(:create) do |notice, evalu...
Fix deplication warning at notice factory
diff --git a/app/controllers/admin/internal_categories_controller.rb b/app/controllers/admin/internal_categories_controller.rb index abc1234..def5678 100644 --- a/app/controllers/admin/internal_categories_controller.rb +++ b/app/controllers/admin/internal_categories_controller.rb @@ -1,7 +1,7 @@ class Admin::InternalCa...
Use current locale to filter category
diff --git a/app/controllers/reports_controller.rb b/app/controllers/reports_controller.rb index abc1234..def5678 100644 --- a/app/controllers/reports_controller.rb +++ b/app/controllers/reports_controller.rb @@ -5,8 +5,8 @@ def index @org_by_county = {} - Organization.counties.sort_by(&:downcase).each do |...
Fix county name on reports page
diff --git a/lib/climate_control/environment.rb b/lib/climate_control/environment.rb index abc1234..def5678 100644 --- a/lib/climate_control/environment.rb +++ b/lib/climate_control/environment.rb @@ -1,18 +1,18 @@ require "thread" -require "active_support/core_ext/module/delegation" +require "forwardable" module Cl...
Use stdlib Forwardable module instead of ActiveSupport delegation
diff --git a/app/models/vm/operations/lifecycle.rb b/app/models/vm/operations/lifecycle.rb index abc1234..def5678 100644 --- a/app/models/vm/operations/lifecycle.rb +++ b/app/models/vm/operations/lifecycle.rb @@ -11,6 +11,12 @@ unsupported_reason_add(:migrate, "Migrate operation in not supported.") end ...
Add remote region relay for VM retirement methods This allows us to retire VMs directly using a method call from the global region rather than having to use the ProcessTasksMixin
diff --git a/lib/draper/active_model_support.rb b/lib/draper/active_model_support.rb index abc1234..def5678 100644 --- a/lib/draper/active_model_support.rb +++ b/lib/draper/active_model_support.rb @@ -19,6 +19,12 @@ end end end + + base.class_eval do + def to_model + self ...
Revert "Remove automatic delegation of to_model." This reverts commit 6d214b9972a22e8b7e2ca574fbb7ce30907a3667.
diff --git a/Formula/kismet.rb b/Formula/kismet.rb index abc1234..def5678 100644 --- a/Formula/kismet.rb +++ b/Formula/kismet.rb @@ -1,10 +1,10 @@ require 'formula' class Kismet <Formula - url 'http://www.kismetwireless.net/code/kismet-2010-01-R1.tar.gz' - version '2010-01-R1' + url 'http://www.kismetwireless.net...
Update Kismet brew to 2010-07-R1
diff --git a/Formula/parity.rb b/Formula/parity.rb index abc1234..def5678 100644 --- a/Formula/parity.rb +++ b/Formula/parity.rb @@ -1,27 +1,21 @@-require "formula" +class Parity < Formula + desc "Shell commands for environment parity for Heroku apps" + homepage "https://github.com/thoughtbot/parity" + url "https://...
Validate Parity against brew audit. * Not necessary to `require "formula"`, * Add a description, * Place `devel` above `depends_on`, * Remove `git` dependency as it's always available, * Remove `version` as Homebrew prefers to get it from the URL, * Remove duplicated dependencies from `devel`.
diff --git a/lib/patches/model/setting_patch.rb b/lib/patches/model/setting_patch.rb index abc1234..def5678 100644 --- a/lib/patches/model/setting_patch.rb +++ b/lib/patches/model/setting_patch.rb @@ -10,5 +10,7 @@ end end -require 'setting' -Setting.__send__(:include, Pwfmt::SettingPatch) +Rails.configuration.to_...
Fix breaking Setting object after loading this plugin. Without this patch, this plugin requires 'setting' at plugin loading, and after that, next loaded plugin cannot access to Setting.plugin_#{@plugin.id} method (NoMethodError). This seems to be related to the thread below: http://www.redmine.org/boards/3/topics/1...
diff --git a/lib/spree-api-client/connection.rb b/lib/spree-api-client/connection.rb index abc1234..def5678 100644 --- a/lib/spree-api-client/connection.rb +++ b/lib/spree-api-client/connection.rb @@ -17,6 +17,7 @@ builder.use FaradayMiddleware::FollowRedirects builder.use FaradayMiddleware::...
Raise Faraday Error on request
diff --git a/core/regexp/new_spec.rb b/core/regexp/new_spec.rb index abc1234..def5678 100644 --- a/core/regexp/new_spec.rb +++ b/core/regexp/new_spec.rb @@ -11,7 +11,7 @@ describe "Regexp.new given a Regexp" do it_behaves_like :regexp_new_regexp, :new - it_behaves_like :regexp_new_string_binary, :compile + it_be...
Fix Regexp.new - show warning "flags ignored" when passed regexp and options
diff --git a/config/environments/production.rb b/config/environments/production.rb index abc1234..def5678 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -22,11 +22,9 @@ config.action_mailer.smtp_settings = { :address => "localhost", :port => 25, - :domain => "journey.ae...
Set our mail domain to the new address
diff --git a/spec/integrity/i18n_spec.rb b/spec/integrity/i18n_spec.rb index abc1234..def5678 100644 --- a/spec/integrity/i18n_spec.rb +++ b/spec/integrity/i18n_spec.rb @@ -21,17 +21,5 @@ end end - it "does not overwrite another language" do - Dir["#{Rails.root}/config/locales/*.yml"].each do |f| - lo...
Revert "ensure locales are not overwritten" breaking now
diff --git a/db/schema.rb b/db/schema.rb index abc1234..def5678 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -19,7 +19,7 @@ t.datetime "updated_at" end - create_table "client", force: :cascade do |t| + create_table "clients", force: :cascade do |t| t.text "name" t.text "phone" t.tex...
Update migrations (fix "s" bugs"
diff --git a/features/morning_responder.rb b/features/morning_responder.rb index abc1234..def5678 100644 --- a/features/morning_responder.rb +++ b/features/morning_responder.rb @@ -1,7 +1,7 @@ class MorningResponder class << self def responds_to?(msg) - return true if msg =~ /^(goo+d)*.{0,1}mo+rning.*/i + ...
Allow emoji before morning word TODO: Probably it is too much detailed change
diff --git a/seasoning.gemspec b/seasoning.gemspec index abc1234..def5678 100644 --- a/seasoning.gemspec +++ b/seasoning.gemspec @@ -1,10 +1,8 @@ # -*- encoding: utf-8 -*- -$:.push File.expand_path("../lib", __FILE__) -require "seasoning/version" Gem::Specification.new do |s| s.name = "seasoning" - s.vers...
Make the version number static
diff --git a/_plugins/environment_variable.rb b/_plugins/environment_variable.rb index abc1234..def5678 100644 --- a/_plugins/environment_variable.rb +++ b/_plugins/environment_variable.rb @@ -6,6 +6,7 @@ def generate(site) site.config['domain'] = ENV['DOMAIN'] || 'badssl.com' + site.config['http-doma...
Add 'http-domain' back to the Jekyll config. I think I took it out because I was unable to find any uses cases in the project. I may have been using my search tool wrong.
diff --git a/app/models/order_detail.rb b/app/models/order_detail.rb index abc1234..def5678 100644 --- a/app/models/order_detail.rb +++ b/app/models/order_detail.rb @@ -1,13 +1,8 @@ class OrderDetail < ActiveRecord::Base belongs_to :order - belongs_to :item + belongs_to :item, -> { unscope(where: :deleted_at) } ...
Add unscoping to OrderDetail for items: :deleted_at
diff --git a/templates/robot/lita_config.rb b/templates/robot/lita_config.rb index abc1234..def5678 100644 --- a/templates/robot/lita_config.rb +++ b/templates/robot/lita_config.rb @@ -24,8 +24,8 @@ # config.adapter.password = "secret" ## Example: Set options for the Redis connection. - # config.redis.host = "1...
Use new hash-style access for Redis in robot config template
diff --git a/em-twitter.gemspec b/em-twitter.gemspec index abc1234..def5678 100644 --- a/em-twitter.gemspec +++ b/em-twitter.gemspec @@ -15,7 +15,7 @@ spec.summary = spec.description spec.add_dependency 'eventmachine', '~> 1.0' - spec.add_dependency 'http_parser.rb', '~> 0.5' + spec.add_dependency 'http_pa...
Update http_parser.rb dependency to allow latest beta
diff --git a/test/models/gobierto_common/custom_field_value/numeric_test.rb b/test/models/gobierto_common/custom_field_value/numeric_test.rb index abc1234..def5678 100644 --- a/test/models/gobierto_common/custom_field_value/numeric_test.rb +++ b/test/models/gobierto_common/custom_field_value/numeric_test.rb @@ -40,5 +4...
Add tests to numeric custom field value parsing
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 @@ -1,26 +1,37 @@+# Class that is used in tests to behave similarly to the VIM::Buffer object. +# @see http://vimdoc.sourceforg...
Add YARD to MockVimBuffer, alias length to count The YARD makes this object easier to understand. I pulled most of the descriptions from http://vimdoc.sourceforge.net/htmldoc/if_ruby.html#ruby-buffer This class is getting close to being fully featured and might make a good candidate for releasing as its own gem in...
diff --git a/spec/integration/function_spec.rb b/spec/integration/function_spec.rb index abc1234..def5678 100644 --- a/spec/integration/function_spec.rb +++ b/spec/integration/function_spec.rb @@ -37,8 +37,9 @@ end it "composes anonymous functions" do - f1 = Transproc -> (v, m) { v * m }, 2 - f2 = ...
Make spec 1.9-compatible due to JRuby
diff --git a/spec/isolated_environment_spec.rb b/spec/isolated_environment_spec.rb index abc1234..def5678 100644 --- a/spec/isolated_environment_spec.rb +++ b/spec/isolated_environment_spec.rb @@ -6,6 +6,9 @@ include FileHelper let(:cli) { Rubocop::CLI.new } + + before(:each) { $stdout = StringIO.new } + after...
Remove printout from isolated environment spec. The spec printed some unwanted text on stdout: Inspecting 1 file . 1 file inspected, no offences detected
diff --git a/spec/models/spree/payment_spec.rb b/spec/models/spree/payment_spec.rb index abc1234..def5678 100644 --- a/spec/models/spree/payment_spec.rb +++ b/spec/models/spree/payment_spec.rb @@ -0,0 +1,26 @@+require 'spec_helper' + +module Spree + describe Payment do + describe "available actions" do + let(:...
Add spec for payment actions
diff --git a/spec/support/database_cleaning.rb b/spec/support/database_cleaning.rb index abc1234..def5678 100644 --- a/spec/support/database_cleaning.rb +++ b/spec/support/database_cleaning.rb @@ -1,16 +1,7 @@ require 'database_cleaner' RSpec.configure do |config| - DatabaseCleaner.strategy = :transaction - - conf...
Switch to truncation cleaning strategy across the board. Something hokey has started happening when it moves from one JS spec to the next. It gets stuck in the middle of a transaction. I have used the dynamic strategy choosing thing in another app with success, but it's failing here and I don't want to deal with it ...
diff --git a/spec/dap/filter/http_filter_spec.rb b/spec/dap/filter/http_filter_spec.rb index abc1234..def5678 100644 --- a/spec/dap/filter/http_filter_spec.rb +++ b/spec/dap/filter/http_filter_spec.rb @@ -0,0 +1,53 @@+require 'zlib' + +describe Dap::Filter::FilterDecodeHTTPReply do + describe '.decode' do + + let(:...
Add basics of unit test for Dap::Filter::FilterDecodeHTTPReply
diff --git a/spec/integration/navigation_spec.rb b/spec/integration/navigation_spec.rb index abc1234..def5678 100644 --- a/spec/integration/navigation_spec.rb +++ b/spec/integration/navigation_spec.rb @@ -1,7 +1,7 @@ require 'spec_helper' describe "Navigation" do - include Capybara + include Capybara::DSL i...
Include Capybara::DSL instead of deprecated Capybara.
diff --git a/spec/json_expressions/rspec_spec.rb b/spec/json_expressions/rspec_spec.rb index abc1234..def5678 100644 --- a/spec/json_expressions/rspec_spec.rb +++ b/spec/json_expressions/rspec_spec.rb @@ -4,8 +4,9 @@ describe RSpec do it "includes JsonExpressions::RSpec::Matchers" do - # TODO actually verify th...
Verify rspec matcher is correctly included.
diff --git a/spec/lib/messaging/producer_spec.rb b/spec/lib/messaging/producer_spec.rb index abc1234..def5678 100644 --- a/spec/lib/messaging/producer_spec.rb +++ b/spec/lib/messaging/producer_spec.rb @@ -15,10 +15,16 @@ }.to raise_exception(ArgumentError) end - it 'should publish a message' do - subject.p...
Fix test failing on CI.
diff --git a/test/unit/recipes/fuse_spec.rb b/test/unit/recipes/fuse_spec.rb index abc1234..def5678 100644 --- a/test/unit/recipes/fuse_spec.rb +++ b/test/unit/recipes/fuse_spec.rb @@ -0,0 +1,49 @@+describe 'sys::fuse' do + let(:chef_run) { ChefSpec::SoloRunner.new } + + context 'attributes are empty' do + before ...
Add test for fuse recipe
diff --git a/_plugins/tag_page_generator.rb b/_plugins/tag_page_generator.rb index abc1234..def5678 100644 --- a/_plugins/tag_page_generator.rb +++ b/_plugins/tag_page_generator.rb @@ -11,6 +11,7 @@ tag_title_prefix = site.config['tag_title_prefix'] || 'Posts Tagged: ' tag_title_suffix = site.config['tag_t...
Add unique meta descriptions to each tag index page.
diff --git a/brain/app.rb b/brain/app.rb index abc1234..def5678 100644 --- a/brain/app.rb +++ b/brain/app.rb @@ -7,10 +7,12 @@ require_relative 'lib/amqp_handler' require_relative 'lib/humanity_neuron' +require_relative 'lib/translator_neuron' brain = Brain.new brain.add_neuron HumanityNeuron.new +brain.add_ne...
[BRAIN] Make sure translator neuron is enabled
diff --git a/Casks/google-auto-backup.rb b/Casks/google-auto-backup.rb index abc1234..def5678 100644 --- a/Casks/google-auto-backup.rb +++ b/Casks/google-auto-backup.rb @@ -0,0 +1,7 @@+class GoogleAutoBackup < Cask + url 'https://dl.google.com/dl/edgedl/picasa/gpautobackup_setup.dmg' + homepage 'http://picasa.google....
Add Google+ Auto Backup.app latest version This is the backup tool that comes with latest version of Picasa. Add it as its own cask if you don't want to download Picasa. More info: https://support.google.com/picasa/answer/4392268?p=gpautobackup&rd=1
diff --git a/raygun_client.gemspec b/raygun_client.gemspec index abc1234..def5678 100644 --- a/raygun_client.gemspec +++ b/raygun_client.gemspec @@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = 'raygun_client' - s.version = '0.0.2.2' + s.version = '0.0.2.3' s.summary = 'Client f...
Package version is increased from 0.0.2.2 to 0.0.2.3
diff --git a/chain-cli.rb b/chain-cli.rb index abc1234..def5678 100644 --- a/chain-cli.rb +++ b/chain-cli.rb @@ -4,26 +4,17 @@ url "git@github.com:jacob-meacham/chain-cli.git", :using => :git, :tag => "0.1.0" head "git@github.com:jacob-meacham/chain-cli.git", :using => :git, :branch => "develop" - depends_on :p...
Update to new recommendations for python patckages
diff --git a/elasticsearch_distance_units_validator.gemspec b/elasticsearch_distance_units_validator.gemspec index abc1234..def5678 100644 --- a/elasticsearch_distance_units_validator.gemspec +++ b/elasticsearch_distance_units_validator.gemspec @@ -1,7 +1,8 @@ # coding: utf-8 lib = File.expand_path('../lib', __FILE__)...
Add version from constant and add activemodel dependency.
diff --git a/lib/miq_automation_engine/service_models/miq_ae_service_service_template_orchestration.rb b/lib/miq_automation_engine/service_models/miq_ae_service_service_template_orchestration.rb index abc1234..def5678 100644 --- a/lib/miq_automation_engine/service_models/miq_ae_service_service_template_orchestration.rb...
Add tenant selection to orchestration provision dialog The selection dropbox is dynamic and points to automate by orchestration operations https://bugzilla.redhat.com/show_bug.cgi?id=1218746 (transferred from ManageIQ/manageiq@7b694a9c7a5d689df37bc1e1f46a214e42d01f9e)
diff --git a/config.rb b/config.rb index abc1234..def5678 100644 --- a/config.rb +++ b/config.rb @@ -7,6 +7,7 @@ set :default_index_name, "mainstream" set :static, true +set :static_cache_control, [:public, :max_age => 86400] set :public_folder, File.join(File.dirname(__FILE__), 'public', 'system') configure :de...
Set a default cache header for sitemaps
diff --git a/config.ru b/config.ru index abc1234..def5678 100644 --- a/config.ru +++ b/config.ru @@ -3,6 +3,6 @@ require "refile/test_app" Refile::TestApp.config.action_dispatch.show_exceptions = true -Refile.host = "//localhost:9292" +Refile.app_host = "//localhost:9292" run Refile::TestApp
Make sure rack app uses app_host
diff --git a/config.ru b/config.ru index abc1234..def5678 100644 --- a/config.ru +++ b/config.ru @@ -1,4 +1,11 @@ # This file is used by Rack-based servers to start the application. require ::File.expand_path('../config/environment', __FILE__) -run Rails.application + +if defined?(PhusionPassenger) + run Rails.app...
Check for RAILS_RELATIVE_URL_ROOT environment variable on startup
diff --git a/config.ru b/config.ru index abc1234..def5678 100644 --- a/config.ru +++ b/config.ru @@ -25,7 +25,7 @@ end def mainchan - Caskbot.bot.channel_list.find ENV['IRC_CHANNELS'].split(',').first + Caskbot.bot.channel_list.find ENV['IRC_CHANNELS'].split.first end memoize :github, :...
Fix handling of multiple channels
diff --git a/app/helpers/activities_helper.rb b/app/helpers/activities_helper.rb index abc1234..def5678 100644 --- a/app/helpers/activities_helper.rb +++ b/app/helpers/activities_helper.rb @@ -11,6 +11,7 @@ return t(".#{source}", { ticket_id: ticket_id, ticket_url: url }).html_safe end end + nil ...
Handle activities without redmine nor otrs ticket
diff --git a/app/models/description_object.rb b/app/models/description_object.rb index abc1234..def5678 100644 --- a/app/models/description_object.rb +++ b/app/models/description_object.rb @@ -9,7 +9,6 @@ delegate :title, to: 'descMetadata', unique: true delegate :dpn_status, to: 'descMetadata', unique: true - ...
Remove commented out line in DescriptionObject model
diff --git a/app/services/create_list_item.rb b/app/services/create_list_item.rb index abc1234..def5678 100644 --- a/app/services/create_list_item.rb +++ b/app/services/create_list_item.rb @@ -10,7 +10,7 @@ end def call - if item_attached? + if requested_item_attached? AttachSearchToListItem.call(li...
Refactor CreateListItem: rename method (requested_item_attached?)
diff --git a/config/initializers/slack_notifier.rb b/config/initializers/slack_notifier.rb index abc1234..def5678 100644 --- a/config/initializers/slack_notifier.rb +++ b/config/initializers/slack_notifier.rb @@ -1,5 +1,11 @@ if ENV["SLACK_WEBHOOK_URL"] - Tokite::Engine.config.slack_notifier = Slack::Notifier.new ENV[...
Set dummy slack webhook url for test
diff --git a/lib/multi_json/adapters/oj.rb b/lib/multi_json/adapters/oj.rb index abc1234..def5678 100644 --- a/lib/multi_json/adapters/oj.rb +++ b/lib/multi_json/adapters/oj.rb @@ -4,7 +4,11 @@ module Adapters # Use the Oj library to dump/load. class Oj - ParseError = SyntaxError + ParseError = if...
Fix Oj ParseError mapping for Oj 1.4.0 Map Oj adapter ParseError to custom error class when it is defined. This was changed in Oj 1.4.0.
diff --git a/tasks/active_record_profiler.rake b/tasks/active_record_profiler.rake index abc1234..def5678 100644 --- a/tasks/active_record_profiler.rake +++ b/tasks/active_record_profiler.rake @@ -17,7 +17,7 @@ if compact && prefix.nil? case compact when :date - prefix = 1.day.ago.strtime(Activ...
Fix typo in aggregation rake task strftime method name.
diff --git a/lib/rodimus/transformation.rb b/lib/rodimus/transformation.rb index abc1234..def5678 100644 --- a/lib/rodimus/transformation.rb +++ b/lib/rodimus/transformation.rb @@ -3,6 +3,10 @@ module Rodimus class Transformation + include Observable + include Observing # Transformations observe themselves f...
Add observation behavior to the Transformation class.
diff --git a/s3-tar-backup.gemspec b/s3-tar-backup.gemspec index abc1234..def5678 100644 --- a/s3-tar-backup.gemspec +++ b/s3-tar-backup.gemspec @@ -12,7 +12,7 @@ s.required_ruby_version = '>= 1.9.2' s.homepage = 'http://github.com/canton7/s3-tar-backup' - s.add_dependency 'aws-sdk' + s.add_dependency 'aws-sdk'...
Add version constraint to aws-sdk dependency
diff --git a/0_code_wars/6_morse_code.rb b/0_code_wars/6_morse_code.rb index abc1234..def5678 100644 --- a/0_code_wars/6_morse_code.rb +++ b/0_code_wars/6_morse_code.rb @@ -0,0 +1,19 @@+# http://www.codewars.com/kata/54b724efac3d5402db00065e/ +# --- iteration 1 --- +def decodeMorse(morse_code) + morse_code.strip! + m...
Add code wars 6 morse code
diff --git a/spec/trie_spec.rb b/spec/trie_spec.rb index abc1234..def5678 100644 --- a/spec/trie_spec.rb +++ b/spec/trie_spec.rb @@ -3,15 +3,6 @@ trie = seed_test_ssearch.trie describe Ssearch::Trie do - describe 'when new prefix is looked up' do - it 'creates new node from reverse indexes' - it 'returns arra...
Delete specs for low-level implementation details
diff --git a/Formula/tarsnap.rb b/Formula/tarsnap.rb index abc1234..def5678 100644 --- a/Formula/tarsnap.rb +++ b/Formula/tarsnap.rb @@ -8,9 +8,8 @@ depends_on 'lzma' => :optional def install - system "./configure", "--disable-debug", "--disable-dependency-tracking", - "--prefix=#{pre...
Tarsnap: Remove --enable-sse2 and --disable-debug flags * The --enable-sse2 flag causes the compile to hang when the llvm-gcc compiler that comes with Xcode 4 is used. * The configure script doesn't recognize the --disable-debug option Signed-off-by: Adam Vandenberg <34c2b6407fd5a10249a15d699d40f9ed1782e98c@gmail.c...
diff --git a/lib/blumquist/errors/unsupported_type.rb b/lib/blumquist/errors/unsupported_type.rb index abc1234..def5678 100644 --- a/lib/blumquist/errors/unsupported_type.rb +++ b/lib/blumquist/errors/unsupported_type.rb @@ -2,7 +2,7 @@ module Errors class UnsupportedType < Blumquist::Error def initialize...
Use Blumquist::PRIMITIVE_TYPES to display the supported primitive types
diff --git a/Casks/pandora-jam.rb b/Casks/pandora-jam.rb index abc1234..def5678 100644 --- a/Casks/pandora-jam.rb +++ b/Casks/pandora-jam.rb @@ -0,0 +1,6 @@+class PandoraJam < Cask + url 'http://www.bitcartel.com/downloads/pandorajam.zip' + homepage 'http://www.bitcartel.com/pandorajam/' + version 'latest' + conten...
Add a Cask for PandoraJam.
diff --git a/Casks/tunnelblick.rb b/Casks/tunnelblick.rb index abc1234..def5678 100644 --- a/Casks/tunnelblick.rb +++ b/Casks/tunnelblick.rb @@ -1,7 +1,11 @@ class Tunnelblick < Cask - version '3.3.4' - sha256 'c14e4b2d4e30679851de7701c8a0b3167158c5ce029c59b49e49eb58946de913' - + if MacOS.version < :mavericks + v...
Install the beta version of Tunnelblick for Mavericks and above.
diff --git a/test/fixtures/policies/default.rb b/test/fixtures/policies/default.rb index abc1234..def5678 100644 --- a/test/fixtures/policies/default.rb +++ b/test/fixtures/policies/default.rb @@ -3,7 +3,7 @@ default_source :chef_repo, '..' cookbook 'nrpe-ng', path: '../../..' run_list 'nrpe-ng::default', 'test::defa...
Update integration run list for centos/debian.
diff --git a/lib/stackbuilder/stacks/gold/win_node.rb b/lib/stackbuilder/stacks/gold/win_node.rb index abc1234..def5678 100644 --- a/lib/stackbuilder/stacks/gold/win_node.rb +++ b/lib/stackbuilder/stacks/gold/win_node.rb @@ -27,6 +27,10 @@ } }) case @win_version + when '...
Helen/TomD: Add win10 to WinNode definition
diff --git a/app/controllers/ckeditor/application_controller.rb b/app/controllers/ckeditor/application_controller.rb index abc1234..def5678 100644 --- a/app/controllers/ckeditor/application_controller.rb +++ b/app/controllers/ckeditor/application_controller.rb @@ -1,4 +1,4 @@-class Ckeditor::ApplicationController < ::A...
Change super base controller to ActionController::Base
diff --git a/test/unit/parsers/test_backend.rb b/test/unit/parsers/test_backend.rb index abc1234..def5678 100644 --- a/test/unit/parsers/test_backend.rb +++ b/test/unit/parsers/test_backend.rb @@ -1,8 +1,8 @@ require 'test_helper' -class TestImageBackend +class TestImageBackend < Minitest::Test def tested - Par...
Fix broken image backend tests
diff --git a/db/migrate/20200929003904_add_created_by_to_funding_template.rb b/db/migrate/20200929003904_add_created_by_to_funding_template.rb index abc1234..def5678 100644 --- a/db/migrate/20200929003904_add_created_by_to_funding_template.rb +++ b/db/migrate/20200929003904_add_created_by_to_funding_template.rb @@ -1,6...
Update migration for creating a created_by_user_id
diff --git a/lib/gitlab/background_migration/migrate_build_stage_id_reference.rb b/lib/gitlab/background_migration/migrate_build_stage_id_reference.rb index abc1234..def5678 100644 --- a/lib/gitlab/background_migration/migrate_build_stage_id_reference.rb +++ b/lib/gitlab/background_migration/migrate_build_stage_id_refe...
Test if argument passed to a migration is present
diff --git a/app/policies/message_policy.rb b/app/policies/message_policy.rb index abc1234..def5678 100644 --- a/app/policies/message_policy.rb +++ b/app/policies/message_policy.rb @@ -9,6 +9,7 @@ def create? (user_is_not_banned_from_topic? and user_is_member_of_topic? and + user_is_author? and topi...
Update policy to account for editing.
diff --git a/l2meter.gemspec b/l2meter.gemspec index abc1234..def5678 100644 --- a/l2meter.gemspec +++ b/l2meter.gemspec @@ -6,7 +6,7 @@ spec.authors = ["Pavel Pravosud"] spec.email = ["pavel@pravosud.com"] spec.summary = "L2met friendly log formatter" - spec.homepage = "https://github.com...
Update homepage url in gemspec
diff --git a/motion/joybox/actions/fade.rb b/motion/joybox/actions/fade.rb index abc1234..def5678 100644 --- a/motion/joybox/actions/fade.rb +++ b/motion/joybox/actions/fade.rb @@ -25,11 +25,9 @@ end def self.to(options = {}) - p "=========================" options = options.nil? ? defaul...
Remove debug code from Fade class
diff --git a/lib/_program.rb b/lib/_program.rb index abc1234..def5678 100644 --- a/lib/_program.rb +++ b/lib/_program.rb @@ -50,6 +50,13 @@ def block_is_out_of_path? unless movement_is_locked? + path = @program_path.lines + x_tile, y_tile = @x/32, @y/32 + x_tc = (@tile_coefficients[@direction][1...
Add attempt at keeping program inside a path
diff --git a/app/presenters/easy_app/search_form_builder.rb b/app/presenters/easy_app/search_form_builder.rb index abc1234..def5678 100644 --- a/app/presenters/easy_app/search_form_builder.rb +++ b/app/presenters/easy_app/search_form_builder.rb @@ -28,6 +28,13 @@ end + def range_date(name, opts = {}) + ...
Add range_date method to Datatable form builder
diff --git a/lib/atlas/parser/text_to_hash/block/multi_line_block.rb b/lib/atlas/parser/text_to_hash/block/multi_line_block.rb index abc1234..def5678 100644 --- a/lib/atlas/parser/text_to_hash/block/multi_line_block.rb +++ b/lib/atlas/parser/text_to_hash/block/multi_line_block.rb @@ -4,7 +4,7 @@ class MultiLine...
Allow a multi-line block to end with whitespace
diff --git a/lib/convection/model/template/resource/aws_s3_bucket.rb b/lib/convection/model/template/resource/aws_s3_bucket.rb index abc1234..def5678 100644 --- a/lib/convection/model/template/resource/aws_s3_bucket.rb +++ b/lib/convection/model/template/resource/aws_s3_bucket.rb @@ -17,7 +17,7 @@ property :l...
Fix S3 Versioning Property Name. The S3 Property for Versioning was incorrect. This updates the property to match the name documented in the CloudFormation documentation.
diff --git a/lib/core_ext/active_support_cache_store_ext.rb b/lib/core_ext/active_support_cache_store_ext.rb index abc1234..def5678 100644 --- a/lib/core_ext/active_support_cache_store_ext.rb +++ b/lib/core_ext/active_support_cache_store_ext.rb @@ -1,12 +1,9 @@ module ActiveSupport::Cache class Store def expire...
Use time for cache_version instead of random (incrementing) integer. Fixes post count. --HG-- branch : 2.3-stable
diff --git a/spec/unit/axiom/relation/operation/combination/class_methods/combine_tuples_spec.rb b/spec/unit/axiom/relation/operation/combination/class_methods/combine_tuples_spec.rb index abc1234..def5678 100644 --- a/spec/unit/axiom/relation/operation/combination/class_methods/combine_tuples_spec.rb +++ b/spec/unit/a...
Change order of let statements
diff --git a/lib/manage_engine/app_manager/api/version11.rb b/lib/manage_engine/app_manager/api/version11.rb index abc1234..def5678 100644 --- a/lib/manage_engine/app_manager/api/version11.rb +++ b/lib/manage_engine/app_manager/api/version11.rb @@ -45,6 +45,15 @@ def hosts(response) self.hosts_servic...
Add host_services Method for Version11 Update the Version11 class to include a host_services method.
diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb index abc1234..def5678 100644 --- a/app/controllers/pages_controller.rb +++ b/app/controllers/pages_controller.rb @@ -3,7 +3,7 @@ before_filter :cache_in_varnish, :only => [:index, :show] def index - @pages = Page.all + ...
Sort the page index by name
diff --git a/app/controllers/picks_controller.rb b/app/controllers/picks_controller.rb index abc1234..def5678 100644 --- a/app/controllers/picks_controller.rb +++ b/app/controllers/picks_controller.rb @@ -1,3 +1,14 @@ class PicksController < ApplicationController + + def create + @user = User.find_or_create_by...
Add action create to Pick controller
diff --git a/lib/polr/api.rb b/lib/polr/api.rb index abc1234..def5678 100644 --- a/lib/polr/api.rb +++ b/lib/polr/api.rb @@ -16,7 +16,7 @@ end def self.process - JSON.parse yield + JSON.parse(yield).with_indifferent_access rescue Errno::ECONNREFUSED, Errno::EHOSTUNREACH => e # API unreachable ...
Add indifferent access to hash response
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index abc1234..def5678 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -0,0 +1,24 @@+class UsersController < ApplicationController + def show + unless current_user + redirect_to ...
Add controller action for User Profile page
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index abc1234..def5678 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -38,6 +38,6 @@ end def user_params - params.require(:user).permit(:name, :full_name, :email) + params.r...
Add avatar to permitted params in UsersController
diff --git a/app/models/mongoid/counter_cache.rb b/app/models/mongoid/counter_cache.rb index abc1234..def5678 100644 --- a/app/models/mongoid/counter_cache.rb +++ b/app/models/mongoid/counter_cache.rb @@ -0,0 +1,25 @@+module Mongoid + module CounterCache + module ClassMethods + def counter_cache(meta_data) + ...
Add the counter cache module to cache the replies count to increase performance.
diff --git a/lib/timecost.rb b/lib/timecost.rb index abc1234..def5678 100644 --- a/lib/timecost.rb +++ b/lib/timecost.rb @@ -1,6 +1,7 @@ require 'timecost/commit' require 'timecost/range' -require 'timecost/rangelist' +require 'timecost/author_list' +require 'timecost/range_list' require 'timecost/cli'
Fix errors due to renaming *list to *_list.
diff --git a/lib/appium_lib/ios/patch.rb b/lib/appium_lib/ios/patch.rb index abc1234..def5678 100644 --- a/lib/appium_lib/ios/patch.rb +++ b/lib/appium_lib/ios/patch.rb @@ -16,15 +16,16 @@ end # returns if the element is visible - # 1 = visible - # 0 = not visible - # null = unknown + ...
Use boolean for .visible on iOS
diff --git a/sportngin-brew-gem.rb b/sportngin-brew-gem.rb index abc1234..def5678 100644 --- a/sportngin-brew-gem.rb +++ b/sportngin-brew-gem.rb @@ -2,7 +2,7 @@ class SportnginBrewGem < Formula homepage 'https://github.com/sportngin/brew-gem' - url 'https://github.com/sportngin/brew-gem/archive/v0.2.0.tar.gz' + ...
Upgrade brew-gem to the latest release
diff --git a/modules/auxiliary/scanner/http/wp_store_locator_sqli.rb b/modules/auxiliary/scanner/http/wp_store_locator_sqli.rb index abc1234..def5678 100644 --- a/modules/auxiliary/scanner/http/wp_store_locator_sqli.rb +++ b/modules/auxiliary/scanner/http/wp_store_locator_sqli.rb @@ -0,0 +1,65 @@+## +# This module requ...
Add WP Store Locator Sqli Scanner Module
diff --git a/week-4/add-it-up/my_solution.rb b/week-4/add-it-up/my_solution.rb index abc1234..def5678 100644 --- a/week-4/add-it-up/my_solution.rb +++ b/week-4/add-it-up/my_solution.rb @@ -12,20 +12,18 @@ # Input: array of [numbers] # Output: sum of all the numbers (sum) # Steps to solve the problem. - # 1) take inpu...
Edit 4.7.2 add it up
diff --git a/lib/oboefu/api/layerinit.rb b/lib/oboefu/api/layerinit.rb index abc1234..def5678 100644 --- a/lib/oboefu/api/layerinit.rb +++ b/lib/oboefu/api/layerinit.rb @@ -8,7 +8,7 @@ # def report_init(layer) force_trace do - start_trace(layer, { '__Init' => 1, 'Version' => Oboe::Version...
[api/layer] Fix bug in layer init code start_trace requires an X-Trace id to be passed to it, or nil. This might be a place where there's room for improvement in the API.
diff --git a/0_code_wars/find_the_odd_int.rb b/0_code_wars/find_the_odd_int.rb index abc1234..def5678 100644 --- a/0_code_wars/find_the_odd_int.rb +++ b/0_code_wars/find_the_odd_int.rb @@ -0,0 +1,5 @@+# https://www.codewars.com/kata/54da5a58ea159efa3800083 +# --- iteration 1 --- +def find_it(arr) + arr.find{ |e| arr.c...
Add code wars (6) - find the odd int
diff --git a/db/migrate/20130910184823_create_index_on_builds_id_desc_and_repository_id_and_event_type.rb b/db/migrate/20130910184823_create_index_on_builds_id_desc_and_repository_id_and_event_type.rb index abc1234..def5678 100644 --- a/db/migrate/20130910184823_create_index_on_builds_id_desc_and_repository_id_and_even...
Add index on builds(id DESC, repository_id, event_type)
diff --git a/LogCentral.podspec b/LogCentral.podspec index abc1234..def5678 100644 --- a/LogCentral.podspec +++ b/LogCentral.podspec @@ -6,8 +6,8 @@ s.license = "MIT" s.author = { "Henrik Akesson" => "info@akesson.mobi" } s.homepage = "https://github.com/akesson/LogCentral" - s.platform = :i...
Update podspec for macos as well
diff --git a/lib/transpec/file_finder.rb b/lib/transpec/file_finder.rb index abc1234..def5678 100644 --- a/lib/transpec/file_finder.rb +++ b/lib/transpec/file_finder.rb @@ -20,7 +20,7 @@ def base_paths(paths) if paths.empty? - if Dir.exists?('spec') + if Dir.exist?('spec') ['spec']...
Replace deprecated Dir.exists? with .exist?
diff --git a/capistrano-info.gemspec b/capistrano-info.gemspec index abc1234..def5678 100644 --- a/capistrano-info.gemspec +++ b/capistrano-info.gemspec @@ -21,5 +21,5 @@ gem.require_paths = ["lib"] gem.version = Capistrano::Info::VERSION - gem.add_dependency 'capistrano', '~> 2.9' + gem.add_dependency '...
Allow newer versions of capistrano
diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb index abc1234..def5678 100644 --- a/app/helpers/users_helper.rb +++ b/app/helpers/users_helper.rb @@ -1,7 +1,11 @@ module UsersHelper def additional_organizations_json(user, organizations) organizations.drop(1).map do |organization| - {...
Add href path to user_helper json call
diff --git a/Casks/fourk-video-downloader.rb b/Casks/fourk-video-downloader.rb index abc1234..def5678 100644 --- a/Casks/fourk-video-downloader.rb +++ b/Casks/fourk-video-downloader.rb @@ -1,7 +1,7 @@ class FourkVideoDownloader < Cask - url 'http://4kdownload.googlecode.com/files/4kvideodownloader_2.8.dmg' + url 'htt...
Correct Four K Video Downloader Checksum Update download link to https Fixes #867