diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/Casks/port-map.rb b/Casks/port-map.rb index abc1234..def5678 100644 --- a/Casks/port-map.rb +++ b/Casks/port-map.rb @@ -2,6 +2,6 @@ url 'http://tcmportmapper.googlecode.com/files/PortMap-1.3.1-r46.zip' homepage 'http://www.codingmonkeys.de/portmap' version '1.3.1-r46' - sha1 'bc294028f665a2e42cc32...
Update Portmap checksum to SHA256
diff --git a/FuzzySearch.podspec b/FuzzySearch.podspec index abc1234..def5678 100644 --- a/FuzzySearch.podspec +++ b/FuzzySearch.podspec @@ -5,7 +5,7 @@ spec.homepage = 'https://github.com/rahulnadella/FuzzySearch' spec.authors = { 'Rahul Nadella' => 'rahulnadella@yahoo.com' } spec.summary = 'Util...
Correct the format of the git tag specified in the podspec file.
diff --git a/lib/custom/pdftk.rb b/lib/custom/pdftk.rb index abc1234..def5678 100644 --- a/lib/custom/pdftk.rb +++ b/lib/custom/pdftk.rb @@ -6,7 +6,7 @@ "pdftk" end def source_url - "http://s3.amazonaws.com/source_url_here" + "https://s3-eu-west-1.amazonaws.com/opg-lpa-test/pdftk.tar.gz" end def u...
Add pdtkf source S3 url
diff --git a/lib/doccy/config.rb b/lib/doccy/config.rb index abc1234..def5678 100644 --- a/lib/doccy/config.rb +++ b/lib/doccy/config.rb @@ -12,7 +12,7 @@ self.endpoints = { :development => "http://localhost:3000", :staging => "http://staging.doccyapp.com", - :production => "https://doccy...
Change path for prod url
diff --git a/lib/idobata/hook.rb b/lib/idobata/hook.rb index abc1234..def5678 100644 --- a/lib/idobata/hook.rb +++ b/lib/idobata/hook.rb @@ -8,6 +8,12 @@ require 'active_support/core_ext/object/to_param' require 'active_support/core_ext/object/to_query' require 'active_support/core_ext/string/inflections' + +begin + ...
Enable syntax highlighting on local environment
diff --git a/lib/loaf/railtie.rb b/lib/loaf/railtie.rb index abc1234..def5678 100644 --- a/lib/loaf/railtie.rb +++ b/lib/loaf/railtie.rb @@ -17,18 +17,18 @@ end end else + class Railtie + class << self + def insert_view + ActionController::Base.helper Loaf::ViewExtensions + ...
Change to scope class before inclusion
diff --git a/lib/neo4j_helper.rb b/lib/neo4j_helper.rb index abc1234..def5678 100644 --- a/lib/neo4j_helper.rb +++ b/lib/neo4j_helper.rb @@ -4,11 +4,11 @@ Neo4j::Session.query.match(:n).where(n: { id: id }).pluck(:n).last end - def normalize(str) + def normalize(str, is_key: true) return str unless str....
Tweak behaviour of sanitize when target is a key
diff --git a/lib/atchu.rb b/lib/atchu.rb index abc1234..def5678 100644 --- a/lib/atchu.rb +++ b/lib/atchu.rb @@ -11,6 +11,7 @@ end def generate_models_at output_folder + Pathname.new(dir_path).children.each { |p| p.unlink } tables = Connection.get.tables models = tables.map{|table| Model.for_table...
[DD] Clean up the output repo before re-loading active records
diff --git a/SNSServices.podspec b/SNSServices.podspec index abc1234..def5678 100644 --- a/SNSServices.podspec +++ b/SNSServices.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = 'SNSServices' - spec.version = '0.1.0' + spec.version = '0.2.0' spec.license = { :type => 'BSD' } ...
Update pod version to 0.2 - add flickr
diff --git a/db/migrate/20090430122009_rename_license_agreement_version_to_tos_accepted.rb b/db/migrate/20090430122009_rename_license_agreement_version_to_tos_accepted.rb index abc1234..def5678 100644 --- a/db/migrate/20090430122009_rename_license_agreement_version_to_tos_accepted.rb +++ b/db/migrate/20090430122009_ren...
Fix error with migration on PostgreSQL In PostgreSQL, changing a column type from varchar to boolean doesn't automatically convert the contents as MySQL does. Therefore we remove the old column and add the new one instead of changing the type.
diff --git a/core/thread/exclusive_spec.rb b/core/thread/exclusive_spec.rb index abc1234..def5678 100644 --- a/core/thread/exclusive_spec.rb +++ b/core/thread/exclusive_spec.rb @@ -1,15 +1,13 @@ require_relative '../../spec_helper' describe "Thread.exclusive" do - verbose = Object - before :each do ScratchP...
Use an ivar to save state in before/after like other specs
diff --git a/schemap.gemspec b/schemap.gemspec index abc1234..def5678 100644 --- a/schemap.gemspec +++ b/schemap.gemspec @@ -6,8 +6,8 @@ Gem::Specification.new do |spec| spec.name = "schemap" spec.version = Schemap::VERSION - spec.authors = ["Nathaniel Wroblewski"] - spec.email = ["...
Add Ken to authors in gemspec
diff --git a/lisp_test.rb b/lisp_test.rb index abc1234..def5678 100644 --- a/lisp_test.rb +++ b/lisp_test.rb @@ -2,4 +2,6 @@ program = "(begin (define r 10) (* pi (* r r)))" puts tokenize(program) == ['(', 'begin', '(', 'define', 'r', '10', ')', '(', '*', 'pi', '(', '*', 'r', 'r', ')', ')', ')'] -puts parse(program)...
Add tests for + operator
diff --git a/spec/lib/open_food_network/orders_and_fulfillments_report/distributor_totals_by_supplier_report_spec.rb b/spec/lib/open_food_network/orders_and_fulfillments_report/distributor_totals_by_supplier_report_spec.rb index abc1234..def5678 100644 --- a/spec/lib/open_food_network/orders_and_fulfillments_report/dis...
Add smoke test for Distributor Totals by Supplier report
diff --git a/spec/draper/model_support_spec.rb b/spec/draper/model_support_spec.rb index abc1234..def5678 100644 --- a/spec/draper/model_support_spec.rb +++ b/spec/draper/model_support_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe Draper::ActiveModelSupport do +describe Draper::ModelSupport do subject { ...
Correct name of specced module
diff --git a/spec/features/environment_spec.rb b/spec/features/environment_spec.rb index abc1234..def5678 100644 --- a/spec/features/environment_spec.rb +++ b/spec/features/environment_spec.rb @@ -0,0 +1,9 @@+require 'spec_helper' + +describe 'environmet', type: :feature do + it 'should show server environmet' do + ...
Test loading of env page
diff --git a/railties/lib/rails_generator/generators/components/model/templates/unit_test.rb b/railties/lib/rails_generator/generators/components/model/templates/unit_test.rb index abc1234..def5678 100644 --- a/railties/lib/rails_generator/generators/components/model/templates/unit_test.rb +++ b/railties/lib/rails_gene...
Stop annoying me when Im changing fixtures for other tests first git-svn-id: afc9fed30c1a09d8801d1e4fbe6e01c29c67d11f@3709 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
diff --git a/db/migrate/20140413152201_fix_issues_column_types.rb b/db/migrate/20140413152201_fix_issues_column_types.rb index abc1234..def5678 100644 --- a/db/migrate/20140413152201_fix_issues_column_types.rb +++ b/db/migrate/20140413152201_fix_issues_column_types.rb @@ -0,0 +1,9 @@+class FixIssuesColumnTypes < Active...
[cfme_bz] Fix column types on Issues table
diff --git a/0_code_wars/character_concatenation.rb b/0_code_wars/character_concatenation.rb index abc1234..def5678 100644 --- a/0_code_wars/character_concatenation.rb +++ b/0_code_wars/character_concatenation.rb @@ -8,3 +8,8 @@ left, right = word.slice!(0...word.size/2), word left.chars.zip(right.chars.reverse).z...
Add character concatenation iteration 2
diff --git a/ep.rb b/ep.rb index abc1234..def5678 100644 --- a/ep.rb +++ b/ep.rb @@ -8,11 +8,13 @@ osm_file = 'map.osm' node_start = '3167844735' -node_end = '2999413127' +node_end = '2999412925' loader = Mormon::OSM::Loader.new(osm_file) router = Mormon::OSM::Router.new(loader) res = router.find_route(node_sta...
Raise on no route found
diff --git a/core/string/equal_value_spec.rb b/core/string/equal_value_spec.rb index abc1234..def5678 100644 --- a/core/string/equal_value_spec.rb +++ b/core/string/equal_value_spec.rb @@ -24,4 +24,8 @@ ('hello' == obj).should == true end + + it "is not fooled by NUL characters" do + "abc\0def".should_not...
Test for equality with embedded NUL chars Signed-off-by: Brian Ford <31227094f3baea959abbdb82d34f0bc93c1f3b36@engineyard.com>
diff --git a/log.gemspec b/log.gemspec index abc1234..def5678 100644 --- a/log.gemspec +++ b/log.gemspec @@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = 'evt-log' - s.version = '0.4.3.3' + s.version = '0.4.3.4' s.summary = 'Logging to STD IO with levels, tagging, and coloring' ...
Package version is increased from 0.4.3.3 to 0.4.3.4
diff --git a/collection_data/extracter.rb b/collection_data/extracter.rb index abc1234..def5678 100644 --- a/collection_data/extracter.rb +++ b/collection_data/extracter.rb @@ -19,7 +19,12 @@ in_path = File.join('tmp', File.basename(entry.name)) entry.extract(in_path) processor = CollectionData::Ima...
Change the image importer to be more lenient with errors, sending an error report rather than just stopping the importer in its tracks.
diff --git a/run.rb b/run.rb index abc1234..def5678 100644 --- a/run.rb +++ b/run.rb @@ -1,5 +1,3 @@-require "formula" - class Run < Formula homepage "http://runscripts.org" url "https://github.com/runscripts/run/archive/0.3.6.tar.gz" @@ -18,6 +16,6 @@ end test do - system "#{bin}/run", "--help" + s...
Remove require and add better test
diff --git a/config/initializers/paperclip.rb b/config/initializers/paperclip.rb index abc1234..def5678 100644 --- a/config/initializers/paperclip.rb +++ b/config/initializers/paperclip.rb @@ -3,3 +3,9 @@ Paperclip.interpolates :safe_filename do |attachment, style| filename(attachment, style).gsub(/#/, '-') end + +...
Allow xls files created via spreadsheet gem
diff --git a/config/initializers/redcarpet.rb b/config/initializers/redcarpet.rb index abc1234..def5678 100644 --- a/config/initializers/redcarpet.rb +++ b/config/initializers/redcarpet.rb @@ -32,8 +32,11 @@ github_link_host = "#{@package.url}/blob/master/" + link_sub_string = 'target="_blank" href="' + link_su...
Make sure readme markdown links open in new tab
diff --git a/lib/childprocess/unix/process.rb b/lib/childprocess/unix/process.rb index abc1234..def5678 100644 --- a/lib/childprocess/unix/process.rb +++ b/lib/childprocess/unix/process.rb @@ -30,6 +30,7 @@ assert_started pid, status = ::Process.waitpid2(@pid, ::Process::WNOHANG) + pid = nil i...
Fix JRuby issue with posix spawn. Process.waitpid2 can apparently return 0 instead of nil on JRuby, if the process is still alive.
diff --git a/active_model_exporters.gemspec b/active_model_exporters.gemspec index abc1234..def5678 100644 --- a/active_model_exporters.gemspec +++ b/active_model_exporters.gemspec @@ -19,5 +19,5 @@ spec.required_ruby_version = '>= 2.0.0' - spec.add_dependency 'activemodel', '>= 3.0' + spec.add_dependency 'acti...
Fix active model version in gemspec
diff --git a/lib/omniauth/strategies/slack.rb b/lib/omniauth/strategies/slack.rb index abc1234..def5678 100644 --- a/lib/omniauth/strategies/slack.rb +++ b/lib/omniauth/strategies/slack.rb @@ -6,7 +6,7 @@ option :name, "slack" - option :authorize_options, [ :scope, :team ] + option :authorize_...
Add some profile information to info block I needed to access some profile informations for my app, so I modified the info block to include some information returned from the users.info API call (https://api.slack.com/methods/users.info) To retrieve this information I also added a user_info function, that requires th...
diff --git a/metadata.rb b/metadata.rb index abc1234..def5678 100644 --- a/metadata.rb +++ b/metadata.rb @@ -14,5 +14,5 @@ depends 'apt', '~> 2.5' depends 'ark', '~> 4.0' -depends 'java', '~> 1.27' +depends 'java', '~> 4.3' depends 'chef_nginx', '~> 5.0'
Upgrade to java cookbook v4.x
diff --git a/metadata.rb b/metadata.rb index abc1234..def5678 100644 --- a/metadata.rb +++ b/metadata.rb @@ -3,7 +3,7 @@ maintainer_email "chris@educreations.com" license "Apache 2.0" description "Sets up an environment for statsd instances." -long_description IO.read(File.join(File.dirname(...
Read the correct readme file
diff --git a/spec/sweet_spec.rb b/spec/sweet_spec.rb index abc1234..def5678 100644 --- a/spec/sweet_spec.rb +++ b/spec/sweet_spec.rb @@ -3,8 +3,8 @@ require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe "SweetJS" do - it "compiles macros" do - source = (<<-JS) + let(:source) { + (<<-JS) ...
Add test for compiling IO objects
diff --git a/metadata.rb b/metadata.rb index abc1234..def5678 100644 --- a/metadata.rb +++ b/metadata.rb @@ -8,5 +8,6 @@ long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) version '0.1.2' depends 'magic_shell', '>= 1.0.0' -supports 'centos' -supports 'debian' +s...
Add versions for centos and debian.
diff --git a/lib/smartsheet/api/net_client.rb b/lib/smartsheet/api/net_client.rb index abc1234..def5678 100644 --- a/lib/smartsheet/api/net_client.rb +++ b/lib/smartsheet/api/net_client.rb @@ -0,0 +1,60 @@+require_relative 'headers' +require_relative 'urls' + +module Smartsheet + module API + class RequestBuilder +...
Create a net client that composes and executes requests. (Partial Commit)
diff --git a/dev/irb_tools.rb b/dev/irb_tools.rb index abc1234..def5678 100644 --- a/dev/irb_tools.rb +++ b/dev/irb_tools.rb @@ -15,8 +15,8 @@ end class String - def from_transit + def from_transit(format=:json) sio = StringIO.new(self) - Transit::Reader.new(:json).read(sio) + Transit::Reader.new(format...
Make json optional on read
diff --git a/metadata.rb b/metadata.rb index abc1234..def5678 100644 --- a/metadata.rb +++ b/metadata.rb @@ -4,7 +4,7 @@ license 'Apache 2.0' description 'Installs/Configures TYPO3' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) -version '0.5.0' +version '0.6....
Increase version number to 0.6.0 Support MailCatcher in Vagrant setups
diff --git a/spec/feature/dashboard_account_settings_spec.rb b/spec/feature/dashboard_account_settings_spec.rb index abc1234..def5678 100644 --- a/spec/feature/dashboard_account_settings_spec.rb +++ b/spec/feature/dashboard_account_settings_spec.rb @@ -2,16 +2,26 @@ feature 'Dashboard' do background do - @user ...
Make account settings tests work
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,67 @@+# RELEASE 2: NESTED STRUCTURE GOLF +# Hole 1 +# Target element: "FORE" + +array = [[1,2], ["inner", ["eagle", "par", ["FOR...
Add solution and reflection to nested data challenge
diff --git a/app/helpers/sessions_helper.rb b/app/helpers/sessions_helper.rb index abc1234..def5678 100644 --- a/app/helpers/sessions_helper.rb +++ b/app/helpers/sessions_helper.rb @@ -4,7 +4,7 @@ end def redirect_back_or(default) - redirect_to(session[:original_url]||default) + redirect_to(session[:origin...
Add a white space after/before of || operator in SessionsHelper
diff --git a/app/models/installer_report.rb b/app/models/installer_report.rb index abc1234..def5678 100644 --- a/app/models/installer_report.rb +++ b/app/models/installer_report.rb @@ -9,24 +9,54 @@ find /^Local jar url: (.*)$/ end - def local_address - find /^local_socket_address = (.*)$ / + def local_so...
Add helper methods for InstallerReport
diff --git a/app/models/tiny_mce_article.rb b/app/models/tiny_mce_article.rb index abc1234..def5678 100644 --- a/app/models/tiny_mce_article.rb +++ b/app/models/tiny_mce_article.rb @@ -3,11 +3,11 @@ class TinyMceArticle < TextArticle def self.short_description - _('Text article with visual editor') + _('Arti...
Make a more inviting text for new text articles.
diff --git a/app/services/notify_service.rb b/app/services/notify_service.rb index abc1234..def5678 100644 --- a/app/services/notify_service.rb +++ b/app/services/notify_service.rb @@ -14,10 +14,27 @@ private + def blocked_mention? + FeedManager.instance.filter?(:mentions, @notification.mention.status, @recip...
Use old rules for mention notifications as for mentions timeline
diff --git a/color-theme-solarized.rb b/color-theme-solarized.rb index abc1234..def5678 100644 --- a/color-theme-solarized.rb +++ b/color-theme-solarized.rb @@ -0,0 +1,10 @@+require 'formula' + +class ColorThemeSolarized < Formula + homepage 'https://github.com/sellout/emacs-color-theme-solarized' + head 'https://git...
Add the solarized color theme
diff --git a/app/behaviour/reservation_server_information.rb b/app/behaviour/reservation_server_information.rb index abc1234..def5678 100644 --- a/app/behaviour/reservation_server_information.rb +++ b/app/behaviour/reservation_server_information.rb @@ -27,7 +27,7 @@ def rcon_string if server - "rcon_addre...
Use real IP and port for RCON string
diff --git a/app/controllers/operator/messages_controller.rb b/app/controllers/operator/messages_controller.rb index abc1234..def5678 100644 --- a/app/controllers/operator/messages_controller.rb +++ b/app/controllers/operator/messages_controller.rb @@ -8,21 +8,21 @@ # # If no `Processor` can be found, a 404 wi...
Update `Operator::MessagesController` so it works in later rails versions
diff --git a/mrbgem.rake b/mrbgem.rake index abc1234..def5678 100644 --- a/mrbgem.rake +++ b/mrbgem.rake @@ -3,4 +3,6 @@ spec.author = 'Hiroshi Mimaki' spec.summary = 'Tiny IO library for mruby' spec.version = '0.1.0' + + spec.add_test_dependency('mruby-string-ext', :core => 'mruby-string-ext') end
Fix test for mruby 2.1.0.
diff --git a/ellen-syoboi_calendar.gemspec b/ellen-syoboi_calendar.gemspec index abc1234..def5678 100644 --- a/ellen-syoboi_calendar.gemspec +++ b/ellen-syoboi_calendar.gemspec @@ -17,7 +17,7 @@ spec.require_paths = ["lib"] spec.add_dependency "ellen", ">= 0.2.0" - spec.add_dependency "syoboi_calendar", ">= 0.2...
Fix syoboi_calendar gem version for safety
diff --git a/spec/centos/corepackages_spec.rb b/spec/centos/corepackages_spec.rb index abc1234..def5678 100644 --- a/spec/centos/corepackages_spec.rb +++ b/spec/centos/corepackages_spec.rb @@ -1,10 +1,15 @@ require 'spec_helper' + +describe package('cron') do + it { should be_installed } +end describe package('iput...
Make sure cron, sudo which and vim-minimal are installed
diff --git a/spec/models/text_message_spec.rb b/spec/models/text_message_spec.rb index abc1234..def5678 100644 --- a/spec/models/text_message_spec.rb +++ b/spec/models/text_message_spec.rb @@ -0,0 +1,10 @@+require 'rails_helper' + +describe TextMessage do + + context "::client" do + it "should return a twilio clien...
Add spec for TextMessage model
diff --git a/spec/rails_app/lib/mailer_previews/mailer_preview.rb b/spec/rails_app/lib/mailer_previews/mailer_preview.rb index abc1234..def5678 100644 --- a/spec/rails_app/lib/mailer_previews/mailer_preview.rb +++ b/spec/rails_app/lib/mailer_previews/mailer_preview.rb @@ -13,7 +13,7 @@ def send_batch_notification_ema...
Fix batch email preview in test rails app
diff --git a/examples/long_line_checker.rb b/examples/long_line_checker.rb index abc1234..def5678 100644 --- a/examples/long_line_checker.rb +++ b/examples/long_line_checker.rb @@ -13,3 +13,17 @@ end puts end + +__END__ +app/controllers/blogs_controller.rb + 8: Line length 169 should be less than 128 characters...
Add example output of long line checker
diff --git a/bootstrap-haml-helpers.gemspec b/bootstrap-haml-helpers.gemspec index abc1234..def5678 100644 --- a/bootstrap-haml-helpers.gemspec +++ b/bootstrap-haml-helpers.gemspec @@ -16,12 +16,11 @@ s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.rdoc"] s.add_dependency "rails",...
Make sass, compass, etc. development dependencies instead.
diff --git a/app/models/topic.rb b/app/models/topic.rb index abc1234..def5678 100644 --- a/app/models/topic.rb +++ b/app/models/topic.rb @@ -25,9 +25,7 @@ end def guide_content_ids - topic_sections.map do |topic_section| - topic_section.guides.map(&:content_id) - end.flatten + guides.pluck(:content...
Refactor guide_content_ids to use guides has_many
diff --git a/fastly-deploy.gemspec b/fastly-deploy.gemspec index abc1234..def5678 100644 --- a/fastly-deploy.gemspec +++ b/fastly-deploy.gemspec @@ -1,9 +1,9 @@ Gem::Specification.new do |s| s.name = 'fastly-deploy' - s.version = ENV['VERSION'] + s.version = ENV['VERSION'] || '0.0.0' s.date ...
Add default version to gemspec Doing 'bundle install' now parses the gemspec and without a valid version it would blow up, so use 0.0.0 as a default version when used locally.
diff --git a/spec/policies/admin/journals_policy_spec.rb b/spec/policies/admin/journals_policy_spec.rb index abc1234..def5678 100644 --- a/spec/policies/admin/journals_policy_spec.rb +++ b/spec/policies/admin/journals_policy_spec.rb @@ -7,7 +7,7 @@ context "admin" do let(:user) { FactoryGirl.create(:user, :admin...
Correct names in policy spec.
diff --git a/app/models/drink.rb b/app/models/drink.rb index abc1234..def5678 100644 --- a/app/models/drink.rb +++ b/app/models/drink.rb @@ -3,7 +3,7 @@ validates_presence_of :name, :bottle_size, :price has_attached_file :logo, :styles => { :thumb => "100x100#" }, :default_style => :thumb - validates_attachment_...
Replace " " with " ".
diff --git a/app/models/skill.rb b/app/models/skill.rb index abc1234..def5678 100644 --- a/app/models/skill.rb +++ b/app/models/skill.rb @@ -12,7 +12,6 @@ def end_current_streak self.current_streak = 0 self.save - "Chain broken" end def refresh_expiration_time
Remove string return from end_current_streak
diff --git a/source_code.gemspec b/source_code.gemspec index abc1234..def5678 100644 --- a/source_code.gemspec +++ b/source_code.gemspec @@ -8,8 +8,8 @@ spec.version = SourceCode::VERSION spec.authors = ["Darren Cauthon"] spec.email = ["darren@cauthon.com"] - spec.summary = %q{TODO: W...
Add a description of the gem.
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,9 +23,14 @@ end config.after do + [ROM::Relation, ROM::Mapper].each { |klass| clear_descendants(klass) } + added_constants = Object.constants - @constants a...
Build Mapper sub-classes when using mapper DSL
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,8 +1,4 @@-# this is needed for guard to work, not sure why :( -require "bundler" -Bundler.setup - -if ENV['COVERAGE'] == 'true' && RUBY_ENGINE == 'ruby' && RUBY_VERSION='2.3.1' ...
Remove bundler setup from spec helper
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -6,5 +6,6 @@ Dir[File.expand_path("../support/**/*.rb", __FILE__)].each { |f| require f } RSpec.configure do |config| + config.order = :random config.include NetHttp2::ApiHe...
Use random order in 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,6 +1,6 @@ if ENV['CODECLIMATE_REPO_TOKEN'] - require "codeclimate-test-reporter" - CodeClimate::TestReporter.start + require 'simplecov' + SimpleCov.start end require 'k...
Use SimpleCov to follow Code Climate update
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 @@ -17,5 +17,5 @@ def match_words(*words) regexp = words.map! { |word| "(?=.*#{Regexp.escape(word)})" }.join - ->(obj) { obj.match(/#{regexp}/) } + ->(obj) { obj.match(/#{regexp}/...
Make custom bacon matcher `match_words` multiline
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,13 +8,11 @@ ENV['RAILS_ENV'] ||= 'test' require File.expand_path('../dummy/config/environment.rb', __FILE__) +load Rails.root.join('db/schema.rb') + FactoryGirl.find_definit...
Load database schema earlier to prevent failures
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.cassette_library_dir = "spec/fixtures/vcr_cassettes" c.hook_into :webmock c.configure_rspec_metadata! - c.default_cassette_options = { :record => :once } ...
Remove old skool hash rocket
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 @@ -0,0 +1,75 @@+unless defined?(SPEC_HELPER_IS_LOADED) + SPEC_HELPER_IS_LOADED = 1 + + dir = File.expand_path(File.dirname(__FILE__)) + + $LOAD_PATH.unshift("#{dir}/") + $LOAD_PA...
Add a spec helper for running the rspec tests
diff --git a/suspenders.gemspec b/suspenders.gemspec index abc1234..def5678 100644 --- a/suspenders.gemspec +++ b/suspenders.gemspec @@ -29,5 +29,5 @@ s.add_dependency 'bundler', '>= 1.8.4' s.add_dependency 'rails', Suspenders::RAILS_VERSION - s.add_development_dependency 'rspec', '~> 3.6' + s.add_development_...
Increase rspec versione for gem
diff --git a/lib/overcommit/hook_context/run_all.rb b/lib/overcommit/hook_context/run_all.rb index abc1234..def5678 100644 --- a/lib/overcommit/hook_context/run_all.rb +++ b/lib/overcommit/hook_context/run_all.rb @@ -7,7 +7,7 @@ # which is useful for automated CI scripts. class RunAll < Base def modified_file...
Remove unnecessary level of indirection from RunAll This extra hop doesn't benefit us in any particular way. Simplify. Change-Id: Ib0bd984b93f0301862c356c7ab408fd9a2bc990b Reviewed-on: http://gerrit.causes.com/46486 Tested-by: jenkins <d95b56ce41a2e1ac4cecdd398defd7414407cc08@brigade.com> Reviewed-by: Shane da Silva ...
diff --git a/lib/tasks/check_route_consistency.rake b/lib/tasks/check_route_consistency.rake index abc1234..def5678 100644 --- a/lib/tasks/check_route_consistency.rake +++ b/lib/tasks/check_route_consistency.rake @@ -1,7 +1,7 @@ require "route_consistency_checker" def report_errors(errors) - Airbrake.notify( + Air...
Use Airbrake.notify_sync instead of Airbrake.notify When running in a rake task, Airbrake.notify doesn't properly finish triggering before the rake task ends and therefore the message never makes it to Airbrake.
diff --git a/csv_to_xero.rb b/csv_to_xero.rb index abc1234..def5678 100644 --- a/csv_to_xero.rb +++ b/csv_to_xero.rb @@ -0,0 +1,33 @@+require 'csv' + +puts "Which csv file would you like to XeroProof?" +file = gets.chomp + +file_name = File.basename(file, ".*") + +transactions_csv = CSV.read(file, headers:true) + +# Re...
Add the CSV converter like magic
diff --git a/config/deploy/sparks-common.rb b/config/deploy/sparks-common.rb index abc1234..def5678 100644 --- a/config/deploy/sparks-common.rb +++ b/config/deploy/sparks-common.rb @@ -1,14 +1,15 @@ # some common tasks, hooks and definitions for sparks deploys -after 'deploy:symlink', 'import:create_or_update_sparks_...
Fix sparks extra deploy tasks
diff --git a/config/initializers/logging.rb b/config/initializers/logging.rb index abc1234..def5678 100644 --- a/config/initializers/logging.rb +++ b/config/initializers/logging.rb @@ -4,7 +4,7 @@ session_key = (Rails.application.config.session_options || {})[:key] session_data = request.cookie_jar.encrypted[s...
Add 'user_id=' to the log tag
diff --git a/authpds-nyu.gemspec b/authpds-nyu.gemspec index abc1234..def5678 100644 --- a/authpds-nyu.gemspec +++ b/authpds-nyu.gemspec @@ -24,4 +24,5 @@ s.add_development_dependency "rake", "~> 10.1.0" s.add_development_dependency "vcr", "~> 2.5.0" s.add_development_dependency "webmock", "~> 1.13.0" + s.add_...
Add rdoc for rbx :rainbow:
diff --git a/axiom-types.gemspec b/axiom-types.gemspec index abc1234..def5678 100644 --- a/axiom-types.gemspec +++ b/axiom-types.gemspec @@ -10,7 +10,7 @@ gem.description = 'Abstract types for logic programming' gem.summary = 'Define types with optional constraints for use within axiom and other libraries.' ...
Change gemspec to use the singular license option
diff --git a/youtube-dl-gui.rb b/youtube-dl-gui.rb index abc1234..def5678 100644 --- a/youtube-dl-gui.rb +++ b/youtube-dl-gui.rb @@ -1,7 +1,7 @@ class YoutubeDlGui < Formula - homepage "https://github.com/pr0d1r2/youtube-dl-gui" - url "https://github.com/pr0d1r2/youtube-dl-gui.git", - :branch => "osx" + homepage ...
Change git source to original gem creator. As my pull request got merged.
diff --git a/data-aggregation-index.gemspec b/data-aggregation-index.gemspec index abc1234..def5678 100644 --- a/data-aggregation-index.gemspec +++ b/data-aggregation-index.gemspec @@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = 'data_aggregation-index' - s.version = '0.2.0.0' + s...
Package version is increased from 0.2.0.0 to 0.2.1.0
diff --git a/gemdiff.gemspec b/gemdiff.gemspec index abc1234..def5678 100644 --- a/gemdiff.gemspec +++ b/gemdiff.gemspec @@ -24,5 +24,5 @@ spec.add_development_dependency "bundler", "~> 1.6" spec.add_development_dependency "minitest", "~> 5.4" spec.add_development_dependency "mocha", "~> 1.1" - spec.add_develo...
Update rake dependency to 12.0
diff --git a/Formula/gambit-scheme.rb b/Formula/gambit-scheme.rb index abc1234..def5678 100644 --- a/Formula/gambit-scheme.rb +++ b/Formula/gambit-scheme.rb @@ -16,9 +16,8 @@ # Gambit Scheme currently fails to build with llvm-gcc # (ld crashes during the build process) ENV.gcc_4_2 - # Gambit Scheme wil...
Enable O2 optimizations for Gambit Scheme
diff --git a/committee.gemspec b/committee.gemspec index abc1234..def5678 100644 --- a/committee.gemspec +++ b/committee.gemspec @@ -25,5 +25,6 @@ s.add_development_dependency "rr", "~> 1.1" s.add_development_dependency "pry" s.add_development_dependency "pry-byebug" + s.add_development_dependency "rubocop" ...
Add rubocop to dev dependencies
diff --git a/brew/cask/awsaml.rb b/brew/cask/awsaml.rb index abc1234..def5678 100644 --- a/brew/cask/awsaml.rb +++ b/brew/cask/awsaml.rb @@ -1,6 +1,6 @@ cask 'awsaml' do version '1.5.0' - sha256 '3f3aa01510627eafead8a205dda2423b3f5c8b36afd4dfc777cdb5781b30fe6b' + sha256 'fd1d22780e47dd13ba2507c9a4661aa259d77e606fb...
Update the SHA256 checksum in the Homebrew cask for the v1.5.0 binary.
diff --git a/lib/blockcypher/client/api.rb b/lib/blockcypher/client/api.rb index abc1234..def5678 100644 --- a/lib/blockcypher/client/api.rb +++ b/lib/blockcypher/client/api.rb @@ -29,9 +29,12 @@ end class Call + + attr_reader :http_client + def initialize(config) @config = con...
Rename to allow mocking later on
diff --git a/lib/closeio/resources/lead.rb b/lib/closeio/resources/lead.rb index abc1234..def5678 100644 --- a/lib/closeio/resources/lead.rb +++ b/lib/closeio/resources/lead.rb @@ -2,11 +2,14 @@ class Client module Lead - def list_leads(options = {}, paginate = false) + def list_leads(options = {}, p...
Add support for only wanting to return certain fields
diff --git a/app/models/spree/also_bought.rb b/app/models/spree/also_bought.rb index abc1234..def5678 100644 --- a/app/models/spree/also_bought.rb +++ b/app/models/spree/also_bought.rb @@ -2,5 +2,12 @@ class AlsoBought < ActiveRecord::Base belongs_to :product1, class_name: 'Spree::Product' belongs_to :produ...
Update all also_bougth combinations count * Create mehtod on AlsoBought
diff --git a/app/controllers/francis_cms/webmentions_controller.rb b/app/controllers/francis_cms/webmentions_controller.rb index abc1234..def5678 100644 --- a/app/controllers/francis_cms/webmentions_controller.rb +++ b/app/controllers/francis_cms/webmentions_controller.rb @@ -35,7 +35,7 @@ if webmention.verify ...
Update invalid webmention flash message.
diff --git a/lib/jefferies_tube/railtie.rb b/lib/jefferies_tube/railtie.rb index abc1234..def5678 100644 --- a/lib/jefferies_tube/railtie.rb +++ b/lib/jefferies_tube/railtie.rb @@ -1,5 +1,6 @@ require 'jefferies_tube' require 'rails' + module JefferiesTube class Railtie < ::Rails::Railtie railtie_name :jeffer...
Fix undefined method for Spring:Module
diff --git a/buttons_for.gemspec b/buttons_for.gemspec index abc1234..def5678 100644 --- a/buttons_for.gemspec +++ b/buttons_for.gemspec @@ -13,9 +13,10 @@ s.summary = "Easily create Bootstrap buttons in Rails." s.description = "ActionView Helper for generating Bootstrap buttons." s.license = "MIT" + s...
gemspec: Set required minimum ruby version
diff --git a/teifacsimile_to_jekyll.gemspec b/teifacsimile_to_jekyll.gemspec index abc1234..def5678 100644 --- a/teifacsimile_to_jekyll.gemspec +++ b/teifacsimile_to_jekyll.gemspec @@ -12,7 +12,7 @@ s.homepage = 'https://github.com/emory-libraries-ecds/teifacsimile-to-jekyll' # 'http://rubygems.org/gems/hola'...
Update gemspec with current versions of requirements
diff --git a/lib/asana/resource.rb b/lib/asana/resource.rb index abc1234..def5678 100644 --- a/lib/asana/resource.rb +++ b/lib/asana/resource.rb @@ -44,5 +44,9 @@ raise ActiveResource::MethodNotAllowed.new(__method__) end + def to_json(options={}) + super({ :root => 'data' }.merge(options)) + en...
Use "data" as the default JSON root
diff --git a/lib/brainstem/dsl/base_block.rb b/lib/brainstem/dsl/base_block.rb index abc1234..def5678 100644 --- a/lib/brainstem/dsl/base_block.rb +++ b/lib/brainstem/dsl/base_block.rb @@ -37,7 +37,7 @@ def deprecated_description_warning ActiveSupport::Deprecation.warn( 'DEPRECATION_WARNI...
Update deprecation warning to specify info key on the options hash
diff --git a/acts_as_taggable.gemspec b/acts_as_taggable.gemspec index abc1234..def5678 100644 --- a/acts_as_taggable.gemspec +++ b/acts_as_taggable.gemspec @@ -19,5 +19,5 @@ s.add_dependency "activerecord", [">= 4.2.0", "< 7"] s.add_development_dependency "rspec-rails", "~> 3" - s.add_development_dependency "s...
Remove explicit sqlite version dependency
diff --git a/site-cookbooks/dna/recipes/osx_apps.rb b/site-cookbooks/dna/recipes/osx_apps.rb index abc1234..def5678 100644 --- a/site-cookbooks/dna/recipes/osx_apps.rb +++ b/site-cookbooks/dna/recipes/osx_apps.rb @@ -7,7 +7,7 @@ include_recipe "sprout-osx-apps::android_sdk" include_recipe "pivotal_workstation::sublime...
Use keepass on the machines.
diff --git a/lib/cucumber/salad.rb b/lib/cucumber/salad.rb index abc1234..def5678 100644 --- a/lib/cucumber/salad.rb +++ b/lib/cucumber/salad.rb @@ -16,4 +16,8 @@ require 'cucumber/salad/widgets/document' require 'cucumber/salad/dsl' -class UnknownWidgetError < StandardError; end +module Cucumber + module Salad + ...
Move UnknownWidgetError to Cucumber::Salad module.
diff --git a/spec/datasets/minutes_dataset.rb b/spec/datasets/minutes_dataset.rb index abc1234..def5678 100644 --- a/spec/datasets/minutes_dataset.rb +++ b/spec/datasets/minutes_dataset.rb @@ -3,7 +3,7 @@ def load create_page 'minutes', :slug => 'minutes', :class_name => 'MinutesPage', :parent_id => pages(:hom...
Fix broken dataset so specs will run
diff --git a/spec/lib/flapjack/logger_spec.rb b/spec/lib/flapjack/logger_spec.rb index abc1234..def5678 100644 --- a/spec/lib/flapjack/logger_spec.rb +++ b/spec/lib/flapjack/logger_spec.rb @@ -14,7 +14,8 @@ ::Logger.should_receive(:new).with(STDOUT).and_return(logger) if Syslog.const_defined?('Logger', false...
Fix test under Ruby 2
diff --git a/spec/support/downloads_helper.rb b/spec/support/downloads_helper.rb index abc1234..def5678 100644 --- a/spec/support/downloads_helper.rb +++ b/spec/support/downloads_helper.rb @@ -0,0 +1,38 @@+module DownloadsHelper + TIMEOUT = 10 + PATH = Rails.root.join("tmp", "downloads") + + def downloaded_filena...
Add spec DownloadsHelper to support testing csv downloads with headless chrome
diff --git a/lib/finicity/v1/response/mfa.rb b/lib/finicity/v1/response/mfa.rb index abc1234..def5678 100644 --- a/lib/finicity/v1/response/mfa.rb +++ b/lib/finicity/v1/response/mfa.rb @@ -8,6 +8,8 @@ # attribute :text attribute :choice, :elements => true, :as => :choices + attribute :image + ...
Support image MFA challenges too (pass-thru to a client which has graphical capability)
diff --git a/lib/github_api/paged_request.rb b/lib/github_api/paged_request.rb index abc1234..def5678 100644 --- a/lib/github_api/paged_request.rb +++ b/lib/github_api/paged_request.rb @@ -33,7 +33,7 @@ params[PARAM_PAGE] = default_page end - current_api.get_request(path, params) + current_ap...
Change pagination to return params hash.
diff --git a/spec/helpers/gift_codes_helper_spec.rb b/spec/helpers/gift_codes_helper_spec.rb index abc1234..def5678 100644 --- a/spec/helpers/gift_codes_helper_spec.rb +++ b/spec/helpers/gift_codes_helper_spec.rb @@ -13,11 +13,11 @@ describe GiftCodesHelper do it "should generate options for gift code selection pr...
Fix test for gift code helper
diff --git a/spec/stoplight/data_store/base_spec.rb b/spec/stoplight/data_store/base_spec.rb index abc1234..def5678 100644 --- a/spec/stoplight/data_store/base_spec.rb +++ b/spec/stoplight/data_store/base_spec.rb @@ -9,8 +9,10 @@ attempts clear_attempts clear_failures + delete failures names ...
Test for new data store methods