diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/Treasure.podspec b/Treasure.podspec index abc1234..def5678 100644 --- a/Treasure.podspec +++ b/Treasure.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'Treasure' - s.version = '0.1.3' + s.version = '0.1.4' s.summary = 'A small set of tools for deseriali...
Increase version number to 0.1.4
diff --git a/core/lib/spree/permission_sets/product_management.rb b/core/lib/spree/permission_sets/product_management.rb index abc1234..def5678 100644 --- a/core/lib/spree/permission_sets/product_management.rb +++ b/core/lib/spree/permission_sets/product_management.rb @@ -9,7 +9,6 @@ can :manage, Spree::Product...
Remove prototype from product management permission set
diff --git a/db/migrate/20111105052819_add_fields_to_privilege.rb b/db/migrate/20111105052819_add_fields_to_privilege.rb index abc1234..def5678 100644 --- a/db/migrate/20111105052819_add_fields_to_privilege.rb +++ b/db/migrate/20111105052819_add_fields_to_privilege.rb @@ -1,9 +1,35 @@ class AddFieldsToPrivilege < Activ...
Move create defaults for privillege into migration git-svn-id: 6fb0b63dee43263dbd2534f09c80ea129ca0b2b4@2354 1b8ff446-76f8-11e0-a33c-ba5893e5f458
diff --git a/db/migrations/012_change_serialize_column_to_json.rb b/db/migrations/012_change_serialize_column_to_json.rb index abc1234..def5678 100644 --- a/db/migrations/012_change_serialize_column_to_json.rb +++ b/db/migrations/012_change_serialize_column_to_json.rb @@ -0,0 +1,13 @@+require 'oj' +require 'common' +::...
Migration: Change serialized column from Marshal to JSON.
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,3 +3,12 @@ require 'vagrant-list' +puts <<-WARNING +WARNING: Because there is currently no support for mocking or stubbing +out calls to VirtualBox, it is required that ther...
Add warning message about requiring having a test vm running
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 +1,7 @@ require 'neo-tmdb' + +api_key = ENV["TMDB_API_KEY"] or raise "You must set the TMDB_API_KEY environment variable to run these tests." + +TMDb.configure do |config| + co...
Add API key loading from environment for rspec Ultimately we'll use something like vcr so that anyone can re-run these tests without having an API key, although why anyone would want to develop this library without an API key is beyond me.
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 @@ require 'spec' +require 'spec/autorun' $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
Make it easier to run 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 @@ -23,24 +23,3 @@ PuppetlabsSpec::Files.cleanup end end - -require 'pathname' -dir = Pathname.new(__FILE__).parent -Puppet[:modulepath] = File.join(dir, 'fixtures', 'modules'...
Use modulesync to manage meta 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,7 +1,8 @@+ENV['CODECLIMATE_REPO_TOKEN'] = "30676ff831772153d0238cd5ccbab7b8044a17d57c2878b07aa04904e7246328" +require "codeclimate-test-reporter" +CodeClimate::TestReporter.star...
Move Code Climate instance to the very first line.
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 @@ -41,7 +41,7 @@ end def parse(string) - Parser::CurrentRuby.parse(string) + Unparser::Preprocessor.run(Parser::CurrentRuby.parse(string)) end end
Normalize ASTs before mutating spec examples * Reduces smantically unneded empty begin nodes etc. * Allows to sharp 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 @@ -1,3 +1,5 @@+# frozen_string_literal: true + if ENV['COVERAGE'] || ENV['TRAVIS'] require 'simplecov' require 'coveralls' @@ -14,21 +16,14 @@ end require 'bundler/setup' -...
Change to remove unnecessary options
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,15 @@ # encoding: utf-8 + +require 'devtools/spec_helper' if ENV['COVERAGE'] == 'true' require 'simplecov' + require 'coveralls' + + SimpleCov.formatter = SimpleCov...
Update specs to report coverage to coveralls
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,4 +30,9 @@ add_filter '/vendor/bundle/' end +# Initialize Guard for running tests. +require 'guard' +Guard.setup(notify: false) + require 'guard/rubocop' +
Fix the test suite to run against latest Guard. The test suite works fine with Guard 2.1, but fails with Guard 2.13. The failure comes from heavy refactoring in recent version of Guard, where static initialization is expected by the runtime. The init just does not happen when running the test suite. guard-compat see...
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,6 @@ ENV["RAILS_ENV"] = "test" require 'i18n-spec' -require 'i18n/core_ext/hash' require 'active_support/core_ext/kernel/reporting' require 'socket' require 'unit/mat...
Stop requiring i18n/core_ext/hash that is not in use i18n removed i18n/core_ext/hash at v1.9.0 (https://github.com/ruby-i18n/i18n/releases/tag/v1.9.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 @@ -19,12 +19,12 @@ config.mock_with :rspec # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures - config.fixture_path = "#{::Rails.root}/spec/fixtures...
Delete fixture configuration at 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,5 +1,7 @@ require 'simplecov' -SimpleCov.start +SimpleCov.start do + add_filter "/spec/" +end $:.unshift File.expand_path("../..", __FILE__)
Add spec filter for coverage
diff --git a/assets/samples/sample_activity.rb b/assets/samples/sample_activity.rb index abc1234..def5678 100644 --- a/assets/samples/sample_activity.rb +++ b/assets/samples/sample_activity.rb @@ -17,6 +17,5 @@ @text_view.setText "What hath Matz wrought!" toast 'Flipped a bit via butterfly' end - t...
Revert the last change...onClick does not need to return a value
diff --git a/config/initializers/sidekiq.rb b/config/initializers/sidekiq.rb index abc1234..def5678 100644 --- a/config/initializers/sidekiq.rb +++ b/config/initializers/sidekiq.rb @@ -0,0 +1,8 @@+require 'sidekiq/web' + +if ENV["USERNAME"] and ENV["PASSWORD"] + Sidekiq::Web.use(Rack::Auth::Basic) do |user, password| ...
Add Sidekiq base auth configuration
diff --git a/week-6/nested_data_solution.rb b/week-6/nested_data_solution.rb index abc1234..def5678 100644 --- a/week-6/nested_data_solution.rb +++ b/week-6/nested_data_solution.rb @@ -0,0 +1,98 @@+# RELEASE 2: NESTED STRUCTURE GOLF +# Hole 1 +# Target element: "FORE" + +array = [[1,2], ["inner", ["eagle", "par", ["FOR...
Add 6.5 Nested Data Structures file
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -3,15 +3,18 @@ scope '/:locale' do get '/', to: 'home#index' - end - resource :styleguide, controller: 'styleguide', only: 'show' do - member do - get 'css' - get 'ht...
Enforce localised URL convention for styleguide Scopes the styleguide resource by locale but restricts it to the default locale (en) only. This keeps routing consistent and ensures we have one way to concern ourselves with how to determine the locale.
diff --git a/op_cart.gemspec b/op_cart.gemspec index abc1234..def5678 100644 --- a/op_cart.gemspec +++ b/op_cart.gemspec @@ -11,7 +11,7 @@ s.email = ["ericboehs@gmail.com"] s.homepage = "https://github.com/ericboehs/op_cart" s.summary = "Opinionated cart engine for Ruby on Rails" - s.description =...
Update description on rubygems.org to match Github
diff --git a/Gemfile.d/pulsar.rb b/Gemfile.d/pulsar.rb index abc1234..def5678 100644 --- a/Gemfile.d/pulsar.rb +++ b/Gemfile.d/pulsar.rb @@ -28,8 +28,5 @@ # this gem and you don't think you need pulsar, then you should actually # be running `bundle install --without pulsar` to just skip it. group :pulsar do - # TODO...
Revert "Revert "Revert "unblock build for beta release""" This reverts commit 37c3066234d308fa502e30994c7cfe84d0dad8c0.
diff --git a/KeyboardKit.podspec b/KeyboardKit.podspec index abc1234..def5678 100644 --- a/KeyboardKit.podspec +++ b/KeyboardKit.podspec @@ -3,7 +3,7 @@ Pod::Spec.new do |s| s.name = 'KeyboardKit' s.version = '3.1.1' - s.swift_versions = ['5.2'] + s.swift_versions = ['5.3'] s.summary...
Update Swift version in Podfile
diff --git a/PusherSwift.podspec b/PusherSwift.podspec index abc1234..def5678 100644 --- a/PusherSwift.podspec +++ b/PusherSwift.podspec @@ -12,7 +12,7 @@ s.source_files = 'Sources/*.swift' s.dependency 'CryptoSwift', '~> 0.8.3' - s.dependency 'Reachability', '~> 4.1.0' + s.dependency 'ReachabilitySwift', '~> ...
Fix Reachability reference in Podspec
diff --git a/boot.rb b/boot.rb index abc1234..def5678 100644 --- a/boot.rb +++ b/boot.rb @@ -21,5 +21,8 @@ Configuration.config do |config| config.logger_filename = "logs/rubycasts.log" config.load_paths = %w(. app/models app/helpers app/views app/lib app/requests) - config.datamapper(:default, "#{database['adap...
Put Hash options in Datamapper config instead an adress uri
diff --git a/rack-zip.gemspec b/rack-zip.gemspec index abc1234..def5678 100644 --- a/rack-zip.gemspec +++ b/rack-zip.gemspec @@ -5,6 +5,7 @@ spec.description = 'Rack::Zip serves files in zip archives.' spec.authors = ['KITAITI Makoto'] spec.email = 'KitaitiMakoto@gmail.com' + spec.required_ruby_version = '>= 2...
Add required Ruby version to gemspec
diff --git a/db/migrate/007_add_missing_indexes.rb b/db/migrate/007_add_missing_indexes.rb index abc1234..def5678 100644 --- a/db/migrate/007_add_missing_indexes.rb +++ b/db/migrate/007_add_missing_indexes.rb @@ -0,0 +1,24 @@+class AddMissingIndexes < ActiveRecord::Migration + + def up + add_index :jenkins_settings...
Add missing indexes in database
diff --git a/jekyll-remote-plantuml.gemspec b/jekyll-remote-plantuml.gemspec index abc1234..def5678 100644 --- a/jekyll-remote-plantuml.gemspec +++ b/jekyll-remote-plantuml.gemspec @@ -3,17 +3,17 @@ Gem::Specification.new do |s| s.name = 'jekyll-remote-plantuml' - s.version = '0.1.0' + s.version...
Add the homepage for plugin and increase version
diff --git a/features/support/page_models/page_asserts/registration_success_page_asserts.rb b/features/support/page_models/page_asserts/registration_success_page_asserts.rb index abc1234..def5678 100644 --- a/features/support/page_models/page_asserts/registration_success_page_asserts.rb +++ b/features/support/page_mode...
Fix error in world calling.
diff --git a/lib/amorail/entity/persistance.rb b/lib/amorail/entity/persistance.rb index abc1234..def5678 100644 --- a/lib/amorail/entity/persistance.rb +++ b/lib/amorail/entity/persistance.rb @@ -17,11 +17,7 @@ end def save! - if save - true - else - fail InvalidRecord - end + ...
Return object while using bang methods
diff --git a/lib/cache_back/rack_middleware.rb b/lib/cache_back/rack_middleware.rb index abc1234..def5678 100644 --- a/lib/cache_back/rack_middleware.rb +++ b/lib/cache_back/rack_middleware.rb @@ -0,0 +1,13 @@+module CacheBack + class RackMiddleware + def initialize(app) + @app = app + end + + def call(e...
Revert "removing unused rack middleware" This reverts commit 4676a0c0606a3a506b432c3fa8f56787bb972579.
diff --git a/lib/middleman-disqus/extension.rb b/lib/middleman-disqus/extension.rb index abc1234..def5678 100644 --- a/lib/middleman-disqus/extension.rb +++ b/lib/middleman-disqus/extension.rb @@ -14,7 +14,7 @@ options = options.to_h.map do |k,obj| k =~ /^disqus_(.*)$/ ? [$1, obj] : nil end - ...
Fix MRI Ruby 2.x warnings
diff --git a/lib/simplecov/lines_classifier.rb b/lib/simplecov/lines_classifier.rb index abc1234..def5678 100644 --- a/lib/simplecov/lines_classifier.rb +++ b/lib/simplecov/lines_classifier.rb @@ -17,14 +17,14 @@ end def self.no_cov_line?(line) - line =~ no_cov_line + no_cov_line.match?(line) ...
Improve performance of lines classifier Prefer `Regexp#match?` over `String#=~` which improves the speed by ~50% for these methods.
diff --git a/lib/tasks/fix_unique_legends.rake b/lib/tasks/fix_unique_legends.rake index abc1234..def5678 100644 --- a/lib/tasks/fix_unique_legends.rake +++ b/lib/tasks/fix_unique_legends.rake @@ -4,7 +4,15 @@ query = 'SELECT layer_id, count(*) from legends group by layer_id having count(*) > 1' ActiveRecord::...
Fix rake so it only deletes legends of the same type
diff --git a/spec/event/dispatcher_spec.rb b/spec/event/dispatcher_spec.rb index abc1234..def5678 100644 --- a/spec/event/dispatcher_spec.rb +++ b/spec/event/dispatcher_spec.rb @@ -13,17 +13,22 @@ end describe Dispatcher do + shared_examples "an observer notification" do + it "should send the expected me...
Refactor dispatcher spec with shared example
diff --git a/spec/factories/udl_modules.rb b/spec/factories/udl_modules.rb index abc1234..def5678 100644 --- a/spec/factories/udl_modules.rb +++ b/spec/factories/udl_modules.rb @@ -24,6 +24,14 @@ udl_module.authors << create(:modules_author_user) end end + + factory :udl_module_with_assessment do...
Add udl_module factory that contains an assessment
diff --git a/spec/models/candidate_spec.rb b/spec/models/candidate_spec.rb index abc1234..def5678 100644 --- a/spec/models/candidate_spec.rb +++ b/spec/models/candidate_spec.rb @@ -4,17 +4,18 @@ describe "scopes" do let!(:candidate) { FactoryGirl.create(:candidate, looking_for_work: true) } let!(:not_lookin...
Add specs for Candidate.with_profession with object
diff --git a/StompClient.podspec b/StompClient.podspec index abc1234..def5678 100644 --- a/StompClient.podspec +++ b/StompClient.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "StompClient" - s.version = "0.0.1" + s.version = "0.1.0" s.summary = "Simple STOMP client." s.descri...
Increase version number to 0.1.0 in podspec.
diff --git a/lib/mocha/integration/mini_test/assertion_counter.rb b/lib/mocha/integration/mini_test/assertion_counter.rb index abc1234..def5678 100644 --- a/lib/mocha/integration/mini_test/assertion_counter.rb +++ b/lib/mocha/integration/mini_test/assertion_counter.rb @@ -11,7 +11,7 @@ end def increm...
Use public API of MiniTest for registering assertions. As suggested by @tenderlove in [1]. This reduces the dependency on private & potentially more changeable behaviour in MiniTest and gets us closer to the goal of not having to monkey-patch. [1] https://github.com/freerange/mocha/issues/87#issuecomment-6747614
diff --git a/lib/tasks/data_feeds_weather_underground_loader.rake b/lib/tasks/data_feeds_weather_underground_loader.rake index abc1234..def5678 100644 --- a/lib/tasks/data_feeds_weather_underground_loader.rake +++ b/lib/tasks/data_feeds_weather_underground_loader.rake @@ -1,7 +1,7 @@ namespace :data_feeds do desc 'S...
Change default dates - now yesterday -3 to yesterday
diff --git a/app/controllers/api/users_controller.rb b/app/controllers/api/users_controller.rb index abc1234..def5678 100644 --- a/app/controllers/api/users_controller.rb +++ b/app/controllers/api/users_controller.rb @@ -1,7 +1,8 @@ class Api::UsersController < Api::BaseController def index @users = User.all - ...
Add email filter for users api
diff --git a/rr.gemspec b/rr.gemspec index abc1234..def5678 100644 --- a/rr.gemspec +++ b/rr.gemspec @@ -8,21 +8,21 @@ gem.version = RR.version gem.authors = ['Brian Takita', 'Elliot Winkler'] gem.email = ['elliot.winkler@gmail.com'] - gem.description = "RR is a double framework that features a rich selection ...
Update gemspec to actually remove test files and add missing text files
diff --git a/app/controllers/platforms_controller.rb b/app/controllers/platforms_controller.rb index abc1234..def5678 100644 --- a/app/controllers/platforms_controller.rb +++ b/app/controllers/platforms_controller.rb @@ -9,7 +9,7 @@ @updated = Project.platform(@platform_name).limit(5).order('updated_at DESC') ...
Work out most popular from 50 projects
diff --git a/test/test_helper.rb b/test/test_helper.rb index abc1234..def5678 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -12,7 +12,7 @@ FakeWeb.clean_registry FakeWeb.allow_net_connect = false response = File.open(File.join(File.dirname(__FILE__), 'fixtures', fixture)).read - FakeWeb...
Fix deprecation warnings from FakeWeb
diff --git a/app/serializers/api/state_serializer.rb b/app/serializers/api/state_serializer.rb index abc1234..def5678 100644 --- a/app/serializers/api/state_serializer.rb +++ b/app/serializers/api/state_serializer.rb @@ -1,3 +1,7 @@ class Api::StateSerializer < ActiveModel::Serializer attributes :id, :name, :abbr + ...
Make state abbreviations upper case
diff --git a/practice.rb b/practice.rb index abc1234..def5678 100644 --- a/practice.rb +++ b/practice.rb @@ -0,0 +1,81 @@+# Given any integer, count the # of occurrences of each digit + +# DESIRED OUTPUT (exact format) + +# 0 1 +# 1 1 +# 2 0 +# 3 0 +# 4 0 +# 5 1 +# 6 0 +# 7 2 +# 8 0 +# 9 0 + + + + +string = gets.chomp....
Add runner code for implementation problem: given integer, produce occurences of digits in integer
diff --git a/common_lips.gemspec b/common_lips.gemspec index abc1234..def5678 100644 --- a/common_lips.gemspec +++ b/common_lips.gemspec @@ -8,8 +8,8 @@ spec.version = CommonLips::VERSION spec.authors = ["Nicolas McCurdy"] spec.email = ["thenickperson@gmail.com"] - spec.description = %q{T...
Add a description and summary to the gemspec
diff --git a/lib/liquid-renderer/railtie.rb b/lib/liquid-renderer/railtie.rb index abc1234..def5678 100644 --- a/lib/liquid-renderer/railtie.rb +++ b/lib/liquid-renderer/railtie.rb @@ -11,7 +11,7 @@ ActionController::Renderers.add :liquid do |content, options| content_type = options.delete(:content_t...
Change text: to plain: for rails 5
diff --git a/lib/rrj/process/concurrency.rb b/lib/rrj/process/concurrency.rb index abc1234..def5678 100644 --- a/lib/rrj/process/concurrency.rb +++ b/lib/rrj/process/concurrency.rb @@ -28,7 +28,6 @@ @rabbit.transaction_long { transaction_running } rescue Interrupt ::Log.warn "This process ...
Remove ensure exec close rabbitmq connection [skip ci]
diff --git a/substring_palindrome.rb b/substring_palindrome.rb index abc1234..def5678 100644 --- a/substring_palindrome.rb +++ b/substring_palindrome.rb @@ -0,0 +1,42 @@+# Find the longest palindrome substring from a given string +# A O(n^2) time and 0(1) space solution + +def longest_substring_palindrome(str) + max_l...
Add longest substring palindrome function
diff --git a/lib/sweet-alert2-rails/view_helpers.rb b/lib/sweet-alert2-rails/view_helpers.rb index abc1234..def5678 100644 --- a/lib/sweet-alert2-rails/view_helpers.rb +++ b/lib/sweet-alert2-rails/view_helpers.rb @@ -33,7 +33,7 @@ protected def options_has_confirm?(options) - options[:data] && options[:...
Verify options is a hash before pulling out confirm
diff --git a/lib/active_record_views/railtie.rb b/lib/active_record_views/railtie.rb index abc1234..def5678 100644 --- a/lib/active_record_views/railtie.rb +++ b/lib/active_record_views/railtie.rb @@ -2,7 +2,7 @@ class Railtie < ::Rails::Railtie initializer 'active_record_views' do |app| ActiveSupport.on_...
Load all configured model paths into the SQL load path
diff --git a/tools/ipmi-vulns.rb b/tools/ipmi-vulns.rb index abc1234..def5678 100644 --- a/tools/ipmi-vulns.rb +++ b/tools/ipmi-vulns.rb @@ -10,13 +10,11 @@ } def search(hash) - vulns = [] SEARCHES.each do | key, vuln | if hash[key] == vuln[:value] - vulns << "VULN-IPMI-#{vuln[:name].upcase}" + ha...
Add vulns as indivdual keys
diff --git a/lib/geokit/net_adapter/net_http.rb b/lib/geokit/net_adapter/net_http.rb index abc1234..def5678 100644 --- a/lib/geokit/net_adapter/net_http.rb +++ b/lib/geokit/net_adapter/net_http.rb @@ -15,7 +15,6 @@ http.use_ssl = true http.verify_mode = Geokit::Geocoders.ssl_verify_mode en...
Remove errant debug line in HTTP adapter
diff --git a/app/exporters/publishing_api_manual_with_sections_withdrawer.rb b/app/exporters/publishing_api_manual_with_sections_withdrawer.rb index abc1234..def5678 100644 --- a/app/exporters/publishing_api_manual_with_sections_withdrawer.rb +++ b/app/exporters/publishing_api_manual_with_sections_withdrawer.rb @@ -4,9...
Rename document -> section in PublishingApiManualWithSectionsWithdrawer
diff --git a/lib/pushwoosh/push_notification.rb b/lib/pushwoosh/push_notification.rb index abc1234..def5678 100644 --- a/lib/pushwoosh/push_notification.rb +++ b/lib/pushwoosh/push_notification.rb @@ -41,7 +41,7 @@ def create_message(notification_options = {}) fail Error, 'Message is missing' if notification...
Fix for "undefined method 'with_indifferent_access' for nil:NilClass" error
diff --git a/lib/serverspec/type/iis_website.rb b/lib/serverspec/type/iis_website.rb index abc1234..def5678 100644 --- a/lib/serverspec/type/iis_website.rb +++ b/lib/serverspec/type/iis_website.rb @@ -17,11 +17,14 @@ backend.check_iis_app_pool(@name, app_pool) end - def path(path) + def has_p...
Verify the physical path of the website
diff --git a/lib/active_merchant/billing/integrations/paydollar/helper.rb b/lib/active_merchant/billing/integrations/paydollar/helper.rb index abc1234..def5678 100644 --- a/lib/active_merchant/billing/integrations/paydollar/helper.rb +++ b/lib/active_merchant/billing/integrations/paydollar/helper.rb @@ -24,9 +24,7 @@ ...
Remove extraneous checking of currency code
diff --git a/app/controllers/users/omniauth_callbacks_controller.rb b/app/controllers/users/omniauth_callbacks_controller.rb index abc1234..def5678 100644 --- a/app/controllers/users/omniauth_callbacks_controller.rb +++ b/app/controllers/users/omniauth_callbacks_controller.rb @@ -1,16 +1,8 @@ class Users::OmniauthCallb...
Remove LivingSocial specific oauth2 code resolves #15
diff --git a/lib/live_editor/cli/validators/config_validator.rb b/lib/live_editor/cli/validators/config_validator.rb index abc1234..def5678 100644 --- a/lib/live_editor/cli/validators/config_validator.rb +++ b/lib/live_editor/cli/validators/config_validator.rb @@ -21,7 +21,7 @@ begin config =...
Use mutators instead of instance variables in config validator
diff --git a/breezy_template/breezy_template.gemspec b/breezy_template/breezy_template.gemspec index abc1234..def5678 100644 --- a/breezy_template/breezy_template.gemspec +++ b/breezy_template/breezy_template.gemspec @@ -8,6 +8,7 @@ s.license = 'MIT' s.homepage = 'https://github.com/jho406/breezy/' s.summary ...
Update Breezy gemspec with meta
diff --git a/app/models/event.rb b/app/models/event.rb index abc1234..def5678 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -8,7 +8,7 @@ def self.from_geom(geom_ewkt, params) after_date = params[:after_date] || 7.days.ago - before_date = params[:before_date] || 2.days.from_now + b...
Use current time as default before_date
diff --git a/event_store-client.gemspec b/event_store-client.gemspec index abc1234..def5678 100644 --- a/event_store-client.gemspec +++ b/event_store-client.gemspec @@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = 'event_store-client' - s.version = '0.0.1.4' + s.version = '0.0.1.5'...
Package version is increased from 0.0.1.4 to 0.0.1.5
diff --git a/fulmar_file_sync.gemspec b/fulmar_file_sync.gemspec index abc1234..def5678 100644 --- a/fulmar_file_sync.gemspec +++ b/fulmar_file_sync.gemspec @@ -10,9 +10,8 @@ s.description = 'This gem adds file sync functionality to the fulmar deployment tool. It can be used standalone though.' s.authors =...
[BUGFIX] Fix spec (varname was "s" not "spec")
diff --git a/code/type_null_true_false.rb b/code/type_null_true_false.rb index abc1234..def5678 100644 --- a/code/type_null_true_false.rb +++ b/code/type_null_true_false.rb @@ -1,34 +1,18 @@-def if_value(values) - puts '"if value":' - values.each { |k, v| puts "#{k} - #{v ? 'true' : 'false'}" } +def check(label, fn, ...
Refactor null-true-false example in Ruby to make it more readable
diff --git a/config.ru b/config.ru index abc1234..def5678 100644 --- a/config.ru +++ b/config.ru @@ -2,7 +2,6 @@ require 'config/environment' require 'api/v1' -require 'config/logging' require 'rack/contrib' ENV['RACK_ENV'] ||= 'development'
Delete reference to missing file
diff --git a/config.ru b/config.ru index abc1234..def5678 100644 --- a/config.ru +++ b/config.ru @@ -1,7 +1,7 @@ require File.expand_path("../init", __FILE__) if ENV['ADMIN_USERNAME'] && ENV['ADMIN_PASSWORD'] - use Rack::Auth::Basic do |user, pass| - user == ENV['ADMIN_USERNAME'] && pass == ENV['ADMIN_PASSWORD'] +...
Use username and password in variable names also
diff --git a/lib/active_interaction/pipeline.rb b/lib/active_interaction/pipeline.rb index abc1234..def5678 100644 --- a/lib/active_interaction/pipeline.rb +++ b/lib/active_interaction/pipeline.rb @@ -3,6 +3,10 @@ def initialize(&block) @steps = [] instance_eval(&block) + end + + def pipe(intera...
Make "pipe" a public method I initially didn't want people creating a pipeline and then tacking things on to it with "pipeline.pipe(..)". I'm no longer convinced that's a bad thing.
diff --git a/lib/dpl/provider/heroku/git_ssh.rb b/lib/dpl/provider/heroku/git_ssh.rb index abc1234..def5678 100644 --- a/lib/dpl/provider/heroku/git_ssh.rb +++ b/lib/dpl/provider/heroku/git_ssh.rb @@ -11,6 +11,10 @@ end def setup_key(file) + warn '' + warn "git-ssh strategy is depre...
Add deprecation warning for Heroku `git-ssh` strategy The new Platform API does not support this https://devcenter.heroku.com/articles/platform-api-reference.
diff --git a/lib/jugglite/sse_connection.rb b/lib/jugglite/sse_connection.rb index abc1234..def5678 100644 --- a/lib/jugglite/sse_connection.rb +++ b/lib/jugglite/sse_connection.rb @@ -4,10 +4,16 @@ def initialize(request) @request = request + @longpolling = request.xhr? @body = DeferrableBody....
Add support for Remy's EventSource Polyfill through long polling
diff --git a/lib/refinery/tasks/refinery.rb b/lib/refinery/tasks/refinery.rb index abc1234..def5678 100644 --- a/lib/refinery/tasks/refinery.rb +++ b/lib/refinery/tasks/refinery.rb @@ -2,7 +2,7 @@ # So here, we find them (if there are any) and include them into rake. extra_rake_tasks = [] if defined?(Refinery) && Ref...
Fix pathname because of different interface in 1.9.x
diff --git a/lib/fixture_dependencies/rspec/sequel.rb b/lib/fixture_dependencies/rspec/sequel.rb index abc1234..def5678 100644 --- a/lib/fixture_dependencies/rspec/sequel.rb +++ b/lib/fixture_dependencies/rspec/sequel.rb @@ -1,3 +1,5 @@+require 'fixture_dependencies/helper_methods' + if defined?(RSpec) example_grou...
Use FixtureDependencies::HelperMethods in rspec integration
diff --git a/lib/github_changelog_generator/reader.rb b/lib/github_changelog_generator/reader.rb index abc1234..def5678 100644 --- a/lib/github_changelog_generator/reader.rb +++ b/lib/github_changelog_generator/reader.rb @@ -0,0 +1,74 @@+# +# Author:: Enrico Stahn <mail@enricostahn.com> +# +# Copyright 2014, Zanui, <en...
Implement Reader class to parse ChangeLog.md
diff --git a/lib/starting_blocks/minitest_contract.rb b/lib/starting_blocks/minitest_contract.rb index abc1234..def5678 100644 --- a/lib/starting_blocks/minitest_contract.rb +++ b/lib/starting_blocks/minitest_contract.rb @@ -52,9 +52,9 @@ def execute_these_files files requires = files.map { |x| "require '#{x...
Use the new method for running a command.
diff --git a/lib/tasks/artefact_sections_to_tags.rake b/lib/tasks/artefact_sections_to_tags.rake index abc1234..def5678 100644 --- a/lib/tasks/artefact_sections_to_tags.rake +++ b/lib/tasks/artefact_sections_to_tags.rake @@ -0,0 +1,53 @@+namespace :sections do + + desc "Migrate artefacts to use tags for section inform...
Migrate the section field out of existence.
diff --git a/mssql/recipes/configure.rb b/mssql/recipes/configure.rb index abc1234..def5678 100644 --- a/mssql/recipes/configure.rb +++ b/mssql/recipes/configure.rb @@ -2,50 +2,24 @@ log_path = "#{node[:mssql][:root_path]}\\Logs" backup_path = "#{node[:mssql][:root_path]}\\Backups" -%w[ data_path log_path backup_pat...
Change mssql registry key creation method
diff --git a/lib/aptrust/solr_helper.rb b/lib/aptrust/solr_helper.rb index abc1234..def5678 100644 --- a/lib/aptrust/solr_helper.rb +++ b/lib/aptrust/solr_helper.rb @@ -3,7 +3,7 @@ def filter_on_institution(solr_parameters, user_parameters) if current_user and !current_user.is? :admin solr_parameter...
Improve solr fq based on Solrizer.solr_name as demoed by @cam156
diff --git a/lib/bandicoot/processor.rb b/lib/bandicoot/processor.rb index abc1234..def5678 100644 --- a/lib/bandicoot/processor.rb +++ b/lib/bandicoot/processor.rb @@ -26,9 +26,9 @@ end def process_scope(scope) - scoped_contents(scope.css).each_with_object([]) do |scoped_content, data| + scoped_co...
Change returned object from array to hash
diff --git a/lib/execjs/xtrn/routing.rb b/lib/execjs/xtrn/routing.rb index abc1234..def5678 100644 --- a/lib/execjs/xtrn/routing.rb +++ b/lib/execjs/xtrn/routing.rb @@ -1,5 +1,5 @@-module ExecJS::Xtrn - Racks=YAML.load <<-EOY +module ExecJS::Xtrn::Rack + Formats=YAML.load <<-EOY -: mime: text/x-yaml ...
Use Module instead of Proc
diff --git a/lib/email_address/active_record_validator.rb b/lib/email_address/active_record_validator.rb index abc1234..def5678 100644 --- a/lib/email_address/active_record_validator.rb +++ b/lib/email_address/active_record_validator.rb @@ -34,7 +34,7 @@ def validate_email(r,f) return if r[f].nil? e =...
Add option to customize error message Add option to customize error message when using ActiveRecordValidator.
diff --git a/lib/rack/handler/iodine.rb b/lib/rack/handler/iodine.rb index abc1234..def5678 100644 --- a/lib/rack/handler/iodine.rb +++ b/lib/rack/handler/iodine.rb @@ -7,7 +7,7 @@ # Runs a Rack app, as par the Rack handler requirements. def self.run(app, options = {}) # nested applications... is that a...
Fix listen host key name in options Hash Rack::Server passes the listen host as `:Host` and not `:Address`.
diff --git a/lib/stripe_mock/request_handlers/disputes.rb b/lib/stripe_mock/request_handlers/disputes.rb index abc1234..def5678 100644 --- a/lib/stripe_mock/request_handlers/disputes.rb +++ b/lib/stripe_mock/request_handlers/disputes.rb @@ -4,8 +4,8 @@ def Disputes.included(klass) klass.add_handler 'ge...
Fix dispute end point handlers sequence
diff --git a/lib/stripe_mock/request_handlers/disputes.rb b/lib/stripe_mock/request_handlers/disputes.rb index abc1234..def5678 100644 --- a/lib/stripe_mock/request_handlers/disputes.rb +++ b/lib/stripe_mock/request_handlers/disputes.rb @@ -6,26 +6,23 @@ klass.add_handler 'get /v1/disputes/(.*)', :get_di...
Clean up dispute endpoints implementation
diff --git a/lib/tasks/maintenance.rake b/lib/tasks/maintenance.rake index abc1234..def5678 100644 --- a/lib/tasks/maintenance.rake +++ b/lib/tasks/maintenance.rake @@ -0,0 +1,37 @@+namespace :maintenance do + + desc 'Transfer routes from one operator specified as OLD_OPERATOR to another specified as NEW_OPERATOR' + ...
Add task for transferring routes from one operator to another.
diff --git a/lib/to_partial_path_fix.rb b/lib/to_partial_path_fix.rb index abc1234..def5678 100644 --- a/lib/to_partial_path_fix.rb +++ b/lib/to_partial_path_fix.rb @@ -8,7 +8,7 @@ def to_partial_path parts = self.class._to_partial_path.split('/') pluralized_parts = parts[0..-3].map { |p| p.pluralize ...
Add .freeze on result path
diff --git a/jje/app/controllers/static_pages_controller.rb b/jje/app/controllers/static_pages_controller.rb index abc1234..def5678 100644 --- a/jje/app/controllers/static_pages_controller.rb +++ b/jje/app/controllers/static_pages_controller.rb @@ -18,11 +18,11 @@ def search if params[:q] and params[:q].length >...
Fix one part of broken search function
diff --git a/lib/tychus/parsers/base.rb b/lib/tychus/parsers/base.rb index abc1234..def5678 100644 --- a/lib/tychus/parsers/base.rb +++ b/lib/tychus/parsers/base.rb @@ -32,7 +32,7 @@ @uri = uri @recipe = Recipe.new @doc = Nokogiri::HTML(open(uri)) - @recipe_doc = @doc.css(root_doc) + @reci...
Fix bug when root_doc doesn't exist on inherited class
diff --git a/core/lib/spree/testing_support/factories/payment_factory.rb b/core/lib/spree/testing_support/factories/payment_factory.rb index abc1234..def5678 100644 --- a/core/lib/spree/testing_support/factories/payment_factory.rb +++ b/core/lib/spree/testing_support/factories/payment_factory.rb @@ -10,7 +10,7 @@ f...
Use check payment method factory in Check payment factory
diff --git a/app/helpers/db_helpers.rb b/app/helpers/db_helpers.rb index abc1234..def5678 100644 --- a/app/helpers/db_helpers.rb +++ b/app/helpers/db_helpers.rb @@ -1,7 +1,7 @@ module DbHelpers def db_concat(*args) env = ENV['RAILS_ENV'] || 'development' - adapter = ActiveRecord::Base.configurations[env]['ad...
CONFIG: Update method to get database name in db helper
diff --git a/lib/dm-types/enum.rb b/lib/dm-types/enum.rb index abc1234..def5678 100644 --- a/lib/dm-types/enum.rb +++ b/lib/dm-types/enum.rb @@ -18,7 +18,7 @@ end if defined?(::DataMapper::Validations) - unless model.skip_auto_validation_for?(self) + unless ::DataMapper::Validations...
Update to reflect recent change in dm-validations. Change in dm-validations was to an `@api private` method, but I don't see how to remove the coupling between dm-types and dm-validations without invasive changes.
diff --git a/lib/gitlab/plugin.rb b/lib/gitlab/plugin.rb index abc1234..def5678 100644 --- a/lib/gitlab/plugin.rb +++ b/lib/gitlab/plugin.rb @@ -13,24 +13,11 @@ end def self.execute(file, data) - # Prepare the hook subprocess. Attach a pipe to its stdin, and merge - # both its stdout and stderr int...
Use Gitlab::Popen instead of spawn [ci skip] Signed-off-by: Dmitriy Zaporozhets <be23d75b156792e5acab51b196a2deb155d35d6a@gmail.com>
diff --git a/lib/happy/context.rb b/lib/happy/context.rb index abc1234..def5678 100644 --- a/lib/happy/context.rb +++ b/lib/happy/context.rb @@ -22,8 +22,10 @@ old_controller = self.controller self.controller = new_controller - # execute permissions block - controller.class.permissions_blk.try(...
Make sure this stuff also works if happy/permissions is not loaded :)
diff --git a/lib/attr_accessible2strong_params/converter.rb b/lib/attr_accessible2strong_params/converter.rb index abc1234..def5678 100644 --- a/lib/attr_accessible2strong_params/converter.rb +++ b/lib/attr_accessible2strong_params/converter.rb @@ -5,9 +5,13 @@ class AttrAccessible2StrongParams::Converter def read_a...
Support attr_accessible appears multi times.
diff --git a/lib/leveldb.rb b/lib/leveldb.rb index abc1234..def5678 100644 --- a/lib/leveldb.rb +++ b/lib/leveldb.rb @@ -8,20 +8,28 @@ ## Loads or creates a LevelDB database as necessary, stored on disk at ## +pathname+. def new pathname - make pathname.to_str, true, false + make path_string(pat...
Use File.path to coerce pathname arguments into Strings in 1.9 The previous commit introduced the use of #to_str on the given pathname to coerce it into a String, matching the behavior of File.open and other file handling functions under 1.8. Ruby 1.9 introduces the File.path method for this purpose and deprecates th...
diff --git a/lib/specter.rb b/lib/specter.rb index abc1234..def5678 100644 --- a/lib/specter.rb +++ b/lib/specter.rb @@ -50,8 +50,10 @@ yield rescue Exception => exception + flunk nil, Specter::DifferentException unless exception.kind_of? expected + + ensure flunk nil, Specter::MissingException unless...
Fix check for raised exceptions.
diff --git a/docs/_plugins/copy_api_dirs.rb b/docs/_plugins/copy_api_dirs.rb index abc1234..def5678 100644 --- a/docs/_plugins/copy_api_dirs.rb +++ b/docs/_plugins/copy_api_dirs.rb @@ -16,7 +16,7 @@ # Copy over the scaladoc from each project into the docs directory. # This directory will be copied over to _site when `...
Update Jekyll plugin to look at Scala 2.9.2 docs
diff --git a/lib/frecon/database.rb b/lib/frecon/database.rb index abc1234..def5678 100644 --- a/lib/frecon/database.rb +++ b/lib/frecon/database.rb @@ -10,12 +10,23 @@ require "logger" require "mongoid" +require "tempfile" +require "yaml" + require "frecon/models" module FReCon class Database - def self.setu...
FReCon::Database.setup: Enable custom Hash for configuration. If a Hash is given, it is converted to yaml (via to_yaml) and written to a Tempfile. This Tempfile's path is passed to the Mongoid.load! method instead of the path to the "mongoid.yml" file. By default (If no `mongoid_hash' is given), FReCon::Database.setu...
diff --git a/lib/halation/config.rb b/lib/halation/config.rb index abc1234..def5678 100644 --- a/lib/halation/config.rb +++ b/lib/halation/config.rb @@ -5,6 +5,7 @@ module Halation # Application-wide configuraton. class Config + # :nodoc: DEFAULT_CONFIG_PATH = File.expand_path("~/.halation/config.yml").fr...
Add nodoc flag to DEFAULT_CONFIG_PATH.
diff --git a/config/application.rb b/config/application.rb index abc1234..def5678 100644 --- a/config/application.rb +++ b/config/application.rb @@ -28,6 +28,9 @@ # config.time_zone = 'Central Time (US & Canada)' config.time_zone = "London" + # Compress JS using a preprocessor. + config.assets.js_compr...
Enable the js_compressor option for Sprockets Because the default for Rails 6 is to use webpack for JS the Sprockets js_compressor option is not set in the generated production.rb environment file. This leads to bloated file sizes in production so re-enable compression by explicitly setting it.
diff --git a/config/application.rb b/config/application.rb index abc1234..def5678 100644 --- a/config/application.rb +++ b/config/application.rb @@ -18,5 +18,6 @@ config.filter_parameters += [:password] config.assets.enabled = true config.assets.version = '1.0' + config.serve_static_assets = true en...
Add static assets config entry