diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/lib/finite_machine/transition_builder.rb b/lib/finite_machine/transition_builder.rb index abc1234..def5678 100644 --- a/lib/finite_machine/transition_builder.rb +++ b/lib/finite_machine/transition_builder.rb @@ -48,9 +48,7 @@ if machine.singleton_class.send(:method_defined?, name) machin...
Change to remove event dependency.
diff --git a/spec/active_decorator/graphql_spec.rb b/spec/active_decorator/graphql_spec.rb index abc1234..def5678 100644 --- a/spec/active_decorator/graphql_spec.rb +++ b/spec/active_decorator/graphql_spec.rb @@ -39,13 +39,7 @@ end specify do - query = <<~QUERY - { - test_model { - ...
Fix test failures on Ruby 2.2.7.
diff --git a/spec/electric_sheep/transport_spec.rb b/spec/electric_sheep/transport_spec.rb index abc1234..def5678 100644 --- a/spec/electric_sheep/transport_spec.rb +++ b/spec/electric_sheep/transport_spec.rb @@ -21,7 +21,7 @@ ) ElectricSheep::Helpers::Directories.any_instance.expects(:mk_project_directory...
Fix spec of Transport module
diff --git a/spec/requests/index_endpoints_spec.rb b/spec/requests/index_endpoints_spec.rb index abc1234..def5678 100644 --- a/spec/requests/index_endpoints_spec.rb +++ b/spec/requests/index_endpoints_spec.rb @@ -0,0 +1,20 @@+require 'rails_helper' + +describe "GET /districts/:district/endpoints", type: :request do + ...
Add index endpoint request spec
diff --git a/spec/views/header_sign_in_box_spec.rb b/spec/views/header_sign_in_box_spec.rb index abc1234..def5678 100644 --- a/spec/views/header_sign_in_box_spec.rb +++ b/spec/views/header_sign_in_box_spec.rb @@ -8,7 +8,7 @@ allow(view).to receive(:user_signed_in?) { logged_in } allow(view).to receive(:displ...
Fix test with incorrect locale name
diff --git a/saltstack/test/spec/server/pound_spec.rb b/saltstack/test/spec/server/pound_spec.rb index abc1234..def5678 100644 --- a/saltstack/test/spec/server/pound_spec.rb +++ b/saltstack/test/spec/server/pound_spec.rb @@ -7,8 +7,8 @@ it { should be_running } end - describe port(443) do - it { should be_...
Disable pound port checking with autotest
diff --git a/lib/rrj/rabbit/publish/base_publisher.rb b/lib/rrj/rabbit/publish/base_publisher.rb index abc1234..def5678 100644 --- a/lib/rrj/rabbit/publish/base_publisher.rb +++ b/lib/rrj/rabbit/publish/base_publisher.rb @@ -47,3 +47,4 @@ require 'rrj/rabbit/publish/publisher' require 'rrj/rabbit/publish/listener' +...
Add require for admin listener
diff --git a/acceptance/tests/storeconfigs/non_parameter_queries.rb b/acceptance/tests/storeconfigs/non_parameter_queries.rb index abc1234..def5678 100644 --- a/acceptance/tests/storeconfigs/non_parameter_queries.rb +++ b/acceptance/tests/storeconfigs/non_parameter_queries.rb @@ -0,0 +1,99 @@+test_name "non-parameter q...
Add a test of tag/title queries This ensures that title queries match, that they match only exactly, and that tag queries match both single and array tags, and that matching a missing tag works.
diff --git a/lib/ProMotion/cocoatouch/NavigationController.rb b/lib/ProMotion/cocoatouch/NavigationController.rb index abc1234..def5678 100644 --- a/lib/ProMotion/cocoatouch/NavigationController.rb +++ b/lib/ProMotion/cocoatouch/NavigationController.rb @@ -1,7 +1,15 @@ module ProMotion - class NavigationController < U...
Support iOS 6 force rotation.
diff --git a/lib/fotoramajs.rb b/lib/fotoramajs.rb index abc1234..def5678 100644 --- a/lib/fotoramajs.rb +++ b/lib/fotoramajs.rb @@ -1,5 +1,11 @@ # Used only for Ruby on Rails gem to tell, that gem contain `lib/assets`. module Fotoramajs + class Railtie < Rails::Railtie + initializer 'fotorama.config' do |app| + ...
Add fotorama images to precompile
diff --git a/lib/llt/diff/treebank/parser/nokogiri_handler.rb b/lib/llt/diff/treebank/parser/nokogiri_handler.rb index abc1234..def5678 100644 --- a/lib/llt/diff/treebank/parser/nokogiri_handler.rb +++ b/lib/llt/diff/treebank/parser/nokogiri_handler.rb @@ -22,7 +22,7 @@ private def register_word(attrs) -...
Fix minor error in refactored NokogiriHandler
diff --git a/lib/full_text_search/fetcher.rb b/lib/full_text_search/fetcher.rb index abc1234..def5678 100644 --- a/lib/full_text_search/fetcher.rb +++ b/lib/full_text_search/fetcher.rb @@ -0,0 +1,23 @@+module FullTextSearch + module Fetcher + def load_result_ids + ret = [] + # get all the results ranks an...
Order search result by selected condition
diff --git a/lib/halfday/nginx/capistrano.rb b/lib/halfday/nginx/capistrano.rb index abc1234..def5678 100644 --- a/lib/halfday/nginx/capistrano.rb +++ b/lib/halfday/nginx/capistrano.rb @@ -7,9 +7,12 @@ desc 'Add app configuration for Mirego infrastructure' task :configure, roles: :app do if %w{ci qa sta...
Fix nginx configuration with file upload and sed
diff --git a/spec/factories/internal_user.rb b/spec/factories/internal_user.rb index abc1234..def5678 100644 --- a/spec/factories/internal_user.rb +++ b/spec/factories/internal_user.rb @@ -19,6 +19,16 @@ singleton_internal_user end + factory :learner, class: 'InternalUser' do + activated_user + associat...
Add factory for internal user with learner role
diff --git a/spec/support/rdb_request_helpers.rb b/spec/support/rdb_request_helpers.rb index abc1234..def5678 100644 --- a/spec/support/rdb_request_helpers.rb +++ b/spec/support/rdb_request_helpers.rb @@ -31,7 +31,7 @@ # Renders an image of current page with poltergeist. def render_image(name) - page.driver.r...
Save screenshots in rdb tmp dir instead redmine tmp dir.
diff --git a/axiom-types.gemspec b/axiom-types.gemspec index abc1234..def5678 100644 --- a/axiom-types.gemspec +++ b/axiom-types.gemspec @@ -19,9 +19,9 @@ gem.required_ruby_version = '>= 1.9.3' - gem.add_runtime_dependency('descendants_tracker', '~> 0.0.4') - gem.add_runtime_dependency('ice_nine', '~...
Change dependencies to be friendly to semantically versioned gems
diff --git a/lib/minx/utils.rb b/lib/minx/utils.rb index abc1234..def5678 100644 --- a/lib/minx/utils.rb +++ b/lib/minx/utils.rb @@ -1,6 +1,6 @@ module Minx - class << self + module Utils # Map messages from +input+ to +output+. # @@ -52,6 +52,7 @@ end end end + end - end + exte...
Move utility methods into their own module
diff --git a/lib/acts_as_licensable/license.rb b/lib/acts_as_licensable/license.rb index abc1234..def5678 100644 --- a/lib/acts_as_licensable/license.rb +++ b/lib/acts_as_licensable/license.rb @@ -1,8 +1,11 @@ class License < ActiveRecord::Base #:nodoc: + has_many :licensings, :dependent => :destroy validates_p...
Add reverse association of licensings
diff --git a/lib/notifiable.rb b/lib/notifiable.rb index abc1234..def5678 100644 --- a/lib/notifiable.rb +++ b/lib/notifiable.rb @@ -1,3 +1,5 @@+require 'simple_uuid' + require 'notifiable/active_record' require 'notifiable/app' require 'notifiable/notifiable_concern' @@ -24,6 +26,9 @@ mattr_accessor :notifier_cla...
Add count_opens and simple_uuid generator in config file
diff --git a/lib/voicearchive/task_client.rb b/lib/voicearchive/task_client.rb index abc1234..def5678 100644 --- a/lib/voicearchive/task_client.rb +++ b/lib/voicearchive/task_client.rb @@ -32,6 +32,14 @@ JSON.parse(response.body) end + def search_tasks(search_options, options) + response = call('or...
Implement search_tasks on the TaskClient
diff --git a/lib/conjur/patches/rest-client.rb b/lib/conjur/patches/rest-client.rb index abc1234..def5678 100644 --- a/lib/conjur/patches/rest-client.rb +++ b/lib/conjur/patches/rest-client.rb @@ -26,7 +26,7 @@ class MIME::Types def self.type_for_extension ext candidates = of ext - candidates.empty? ...
Fix the mime_types issue once and for all. Although it's been difficult to reproduce, there is anecdotal evidence that this will sometimes raise an exception because `candidates` is `nil`. An extra test here won't hurt anything.
diff --git a/lib/kosmos/packages/safe_chute.rb b/lib/kosmos/packages/safe_chute.rb index abc1234..def5678 100644 --- a/lib/kosmos/packages/safe_chute.rb +++ b/lib/kosmos/packages/safe_chute.rb @@ -0,0 +1,8 @@+class SafeChute < Kosmos::Package + title 'Safe Chute' + url 'http://genesisrage.net/ksp/SafeChute.zip' + + ...
Add a package for SafeChute.
diff --git a/lib/sequel/adapters/jdbc/mssql.rb b/lib/sequel/adapters/jdbc/mssql.rb index abc1234..def5678 100644 --- a/lib/sequel/adapters/jdbc/mssql.rb +++ b/lib/sequel/adapters/jdbc/mssql.rb @@ -2,6 +2,11 @@ module Sequel module JDBC + class Database + # Alias the generic JDBC version so it can be called...
Use generic JDBC schema parsing in MSSQL subadapter, since it handles primary keys
diff --git a/lib/disclosure.rb b/lib/disclosure.rb index abc1234..def5678 100644 --- a/lib/disclosure.rb +++ b/lib/disclosure.rb @@ -1,4 +1,5 @@ require "disclosure/engine" +require 'disclosure/exceptions' require "disclosure/configuration" module Disclosure @@ -8,16 +9,25 @@ def self.bootstrap! Disclosure...
Adjust bootstrap method to spec
diff --git a/db/migrate/20200114203042_add_missing_platform_info.rb b/db/migrate/20200114203042_add_missing_platform_info.rb index abc1234..def5678 100644 --- a/db/migrate/20200114203042_add_missing_platform_info.rb +++ b/db/migrate/20200114203042_add_missing_platform_info.rb @@ -5,6 +5,16 @@ runs.each do |run_id| ...
Update migration, send data to firestore [#170193041]
diff --git a/lib/slatan/ear.rb b/lib/slatan/ear.rb index abc1234..def5678 100644 --- a/lib/slatan/ear.rb +++ b/lib/slatan/ear.rb @@ -4,11 +4,11 @@ using StringEx class Ear - def initialize(mouth) + def initialize() @concerns = [] Dir[File.expand_path('../../../concerns', __FILE__) << '/*.rb']...
Remove Mouth dependency from Ear class
diff --git a/lib/url_signer.rb b/lib/url_signer.rb index abc1234..def5678 100644 --- a/lib/url_signer.rb +++ b/lib/url_signer.rb @@ -5,11 +5,37 @@ module_function + # Returns a new <tt>URI</tt> instance by appending a <tt>signature</tt> parameter to the query of +url+. + # The method accepts that +url+ can be e...
Add basic doc for UrlSigner.{sign|valid?}
diff --git a/Casks/sql-power-architect-jdbc.rb b/Casks/sql-power-architect-jdbc.rb index abc1234..def5678 100644 --- a/Casks/sql-power-architect-jdbc.rb +++ b/Casks/sql-power-architect-jdbc.rb @@ -0,0 +1,11 @@+cask 'sql-power-architect-jdbc' do + version '1.0.8' + sha256 'a564e294aba5e7f4701717f8d36a898b06e6354000df3...
Add SQL Power Architect JDBC (Community) v1.0.8
diff --git a/spec/classes/homebrew_spec.rb b/spec/classes/homebrew_spec.rb index abc1234..def5678 100644 --- a/spec/classes/homebrew_spec.rb +++ b/spec/classes/homebrew_spec.rb @@ -4,7 +4,7 @@ let(:facts) { default_test_facts } let(:dir) { facts[:homebrew_root] } - let(:cmddir) { "#{dir}/Library/Taps/boxen/home...
Include Homebrew in library path
diff --git a/spec/features/comment_spec.rb b/spec/features/comment_spec.rb index abc1234..def5678 100644 --- a/spec/features/comment_spec.rb +++ b/spec/features/comment_spec.rb @@ -0,0 +1,23 @@+require 'rails_helper' + +describe 'Comments Panel' do + it "user can see comments on queried translation" do + pending + end...
Add skeleton for tests on features for comments
diff --git a/lib/health-data-standards/validate/schema_validator.rb b/lib/health-data-standards/validate/schema_validator.rb index abc1234..def5678 100644 --- a/lib/health-data-standards/validate/schema_validator.rb +++ b/lib/health-data-standards/validate/schema_validator.rb @@ -12,6 +12,7 @@ # Validate the ...
Clear the @xsd error messages before validating, or else the previous document's errors get lumped in with this one's
diff --git a/lib/prospector.rb b/lib/prospector.rb index abc1234..def5678 100644 --- a/lib/prospector.rb +++ b/lib/prospector.rb @@ -6,6 +6,7 @@ require "prospector/configuration" require "prospector/error" require "prospector/background" +require "prospector/tasks" require "prospector/railtie" if defined?(Rails) ...
Include Rake tasks automatically for non-rails apps
diff --git a/publify_core/app/controllers/notes_controller.rb b/publify_core/app/controllers/notes_controller.rb index abc1234..def5678 100644 --- a/publify_core/app/controllers/notes_controller.rb +++ b/publify_core/app/controllers/notes_controller.rb @@ -17,7 +17,7 @@ end def show - @note = Note.published.f...
Replace use of Note.find_by_permalink with Note.find_by
diff --git a/plugins/rabbitmq/rabbitmq-stomp-alive.rb b/plugins/rabbitmq/rabbitmq-stomp-alive.rb index abc1234..def5678 100644 --- a/plugins/rabbitmq/rabbitmq-stomp-alive.rb +++ b/plugins/rabbitmq/rabbitmq-stomp-alive.rb @@ -0,0 +1,97 @@+#!/usr/bin/env ruby +# +# RabbitMQ check alive plugin +# === +# +# This plugin che...
Add RabbitMQ Alive check against STOMP
diff --git a/lib/cupertino/provisioning_portal/helpers.rb b/lib/cupertino/provisioning_portal/helpers.rb index abc1234..def5678 100644 --- a/lib/cupertino/provisioning_portal/helpers.rb +++ b/lib/cupertino/provisioning_portal/helpers.rb @@ -26,7 +26,9 @@ def team teams = [] pag...
Add support for multiple teams with the same primary name Change-Id: Ie70c29e16cbe41081fe13c1a1c0ae084cbef863f
diff --git a/favicon_party.gemspec b/favicon_party.gemspec index abc1234..def5678 100644 --- a/favicon_party.gemspec +++ b/favicon_party.gemspec @@ -27,6 +27,7 @@ s.add_development_dependency "minitest-reporters", "~> 1.4" s.add_development_dependency "pry", "~> 0.14" + s.add_dependency "webrick"...
Fix missing webrick error in ruby 3.0
diff --git a/lib/couchbase-id.rb b/lib/couchbase-id.rb index abc1234..def5678 100644 --- a/lib/couchbase-id.rb +++ b/lib/couchbase-id.rb @@ -1,4 +1,5 @@-require 'radix' +require 'radix/base' + if RUBY_PLATFORM == 'java' require 'couchbase-jruby-model' else
Use radix/base for ruby 2.1 compatibility
diff --git a/spec/unit/lib/angellist_api/client/users_spec.rb b/spec/unit/lib/angellist_api/client/users_spec.rb index abc1234..def5678 100644 --- a/spec/unit/lib/angellist_api/client/users_spec.rb +++ b/spec/unit/lib/angellist_api/client/users_spec.rb @@ -6,7 +6,7 @@ describe "#get_user" do it "gets 1/users/<id...
Fix spec from adding options to get_user
diff --git a/spec/lib/spatial_features/has_spatial_features_spec.rb b/spec/lib/spatial_features/has_spatial_features_spec.rb index abc1234..def5678 100644 --- a/spec/lib/spatial_features/has_spatial_features_spec.rb +++ b/spec/lib/spatial_features/has_spatial_features_spec.rb @@ -0,0 +1,23 @@+require 'spec_helper' + +d...
Add very basic intersection area test
diff --git a/omf_ec/lib/omf_ec/backward/core_ext/array.rb b/omf_ec/lib/omf_ec/backward/core_ext/array.rb index abc1234..def5678 100644 --- a/omf_ec/lib/omf_ec/backward/core_ext/array.rb +++ b/omf_ec/lib/omf_ec/backward/core_ext/array.rb @@ -7,7 +7,7 @@ def stopApplications if !self.empty? && self.all? { |v| v....
Fix stopApplications error in backward core ext
diff --git a/spec/support/test_datasource.rb b/spec/support/test_datasource.rb index abc1234..def5678 100644 --- a/spec/support/test_datasource.rb +++ b/spec/support/test_datasource.rb @@ -1,10 +1,7 @@-require 'spec_helper' -require 'rspec/mocks/standalone' - class TestDatasource def fetch { - 1 => double...
Move away from using RSpec double away from RSpec Whilst this class is only used in specs its not great practice and actually broke somehow in RSpec 3.2 Simpler to just use OpenStruct
diff --git a/munge/reporter.rb b/munge/reporter.rb index abc1234..def5678 100644 --- a/munge/reporter.rb +++ b/munge/reporter.rb @@ -33,7 +33,7 @@ end def output(fields) - $stderr.puts fields.join(',') + $stderr.puts fields.join(' ') end end
Use space as error delimiter, for usable links in Jenkins
diff --git a/guard-jasmine.gemspec b/guard-jasmine.gemspec index abc1234..def5678 100644 --- a/guard-jasmine.gemspec +++ b/guard-jasmine.gemspec @@ -16,6 +16,7 @@ s.rubyforge_project = 'guard-jasmine' s.add_dependency 'guard', '>= 0.4' + s.add_dependency 'multi_json', '~> 1.0.3' s.add_development_dependenc...
Add multi json as dependency.
diff --git a/moped-turbo.gemspec b/moped-turbo.gemspec index abc1234..def5678 100644 --- a/moped-turbo.gemspec +++ b/moped-turbo.gemspec @@ -14,6 +14,8 @@ s.summary = "C extensions for Moped, a Ruby driver for MongoDB" s.description = s.summary + s.add_dependency("moped", ["~> 1.1.3"]) + s.files = Dir.gl...
Update gemspec, add moped dependency
diff --git a/examples/create_authorization.rb b/examples/create_authorization.rb index abc1234..def5678 100644 --- a/examples/create_authorization.rb +++ b/examples/create_authorization.rb @@ -1,8 +1,6 @@ module CreateAuthorization def CreateAuthorization.run(client, org) - region_id = "can" - card = clien...
Remove unused 'region_id' var from example
diff --git a/spec/stress/channel_close_stress_spec.rb b/spec/stress/channel_close_stress_spec.rb index abc1234..def5678 100644 --- a/spec/stress/channel_close_stress_spec.rb +++ b/spec/stress/channel_close_stress_spec.rb @@ -1,6 +1,6 @@ require "spec_helper" -describe "Rapidly opening and closing lots of channels" do...
Correct example group name to be unique
diff --git a/smartfocus.gemspec b/smartfocus.gemspec index abc1234..def5678 100644 --- a/smartfocus.gemspec +++ b/smartfocus.gemspec @@ -15,7 +15,7 @@ s.require_path = 'lib' s.authors = ['Bastien Gysler', 'eboutic.ch'] - s.email = ['basgys@gmail.com', 'tech@eboutic.ch'] + s.email = 'tech@ebouti...
Change support email from gem spec
diff --git a/got_fixed.gemspec b/got_fixed.gemspec index abc1234..def5678 100644 --- a/got_fixed.gemspec +++ b/got_fixed.gemspec @@ -13,7 +13,7 @@ s.summary = %q{Build a public dashboard of your private issue tracker} s.homepage = "https://github.com/ssaunier/got_fixed" - s.files = Dir["{app,config,d...
Fix warning at bundle install
diff --git a/test/integration/db_setup/rspec/db_setup_spec.rb b/test/integration/db_setup/rspec/db_setup_spec.rb index abc1234..def5678 100644 --- a/test/integration/db_setup/rspec/db_setup_spec.rb +++ b/test/integration/db_setup/rspec/db_setup_spec.rb @@ -0,0 +1,31 @@+require 'spec_helper' +require 'json' + +describe ...
Add db_setup spec of integration test of test-kicthen
diff --git a/spec/controllers/sessions_controller_spec.rb b/spec/controllers/sessions_controller_spec.rb index abc1234..def5678 100644 --- a/spec/controllers/sessions_controller_spec.rb +++ b/spec/controllers/sessions_controller_spec.rb @@ -15,6 +15,19 @@ end describe "with invalid params" do + + it "sh...
Add invalid data tests for session controller
diff --git a/spec/factories/configuration_factory_spec.rb b/spec/factories/configuration_factory_spec.rb index abc1234..def5678 100644 --- a/spec/factories/configuration_factory_spec.rb +++ b/spec/factories/configuration_factory_spec.rb @@ -1,15 +1,24 @@ require 'spec_helper' describe ReadingList::ConfigurationFacto...
Add tests that the config factory properly reads the YAML file.
diff --git a/app/models/statisfaction/event.rb b/app/models/statisfaction/event.rb index abc1234..def5678 100644 --- a/app/models/statisfaction/event.rb +++ b/app/models/statisfaction/event.rb @@ -1,5 +1,5 @@ module Statisfaction class Event < ActiveRecord::Base - table_name = "statisfaction_events" + set_tabl...
Revert "Fix deprecation warning when setting table names." This reverts commit af36b786776e3ceabd57ed11b4a15a04866e5a0d. The reason for this is that Rails 3.0 does not yet support table_name=
diff --git a/spec/support/capybara_helpers.rb b/spec/support/capybara_helpers.rb index abc1234..def5678 100644 --- a/spec/support/capybara_helpers.rb +++ b/spec/support/capybara_helpers.rb @@ -0,0 +1,12 @@+module CapybaraHelpers + def sign_in_as(user) + visit new_user_session_path + + within "form#new_user" do +...
Add helpers to sign in a user during feature spec
diff --git a/app.rb b/app.rb index abc1234..def5678 100644 --- a/app.rb +++ b/app.rb @@ -7,10 +7,21 @@ def init_db db = SQLite3::Database.new 'leprosorium.db' db.results_as_hash = true + return db end before do db = init_db +end + +configure do + db = init_db + db.execute 'CREATE TABLE IF NOT EXISTS "Posts" ...
Create teble Posts in database
diff --git a/spec/dolphy_spec.rb b/spec/dolphy_spec.rb index abc1234..def5678 100644 --- a/spec/dolphy_spec.rb +++ b/spec/dolphy_spec.rb @@ -32,6 +32,7 @@ describe "#redirect_to" do it "redirects to the given path" do visit '/wat' + expect(current_path).to eq "/hello" expect(page).to have_cont...
Check if URL is correct on redirects.
diff --git a/app.rb b/app.rb index abc1234..def5678 100644 --- a/app.rb +++ b/app.rb @@ -8,8 +8,7 @@ def hostname(ip) begin - address_parts = ip.split(/\./).map(&:to_i) - hostname = Socket.gethostbyaddr(address_parts.pack('CCCC')).first + hostname = Addrinfo.ip('::1').getnameinfo[0] rescue SocketError hostn...
Handle IPv6 IPs without raising exceptions
diff --git a/spec/balance_tags_c_extn_spec.rb b/spec/balance_tags_c_extn_spec.rb index abc1234..def5678 100644 --- a/spec/balance_tags_c_extn_spec.rb +++ b/spec/balance_tags_c_extn_spec.rb @@ -19,8 +19,8 @@ # Make sure it doesn't segfault it "should be balanced correctly when run many times" do + text =...
Move Faker::Lorem call out of block to speed up balance_tags_c spec dramatically
diff --git a/spec/lib/sanitize_config_spec.rb b/spec/lib/sanitize_config_spec.rb index abc1234..def5678 100644 --- a/spec/lib/sanitize_config_spec.rb +++ b/spec/lib/sanitize_config_spec.rb @@ -14,9 +14,5 @@ it 'keeps ul' do expect(Sanitize.fragment('<p>Check out:</p><ul><li>Foo</li><li>Bar</li></ul>', subjec...
Fix sanitizer text case for glitch-soc, which preserves lists
diff --git a/spec/rocket_pants/errors_spec.rb b/spec/rocket_pants/errors_spec.rb index abc1234..def5678 100644 --- a/spec/rocket_pants/errors_spec.rb +++ b/spec/rocket_pants/errors_spec.rb @@ -1,4 +1,84 @@ require 'spec_helper' describe RocketPants::Errors do + + describe 'getting all errors' do + + it 'sh...
Add specs for the errors spec
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,6 @@ require 'rubygems' require 'bundler/setup' -require 'ruby_core_extensions' if ENV['COVERAGE'] require 'simplecov' @@ -16,6 +15,8 @@ SimpleCov.start end +...
Fix coverage task as it needs to load prior to library
diff --git a/spec/support/capybara_helpers.rb b/spec/support/capybara_helpers.rb index abc1234..def5678 100644 --- a/spec/support/capybara_helpers.rb +++ b/spec/support/capybara_helpers.rb @@ -2,6 +2,6 @@ select datetime.day, from: "#{field}_3i" select datetime.strftime("%B"), from: "#{field}_2i" select datetim...
Fix bug with choosing hours that begin with 0.
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 @@ -14,7 +14,7 @@ if ENV['TRAVIS'] require 'coveralls' SimpleCov.formatter = Coveralls::SimpleCov::Formatter -elsif ENV['CI'] # rubocop:disable IfUnlessModifier +elsif ENV['CI']...
Revert "Disable false positive of RuboCop" This reverts commit bdb343d791b8d537a9e601a4b73976c6924c9f37.
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,2 +1,13 @@ require 'simplecov' +# Start the code coverage inspector here so any tests that are run +# which include the spec_helper count towards the code that is covered. Simp...
Add support for RSpec :focus keyword
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 @@ -13,7 +13,7 @@ $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) - + ENV["RAILS_ENV"] ||= 'test' require "action...
Fix last rspec deprecation notice.
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 @@ -10,6 +10,7 @@ require 'chewy/rspec' ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:') +ActiveRecord::Base.logger = Logger.new('/dev/null') Ka...
Fix specs for activerecord 4.0
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 @@ -5,6 +5,10 @@ RSpec.configure do |config| $stdout.sync = true config.filter_run_excluding concourse_test: true + + # Run tests in living color, even on CI + config.color = ...
Make RSpec emit colored output no matter what We thought concourse-filter was swallowing color codes. It wasn't: we weren't emitting any on CI. [#133046105]
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,7 +1,5 @@-if ENV['CODECLIMATE_REPO_TOKEN'] - require "codeclimate-test-reporter" - CodeClimate::TestReporter.start -end +require 'simplecov' +SimpleCov.start require 'rspec...
Use SimpleCov instead of CodeClimate::TestReporter. * https://github.com/codeclimate/ruby-test-reporter/blob/master/CHANGELOG.md#v100-2016-11-03
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 @@ -2,6 +2,8 @@ require "btc_ticker" require 'webmock/rspec' + +WebMock.disable_net_connect!(allow_localhost: true) RSpec.configure do |config| # Enable flags like --only-fai...
Configure WebMock to disable net connect (Localhost only)
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 @@ -8,7 +8,7 @@ # Spawn the server in another process -@server = fork do +@server = Thread.new do require 'simple_sinatra_server' Sinatra::Default.set( @@ -19,7 +19,8 @@ e...
Rework server spawning to work correctly under rspec 1.2
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 @@ -13,6 +13,9 @@ RSpec.configure do |config| config.include Requests::JsonHelper + config.filter_run focus: true + config.run_all_when_everything_filtered = true + config.b...
Add ability to focus a spec
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,2 +1,9 @@ require 'chefspec' require 'chefspec/berkshelf' + +RSpec.configure do |config| + config.formatter = :documentation + config.color = true +end + +at_exit { ChefSpec:...
Configure RSpec output to be more informative
diff --git a/icapps-translations.gemspec b/icapps-translations.gemspec index abc1234..def5678 100644 --- a/icapps-translations.gemspec +++ b/icapps-translations.gemspec @@ -9,7 +9,7 @@ spec.authors = ["Jelle Vandebeeck"] spec.email = ["jelle.vandebeeck@icapps.com"] spec.summary = %q{Import t...
Add the correct github url.
diff --git a/test/integration/default/default_spec.rb b/test/integration/default/default_spec.rb index abc1234..def5678 100644 --- a/test/integration/default/default_spec.rb +++ b/test/integration/default/default_spec.rb @@ -19,6 +19,7 @@ describe service('W3SVC') do it { should be_installed } it { should be_runn...
Make sure IIS is set to auto Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
diff --git a/app/views/revision_analytics/dyk_eligible.json.jbuilder b/app/views/revision_analytics/dyk_eligible.json.jbuilder index abc1234..def5678 100644 --- a/app/views/revision_analytics/dyk_eligible.json.jbuilder +++ b/app/views/revision_analytics/dyk_eligible.json.jbuilder @@ -2,7 +2,7 @@ json.array! @articles...
Use full_title for page titles in DYK list
diff --git a/lib/cfp/engine.rb b/lib/cfp/engine.rb index abc1234..def5678 100644 --- a/lib/cfp/engine.rb +++ b/lib/cfp/engine.rb @@ -1,5 +1,12 @@ module Cfp class Engine < ::Rails::Engine isolate_namespace Cfp + + # Load decorators on main app + config.to_prepare do + Dir.glob(Rails.root + "app/decor...
Load decorators on main app
diff --git a/app/controllers/ahoy/messages_controller.rb b/app/controllers/ahoy/messages_controller.rb index abc1234..def5678 100644 --- a/app/controllers/ahoy/messages_controller.rb +++ b/app/controllers/ahoy/messages_controller.rb @@ -13,6 +13,7 @@ def click if @message and !@message.clicked_at @m...
Set opened_at if empty when clicked
diff --git a/app/controllers/api/base_controller.rb b/app/controllers/api/base_controller.rb index abc1234..def5678 100644 --- a/app/controllers/api/base_controller.rb +++ b/app/controllers/api/base_controller.rb @@ -35,6 +35,10 @@ end helper_method :current_team + def set_current_team + set_current_...
Set current tennant based of the API token
diff --git a/app/controllers/api/docs_controller.rb b/app/controllers/api/docs_controller.rb index abc1234..def5678 100644 --- a/app/controllers/api/docs_controller.rb +++ b/app/controllers/api/docs_controller.rb @@ -15,6 +15,11 @@ case section when :Agendas when :Councillors + { + ward_id: "Display th...
Add URL Query Help Text For Councillor In API Docs
diff --git a/app/controllers/location_controller.rb b/app/controllers/location_controller.rb index abc1234..def5678 100644 --- a/app/controllers/location_controller.rb +++ b/app/controllers/location_controller.rb @@ -11,11 +11,11 @@ def list return unless params[:location] - locations = WoeidHelper.search_b...
Rename variables to be more descriptive
diff --git a/app/controllers/topology_controller.rb b/app/controllers/topology_controller.rb index abc1234..def5678 100644 --- a/app/controllers/topology_controller.rb +++ b/app/controllers/topology_controller.rb @@ -30,7 +30,7 @@ end def index - redirect_to :action => 'show' + redirect_to(:action => 'show...
Fix rubocop warnings in TopologyController
diff --git a/lib/lxc/server.rb b/lib/lxc/server.rb index abc1234..def5678 100644 --- a/lib/lxc/server.rb +++ b/lib/lxc/server.rb @@ -26,6 +26,7 @@ end not_found do + content_type :json, :encoding => :utf8 json_response(:error => "Invalid request path") end
Set content type for 404
diff --git a/lib/rom/header.rb b/lib/rom/header.rb index abc1234..def5678 100644 --- a/lib/rom/header.rb +++ b/lib/rom/header.rb @@ -6,7 +6,7 @@ include Enumerable include Equalizer.new(:attributes, :model) - attr_reader :attributes, :model, :mapping, :tuple_proc + attr_reader :attributes, :model, :map...
Remove unused reader from Header
diff --git a/lib/pod/command/spec/doc.rb b/lib/pod/command/spec/doc.rb index abc1234..def5678 100644 --- a/lib/pod/command/spec/doc.rb +++ b/lib/pod/command/spec/doc.rb @@ -8,7 +8,9 @@ Opens the web documentation of the Pod with the given NAME. DESC - self.arguments = [['NAME', :required]] +...
Fix for new CLAide argument syntax
diff --git a/lib/quick_shoulda/errors.rb b/lib/quick_shoulda/errors.rb index abc1234..def5678 100644 --- a/lib/quick_shoulda/errors.rb +++ b/lib/quick_shoulda/errors.rb @@ -18,7 +18,7 @@ end end - class NotAModelPathError < StandardError + class NotRubyFileError < StandardError def initialize(msg = 'Giv...
Fix mistake from copy & paste
diff --git a/lib/rpub/hash_delegation.rb b/lib/rpub/hash_delegation.rb index abc1234..def5678 100644 --- a/lib/rpub/hash_delegation.rb +++ b/lib/rpub/hash_delegation.rb @@ -2,7 +2,11 @@ # Delegate missing methods to keys in a Hash atribute on the current object. module HashDelegation def self.included(base) -...
Make delegate_to_hash easier to document
diff --git a/lib/skroutz_api/resource.rb b/lib/skroutz_api/resource.rb index abc1234..def5678 100644 --- a/lib/skroutz_api/resource.rb +++ b/lib/skroutz_api/resource.rb @@ -6,31 +6,6 @@ def initialize(attributes, client) @attributes = attributes @client = client - end - - def find(id, options = {}) - r...
Remove CollectionProxy methods from Resource
diff --git a/lib/email_verifier.rb b/lib/email_verifier.rb index abc1234..def5678 100644 --- a/lib/email_verifier.rb +++ b/lib/email_verifier.rb @@ -11,6 +11,7 @@ @emailed_alerts = [] @acknowledged_alerts = [] @missing_alerts = [] + @inbox = Inbox.new end def have_all_alerts_been_emailed? @@ -3...
Move `inbox` into a class attribute
diff --git a/lib/exchange_rates.rb b/lib/exchange_rates.rb index abc1234..def5678 100644 --- a/lib/exchange_rates.rb +++ b/lib/exchange_rates.rb @@ -1,7 +1,7 @@ require 'money/bank/open_exchange_rates_bank' moe = Money::Bank::OpenExchangeRatesBank.new -moe.ttl_in_seconds = 1.months / 1001 # match free tier on open e...
Add wiggle room to openexchangerates polling interval
diff --git a/lib/fluffle/errors.rb b/lib/fluffle/errors.rb index abc1234..def5678 100644 --- a/lib/fluffle/errors.rb +++ b/lib/fluffle/errors.rb @@ -15,6 +15,10 @@ # Raised if it timed out waiting for a confirm from the broker class ConfirmTimeoutError < TimeoutError + end + + # Raised if it received a...
Add missing `NackError` error subclass
diff --git a/config.rb b/config.rb index abc1234..def5678 100644 --- a/config.rb +++ b/config.rb @@ -22,7 +22,6 @@ configure :build do activate :minify_css - activate :minify_javascript activate :asset_hash end
Disable compression of javascript to resolve error Signed-off-by: Michael Barton <1d6e1cf70ec6f9ab28d3ea4b27a49a77654d370e@michaelbarton.me.uk>
diff --git a/config.ru b/config.ru index abc1234..def5678 100644 --- a/config.ru +++ b/config.ru @@ -21,9 +21,13 @@ if Builds::BUILD_CONFIG['teamCityBaseUrl'] require 'teamcity' TeamCity.configure do |config| - config.endpoint = Builds::BUILD_CONFIG['teamCityBaseUrl'] + '/app/rest' - config.http_user = ENV[...
Add possibility to both use guest and password authentication to TC
diff --git a/config.ru b/config.ru index abc1234..def5678 100644 --- a/config.ru +++ b/config.ru @@ -7,7 +7,7 @@ :views => File.join(File.dirname(__FILE__), 'views') ) -log = File.new("sinatra.log", "a") +log = File.new("wink.log", "a") STDOUT.reopen(log) STDERR.reopen(log)
Rename log file to wink.log, which makes more sense
diff --git a/lib/rtest/test.rb b/lib/rtest/test.rb index abc1234..def5678 100644 --- a/lib/rtest/test.rb +++ b/lib/rtest/test.rb @@ -3,9 +3,8 @@ module Rtest class Test < Runnable + include Assertions PREFIX = /^test_/ - - include Assertions def self.runnable_methods methods_matching PREFI...
Include modules before constant assignments
diff --git a/lib/tasks/ci.rake b/lib/tasks/ci.rake index abc1234..def5678 100644 --- a/lib/tasks/ci.rake +++ b/lib/tasks/ci.rake @@ -7,8 +7,9 @@ Rake::Task['brakeman:run'].invoke Rake::Task['jasmine:ci'].invoke Rake::Task['spec'].invoke - puts 'Info: Sleeping for ten seconds to give CPU time to cool do...
Reduce feature test sleep bakc to what it was
diff --git a/test/api/group_sets_api_test.rb b/test/api/group_sets_api_test.rb index abc1234..def5678 100644 --- a/test/api/group_sets_api_test.rb +++ b/test/api/group_sets_api_test.rb @@ -0,0 +1,13 @@+require 'test_helper' + +class GroupSetsApiTest < ActiveSupport::TestCase + include Rack::Test::Methods + include Te...
TEST: Add unit tests for group_sets_api
diff --git a/test/least-squares-method-2d.rb b/test/least-squares-method-2d.rb index abc1234..def5678 100644 --- a/test/least-squares-method-2d.rb +++ b/test/least-squares-method-2d.rb @@ -0,0 +1,53 @@+#!/usr/bin/env ruby +# coding: utf-8 + +# ŏ@ɂ钼 y = a * x + b ̎̎Zo + +s1 = [[32.0, 24.0], + [131.0, 62.0], ...
Add 2d least squares method sample script.
diff --git a/app/workers/share_analytics_updater.rb b/app/workers/share_analytics_updater.rb index abc1234..def5678 100644 --- a/app/workers/share_analytics_updater.rb +++ b/app/workers/share_analytics_updater.rb @@ -10,8 +10,11 @@ uri = URI.parse(uri) response = Net::HTTP.post_form(uri, {key: ENV['SHARE...
Print fail message in case of a failed update request to SP:
diff --git a/decorate-responder.gemspec b/decorate-responder.gemspec index abc1234..def5678 100644 --- a/decorate-responder.gemspec +++ b/decorate-responder.gemspec @@ -19,7 +19,7 @@ gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) gem.require_paths = ['lib'] - gem.add_runtime_dependency 'responde...
Update responders requirement from ~> 2.0 to >= 2, < 4 Updates the requirements on [responders](https://github.com/plataformatec/responders) to permit the latest version. - [Release notes](https://github.com/plataformatec/responders/releases) - [Changelog](https://github.com/plataformatec/responders/blob/master/CHANGE...
diff --git a/lib/tasks/import.rake b/lib/tasks/import.rake index abc1234..def5678 100644 --- a/lib/tasks/import.rake +++ b/lib/tasks/import.rake @@ -23,9 +23,7 @@ csv.each_with_index do |row, index| input = import.raw_inputs.create data: row.to_h RawInputTransformJob.perform_later input.id - if c...
Use an inline if statement (for rubocop)
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 = '2.5.6.0' + s.version = '2.5.7.0' s.summary = 'Common primitives for pl...
Package version is increased from 2.5.6.0 to 2.5.7.0