diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/app/controllers/spree/amazon_controller.rb b/app/controllers/spree/amazon_controller.rb index abc1234..def5678 100644 --- a/app/controllers/spree/amazon_controller.rb +++ b/app/controllers/spree/amazon_controller.rb @@ -6,7 +6,7 @@ module Spree class AmazonController < Devise::SessionsController de...
Fix amazon login user creation
diff --git a/popularity_contest.gemspec b/popularity_contest.gemspec index abc1234..def5678 100644 --- a/popularity_contest.gemspec +++ b/popularity_contest.gemspec @@ -4,7 +4,7 @@ Gem::Specification.new do |spec| spec.name = "popularity_contest" - spec.version = "0.0.3" + spec.version = "0....
Add 0.0.4 version to Gemspec
diff --git a/spec/classes/neutron_db_postgresql_spec.rb b/spec/classes/neutron_db_postgresql_spec.rb index abc1234..def5678 100644 --- a/spec/classes/neutron_db_postgresql_spec.rb +++ b/spec/classes/neutron_db_postgresql_spec.rb @@ -14,6 +14,8 @@ let :params do req_params end + + it { is_expe...
Include deps class in unit test for postgresql Change-Id: I33be0962bc8065adb2563fdd3df7be1cd32955f5
diff --git a/spec/features/reordering_topic_sections.rb b/spec/features/reordering_topic_sections.rb index abc1234..def5678 100644 --- a/spec/features/reordering_topic_sections.rb +++ b/spec/features/reordering_topic_sections.rb @@ -27,16 +27,14 @@ private + def handle_for_topic_section(section_title) + within_...
Tidy up reordering topic section feature spec helpers
diff --git a/spec/ruby/1.8/library/matrix/clone_spec.rb b/spec/ruby/1.8/library/matrix/clone_spec.rb index abc1234..def5678 100644 --- a/spec/ruby/1.8/library/matrix/clone_spec.rb +++ b/spec/ruby/1.8/library/matrix/clone_spec.rb @@ -14,8 +14,8 @@ b.class.should == Matrix b.should == @a b.should_not === @a...
Use size functions instead of constants.
diff --git a/spec/unit/view_helpers/form_helper_spec.rb b/spec/unit/view_helpers/form_helper_spec.rb index abc1234..def5678 100644 --- a/spec/unit/view_helpers/form_helper_spec.rb +++ b/spec/unit/view_helpers/form_helper_spec.rb @@ -10,7 +10,7 @@ end it "should filter out the field passed via the option :exc...
Fix for Ruby 1.8.6 on recent pull request
diff --git a/spec/factories/place_message.rb b/spec/factories/place_message.rb index abc1234..def5678 100644 --- a/spec/factories/place_message.rb +++ b/spec/factories/place_message.rb @@ -1,10 +1,13 @@ FactoryGirl.define do factory :place_message, class: PlaceMessage do + recipient_name "Valid Recipent" r...
Fix spec for place message model.
diff --git a/app/controllers/api/v1/rules_controller.rb b/app/controllers/api/v1/rules_controller.rb index abc1234..def5678 100644 --- a/app/controllers/api/v1/rules_controller.rb +++ b/app/controllers/api/v1/rules_controller.rb @@ -0,0 +1,24 @@+module Api + module V1 + class RulesController < ActionController::Bas...
Add API RulesController with :create
diff --git a/app/services/boards/issues/move_service.rb b/app/services/boards/issues/move_service.rb index abc1234..def5678 100644 --- a/app/services/boards/issues/move_service.rb +++ b/app/services/boards/issues/move_service.rb @@ -9,6 +9,7 @@ def execute return false unless issue.present? + re...
Check if user can update the issue before moving it betweens lists
diff --git a/app/models/fluentd/setting_archive/note.rb b/app/models/fluentd/setting_archive/note.rb index abc1234..def5678 100644 --- a/app/models/fluentd/setting_archive/note.rb +++ b/app/models/fluentd/setting_archive/note.rb @@ -0,0 +1,17 @@+class Fluentd + module SettingArchive + class Note + include Arch...
Add Note class to memo about backup files.
diff --git a/lib/eidolon/rgssx/table.rb b/lib/eidolon/rgssx/table.rb index abc1234..def5678 100644 --- a/lib/eidolon/rgssx/table.rb +++ b/lib/eidolon/rgssx/table.rb @@ -6,7 +6,6 @@ def self._load(array) # :nodoc: self.class.new.instance_eval do @size, @xsize, @ysize, @zsize, _, *@data = array.unpack('LLLL...
Remove unnecessary `self` return in `Table` RGSSx class.
diff --git a/spec/models/instance/announcement_spec.rb b/spec/models/instance/announcement_spec.rb index abc1234..def5678 100644 --- a/spec/models/instance/announcement_spec.rb +++ b/spec/models/instance/announcement_spec.rb @@ -1,5 +1,7 @@ require 'rails_helper' RSpec.describe Instance::Announcement, type: :model d...
Add tests for Instance::Announcement's associations
diff --git a/spec/vorpal/integration/db_driver_spec.rb b/spec/vorpal/integration/db_driver_spec.rb index abc1234..def5678 100644 --- a/spec/vorpal/integration/db_driver_spec.rb +++ b/spec/vorpal/integration/db_driver_spec.rb @@ -3,7 +3,7 @@ describe Vorpal::DbDriver do describe '#build_db_class' do - let(:db_cl...
Use more generic table name
diff --git a/lib/minty/objects/model.rb b/lib/minty/objects/model.rb index abc1234..def5678 100644 --- a/lib/minty/objects/model.rb +++ b/lib/minty/objects/model.rb @@ -4,7 +4,7 @@ def self.attribute(name, json_attr = nil) define_method(name) do - @json[(json_attr || name).to_s] + jso...
Use attribute reader, not instance variable
diff --git a/jekyll-compass.gemspec b/jekyll-compass.gemspec index abc1234..def5678 100644 --- a/jekyll-compass.gemspec +++ b/jekyll-compass.gemspec @@ -1,7 +1,7 @@ Gem::Specification.new do |s| s.name = 'jekyll-compass' - s.version = '1.1.0.pre' + s.version = '1.2.0.pre' s.summary = "...
Bump version for further development
diff --git a/lib/idology_test_helper.rb b/lib/idology_test_helper.rb index abc1234..def5678 100644 --- a/lib/idology_test_helper.rb +++ b/lib/idology_test_helper.rb @@ -10,7 +10,8 @@ end def idology_response_path(name) - File.dirname(__FILE__)+"/../spec/fixtures/#{name}.xml" + file = File.expand_pa...
Update the test helper to error on unknown files.
diff --git a/ivapi.gemspec b/ivapi.gemspec index abc1234..def5678 100644 --- a/ivapi.gemspec +++ b/ivapi.gemspec @@ -22,7 +22,7 @@ gem.add_dependency 'faraday_middleware', '~> 0.9.1' gem.add_dependency 'hashie', '~> 3.3' gem.add_dependency 'multi_json', '~> 1.10' - gem.add_development_dependency 'bundler', '~>...
Use lower bundler version in gemspec * Travis do not support latest version of bundler
diff --git a/lib/precious_cargo/data.rb b/lib/precious_cargo/data.rb index abc1234..def5678 100644 --- a/lib/precious_cargo/data.rb +++ b/lib/precious_cargo/data.rb @@ -13,11 +13,8 @@ # Returns the AES encrypted data. def encrypt!(data, options = {}) secret = options.delete(:secret) - - cip...
Switch encryption methods to use gibberish.
diff --git a/lib/preserves/selection.rb b/lib/preserves/selection.rb index abc1234..def5678 100644 --- a/lib/preserves/selection.rb +++ b/lib/preserves/selection.rb @@ -1,5 +1,7 @@ module Preserves class Selection + + include Enumerable attr_accessor :domain_objects
Make sure Preserves::Selection is Enumerable
diff --git a/lib/queue_it/api/client.rb b/lib/queue_it/api/client.rb index abc1234..def5678 100644 --- a/lib/queue_it/api/client.rb +++ b/lib/queue_it/api/client.rb @@ -8,7 +8,7 @@ module Api class Client JSON_FORMAT = "application/json".freeze - ENDPOINT_URL = URI("https://api.queue-it.net/1.2/even...
Use API in version 2 * https://api2.queue-it.net
diff --git a/lib/tasks/stateoscope.rake b/lib/tasks/stateoscope.rake index abc1234..def5678 100644 --- a/lib/tasks/stateoscope.rake +++ b/lib/tasks/stateoscope.rake @@ -4,7 +4,7 @@ namespace :stateoscope do desc 'visualize state machine for a given class' task :visualize, [:class, :state_machine_name] => :environ...
Fix bug in rake task
diff --git a/lib/sorcery/controller/submodules/external/protocols/oauth2.rb b/lib/sorcery/controller/submodules/external/protocols/oauth2.rb index abc1234..def5678 100644 --- a/lib/sorcery/controller/submodules/external/protocols/oauth2.rb +++ b/lib/sorcery/controller/submodules/external/protocols/oauth2.rb @@ -10,15 +...
Remove duplication in Oauth2 protocol code
diff --git a/spec/overcommit/default_configuration_spec.rb b/spec/overcommit/default_configuration_spec.rb index abc1234..def5678 100644 --- a/spec/overcommit/default_configuration_spec.rb +++ b/spec/overcommit/default_configuration_spec.rb @@ -4,17 +4,29 @@ default_config = YAML.load_file(Overcommit::Configurat...
Add tests verifying configuration for hooks Building on top of a5e834b, we want to also verify that all hooks have a `description` specified, as well as a configuration in general. We change the implementation to work backwards from the file names so that if we create a hook file but forget to add a configuration for ...
diff --git a/redis-spawn.gemspec b/redis-spawn.gemspec index abc1234..def5678 100644 --- a/redis-spawn.gemspec +++ b/redis-spawn.gemspec @@ -17,6 +17,6 @@ "test/**/*.rb" ] - s.add_dependency "redis-rb", "~> 2.0" + s.add_dependency "redis", "~> 2.0" s.add_development_dependency "cutest", "~> 0.1" end
Fix broken dependancy in gemspec
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index abc1234..def5678 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -9,7 +9,8 @@ def index @data = {} @actual_path = request.original_fullpath - ...
Expand is_contained to the embed route
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index abc1234..def5678 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -17,6 +17,7 @@ include Blacklight::Controller # Adds Hydra behaviors into the applica...
Add policy aware enforcement to controllers
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index abc1234..def5678 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,5 +1,5 @@ class ApplicationController < ActionController::Base # Prevent CSRF attacks ...
Remove protect from forgery to allow Twilio POSTS
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index abc1234..def5678 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,6 +1,8 @@ class ApplicationController < ActionController::Base protect_from_forgery ...
Configure new attributes on the Devise models.
diff --git a/app/controllers/retirements_controller.rb b/app/controllers/retirements_controller.rb index abc1234..def5678 100644 --- a/app/controllers/retirements_controller.rb +++ b/app/controllers/retirements_controller.rb @@ -4,4 +4,8 @@ def alternate_locales [] end + + def display_menu_button_in_header? ...
Disable menu button in RetirementController. It's got nothing to show, and furthermore it did nothing and raised JS console errors.
diff --git a/test/integration/amazon_linux_2012_09_bootstrap_test.rb b/test/integration/amazon_linux_2012_09_bootstrap_test.rb index abc1234..def5678 100644 --- a/test/integration/amazon_linux_2012_09_bootstrap_test.rb +++ b/test/integration/amazon_linux_2012_09_bootstrap_test.rb @@ -0,0 +1,17 @@+require 'integration_h...
Add integration test for Amazon Linux AMI
diff --git a/lib/enumerative/enumeration_sharedspec.rb b/lib/enumerative/enumeration_sharedspec.rb index abc1234..def5678 100644 --- a/lib/enumerative/enumeration_sharedspec.rb +++ b/lib/enumerative/enumeration_sharedspec.rb @@ -6,6 +6,12 @@ let :instance do described_class.new 'foo' + end + + let :i...
Fix issue with frozen runtime error message in Ruby 1.9.3 vs. 1.9.2.
diff --git a/lib/catarse_stripe/engine.rb b/lib/catarse_stripe/engine.rb index abc1234..def5678 100644 --- a/lib/catarse_stripe/engine.rb +++ b/lib/catarse_stripe/engine.rb @@ -7,15 +7,13 @@ class Mapper def mount_catarse_stripe_at(mount_location) scope mount_location do - namespace :payment do - ...
Change route to share application
diff --git a/lib/mobility/plugins/attribute_methods.rb b/lib/mobility/plugins/attribute_methods.rb index abc1234..def5678 100644 --- a/lib/mobility/plugins/attribute_methods.rb +++ b/lib/mobility/plugins/attribute_methods.rb @@ -6,8 +6,9 @@ Also adds a method #translated_attributes with names and values of translated ...
Modify note to mention gem conflicts [ci skip]
diff --git a/lib/puppet/type/f5_node.rb b/lib/puppet/type/f5_node.rb index abc1234..def5678 100644 --- a/lib/puppet/type/f5_node.rb +++ b/lib/puppet/type/f5_node.rb @@ -8,7 +8,10 @@ newparam(:name, :namevar=>true) do desc "The node name. v9.0 API uses IP addresses, v11.0 API uses names." - newvalues(/^[[:al...
Fix this validation to allow _'s and so forth.
diff --git a/lib/modules/wdpa/global_stats_importer.rb b/lib/modules/wdpa/global_stats_importer.rb index abc1234..def5678 100644 --- a/lib/modules/wdpa/global_stats_importer.rb +++ b/lib/modules/wdpa/global_stats_importer.rb @@ -11,12 +11,16 @@ attrs.merge!("#{field}": value) end - puts attrs Globa...
Remove print and add comment
diff --git a/lib/contao/tasks/assets.rake b/lib/contao/tasks/assets.rake index abc1234..def5678 100644 --- a/lib/contao/tasks/assets.rake +++ b/lib/contao/tasks/assets.rake @@ -1,7 +1,6 @@ namespace :assets do desc "Compile javascript" task :javascript do - TechnoGate::Contao::CoffeescriptCompiler.compile ...
Revert "Compile CoffeeScript before compiling javascript" This reverts commit 11b143dde3f2b4b73d757a1b71daae0ffedca387.
diff --git a/lib/tchart/process/command_line_parser.rb b/lib/tchart/process/command_line_parser.rb index abc1234..def5678 100644 --- a/lib/tchart/process/command_line_parser.rb +++ b/lib/tchart/process/command_line_parser.rb @@ -9,7 +9,7 @@ private - def self.validate_args(argv, data_filename, tex_filena...
Add comment about method return value.
diff --git a/config/initializers/exception_notifier.rb b/config/initializers/exception_notifier.rb index abc1234..def5678 100644 --- a/config/initializers/exception_notifier.rb +++ b/config/initializers/exception_notifier.rb @@ -2,5 +2,5 @@ :email => { :email_prefix => "[LARA Exception] ", :sender_address => %{"n...
Send notification to the correct list.
diff --git a/test/fixtures/sample-project/config/init.rb b/test/fixtures/sample-project/config/init.rb index abc1234..def5678 100644 --- a/test/fixtures/sample-project/config/init.rb +++ b/test/fixtures/sample-project/config/init.rb @@ -4,7 +4,7 @@ require "daimon_skycrawlers/queue" DaimonSkycrawlers.configure do |c...
Use null logger in test
diff --git a/lib/static_sync/storage.rb b/lib/static_sync/storage.rb index abc1234..def5678 100644 --- a/lib/static_sync/storage.rb +++ b/lib/static_sync/storage.rb @@ -43,7 +43,7 @@ end def remote_directory - @remote_directory ||= @config.storage.directories.new(:key => @config.storage_directory) + ...
Stop caching the remote directory since it seems to be problematic.
diff --git a/lib/tenon/tenon_content.rb b/lib/tenon/tenon_content.rb index abc1234..def5678 100644 --- a/lib/tenon/tenon_content.rb +++ b/lib/tenon/tenon_content.rb @@ -9,7 +9,7 @@ Tenon::TenonContentBuilder.add_assoc(self, content_field) define_method("#{content_field}_i18n?") { i18n } - if i...
Fix i18n Tenon Content call
diff --git a/test/unit/vagrant/plugin/v2/trigger_test.rb b/test/unit/vagrant/plugin/v2/trigger_test.rb index abc1234..def5678 100644 --- a/test/unit/vagrant/plugin/v2/trigger_test.rb +++ b/test/unit/vagrant/plugin/v2/trigger_test.rb @@ -0,0 +1,68 @@+require File.expand_path("../../../../base", __FILE__) + +describe Vag...
Add basic spec test for trigger class
diff --git a/lib/gitlab/openssl_helper.rb b/lib/gitlab/openssl_helper.rb index abc1234..def5678 100644 --- a/lib/gitlab/openssl_helper.rb +++ b/lib/gitlab/openssl_helper.rb @@ -1,13 +1,15 @@ require_relative 'linker_helper' class OpenSSLHelper - @deps = %w[libssl libcrypto] + @base_libs = %w[libssl libcrypto] + @...
Store special libraries in separate array Signed-off-by: Balasankar "Balu" C <250a398eb3bfb9862062144cc742cc8f9bdd8d78@gitlab.com>
diff --git a/lib/helios/rainbow_effect.rb b/lib/helios/rainbow_effect.rb index abc1234..def5678 100644 --- a/lib/helios/rainbow_effect.rb +++ b/lib/helios/rainbow_effect.rb @@ -1,5 +1,5 @@ module Helios - class RainbowEffect + class RainbowEffect < Effect RED = [255,0,0] ORANGE = [255,127,0] YELLOW = [...
Add base class Effect to RainbowEffect
diff --git a/lib/hexdump/core_ext/file.rb b/lib/hexdump/core_ext/file.rb index abc1234..def5678 100644 --- a/lib/hexdump/core_ext/file.rb +++ b/lib/hexdump/core_ext/file.rb @@ -1,4 +1,4 @@-require 'hexdump/hexdump' +require 'hexdump/core_ext/io' class File @@ -15,7 +15,7 @@ # def self.hexdump(path,**kwargs,&b...
Use the IO core_ext in the File core_ext.
diff --git a/lib/agave/builder/queryBuilder.rb b/lib/agave/builder/queryBuilder.rb index abc1234..def5678 100644 --- a/lib/agave/builder/queryBuilder.rb +++ b/lib/agave/builder/queryBuilder.rb @@ -16,7 +16,6 @@ if block then yield qryObject else - qryObject.selects ...
Set default value for selects instance variable in Query
diff --git a/tests/spec/features/url_parameters_spec.rb b/tests/spec/features/url_parameters_spec.rb index abc1234..def5678 100644 --- a/tests/spec/features/url_parameters_spec.rb +++ b/tests/spec/features/url_parameters_spec.rb @@ -8,6 +8,13 @@ expect(editor).to have_line 'This source code came from a Gist' end...
Test that loading a gist keeps the gist links around
diff --git a/tests/spec/features/editions_spec.rb b/tests/spec/features/editions_spec.rb index abc1234..def5678 100644 --- a/tests/spec/features/editions_spec.rb +++ b/tests/spec/features/editions_spec.rb @@ -15,7 +15,8 @@ click_on("Run") within('.output-stderr') do - expect(page).to have_content '`crat...
Update edition test for stabilization changes
diff --git a/app/commands/v2/previously_published_item.rb b/app/commands/v2/previously_published_item.rb index abc1234..def5678 100644 --- a/app/commands/v2/previously_published_item.rb +++ b/app/commands/v2/previously_published_item.rb @@ -49,8 +49,6 @@ previous_base_path != base_path end - private...
Remove useless private access modifier
diff --git a/lib/yard/server/commands/frames_command.rb b/lib/yard/server/commands/frames_command.rb index abc1234..def5678 100644 --- a/lib/yard/server/commands/frames_command.rb +++ b/lib/yard/server/commands/frames_command.rb @@ -5,7 +5,7 @@ include DocServerHelper def run - main_...
Update frames command to support /frames/Path/To/Object URL mapping.
diff --git a/activemodel/lib/active_model/type/registry.rb b/activemodel/lib/active_model/type/registry.rb index abc1234..def5678 100644 --- a/activemodel/lib/active_model/type/registry.rb +++ b/activemodel/lib/active_model/type/registry.rb @@ -9,7 +9,7 @@ end def register(type_name, klass = nil, **optio...
Revert register proc takes keyword arguments Because Ruby 2.6 cannot ignore empty kwargs. https://buildkite.com/rails/rails/builds/63958#9932c536-b1df-4d2c-bda0-c59ed0e254c1/987-995
diff --git a/lib/geocoder/lookups/nominatim.rb b/lib/geocoder/lookups/nominatim.rb index abc1234..def5678 100644 --- a/lib/geocoder/lookups/nominatim.rb +++ b/lib/geocoder/lookups/nominatim.rb @@ -9,13 +9,17 @@ end def map_link_url(coordinates) - "http://www.openstreetmap.org/?lat=#{coordinates[0]}&lon=...
Use HTTPS for all Nominatim requests. HTTP support will be discontinued according to this: https://lists.openstreetmap.org/pipermail/geocoding/2018-January/001918.html Fixes #1267
diff --git a/cookbooks/delivery_rust/recipes/default.rb b/cookbooks/delivery_rust/recipes/default.rb index abc1234..def5678 100644 --- a/cookbooks/delivery_rust/recipes/default.rb +++ b/cookbooks/delivery_rust/recipes/default.rb @@ -5,26 +5,12 @@ # Copyright (C) Chef Software, Inc. 2014 # -# Ensure the Omnibus cookb...
Enable base Engineering Services standards Ensure we properly configure builders with things like package signing via the `opscode-ci::delivery_builder` recipe. This recipe configures a Delivery builder in almost the same way as a Jenkins build slave.
diff --git a/sensu-plugins-zfs.gemspec b/sensu-plugins-zfs.gemspec index abc1234..def5678 100644 --- a/sensu-plugins-zfs.gemspec +++ b/sensu-plugins-zfs.gemspec @@ -11,7 +11,7 @@ spec.summary = %q{Sensu plugin for zfs} spec.description = %q{Sensu plugin for zfs} - spec.homepage = "https://github.co...
Correct spec.homepage to sensu-plugins org
diff --git a/reel.gemspec b/reel.gemspec index abc1234..def5678 100644 --- a/reel.gemspec +++ b/reel.gemspec @@ -22,5 +22,5 @@ gem.add_runtime_dependency 'websocket_parser', '>= 0.1.6' gem.add_development_dependency 'rake' - gem.add_development_dependency 'rspec' + gem.add_development_dependency 'rspec', '>= 2...
Set rspec gem version which supports expect() syntax.
diff --git a/lib/tracker_api/resources/base.rb b/lib/tracker_api/resources/base.rb index abc1234..def5678 100644 --- a/lib/tracker_api/resources/base.rb +++ b/lib/tracker_api/resources/base.rb @@ -20,7 +20,7 @@ super # always reset dirty tracking on initialize - reset_changes + ...
Fix DEPRECATION WARNING for Rails5 > DECATION WARNING: `#reset_changes` is deprecated and will be removed on Rails 5. Please use `#clear_changes_information` instead.
diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb index abc1234..def5678 100644 --- a/app/mailers/user_mailer.rb +++ b/app/mailers/user_mailer.rb @@ -7,7 +7,7 @@ @trip = trip mail( to: @trip.email, - subject: prefix_subject('Validation de votre annonce')) + subject: prefix_s...
Fix typo during merging in UserMailer
diff --git a/db/migrate/20151029211234_create_groups.rb b/db/migrate/20151029211234_create_groups.rb index abc1234..def5678 100644 --- a/db/migrate/20151029211234_create_groups.rb +++ b/db/migrate/20151029211234_create_groups.rb @@ -3,7 +3,7 @@ create_table :groups do |t| t.string :primary_number, null:...
Remove null: false constraint on the groups table. SmartyStreets API will not always return this.
diff --git a/cookbooks/zookeeper/attributes/default.rb b/cookbooks/zookeeper/attributes/default.rb index abc1234..def5678 100644 --- a/cookbooks/zookeeper/attributes/default.rb +++ b/cookbooks/zookeeper/attributes/default.rb @@ -3,8 +3,6 @@ # Attributes:: default # # Copyright 2012, Webtrends Inc. -# -# All rights re...
Remove the do not redistribute clause in the zookeeper cookbook. There's nothing webtrends specific in this Former-commit-id: 4fad8f2232bb1447d361ea6a91a140d576bf84b8 [formerly 45f1a9aace9396eb81063db20753ac21fe3ddf21] [formerly 070a921e8f2dc5d4a26f810bbd10a8617981b1e8 [formerly 4b940ad47d6c4ea211a23095776650f912299...
diff --git a/libraries/rolling_restart.rb b/libraries/rolling_restart.rb index abc1234..def5678 100644 --- a/libraries/rolling_restart.rb +++ b/libraries/rolling_restart.rb @@ -0,0 +1,19 @@+module RollingRestart + module Helpers + def app_instances + node[:opsworks][:layers].map { |layer_name, layer_attrs| + ...
Add library helper to use in recipes
diff --git a/test/integration/default/rspec/ie_spec.rb b/test/integration/default/rspec/ie_spec.rb index abc1234..def5678 100644 --- a/test/integration/default/rspec/ie_spec.rb +++ b/test/integration/default/rspec/ie_spec.rb @@ -9,11 +9,12 @@ @selenium.quit end - it 'Checks if Flash installed' do + it 'Check...
Check if Flash is enabled for IE
diff --git a/test/prx_auth/rails/configuration_test.rb b/test/prx_auth/rails/configuration_test.rb index abc1234..def5678 100644 --- a/test/prx_auth/rails/configuration_test.rb +++ b/test/prx_auth/rails/configuration_test.rb @@ -2,7 +2,6 @@ describe PrxAuth::Rails::Configuration do - after(:each) { PrxAuth::Rails....
Move from manipulating globals to locals
diff --git a/lib/bean_sprout/account.rb b/lib/bean_sprout/account.rb index abc1234..def5678 100644 --- a/lib/bean_sprout/account.rb +++ b/lib/bean_sprout/account.rb @@ -6,15 +6,18 @@ include StructFromHashMixin include StructArchiveMixin + class BalanceHolder < Struct.new(:value) + end + def initi...
Use balance holder instead of holding all balances.
diff --git a/lib/cable_ready/channel.rb b/lib/cable_ready/channel.rb index abc1234..def5678 100644 --- a/lib/cable_ready/channel.rb +++ b/lib/cable_ready/channel.rb @@ -16,14 +16,14 @@ def broadcast(clear) operations.select! { |_, list| list.present? } operations.deep_transform_keys! { |key| key.to_s....
Add braces to hash parameter to remove warning
diff --git a/lib/lemonade_stand/game.rb b/lib/lemonade_stand/game.rb index abc1234..def5678 100644 --- a/lib/lemonade_stand/game.rb +++ b/lib/lemonade_stand/game.rb @@ -27,13 +27,11 @@ end def store_sales_results_for results, player, day - @sales_results ||= [] - @sales_results << { player: player,...
Initialize the variable in one place.
diff --git a/test/helper.rb b/test/helper.rb index abc1234..def5678 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -5,6 +5,7 @@ require 'tmpdir' class Dbt::TestCase < Minitest::Test + def setup Dbt::Config.default_search_dirs = nil Dbt::Config.default_no_create = nil @@ -26,8 +27,16 @@ Dbt::Con...
Create temp directory for tests
diff --git a/spec/acceptance/solutions_spec.rb b/spec/acceptance/solutions_spec.rb index abc1234..def5678 100644 --- a/spec/acceptance/solutions_spec.rb +++ b/spec/acceptance/solutions_spec.rb @@ -1,6 +1,18 @@ require 'spec_helper' describe "Solutions" do + + it "chooses the correct artifact for the demands" do +...
Add back the test for finding the correct version given multiple choices
diff --git a/spec/shared/searchable_essence.rb b/spec/shared/searchable_essence.rb index abc1234..def5678 100644 --- a/spec/shared/searchable_essence.rb +++ b/spec/shared/searchable_essence.rb @@ -2,7 +2,7 @@ shared_examples_for 'an searchable essence' do let(:essence_type) { essence_class.model_name.name.demoduli...
Fix content spec for recent Alchemy change Beginning with Alchemy 3.5 contents require it's essence via belongs_to element, :require: true Fixed by using the Alchemy content factory
diff --git a/teamspeak-ruby.gemspec b/teamspeak-ruby.gemspec index abc1234..def5678 100644 --- a/teamspeak-ruby.gemspec +++ b/teamspeak-ruby.gemspec @@ -11,4 +11,5 @@ s.require_paths = ['lib'] s.homepage = 'http://pyrohail.com' s.license = 'MIT' + s.add_development_dependency 'minitest', '~> 5.8' e...
Fix tests on Ruby 2.3
diff --git a/lib/rack/policy/helpers.rb b/lib/rack/policy/helpers.rb index abc1234..def5678 100644 --- a/lib/rack/policy/helpers.rb +++ b/lib/rack/policy/helpers.rb @@ -0,0 +1,15 @@+# -*- encoding: utf-8 -*- + +module Rack + module Policy + module Helpers + + def cookies_accepted? + accepted = !request....
Add view helper for toggling cookie notifications.
diff --git a/examples/log.rb b/examples/log.rb index abc1234..def5678 100644 --- a/examples/log.rb +++ b/examples/log.rb @@ -0,0 +1,29 @@+require 'varnish' + +class Log + def initialize + @vd = Varnish::VSM.VSM_New + Varnish::VSL.VSL_Setup(@vd) + Varnish::VSL.VSL_Open(@vd, 1) + + @count = 0 + @t = nil +...
Add an example for the low-level API.
diff --git a/lib/spree/retail/engine.rb b/lib/spree/retail/engine.rb index abc1234..def5678 100644 --- a/lib/spree/retail/engine.rb +++ b/lib/spree/retail/engine.rb @@ -6,6 +6,10 @@ class Engine < Rails::Engine isolate_namespace Spree engine_name 'solidus_retail' + + initializer "spree.gateway.pa...
Add the ShopifyGateway as a Payment Method That way we can use it in Solidus
diff --git a/rspec-contracts.gemspec b/rspec-contracts.gemspec index abc1234..def5678 100644 --- a/rspec-contracts.gemspec +++ b/rspec-contracts.gemspec @@ -13,6 +13,6 @@ s.files = Dir.glob("lib/**/*") + ["README.md", "History.md", "License.txt"] s.require_path = "lib" s.add_dependency "rspec", "3.0.0.beta2" - ...
Remove open-ended dependencies from gemspec
diff --git a/tasks/check-for-new-rootfs-cves/run.rb b/tasks/check-for-new-rootfs-cves/run.rb index abc1234..def5678 100644 --- a/tasks/check-for-new-rootfs-cves/run.rb +++ b/tasks/check-for-new-rootfs-cves/run.rb @@ -11,16 +11,14 @@ cves_dir = File.expand_path(File.join(buildpacks_ci_dir, '..', 'output-new-cves', 'new-...
Remove cflinuxfs3 CVE slack notifications
diff --git a/spec/views/layout_spec.rb b/spec/views/layout_spec.rb index abc1234..def5678 100644 --- a/spec/views/layout_spec.rb +++ b/spec/views/layout_spec.rb @@ -0,0 +1,68 @@+require 'spec_helper' + +describe Cyclid::UI::Views::Layout do + let :user do + u = double('current_user') + allow(u).to receive(:usern...
Add tests for the Layout View
diff --git a/tzinfo.gemspec b/tzinfo.gemspec index abc1234..def5678 100644 --- a/tzinfo.gemspec +++ b/tzinfo.gemspec @@ -3,8 +3,8 @@ Gem::Specification.new do |s| s.name = 'tzinfo' s.version = TZInfo::VERSION - s.summary = 'Daylight savings aware timezone library' - s.description = 'TZInfo provides daylight sav...
Update the gem summary and description.
diff --git a/lib/yarrow.rb b/lib/yarrow.rb index abc1234..def5678 100644 --- a/lib/yarrow.rb +++ b/lib/yarrow.rb @@ -1,20 +1,22 @@-require "hashie" -require "yaml" +require 'hashie' +require 'yaml' -require_relative "yarrow/version" -require_relative "yarrow/logging" -require_relative "yarrow/configuration" -require_...
Remove require_relative as it's no longer needed
diff --git a/solutions/uri/1009/1009.rb b/solutions/uri/1009/1009.rb index abc1234..def5678 100644 --- a/solutions/uri/1009/1009.rb +++ b/solutions/uri/1009/1009.rb @@ -0,0 +1,5 @@+name = gets +salary = gets.to_f +value_sold = gets.to_f + +puts "TOTAL = R$ #{'%.2f' % (salary + value_sold * 0.15)}"
Solve Salary with Bonus in ruby
diff --git a/test/unit/test_channel.rb b/test/unit/test_channel.rb index abc1234..def5678 100644 --- a/test/unit/test_channel.rb +++ b/test/unit/test_channel.rb @@ -29,4 +29,22 @@ # TODO :categories: ['Technology', 'Gadgets'] assert_equal(@options[:explicit], @channel.explicit) end + + def test_raise_on_mi...
Add test for missing channel attributes
diff --git a/app/services/coronavirus/pages/timeline_entry_builder.rb b/app/services/coronavirus/pages/timeline_entry_builder.rb index abc1234..def5678 100644 --- a/app/services/coronavirus/pages/timeline_entry_builder.rb +++ b/app/services/coronavirus/pages/timeline_entry_builder.rb @@ -1,27 +1,29 @@-class Coronavirus...
Embed TimelineEntryBuilder within a module This class (which arrived from a rebase) is the only Coronavirus::Page service that is not defined within a module, so I've updated it for consistency.
diff --git a/source/sitemap.xml.builder b/source/sitemap.xml.builder index abc1234..def5678 100644 --- a/source/sitemap.xml.builder +++ b/source/sitemap.xml.builder @@ -10,4 +10,13 @@ end end end + # Temporary hack to get article sitemap working + blog.articles.each do |resource| + xml.url do + ...
Fix sitemap builder for articles
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,6 +14,7 @@ # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f...
Load Kaminari gem's spec/support files
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,13 +1,7 @@-#-- -# Copyright (c) 2015 Marius L. Jøhndal -# -# See LICENSE in the top-level source directory for licensing terms. -#++ -$LOAD_PATH.unshift File.expand_path('../lib...
Change include order for simplecov
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 @@ -28,6 +28,9 @@ require f end +require 'rom/support/deprecations' +ROM::Deprecations.set_logger!(root.join('../log/deprecations.log')) + # Namespace holding all objects create...
Configure rom deprecations logging for 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 @@ -14,4 +14,8 @@ USERNAME ||= ENV['ecm_username'] PASSWORD ||= ENV['evm_password'] -raise 'REQUIRED ENV variables: [ecm_username and ecm_password] in order to run the specs.' unle...
Raise rspec error without ecm credentials.
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,7 @@ RSpec.configure do |c| if c.filter_manager.inclusions.keys.include?(:live) + puts "Running **live** tests against Stripe..." StripeMock.set_test_strateg...
Add message when running live tests
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,8 +1,8 @@ # frozen_string_literal: true -if ENV['COVERAGE'] || ENV['TRAVIS'] - require 'simplecov' - require 'coveralls' +if ENV["COVERAGE"] || ENV["TRAVIS"] + require "sim...
Change to remove strings comparison helper
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,5 +1,8 @@ require 'serverspec' require 'net/ssh' +require 'yaml' + +properties = YAML.load_file('properties.yml') set :backend, :ssh @@ -15,6 +18,7 @@ end host = ENV['T...
Fix tests that use properties
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 @@ -4,7 +4,7 @@ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ SimpleCov::Formatter::HTMLFormatter ] -SimpleCov.start 'rails' +SimpleCov.start require 'agnostic_ba...
Change simplecov Rails setting to default
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 @@ -16,14 +16,7 @@ end end -def fixture_path - File.expand_path("../fixtures", __FILE__) +def csstats_file + fixtures = File.expand_path("../fixtures", __FILE__) + File.new(fi...
Remove unused functions in spec helper.
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,5 @@+# encoding: utf-8 + if ENV['COVERAGE'] == 'true' require 'simplecov' require 'coveralls'
Fix remaining errors from rubocop
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 @@ -4,7 +4,7 @@ $LOAD_PATH.include?(__LIB_DIR__) || $LOAD_PATH.include?(File.expand_path(__LIB_DIR__)) -require "bbcloud" +require "brightbox_cli" require "mocha" require "vc...
Update spec helper for new path
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,5 +1,5 @@ require 'pry' -require 'inkling' +require 'inkling-rb' Dir["./spec/support/**/*.rb"].each {|f| require f }
Change require in spec helper
diff --git a/spec/pester/pester_spec.rb b/spec/pester/pester_spec.rb index abc1234..def5678 100644 --- a/spec/pester/pester_spec.rb +++ b/spec/pester/pester_spec.rb @@ -2,7 +2,7 @@ require "minitest/autorun" require "mocha/setup" -require_relative '..\..\lib\kitchen\verifier\pester' +require_relative "../../lib/kitc...
:white_check_mark: Fix spec file errors on Unix - Use forward slashes for cross-platform paths - Use recommended _(obj).must_equal per minitest deprecation warning
diff --git a/spec/symbol_filter_spec.rb b/spec/symbol_filter_spec.rb index abc1234..def5678 100644 --- a/spec/symbol_filter_spec.rb +++ b/spec/symbol_filter_spec.rb @@ -1,47 +1,41 @@ require 'spec_helper' -describe Mutations::SymbolFilter do - let(:options){ {} } - let(:outcome){ Mutations::SymbolFilter.new(options...
Rewrite symbol filter specs in the house style
diff --git a/bin/schedule_backup_job.rb b/bin/schedule_backup_job.rb index abc1234..def5678 100644 --- a/bin/schedule_backup_job.rb +++ b/bin/schedule_backup_job.rb @@ -8,11 +8,16 @@ include QueueStuff include DBStuff +include GHTorrent::Logging job_id = ARGV[0].to_i def settings YAML.load_file(ARGV[1]) +en...
Send backup job to the queue
diff --git a/travis-release.gemspec b/travis-release.gemspec index abc1234..def5678 100644 --- a/travis-release.gemspec +++ b/travis-release.gemspec @@ -26,6 +26,6 @@ spec.add_development_dependency 'codeclimate-test-reporter', '~> 0' spec.add_development_dependency 'yard', '~> 0' - spec.add_dependency 'rake', ...
Fix issue with old rake versions
diff --git a/github-sync/reporting/db_report_wiki_on.rb b/github-sync/reporting/db_report_wiki_on.rb index abc1234..def5678 100644 --- a/github-sync/reporting/db_report_wiki_on.rb +++ b/github-sync/reporting/db_report_wiki_on.rb @@ -31,7 +31,7 @@ end def db_report(org, sync_db) - wikiOn=sync_db.execute("SELEC...
Fix bug in wiki report; had the org in their twice
diff --git a/ruby/lib/bson/registry.rb b/ruby/lib/bson/registry.rb index abc1234..def5678 100644 --- a/ruby/lib/bson/registry.rb +++ b/ruby/lib/bson/registry.rb @@ -42,7 +42,7 @@ # # @since 2.0.0 def register(byte, type) - MAPPINGS[byte] = type + MAPPINGS.store(byte, type) type.define_met...
Use store to match fetch nomenclature
diff --git a/spec/client_spec.rb b/spec/client_spec.rb index abc1234..def5678 100644 --- a/spec/client_spec.rb +++ b/spec/client_spec.rb @@ -2,6 +2,18 @@ describe 'nagios::client' do let(:chef_run) { runner.converge 'nagios::client' } + + it 'includes the client_package recipe' do + expect(chef_run).to include...
Add additional chef spec tests for client installs