diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/lib/nationaldaylist.rb b/lib/nationaldaylist.rb index abc1234..def5678 100644 --- a/lib/nationaldaylist.rb +++ b/lib/nationaldaylist.rb @@ -3,9 +3,9 @@ class NationalDayList attr_accessor :use_cache - MONTHS= ["january", "february", "march", "april", "may", "june", "july", "august", "september", "octob...
Fix already initialized constant warnings in gem
diff --git a/lib/neography/index.rb b/lib/neography/index.rb index abc1234..def5678 100644 --- a/lib/neography/index.rb +++ b/lib/neography/index.rb @@ -25,7 +25,7 @@ def find(*args) db = args[3] ? args.pop : Neography::Rest.new - if self.inspect == "Neography::Node" + if self.is_a?(Neogr...
Use is_a? instead of inspect to cater to subclasses of Neography::Node
diff --git a/test/integration/so_tech_sha_test.rb b/test/integration/so_tech_sha_test.rb index abc1234..def5678 100644 --- a/test/integration/so_tech_sha_test.rb +++ b/test/integration/so_tech_sha_test.rb @@ -11,6 +11,13 @@ @quizzes.each do |num| get "/sotechsha/#{num}" assert_response :success + ...
Add detail test for sotechsha pages
diff --git a/lib/tasks/upgrade.rake b/lib/tasks/upgrade.rake index abc1234..def5678 100644 --- a/lib/tasks/upgrade.rake +++ b/lib/tasks/upgrade.rake @@ -13,6 +13,7 @@ post.save! puts "#{post.title} recreated." end + puts 'All posts have been transfered. Feel free to remove kennedy_posts table... af...
Add friendly message to remove kennedy_posts table
diff --git a/lib/whatsapp/client.rb b/lib/whatsapp/client.rb index abc1234..def5678 100644 --- a/lib/whatsapp/client.rb +++ b/lib/whatsapp/client.rb @@ -24,6 +24,14 @@ def auth(password) @connection.auth(password) + end + + def poll_messages + @connection.poll_messages + end + + def get_me...
Add polling messages to public api
diff --git a/rml.gemspec b/rml.gemspec index abc1234..def5678 100644 --- a/rml.gemspec +++ b/rml.gemspec @@ -5,8 +5,8 @@ Gem::Specification.new do |s| s.name = "rml" s.version = RML::VERSION - s.authors = ["Omar Rodriguez"] - s.email = ["omarjavier15@gmail.com"] + s.authors = ["Omar Ro...
Modify gemspec to add authors
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 @@ -5,9 +5,9 @@ config.active_record.dump_schema_after_migration = false config.active_support.deprecation ...
Add JS and CSS compression back
diff --git a/materialize_it.gemspec b/materialize_it.gemspec index abc1234..def5678 100644 --- a/materialize_it.gemspec +++ b/materialize_it.gemspec @@ -14,14 +14,6 @@ spec.homepage = "https://github.com/HenryTimelessness/materialize_it" spec.license = "MIT" - # Prevent pushing this gem to RubyGems.o...
Delete some stuff from gemspec
diff --git a/spec/generative/ordering_spec.rb b/spec/generative/ordering_spec.rb index abc1234..def5678 100644 --- a/spec/generative/ordering_spec.rb +++ b/spec/generative/ordering_spec.rb @@ -13,12 +13,12 @@ end it "does not duplicate regular specs" do - spec = double metadata: {} + spec = double(metadata...
Fix spec for RSpec 3
diff --git a/spec/integration/adapter_spec.rb b/spec/integration/adapter_spec.rb index abc1234..def5678 100644 --- a/spec/integration/adapter_spec.rb +++ b/spec/integration/adapter_spec.rb @@ -3,14 +3,15 @@ require 'virtus' describe 'Mongo adapter' do - let(:rom) { ROM.setup(mongo: 'mongo://127.0.0.1:27017/test') }...
Update spec to latest rom
diff --git a/spec/requests/list_items_spec.rb b/spec/requests/list_items_spec.rb index abc1234..def5678 100644 --- a/spec/requests/list_items_spec.rb +++ b/spec/requests/list_items_spec.rb @@ -0,0 +1,29 @@+require 'rails_helper' + +RSpec.describe "ListItems", type: :request do + let(:headers) { + { "ACCEPT" => "app...
Add request spec for happy-path creating a ListItem
diff --git a/spec/ruby_syntax_checker_spec.rb b/spec/ruby_syntax_checker_spec.rb index abc1234..def5678 100644 --- a/spec/ruby_syntax_checker_spec.rb +++ b/spec/ruby_syntax_checker_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe MountainBerryFields::Test::SyntaxChecker do +describe MountainBerryFields::Test::...
Fix spec file from when renaming to RubySyntaxChecker
diff --git a/spec/support/database_cleaner.rb b/spec/support/database_cleaner.rb index abc1234..def5678 100644 --- a/spec/support/database_cleaner.rb +++ b/spec/support/database_cleaner.rb @@ -1,6 +1,6 @@ RSpec.configure do |config| config.before(:suite) do - DatabaseCleaner.clean_with(:deletion) + DatabaseCle...
Fix foreign key errors when resetting DB in tests Problem I couldn't get the test suite passing because of foreign key errors when resetting the DB. For example, ``` Failures: 1) customer show page links to the customer's orders Failure/Error: DatabaseCleaner.clean ActiveRecord::InvalidForeignKey: ...
diff --git a/spec/support/database_cleaner.rb b/spec/support/database_cleaner.rb index abc1234..def5678 100644 --- a/spec/support/database_cleaner.rb +++ b/spec/support/database_cleaner.rb @@ -5,8 +5,6 @@ RSpec.configure do |config| config.before :suite do - #DatabaseCleaner.clean_with :truncation - Databa...
Clean with truncation at the start of each suite. This keeps things working properly for mongo which does not support transactions. The strategy is still properly configured to use transactions where supported, though, so this should not affect the speed of the test suite for other ORMs.
diff --git a/attributes/default.rb b/attributes/default.rb index abc1234..def5678 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -3,13 +3,8 @@ default['android-sdk']['group'] = 'root' default['android-sdk']['setup_root'] = nil # ark defaults (/usr/local) is used if this attribute is no...
Update to Android SDK r22.2.1
diff --git a/bench/bench_helper.rb b/bench/bench_helper.rb index abc1234..def5678 100644 --- a/bench/bench_helper.rb +++ b/bench/bench_helper.rb @@ -1,6 +1,13 @@ require 'benchmark' -$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) +lib = File.expand_path('../../lib', __FILE__) + +cext = "#{lib}/ffi_c.so" +...
Make sure the C extension is compiled before running benchmarks * Otherwise, the C extension from the gem might be picked instead.
diff --git a/mingo.gemspec b/mingo.gemspec index abc1234..def5678 100644 --- a/mingo.gemspec +++ b/mingo.gemspec @@ -9,8 +9,8 @@ s.authors = ["Chris Hanks"] s.email = ["christopher.m.hanks@gmail.com"] s.homepage = "https://github.com/chanks/mingo" - s.summary = %q{A simple A/B testing engine f...
Update summary and description in .gemspec.
diff --git a/app/controllers/admin/educators_controller.rb b/app/controllers/admin/educators_controller.rb index abc1234..def5678 100644 --- a/app/controllers/admin/educators_controller.rb +++ b/app/controllers/admin/educators_controller.rb @@ -8,13 +8,5 @@ super end - def resource_params - # Trans...
Remove permitted params code that was throwing an error
diff --git a/db/migrate/20131222143000_rename_user_exercise_reference_on_submissions.rb b/db/migrate/20131222143000_rename_user_exercise_reference_on_submissions.rb index abc1234..def5678 100644 --- a/db/migrate/20131222143000_rename_user_exercise_reference_on_submissions.rb +++ b/db/migrate/20131222143000_rename_user_...
Update user exercise column on submission
diff --git a/resources/environment.rb b/resources/environment.rb index abc1234..def5678 100644 --- a/resources/environment.rb +++ b/resources/environment.rb @@ -2,8 +2,6 @@ actions :create, :delete, :nothing default_action :create - -attribute :complete, :kind_of => [TrueClass, FalseClass] attribute :name, :kind_...
Move control options to the bottom
diff --git a/Casks/adium-nightly15.rb b/Casks/adium-nightly15.rb index abc1234..def5678 100644 --- a/Casks/adium-nightly15.rb +++ b/Casks/adium-nightly15.rb @@ -3,8 +3,15 @@ sha256 '828c2e2f21a2e500aeb580d018afba0f360956334d655a8280d4f9ba09af7b9d' url "http://nightly.adium.im/adium-adium-1.5.11/Adium_#{version}....
Add missing stanzas to Adium Nightly15
diff --git a/Casks/firefox-nightly.rb b/Casks/firefox-nightly.rb index abc1234..def5678 100644 --- a/Casks/firefox-nightly.rb +++ b/Casks/firefox-nightly.rb @@ -2,7 +2,7 @@ version :latest sha256 :no_check - url 'http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/firefox-35.0a1.en-US.mac.dmg' +...
Update Firefox Nightly to 36.0a1
diff --git a/Casks/keepingyouawake.rb b/Casks/keepingyouawake.rb index abc1234..def5678 100644 --- a/Casks/keepingyouawake.rb +++ b/Casks/keepingyouawake.rb @@ -1,6 +1,6 @@ cask :v1 => 'keepingyouawake' do - version '1.3' - sha256 'edc08fa7e8504035ab721cc6a2c8fb2c482c5cc82d6666410444738eacaa0748' + version '1.3.1' +...
Update KeepingYouAwake to latest release
diff --git a/qa/qa/page/group/new.rb b/qa/qa/page/group/new.rb index abc1234..def5678 100644 --- a/qa/qa/page/group/new.rb +++ b/qa/qa/page/group/new.rb @@ -4,6 +4,7 @@ class New < Page::Base def set_path(path) fill_in 'group_path', with: path + fill_in 'group_name', with: path ...
Fix QA group creation by filling required fileds
diff --git a/ReactiveCocoaApply.podspec b/ReactiveCocoaApply.podspec index abc1234..def5678 100644 --- a/ReactiveCocoaApply.podspec +++ b/ReactiveCocoaApply.podspec @@ -10,7 +10,7 @@ s.social_media_url = 'https://twitter.com/leonovco' s.ios.deployment_target = "8.0" - s.osx.deployment_target = "10.9" + s.osx.d...
Move macos deployment target to 10.10.
diff --git a/spec/models/configuration_spec.rb b/spec/models/configuration_spec.rb index abc1234..def5678 100644 --- a/spec/models/configuration_spec.rb +++ b/spec/models/configuration_spec.rb @@ -8,7 +8,7 @@ it{ should validate_presence_of :name } it "should be valid from factory" do - @config.should be_vali...
Use expect syntax for Configuration specs
diff --git a/Casks/adobe-reader-pl.rb b/Casks/adobe-reader-pl.rb index abc1234..def5678 100644 --- a/Casks/adobe-reader-pl.rb +++ b/Casks/adobe-reader-pl.rb @@ -0,0 +1,20 @@+cask :v1 => 'adobe-reader-pl' do + version '11.0.00' + sha256 'cfeeef917cec3175ab7673c9afd9df081794d952c5e919e29a962df21e041b37' + + url "http:...
Add Adobe Reader 11 Polish version
diff --git a/spec/sisecommerce/produto_spec.rb b/spec/sisecommerce/produto_spec.rb index abc1234..def5678 100644 --- a/spec/sisecommerce/produto_spec.rb +++ b/spec/sisecommerce/produto_spec.rb @@ -31,11 +31,9 @@ end describe '#put' do - let(:produto_put) { } - it 'should change produto nome' do S...
Apply fix on put request spec
diff --git a/spec/standalone_appserver_spec.rb b/spec/standalone_appserver_spec.rb index abc1234..def5678 100644 --- a/spec/standalone_appserver_spec.rb +++ b/spec/standalone_appserver_spec.rb @@ -9,7 +9,7 @@ each_machine do |machine| machine.ram = '14680064' machine.vcpus = '8' - ...
rpearce: Modify standalone app tests from image_size to modify_storage
diff --git a/spec/unit/recipes/default_spec.rb b/spec/unit/recipes/default_spec.rb index abc1234..def5678 100644 --- a/spec/unit/recipes/default_spec.rb +++ b/spec/unit/recipes/default_spec.rb @@ -2,7 +2,7 @@ describe 'default recipe' do let(:chef_run) do - runner = ChefSpec::ServerRunner.new(platform: 'centos'...
Update specs to the latest platform versions Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
diff --git a/spec/workers/share_worker_spec.rb b/spec/workers/share_worker_spec.rb index abc1234..def5678 100644 --- a/spec/workers/share_worker_spec.rb +++ b/spec/workers/share_worker_spec.rb @@ -0,0 +1,26 @@+# frozen_string_literal: true + +require 'rails_helper' + +describe ShareWorker do + let(:user) { FactoryBot....
Test `ShareWorker`'s handling of deleted records
diff --git a/log.gemspec b/log.gemspec index abc1234..def5678 100644 --- a/log.gemspec +++ b/log.gemspec @@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = 'evt-log' - s.version = '1.1.0.0' + s.version = '2.1.0.0' s.summary = 'Logging to STD IO with levels, tagging, and coloring' ...
Package version is increased from 1.1.0.0 to 2.1.0.0
diff --git a/app/models/user.rb b/app/models/user.rb index abc1234..def5678 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,7 +1,8 @@ require 'bcrypt' class User < ApplicationRecord - validates :username, presence: true, length: { in: 4..15 }, uniqueness: true + validates :username, presence: true, ...
Update validation to contain an error message
diff --git a/pages/config/routes.rb b/pages/config/routes.rb index abc1234..def5678 100644 --- a/pages/config/routes.rb +++ b/pages/config/routes.rb @@ -1,6 +1,9 @@ ConstructorPages::Engine.routes.draw do scope '/admin' do - resources :pages, except: [:show] + resources :pages, except: [:show] do + get :n...
Move new_child to pages resources.
diff --git a/app/jobs/sample.rb b/app/jobs/sample.rb index abc1234..def5678 100644 --- a/app/jobs/sample.rb +++ b/app/jobs/sample.rb @@ -14,7 +14,8 @@ Dashing.send_event('past_hour', { value: Device.sightings_past_hour }) Dashing.send_event('past_day', { current: Device.sightings_past_day }) d = Device.last...
Update to have last seen device with not found manufacturers
diff --git a/app/models/link.rb b/app/models/link.rb index abc1234..def5678 100644 --- a/app/models/link.rb +++ b/app/models/link.rb @@ -25,12 +25,9 @@ end doc = Oga.parse_html(body) + title = doc.at_css('title') - if doc.at_css('title') != nil - return doc.at_css('title').text - else - ...
Refactor Link Model to remove duplicate code
diff --git a/app/models/user.rb b/app/models/user.rb index abc1234..def5678 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -12,7 +12,6 @@ # class User < ActiveRecord::Base - validates :name, uniqueness: true validates :email, presence: true, uniqueness: true validates_format_of :email, with: /\@m...
Remove the name uniqueness contraint
diff --git a/app/models/user.rb b/app/models/user.rb index abc1234..def5678 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -2,6 +2,7 @@ authenticates_with_sorcery! has_many :user_votes + has_many :items, through: :user_votes validates :password, length: { minimum: 8} validates :password, co...
Add association User has many Items thru UserVotes
diff --git a/config/initializers/delayed_jobs_config.rb b/config/initializers/delayed_jobs_config.rb index abc1234..def5678 100644 --- a/config/initializers/delayed_jobs_config.rb +++ b/config/initializers/delayed_jobs_config.rb @@ -9,8 +9,7 @@ module QueueConfigs - - BLASTER_QUEUE = "blaster" - LIST_CUTTER_QUEUE...
Revert "remove ENV variables from the delayed jobs config. It's just unnecessary" This reverts commit 8674d728bd106bafd2375a563aeadce76d04d9c5.
diff --git a/db/migrate/20160605114255_create_brands.rb b/db/migrate/20160605114255_create_brands.rb index abc1234..def5678 100644 --- a/db/migrate/20160605114255_create_brands.rb +++ b/db/migrate/20160605114255_create_brands.rb @@ -2,6 +2,7 @@ def change create_table :brands do |t| t.string :brand_name, ...
Update brad table to add column for logo path
diff --git a/actioncable/test/subscription_adapter/channel_prefix.rb b/actioncable/test/subscription_adapter/channel_prefix.rb index abc1234..def5678 100644 --- a/actioncable/test/subscription_adapter/channel_prefix.rb +++ b/actioncable/test/subscription_adapter/channel_prefix.rb @@ -5,7 +5,7 @@ module ChannelPrefixTes...
Use indifferent access for config hash in actioncable postgresql test
diff --git a/ARSlidingPanel.podspec b/ARSlidingPanel.podspec index abc1234..def5678 100644 --- a/ARSlidingPanel.podspec +++ b/ARSlidingPanel.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "ARSlidingPanel" - s.version = "0.1.0" + s.version = "0.1.1" s.summary = "ARSlidingPanel is ...
Bump the podspec file to 0.1.1 to reflect changes Please add a tag `0.1.1` and push it to the Cocopods specs repo using `pod spec push`
diff --git a/lib/fireap/view_model/application_node.rb b/lib/fireap/view_model/application_node.rb index abc1234..def5678 100644 --- a/lib/fireap/view_model/application_node.rb +++ b/lib/fireap/view_model/application_node.rb @@ -4,9 +4,8 @@ class ApplicationNode attr :appname, :version, :semaphore, :updated_at, ...
Modify comment to use YARD
diff --git a/lib/vagrant-azure/monkey_patch/machine.rb b/lib/vagrant-azure/monkey_patch/machine.rb index abc1234..def5678 100644 --- a/lib/vagrant-azure/monkey_patch/machine.rb +++ b/lib/vagrant-azure/monkey_patch/machine.rb @@ -13,7 +13,7 @@ if @config.vm.guest == :windows @communicator = VagrantPlu...
Call original ssh_communicate for non windows vm
diff --git a/BFRImageViewer.podspec b/BFRImageViewer.podspec index abc1234..def5678 100644 --- a/BFRImageViewer.podspec +++ b/BFRImageViewer.podspec @@ -1,14 +1,24 @@ Pod::Spec.new do |s| s.name = "BFRImageViewer" s.version = "1.0.7" - s.summary = "BFRImageViewer." - s.homepage = "...
Make the pod spec open source friendly
diff --git a/callcredit.gemspec b/callcredit.gemspec index abc1234..def5678 100644 --- a/callcredit.gemspec +++ b/callcredit.gemspec @@ -7,7 +7,7 @@ gem.add_runtime_dependency 'unicode_utils', '~> 1.4.0' gem.add_development_dependency 'rspec', '~> 3.8.0' - gem.add_development_dependency 'webmock...
Update webmock requirement from ~> 3.5.1 to ~> 3.6.0 Updates the requirements on [webmock](https://github.com/bblimke/webmock) to permit the latest version. - [Release notes](https://github.com/bblimke/webmock/releases) - [Changelog](https://github.com/bblimke/webmock/blob/master/CHANGELOG.md) - [Commits](https://gith...
diff --git a/config/initializers/rails_security_patches.rb b/config/initializers/rails_security_patches.rb index abc1234..def5678 100644 --- a/config/initializers/rails_security_patches.rb +++ b/config/initializers/rails_security_patches.rb @@ -0,0 +1,22 @@+# Temporary patches for Rails security alert made on 03/12/201...
Apply monkey patch for CVE-2013-6414.
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index abc1234..def5678 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -13,11 +13,20 @@ expect(@user1.following).to include @user2 end + it "follows other users correctly" do + expect(@user2.followers).to inclu...
Add more user model tests for following, unfollowing
diff --git a/spec/round_robin_spec.rb b/spec/round_robin_spec.rb index abc1234..def5678 100644 --- a/spec/round_robin_spec.rb +++ b/spec/round_robin_spec.rb @@ -1,6 +1,11 @@ require 'spec_helper' describe RoundRobin do describe "#add" do + it "should return a Job that descends from ActiveRecord::Base" do + ...
Check that RoundRobin.add returns an ActiveRecord object
diff --git a/ruby/product-change.rb b/ruby/product-change.rb index abc1234..def5678 100644 --- a/ruby/product-change.rb +++ b/ruby/product-change.rb @@ -24,7 +24,8 @@ #subscription.product_change('annual-plan') -#subscription.delayed_product_change('monthly-plan') +# schedule the product change for the next renewal...
Update method signature for delayed cancel
diff --git a/hawk.gemspec b/hawk.gemspec index abc1234..def5678 100644 --- a/hawk.gemspec +++ b/hawk.gemspec @@ -18,6 +18,5 @@ gem.require_paths = ["lib"] gem.add_dependency('aws-sdk', '~> 1.8') - gem.add_dependency('xcodeproj', '~> 0.4') gem.add_dependency('osx-plist', '~> 1.0') end
Remove stale dependency on xcodeproj
diff --git a/ci_environment/perlbrew/recipes/default.rb b/ci_environment/perlbrew/recipes/default.rb index abc1234..def5678 100644 --- a/ci_environment/perlbrew/recipes/default.rb +++ b/ci_environment/perlbrew/recipes/default.rb @@ -13,7 +13,7 @@ code <<-SH curl -s https://raw.githubusercontent.com/gugod/Ap...
Revert "Invoke perlbrew-installer with bash" This reverts commit dcf629c3a43d84d815d36c71ed06d11f6faa71ed. https://github.com/gugod/App-perlbrew/issues/407 has been fixed.
diff --git a/lib/localizable_routes/extensions/action_dispatch/named_route_collection.rb b/lib/localizable_routes/extensions/action_dispatch/named_route_collection.rb index abc1234..def5678 100644 --- a/lib/localizable_routes/extensions/action_dispatch/named_route_collection.rb +++ b/lib/localizable_routes/extensions/a...
Fix rails 4.1 and 4.0 compatibility
diff --git a/alki.gemspec b/alki.gemspec index abc1234..def5678 100644 --- a/alki.gemspec +++ b/alki.gemspec @@ -18,9 +18,7 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] - spec.add_development_dependency "bundler", "~> 1.6" - spec.add_development_dependency "r...
Remove development dependencies from gemspec
diff --git a/lib/aptible/api/database.rb b/lib/aptible/api/database.rb index abc1234..def5678 100644 --- a/lib/aptible/api/database.rb +++ b/lib/aptible/api/database.rb @@ -35,6 +35,12 @@ def provisioned? status == 'provisioned' end + + def current_configuration_with_deleted + id = lin...
Add ability to look at deleted configs
diff --git a/TastyTomato.podspec b/TastyTomato.podspec index abc1234..def5678 100644 --- a/TastyTomato.podspec +++ b/TastyTomato.podspec @@ -25,5 +25,5 @@ } s.resources = ['TastyTomato/Images/*.{xcassets, png}'] s.public_header_files = [] - s.dependency 'SignificantSpices', '~> 0.1.0' + s.dependency 'Signific...
Update Spices dependency in Podspec
diff --git a/lib/chrono_model/railtie.rb b/lib/chrono_model/railtie.rb index abc1234..def5678 100644 --- a/lib/chrono_model/railtie.rb +++ b/lib/chrono_model/railtie.rb @@ -2,16 +2,8 @@ class Railtie < ::Rails::Railtie ActiveRecord::Tasks::DatabaseTasks.register_task /chronomodel/, ActiveRecord::Tasks::PostgreSQ...
Remove the last useless initialization bit :yum:
diff --git a/config/schedule.rb b/config/schedule.rb index abc1234..def5678 100644 --- a/config/schedule.rb +++ b/config/schedule.rb @@ -1,7 +1,7 @@ # This file is overwritten on deploy set :output, {:error => 'log/cron.error.log', :standard => 'log/cron.log'} -job_type :rake, 'cd :path && /usr/local/bin/govuk_setenv ...
Add :output to whenever job definitions
diff --git a/lib/cru_lib/access_token.rb b/lib/cru_lib/access_token.rb index abc1234..def5678 100644 --- a/lib/cru_lib/access_token.rb +++ b/lib/cru_lib/access_token.rb @@ -28,6 +28,10 @@ def redis_key(token) ['cru_lib:access_token', token].join(':') end + + def del(token) + redis_clie...
Add method to delete a token
diff --git a/app/controllers/events_controller.rb b/app/controllers/events_controller.rb index abc1234..def5678 100644 --- a/app/controllers/events_controller.rb +++ b/app/controllers/events_controller.rb @@ -35,7 +35,6 @@ if event["venue"]["city"].downcase == city.downcase results << event end - ...
Remove sleep from refine_results method to make page load faster
diff --git a/app/controllers/traces_controller.rb b/app/controllers/traces_controller.rb index abc1234..def5678 100644 --- a/app/controllers/traces_controller.rb +++ b/app/controllers/traces_controller.rb @@ -6,8 +6,8 @@ .includes(:spans) .includes(:application) .where(origin: nil) - .order(sta...
Change trace sorting in UI Traces are not sorted by stop date instead of start date to avoid having slow requests not being shown because start date is already late by too many other traces.
diff --git a/spec/supports_resource_locking.rb b/spec/supports_resource_locking.rb index abc1234..def5678 100644 --- a/spec/supports_resource_locking.rb +++ b/spec/supports_resource_locking.rb @@ -14,10 +14,11 @@ end def test_lock_makes_request + skip if RUBY_VERSION < "1.9" + subject.id ...
Fix 1.8.7 parsing and skip
diff --git a/Casks/parallels.rb b/Casks/parallels.rb index abc1234..def5678 100644 --- a/Casks/parallels.rb +++ b/Casks/parallels.rb @@ -1,20 +1,31 @@ class Parallels < Cask - version '9.0.24237.1028877' - sha256 'da71645ff1f0076ab5b2f8fa5eefb63bcd921e5f52161fd4dd85e6fb19ae2c57' + version '10.0.2-27712' + sha256 'b...
Update to install Parallels Desktop 10
diff --git a/lib/unf/normalizer_cruby.rb b/lib/unf/normalizer_cruby.rb index abc1234..def5678 100644 --- a/lib/unf/normalizer_cruby.rb +++ b/lib/unf/normalizer_cruby.rb @@ -1,8 +1,7 @@-begin - require 'unf_ext' -rescue LoadError - String.method_defined?(:unicode_normalize) or raise - +case +when defined?(UNF::Normali...
Use unf_ext even on Ruby >=2.2 if it is preloaded.
diff --git a/activeresource/activeresource.gemspec b/activeresource/activeresource.gemspec index abc1234..def5678 100644 --- a/activeresource/activeresource.gemspec +++ b/activeresource/activeresource.gemspec @@ -13,7 +13,7 @@ s.email = 'david@loudthinking.com' s.homepage = 'http://www.rubyonr...
Add the MIT-LICENSE to the Active Resource gemspec
diff --git a/lib/bootstrap-sass/compass_functions.rb b/lib/bootstrap-sass/compass_functions.rb index abc1234..def5678 100644 --- a/lib/bootstrap-sass/compass_functions.rb +++ b/lib/bootstrap-sass/compass_functions.rb @@ -18,7 +18,7 @@ options[:sprockets][:context] else # Compatibility with sprockets p...
Use correct reference to context through the importer Fixes #366 in the correct way, hopefully. I can't cite my sources well, since Sprockets is very difficult to follow... but suffice to say the global options hash sent to the Tilt SASS template engine always has a reference to the Sprockets importer, and the import...
diff --git a/lib/clio_client/api/document_version.rb b/lib/clio_client/api/document_version.rb index abc1234..def5678 100644 --- a/lib/clio_client/api/document_version.rb +++ b/lib/clio_client/api/document_version.rb @@ -6,8 +6,8 @@ include ClioClient::Api::Crudable - def download(id) - session.ge...
Add extra params to the download method too
diff --git a/lib/erector/rails/rails_form_builder.rb b/lib/erector/rails/rails_form_builder.rb index abc1234..def5678 100644 --- a/lib/erector/rails/rails_form_builder.rb +++ b/lib/erector/rails/rails_form_builder.rb @@ -4,7 +4,7 @@ def initialize(object_name, object, template, options, proc) @template = t...
Make sure that we use whatever the default form builder for the app, in case it's been overridden by the user in rails environment.rb, instead of just assuming it's always the ActionView form builder
diff --git a/app/models/manageiq/providers/inventory/persister/builder/storage_manager.rb b/app/models/manageiq/providers/inventory/persister/builder/storage_manager.rb index abc1234..def5678 100644 --- a/app/models/manageiq/providers/inventory/persister/builder/storage_manager.rb +++ b/app/models/manageiq/providers/in...
Add cloud_volume_types to storage manager persister
diff --git a/Formula/gambit-scheme.rb b/Formula/gambit-scheme.rb index abc1234..def5678 100644 --- a/Formula/gambit-scheme.rb +++ b/Formula/gambit-scheme.rb @@ -1,9 +1,9 @@ require 'formula' class GambitScheme <Formula - url 'http://www.iro.umontreal.ca/~gambit/download/gambit/v4.5/source/gambc-v4_5_2.tgz' + url '...
Update Gambit Scheme to v4.5.3
diff --git a/lib/repeatable/expression/difference.rb b/lib/repeatable/expression/difference.rb index abc1234..def5678 100644 --- a/lib/repeatable/expression/difference.rb +++ b/lib/repeatable/expression/difference.rb @@ -5,8 +5,6 @@ @included = included @excluded = excluded end - - attr_rea...
Make attr_readers protected in Difference Match the existing pattern from other Expressions.
diff --git a/run-test.rb b/run-test.rb index abc1234..def5678 100644 --- a/run-test.rb +++ b/run-test.rb @@ -27,6 +27,7 @@ targets << dir end +succeeded = true targets.each do |target| Dir.chdir(target.to_s) do puts "#{Time.now} running test for #{target}" @@ -34,9 +35,11 @@ args = includes + ["test...
Exit with non-zero status on failure
diff --git a/lib/travis/logs/sidekiq/send_timings.rb b/lib/travis/logs/sidekiq/send_timings.rb index abc1234..def5678 100644 --- a/lib/travis/logs/sidekiq/send_timings.rb +++ b/lib/travis/logs/sidekiq/send_timings.rb @@ -11,7 +11,7 @@ class SendTimings include ::Sidekiq::Worker - sidekiq_options...
Set queue name correctly for Worker
diff --git a/app/controllers/welcome_controller.rb b/app/controllers/welcome_controller.rb index abc1234..def5678 100644 --- a/app/controllers/welcome_controller.rb +++ b/app/controllers/welcome_controller.rb @@ -1,5 +1,6 @@ class WelcomeController < ApplicationController def index - @yellow_jersey = Trip.group(:...
Fix yellow jersey on homepage
diff --git a/app/controllers/welcome_controller.rb b/app/controllers/welcome_controller.rb index abc1234..def5678 100644 --- a/app/controllers/welcome_controller.rb +++ b/app/controllers/welcome_controller.rb @@ -5,7 +5,7 @@ def index if current_user - redirect_to welcome_spending_proposals_path + re...
Revert "makes the "default" url for logged-in users the spending proposals welcome" This reverts commit 26ded993378c7554954a2b2392d27bd0f17d73f4.
diff --git a/app/models/spree/address_decorator.rb b/app/models/spree/address_decorator.rb index abc1234..def5678 100644 --- a/app/models/spree/address_decorator.rb +++ b/app/models/spree/address_decorator.rb @@ -35,7 +35,6 @@ end def render_address(parts) - filtered_address = parts.select{ |field| !field.nil...
Simplify by using Rails tools
diff --git a/app/validators/exchanger_validator.rb b/app/validators/exchanger_validator.rb index abc1234..def5678 100644 --- a/app/validators/exchanger_validator.rb +++ b/app/validators/exchanger_validator.rb @@ -8,7 +8,7 @@ def is_valid_exchanger?(record, value) transformer = options.fetch(:transform, nil) ...
Implement method_or_callable pattern for transformer
diff --git a/unparser.gemspec b/unparser.gemspec index abc1234..def5678 100644 --- a/unparser.gemspec +++ b/unparser.gemspec @@ -1,26 +1,28 @@ # -*- encoding: utf-8 -*- -Gem::Specification.new do |s| - s.name = 'unparser' - s.version = '0.1.6' +Gem::Specification.new do |gem| + gem.name = 'unparser' + ge...
Set gem.required_ruby_version to >= 1.9.3
diff --git a/git_awesome_diff.gemspec b/git_awesome_diff.gemspec index abc1234..def5678 100644 --- a/git_awesome_diff.gemspec +++ b/git_awesome_diff.gemspec @@ -6,7 +6,7 @@ gem.email = ["max-prokopiev@yandex.ru", "me@timurv.ru"] gem.description = %q{Object Oriented Diffing for Git} gem.summary =...
Correct link to the repo
diff --git a/lib/hash_map.rb b/lib/hash_map.rb index abc1234..def5678 100644 --- a/lib/hash_map.rb +++ b/lib/hash_map.rb @@ -3,4 +3,7 @@ require 'active_support/all' module HashMap # Your code goes here... + def self.root + File.expand_path '../..', __FILE__ + end end
Add helpful method root in HashMap module
diff --git a/lib/web_hook.rb b/lib/web_hook.rb index abc1234..def5678 100644 --- a/lib/web_hook.rb +++ b/lib/web_hook.rb @@ -0,0 +1,40 @@+class WebHook + + # List of attached web hook URLs. + # + URLs = [ + "http://metrics.cocoapods.org/hooks/trunk/#{ENV['OUTGOING_HOOK_PATH']}" + ] + + # Fifo file location. + ...
[Webhook] Add a minimal webhook implementation.
diff --git a/app/presenters/gui_presenter.rb b/app/presenters/gui_presenter.rb index abc1234..def5678 100644 --- a/app/presenters/gui_presenter.rb +++ b/app/presenters/gui_presenter.rb @@ -1,10 +1,13 @@ class GuiPresenter - attr_reader :guis_info + def read_gui_yaml + puts "READING YML" + yaml = YAML.load_fil...
Make gui clients yaml to be read in every request in non-production environments
diff --git a/app/models/iep_document.rb b/app/models/iep_document.rb index abc1234..def5678 100644 --- a/app/models/iep_document.rb +++ b/app/models/iep_document.rb @@ -1,4 +1,4 @@ class IepDocument < ActiveRecord::Base belongs_to :student - validates :file_name, uniqueness: { scope: :file_date, message: "one uniqu...
Remove file date from validation
diff --git a/lib/dalli.rb b/lib/dalli.rb index abc1234..def5678 100644 --- a/lib/dalli.rb +++ b/lib/dalli.rb @@ -4,7 +4,7 @@ require 'dalli/version' require 'dalli/options' -unless String.respond_to?(:bytesize) +unless ''.respond_to?(:bytesize) class String alias_method :bytesize, :size end
Fix bytesize check, closes GH-36
diff --git a/app/models/user_request.rb b/app/models/user_request.rb index abc1234..def5678 100644 --- a/app/models/user_request.rb +++ b/app/models/user_request.rb @@ -4,7 +4,7 @@ enum status: [ :Pending, :Accepted, :Rejected ] - validates :status, inclusion: { in: statuses.keys } + validates :status, inclusio...
Allow blank user request status (defaults to pending on the database).
diff --git a/glimpse-dalli.gemspec b/glimpse-dalli.gemspec index abc1234..def5678 100644 --- a/glimpse-dalli.gemspec +++ b/glimpse-dalli.gemspec @@ -17,5 +17,6 @@ gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) gem.require_paths = ['lib'] + gem.add_dependency 'glimpse' gem.add_dependency 'dall...
Add dependency on glimpse now that it's on RubyGems
diff --git a/config/initializers/forbidden_yaml.rb b/config/initializers/forbidden_yaml.rb index abc1234..def5678 100644 --- a/config/initializers/forbidden_yaml.rb +++ b/config/initializers/forbidden_yaml.rb @@ -0,0 +1,59 @@+# XXX: This is purely a monkey patch to close the exploit vector for now, a more +# permanent ...
Patch YAML to allow only some Gem classes to be unmarshalled
diff --git a/lib/docuvator.rb b/lib/docuvator.rb index abc1234..def5678 100644 --- a/lib/docuvator.rb +++ b/lib/docuvator.rb @@ -20,9 +20,6 @@ def parse_options OptionParser.new do |opt| opt.version = VERSION - opt.on "-v", "--verbose", "Verbose output (shows INFO level log statements)" do - ...
Remove --verbose option, INFO log level is now default Remove: * The --verbose option Change: * Default log level to INFO
diff --git a/whiteout.gemspec b/whiteout.gemspec index abc1234..def5678 100644 --- a/whiteout.gemspec +++ b/whiteout.gemspec @@ -23,5 +23,5 @@ s.add_development_dependency "rspec" s.add_development_dependency "ronn" - # s.add_runtime_dependency "rest-client" + s.add_development_dependency "rake" end
Add rake as a development dependency
diff --git a/controllers/attachments_controller.rb b/controllers/attachments_controller.rb index abc1234..def5678 100644 --- a/controllers/attachments_controller.rb +++ b/controllers/attachments_controller.rb @@ -8,6 +8,8 @@ upload = Attachment.new performance_id: 4 upload.filename = params[:image] ...
Return status in Attachments Controller
diff --git a/app/controllers/cart_controller.rb b/app/controllers/cart_controller.rb index abc1234..def5678 100644 --- a/app/controllers/cart_controller.rb +++ b/app/controllers/cart_controller.rb @@ -7,16 +7,16 @@ @cart = @current_user.shopping_cart end - # This method is under construction!! Will come back ...
Update functionality of remove item from shopping cart
diff --git a/app/controllers/main_controller.rb b/app/controllers/main_controller.rb index abc1234..def5678 100644 --- a/app/controllers/main_controller.rb +++ b/app/controllers/main_controller.rb @@ -13,8 +13,7 @@ @events = Event.includes(:audits).where(:project_id => @projects).order("events.created_at DESC").l...
Fix ruby 1.8 syntax issues
diff --git a/lib/priceable.rb b/lib/priceable.rb index abc1234..def5678 100644 --- a/lib/priceable.rb +++ b/lib/priceable.rb @@ -1,29 +1,27 @@+# frozen_string_literal: true + require "priceable/version" module Priceable - SUFFIXES = ["_in_cents", "_in_pennies", "_as_integer"] + SUFFIXES = ["_in_cents", "_in_penni...
Remove attr_accessible and tidy up
diff --git a/lib/rack/etag.rb b/lib/rack/etag.rb index abc1234..def5678 100644 --- a/lib/rack/etag.rb +++ b/lib/rack/etag.rb @@ -3,9 +3,9 @@ module Rack # Automatically sets the ETag header on all String bodies. # - # The ETag header is skipped if ETag or Last-Modified headers - # are sent or if a sendfile body...
Update docs and minor corrections.
diff --git a/lib/spree_redirects/redirect_middleware.rb b/lib/spree_redirects/redirect_middleware.rb index abc1234..def5678 100644 --- a/lib/spree_redirects/redirect_middleware.rb +++ b/lib/spree_redirects/redirect_middleware.rb @@ -6,15 +6,25 @@ end def call(env) - status, headers, body = @app.call(...
Fix for redirects on production (consider_all_requests_local = false)
diff --git a/deep_merge.gemspec b/deep_merge.gemspec index abc1234..def5678 100644 --- a/deep_merge.gemspec +++ b/deep_merge.gemspec @@ -6,7 +6,7 @@ s.authors = ["Steve Midgley"] s.date = %q{2011-07-28} - s.description = %q{Recursively merge hashes. Now works with Ruby 1.9 and ActiveSupport} + s.description = ...
Remove 1.9 messaging on gemspec
diff --git a/lib/bitescript/asm.rb b/lib/bitescript/asm.rb index abc1234..def5678 100644 --- a/lib/bitescript/asm.rb +++ b/lib/bitescript/asm.rb @@ -3,16 +3,25 @@ module BiteScript module ASM begin - # try mangled names for the version included with JRuby + # try mangled names for the version included...
Update ASM mangled package to reflect JRuby 1.6.0.RC3 and higher.
diff --git a/lib/cask/locations.rb b/lib/cask/locations.rb index abc1234..def5678 100644 --- a/lib/cask/locations.rb +++ b/lib/cask/locations.rb @@ -5,7 +5,7 @@ module ClassMethods def tapspath - HOMEBREW_PREFIX.join "Library", "Taps" + HOMEBREW_REPOSITORY.join "Library", "Taps" end def c...
Use HOMEBREW_REPOSITORY instead of HOMEBREW_PREFIX to derive tapspath
diff --git a/spec/validators/email_validator_spec.rb b/spec/validators/email_validator_spec.rb index abc1234..def5678 100644 --- a/spec/validators/email_validator_spec.rb +++ b/spec/validators/email_validator_spec.rb @@ -0,0 +1,24 @@+require 'spec_helper' + + +describe "EmailValidator" do + + before(:each) do + @va...
Add test for email validator.
diff --git a/behaviour/effect/blood_taste.rb b/behaviour/effect/blood_taste.rb index abc1234..def5678 100644 --- a/behaviour/effect/blood_taste.rb +++ b/behaviour/effect/blood_taste.rb @@ -15,7 +15,7 @@ heal = intent.attack.entity.hp_max - intent.attack.entity.hp if intent.attack.entity.hp_max - intent.attack.entit...
Apply scope to Blood Taste notification