diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/spec/integration/start_spec.rb b/spec/integration/start_spec.rb index abc1234..def5678 100644 --- a/spec/integration/start_spec.rb +++ b/spec/integration/start_spec.rb @@ -6,8 +6,8 @@ out = `#{command}` - expect(out).to include <<-OUT -\e[0mCommands: + expect(out).to eq(<<-OUT) +#{TTY::CLI.to...
Change to compare whole output
diff --git a/lib/vagrant-kvm/action/boot.rb b/lib/vagrant-kvm/action/boot.rb index abc1234..def5678 100644 --- a/lib/vagrant-kvm/action/boot.rb +++ b/lib/vagrant-kvm/action/boot.rb @@ -9,7 +9,7 @@ def call(env) @env = env - if @env[:machine].provider_config.gui + if @env[:machine]...
Allow resuming saved machine state when gui is enabled Attempting to resume a suspended (saved) machine would result in: ``` Call to virDomainUndefine failed: Requested operation is not valid: Refusing to undefine while domain managed save image exists (Libvirt::Error) ``` To mitigate this, do not attempt to modify ...
diff --git a/spec/object_queue_spec.rb b/spec/object_queue_spec.rb index abc1234..def5678 100644 --- a/spec/object_queue_spec.rb +++ b/spec/object_queue_spec.rb @@ -0,0 +1,75 @@+require "spec_helper" +require "save_queue/object_queue" + +describe SaveQueue::ObjectQueue do + let(:queue) { SaveQueue::ObjectQueue.new }...
Add specs for Queue. Split it to UniqQueue and ObjectQueue
diff --git a/spec/features/errors_spec.rb b/spec/features/errors_spec.rb index abc1234..def5678 100644 --- a/spec/features/errors_spec.rb +++ b/spec/features/errors_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -RSpec.feature 'Errors' do +RSpec.feature 'Controller Integration' do scenario 'rescue exceptions by ren...
Change name of errors spec
diff --git a/spec/view_helpers_spec.rb b/spec/view_helpers_spec.rb index abc1234..def5678 100644 --- a/spec/view_helpers_spec.rb +++ b/spec/view_helpers_spec.rb @@ -0,0 +1,51 @@+require 'rails_helper' +#require 'action_view' Necessary? + +module LoadMore + describe ActionView, type: :helper do + before(:all) do + ...
Add tests for view helper load_more_btn
diff --git a/lib/wakame/instance_counter.rb b/lib/wakame/instance_counter.rb index abc1234..def5678 100644 --- a/lib/wakame/instance_counter.rb +++ b/lib/wakame/instance_counter.rb @@ -0,0 +1,78 @@+module Wakame + class InstanceCounter + class OutOfLimitRangeError < StandardError; end + + include AttributeHe...
Split InstanceCounter class from service.rb.
diff --git a/spec/models/response_spec.rb b/spec/models/response_spec.rb index abc1234..def5678 100644 --- a/spec/models/response_spec.rb +++ b/spec/models/response_spec.rb @@ -1,12 +1,12 @@ require "spec_helper" describe Response do - it { should respond_to(:question) } - it { should respond_to(:survey) } - be...
Move before block of response spec to beginning
diff --git a/spec/support/factory_girl.rb b/spec/support/factory_girl.rb index abc1234..def5678 100644 --- a/spec/support/factory_girl.rb +++ b/spec/support/factory_girl.rb @@ -0,0 +1,14 @@+# RSpec +# spec/support/factory_girl.rb +RSpec.configure do |config| + config.include FactoryGirl::Syntax::Methods + + config.be...
Use FactoryGirl to lint all of the factories on startup
diff --git a/025-1000-digit-fibonacci-number/ruby-solution.rb b/025-1000-digit-fibonacci-number/ruby-solution.rb index abc1234..def5678 100644 --- a/025-1000-digit-fibonacci-number/ruby-solution.rb +++ b/025-1000-digit-fibonacci-number/ruby-solution.rb @@ -1,11 +1,7 @@-last_two = [1, 1] -fib_index = 2 +fibonacci = [1, ...
Refactor 25 in ruby for simplicity
diff --git a/Casks/vmware-fusion.rb b/Casks/vmware-fusion.rb index abc1234..def5678 100644 --- a/Casks/vmware-fusion.rb +++ b/Casks/vmware-fusion.rb @@ -1,6 +1,6 @@ cask :v1_1 => 'vmware-fusion' do - version '8.0.1-3094680' - sha256 'e16f66349ee136fd961550f73af243f1ffec63c17847b5f89b74c1cc77898ab4' + version '8.0.2-...
Upgrade VMware Fusion.app to v8.0.2-3164312
diff --git a/lib/nehm/playlist_control.rb b/lib/nehm/playlist_control.rb index abc1234..def5678 100644 --- a/lib/nehm/playlist_control.rb +++ b/lib/nehm/playlist_control.rb @@ -5,7 +5,7 @@ def self.set_playlist loop do - playlist = HighLine.new.ask('Enter name of default iTunes playlist to which you want ...
Edit message when set the iTunes playlist
diff --git a/app/views/projects/index.rss.builder b/app/views/projects/index.rss.builder index abc1234..def5678 100644 --- a/app/views/projects/index.rss.builder +++ b/app/views/projects/index.rss.builder @@ -1,5 +1,5 @@ rss_activity_feed :root_url => projects_url do |feed| for activity in @activities - feed.entr...
Solve RSS bug for activities without a target
diff --git a/recipes/install1.rb b/recipes/install1.rb index abc1234..def5678 100644 --- a/recipes/install1.rb +++ b/recipes/install1.rb @@ -0,0 +1,39 @@+# Install the helloworld application +# TODO: use app from wasdev + +application "HelloworldApp" do + + serverName = "Test1" + + path "/usr/local/helloworldApp" + r...
Add a recipe that shows how to use the application_wlp cookbook
diff --git a/spec/samin_spec.rb b/spec/samin_spec.rb index abc1234..def5678 100644 --- a/spec/samin_spec.rb +++ b/spec/samin_spec.rb @@ -2,6 +2,12 @@ describe Samin do subject { Samin.new } + let(:conf_base_name) { 'EUR' } + let(:conf_conversion_rates) {{ + 'USD' => 1.11, + 'Bitcoin' => 0.0047 + }} + ...
Set up initial variables that will be used accross different examples
diff --git a/mspec/lib/mspec/helpers/tmp.rb b/mspec/lib/mspec/helpers/tmp.rb index abc1234..def5678 100644 --- a/mspec/lib/mspec/helpers/tmp.rb +++ b/mspec/lib/mspec/helpers/tmp.rb @@ -15,7 +15,8 @@ ----------------------------------------------------- The rubyspec temp directory is not empty. Ensure that -all specs...
Print the path of SPEC_TEMP_DIR to be more helpful
diff --git a/lib/cuttlefish_log_daemon.rb b/lib/cuttlefish_log_daemon.rb index abc1234..def5678 100644 --- a/lib/cuttlefish_log_daemon.rb +++ b/lib/cuttlefish_log_daemon.rb @@ -11,6 +11,12 @@ if log_line && log_line.status == "hard_bounce" # We don't want to save duplicates ...
Add some debugging that is temporary for production
diff --git a/lib/dimples/configuration.rb b/lib/dimples/configuration.rb index abc1234..def5678 100644 --- a/lib/dimples/configuration.rb +++ b/lib/dimples/configuration.rb @@ -43,8 +43,8 @@ { post: 'post', category: 'category', - archives: 'archives', - date_archives: 'archives' +...
Change archives and date_archives layouts to the singular
diff --git a/lib/liftoff/commands/todo.rb b/lib/liftoff/commands/todo.rb index abc1234..def5678 100644 --- a/lib/liftoff/commands/todo.rb +++ b/lib/liftoff/commands/todo.rb @@ -1,6 +1,6 @@ TODO_WARNING_SCRIPT = <<WARNING KEYWORDS="TODO:|FIXME:|\\?\\?\\?:|\\!\\!\\!:" -find "${SRCROOT}" \\( -name "*.h" -or -name "*.m" \...
Update TODO script to ignore files in /Vendor Case insensitive
diff --git a/resources/exabgp.rb b/resources/exabgp.rb index abc1234..def5678 100644 --- a/resources/exabgp.rb +++ b/resources/exabgp.rb @@ -13,14 +13,14 @@ when :package package 'exabgp' do action :install - version new_resource.package_version unless new_resource.package_version.nil? + version...
Use property_is_set instead of a nil check
diff --git a/library/time/to_time_spec.rb b/library/time/to_time_spec.rb index abc1234..def5678 100644 --- a/library/time/to_time_spec.rb +++ b/library/time/to_time_spec.rb @@ -7,11 +7,11 @@ time = Time.new(2012, 2, 21, 10, 11, 12) with_timezone("America/Regina") do - time.to_time.should == time +...
Make sure the returned time is the same instance
diff --git a/test/integration/default/serverspec/localhost/application_spec.rb b/test/integration/default/serverspec/localhost/application_spec.rb index abc1234..def5678 100644 --- a/test/integration/default/serverspec/localhost/application_spec.rb +++ b/test/integration/default/serverspec/localhost/application_spec.rb...
Add serverspec tests for racktables::application.
diff --git a/tasks/metrics/mutant.rake b/tasks/metrics/mutant.rake index abc1234..def5678 100644 --- a/tasks/metrics/mutant.rake +++ b/tasks/metrics/mutant.rake @@ -9,7 +9,7 @@ project = Devtools.project config = project.mutant cmd = %[mutant -r ./spec/spec_helper.rb "::#{config.namespace}" --rspec...
Remove unnecessary parenthesis from exception
diff --git a/app/controllers/api/ims_imports_controller.rb b/app/controllers/api/ims_imports_controller.rb index abc1234..def5678 100644 --- a/app/controllers/api/ims_imports_controller.rb +++ b/app/controllers/api/ims_imports_controller.rb @@ -2,8 +2,11 @@ include Concerns::CanvasImsccSupport def create - if...
Verify ims import data params separately
diff --git a/config/initializers/constants.rb b/config/initializers/constants.rb index abc1234..def5678 100644 --- a/config/initializers/constants.rb +++ b/config/initializers/constants.rb @@ -3,4 +3,4 @@ GIT_BIN = "git" RAKE_BIN = "rake" REDIS_NAMESPACE = "rails-assets" -DATA_DIR = ENV["DATA_DIR"] || File.expand_pat...
Change default data dir to public (dev)
diff --git a/app/overrides/remove_searchbar_from_header.rb b/app/overrides/remove_searchbar_from_header.rb index abc1234..def5678 100644 --- a/app/overrides/remove_searchbar_from_header.rb +++ b/app/overrides/remove_searchbar_from_header.rb @@ -1,4 +1,5 @@ Deface::Override.new(:virtual_path => 'spree/shared/_nav_bar', ...
Remove login links from header first.
diff --git a/lib/stairs/steps/balanced.rb b/lib/stairs/steps/balanced.rb index abc1234..def5678 100644 --- a/lib/stairs/steps/balanced.rb +++ b/lib/stairs/steps/balanced.rb @@ -4,6 +4,7 @@ module Steps class Balanced < Step title "Balanced Payments" + description "Creates a test Marketplace on Balanc...
Add description to Balanced step
diff --git a/lib/will_paginate/mongoid.rb b/lib/will_paginate/mongoid.rb index abc1234..def5678 100644 --- a/lib/will_paginate/mongoid.rb +++ b/lib/will_paginate/mongoid.rb @@ -13,7 +13,11 @@ end def per_page(value = :non_given) - value == :non_given ? options[:limit] : limit(value) + if va...
Fix broken spec on latest version of Mongoid. In new versions of Mongoid setting a limit to nil actually sets the limit to 0, which behaves the same as nil. So if the limit is 0 in #per_page we make sure to return nil.
diff --git a/spec/lib/zendesk_tab_spec.rb b/spec/lib/zendesk_tab_spec.rb index abc1234..def5678 100644 --- a/spec/lib/zendesk_tab_spec.rb +++ b/spec/lib/zendesk_tab_spec.rb @@ -24,8 +24,8 @@ it 'has a wrapper element' do expect(subject).to have_tag('div#feedback-tab') end - it 'embeds...
Remove the test requirement for an image
diff --git a/spec/saxon/processor_spec.rb b/spec/saxon/processor_spec.rb index abc1234..def5678 100644 --- a/spec/saxon/processor_spec.rb +++ b/spec/saxon/processor_spec.rb @@ -10,6 +10,6 @@ end it "can make a new XML instance" do - expect(processor.XML(xsl_file)).to respond_to(:getNodeKind) + expect(proce...
Use JRuby's rubyised method names
diff --git a/spec/support/email_helper.rb b/spec/support/email_helper.rb index abc1234..def5678 100644 --- a/spec/support/email_helper.rb +++ b/spec/support/email_helper.rb @@ -5,7 +5,7 @@ # It's here in a single place to allow an easy upgrade to Spree 2 which # needs a different implementation of this method....
Update test mail setup for Spree 2 https://github.com/openfoodfoundation/openfoodnetwork/issues/2882 The email setup differs between Spree 1 and Spree 2. We already encapsulated that setup in a single method which now needed changing.
diff --git a/config/initializers/car_cost_tool.rb b/config/initializers/car_cost_tool.rb index abc1234..def5678 100644 --- a/config/initializers/car_cost_tool.rb +++ b/config/initializers/car_cost_tool.rb @@ -4,5 +4,6 @@ 'DOMAIN' => ENV['CAR_COST_TOOL_DOMAIN'], 'CAP_SUBSCRIBER_ID' => ENV['CAR_COST_T...
Allow failover passsword for CAP (Car Cost)
diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index abc1234..def5678 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -1,3 +1,3 @@ # Be sure to restart your server when you modify this file. -ExampleApp::Application.config.sessi...
Use cache store for cookies
diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index abc1234..def5678 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -1,6 +1,9 @@ # Be sure to restart your server when you modify this file. -NeedOTron::Application.config.sessio...
Set cookies to only be served over https and to be http only
diff --git a/app/notifiers/following_activity_notifier.rb b/app/notifiers/following_activity_notifier.rb index abc1234..def5678 100644 --- a/app/notifiers/following_activity_notifier.rb +++ b/app/notifiers/following_activity_notifier.rb @@ -3,7 +3,7 @@ def self.deliver(following) a = Activity.find_or_initialize_...
Change activity title for followings
diff --git a/sauce_whisk.gemspec b/sauce_whisk.gemspec index abc1234..def5678 100644 --- a/sauce_whisk.gemspec +++ b/sauce_whisk.gemspec @@ -17,6 +17,8 @@ gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) gem.require_paths = ["lib"] + gem.license = "MIT" + gem.add_runtime_dependency "r...
Add licencing details to gemspec.
diff --git a/lib/facter/buzzdeee_rubysuffix.rb b/lib/facter/buzzdeee_rubysuffix.rb index abc1234..def5678 100644 --- a/lib/facter/buzzdeee_rubysuffix.rb +++ b/lib/facter/buzzdeee_rubysuffix.rb @@ -0,0 +1,10 @@+# + +Facter.add(:rubysuffix) do + confine :kernel => [ 'OpenBSD' ] + setcode do + version = Facter.value...
Add a fact called rubysuffix
diff --git a/exercises/concept/basics/lasagna.rb b/exercises/concept/basics/lasagna.rb index abc1234..def5678 100644 --- a/exercises/concept/basics/lasagna.rb +++ b/exercises/concept/basics/lasagna.rb @@ -3,8 +3,8 @@ raise NotImplementedError, 'Please implement the remaining_minutes_in_oven method' end - def ...
Fix typo in function name
diff --git a/test/rails_test_helper.rb b/test/rails_test_helper.rb index abc1234..def5678 100644 --- a/test/rails_test_helper.rb +++ b/test/rails_test_helper.rb @@ -15,6 +15,12 @@ require 'facebooker/rails/publisher' require 'facebooker/rails/facebook_form_builder' +if Rails.version > '2.3' + include Test::Unit::As...
Fix many 2.3.2 specs by including assertion modules
diff --git a/test/vagrant_list_test.rb b/test/vagrant_list_test.rb index abc1234..def5678 100644 --- a/test/vagrant_list_test.rb +++ b/test/vagrant_list_test.rb @@ -0,0 +1,18 @@+require 'test/unit' +require 'vagrant-list' + +class VagrantListTest < Test::Unit::TestCase + + def test_virtual_machine_present + + end + +...
Add test stubs - currently unsure as to how to test the CLI command
diff --git a/test/basic.rb b/test/basic.rb index abc1234..def5678 100644 --- a/test/basic.rb +++ b/test/basic.rb @@ -7,9 +7,6 @@ end class BrokenState < BfsBruteForce::State - def solved? - false - end end class TestBasic < Minitest::Test @@ -30,7 +27,7 @@ assert_raises(NotImplementedError) {state.next_...
Increase to 100% test coverage
diff --git a/script/htmlproof.rb b/script/htmlproof.rb index abc1234..def5678 100644 --- a/script/htmlproof.rb +++ b/script/htmlproof.rb @@ -13,5 +13,9 @@ :typhoeus => { :timeout => 15, # seconds }, - :verbose => true, + :url_ignore => [ + # html-proofer removes the end slash; + # this site will return 500 if t...
Remove script-tutorials.com from link checks
diff --git a/beachball.gemspec b/beachball.gemspec index abc1234..def5678 100644 --- a/beachball.gemspec +++ b/beachball.gemspec @@ -10,16 +10,8 @@ spec.email = ["isaac@thewilliams.ws"] spec.summary = %q{An small pinwheel, rotating infinitely in the blackness of space despite the absence of air} - ...
Allow public gem pushes to RubyGems
diff --git a/config/initializers/apipie.rb b/config/initializers/apipie.rb index abc1234..def5678 100644 --- a/config/initializers/apipie.rb +++ b/config/initializers/apipie.rb @@ -1,7 +1,7 @@ Apipie.configure do |config| config.app_name = "AACT 2 API" config.api_base_url = "/api" - con...
Change api docs base url.
diff --git a/config/software/spawn-fcgi.rb b/config/software/spawn-fcgi.rb index abc1234..def5678 100644 --- a/config/software/spawn-fcgi.rb +++ b/config/software/spawn-fcgi.rb @@ -31,6 +31,6 @@ command "./configure" \ " --prefix=#{install_dir}/embedded", env: env - command "make -j #{max_build_jobs}", ...
Use `make` instead of `command` in spawn-fgci
diff --git a/db/data_migration/20161010105438_update_worldwide_organisation_british_consulate_sylhet_slug.rb b/db/data_migration/20161010105438_update_worldwide_organisation_british_consulate_sylhet_slug.rb index abc1234..def5678 100644 --- a/db/data_migration/20161010105438_update_worldwide_organisation_british_consul...
Update slug for British Consulate Sylhet Part of https://trello.com/c/4p0ojDbC/494-september-redirects-medium `WorldwideOrganisation` implements `PublishesToPublishingApi` which will automatically republish and create the appropriate redirects, so this should be sufficient.
diff --git a/app/helpers/custom_bigbluebutton_rooms_helper.rb b/app/helpers/custom_bigbluebutton_rooms_helper.rb index abc1234..def5678 100644 --- a/app/helpers/custom_bigbluebutton_rooms_helper.rb +++ b/app/helpers/custom_bigbluebutton_rooms_helper.rb @@ -3,7 +3,7 @@ module CustomBigbluebuttonRoomsHelper def mobi...
Update the URL to the new android mobile client
diff --git a/app/policies/project_inherited_policy_helpers.rb b/app/policies/project_inherited_policy_helpers.rb index abc1234..def5678 100644 --- a/app/policies/project_inherited_policy_helpers.rb +++ b/app/policies/project_inherited_policy_helpers.rb @@ -6,4 +6,9 @@ def destroy? create? end + + # This meth...
Revert "Remove outdated comment and related code" This reverts commit 2aba0d62b480657bfbf2571f23b2c309d3e20566.
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 @@ -28,9 +28,10 @@ def update @user = User.new(user_params) - if @user.save + if @user.update(params[:us...
Add error for failed update request
diff --git a/test/factories/team_members.rb b/test/factories/team_members.rb index abc1234..def5678 100644 --- a/test/factories/team_members.rb +++ b/test/factories/team_members.rb @@ -3,6 +3,7 @@ FactoryBot.define do factory :team_member do event + display { true } after(:build) do |team_member| ...
Set more reasonable defaults for team members in test
diff --git a/db/migrate/20150916095528_add_content_id_to_publisher_documents.rb b/db/migrate/20150916095528_add_content_id_to_publisher_documents.rb index abc1234..def5678 100644 --- a/db/migrate/20150916095528_add_content_id_to_publisher_documents.rb +++ b/db/migrate/20150916095528_add_content_id_to_publisher_document...
Set content_id for all publisher's artefacts Artefacts belonging to the publisher application are created in panopticon. We are adding `content_ids` to each artefact on creation. This migration adds them wherever they're missing. Uses the atomic `Artefact#set` to prevent callbacks, validations and observers from firi...
diff --git a/test/unit/asset_bundle_test.rb b/test/unit/asset_bundle_test.rb index abc1234..def5678 100644 --- a/test/unit/asset_bundle_test.rb +++ b/test/unit/asset_bundle_test.rb @@ -6,11 +6,30 @@ def test_raise_exception_if_bundle_command_fails capture_io do with_env('JEKYLL_MINIBUNDLE_CMD_JS' =>...
Add tests for other failures when executing bundling command
diff --git a/spec/dummy/db/seeds/modalities/rabbit.rb b/spec/dummy/db/seeds/modalities/rabbit.rb index abc1234..def5678 100644 --- a/spec/dummy/db/seeds/modalities/rabbit.rb +++ b/spec/dummy/db/seeds/modalities/rabbit.rb @@ -3,14 +3,21 @@ rabbit = Patient.find_by(family_name: "RABBIT", given_name: "Roger") f...
Terminate Rabbit current_modality if present before seeding more
diff --git a/spec/lib/tasks/evm_export_import_spec.rb b/spec/lib/tasks/evm_export_import_spec.rb index abc1234..def5678 100644 --- a/spec/lib/tasks/evm_export_import_spec.rb +++ b/spec/lib/tasks/evm_export_import_spec.rb @@ -0,0 +1,29 @@+require 'rake' + +describe 'evm_export_import' do + let(:task_path) {'lib/tasks/e...
Add test to ensure rake script setup correctly
diff --git a/spec/suites/rspec/functional/dsl_spec.rb b/spec/suites/rspec/functional/dsl_spec.rb index abc1234..def5678 100644 --- a/spec/suites/rspec/functional/dsl_spec.rb +++ b/spec/suites/rspec/functional/dsl_spec.rb @@ -12,7 +12,7 @@ expect(subject).to have_received.foobar(1, 2) expect { expe...
Fix obsolete reference to RSpec-1 in a test
diff --git a/spec/site_spec.rb b/spec/site_spec.rb index abc1234..def5678 100644 --- a/spec/site_spec.rb +++ b/spec/site_spec.rb @@ -32,6 +32,6 @@ files << File.basename(file) end - expect(files).to eq(["a.jpg", "b.jpg", "c.jpg"]) + expect(files.sort).to eq(["a.jpg", "b.jpg", "c.jpg"]) end end
Sort the files list in the asset copying before comparing.
diff --git a/spec/uuid_spec.rb b/spec/uuid_spec.rb index abc1234..def5678 100644 --- a/spec/uuid_spec.rb +++ b/spec/uuid_spec.rb @@ -16,7 +16,9 @@ it "should instantiate from a Time object" do ts = Time.new - UUID.new(ts).to_time.should eq(ts) + # Nanosecond precision is available on some platforms but n...
Modify uuid test to account for nanosecond precision on some platforms
diff --git a/db/migrate/20090505233940_create_accounts.rb b/db/migrate/20090505233940_create_accounts.rb index abc1234..def5678 100644 --- a/db/migrate/20090505233940_create_accounts.rb +++ b/db/migrate/20090505233940_create_accounts.rb @@ -24,6 +24,8 @@ add_index :accounts, :email, :unique => true ...
Fix case sensitivy bug on logins
diff --git a/test/test_build_source_gem.rb b/test/test_build_source_gem.rb index abc1234..def5678 100644 --- a/test/test_build_source_gem.rb +++ b/test/test_build_source_gem.rb @@ -0,0 +1,9 @@+require 'minitest/autorun' + +class TestBuildSourceGem < MiniTest::Test + def test_build_latest_source_gem + version = File...
Test building latest source gem
diff --git a/lib/postgresql_cursor/active_record/connection_adapters/postgresql_type_map.rb b/lib/postgresql_cursor/active_record/connection_adapters/postgresql_type_map.rb index abc1234..def5678 100644 --- a/lib/postgresql_cursor/active_record/connection_adapters/postgresql_type_map.rb +++ b/lib/postgresql_cursor/acti...
Use ActiveRecord version instead of Rails' ...So this will work in non-Rails apps
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 @@ -3,6 +3,11 @@ require File.expand_path("../dummy/config/environment", __FILE__) require 'rspec/rails' + +ActiveRecord::Migrator.migrations_paths = ActiveRecord::Tasks::DatabaseT...
Reset the DB before running specs
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 @@ -11,5 +11,5 @@ end def path_prefix - /darwin/ =~ RUBY_PLATFORM ? '/private' : nil + /darwin/ =~ RUBY_PLATFORM ? '/private' : '' end
Return empty string rather than nil for path prefix
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,3 +1,6 @@+require 'simplecov' +SimpleCov.start + $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'homesi...
Set up simplecov (it was in the Gemfile before, but it wasn't actually used)
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 @@ -20,6 +20,7 @@ config.order = 'random' config.before(:suite) do + DatabaseCleaner[:sequel, {:connection => DB}] DatabaseCleaner.strategy = :transaction Database...
Set default connection for DatabaseCleaner
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 @@ -3,7 +3,9 @@ require 'database_cleaner' current_path = File.dirname(__FILE__) -Dir[File.join(current_path, 'support/**/*.rb')].each { |f| require f } +SPEC_MODELS_PATH = File.jo...
Add spec model reloading when using mutant
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 @@ -30,7 +30,6 @@ require 'docile' require 'singleton' -require 'rspec' RSpec.configure do |config| config.expect_with :rspec do |c|
Remove explicit require of rspec to fix builds Not sure why this works, or is even possible? But I can reproduce locally that all non-1.8 builds fail when using a bundler cache unless this line is removed. My guess is that, when using the --path option to bundler, all gems are being implicitly required, and requiring...
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,4 +1,5 @@ $LOAD_PATH.unshift(File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib]))) +ENV["PATH"] = [File.expand_path(File.join(File.dirname(__FILE__), %w[.. bin])), EN...
Test the local nom script, rather than the system installed one
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,7 +7,7 @@ def columns(*cols) return super if cols.empty? define_method(:columns){cols} - @dataset.instance_variable_set(:@columns, cols) if @dataset + @dataset...
Fix spec for Sequel > 5.1
diff --git a/src/watir_robot_gui/worker/run_button.rb b/src/watir_robot_gui/worker/run_button.rb index abc1234..def5678 100644 --- a/src/watir_robot_gui/worker/run_button.rb +++ b/src/watir_robot_gui/worker/run_button.rb @@ -7,6 +7,7 @@ def doInBackground self.status_bar.text = "Running tests. Wait unt...
Fix slashes and spacing issue for system call for Run worker thread
diff --git a/deploy_website.rb b/deploy_website.rb index abc1234..def5678 100644 --- a/deploy_website.rb +++ b/deploy_website.rb @@ -0,0 +1,38 @@+#!/usr/bin/env ruby + +require 'fileutils' +extend FileUtils + +REPO='git@github.com:beyama/winter.git' +GROUP_ID = 'io.jentz.winter' +DIR = 'tmp_clone' + +rm_rf DIR +`git cl...
Add java doc deploy script
diff --git a/lib/api_helper.rb b/lib/api_helper.rb index abc1234..def5678 100644 --- a/lib/api_helper.rb +++ b/lib/api_helper.rb @@ -20,7 +20,7 @@ private def do_request(type, resource, additional_headers = nil, body = nil) - http = EventMachine::HttpRequest.new(resource) + http = EventMachine::HttpRequest...
Increase API connection timeout time
diff --git a/lib/serverspec.rb b/lib/serverspec.rb index abc1234..def5678 100644 --- a/lib/serverspec.rb +++ b/lib/serverspec.rb @@ -12,23 +12,19 @@ module RSpec::Core::Notifications class FailedExampleNotification < ExampleNotification - def message_lines - @lines ||= + def failure_lines + @failur...
Fix how to override failure message
diff --git a/lib/cassandra.rb b/lib/cassandra.rb index abc1234..def5678 100644 --- a/lib/cassandra.rb +++ b/lib/cassandra.rb @@ -8,7 +8,7 @@ here = File.expand_path(File.dirname(__FILE__)) class Cassandra ; end -unless Cassandra.methods.include?("VERSION") +unless Cassandra.respond_to?(:VERSION) require "#{here}/...
Change how version is detected for Ruby 1.9 compat
diff --git a/spec/unit/resources/hypervisor_cluster_profile/delete_cluster_spec.rb b/spec/unit/resources/hypervisor_cluster_profile/delete_cluster_spec.rb index abc1234..def5678 100644 --- a/spec/unit/resources/hypervisor_cluster_profile/delete_cluster_spec.rb +++ b/spec/unit/resources/hypervisor_cluster_profile/delete...
Change module path for UT
diff --git a/diversity.gemspec b/diversity.gemspec index abc1234..def5678 100644 --- a/diversity.gemspec +++ b/diversity.gemspec @@ -20,6 +20,7 @@ s.add_development_dependency('bacon') s.add_development_dependency('coveralls') s.add_development_dependency('rake') + s.add_development_dependency('reek') s.add...
Add reek as a development dependency
diff --git a/test/test_start.rb b/test/test_start.rb index abc1234..def5678 100644 --- a/test/test_start.rb +++ b/test/test_start.rb @@ -0,0 +1,20 @@+require 'common' + +class StartTest < Net::SFTP::TestCase + def test_with_block + ssh = mock('ssh') + ssh.expects(:close) + Net::SSH.expects(:start).with('host'...
Add half-baked test for Net::SFTP.start
diff --git a/lib/ravelin/checkout_transaction.rb b/lib/ravelin/checkout_transaction.rb index abc1234..def5678 100644 --- a/lib/ravelin/checkout_transaction.rb +++ b/lib/ravelin/checkout_transaction.rb @@ -20,5 +20,15 @@ :three_d_secure attr_required :transaction_id, :currency, :debit, :credit +...
Apply 3ds rename to checkout transaction
diff --git a/lib/tasks/sample_data/addressing.rb b/lib/tasks/sample_data/addressing.rb index abc1234..def5678 100644 --- a/lib/tasks/sample_data/addressing.rb +++ b/lib/tasks/sample_data/addressing.rb @@ -14,7 +14,7 @@ end def zone - zone = Spree::Zone.find_or_create_by_name!("Australia") + zone = Spree::Z...
Make sample data zone read from the environment variable CHECKOUT_ZONE
diff --git a/lib/hem/setup.rb b/lib/hem/setup.rb index abc1234..def5678 100644 --- a/lib/hem/setup.rb +++ b/lib/hem/setup.rb @@ -2,6 +2,5 @@ require_relative 'version' require_relative 'plugins' -Hem::Plugins.new(__dir__, '.noGemfile', false).define do - gem 'hem', Hem::VERSION, :path => File.expand_path(File.join(...
Remove Hem bundler self reference The use of Bundler is having trouble requiring multiple separate definitions
diff --git a/react-native-appsflyer.podspec b/react-native-appsflyer.podspec index abc1234..def5678 100644 --- a/react-native-appsflyer.podspec +++ b/react-native-appsflyer.podspec @@ -13,4 +13,5 @@ s.source_files = 'ios/**/*.{h,m}' s.platform = :ios, "8.0" s.dependency 'AppsFlyerFramework', '~> 4.8.4' + s...
Add React as a dependency on the PodFile
diff --git a/lib/opal/util.rb b/lib/opal/util.rb index abc1234..def5678 100644 --- a/lib/opal/util.rb +++ b/lib/opal/util.rb @@ -2,26 +2,34 @@ module Util extend self + def null + if (/mswin|mingw/ =~ RUBY_PLATFORM).nil? + '/dev/null' + else + 'nul' + end + end + # Used ...
Fix Util module to work on Windows
diff --git a/lib/simplemvc.rb b/lib/simplemvc.rb index abc1234..def5678 100644 --- a/lib/simplemvc.rb +++ b/lib/simplemvc.rb @@ -3,6 +3,8 @@ module Simplemvc class Application def call(env) + return [ 302, { "Location" => "/pages/about" }, [] ] if env["PATH_INFO"] == "/" + return [ 500, {}, []] if env...
Implement root redirect and favicon path base case
diff --git a/spec/helpers/application_helper/buttons/generic_feature_button_with_disable_spec.rb b/spec/helpers/application_helper/buttons/generic_feature_button_with_disable_spec.rb index abc1234..def5678 100644 --- a/spec/helpers/application_helper/buttons/generic_feature_button_with_disable_spec.rb +++ b/spec/helper...
Add spec for Generic Button with Disable
diff --git a/lib/cocoapods/executable.rb b/lib/cocoapods/executable.rb index abc1234..def5678 100644 --- a/lib/cocoapods/executable.rb +++ b/lib/cocoapods/executable.rb @@ -33,7 +33,7 @@ end status = Open4.spawn(full_command, :stdout => stdout, :stderr => stderr, :status => true) # TODO not su...
[Executable] Indent warning if command fails.
diff --git a/test/models/category_test.rb b/test/models/category_test.rb index abc1234..def5678 100644 --- a/test/models/category_test.rb +++ b/test/models/category_test.rb @@ -22,9 +22,7 @@ categories = Category.all.includes(children: :child).to_a.index_by(&:id) tree_to_array(Category.get_tree).each do |node|...
Refactor 'Category tree nodes should match category relationships' test Substitue assert with assert_equal and remove message
diff --git a/lib/swow/error.rb b/lib/swow/error.rb index abc1234..def5678 100644 --- a/lib/swow/error.rb +++ b/lib/swow/error.rb @@ -17,8 +17,6 @@ def reason @response[:body]['reason'] end - - private def self.nok?(response) response[:body].respond_to?(:each_key) && response...
Remove unnecessary private access modifier
diff --git a/lib/turbolinks.rb b/lib/turbolinks.rb index abc1234..def5678 100644 --- a/lib/turbolinks.rb +++ b/lib/turbolinks.rb @@ -14,9 +14,7 @@ before_filter :set_xhr_redirected_to, :set_request_method_cookie after_filter :abort_xdomain_redirect end - end - ActiveSupport.on_...
Use the action_controller hook for overriding the referer method because there is no action_dispatch hook
diff --git a/messaging.gemspec b/messaging.gemspec index abc1234..def5678 100644 --- a/messaging.gemspec +++ b/messaging.gemspec @@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = 'evt-messaging' - s.version = '0.27.0.1' + s.version = '0.28.0.0' s.summary = 'Common primitives for ...
Package version is increased from 0.27.0.1 to 0.28.0.0
diff --git a/metamodel.gemspec b/metamodel.gemspec index abc1234..def5678 100644 --- a/metamodel.gemspec +++ b/metamodel.gemspec @@ -17,5 +17,11 @@ s.description = "Not desc for now." s.files = Dir["lib/**/*.rb"] + + s.add_runtime_dependency 'claide', '>= 1.0.0', '< 2.0' + s.add_runtime_dependen...
Add development dependencies to gemsepc
diff --git a/db/migrate/20171102154400_change_column_type_to_payment_method_zahlen_charge.rb b/db/migrate/20171102154400_change_column_type_to_payment_method_zahlen_charge.rb index abc1234..def5678 100644 --- a/db/migrate/20171102154400_change_column_type_to_payment_method_zahlen_charge.rb +++ b/db/migrate/201711021544...
Add migration to update enum values of payment method
diff --git a/bosh-director/db/migrations/director/20151229184742_add_vm_attributes_to_instance.rb b/bosh-director/db/migrations/director/20151229184742_add_vm_attributes_to_instance.rb index abc1234..def5678 100644 --- a/bosh-director/db/migrations/director/20151229184742_add_vm_attributes_to_instance.rb +++ b/bosh-dir...
Fix vm to instance migration Signed-off-by: Maria Shaldibina <dc03896a0185453e5852a5e0f0fab6cbd2e026ff@pivotal.io>
diff --git a/lib/infinity_test/observer/watchr.rb b/lib/infinity_test/observer/watchr.rb index abc1234..def5678 100644 --- a/lib/infinity_test/observer/watchr.rb +++ b/lib/infinity_test/observer/watchr.rb @@ -10,7 +10,7 @@ # ==== Examples # - # watch('lib/(.*)\.rb') { |match_data| system("ruby tes...
Add more example docs to watcher class.
diff --git a/lib/net/ldap/auth_adapters/simple.rb b/lib/net/ldap/auth_adapters/simple.rb index abc1234..def5678 100644 --- a/lib/net/ldap/auth_adapters/simple.rb +++ b/lib/net/ldap/auth_adapters/simple.rb @@ -1,3 +1,5 @@+require 'net/ldap/auth_adapter' + module Net class LDAP module AuthAdapters
Fix uninitialized constant error by adding require statement
diff --git a/lib/rack/switchboard/store_loader.rb b/lib/rack/switchboard/store_loader.rb index abc1234..def5678 100644 --- a/lib/rack/switchboard/store_loader.rb +++ b/lib/rack/switchboard/store_loader.rb @@ -3,7 +3,7 @@ module StoreLoader protected def create_store(options = :memory) - con...
Fix issue with modifying shared shared options hash
diff --git a/lib/roadmapster/wizeline/base_api.rb b/lib/roadmapster/wizeline/base_api.rb index abc1234..def5678 100644 --- a/lib/roadmapster/wizeline/base_api.rb +++ b/lib/roadmapster/wizeline/base_api.rb @@ -18,10 +18,20 @@ ) end + def post(resource, payload, **options) + @resource_options...
Add support for POST operations to base mixin
diff --git a/lib/sparql/algebra/operator/graph.rb b/lib/sparql/algebra/operator/graph.rb index abc1234..def5678 100644 --- a/lib/sparql/algebra/operator/graph.rb +++ b/lib/sparql/algebra/operator/graph.rb @@ -3,42 +3,17 @@ ## # The SPARQL GraphPattern `graph` operator. # + # This is basically a wrapper...
Change Operator::Graph to just have a .new class method to add the context to the bgp operator.
diff --git a/spec/api_classes/event_spec.rb b/spec/api_classes/event_spec.rb index abc1234..def5678 100644 --- a/spec/api_classes/event_spec.rb +++ b/spec/api_classes/event_spec.rb @@ -2,10 +2,10 @@ describe LastFM::Event do it "should define unrestricted methods" do - LastFM::Event.unrestricted_methods.should ...
Check restricted method definitions for Event
diff --git a/spec/string_calculator_spec.rb b/spec/string_calculator_spec.rb index abc1234..def5678 100644 --- a/spec/string_calculator_spec.rb +++ b/spec/string_calculator_spec.rb @@ -4,6 +4,6 @@ subject { described_class.new } it 'returns 0 if empty string provided' do - subject.add("").should eq(0) + ex...
Change rspec syntax from should to expect
diff --git a/nymph.gemspec b/nymph.gemspec index abc1234..def5678 100644 --- a/nymph.gemspec +++ b/nymph.gemspec @@ -23,6 +23,6 @@ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] - spec.add_development_dependency "bundler", "~> 1.8" + spec.add_development_d...
Allow an older version of bundler, for travis
diff --git a/test/one-time-validation/test_block_validation_with_different_types.rb b/test/one-time-validation/test_block_validation_with_different_types.rb index abc1234..def5678 100644 --- a/test/one-time-validation/test_block_validation_with_different_types.rb +++ b/test/one-time-validation/test_block_validation_wit...
Add tests for a block validation with different types
diff --git a/lib/gyro/liquidgen/infos.rb b/lib/gyro/liquidgen/infos.rb index abc1234..def5678 100644 --- a/lib/gyro/liquidgen/infos.rb +++ b/lib/gyro/liquidgen/infos.rb @@ -11,7 +11,7 @@ def self.showInfos(template) if template.include?('/') - readme = template + 'README.md' unless readme.exis...
Fix issue in "-i" with path