diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/app/helpers/keywords_helper.rb b/app/helpers/keywords_helper.rb index abc1234..def5678 100644 --- a/app/helpers/keywords_helper.rb +++ b/app/helpers/keywords_helper.rb @@ -10,7 +10,7 @@ def keyword_labels(keywords, type='primary') keywords.map do |keyword| - bootstrap_label(keyword.display_na...
Use name for now to stop from breaking on tags
diff --git a/app/helpers/menu_bar_helper.rb b/app/helpers/menu_bar_helper.rb index abc1234..def5678 100644 --- a/app/helpers/menu_bar_helper.rb +++ b/app/helpers/menu_bar_helper.rb @@ -18,7 +18,7 @@ end def link_to_profile - menu_item('user', :profile, user_path) + menu_item('user', :my_account, user_path)...
Replace 'Profile' with 'My account' on menu bar
diff --git a/app/models/cookbook_version.rb b/app/models/cookbook_version.rb index abc1234..def5678 100644 --- a/app/models/cookbook_version.rb +++ b/app/models/cookbook_version.rb @@ -25,7 +25,14 @@ :tarball, presence: true, content_type: { - content_type: ['application/x-gzip', 'application/octet-s...
Expand the list of valid tarball content types The existing community site has no validation on content type, so the following content types exist in the database: * application/x-gzip * application/gzip * application/octet-stream * application/x-tar * application/x-compressed-tar * application/x-gtar * application/x...
diff --git a/app/uploaders/file_uploader.rb b/app/uploaders/file_uploader.rb index abc1234..def5678 100644 --- a/app/uploaders/file_uploader.rb +++ b/app/uploaders/file_uploader.rb @@ -1,6 +1,6 @@ class FileUploader < CarrierWave::Uploader::Base POSSIBLE_IMG_EXTENSIONS = %w(jpg jpeg gif png) - POSSIBLE_DOC_EXTENSIO...
Add in a new file attachment allowed (outlook .msg) [Trello Story](https://trello.com/c/VmHwceUv/227-add-in-a-new-file-attachment-allowed)
diff --git a/test/test_helper_methods.rb b/test/test_helper_methods.rb index abc1234..def5678 100644 --- a/test/test_helper_methods.rb +++ b/test/test_helper_methods.rb @@ -0,0 +1,26 @@+# -- encoding: utf-8 -- +require 'rim' +require 'test/unit' + +class TestHelperMethods < Test::Unit::TestCase + + class ::Rim + a...
Add testing for helper methods of Rim.
diff --git a/regentanz.gemspec b/regentanz.gemspec index abc1234..def5678 100644 --- a/regentanz.gemspec +++ b/regentanz.gemspec @@ -26,5 +26,6 @@ s.add_development_dependency 'bundler' s.add_development_dependency 'factory_girl', '~> 2.0' s.add_development_dependency 'rdoc', '~> 2.4' + s.add_development_depen...
Add rspec to development dependencies
diff --git a/robolove.gemspec b/robolove.gemspec index abc1234..def5678 100644 --- a/robolove.gemspec +++ b/robolove.gemspec @@ -6,8 +6,8 @@ Gem::Specification.new do |spec| spec.name = "Robolove" spec.version = Robolove::VERSION - spec.authors = ["Jonan Scheffler"] - spec.email = [...
Add Zoe to the gemspec in thanks for her dedicated service to robotic love.
diff --git a/Tools/CocoaPods/CoconutKit.podspec b/Tools/CocoaPods/CoconutKit.podspec index abc1234..def5678 100644 --- a/Tools/CocoaPods/CoconutKit.podspec +++ b/Tools/CocoaPods/CoconutKit.podspec @@ -2,10 +2,10 @@ s.name = 'CoconutKit' s.version = '2.0' s.license = 'MIT' - s.summary = 'CoconutKit is a library...
Fix warnings found by running 'pod spec lint'
diff --git a/cruise_config.rb b/cruise_config.rb index abc1234..def5678 100644 --- a/cruise_config.rb +++ b/cruise_config.rb @@ -1,5 +1,5 @@ Project.configure do |project| - project.email_notifier.emails = ["scott.willson@gmail.com", "al.pendergrass@gmail.com", "ryan@cyclocrazed.com"] + project.email_notifier.emails ...
Remove Ryan from cruise notifications
diff --git a/recipes/dbserver.rb b/recipes/dbserver.rb index abc1234..def5678 100644 --- a/recipes/dbserver.rb +++ b/recipes/dbserver.rb @@ -30,9 +30,10 @@ action [:create, :grant] end - mysql_database db['database'] do + mysql_database "Import to #{db['database']}" do connection mysql_connect...
Use more descriptive title, and fix source query
diff --git a/spec/swarker/definition_spec.rb b/spec/swarker/definition_spec.rb index abc1234..def5678 100644 --- a/spec/swarker/definition_spec.rb +++ b/spec/swarker/definition_spec.rb @@ -1,9 +1,9 @@ describe Swarker::Definition do let(:swagger_definition) do - Swarker::Json::Reader.new(File.expand_path('../../f...
Fix definition specs not to be couple with Json::Reader
diff --git a/spec/units/view_helpers_spec.rb b/spec/units/view_helpers_spec.rb index abc1234..def5678 100644 --- a/spec/units/view_helpers_spec.rb +++ b/spec/units/view_helpers_spec.rb @@ -8,7 +8,12 @@ end test = Testing.new link = test.link_to_capturable("Login") - expect(link).to eq '<a href="#" clas...
Make view helper test more resilient to environmental differences The spec for the link_to_capturable view helper appears to be dependent on some part of the Ruby development environment. On my setup and Marcel's, the spec passes when we compare output against <a href="#" class="capture_modal_open" id="capture_si...
diff --git a/app/presenters/scheme_presenter.rb b/app/presenters/scheme_presenter.rb index abc1234..def5678 100644 --- a/app/presenters/scheme_presenter.rb +++ b/app/presenters/scheme_presenter.rb @@ -6,7 +6,7 @@ end def as_json(options={}) - attrs = @scheme.marshal_dump + attrs = @scheme.as_json attr...
Access scheme attributes with as_json
diff --git a/app/services/create_tag_service.rb b/app/services/create_tag_service.rb index abc1234..def5678 100644 --- a/app/services/create_tag_service.rb +++ b/app/services/create_tag_service.rb @@ -27,9 +27,9 @@ end Event.create_ref_event(project, current_user, new_tag, 'add', 'refs/tags') - retu...
Fix ci data in hook when create git tag via UI
diff --git a/lib/learn_to_rank/load_search_queries.rb b/lib/learn_to_rank/load_search_queries.rb index abc1234..def5678 100644 --- a/lib/learn_to_rank/load_search_queries.rb +++ b/lib/learn_to_rank/load_search_queries.rb @@ -9,7 +9,7 @@ query = row["searchTerm"].strip queries[query] ||= [] que...
Use link field from bigquery We don't store content IDs in ecommerce data any more.
diff --git a/color_schema_validator.gemspec b/color_schema_validator.gemspec index abc1234..def5678 100644 --- a/color_schema_validator.gemspec +++ b/color_schema_validator.gemspec @@ -13,14 +13,6 @@ spec.description = %q{TODO: Write a longer description or delete this line.} spec.homepage = "TODO: Put your...
Remove the code to prevent pushing public server
diff --git a/config/deploy/genigames-dev.rb b/config/deploy/genigames-dev.rb index abc1234..def5678 100644 --- a/config/deploy/genigames-dev.rb +++ b/config/deploy/genigames-dev.rb @@ -5,3 +5,5 @@ server domain, :app, :web role :db, domain, :primary => true set :branch, "gv-r32" + +set :asset_env, "RAILS_GROUPS=asset...
Make sure assets get the correct relative url root
diff --git a/config/initializers/aws-sdk.rb b/config/initializers/aws-sdk.rb index abc1234..def5678 100644 --- a/config/initializers/aws-sdk.rb +++ b/config/initializers/aws-sdk.rb @@ -0,0 +1,8 @@+require 'aws-sdk' + +AWS.config( + access_key_id: Rails.application.secrets.aws_access_key_id, + secret_access_key: R...
Initialize aws with credentials for dev environment.
diff --git a/week-6/die-2/my_solution.rb b/week-6/die-2/my_solution.rb index abc1234..def5678 100644 --- a/week-6/die-2/my_solution.rb +++ b/week-6/die-2/my_solution.rb @@ -1,14 +1,19 @@ # Die Class 2: Arbitrary Symbols -# I worked on this challenge [by myself]. -# I spent [#] hours on this challenge. +# I worked o...
Update to week-6 die 2 assignment
diff --git a/core/app/helpers/url_helper.rb b/core/app/helpers/url_helper.rb index abc1234..def5678 100644 --- a/core/app/helpers/url_helper.rb +++ b/core/app/helpers/url_helper.rb @@ -4,8 +4,6 @@ def set_mailer_url_options ActionMailer::Base.default_url_options[:host] = with_subdomain(request.subdomain) Ac...
Debug statement should be removed
diff --git a/Casks/gog-galaxy.rb b/Casks/gog-galaxy.rb index abc1234..def5678 100644 --- a/Casks/gog-galaxy.rb +++ b/Casks/gog-galaxy.rb @@ -12,4 +12,6 @@ uninstall :pkgutil => "com.gog.galaxy.galaxy_client_#{version}.pkg", :delete => '/Applications/GalaxyClient.app' + + depends_on :macos => '>= :moun...
Add Mountain Lion dependency to GOG GalaxyClient per vendor homepage
diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index abc1234..def5678 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -11,6 +11,11 @@ @layers = Layer.all.order(:updated_at => :desc).limit(3).includes(:maps) + @year_min ...
Fix slider in home page
diff --git a/Casks/sequel-pro.rb b/Casks/sequel-pro.rb index abc1234..def5678 100644 --- a/Casks/sequel-pro.rb +++ b/Casks/sequel-pro.rb @@ -0,0 +1,5 @@+class SequelPro < Cask + url 'http://sequel-pro.googlecode.com/files/Sequel_Pro_0.9.9.1.dmg' + homepage 'http://www.sequelpro.com/' + version '0.9.9.1' +end
Add cask for Sequel Pro
diff --git a/app/controllers/tags_controller.rb b/app/controllers/tags_controller.rb index abc1234..def5678 100644 --- a/app/controllers/tags_controller.rb +++ b/app/controllers/tags_controller.rb @@ -0,0 +1,40 @@+class TagsController < ApplicationController + before_filter :authenticate_user! + + # Enable CORS + ...
Enhance tags service and enable cors for tags
diff --git a/dayglo.gemspec b/dayglo.gemspec index abc1234..def5678 100644 --- a/dayglo.gemspec +++ b/dayglo.gemspec @@ -1,7 +1,7 @@ $:.push File.expand_path('../lib', __FILE__) # Maintain your gem's version: -require 'exlibris/aleph/version' +require 'dayglo/version' # Describe your gem and declare its dependenc...
Update copy and paste errors in the gemspec
diff --git a/spec/amee_spec.rb b/spec/amee_spec.rb index abc1234..def5678 100644 --- a/spec/amee_spec.rb +++ b/spec/amee_spec.rb @@ -25,11 +25,4 @@ }.should_not raise_error end - it "has an intentional bug in Rails 2.3 to test appraisal builds" do - # This should fail in - lambda { - [].uniq_by ...
Revert "Intentional bug to test appraisal" This reverts commit c270a2cff98f430cc86d86bf509a3d415124bfbe.
diff --git a/spec/conf_spec.rb b/spec/conf_spec.rb index abc1234..def5678 100644 --- a/spec/conf_spec.rb +++ b/spec/conf_spec.rb @@ -44,14 +44,14 @@ ) end - it 'does not use "unit" procedures'# do -# -# expect( -# Flor::Conf.prepare(%{\n point: cancel }, {}) -# ).to eq({ -# 'poin...
Bring back `point: cancel` spec for ConfExecutor
diff --git a/spec/game_spec.rb b/spec/game_spec.rb index abc1234..def5678 100644 --- a/spec/game_spec.rb +++ b/spec/game_spec.rb @@ -13,7 +13,7 @@ describe '#prompt_user_for_input' do it 'ask users to input the position on available spots where they want to place an X' do - expect(new_game.prompt_user_fo...
Fix typo *inpt to input
diff --git a/acmesmith-google-cloud-storage.gemspec b/acmesmith-google-cloud-storage.gemspec index abc1234..def5678 100644 --- a/acmesmith-google-cloud-storage.gemspec +++ b/acmesmith-google-cloud-storage.gemspec @@ -20,7 +20,7 @@ spec.require_paths = ["lib"] spec.add_dependency "acmesmith" - spec.add_dependenc...
Revert "Fixed dependency (`@api.fetch_all` is available on google-api-client 0.9.4)" This reverts commit c0d97ce7d700464879a806713a69a084571736eb.
diff --git a/core/spec/models/taxon_spec.rb b/core/spec/models/taxon_spec.rb index abc1234..def5678 100644 --- a/core/spec/models/taxon_spec.rb +++ b/core/spec/models/taxon_spec.rb @@ -1,7 +1,7 @@ require 'spec_helper' -describe Taxon do - let(:taxon) { Taxon.new(:name => "Ruby on Rails") } +describe Spree::Taxon do...
Fix references in Taxon spec
diff --git a/app/controllers/teachers_controller.rb b/app/controllers/teachers_controller.rb index abc1234..def5678 100644 --- a/app/controllers/teachers_controller.rb +++ b/app/controllers/teachers_controller.rb @@ -1,5 +1,5 @@ class TeachersController < ApplicationController - + include SessionsHelper def index ...
Include sessions helper in teachers controller. Edit/Update user profile is working.
diff --git a/app/representers/events_representer.rb b/app/representers/events_representer.rb index abc1234..def5678 100644 --- a/app/representers/events_representer.rb +++ b/app/representers/events_representer.rb @@ -17,10 +17,24 @@ links do property :course_id, as: :course - property :room, getter: -> (arg...
Add linked resources to EventRepresenter
diff --git a/viitenumero.gemspec b/viitenumero.gemspec index abc1234..def5678 100644 --- a/viitenumero.gemspec +++ b/viitenumero.gemspec @@ -22,6 +22,6 @@ spec.add_development_dependency "rake" spec.add_development_dependency "minitest" - spec.add_runtime_dependency "activemodel", ">= 4.0.0", "< 6.0.0" - spec....
Remove active* version limitations to support Rails 6
diff --git a/db/sanitize_data.rb b/db/sanitize_data.rb index abc1234..def5678 100644 --- a/db/sanitize_data.rb +++ b/db/sanitize_data.rb @@ -0,0 +1,43 @@+ +def update_address(address, user) + unless address.nil? + address.firstname = user[:first_name] + address.lastname = user[:last_name] + address.phone = us...
Add script to sanitize order and user data.
diff --git a/lib/devise/async/backend/sucker_punch.rb b/lib/devise/async/backend/sucker_punch.rb index abc1234..def5678 100644 --- a/lib/devise/async/backend/sucker_punch.rb +++ b/lib/devise/async/backend/sucker_punch.rb @@ -10,15 +10,11 @@ new.async.perform(*args) end - # Loads the resource...
Fix comments for connection pooling
diff --git a/lib/fastlane/actions/recreate_schemes.rb b/lib/fastlane/actions/recreate_schemes.rb index abc1234..def5678 100644 --- a/lib/fastlane/actions/recreate_schemes.rb +++ b/lib/fastlane/actions/recreate_schemes.rb @@ -8,7 +8,6 @@ project = Xcodeproj::Project.open(params[:project]) project.recr...
Remove not required save call
diff --git a/lib/gym/xcodebuild_fixes/watchkit_fix.rb b/lib/gym/xcodebuild_fixes/watchkit_fix.rb index abc1234..def5678 100644 --- a/lib/gym/xcodebuild_fixes/watchkit_fix.rb +++ b/lib/gym/xcodebuild_fixes/watchkit_fix.rb @@ -28,7 +28,7 @@ def watchkit? Dir["#{PackageCommandGenerator.appfile_path}/**/*.pl...
Exclude WatchKitSupport 1 folder when include WatchKitSupport2
diff --git a/px.gemspec b/px.gemspec index abc1234..def5678 100644 --- a/px.gemspec +++ b/px.gemspec @@ -4,7 +4,7 @@ s.name = "px" s.version = "0.0.1" s.summary = "PX library" - s.description = "PX library" + s.description = "PaymentExpress 1.0 integration library" s.authors = ["Cyril David"] s.email = ...
Fix the gemspec in prep for 0.0.1 release
diff --git a/sidekiq-hol.gemspec b/sidekiq-hol.gemspec index abc1234..def5678 100644 --- a/sidekiq-hol.gemspec +++ b/sidekiq-hol.gemspec @@ -15,7 +15,7 @@ gem.require_paths = ['lib'] gem.version = Sidekiq::Hol::VERSION - gem.add_dependency 'sidekiq', '~> 4.0.0' + gem.add_dependency ...
Update sidekiq gem dependency, again
diff --git a/diffux-core.gemspec b/diffux-core.gemspec index abc1234..def5678 100644 --- a/diffux-core.gemspec +++ b/diffux-core.gemspec @@ -10,7 +10,7 @@ s.authors = ['Joe Lencioni', 'Henric Trotzig'] s.email = ['joe.lencioni@causes.com', 'henric.trotzig@causes.com'] s.require_paths = ['lib'] - ...
Fix missing `take-snapshot.js` in bundled gem A core piece of the gem is the file `take-snapshot.js`. This file wasn't included in the bundled gem and caused the main diffux application to fail snapshotting.
diff --git a/config/environments/development.rb b/config/environments/development.rb index abc1234..def5678 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -17,6 +17,12 @@ config.action_mailer.raise_delivery_errors = false config.action_mailer.default_url_options = { hos...
Configure mail to be sent via SMTP by default Allows connecting to the VM Mailhog instance
diff --git a/example/send-set-request.rb b/example/send-set-request.rb index abc1234..def5678 100644 --- a/example/send-set-request.rb +++ b/example/send-set-request.rb @@ -0,0 +1,61 @@+#!/usr/bin/env ruby + +# Simple set request example. + +$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib') +require 'os...
Add a sample set request script.
diff --git a/spec/bot_spec.rb b/spec/bot_spec.rb index abc1234..def5678 100644 --- a/spec/bot_spec.rb +++ b/spec/bot_spec.rb @@ -0,0 +1,70 @@+require 'cinch/test' +require 'cinch/plugins/loveletter' + +class MessageReceiver + attr_accessor :messages + + def initialize + @messages = [] + end + + def send(m) + ...
spec: Add spec for bot (!player)
diff --git a/spec/exe_spec.rb b/spec/exe_spec.rb index abc1234..def5678 100644 --- a/spec/exe_spec.rb +++ b/spec/exe_spec.rb @@ -9,4 +9,9 @@ it 'runs' do expect(status).to be_success end + + context 'invalid arguments' do + let(:args){ ['invalid_argument'] } + specify { expect(status).to_not be_success...
Check for failing exit status when recieving invalid arguments.
diff --git a/spec/msc_spec.rb b/spec/msc_spec.rb index abc1234..def5678 100644 --- a/spec/msc_spec.rb +++ b/spec/msc_spec.rb @@ -24,14 +24,14 @@ } eos -describe Asciidoctor::Diagram::MscInlineMacroProcessor do +describe Asciidoctor::Diagram::MscInlineMacroProcessor, :broken_on_windows do include_examples "inline_...
Disable mscgen specs on Windows
diff --git a/cookbooks/sys_dns/recipes/do_set_public.rb b/cookbooks/sys_dns/recipes/do_set_public.rb index abc1234..def5678 100644 --- a/cookbooks/sys_dns/recipes/do_set_public.rb +++ b/cookbooks/sys_dns/recipes/do_set_public.rb @@ -5,8 +5,15 @@ # RightScale Terms of Service available at http://www.rightscale.com/terms...
Add support for icanhazip.com when no cloud attribute is available.
diff --git a/examples/simple-consumer.rb b/examples/simple-consumer.rb index abc1234..def5678 100644 --- a/examples/simple-consumer.rb +++ b/examples/simple-consumer.rb @@ -14,7 +14,7 @@ # with e.g. `$stderr` if you want to see what's happening under the hood. logger = Logger.new(StringIO.new) -brokers = ENV.fetch("...
Make sure the broker list is an array
diff --git a/app/workers/scraper_auto_run_worker.rb b/app/workers/scraper_auto_run_worker.rb index abc1234..def5678 100644 --- a/app/workers/scraper_auto_run_worker.rb +++ b/app/workers/scraper_auto_run_worker.rb @@ -10,7 +10,8 @@ if scraper.runnable? && scraper.auto_run? if scraper.owner.ability.can? :creat...
Throw actual run onto background so can be safely restarted
diff --git a/AbstractView.podspec b/AbstractView.podspec index abc1234..def5678 100644 --- a/AbstractView.podspec +++ b/AbstractView.podspec @@ -0,0 +1,16 @@+Pod::Spec.new do |s| + s.name = 'AbstractView' + s.version = '0.0.1' + s.license = 'MIT' + s.summary = 'The AbstractView is a simple view that can be used as ...
Add a podspec file for CocoaPods
diff --git a/spec/intact_spec.rb b/spec/intact_spec.rb index abc1234..def5678 100644 --- a/spec/intact_spec.rb +++ b/spec/intact_spec.rb @@ -1,11 +1,29 @@ require 'spec_helper' describe 'intact objects' do - let(:datapipe) do - Datapipes.new + context 'with intact all' do + let(:datapipe) do + Datapipes...
Add more intact objects spec
diff --git a/spec/prefix_spec.rb b/spec/prefix_spec.rb index abc1234..def5678 100644 --- a/spec/prefix_spec.rb +++ b/spec/prefix_spec.rb @@ -4,31 +4,50 @@ describe "#fix_params" do let(:input_function) { instance_double(Proc) } - let(:curried_function) { instance_double(Proc) } - before { expect(...
Add specs for chaining functions
diff --git a/wanikani.gemspec b/wanikani.gemspec index abc1234..def5678 100644 --- a/wanikani.gemspec +++ b/wanikani.gemspec @@ -7,7 +7,7 @@ s.authors = ["Dennis Martinez"] s.email = "dennis@dennmart.com" s.files = Dir['lib/**/*.rb'] - s.homepage = "http://github.com/dennmart/wanikani" + s....
Fix homepage link in gemspec
diff --git a/lib/controllers/frontend/spree/users_controller.rb b/lib/controllers/frontend/spree/users_controller.rb index abc1234..def5678 100644 --- a/lib/controllers/frontend/spree/users_controller.rb +++ b/lib/controllers/frontend/spree/users_controller.rb @@ -27,7 +27,9 @@ if @user.update_attributes(user_param...
Remove use of deprecated `bypass` opt for sign_in This commit updates the logic in the Spree::UsersController to remove the usage of the deprecated `bypass` option for Devise's `sign_in` 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 @@ -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 @@ -14,8 +14,8 @@ config.before(:each) do Dir.mkdir SPEC_TMP_DIR - FileUtils.cp_r(FIXTURE_SOURCE_PATH, SOURCE_BASE_PATH) - FileUtils.cp_r(FIXTURE_TARGET_PATH, TARGET_BA...
Test new method of copying fixtures for testing
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 'bundler/setup' + +# missing dependency for Paperclip::UrlGenerator require 'active_support/core_ext/module/delegation' + require 'paperclip/tus' RSpec.co...
Add comment why we require delegation from AS
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,3 @@ Bundler.require(:database, :test) -require File.expand_path '../database/db', __FILE__ -require File.expand_path '../database/domain', __FILE__+require File.expand_p...
Load humus helpers into the 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,10 +1,11 @@ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) -require 'jekyll/asciinema' if ENV['TRAVIS'] require 'coveralls' Coveralls.wear! end + +require ...
Move coverage code to the very top of the file According to the documentation it must be run before any application code is being required.
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 @@ -6,6 +6,10 @@ else require 'simplecov' SimpleCov.start do + add_filter 'spec/' + add_filter 'scripts/' + add_filter 'config/' + add_group 'Adapters', 'app/adapt...
Exclude config, scripts and spec from simplecov coverage report
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -14,7 +14,7 @@ c.extend VCR::RSpec::Macros end -config = YAML.load(File.new(File.expand_path('~/.dnsimple.test'))) +config = YAML.load(File.new(File.expand_path('~/.dnsimple.l...
Use .dnsimple.local when running 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,4 +1,20 @@+# This file was generated by the `rspec --init` command. Conventionally, all +# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. +# Require ...
Add good defaults for 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 @@ -8,6 +8,15 @@ end RSpec.configure do |config| + # Use color in STDOUT + config.color = true + + # Use color not only in STDOUT but also in pagers and files + config.tty = tr...
Expand config in rspec helper Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
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 @@ -26,8 +26,10 @@ end def post(options={}) - page = Jekyll::Post.new site, CONFIG_DEFAULTS["source"], "", "2015-01-01-post.md" - page.data = options + filename = File.expand_pa...
Update tests to work with Jekyll 3
diff --git a/lib/genome/groupers/interaction_grouper.rb b/lib/genome/groupers/interaction_grouper.rb index abc1234..def5678 100644 --- a/lib/genome/groupers/interaction_grouper.rb +++ b/lib/genome/groupers/interaction_grouper.rb @@ -3,9 +3,19 @@ class InteractionGrouper def self.run ActiveRecord::Ba...
Delete interactions before running the grouper
diff --git a/googlemaps-services.gemspec b/googlemaps-services.gemspec index abc1234..def5678 100644 --- a/googlemaps-services.gemspec +++ b/googlemaps-services.gemspec @@ -17,9 +17,9 @@ spec.files = Dir['lib/**/*.rb'] spec.require_paths = ['lib'] - spec.add_runtime_dependency 'nokogiri', '~> 1.7', '>= ...
Upgrade deps to latest stable release
diff --git a/lib/multitenancy_tools/functions_dumper.rb b/lib/multitenancy_tools/functions_dumper.rb index abc1234..def5678 100644 --- a/lib/multitenancy_tools/functions_dumper.rb +++ b/lib/multitenancy_tools/functions_dumper.rb @@ -22,7 +22,9 @@ # @param mode [String] IO open mode def dump_to(file, mode: 'w')...
Append ; using only SQL
diff --git a/spec/features/auth_signin_spec.rb b/spec/features/auth_signin_spec.rb index abc1234..def5678 100644 --- a/spec/features/auth_signin_spec.rb +++ b/spec/features/auth_signin_spec.rb @@ -8,9 +8,7 @@ expect(page).to have_content("Password") end scenario "A successful sign in redirects to the us...
Change name to use name in auth signin spec features test
diff --git a/ice_nine.gemspec b/ice_nine.gemspec index abc1234..def5678 100644 --- a/ice_nine.gemspec +++ b/ice_nine.gemspec @@ -13,7 +13,7 @@ gem.require_paths = %w[lib] gem.files = `git ls-files`.split($/) - gem.test_files = `git ls-files -- {spec}/{unit,integration}`.split($/) + gem.test...
Remove unnecessary configuration for test files
diff --git a/config/initializers/kaminari_config.rb b/config/initializers/kaminari_config.rb index abc1234..def5678 100644 --- a/config/initializers/kaminari_config.rb +++ b/config/initializers/kaminari_config.rb @@ -0,0 +1,11 @@+Kaminari.configure do |config| + # config.default_per_page = 25 + # config.max_per_page ...
Add a skeleton kaminari configuration file
diff --git a/lib/hpcloud/commands/config/set.rb b/lib/hpcloud/commands/config/set.rb index abc1234..def5678 100644 --- a/lib/hpcloud/commands/config/set.rb +++ b/lib/hpcloud/commands/config/set.rb @@ -13,6 +13,9 @@ method_option :service_name, :type => :string, :aliases => '-s', :required => ...
Add the method option for availability zone back.
diff --git a/metadata.rb b/metadata.rb index abc1234..def5678 100644 --- a/metadata.rb +++ b/metadata.rb @@ -7,7 +7,6 @@ version '1.1.1' depends 'apt' -depends 'helpers_express42' depends 'lvm' depends 'nginx' depends 'postgresql_lwrp'
Remove helpers_express42 cookbook from deps
diff --git a/lib/electric_sheeps/sheepfile/evaluator.rb b/lib/electric_sheeps/sheepfile/evaluator.rb index abc1234..def5678 100644 --- a/lib/electric_sheeps/sheepfile/evaluator.rb +++ b/lib/electric_sheeps/sheepfile/evaluator.rb @@ -19,7 +19,7 @@ end def readable? - File.exists?(@path) + Fi...
Check that file is readable
diff --git a/lib/provision/core/provisioning_service.rb b/lib/provision/core/provisioning_service.rb index abc1234..def5678 100644 --- a/lib/provision/core/provisioning_service.rb +++ b/lib/provision/core/provisioning_service.rb @@ -20,6 +20,7 @@ def provision_vm(spec_hash) clean_vm(spec_hash) + # FIXME - n...
Add comment noting where the code change is going to go
diff --git a/lib/simple_templates/parser/node_parser.rb b/lib/simple_templates/parser/node_parser.rb index abc1234..def5678 100644 --- a/lib/simple_templates/parser/node_parser.rb +++ b/lib/simple_templates/parser/node_parser.rb @@ -14,7 +14,7 @@ tokens.any? && self::STARTING_TOKENS.include?(tokens.first.type) ...
Add default nil value for
diff --git a/Casks/beyond-compare.rb b/Casks/beyond-compare.rb index abc1234..def5678 100644 --- a/Casks/beyond-compare.rb +++ b/Casks/beyond-compare.rb @@ -1,6 +1,6 @@ cask :v1 => 'beyond-compare' do - version '4.0.2.19186' - sha256 '891492897485cc8ef7fa4636185fbc9c188e8dac6ec4564f326884af43fc18d3' + version '4.0.3...
Update Beyond Compare.app to 4.0.3.19420 and add zap stanza
diff --git a/.launchd/sshfs.rb b/.launchd/sshfs.rb index abc1234..def5678 100644 --- a/.launchd/sshfs.rb +++ b/.launchd/sshfs.rb @@ -12,6 +12,7 @@ is_mounted = active_mounts.include? destination if !is_mounted + system 'mkdir', '-p', destination `#{$sshfs_path} #{port} -o #{options} \ '#{mount[...
Create mount point if it doesn't exist The reason for this is that mount points are automatically deleted in /Volumes on OS X upon shutdown or reboot.
diff --git a/test/test_password_expired_controller.rb b/test/test_password_expired_controller.rb index abc1234..def5678 100644 --- a/test/test_password_expired_controller.rb +++ b/test/test_password_expired_controller.rb @@ -6,7 +6,7 @@ setup do @request.env["devise.mapping"] = Devise.mappings[:user] @user ...
Set password_changed_at to 4 months so test doesn't flap Solves https://github.com/devise-security/devise-security/issues/12
diff --git a/test/note_test.rb b/test/note_test.rb index abc1234..def5678 100644 --- a/test/note_test.rb +++ b/test/note_test.rb @@ -2,12 +2,19 @@ class TestNote < MiniTest::Test def setup - @note_1 = MusicTheory::Note.new(frequency: 220, duration: 2.0) + @frequency = 220.to_f + @duration = 2.0 + ...
Add cycles per frame test
diff --git a/lib/typhoeus/request/streamable.rb b/lib/typhoeus/request/streamable.rb index abc1234..def5678 100644 --- a/lib/typhoeus/request/streamable.rb +++ b/lib/typhoeus/request/streamable.rb @@ -27,7 +27,7 @@ # # @return [ Boolean ] True if any on_body blocks have been set. def streaming? - ...
Use getter method instead of instance variable to remove initialization warning
diff --git a/Library/Homebrew/cmd/uses.rb b/Library/Homebrew/cmd/uses.rb index abc1234..def5678 100644 --- a/Library/Homebrew/cmd/uses.rb +++ b/Library/Homebrew/cmd/uses.rb @@ -15,10 +15,10 @@ uses = formulae.select do |f| used_formulae.all? do |ff| if recursive - f.recursive_dependencies.a...
Convert dependencies to formulas for name matching Dependency names are prefixed with the tap location, therefore dependency names do not match formula names. We convert dependencies into formulas to ensure proper name checking. Closes Homebrew/homebrew#35058. Signed-off-by: Jack Nagel <43386ce32af96f5c56f2a88e458cb...
diff --git a/Formula/oxygen-icons.rb b/Formula/oxygen-icons.rb index abc1234..def5678 100644 --- a/Formula/oxygen-icons.rb +++ b/Formula/oxygen-icons.rb @@ -0,0 +1,14 @@+require 'formula' + +class OxygenIcons <Formula + url 'ftp://ftp.kde.org/pub/kde/stable/4.4.0/src/oxygen-icons-4.4.0.tar.bz2' + homepage 'http://www...
Add formula for KDE's Oxygen icons version 4.4.0.
diff --git a/lib/forecast_io/configuration.rb b/lib/forecast_io/configuration.rb index abc1234..def5678 100644 --- a/lib/forecast_io/configuration.rb +++ b/lib/forecast_io/configuration.rb @@ -1,7 +1,7 @@ module ForecastIO module Configuration # Default API endpoint - DEFAULT_FORECAST_IO_API_ENDPOINT = 'http...
Update to new darksky api endpoint
diff --git a/lib/staticmatic/configuration.rb b/lib/staticmatic/configuration.rb index abc1234..def5678 100644 --- a/lib/staticmatic/configuration.rb +++ b/lib/staticmatic/configuration.rb @@ -11,10 +11,11 @@ def initialize self.preview_server_port = 3000 + self.preview_server_host = "localhost" ...
Make the default preview server host "localhost"
diff --git a/lib/tasks/seed_example_data.rake b/lib/tasks/seed_example_data.rake index abc1234..def5678 100644 --- a/lib/tasks/seed_example_data.rake +++ b/lib/tasks/seed_example_data.rake @@ -2,7 +2,7 @@ desc "Seed example data for C.O.D.E" task seed_example_data: :environment do p 'seed students' - for i...
Replace 'for' iterations for proper loops in seed file This commit removes 4 bad smells pointed by codeclimate
diff --git a/thumbtack.gemspec b/thumbtack.gemspec index abc1234..def5678 100644 --- a/thumbtack.gemspec +++ b/thumbtack.gemspec @@ -18,7 +18,7 @@ spec.license = 'MIT' spec.name = 'thumbtack' spec.require_paths = ['lib'] - spec.required_ruby_version = '>= 2.3.6' + spec.required_ruby_version = '>= 2.4.5' sp...
Prepare for Ruby 2.3 end-of-life
diff --git a/toolsmith.gemspec b/toolsmith.gemspec index abc1234..def5678 100644 --- a/toolsmith.gemspec +++ b/toolsmith.gemspec @@ -13,7 +13,7 @@ s.summary = "A gem to craft UI's easily." s.description = "Toolsmith provides common helpers for UI components and styles." - s.files = Dir["{app,config,db,lib}/...
Package gem with README and CHANGELOG
diff --git a/lastpass.gemspec b/lastpass.gemspec index abc1234..def5678 100644 --- a/lastpass.gemspec +++ b/lastpass.gemspec @@ -17,7 +17,7 @@ s.required_ruby_version = ">= 1.9.3" s.add_dependency "httparty", "~> 0.12.0" - s.add_dependency "pbkdf2", "~> 0.1.0" + s.add_dependency "pbkdf2-ruby", "~> 0.2....
Use different PBKDF2 gem compatible with Ruby 2.0
diff --git a/klarna.gemspec b/klarna.gemspec index abc1234..def5678 100644 --- a/klarna.gemspec +++ b/klarna.gemspec @@ -8,8 +8,8 @@ gem.version = Klarna::VERSION gem.authors = ["Daniel Salmeron Amselem"] gem.email = ["daniel.amselem@klarna.com"] - gem.description = %q{TODO: Write a gem d...
Add description of the gem in gem spec.
diff --git a/fabrication.gemspec b/fabrication.gemspec index abc1234..def5678 100644 --- a/fabrication.gemspec +++ b/fabrication.gemspec @@ -23,6 +23,6 @@ s.add_development_dependency("ffaker", [">= 0.4.0"]) s.add_development_dependency("activerecord", [">= 3.0.0"]) s.add_development_dependency("sqlite3-ruby", ...
Fix development version mismatch of bson and bson_ext
diff --git a/taxjar-ruby.gemspec b/taxjar-ruby.gemspec index abc1234..def5678 100644 --- a/taxjar-ruby.gemspec +++ b/taxjar-ruby.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_depende...
Set required Ruby version to 1.9.3+ in gemspec
diff --git a/_plugins/mathjax.rb b/_plugins/mathjax.rb index abc1234..def5678 100644 --- a/_plugins/mathjax.rb +++ b/_plugins/mathjax.rb @@ -8,7 +8,7 @@ # Detect if we need to use block display style SYNTAX = /(display)?/ - def initialize(tag_name, markup,tokens) + def initialize(tag_name, markup, toke...
Use explicit alignment for block-style formulas
diff --git a/attributes/source.rb b/attributes/source.rb index abc1234..def5678 100644 --- a/attributes/source.rb +++ b/attributes/source.rb @@ -17,9 +17,9 @@ # limitations under the License. # -git_version = '1.8.1' +git_version = '1.8.2' default['git']['version'] = git_version default['git']['url'] = "ht...
Update Git to version 1.8.2
diff --git a/lib/securid.rb b/lib/securid.rb index abc1234..def5678 100644 --- a/lib/securid.rb +++ b/lib/securid.rb @@ -23,7 +23,7 @@ end def denied? - @status == AUTHENTICATED + @status == DENIED end end end
Fix bug with denied? method.
diff --git a/gist.rb b/gist.rb index abc1234..def5678 100644 --- a/gist.rb +++ b/gist.rb @@ -0,0 +1,97 @@+#!/usr/bin/env ruby +require 'net/http' +require 'json' + +class Gist + attr_accessor :id, :description, :public, :files + def initialize(hash) + @id = hash[:id] + @description = hash[:description] + @pu...
Add a tiny little Gist library that works for my purposes.
diff --git a/lib/rbzip2/io.rb b/lib/rbzip2/io.rb index abc1234..def5678 100644 --- a/lib/rbzip2/io.rb +++ b/lib/rbzip2/io.rb @@ -1,7 +1,7 @@ # This code is free software; you can redistribute it and/or modify it under # the terms of the new BSD License. # -# Copyright (c) 2011-2013, Sebastian Staudt +# Copyright (c) ...
Add new methods to IO
diff --git a/lib/to_slug.rb b/lib/to_slug.rb index abc1234..def5678 100644 --- a/lib/to_slug.rb +++ b/lib/to_slug.rb @@ -17,7 +17,7 @@ def to_slug # Perform transliteration to replace non-ascii characters with an ascii # character - value = self.chars.normalize(:kd).gsub(/[^\x00-\x7F]/n, '') + value =...
Use mb_chars instead of chars method. Chars is deprecated in Rails Edge.
diff --git a/git-scripts.gemspec b/git-scripts.gemspec index abc1234..def5678 100644 --- a/git-scripts.gemspec +++ b/git-scripts.gemspec @@ -19,7 +19,7 @@ 'copperwall@gmail.com', 'robin@ifixit.com'] - s.add_dependency 'bundler', '~> 1.17' + s.add_dependency 'bundler', '~> 2.1' s.a...
Update bundler to avoid deprecation notices
diff --git a/lib/salt/page.rb b/lib/salt/page.rb index abc1234..def5678 100644 --- a/lib/salt/page.rb +++ b/lib/salt/page.rb @@ -33,13 +33,18 @@ File.join(parent_path, File.dirname(@path).gsub(site.source_paths[:pages], '')) end - def write(site, path, context = {}) + def write(site, path, context = ...
Make the context option, so we can write out raw files based on the contents.
diff --git a/app/jobs/log_job.rb b/app/jobs/log_job.rb index abc1234..def5678 100644 --- a/app/jobs/log_job.rb +++ b/app/jobs/log_job.rb @@ -13,7 +13,7 @@ if File.exist? initial_location FileUtils.touch initial_location - FileUtils.chmod 755, initial_location + FileUtils.chmod 777, initial_lo...
Make logs completely public in worker
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 @@ -14,14 +14,6 @@ end module RenderERBUtils - def view - @view ||= begin - path = ActionView::FileSystemResolver.new(FIXTURE_LOAD_PATH) - view_paths = ActionView::Pa...
Fix tests for Rails 6 Template rendering has changed in [1] which causes tests to fail on Rails 6. This changes the `render_erb` test helper to be compatible with both Rails 5 and Rails 6. Also removes unused `view` method. [1] https://github.com/rails/rails/commit/db4b77aca147ec3c7376d803fc6ccb14c9195352#diff-e78f6b...