diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,4 +1,8 @@ require 'chefspec' require 'chefspec/berkshelf' +RSpec.configure do |config| + config.color = true +end + at_exit { ChefSpec::Coverage.report! }
Add the basic spec helper
diff --git a/tests/rackspace/requests/compute_v2/attachment_tests.rb b/tests/rackspace/requests/compute_v2/attachment_tests.rb index abc1234..def5678 100644 --- a/tests/rackspace/requests/compute_v2/attachment_tests.rb +++ b/tests/rackspace/requests/compute_v2/attachment_tests.rb @@ -0,0 +1,68 @@+Shindo.tests('Fog::Com...
[rackspace|compute] Add tests for volume attachments.
diff --git a/app/controllers/api/items_controller.rb b/app/controllers/api/items_controller.rb index abc1234..def5678 100644 --- a/app/controllers/api/items_controller.rb +++ b/app/controllers/api/items_controller.rb @@ -3,12 +3,14 @@ item_type_id = params[:item_type_id] number = params[:number] agenda_id...
Add Title Search For API Items
diff --git a/app/controllers/libraries_controller.rb b/app/controllers/libraries_controller.rb index abc1234..def5678 100644 --- a/app/controllers/libraries_controller.rb +++ b/app/controllers/libraries_controller.rb @@ -5,7 +5,7 @@ def search items = Library::Item.search { fulltext params[:query] } - @item...
Fix library json search results
diff --git a/app/demo_data/fake_service_generator.rb b/app/demo_data/fake_service_generator.rb index abc1234..def5678 100644 --- a/app/demo_data/fake_service_generator.rb +++ b/app/demo_data/fake_service_generator.rb @@ -16,7 +16,7 @@ return { student_id: @student.id, service_type_id: service_type_id,...
Update demo data generator with provided_by_educator_name
diff --git a/spec/lib/bigdecimal_spec.rb b/spec/lib/bigdecimal_spec.rb index abc1234..def5678 100644 --- a/spec/lib/bigdecimal_spec.rb +++ b/spec/lib/bigdecimal_spec.rb @@ -2,6 +2,6 @@ describe BigDecimal do it 'should provide a human-readable inspect for BigDecimal' do - expect(BigDecimal.new('33.45').inspect)...
Remove deprecated BigDecimal.new on move to ruby 2.6.2.
diff --git a/spec/models/trigger_spec.rb b/spec/models/trigger_spec.rb index abc1234..def5678 100644 --- a/spec/models/trigger_spec.rb +++ b/spec/models/trigger_spec.rb @@ -9,12 +9,6 @@ @page.stub!(:class).and_return(Page) @page.stub!(:destroyed?).and_return(false) Content.stub!(:find).and_return(@page) -...
Use same trick to avoid sleep in all specs.
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -14,10 +14,12 @@ get 'email' end end + resources :sessions resources :password_resets resources :books do resources :texts do + resources :comments coll...
Update route file with Comment resource
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -7,7 +7,7 @@ resources :teams get 'repositories' => "dashboard#repositories" - post 'index' => "dashboard#index" + match 'index', to: 'dashboard#index', via: [:get, :post] post 'sc...
Fix /index direct access issue
diff --git a/lib/cli.rb b/lib/cli.rb index abc1234..def5678 100644 --- a/lib/cli.rb +++ b/lib/cli.rb @@ -1,5 +1,5 @@-require 'colorize' -require File.expand_path('../document_generator.rb', __FILE__) +require "colorize" +require File.expand_path("../document_generator.rb", __FILE__) module Rambo class CLI @@ -47,...
Change single quotes to double
diff --git a/ivy-serializers.gemspec b/ivy-serializers.gemspec index abc1234..def5678 100644 --- a/ivy-serializers.gemspec +++ b/ivy-serializers.gemspec @@ -20,5 +20,5 @@ spec.add_development_dependency 'json-schema-rspec', '~> 0.0.4' spec.add_development_dependency 'rake' spec.add_development_dependency 'rspec...
Update simplecov requirement from ~> 0.20.0 to ~> 0.21.0 Updates the requirements on [simplecov](https://github.com/simplecov-ruby/simplecov) to permit the latest version. - [Release notes](https://github.com/simplecov-ruby/simplecov/releases) - [Changelog](https://github.com/simplecov-ruby/simplecov/blob/main/CHANGEL...
diff --git a/app/uploaders/hero_image_uploader.rb b/app/uploaders/hero_image_uploader.rb index abc1234..def5678 100644 --- a/app/uploaders/hero_image_uploader.rb +++ b/app/uploaders/hero_image_uploader.rb @@ -16,7 +16,7 @@ def apply_blur manipulate! do |img| - img.blur_image(0, 4) + img.blur_image(0,...
Change the hero image blur again
diff --git a/spec/models/concerns/image_file_manager_spec.rb b/spec/models/concerns/image_file_manager_spec.rb index abc1234..def5678 100644 --- a/spec/models/concerns/image_file_manager_spec.rb +++ b/spec/models/concerns/image_file_manager_spec.rb @@ -0,0 +1,77 @@+require 'rails_helper' + +RSpec.describe ImageFileMana...
Add spec for file manager, since it appears we are going to use it for now
diff --git a/tools/reconnect_vms.rb b/tools/reconnect_vms.rb index abc1234..def5678 100644 --- a/tools/reconnect_vms.rb +++ b/tools/reconnect_vms.rb @@ -0,0 +1,55 @@+#!/usr/bin/env ruby +require File.expand_path('../config/environment', __dir__) +require "optimist" + +opts = Optimist.options do + opt :ems_id, "The ID ...
Add a tool to assist in reconnecting vms
diff --git a/japanese_calendar.gemspec b/japanese_calendar.gemspec index abc1234..def5678 100644 --- a/japanese_calendar.gemspec +++ b/japanese_calendar.gemspec @@ -21,6 +21,8 @@ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] + spec.required_ruby_version = ...
Add required Ruby version to gemspec
diff --git a/presenters/finder_signup_content_item_presenter.rb b/presenters/finder_signup_content_item_presenter.rb index abc1234..def5678 100644 --- a/presenters/finder_signup_content_item_presenter.rb +++ b/presenters/finder_signup_content_item_presenter.rb @@ -1,6 +1,6 @@ class FinderSignupContentItemPresenter < Co...
Use a different title for signup pages If a different title for signup pages is present in the metadata hash use that instead.
diff --git a/lib/ort.rb b/lib/ort.rb index abc1234..def5678 100644 --- a/lib/ort.rb +++ b/lib/ort.rb @@ -23,11 +23,12 @@ @url = Mapotempo::Application.config.optimize_url def self.optimize(capacity, matrix, time_window) - key = {capacity: capacity, matrix: matrix, time_window: time_window}.to_json + key = ...
Use matrix hash as optimizer cache key
diff --git a/rails_event_store/spec/support/test_application.rb b/rails_event_store/spec/support/test_application.rb index abc1234..def5678 100644 --- a/rails_event_store/spec/support/test_application.rb +++ b/rails_event_store/spec/support/test_application.rb @@ -3,6 +3,7 @@ require 'securerandom' class TestApplica...
Disable HostAuthorization middleware in testing. https://stackoverflow.com/a/56238430
diff --git a/Library/Homebrew/test/unpack_strategy/subversion_spec.rb b/Library/Homebrew/test/unpack_strategy/subversion_spec.rb index abc1234..def5678 100644 --- a/Library/Homebrew/test/unpack_strategy/subversion_spec.rb +++ b/Library/Homebrew/test/unpack_strategy/subversion_spec.rb @@ -1,22 +1,26 @@ require_relative ...
Add spec for SVN directory name containing `@`.
diff --git a/Casks/rubymine-bundled-jdk.rb b/Casks/rubymine-bundled-jdk.rb index abc1234..def5678 100644 --- a/Casks/rubymine-bundled-jdk.rb +++ b/Casks/rubymine-bundled-jdk.rb @@ -0,0 +1,20 @@+cask :v1 => 'rubymine-bundled-jdk' do + version '7.1' + sha256 '2e9fced43c8e14ffbc82a72a8f6cde1cbab50861db079162ca5ff34c668b...
Add cask for RubyMine with bundled JDK
diff --git a/create-images.rb b/create-images.rb index abc1234..def5678 100644 --- a/create-images.rb +++ b/create-images.rb @@ -7,23 +7,16 @@ include ProgressBar::WithProgress end -short_revs = `git rev-list master`.lines.map { |line| line.strip[0...4] } -if short_revs.length != short_revs.uniq.length - raise "S...
Remove and simplify checks now that we're using package.json versioning. Also, remove unused leftover values.
diff --git a/lib/action_args/abstract_controller.rb b/lib/action_args/abstract_controller.rb index abc1234..def5678 100644 --- a/lib/action_args/abstract_controller.rb +++ b/lib/action_args/abstract_controller.rb @@ -6,17 +6,16 @@ values = if defined? ActionController::StrongParameters target_model_name ...
Revert "reduce number of objects" This reverts commit 59d71b6e525274c861bfcbd0142f7753473f4d4a. Conflicts: lib/action_args/abstract_controller.rb reason: compacting all parameters will eliminate nil parameters
diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index abc1234..def5678 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -1,3 +1,3 @@ # Be sure to restart your server when you modify this file. -Rails.application.config.session_sto...
Add domain for session store:
diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index abc1234..def5678 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -1,3 +1,3 @@ # Be sure to restart your server when you modify this file. -PaperSearchApi::Application.config.s...
Make our session cookie good across all subdomains
diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index abc1234..def5678 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -5,7 +5,7 @@ # Make sure the secret is at least 30 characters and all random, # no regular words or you'll be ...
Make the session cookie key dependent on the Rails environment.
diff --git a/plugin.rb b/plugin.rb index abc1234..def5678 100644 --- a/plugin.rb +++ b/plugin.rb @@ -5,7 +5,7 @@ after_initialize do SessionController.class_eval do - skip_before_filter :check_xhr, only: ['sso', 'sso_login', 'become', 'sso_provider', 'sso_redirect'] + skip_before_action :check_xhr, only: ['s...
Switch away from deprecated skip_before_filter
diff --git a/recipes/unpack/50-install-msys-packages.rake b/recipes/unpack/50-install-msys-packages.rake index abc1234..def5678 100644 --- a/recipes/unpack/50-install-msys-packages.rake +++ b/recipes/unpack/50-install-msys-packages.rake @@ -12,8 +12,17 @@ msys_sh <<-EOT mount #{unpackdir_abs.inspect} #{pmrootdir...
Fix "Permission denied" error when touching ruby.exe See https://ci.appveyor.com/project/larskanis/rubyinstaller2-hbuor/builds/30223212/job/sjxb12w5bg86hwqn
diff --git a/lib/db/migrate/2_create_submissions.rb b/lib/db/migrate/2_create_submissions.rb index abc1234..def5678 100644 --- a/lib/db/migrate/2_create_submissions.rb +++ b/lib/db/migrate/2_create_submissions.rb @@ -18,6 +18,10 @@ t.string :mongoid_id t.string :mongoid_user_id + + t.string :viewers...
Put deprecated fields back on Submission table. They can be deleted when the proper join tables have been implemented.
diff --git a/marcato.rb b/marcato.rb index abc1234..def5678 100644 --- a/marcato.rb +++ b/marcato.rb @@ -21,11 +21,12 @@ def play(query = '') searches = query.split(/\s+/) + searches = [''] if searches.empty? playlists.select { |k,v| searches.include?(k) }.each do |name, terms| searches += terms...
Work in non-flat directory structures. No args for all songs.
diff --git a/lib/scanny/issue.rb b/lib/scanny/issue.rb index abc1234..def5678 100644 --- a/lib/scanny/issue.rb +++ b/lib/scanny/issue.rb @@ -17,7 +17,7 @@ def to_s cwe_suffix = if @cwe - " (" + @cwe.to_a.map { |cwe| "CWE-#{cwe}" }.join(", ") + ")" + " (" + Array(@cwe).map { |cwe| "CWE-#{cwe}"...
Fix specs for ruby 1.9 Force to create Array from @cwe
diff --git a/Formula/fu.rb b/Formula/fu.rb index abc1234..def5678 100644 --- a/Formula/fu.rb +++ b/Formula/fu.rb @@ -0,0 +1,37 @@+class Fu < Formula + desc "intuitive alternative to the find utility" + homepage "https://github.com/kbrgl/fu" + url "https://github.com/kbrgl/fu/archive/v1.1.2.tar.gz" + sha256 "34dd0ea...
Add Homebrew formula for 1.1.2
diff --git a/app/controllers/kuroko2/sessions_controller.rb b/app/controllers/kuroko2/sessions_controller.rb index abc1234..def5678 100644 --- a/app/controllers/kuroko2/sessions_controller.rb +++ b/app/controllers/kuroko2/sessions_controller.rb @@ -35,7 +35,7 @@ end def valid_google_hosted_domain? - hd = Kuro...
Fix google_oauth2 hd check: fix hd option fetching
diff --git a/app/jobs/chronicle_characters_broadcast_job.rb b/app/jobs/chronicle_characters_broadcast_job.rb index abc1234..def5678 100644 --- a/app/jobs/chronicle_characters_broadcast_job.rb +++ b/app/jobs/chronicle_characters_broadcast_job.rb @@ -6,8 +6,13 @@ def perform(ids, chronicle, type, thing) ids.each...
Fix crash on adding character to chronicle
diff --git a/app/presenters/drug_safety_update_presenter.rb b/app/presenters/drug_safety_update_presenter.rb index abc1234..def5678 100644 --- a/app/presenters/drug_safety_update_presenter.rb +++ b/app/presenters/drug_safety_update_presenter.rb @@ -19,14 +19,6 @@ } end - def beta? - true - end - - def be...
Remove unused code in DSU This isn't used anymore now that we define this using the Finder in the Document Presenter.
diff --git a/lib/tasks/cache_missing_responses.rake b/lib/tasks/cache_missing_responses.rake index abc1234..def5678 100644 --- a/lib/tasks/cache_missing_responses.rake +++ b/lib/tasks/cache_missing_responses.rake @@ -0,0 +1,11 @@+namespace :cache do + desc "Caches uncached missing_responses" + task :missing_responses...
Add a rake task to cache any missing_responses that have not been cached Only those that have Campaigns associated, because that's the only place we use them
diff --git a/lib/yard/logging.rb b/lib/yard/logging.rb index abc1234..def5678 100644 --- a/lib/yard/logging.rb +++ b/lib/yard/logging.rb @@ -2,12 +2,17 @@ module YARD class Logger < ::Logger + def initialize(*args) + super + self.level = INFO + end + def debug(*args) - self.level = Lo...
Update log to default to info log level
diff --git a/libObjCAttr.podspec b/libObjCAttr.podspec index abc1234..def5678 100644 --- a/libObjCAttr.podspec +++ b/libObjCAttr.podspec @@ -15,10 +15,10 @@ s.requires_arc = true - s.source_files = 'libObjCAttr/**/*.{h,m}' + s.source_files = 'libObjCAttr/**/*.{h,m}', 'libObjCAttr/Resources/*', 'tools/binaries...
Fix for podspec to prevent inclusion of scripts and binaries into a client package.
diff --git a/lib/nanite/exchanges.rb b/lib/nanite/exchanges.rb index abc1234..def5678 100644 --- a/lib/nanite/exchanges.rb +++ b/lib/nanite/exchanges.rb @@ -1,4 +1,11 @@ module Nanite + # Using these methods actors can participate in distributed processing + # with other nodes using topic exchange publishing (classic...
Document how Nanite agents can participate in distrubuted processing using topic queues and push_to_exchange/subscribe_to_exchange. Signed-off-by: ezmobius <4aca359fa1b78e51bc8226c4f161d16fdc1e21c8@engineyard.com>
diff --git a/tp.gemspec b/tp.gemspec index abc1234..def5678 100644 --- a/tp.gemspec +++ b/tp.gemspec @@ -10,8 +10,8 @@ gem.version = TP::VERSION gem.authors = ["Justin Campbell"] gem.email = ["justin@justincampbell.me"] - gem.description = "tp" - gem.summary = "tp" + gem.summary ...
Add gem summary and description
diff --git a/test/boot.rb b/test/boot.rb index abc1234..def5678 100644 --- a/test/boot.rb +++ b/test/boot.rb @@ -1,7 +1,8 @@ require 'pathname' -require 'test/unit' +require 'active_support/version' require 'active_support/test_case' +require 'active_support/testing/autorun' if ActiveSupport::VERSION::MAJOR >= 4 ...
Fix tests autorun for Rails >= 4
diff --git a/lib/utils/integer_ex.rb b/lib/utils/integer_ex.rb index abc1234..def5678 100644 --- a/lib/utils/integer_ex.rb +++ b/lib/utils/integer_ex.rb @@ -0,0 +1,13 @@+module IntegerEx + refine Integer.singleton_class do + def max() + n_bytes = [42].pack('i').size + n_bits = n_bytes * 16 + 2 ** (n_...
Create IntegerEx module to expand Integer class
diff --git a/hiera-simulator.gemspec b/hiera-simulator.gemspec index abc1234..def5678 100644 --- a/hiera-simulator.gemspec +++ b/hiera-simulator.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'hiera-simulator' - s.version = '0.3.0' + s.version = '0.2.3' s.authors = 'Kevin Paul...
Revert version bump since this is a CI change only
diff --git a/app/models/bank.rb b/app/models/bank.rb index abc1234..def5678 100644 --- a/app/models/bank.rb +++ b/app/models/bank.rb @@ -4,6 +4,8 @@ has_vcards def to_s + return "" unless vcard + [vcard.full_name, vcard.locality].compact.join(', ') end end
Add guard to not bail in Bank.to_s without vcard.
diff --git a/app/models/dojo.rb b/app/models/dojo.rb index abc1234..def5678 100644 --- a/app/models/dojo.rb +++ b/app/models/dojo.rb @@ -1,6 +1,6 @@ class Dojo < ApplicationRecord - NUM_OF_COUNTRIES = "75" - NUM_OF_WHOLE_DOJOS = "1,500" + NUM_OF_COUNTRIES = "85" + NUM_OF_WHOLE_DOJOS = "1,600" NUM_OF_JAPA...
Update to the global stats at the end of 2017: > ending the year with 1,600 Dojos running regularly in 85 countries cf. Happy New Year from the CoderDojo Foundation https://youtu.be/l68CNoby_bg
diff --git a/app/models/unit.rb b/app/models/unit.rb index abc1234..def5678 100644 --- a/app/models/unit.rb +++ b/app/models/unit.rb @@ -12,7 +12,7 @@ validates_attachment_content_type :image, content_type: /\Aimage\/.*\z/ validates :key, :name, presence: true - validates :key, uniqueness: true, format: { with:...
Fix Unit key validation regex
diff --git a/lib/noaa_client/responses/reactive_xml_response.rb b/lib/noaa_client/responses/reactive_xml_response.rb index abc1234..def5678 100644 --- a/lib/noaa_client/responses/reactive_xml_response.rb +++ b/lib/noaa_client/responses/reactive_xml_response.rb @@ -18,7 +18,11 @@ end def source - @...
Add null object to reactive response.
diff --git a/app/bitmap.rb b/app/bitmap.rb index abc1234..def5678 100644 --- a/app/bitmap.rb +++ b/app/bitmap.rb @@ -30,7 +30,7 @@ ## Draw a horizontal segment with the given colour def draw_h(x1, x2, y, colour) - @bm[y - 1][x1 - 1..x2 - x1] = Array.new(x2 - x1 + 1, colour) + @bm[y - 1][x1 - 1..x2 - 1] = A...
Fix bug concerning length of horizontally drawn segment Argument x2 in Bitmap#draw_h is exact column, no need to calculate the segment's legnth
diff --git a/migrations/7_remove_current_server_status_index.rb b/migrations/7_remove_current_server_status_index.rb index abc1234..def5678 100644 --- a/migrations/7_remove_current_server_status_index.rb +++ b/migrations/7_remove_current_server_status_index.rb @@ -1,7 +1,11 @@ class RemoveCurrentServerStatusIndex < Act...
Fix down migration for removing node index
diff --git a/spec/classes/indexing__middle_manager_spec.rb b/spec/classes/indexing__middle_manager_spec.rb index abc1234..def5678 100644 --- a/spec/classes/indexing__middle_manager_spec.rb +++ b/spec/classes/indexing__middle_manager_spec.rb @@ -0,0 +1,64 @@+require 'spec_helper' + +describe 'druid::indexing::middle_man...
Add unit tests for the druid::indexing::middle_manager class.
diff --git a/spec/integration/basic_with_arguments_spec.rb b/spec/integration/basic_with_arguments_spec.rb index abc1234..def5678 100644 --- a/spec/integration/basic_with_arguments_spec.rb +++ b/spec/integration/basic_with_arguments_spec.rb @@ -1,3 +1,5 @@+require 'readline' + describe "Escort basic app that requires ...
Make sure readline is required for test
diff --git a/Casks/atom.rb b/Casks/atom.rb index abc1234..def5678 100644 --- a/Casks/atom.rb +++ b/Casks/atom.rb @@ -1,5 +1,5 @@ class Atom < Cask - url 'http://atom.io/download/mac' + url 'https://atom.io/download/mac' homepage 'http://atom.io' version 'latest' sha256 :no_check
Change Atom download to HTTPS
diff --git a/Casks/flow.rb b/Casks/flow.rb index abc1234..def5678 100644 --- a/Casks/flow.rb +++ b/Casks/flow.rb @@ -4,7 +4,7 @@ url 'http://www.getflow.com/mac/download' name 'Flow' - homepage 'http://www.getflow.com/' + homepage 'https://www.getflow.com/' license :commercial app 'Flow.app'
Fix homepage to use SSL in Flow Cask The HTTP URL is already getting redirected to HTTPS. Using the HTTPS URL directly makes it more secure and saves a HTTP round-trip.
diff --git a/Casks/toad.rb b/Casks/toad.rb index abc1234..def5678 100644 --- a/Casks/toad.rb +++ b/Casks/toad.rb @@ -2,7 +2,7 @@ version '2.4.0' sha256 '74f7d6a26c0bd5eaec2c3d2e02994fe9e89131e3f1baa8742416f9dc6222e4af' - # http://community-downloads.quest.com/toadsoft/ was verified as official when first introd...
Fix `url` stanza comment for Toad.
diff --git a/Casks/ynab.rb b/Casks/ynab.rb index abc1234..def5678 100644 --- a/Casks/ynab.rb +++ b/Casks/ynab.rb @@ -1,8 +1,8 @@ class Ynab < Cask - version '4.3.451' - sha256 '088f61e0e772193f6dac61e22067b1696246f214d7c9887f95d180cfabb57e25' + version '4.3.541' + sha256 '38ec8a050fde9be1375f3fe184988eb81358b3a26b7...
Update YNAB 4 from 4.3.451 to 4.3.541 Redo of PR #5084 overwritten by commit d4605c8.
diff --git a/core/spec/models/spree/calculator/shipping/price_sack_spec.rb b/core/spec/models/spree/calculator/shipping/price_sack_spec.rb index abc1234..def5678 100644 --- a/core/spec/models/spree/calculator/shipping/price_sack_spec.rb +++ b/core/spec/models/spree/calculator/shipping/price_sack_spec.rb @@ -1,6 +1,6 @@...
Change model tested to correct model Change model tested from Spree::Calculator::PriceSack to Spree::Calculator::Shipping::PriceSack.
diff --git a/app/api/v0.rb b/app/api/v0.rb index abc1234..def5678 100644 --- a/app/api/v0.rb +++ b/app/api/v0.rb @@ -3,9 +3,11 @@ class ApiV0 < Grape::API + swagger_path = 'swagger' + get do # Redirect base url to Swagger docs - redirect "http://petstore.swagger.io/?url=#{request.scheme}://#{request.hos...
Change swagger doc mount path.
diff --git a/xo.gemspec b/xo.gemspec index abc1234..def5678 100644 --- a/xo.gemspec +++ b/xo.gemspec @@ -18,6 +18,8 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ['lib'] + spec.required_ruby_version = '>= 1.9.3' + spec.add_development_dependency 'rake' spec.add_d...
Put the Ruby version requirement within the gemspec
diff --git a/spec/json_test_data/data_structures/helpers/number_helper_spec.rb b/spec/json_test_data/data_structures/helpers/number_helper_spec.rb index abc1234..def5678 100644 --- a/spec/json_test_data/data_structures/helpers/number_helper_spec.rb +++ b/spec/json_test_data/data_structures/helpers/number_helper_spec.rb...
Add test coverage for number helper
diff --git a/disqus_rails.gemspec b/disqus_rails.gemspec index abc1234..def5678 100644 --- a/disqus_rails.gemspec +++ b/disqus_rails.gemspec @@ -21,6 +21,7 @@ spec.add_development_dependency "bundler" spec.add_development_dependency "rake" spec.add_development_dependency "rspec" + spec.add_development_dependen...
Add sqlite3 development dependency for testing db
diff --git a/test/integration/multisite_test.rb b/test/integration/multisite_test.rb index abc1234..def5678 100644 --- a/test/integration/multisite_test.rb +++ b/test/integration/multisite_test.rb @@ -26,7 +26,7 @@ site! 'site1' sign_in_as people(:jim) get '/search', :browse => true - assert_select 'bo...
Change test to pass with changes made to view.
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,9 @@ $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__) require "guideline" + +RSpec.configure do |config| + config.treat_symbols_as_metadata_keys_with_true_val...
Enable :focus option in rspec
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,21 +1,21 @@ # frozen_string_literal: true -if RUBY_VERSION > '1.9' and (ENV['COVERAGE'] || ENV['TRAVIS']) - require 'simplecov' - require 'coveralls' +if ENV["COVERAGE"] || ...
Change to remove ruby version check, update formatter to use new api and use double quoted strings
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,6 @@ require 'mimic' require 'rspec/expectations' -Rspec.configure do |config| +RSpec.configure do |config| config.mock_with :mocha end
Use "RSpec" instead of deprecated "Rspec".
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,11 +5,14 @@ require 'simplecov' require 'coveralls' -SimpleCov.formatter = Coveralls::SimpleCov::Formatter -SimpleCov.start do +Coveralls.wear! +SimpleCov.formatter = SimpleC...
Update coveralls setting to detect all files in library
diff --git a/spec/exporters/formatters/section_indexable_formatter_spec.rb b/spec/exporters/formatters/section_indexable_formatter_spec.rb index abc1234..def5678 100644 --- a/spec/exporters/formatters/section_indexable_formatter_spec.rb +++ b/spec/exporters/formatters/section_indexable_formatter_spec.rb @@ -4,7 +4,7 @@...
Rename spec double `manual_section` -> `section` We renamed SpecialistDocument to Section in 9b0ef01e0. ManualSection is another synonym for Section so this commit renames for consistency.
diff --git a/app/serializers/api/v1/project_serializer.rb b/app/serializers/api/v1/project_serializer.rb index abc1234..def5678 100644 --- a/app/serializers/api/v1/project_serializer.rb +++ b/app/serializers/api/v1/project_serializer.rb @@ -11,7 +11,15 @@ end link(:self) { api_project_path(object.id) } -...
Make project links consistent with user links
diff --git a/app/workers/import_connection_data_worker.rb b/app/workers/import_connection_data_worker.rb index abc1234..def5678 100644 --- a/app/workers/import_connection_data_worker.rb +++ b/app/workers/import_connection_data_worker.rb @@ -5,16 +5,21 @@ # rubocop:disable Metrics/MethodLength # rubocop:disable Met...
Add created at from imported item
diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index abc1234..def5678 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -1,6 +1,6 @@ # Be sure to restart your server when you modify this file. -Rooms::Application.config.session_st...
Make session cookie domain :all for single sign out
diff --git a/spec/initializers/trusted_proxies_spec.rb b/spec/initializers/trusted_proxies_spec.rb index abc1234..def5678 100644 --- a/spec/initializers/trusted_proxies_spec.rb +++ b/spec/initializers/trusted_proxies_spec.rb @@ -0,0 +1,51 @@+require 'spec_helper' + +describe 'trusted_proxies', lib: true do + context '...
Add tests for setting trusted_proxies Each test reloads the trusted_proxies initializer, which in turn will set Rails.application.config.action_dispatch.trusted_proxies to something new. This will leak into the other tests, but the middleware that it is used in has already been loaded for the whole test suite, so it s...
diff --git a/spec/models/canonical_temperature_spec.rb b/spec/models/canonical_temperature_spec.rb index abc1234..def5678 100644 --- a/spec/models/canonical_temperature_spec.rb +++ b/spec/models/canonical_temperature_spec.rb @@ -2,10 +2,10 @@ describe CanonicalTemperature do describe "getting readings" do - it ...
Remove test relating to CanonicalTemperature class
diff --git a/app/services/spree_shopify_importer/importers/order_importer.rb b/app/services/spree_shopify_importer/importers/order_importer.rb index abc1234..def5678 100644 --- a/app/services/spree_shopify_importer/importers/order_importer.rb +++ b/app/services/spree_shopify_importer/importers/order_importer.rb @@ -27,...
Fix typo after changing namespace
diff --git a/discover.gemspec b/discover.gemspec index abc1234..def5678 100644 --- a/discover.gemspec +++ b/discover.gemspec @@ -6,8 +6,8 @@ Gem::Specification.new do |spec| spec.name = "discover" spec.version = Discover::VERSION - spec.authors = ["Jonathan Rudenberg"] - spec.email ...
Add Lewis Marshall to gem authors Signed-off-by: Lewis Marshall <748e1641a368164906d4a0c0e3965345453dcc93@lmars.net>
diff --git a/exe/factorize-timeline.rb b/exe/factorize-timeline.rb index abc1234..def5678 100644 --- a/exe/factorize-timeline.rb +++ b/exe/factorize-timeline.rb @@ -15,7 +15,7 @@ puts "Following user stream and tweeting as @#{self_user}" Tw::Client::Stream.new(self_user).user_stream do |tweet| next if tweet.user == ...
Fix regexp to fetch intger 437=23x19 now yields 437, 23, and 19. 23 was missing before.
diff --git a/cookbooks/chef/attributes/default.rb b/cookbooks/chef/attributes/default.rb index abc1234..def5678 100644 --- a/cookbooks/chef/attributes/default.rb +++ b/cookbooks/chef/attributes/default.rb @@ -5,4 +5,4 @@ default[:chef][:server][:version] = "12.17.33" # Set the default client version -default[:chef][...
Update chef client to 14.4.56
diff --git a/lib/config_file_loader.rb b/lib/config_file_loader.rb index abc1234..def5678 100644 --- a/lib/config_file_loader.rb +++ b/lib/config_file_loader.rb @@ -3,7 +3,8 @@ class ConfigFileLoader DEFAULT_PHUSION_GITHUB_USERS = [ 'FoobarWidget', - 'OnixGH' + 'OnixGH', + 'camjn' ] def load
Add Camden to list of Phusion Github users
diff --git a/lib/daimon/render/html.rb b/lib/daimon/render/html.rb index abc1234..def5678 100644 --- a/lib/daimon/render/html.rb +++ b/lib/daimon/render/html.rb @@ -3,9 +3,9 @@ class HTML < Redcarpet::Render::HTML def block_quote(quote) blockquotes = quote.each_line("").map do |paragraph| - ...
Add line breaks to close to the original behavior
diff --git a/lib/data_loader/people.rb b/lib/data_loader/people.rb index abc1234..def5678 100644 --- a/lib/data_loader/people.rb +++ b/lib/data_loader/people.rb @@ -11,12 +11,12 @@ def self.load_missing_images! Person.where(small_image_url: nil).find_each do |person| puts "Checking small photo for p...
Use ssl for member images now
diff --git a/lib/engineyard/version.rb b/lib/engineyard/version.rb index abc1234..def5678 100644 --- a/lib/engineyard/version.rb +++ b/lib/engineyard/version.rb @@ -1,4 +1,4 @@ module EY - VERSION = '3.0.1' + VERSION = '3.0.2.pre' ENGINEYARD_SERVERSIDE_VERSION = ENV['ENGINEYARD_SERVERSIDE_VERSION'] || '2.4.2' end...
Add .pre for next release
diff --git a/app/helpers/page_fragments/fragments_helper.rb b/app/helpers/page_fragments/fragments_helper.rb index abc1234..def5678 100644 --- a/app/helpers/page_fragments/fragments_helper.rb +++ b/app/helpers/page_fragments/fragments_helper.rb @@ -13,7 +13,7 @@ def title(new_title=nil) # Prevent title from ...
Fix title method for error pages
diff --git a/black_list.rb b/black_list.rb index abc1234..def5678 100644 --- a/black_list.rb +++ b/black_list.rb @@ -9,6 +9,7 @@ ["coq-compcert.3.1.0", "Error: Corrupted compiled interface"], # flaky Makefile ["coq-compcert.3.2.0", "Error: Corrupted compiled interface"], # flaky Makefile ["coq-compcert.3.3.0", ...
Add compcert 3.4 to the black-list
diff --git a/Rakefile.rb b/Rakefile.rb index abc1234..def5678 100644 --- a/Rakefile.rb +++ b/Rakefile.rb @@ -3,12 +3,16 @@ $projectSolution = 'src/MongoMigrations.sln' $artifactsPath = "build" -$nugetFeedPath = ENV["NuGetDevFeed"] +$nugetFeedPath = ENV["NuGetDevFeed"] || '.' $srcPath = File.expand_path('src') ta...
Fix up rake builds after removing old school nuget package restore via msbuild. Now, run nuget restore before building. Also, store package locally if no NuGetDevFeed specified in an environment variable.
diff --git a/RubyTest.rb b/RubyTest.rb index abc1234..def5678 100644 --- a/RubyTest.rb +++ b/RubyTest.rb @@ -4,4 +4,9 @@ name.reverse! puts "Your name backwards is #{name}" name.upcase! -puts "Your name backwards and upcase is #{name}!"+puts "Your name backwards and upcase is #{name}!" +puts "Enter your last name:" +...
Add last name functionality for double the fun...ctionality
diff --git a/db/migrate/004_add_visual_to_entries.rb b/db/migrate/004_add_visual_to_entries.rb index abc1234..def5678 100644 --- a/db/migrate/004_add_visual_to_entries.rb +++ b/db/migrate/004_add_visual_to_entries.rb @@ -0,0 +1,8 @@+class AddVisualToEntries < ActiveRecord::Migration + def change + add_column :entri...
Add migration file that add title, description, visual_url, locale to entries
diff --git a/adapter_extensions.gemspec b/adapter_extensions.gemspec index abc1234..def5678 100644 --- a/adapter_extensions.gemspec +++ b/adapter_extensions.gemspec @@ -21,7 +21,6 @@ s.add_runtime_dependency('activesupport', '>= 2.1.0') s.add_runtime_dependency('activerecord', '>= 2.1.0') s.add_dev...
Remove mysql2 from development dependencies - not needed anymore now.
diff --git a/core/app/models/spree/option_type.rb b/core/app/models/spree/option_type.rb index abc1234..def5678 100644 --- a/core/app/models/spree/option_type.rb +++ b/core/app/models/spree/option_type.rb @@ -21,7 +21,7 @@ default_scope -> { order(:position) } - accepts_nested_attributes_for :option_values, ...
Change requirements for rejecting an option value Before if either field was blank it would be rejected by the option type model. This led to a confusing behaviour where you could have one field filled in and the other blank and try to update and be told it updated successfully while it lost the option type you had s...
diff --git a/lib/gds_api/json_utils.rb b/lib/gds_api/json_utils.rb index abc1234..def5678 100644 --- a/lib/gds_api/json_utils.rb +++ b/lib/gds_api/json_utils.rb @@ -4,14 +4,15 @@ require_relative 'core-ext/openstruct' module GdsApi::JsonUtils - + USER_AGENT = "GDS Api Client v. #{GdsApi::VERSION}" + def get_js...
Set a user agent for our http clients
diff --git a/lib/miq_expression/tag.rb b/lib/miq_expression/tag.rb index abc1234..def5678 100644 --- a/lib/miq_expression/tag.rb +++ b/lib/miq_expression/tag.rb @@ -6,19 +6,22 @@ -(?<column>[a-z]+[_[:alnum:]]+) /x + MANAGED_NAMESPACE = 'managed'.freeze + USER_NAMESPACE = 'user'.freeze + attr_reader...
Set namespace by using constants there are only 2 possible namespaces.
diff --git a/spec/controllers/static_content_controller_spec.rb b/spec/controllers/static_content_controller_spec.rb index abc1234..def5678 100644 --- a/spec/controllers/static_content_controller_spec.rb +++ b/spec/controllers/static_content_controller_spec.rb @@ -8,21 +8,21 @@ context '#show' do it 'accepts pat...
Set request path instead of using stubbing
diff --git a/lib/sass/tree/for_node.rb b/lib/sass/tree/for_node.rb index abc1234..def5678 100644 --- a/lib/sass/tree/for_node.rb +++ b/lib/sass/tree/for_node.rb @@ -1,7 +1,17 @@ require 'sass/tree/node' module Sass::Tree + # A dynamic node representing a Sass `@for` loop. + # + # @see Sass::Tree class ForNode ...
[Sass] Convert Sass::Tree::ForNode docs to YARD.
diff --git a/lib/skr/print/template.rb b/lib/skr/print/template.rb index abc1234..def5678 100644 --- a/lib/skr/print/template.rb +++ b/lib/skr/print/template.rb @@ -16,6 +16,7 @@ "skr/#{name}".classify.constantize end def path_for_record(record) + ...
Abort if form isn't set
diff --git a/lib/strategy/whitelist.rb b/lib/strategy/whitelist.rb index abc1234..def5678 100644 --- a/lib/strategy/whitelist.rb +++ b/lib/strategy/whitelist.rb @@ -16,6 +16,7 @@ end end dest_record = dest_table.new dest_record_map + dest_record.assign_attributes(dest_record_map, with...
Fix for rails mass-assignment protection In rails 3.2.8, mass assignment can mean that the ActiveModel class doesn't support mass assignment. This change ignores any such protection and assumes it's your own data and you know what you're doing with it.
diff --git a/lib/tasks/taskmaster.rake b/lib/tasks/taskmaster.rake index abc1234..def5678 100644 --- a/lib/tasks/taskmaster.rake +++ b/lib/tasks/taskmaster.rake @@ -7,7 +7,7 @@ puts output end - desc "Write the generated crontab to config/schedule.rb -- suitable for whenever to write it to the system" + desc...
Add a newline to prevent run-on comment + command lines
diff --git a/test/integration/woeid_urls_are_valid_test.rb b/test/integration/woeid_urls_are_valid_test.rb index abc1234..def5678 100644 --- a/test/integration/woeid_urls_are_valid_test.rb +++ b/test/integration/woeid_urls_are_valid_test.rb @@ -2,17 +2,17 @@ class WoeidUrlParamValid < ActionDispatch::IntegrationTest ...
Drop should style from woeid redirection tests
diff --git a/api/app/controllers/spree/api/v1/inventory_units_controller.rb b/api/app/controllers/spree/api/v1/inventory_units_controller.rb index abc1234..def5678 100644 --- a/api/app/controllers/spree/api/v1/inventory_units_controller.rb +++ b/api/app/controllers/spree/api/v1/inventory_units_controller.rb @@ -34,7 +3...
[api] Convert 1.9 hash syntax to hashrocket syntax within inventory_units controller Fixes #2398 Fixes #2400
diff --git a/test/services/publisher_wallet_getter_test.rb b/test/services/publisher_wallet_getter_test.rb index abc1234..def5678 100644 --- a/test/services/publisher_wallet_getter_test.rb +++ b/test/services/publisher_wallet_getter_test.rb @@ -0,0 +1,61 @@+require "test_helper" +require "webmock/minitest" + +class Pub...
Add tests for PublisherWalletGetter service
diff --git a/db/migrate/20160513160206_initial_migration.rb b/db/migrate/20160513160206_initial_migration.rb index abc1234..def5678 100644 --- a/db/migrate/20160513160206_initial_migration.rb +++ b/db/migrate/20160513160206_initial_migration.rb @@ -0,0 +1,30 @@+class InitialMigration < ActiveRecord::Migration + def ch...
Create initial migration sans user table.
diff --git a/0_code_wars/find_missing_numbers.rb b/0_code_wars/find_missing_numbers.rb index abc1234..def5678 100644 --- a/0_code_wars/find_missing_numbers.rb +++ b/0_code_wars/find_missing_numbers.rb @@ -0,0 +1,5 @@+# http://www.codewars.com/kata/find-missing-numbers/ +# --- iteration 1 --- +def find_missing_numbers(a...
Add code wars (7) - find missing numbers
diff --git a/Casks/firefoxdeveloperedition-ja.rb b/Casks/firefoxdeveloperedition-ja.rb index abc1234..def5678 100644 --- a/Casks/firefoxdeveloperedition-ja.rb +++ b/Casks/firefoxdeveloperedition-ja.rb @@ -1,6 +1,6 @@ class FirefoxdevelopereditionJa < Cask - version '33.0a2' - sha256 'ea56c43a6e93789765af356ce812c64a5...
Upgrade Firefox Dev Edition to 35.0a2
diff --git a/app/models/events/event.rb b/app/models/events/event.rb index abc1234..def5678 100644 --- a/app/models/events/event.rb +++ b/app/models/events/event.rb @@ -1,4 +1,8 @@ class Event < ActiveRecord::Base + + # REDSHIFT_DATABASE_URL must exist on heroku + # heroku config:set DATABASE_URL="redshift://<redshit_u...
Use REDSHIFT_DATABASE_URL env var if exits Must exists on Heroku. Just run: heroku config:set DATABASE_URL="redshift://<redshit_user>:<redshift_password>@<amazon_redshift_host>:5439/snowplow?sslca=config/redshift-ssl-ca-cert.pem" -a <heroku_app_name>
diff --git a/app/controllers/account/collaborators_controller.rb b/app/controllers/account/collaborators_controller.rb index abc1234..def5678 100644 --- a/app/controllers/account/collaborators_controller.rb +++ b/app/controllers/account/collaborators_controller.rb @@ -54,7 +54,11 @@ def create_params params.re...
Save other fields for creating collaborators