diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -7,4 +7,16 @@ add_filter '/db/' end +# Configure a test database +require 'active_record' + +ENV['RACK_ENV'] = 'test' + +ActiveRecord::Base.establish_connection( + adapter: '...
Create a test database & load the AR schema.
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -29,4 +29,4 @@ require 'support/transport' require 'support/files' -ENV['ELECTRIC_SHEEPS_HOME'] = Dir.mktmpdir +ENV['ELECTRIC_SHEEP_HOME'] = Dir.mktmpdir
Use the appropriate environment variable in specs
diff --git a/spec/test_helper.rb b/spec/test_helper.rb index abc1234..def5678 100644 --- a/spec/test_helper.rb +++ b/spec/test_helper.rb @@ -1,8 +1,5 @@ # Inspiration gained from Thinking Sphinx's test suite. # Pat Allan is a genius. - -puts "WTF STILL BROKEN" -puts Time.zone class TestHelper attr_accessor :host...
Revert "and one's still failing... figuring out what zone the server's in" This reverts commit 8301bddc0d28a022dec97857fe31db2301cd0745.
diff --git a/test/client_test.rb b/test/client_test.rb index abc1234..def5678 100644 --- a/test/client_test.rb +++ b/test/client_test.rb @@ -19,7 +19,14 @@ subscription_info = fixture('subscription_info.json') # TODO: Add header for response stub_request(:get, "https://dash-replenishment-service-na....
Add headers to response in test
diff --git a/test/test_helper.rb b/test/test_helper.rb index abc1234..def5678 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,21 +1,3 @@-# Set the default environment to sqlite3's in_memory database -ENV['RAILS_ENV'] ||= 'in_memory' - -# Load the Rails environment and testing framework -require "#{File...
Make unit tests outside of test app running
diff --git a/test/test_helper.rb b/test/test_helper.rb index abc1234..def5678 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -2,7 +2,7 @@ require 'rubygems' require 'test/unit' -require 'mocha' +require 'mocha/setup' unless(TEST_LIVE_API) require 'webmock/test_unit' @@ -18,4 +18,4 @@ end #loa...
Update mocha require statement to the new 'mocha/setup' file
diff --git a/test/test_helper.rb b/test/test_helper.rb index abc1234..def5678 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -33,3 +33,20 @@ end require 'aviator/core' + +at_exit do + # Load all requests so that they are reported by SimpleCov + request_file_paths = Dir.glob(Pathname.new(__FILE__).jo...
Load request files at exit
diff --git a/spec/samples/rubySyntaxParts/conditionalStatment/inlineConditional.rb b/spec/samples/rubySyntaxParts/conditionalStatment/inlineConditional.rb index abc1234..def5678 100644 --- a/spec/samples/rubySyntaxParts/conditionalStatment/inlineConditional.rb +++ b/spec/samples/rubySyntaxParts/conditionalStatment/inli...
Add sample to catch bug.
diff --git a/config/initializers/wrap_parameters.rb b/config/initializers/wrap_parameters.rb index abc1234..def5678 100644 --- a/config/initializers/wrap_parameters.rb +++ b/config/initializers/wrap_parameters.rb @@ -4,6 +4,7 @@ # Enable parameter wrapping for JSON. ActiveSupport.on_load(:action_controller) do + in...
Add explicit support for params wrapper
diff --git a/lib/uuid_mixin.rb b/lib/uuid_mixin.rb index abc1234..def5678 100644 --- a/lib/uuid_mixin.rb +++ b/lib/uuid_mixin.rb @@ -1,22 +1,17 @@ module UuidMixin extend ActiveSupport::Concern included do - before_validation :set_guid, :on => :create if respond_to?(:before_validation) + default_value_for(:...
Switch to default_value_for rather than custom logic
diff --git a/spec/gitprep_spec.rb b/spec/gitprep_spec.rb index abc1234..def5678 100644 --- a/spec/gitprep_spec.rb +++ b/spec/gitprep_spec.rb @@ -17,4 +17,8 @@ .with(checkout_branch: "latest") end + it 'creates a template with attributes' do + expect(chef_run).to create_template("/var/lib/gitprep/gitprep....
Add template example (just check create on default file path)
diff --git a/spec/models/collection_spec.rb b/spec/models/collection_spec.rb index abc1234..def5678 100644 --- a/spec/models/collection_spec.rb +++ b/spec/models/collection_spec.rb @@ -1,34 +1,37 @@ require 'spec_helper' -describe Collection, :type => :model do - before do - @user = FactoryGirl.create(:user) - ...
Refactor spec to use let and get rid of tap
diff --git a/spec/node/node_version_spec.rb b/spec/node/node_version_spec.rb index abc1234..def5678 100644 --- a/spec/node/node_version_spec.rb +++ b/spec/node/node_version_spec.rb @@ -13,3 +13,10 @@ its(:stdout) { should contain('v4.4.4') } end end + +# Node 6.x +if property[:name] =~ /v6./ + describe command...
Test for Node.js 6.x image
diff --git a/test/sepa/banks/nordea/nordea_renew_cert_request_soap_builder_test.rb b/test/sepa/banks/nordea/nordea_renew_cert_request_soap_builder_test.rb index abc1234..def5678 100644 --- a/test/sepa/banks/nordea/nordea_renew_cert_request_soap_builder_test.rb +++ b/test/sepa/banks/nordea/nordea_renew_cert_request_soap...
Test that request id is properly set
diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb index abc1234..def5678 100644 --- a/spec/spec_helper_acceptance.rb +++ b/spec/spec_helper_acceptance.rb @@ -4,12 +4,12 @@ run_puppet_install_helper install_module_on(hosts) -install_module_from_forge_on(hosts, 'puppetlabs-stdlib', '= 4.11.0...
Update dependencies used for acceptance tests
diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb index abc1234..def5678 100644 --- a/spec/spec_helper_acceptance.rb +++ b/spec/spec_helper_acceptance.rb @@ -1,22 +1,17 @@-require 'beaker-rspec/spec_helper' -require 'beaker-rspec/helpers/serverspec' +require 'beaker-rspec' +require 'beaker-pu...
Clean up acceptance spec helper
diff --git a/lib/centable.rb b/lib/centable.rb index abc1234..def5678 100644 --- a/lib/centable.rb +++ b/lib/centable.rb @@ -1,4 +1,23 @@ require "centable/engine" module Centable + extend ActiveSupport::Concern + + module ClassMethods + def cent_column(attribute, options={}) + cents_col = "#{attribute.to_...
Add main logic to Centable
diff --git a/Formula/neon.rb b/Formula/neon.rb index abc1234..def5678 100644 --- a/Formula/neon.rb +++ b/Formula/neon.rb @@ -9,7 +9,15 @@ :provided_by_osx end + def options + [ + ['--universal', 'Build as a Universal Intel binary.'] + ] + end + def install + ENV.universal_binary if ARGV.incl...
Add --universal option to Neon
diff --git a/lib/weekly_commits/cli.rb b/lib/weekly_commits/cli.rb index abc1234..def5678 100644 --- a/lib/weekly_commits/cli.rb +++ b/lib/weekly_commits/cli.rb @@ -12,8 +12,15 @@ type: :numeric, desc: 'Relative week number. e.g. -w=1 for last week. 0 = current week.', aliases: '-w', - default:...
Add ability to show committer
diff --git a/activerecord/test/cases/adapters/mysql/quoting_test.rb b/activerecord/test/cases/adapters/mysql/quoting_test.rb index abc1234..def5678 100644 --- a/activerecord/test/cases/adapters/mysql/quoting_test.rb +++ b/activerecord/test/cases/adapters/mysql/quoting_test.rb @@ -9,15 +9,11 @@ end de...
Stop relying on columns in mysql quoting tests The behavior tested by the removed lines is sufficiently covered elsewhere.
diff --git a/vagrant-blocker.gemspec b/vagrant-blocker.gemspec index abc1234..def5678 100644 --- a/vagrant-blocker.gemspec +++ b/vagrant-blocker.gemspec @@ -14,8 +14,8 @@ spec.homepage = 'https://github.com/vStone/vagrant-blocker' spec.license = 'MIT' - spec.files = `git ls-files -z`.split...
Exclude some files from the generated gem
diff --git a/app/models/solidus_avatax_certified/request/get_tax.rb b/app/models/solidus_avatax_certified/request/get_tax.rb index abc1234..def5678 100644 --- a/app/models/solidus_avatax_certified/request/get_tax.rb +++ b/app/models/solidus_avatax_certified/request/get_tax.rb @@ -5,7 +5,7 @@ class GetTax < SolidusA...
Fix positive amount adjustments being considered as discounts
diff --git a/app/controllers/trackchanges_controller.rb b/app/controllers/trackchanges_controller.rb index abc1234..def5678 100644 --- a/app/controllers/trackchanges_controller.rb +++ b/app/controllers/trackchanges_controller.rb @@ -1,5 +1,4 @@ class TrackchangesController < ApplicationController - skip_before_actio...
Connect track changes function to fixed Listing.date_range()
diff --git a/SisGPWeb/spec/models/projeto_spec.rb b/SisGPWeb/spec/models/projeto_spec.rb index abc1234..def5678 100644 --- a/SisGPWeb/spec/models/projeto_spec.rb +++ b/SisGPWeb/spec/models/projeto_spec.rb @@ -10,5 +10,10 @@ subject(:projeto) { Projeto.new(nome: "teste", descricao: "teste01", dataInicio: nil, dataFim: ...
Create it of rspec projeto test
diff --git a/test/cases/queuing_test.rb b/test/cases/queuing_test.rb index abc1234..def5678 100644 --- a/test/cases/queuing_test.rb +++ b/test/cases/queuing_test.rb @@ -23,6 +23,7 @@ result = HelloJob.enqueue_at 1.second.ago, "Jamie" assert result rescue NotImplementedError + skip end end...
Make it clear that the later test is skipped for adapters that do not implement it
diff --git a/services/campfire.rb b/services/campfire.rb index abc1234..def5678 100644 --- a/services/campfire.rb +++ b/services/campfire.rb @@ -9,5 +9,6 @@ payload['commits'].each do |commit| room.speak "[#{repository}/#{branch}] #{commit['message']} - #{commit['author']['name']} (#{commit['url']})" end + r...
Make sure we log out of the room before we try to logout of the service.
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 @@ -1,6 +1,6 @@ class EventsController < ApplicationController load_resource :find_by => :slug - load_and_autho...
Remove auth requirement for event archive
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb index abc1234..def5678 100644 --- a/app/controllers/groups_controller.rb +++ b/app/controllers/groups_controller.rb @@ -9,7 +9,7 @@ if emails && groupName emails.each do |email| user = User.find_by(email: email)...
Refactor group creation to refuse adding creator as a member
diff --git a/lib/poke/map.rb b/lib/poke/map.rb index abc1234..def5678 100644 --- a/lib/poke/map.rb +++ b/lib/poke/map.rb @@ -6,7 +6,7 @@ include Poke::ReadMap # Params required at initialization. - PARAMS_REQUIRED = {:map_file} + PARAMS_REQUIRED = [:map_file] # Creates a Map object. #
Fix PARAMS_REQUIRED const, should be an array, not a hash
diff --git a/libraries/s3.rb b/libraries/s3.rb index abc1234..def5678 100644 --- a/libraries/s3.rb +++ b/libraries/s3.rb @@ -14,7 +14,7 @@ def s3_obj require 'aws-sdk' - remote_path = new_resource.remote_path + remote_path = new_resource.remote_path.dup remote_path.sub!(%r{^/*}, ...
Resolve frozen string warning on Chef 13 Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
diff --git a/RMStore.podspec b/RMStore.podspec index abc1234..def5678 100644 --- a/RMStore.podspec +++ b/RMStore.podspec @@ -1,11 +1,11 @@ Pod::Spec.new do |s| s.name = "RMStore" - s.version = "0.2" + s.version = "0.3" s.license = "Apache 2.0" s.summary = "A lightweight iOS framew...
Fix podspec and increase version
diff --git a/spec/api_key_spec.rb b/spec/api_key_spec.rb index abc1234..def5678 100644 --- a/spec/api_key_spec.rb +++ b/spec/api_key_spec.rb @@ -10,19 +10,29 @@ describe APIKey do let( :apiKeyClass ) { APIKey } - it "sets the default key to nil" do - apiKeyClass.default_api_key.should be_nil + context "for th...
Add context to test cases.
diff --git a/test/minitest/fail_test.rb b/test/minitest/fail_test.rb index abc1234..def5678 100644 --- a/test/minitest/fail_test.rb +++ b/test/minitest/fail_test.rb @@ -0,0 +1,8 @@+require 'test_helper' + +class FailTest < ActiveSupport::TestCase + # uncomment if you would like to run failing test + #def test_failure...
Add fail test example for minitest
diff --git a/spec/lib/cuttlefish_smtp_server_spec.rb b/spec/lib/cuttlefish_smtp_server_spec.rb index abc1234..def5678 100644 --- a/spec/lib/cuttlefish_smtp_server_spec.rb +++ b/spec/lib/cuttlefish_smtp_server_spec.rb @@ -5,7 +5,9 @@ describe '#receive_message' do it 'can queue large messages' do connectio...
Patch up test that fails only on os x
diff --git a/korma.rb b/korma.rb index abc1234..def5678 100644 --- a/korma.rb +++ b/korma.rb @@ -24,11 +24,14 @@ def update(entity, columns, *predicates) binds = [] + column_sql = column_sql(columns, binds) where = predicates.any? ? ' WHERE ' : '' predicate_sql = column_sql(predicates, binds) ...
Use temp sql var to improve return val readability
diff --git a/features/step_definitions/cli_steps.rb b/features/step_definitions/cli_steps.rb index abc1234..def5678 100644 --- a/features/step_definitions/cli_steps.rb +++ b/features/step_definitions/cli_steps.rb @@ -36,3 +36,8 @@ # For some reason, Cucumber drops the last newline from every docstring... @output.s...
Add a step to verify progress with a pattern
diff --git a/ruby_event_store-rom/spec/rom/adapters/memory/relations/stream_entries_spec.rb b/ruby_event_store-rom/spec/rom/adapters/memory/relations/stream_entries_spec.rb index abc1234..def5678 100644 --- a/ruby_event_store-rom/spec/rom/adapters/memory/relations/stream_entries_spec.rb +++ b/ruby_event_store-rom/spec/...
Add tests for uniquness exceptions in Memory adapter
diff --git a/db/data_migration/20200716103130_redirect_sage_policy_groups_to_org_page.rb b/db/data_migration/20200716103130_redirect_sage_policy_groups_to_org_page.rb index abc1234..def5678 100644 --- a/db/data_migration/20200716103130_redirect_sage_policy_groups_to_org_page.rb +++ b/db/data_migration/20200716103130_re...
Add data migration to redirect SAGE policy groups to org page
diff --git a/app/presenters/download_state.rb b/app/presenters/download_state.rb index abc1234..def5678 100644 --- a/app/presenters/download_state.rb +++ b/app/presenters/download_state.rb @@ -3,9 +3,10 @@ class DownloadState < Presenter STANDARD_COLUMNS = [ - {label: "Name", method: :name}, - {label: "URI",...
Add date to CSV download
diff --git a/app/controllers/errors_controller.rb b/app/controllers/errors_controller.rb index abc1234..def5678 100644 --- a/app/controllers/errors_controller.rb +++ b/app/controllers/errors_controller.rb @@ -11,6 +11,7 @@ if Rails.application.config.whoopsie.enable report = params[:error_report] repo...
Add request headers to JS error report
diff --git a/app/controllers/photos_controller.rb b/app/controllers/photos_controller.rb index abc1234..def5678 100644 --- a/app/controllers/photos_controller.rb +++ b/app/controllers/photos_controller.rb @@ -1,4 +1,9 @@ class PhotosController < ApplicationController def create + @photo = Photo.new + @photo.ph...
Add the create method for uploading the photo and return the url of the photo to the form.
diff --git a/app/controllers/pusher_controller.rb b/app/controllers/pusher_controller.rb index abc1234..def5678 100644 --- a/app/controllers/pusher_controller.rb +++ b/app/controllers/pusher_controller.rb @@ -1,11 +1,31 @@ class PusherController < ApplicationController def groupauth - response = Pusher[params[:ch...
Add authentication of subscription to a channel in the Pusher Controller. This implements both presence channel authorization (used for the river) as well as private channel authorization (used for private messages).
diff --git a/app/controllers/review_controller.rb b/app/controllers/review_controller.rb index abc1234..def5678 100644 --- a/app/controllers/review_controller.rb +++ b/app/controllers/review_controller.rb @@ -5,11 +5,11 @@ # Once you are on the review dialog/page # all interaction with the web server is via th...
Fix [dashboard] button on review/show page
diff --git a/app/controllers/robots_controller.rb b/app/controllers/robots_controller.rb index abc1234..def5678 100644 --- a/app/controllers/robots_controller.rb +++ b/app/controllers/robots_controller.rb @@ -2,6 +2,7 @@ # == RobotsController # class RobotsController < ActionController::Base + skip_before_action :se...
Add skip_before_action to RobotsController to avoid unnecessary actions
diff --git a/app/controllers/static_controller.rb b/app/controllers/static_controller.rb index abc1234..def5678 100644 --- a/app/controllers/static_controller.rb +++ b/app/controllers/static_controller.rb @@ -1,4 +1,6 @@ class StaticController < ApplicationController + before_filter :require_user, :only => :follow + ...
Add a title variable for the static 'follow' page and make sure logged out users shouldn't be able to access it without logging in.
diff --git a/app/models/spree/refund_decorator.rb b/app/models/spree/refund_decorator.rb index abc1234..def5678 100644 --- a/app/models/spree/refund_decorator.rb +++ b/app/models/spree/refund_decorator.rb @@ -4,15 +4,13 @@ delegate :pos_refunded, to: :reimbursement def perform! - if reimbursement.presen...
Use guard clause instead of if else statement
diff --git a/test/integration/user_search_test.rb b/test/integration/user_search_test.rb index abc1234..def5678 100644 --- a/test/integration/user_search_test.rb +++ b/test/integration/user_search_test.rb @@ -20,4 +20,22 @@ assert page.has_content? @guide.title end + + test "selecting another user" do + @g...
Test viewing publications for another user.
diff --git a/arcanist.rb b/arcanist.rb index abc1234..def5678 100644 --- a/arcanist.rb +++ b/arcanist.rb @@ -3,11 +3,11 @@ class Arcanist < Formula resource "libphutil" do url "https://github.com/facebook/libphutil.git" - sha1 "" + sha256 "" end homepage "https://github.com/facebook/arcanist" hea...
Use `sha256` instead of `sha1` ``` Error: Invalid formula: /usr/local/Homebrew/Library/Taps/ryfow/homebrew-phabricator/arcanist.rb Calling Resource#sha1 is disabled! Use Resource#sha256 instead. ```
diff --git a/db/data_migration/20130705084817_fix_somali_embassy.rb b/db/data_migration/20130705084817_fix_somali_embassy.rb index abc1234..def5678 100644 --- a/db/data_migration/20130705084817_fix_somali_embassy.rb +++ b/db/data_migration/20130705084817_fix_somali_embassy.rb @@ -0,0 +1,5 @@+# WorldwideOrganisations ha...
Fix Somalian embassy slug correctly https://www.pivotaltracker.com/story/show/51980679
diff --git a/app/controllers/fluentd/settings/histories_controller.rb b/app/controllers/fluentd/settings/histories_controller.rb index abc1234..def5678 100644 --- a/app/controllers/fluentd/settings/histories_controller.rb +++ b/app/controllers/fluentd/settings/histories_controller.rb @@ -22,7 +22,7 @@ if @fluentd.a...
Revert "Ensure message as error" (logged_errors method is in the bug) This reverts commit 8571bb04ee46a0e26193fa6dfb5857813744ff89.
diff --git a/lib/generators/open_stax/rescue_from/install/templates/rescue_from.rb b/lib/generators/open_stax/rescue_from/install/templates/rescue_from.rb index abc1234..def5678 100644 --- a/lib/generators/open_stax/rescue_from/install/templates/rescue_from.rb +++ b/lib/generators/open_stax/rescue_from/install/template...
Fix the backwards asetting for raising exceptions
diff --git a/bosh-dev/lib/bosh/dev/tasks/bat.rake b/bosh-dev/lib/bosh/dev/tasks/bat.rake index abc1234..def5678 100644 --- a/bosh-dev/lib/bosh/dev/tasks/bat.rake +++ b/bosh-dev/lib/bosh/dev/tasks/bat.rake @@ -8,16 +8,17 @@ desc 'Run BAT tests' RSpec::Core::RakeTask.new(:bat) do |t| - cd 'bat' - t.pattern = %w[spec...
Use full path, working dir is not the project root on CI
diff --git a/test/mailers/unit_mail_test.rb b/test/mailers/unit_mail_test.rb index abc1234..def5678 100644 --- a/test/mailers/unit_mail_test.rb +++ b/test/mailers/unit_mail_test.rb @@ -18,4 +18,20 @@ assert_equal unit.active_projects.count + 1, ActionMailer::Base.deliveries.count end + def test_send_portfolio...
TEST: Check that portfolio ready comes from main convenor
diff --git a/db/migrate/20170630063557_register_functions_vector.rb b/db/migrate/20170630063557_register_functions_vector.rb index abc1234..def5678 100644 --- a/db/migrate/20170630063557_register_functions_vector.rb +++ b/db/migrate/20170630063557_register_functions_vector.rb @@ -5,7 +5,7 @@ command = "plugin_r...
Use pgroonga_command instead of pgroonga.command
diff --git a/core/lib/spree/testing_support/factories/zone_factory.rb b/core/lib/spree/testing_support/factories/zone_factory.rb index abc1234..def5678 100644 --- a/core/lib/spree/testing_support/factories/zone_factory.rb +++ b/core/lib/spree/testing_support/factories/zone_factory.rb @@ -13,5 +13,9 @@ factory :zone, ...
Add :with_country trait for Zone factory
diff --git a/ipsum.rb b/ipsum.rb index abc1234..def5678 100644 --- a/ipsum.rb +++ b/ipsum.rb @@ -5,7 +5,7 @@ require_relative 'headline.rb' class Ipsum - def text_paragraph(options={}) + def self.text_paragraph(options={}) paragraph = Paragraph.new( min_sentences: options[:min_sentences], ...
Use class methods in Ipsum class Also remove executable testing code.
diff --git a/test/integration/configuration/serverspec/localhost/configure_spec.rb b/test/integration/configuration/serverspec/localhost/configure_spec.rb index abc1234..def5678 100644 --- a/test/integration/configuration/serverspec/localhost/configure_spec.rb +++ b/test/integration/configuration/serverspec/localhost/c...
Remove init file requirement from configuration integration test
diff --git a/test/features/create_overheards_test.rb b/test/features/create_overheards_test.rb index abc1234..def5678 100644 --- a/test/features/create_overheards_test.rb +++ b/test/features/create_overheards_test.rb @@ -1,4 +1,5 @@ require_relative 'helper' + class TestCreateOverheards < FeatureTest def test_creat...
Test creating an invalid overheard Our test trys to create an overheard without a body. In this case, we want our user to stay on the same page and see a nice error message. Unfortunately, it looks like we redirect to "/" even if the user doesn't provide a body. How sad!
diff --git a/lib/plugins/extension_patches/lib/routing_extension.rb b/lib/plugins/extension_patches/lib/routing_extension.rb index abc1234..def5678 100644 --- a/lib/plugins/extension_patches/lib/routing_extension.rb +++ b/lib/plugins/extension_patches/lib/routing_extension.rb @@ -9,19 +9,9 @@ base.class_eval do ...
Revert "Revert "Backported change from radiant CMS to fix extension routes loading."" This reverts commit f7b4439ba38a2f67ef7509d014227f3070a766d4.
diff --git a/spec/support/capybara/custom_extensions.rb b/spec/support/capybara/custom_extensions.rb index abc1234..def5678 100644 --- a/spec/support/capybara/custom_extensions.rb +++ b/spec/support/capybara/custom_extensions.rb @@ -23,7 +23,7 @@ raise "Element still moving after #{checks} checks" if check == che...
Maintenance: Make login clue check Capybara system tests more robust in local environments.
diff --git a/Applications/projectb.rb b/Applications/projectb.rb index abc1234..def5678 100644 --- a/Applications/projectb.rb +++ b/Applications/projectb.rb @@ -6,7 +6,7 @@ cmake do option :BUILD_WITH_A, :BOOLEAN, desc: 'Build with A' - option :ProjectA_DIR, :PATH, cond: :BUILD_WITH_A, default: ProjectA.n...
Read the prefix of another project must be delayed
diff --git a/app/models/spree/bp_order_row.rb b/app/models/spree/bp_order_row.rb index abc1234..def5678 100644 --- a/app/models/spree/bp_order_row.rb +++ b/app/models/spree/bp_order_row.rb @@ -18,7 +18,7 @@ magnitude: @line_item.quantity }, rowValue: { - taxCode: 'T', + tax...
Use T4 taxCode by default
diff --git a/Casks/rstudio-preview.rb b/Casks/rstudio-preview.rb index abc1234..def5678 100644 --- a/Casks/rstudio-preview.rb +++ b/Casks/rstudio-preview.rb @@ -1,7 +1,7 @@ class RstudioPreview < Cask - url 'https://s3.amazonaws.com/rstudio-dailybuilds/RStudio-0.98.806.dmg' + url 'https://s3.amazonaws.com/rstudio-dai...
Update RStudio preview to version 0.98.932
diff --git a/test/sepa/banks/op/op_renew_cert_request_soap_builder_test.rb b/test/sepa/banks/op/op_renew_cert_request_soap_builder_test.rb index abc1234..def5678 100644 --- a/test/sepa/banks/op/op_renew_cert_request_soap_builder_test.rb +++ b/test/sepa/banks/op/op_renew_cert_request_soap_builder_test.rb @@ -0,0 +1,26 @...
Add OP renew cert soap test
diff --git a/spec/conversation_spec.rb b/spec/conversation_spec.rb index abc1234..def5678 100644 --- a/spec/conversation_spec.rb +++ b/spec/conversation_spec.rb @@ -10,18 +10,15 @@ context 'when clicking on the Outdated Diff Comments buttons' do it 'shows and hides the comments on the outdated diffs' do - ...
Fix outdated diff comments test It looks like GitHub now loads some of these outdated comments via AJAX and not on the initial page load.
diff --git a/stateful_enum.gemspec b/stateful_enum.gemspec index abc1234..def5678 100644 --- a/stateful_enum.gemspec +++ b/stateful_enum.gemspec @@ -24,4 +24,5 @@ spec.add_development_dependency "minitest", "~> 5.0" spec.add_development_dependency 'rails' spec.add_development_dependency 'sqlite3' + spec.add_de...
Add 'ruby-graphviz' gem to development_dependency When `bundle exec rake` to run tests locally, ruby-graphviz is needed. Sure `bundle exec rake test:all` ensures the gem is installed for all rails versions, but `bundle exec rake test` (the default task) fails without 'ruby-graphviz'.
diff --git a/spec/models/users_spec.rb b/spec/models/users_spec.rb index abc1234..def5678 100644 --- a/spec/models/users_spec.rb +++ b/spec/models/users_spec.rb @@ -4,7 +4,7 @@ describe "associations" do it { should have_many(:initiated_conversations).with_foreign_key 'initiator_id' } - it { should have_ma...
Fix typo in user model test
diff --git a/peddler.gemspec b/peddler.gemspec index abc1234..def5678 100644 --- a/peddler.gemspec +++ b/peddler.gemspec @@ -11,6 +11,7 @@ gem.homepage = 'http://github.com/hakanensari/peddler' gem.summary = %q{Wraps the Amazon MWS APIs} gem.description = %q{A Ruby interface to the Amazon MWS API} + gem...
Add license to gem spec
diff --git a/AmazeKit.podspec b/AmazeKit.podspec index abc1234..def5678 100644 --- a/AmazeKit.podspec +++ b/AmazeKit.podspec @@ -1,11 +1,11 @@ Pod::Spec.new do |s| s.name = 'AmazeKit' - s.version = '0.0.2' + s.version = '0.1.0' s.authors = {'Jeff Kelley' => 'SlaunchaMan@gmail.com'} s.license = 'Propr...
Correct version number in podspec file.
diff --git a/deadly_serious.gemspec b/deadly_serious.gemspec index abc1234..def5678 100644 --- a/deadly_serious.gemspec +++ b/deadly_serious.gemspec @@ -4,20 +4,22 @@ require 'deadly_serious/version' Gem::Specification.new do |spec| - spec.name = "deadly_serious" + spec.name = 'deadly_serious' ...
Add "json" gem as dependency
diff --git a/cookbooks/rails/recipes/databases.rb b/cookbooks/rails/recipes/databases.rb index abc1234..def5678 100644 --- a/cookbooks/rails/recipes/databases.rb +++ b/cookbooks/rails/recipes/databases.rb @@ -10,18 +10,18 @@ if app_info['database_info'] database_info = app_info['database_info'] + data...
Update database cookbook with correct database info.
diff --git a/spec/threasy/work_spec.rb b/spec/threasy/work_spec.rb index abc1234..def5678 100644 --- a/spec/threasy/work_spec.rb +++ b/spec/threasy/work_spec.rb @@ -6,6 +6,10 @@ end describe "#enqueue" do + it "should have a method for enqueing" do + expect(@work.respond_to?(:enqueue)).to be_true + en...
Add simple spec to test webhooks
diff --git a/modules/govuk_docker/spec/classes/govuk_docker_spec.rb b/modules/govuk_docker/spec/classes/govuk_docker_spec.rb index abc1234..def5678 100644 --- a/modules/govuk_docker/spec/classes/govuk_docker_spec.rb +++ b/modules/govuk_docker/spec/classes/govuk_docker_spec.rb @@ -0,0 +1,8 @@+require_relative '../../../...
Add basic compile tests for the new class.
diff --git a/config/schedule.rb b/config/schedule.rb index abc1234..def5678 100644 --- a/config/schedule.rb +++ b/config/schedule.rb @@ -21,3 +21,7 @@ rake 'clear_expired_sessions' rake 'clear_old_mappings_batches' end + +every :day, at: ['12:30am', '12:30pm'] do + rake 'import:hits:refresh_materialized' +end
Refresh materialized views twice a day * Why twice? Because it's relatively cheap and I don't like the thought of all hits, all-time being increasingly inaccurate as the day goes on (especially if traffic spikes are likely)
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index abc1234..def5678 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -6,20 +6,20 @@ def word_for_change(change) case change.downcase - when 'a' then return 'Added' - when '...
Remove returns from case statements git-svn-id: 00255c29502d8dc24a666882d37304e67b560e94@1520 8456e5f2-bb15-0410-bd20-b44782a1fb1e
diff --git a/lib/scrapescrobbler/listener.rb b/lib/scrapescrobbler/listener.rb index abc1234..def5678 100644 --- a/lib/scrapescrobbler/listener.rb +++ b/lib/scrapescrobbler/listener.rb @@ -45,7 +45,7 @@ end lastfm = Lastfm.new Config['api_key'], Config['api_secret'] - lastfm.session = Config['sessio...
Update session key management for lastfm 1.5.1.
diff --git a/lib/gui.rb b/lib/gui.rb index abc1234..def5678 100644 --- a/lib/gui.rb +++ b/lib/gui.rb @@ -0,0 +1,86 @@+require 'gosu' +require_relative 'world.rb' + +class GameOfLifeWindow < Gosu::Window + + def initialize(width=500, height=500) + @width = width + @height = height + super width, height, false ...
Add GUI for the game This uses Gosu library for ruby.
diff --git a/oboe.gemspec b/oboe.gemspec index abc1234..def5678 100644 --- a/oboe.gemspec +++ b/oboe.gemspec @@ -13,7 +13,7 @@ s.extra_rdoc_files = ["LICENSE"] s.files = `git ls-files`.split("\n") s.extensions = ['ext/oboe_metal/extconf.rb'] - s.test_files = Dir.glob("{spec}/**/*.rb") + s.test_file...
Update gemspec to include new test files.
diff --git a/test/linked_rails.rb b/test/linked_rails.rb index abc1234..def5678 100644 --- a/test/linked_rails.rb +++ b/test/linked_rails.rb @@ -17,6 +17,13 @@ rescue LoadError end +if defined?(Rails::Application) # Rails 3 + class TestApp < Rails::Application + config.root = File.join(File.dirname(__FILE__), "....
Make tests Rails 3 compatible.
diff --git a/APESuperHUD.podspec b/APESuperHUD.podspec index abc1234..def5678 100644 --- a/APESuperHUD.podspec +++ b/APESuperHUD.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "APESuperHUD" s.summary = "A simple way to display a HUD with a message or progress information in your applic...
Update pod spec with new version number
diff --git a/lib/rom.rb b/lib/rom.rb index abc1234..def5678 100644 --- a/lib/rom.rb +++ b/lib/rom.rb @@ -1,3 +1,4 @@+require 'descendants_tracker' require 'equalizer' require 'inflecto'
Revert "No need to require unused DescendantsTracker" It breaks the build because of missing ThreadSafe? Needs further investigation. This reverts commit 6565b89ea70b377981a0e19e98bedf989bbfb62e.
diff --git a/HSClusterMapView.podspec b/HSClusterMapView.podspec index abc1234..def5678 100644 --- a/HSClusterMapView.podspec +++ b/HSClusterMapView.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "HSClusterMapView" - s.version = "1.0.4" + s.version = "1.0.5" s.summary ...
Update .podspec for 1.0.5 release
diff --git a/providers/apt_repository.rb b/providers/apt_repository.rb index abc1234..def5678 100644 --- a/providers/apt_repository.rb +++ b/providers/apt_repository.rb @@ -27,7 +27,7 @@ mode "0644" variables( :name => name, - :config => new_resource.config.gsub(/^ */,''), + :config => new_res...
Remove trailing comma that fools Ruby 1.8 parser
diff --git a/Casks/mini-metro.rb b/Casks/mini-metro.rb index abc1234..def5678 100644 --- a/Casks/mini-metro.rb +++ b/Casks/mini-metro.rb @@ -1,7 +1,7 @@ class MiniMetro < Cask - url 'http://static.dinopoloclub.com/minimetro/builds/alpha9/MiniMetro-alpha9d-osx.zip' + url 'http://static.dinopoloclub.com/minimetro/build...
Update mini metro to Aplha 9e
diff --git a/Casks/slack-beta.rb b/Casks/slack-beta.rb index abc1234..def5678 100644 --- a/Casks/slack-beta.rb +++ b/Casks/slack-beta.rb @@ -1,8 +1,8 @@ class SlackBeta < Cask - version '0.60 (1700)' - sha256 '9245059fdad7914ec911eea121bcca5ccf716ea7b2fbeadc707e618692db89a1' + version '0.69 (2350)' + sha256 '7a6be7...
Upgrade Slack Beta to 0.69 (2350).
diff --git a/cookbooks/ruby/attributes/default.rb b/cookbooks/ruby/attributes/default.rb index abc1234..def5678 100644 --- a/cookbooks/ruby/attributes/default.rb +++ b/cookbooks/ruby/attributes/default.rb @@ -1,6 +1,6 @@-default[:ruby][:version] = if node[:lsb][:release].to_f < 20.04 - "2.5"...
Use ruby 3.0 on Ubuntu 22.04
diff --git a/lib/background_runner.rb b/lib/background_runner.rb index abc1234..def5678 100644 --- a/lib/background_runner.rb +++ b/lib/background_runner.rb @@ -29,7 +29,7 @@ # background jobs. def self.runner - BackgroundRunner.const_get Squash::Configuration.concurrency.background_runner.to_sym + Backg...
Fix load issue with background runners
diff --git a/Casks/sequel-pro-nightly.rb b/Casks/sequel-pro-nightly.rb index abc1234..def5678 100644 --- a/Casks/sequel-pro-nightly.rb +++ b/Casks/sequel-pro-nightly.rb @@ -1,8 +1,8 @@ cask :v1 => 'sequel-pro-nightly' do - version '4293' - sha256 '8d75ee4c5198de7bfde6a3fb5578812c1dbe13e08f6451dc219f31fc0d3ef722' + v...
Upgrade Sequel Pro.app from 0c2ea8b95e to f36c6eeb3a2
diff --git a/lib/botr/http/uri_ext.rb b/lib/botr/http/uri_ext.rb index abc1234..def5678 100644 --- a/lib/botr/http/uri_ext.rb +++ b/lib/botr/http/uri_ext.rb @@ -0,0 +1,28 @@+module URI + + # FIX: For some reason, the Bits on the Run API doesn't support the encoding + # of spaces to "+". As such, (ASCII space) will...
Patch URI to encode ASCII spaces as "%20".
diff --git a/templates/test_job.rb b/templates/test_job.rb index abc1234..def5678 100644 --- a/templates/test_job.rb +++ b/templates/test_job.rb @@ -1,4 +1,4 @@-# To queue with resque-scheduler: TestJob.wait(5.second).perform_later +# To queue with resque-scheduler: TestJob.wait(5.seconds).perform_later class TestJo...
Fix typo in test job
diff --git a/Formula/cfitsio.rb b/Formula/cfitsio.rb index abc1234..def5678 100644 --- a/Formula/cfitsio.rb +++ b/Formula/cfitsio.rb @@ -1,4 +1,10 @@ require 'formula' + +class CfitsioExamples < Formula + url 'http://heasarc.gsfc.nasa.gov/docs/software/fitsio/cexamples/cexamples.zip' + md5 '31a5f5622a111f25bee5a3fda2...
CFitsIO: Add option to install example programs Added the option --with-examples to the cfitsio formula, that downloads, compiles and installs some useful programs, like listhead, modhead, etc. Signed-off-by: Charlie Sharpsteen <828d338a9b04221c9cbe286f50cd389f68de4ecf@sharpsteen.net>
diff --git a/lib/octostar/services/new_project_saver.rb b/lib/octostar/services/new_project_saver.rb index abc1234..def5678 100644 --- a/lib/octostar/services/new_project_saver.rb +++ b/lib/octostar/services/new_project_saver.rb @@ -7,12 +7,11 @@ def call(id) account = account_repo.find_with_projects(id) pr...
Save all repos as a bulk
diff --git a/lib/vcr/cassette/serializers/compressed.rb b/lib/vcr/cassette/serializers/compressed.rb index abc1234..def5678 100644 --- a/lib/vcr/cassette/serializers/compressed.rb +++ b/lib/vcr/cassette/serializers/compressed.rb @@ -28,7 +28,7 @@ # @return [String] the compressed cassette data def seri...
Fix Zlib use to work under JRuby
diff --git a/lib/mymoip/validators.rb b/lib/mymoip/validators.rb index abc1234..def5678 100644 --- a/lib/mymoip/validators.rb +++ b/lib/mymoip/validators.rb @@ -3,12 +3,10 @@ private def valid_url?(url) - begin - uri = URI.parse(url) - uri.kind_of?(URI::HTTP) or uri.kind_of?(URI::HTTPS) - ...
Remove unnecessary block in url validator
diff --git a/test/test_jade-rails.rb b/test/test_jade-rails.rb index abc1234..def5678 100644 --- a/test/test_jade-rails.rb +++ b/test/test_jade-rails.rb @@ -16,4 +16,13 @@ assert_equal Jade.compile('string of jade'), Jade.compile(io) end + def test_compilation_error + assert_raise ExecJS::ProgramError do +...
Test Suite: Add test coverage for compilation errors.
diff --git a/test/unit/round_test.rb b/test/unit/round_test.rb index abc1234..def5678 100644 --- a/test/unit/round_test.rb +++ b/test/unit/round_test.rb @@ -26,4 +26,13 @@ assert_equal r2.url, r.url assert_equal r2.expire_time, r.expire_time end + + test "seconds_left returns time until round expires" do +...
Test Round.seconds_left returns time until round expires
diff --git a/lib/sass/plugin/rails.rb b/lib/sass/plugin/rails.rb index abc1234..def5678 100644 --- a/lib/sass/plugin/rails.rb +++ b/lib/sass/plugin/rails.rb @@ -12,7 +12,7 @@ if defined?(ActionController::Metal) # Rails >= 3.0 require 'sass/plugin/rack' - ActionController::Metal.use(Sass::Plugin::Rack) +...
[Sass] Load Sass::Plugin::Rack into Rails.configuration, not Metal in Rails 3. Closes gh-190
diff --git a/lib/specjour/db_scrub.rb b/lib/specjour/db_scrub.rb index abc1234..def5678 100644 --- a/lib/specjour/db_scrub.rb +++ b/lib/specjour/db_scrub.rb @@ -5,15 +5,10 @@ begin require 'rake' extend Rake::DSL if defined?(Rake::DSL) - if defined?(Rails) && Rails.version =~ /^3/ + if defin...
Drop Rails 2 support in DbScrub
diff --git a/lib/trello_newsletter.rb b/lib/trello_newsletter.rb index abc1234..def5678 100644 --- a/lib/trello_newsletter.rb +++ b/lib/trello_newsletter.rb @@ -1,5 +1,12 @@ require "trello_newsletter/version" +require "trello" -module TrelloNewsletter - # Your code goes here... +Trello.configure do |config| + conf...
Add trello configuration to gem This commit should print out all the boards you have in your account.
diff --git a/recipes/zookeeper_status.rb b/recipes/zookeeper_status.rb index abc1234..def5678 100644 --- a/recipes/zookeeper_status.rb +++ b/recipes/zookeeper_status.rb @@ -2,9 +2,19 @@ # Cookbook Name:: cerner_kafka # Recipe:: zookeeper_status - +<<-comment execute 'check zookeeper' do action :run command " ...
Change way to check Zookeeper service