diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/array_test.rb b/array_test.rb index abc1234..def5678 100644 --- a/array_test.rb +++ b/array_test.rb @@ -3,21 +3,34 @@ def test_value_rejection Benchmark.ips do |x| ary10k = (1..10_000).to_a - ary5k = (1..5_000).to_a x.report('reject') { ary10k.reject { |i| i <= 5000 } } x...
Split out blacklist removal to separate benchmark
diff --git a/app/models/person/groupy.rb b/app/models/person/groupy.rb index abc1234..def5678 100644 --- a/app/models/person/groupy.rb +++ b/app/models/person/groupy.rb @@ -6,7 +6,7 @@ end def sidebar_group_people(limit=nil) - if sidebar_groups.any? + if sidebar_groups.to_a.any? Person.all...
Fix bug getting sidebar groupies when no group category is specified.
diff --git a/Casks/endlesssky.rb b/Casks/endlesssky.rb index abc1234..def5678 100644 --- a/Casks/endlesssky.rb +++ b/Casks/endlesssky.rb @@ -1,8 +1,8 @@ cask :v1 => 'endlesssky' do - version '0.8.4' - sha256 'e98d1ff580fd69dfdc62a3e892bceabf76f52c1c830fdf1ef2f1c17ace04700d' + version '0.8.7' + sha256 'cd8e56145a7b8...
Update Endless Sky to 0.8.7
diff --git a/test/controllers/viewall_controller_test.rb b/test/controllers/viewall_controller_test.rb index abc1234..def5678 100644 --- a/test/controllers/viewall_controller_test.rb +++ b/test/controllers/viewall_controller_test.rb @@ -1,14 +1,5 @@ require 'test_helper' class ViewallControllerTest < ActionControlle...
Remove the tests causing Travis to fail Signed-off-by: Siddharth Kannan <805f056820c7a1cecc4ab591b8a0a604b501a0b7@gmail.com>
diff --git a/db/data_migration/20170117141800_remove_deleted_html_attachment_drafts.rb b/db/data_migration/20170117141800_remove_deleted_html_attachment_drafts.rb index abc1234..def5678 100644 --- a/db/data_migration/20170117141800_remove_deleted_html_attachment_drafts.rb +++ b/db/data_migration/20170117141800_remove_d...
Discard drafts for deleted HtmlAttachments The attachments with these content_ids have all been deleted prior to us implementing the functionality that discards drafts in publishing api when an attachment is deleted. This commit adds a data migration to discard them.
diff --git a/db/data_migration/20170306115816_remove_deleted_policies_from_speeches.rb b/db/data_migration/20170306115816_remove_deleted_policies_from_speeches.rb index abc1234..def5678 100644 --- a/db/data_migration/20170306115816_remove_deleted_policies_from_speeches.rb +++ b/db/data_migration/20170306115816_remove_d...
Remove edition policies where the policy doesn't exist... Also update a content_id for a specific speech.
diff --git a/lib/clojurescript_rails/template.rb b/lib/clojurescript_rails/template.rb index abc1234..def5678 100644 --- a/lib/clojurescript_rails/template.rb +++ b/lib/clojurescript_rails/template.rb @@ -5,10 +5,10 @@ module ClojurescriptRails class ClojurescriptTemplate < ::Tilt::Template def initialize_engin...
Fix "no method error: compile" bug A compiler engine needs to be instantiated in ClojurescriptTemplate#prepare, not in #initialize_engine. It seems that initialize_engine is only called once, but a new instance of the template class is created for each compile. As such, all compile runs after the first were failing, b...
diff --git a/lib/librarian/resolution.rb b/lib/librarian/resolution.rb index abc1234..def5678 100644 --- a/lib/librarian/resolution.rb +++ b/lib/librarian/resolution.rb @@ -1,26 +1,37 @@ module Librarian class Resolution - attr_reader :dependencies, :manifests + attr_reader :dependencies, :manifests, :manifest...
Split apart the piecies of the Resolution correctness check into their own methods with good names.
diff --git a/lib/mail_safe/rails_hook.rb b/lib/mail_safe/rails_hook.rb index abc1234..def5678 100644 --- a/lib/mail_safe/rails_hook.rb +++ b/lib/mail_safe/rails_hook.rb @@ -2,8 +2,8 @@ module MailSafe class MailInterceptor - def self.delivering_email(mail) - MailSafe::AddressReplacer.replace_external_addre...
Use a better name for variable
diff --git a/lib/trello/trello_boards.rb b/lib/trello/trello_boards.rb index abc1234..def5678 100644 --- a/lib/trello/trello_boards.rb +++ b/lib/trello/trello_boards.rb @@ -14,6 +14,12 @@ :q3 => '35vZLoPO', :q4 => 'bkxnoXEm', }, + 2015 => { + :q1 => '72lviKLV', + ...
Add 2015 trello board IDs
diff --git a/actionview/lib/action_view/template/types.rb b/actionview/lib/action_view/template/types.rb index abc1234..def5678 100644 --- a/actionview/lib/action_view/template/types.rb +++ b/actionview/lib/action_view/template/types.rb @@ -5,13 +5,12 @@ class Template class Types class Type - catt...
Replace class attribute with SET constant. We'll be using this to map over to Action Dispatch's Mime::Set.
diff --git a/db/migrate/20160318121943_add_columns_of_error_reasons_into_evaluations.rb b/db/migrate/20160318121943_add_columns_of_error_reasons_into_evaluations.rb index abc1234..def5678 100644 --- a/db/migrate/20160318121943_add_columns_of_error_reasons_into_evaluations.rb +++ b/db/migrate/20160318121943_add_columns_...
Add the columns that save error reasons
diff --git a/jsrebuild.gemspec b/jsrebuild.gemspec index abc1234..def5678 100644 --- a/jsrebuild.gemspec +++ b/jsrebuild.gemspec @@ -15,7 +15,7 @@ gem.summary = "Dynamic rebuilder for JavaScript projects" gem.description = "Dynamically runs the Jake build tool to rebuild JavaScript - ...
Fix a typo in the gemspec description.
diff --git a/Auk.podspec b/Auk.podspec index abc1234..def5678 100644 --- a/Auk.podspec +++ b/Auk.podspec @@ -18,5 +18,5 @@ s.screenshots = "https://raw.githubusercontent.com/evgenyneu/Auk/master/Graphics/Screenshots/auk_paged_image_scroller_ios.jpg" s.source_files = "Auk/**/*.swift" s.ios.deployment_target = "...
Update to Xcode 8 beta 5
diff --git a/lib/doorkeeper.rb b/lib/doorkeeper.rb index abc1234..def5678 100644 --- a/lib/doorkeeper.rb +++ b/lib/doorkeeper.rb @@ -6,8 +6,6 @@ autoload :Validations, "doorkeeper/validations" module OAuth - class MismatchRedirectURI < StandardError; end - autoload :RandomString, "doorkeeper/oaut...
Remove unused class and method
diff --git a/lib/exceltocsv.rb b/lib/exceltocsv.rb index abc1234..def5678 100644 --- a/lib/exceltocsv.rb +++ b/lib/exceltocsv.rb @@ -9,7 +9,6 @@ require 'find' require 'logger' -require 'win32ole' $LOG = Logger.new(STDERR)
Remove win32ole require that was missed previously
diff --git a/lib/prefetcher.rb b/lib/prefetcher.rb index abc1234..def5678 100644 --- a/lib/prefetcher.rb +++ b/lib/prefetcher.rb @@ -19,8 +19,8 @@ pool = HttpFetcher.pool(args: [worker_class: worker_class]) arguments.map do |arg_set| - pool.future(:fetch, arg_set) - end.map(&:value) + ...
Remove obsolete waiting code in Prefetcher.
diff --git a/lib/shogi/game.rb b/lib/shogi/game.rb index abc1234..def5678 100644 --- a/lib/shogi/game.rb +++ b/lib/shogi/game.rb @@ -2,14 +2,14 @@ class Game attr_accessor :default_format attr_reader :turn - def initialize(format=:csa, turn="+", kifu=[]) + def initialize(format=:csa, turn="+") ...
Remove kifu in initialize arguments
diff --git a/messaging.gemspec b/messaging.gemspec index abc1234..def5678 100644 --- a/messaging.gemspec +++ b/messaging.gemspec @@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = 'evt-messaging' - s.version = '0.21.0.0' + s.version = '0.21.1.0' s.summary = 'Common primitives for ...
Package version is increased from 0.21.0.0 to 0.21.1.0
diff --git a/messaging.gemspec b/messaging.gemspec index abc1234..def5678 100644 --- a/messaging.gemspec +++ b/messaging.gemspec @@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = 'evt-messaging' - s.version = '2.5.5.0' + s.version = '2.5.5.1' s.summary = 'Common primitives for pl...
Package version is increased from 2.5.5.0 to 2.5.5.1
diff --git a/alphabet_calc.gemspec b/alphabet_calc.gemspec index abc1234..def5678 100644 --- a/alphabet_calc.gemspec +++ b/alphabet_calc.gemspec @@ -8,8 +8,8 @@ spec.version = AlphabetCalc::VERSION spec.authors = ["Pinnapong Silpsakulsuk"] spec.email = ["pinnapong@gmail.com"] - spec.summary...
Add gem summary and description
diff --git a/app/models/teacher.rb b/app/models/teacher.rb index abc1234..def5678 100644 --- a/app/models/teacher.rb +++ b/app/models/teacher.rb @@ -17,7 +17,11 @@ end def school_key_is_correct - errors.add(@school_key, "is not the correct school key") unless school_key.downcase == "go demogorgons" + if sc...
Add ability to become admin if you sign up with the secret admin code
diff --git a/problem_3.rb b/problem_3.rb index abc1234..def5678 100644 --- a/problem_3.rb +++ b/problem_3.rb @@ -0,0 +1,13 @@+n = 600_851_475_143 + +d = 2 +prime_factors = [] +while n > 1 + while n % d == 0 + n /= d + prime_factors << d + end + d += 1 +end + +p prime_factors
Add a solution for problem 3
diff --git a/rspec-sleeping_king_studios.gemspec b/rspec-sleeping_king_studios.gemspec index abc1234..def5678 100644 --- a/rspec-sleeping_king_studios.gemspec +++ b/rspec-sleeping_king_studios.gemspec @@ -20,7 +20,7 @@ gem.require_path = 'lib' gem.files = Dir["lib/**/*.rb", "LICENSE", "*.md"] - gem.add...
Update RSpec dependency to 3.0 release version. Current spec status: 253 examples, 66 failures, 4 pending in 0.09016 seconds.
diff --git a/lib/ffi.rb b/lib/ffi.rb index abc1234..def5678 100644 --- a/lib/ffi.rb +++ b/lib/ffi.rb @@ -13,7 +13,8 @@ require 'ffi/ffi' -elsif defined?(RUBY_ENGINE) && (RUBY_ENGINE == 'jruby' || RUBY_ENGINE == 'rbx') +elsif defined?(RUBY_ENGINE) + # Remove the ffi gem dir from the load path, then reload the int...
Make the non-MRI loading generic
diff --git a/config/unicorn/production.rb b/config/unicorn/production.rb index abc1234..def5678 100644 --- a/config/unicorn/production.rb +++ b/config/unicorn/production.rb @@ -1,10 +1,10 @@ root_dir = "/home/deploy/apps/copycopter-server/current" working_directory root_dir -pid "#{root}/tmp/pids/unicorn.pid" +pid "...
Fix broken config for Unicorn
diff --git a/Casks/appcode.rb b/Casks/appcode.rb index abc1234..def5678 100644 --- a/Casks/appcode.rb +++ b/Casks/appcode.rb @@ -1,6 +1,6 @@ cask :v1 => 'appcode' do - version '3.1.1' - sha256 'f549e0fdfb7dcd2a1553ca452a75c1cbc135e3d66b926de0c58dde59865f3b6c' + version '3.1.2' + sha256 'ab3c261c02d183d9783ea79458ea...
Update AppCode version to 3.1.2 This also updates the download SHA.
diff --git a/Casks/ibrowse.rb b/Casks/ibrowse.rb index abc1234..def5678 100644 --- a/Casks/ibrowse.rb +++ b/Casks/ibrowse.rb @@ -7,7 +7,7 @@ name 'iBrowse' appcast 'https://www.macroplant.com/ibrowse/ib-appcast.xml', :sha256 => '2dd21aed73c84b3b7c85ca29292f1c347fbadd5f9fd78866bd5db55d2c70e88f' - homepa...
Fix homepage to use SSL in iBrowse 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/trailer.rb b/Casks/trailer.rb index abc1234..def5678 100644 --- a/Casks/trailer.rb +++ b/Casks/trailer.rb @@ -1,6 +1,6 @@ cask :v1 => 'trailer' do - version '1.2.2' - sha256 '3e0093da72ab9debff400c1bba558dc1b7722ffcbc6c6f5e0420de7fe9c1b8f7' + version '1.3.0' + sha256 '1e546d9375e761e4d3ff3a74c218...
Update Trailer to version 1.3.0 This commit updates the version number to 1.3.0 and the download SHA
diff --git a/lib/sql.rb b/lib/sql.rb index abc1234..def5678 100644 --- a/lib/sql.rb +++ b/lib/sql.rb @@ -28,3 +28,6 @@ require 'sql/parser' require 'sql/version' require 'sql/node_helper' + +# Freeze the registry once it is setup +IceNine.deep_freeze(SQL::Generator::Emitter::REGISTRY)
Update the emitter registry to be frozen after setup
diff --git a/spec/integration/plugin_dsl_spec.rb b/spec/integration/plugin_dsl_spec.rb index abc1234..def5678 100644 --- a/spec/integration/plugin_dsl_spec.rb +++ b/spec/integration/plugin_dsl_spec.rb @@ -30,7 +30,7 @@ end end - describe "#method" do + describe "defining a plugin class method" do it "al...
Improve the description of the spec
diff --git a/spec/unit/blockscore/person_spec.rb b/spec/unit/blockscore/person_spec.rb index abc1234..def5678 100644 --- a/spec/unit/blockscore/person_spec.rb +++ b/spec/unit/blockscore/person_spec.rb @@ -15,7 +15,7 @@ end end - it "#id" do + it '#id' do person = create(:person) expect(...
Add houndci formatting for spec
diff --git a/core/app/views/activities/created_channel.rb b/core/app/views/activities/created_channel.rb index abc1234..def5678 100644 --- a/core/app/views/activities/created_channel.rb +++ b/core/app/views/activities/created_channel.rb @@ -1,5 +1,25 @@ module Activities - class CreatedChannelView < Mustache::Railstac...
Use correct CreatedChannel class name and add methods Signed-off-by: tomdev <96835dd8bfa718bd6447ccc87af89ae1675daeca@codigy.nl>
diff --git a/core/lib/refinery/helpers/site_bar_helper.rb b/core/lib/refinery/helpers/site_bar_helper.rb index abc1234..def5678 100644 --- a/core/lib/refinery/helpers/site_bar_helper.rb +++ b/core/lib/refinery/helpers/site_bar_helper.rb @@ -5,13 +5,13 @@ # Generates the link to determine where the site bar switch...
Fix site bar switch link.
diff --git a/tytus.gemspec b/tytus.gemspec index abc1234..def5678 100644 --- a/tytus.gemspec +++ b/tytus.gemspec @@ -18,5 +18,8 @@ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } s.require_paths = ["lib"] + s.add_development_dependency "rails" + s.add_development_dependency "s...
Add rails to gem spec dependency.
diff --git a/test/controllers_test.rb b/test/controllers_test.rb index abc1234..def5678 100644 --- a/test/controllers_test.rb +++ b/test/controllers_test.rb @@ -13,4 +13,25 @@ get :index assert_select "link[rel='import']" end + + # To test the contents of our compiled application.html, we have a custom rou...
Test compiled application.html in dummy app
diff --git a/test/support/capybara.rb b/test/support/capybara.rb index abc1234..def5678 100644 --- a/test/support/capybara.rb +++ b/test/support/capybara.rb @@ -7,10 +7,14 @@ # Make the Capybara DSL available in all integration tests include Capybara::DSL - setup { Capybara.current_session.driver.browser.clear_...
Revert to default driver for non-JS tests
diff --git a/heroku-true-relic.gemspec b/heroku-true-relic.gemspec index abc1234..def5678 100644 --- a/heroku-true-relic.gemspec +++ b/heroku-true-relic.gemspec @@ -17,7 +17,7 @@ into account queue time at the dyno level. DESCRIPTION - s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "REA...
Fix gemspec to include new readme
diff --git a/config/application.rb b/config/application.rb index abc1234..def5678 100644 --- a/config/application.rb +++ b/config/application.rb @@ -18,8 +18,10 @@ # Application configuration should go into files in config/initializers # -- all .rb files in that directory are automatically loaded. - # The...
Enable fallback to English translations This ensures that where we don't have a suitable translation in a different language we see the English version.
diff --git a/config/application.rb b/config/application.rb index abc1234..def5678 100644 --- a/config/application.rb +++ b/config/application.rb @@ -5,8 +5,8 @@ module Expense class Application < Rails::Application - config.encoding = 'utf-8' - config.time_zone = 'Eastern Time (US & Canada)' + config.enc...
Use UTC instead of Eastern Time.
diff --git a/core/lib/rom/core/version.rb b/core/lib/rom/core/version.rb index abc1234..def5678 100644 --- a/core/lib/rom/core/version.rb +++ b/core/lib/rom/core/version.rb @@ -2,6 +2,6 @@ module ROM module Core - VERSION = '5.1.3' + VERSION = '5.1.2' end end
Revert "Bump rom-core to 5.1.3" This reverts commit 5789f8ff0227edf673b5627c965542d06e371b5d.
diff --git a/install.rb b/install.rb index abc1234..def5678 100644 --- a/install.rb +++ b/install.rb @@ -1,7 +1,7 @@ require "fileutils" include FileUtils::Verbose -RAILS_ROOT = File.join(File.dirname(__FILE__), "..", "..", "..") unless defined?(RAILS_ROOT) +RAILS_ROOT = File.expand_path(File.join(File.dirname(__FIL...
Use File.expand_path when computing RAILS_ROOT to handle symlinked copies of the plugin in vendor/
diff --git a/lib/active_set/instructions/entry/keypath.rb b/lib/active_set/instructions/entry/keypath.rb index abc1234..def5678 100644 --- a/lib/active_set/instructions/entry/keypath.rb +++ b/lib/active_set/instructions/entry/keypath.rb @@ -47,6 +47,10 @@ nil end + def titleized + @...
Add a method to the KeyPath object
diff --git a/spec/dcell/node_spec.rb b/spec/dcell/node_spec.rb index abc1234..def5678 100644 --- a/spec/dcell/node_spec.rb +++ b/spec/dcell/node_spec.rb @@ -2,8 +2,6 @@ describe DCell::Node do before do - fail "testing that failed tests break the build on travis" - @node = DCell::Node['test_node'] @no...
Revert "Test failed builds on Travis" This reverts commit 11d239ef8f99ea58d68879e3c2975707024757b4. Yay, failed builds break Travis as expected!
diff --git a/http-server.gemspec b/http-server.gemspec index abc1234..def5678 100644 --- a/http-server.gemspec +++ b/http-server.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'http-server' - s.version = '0.0.2.3' + s.version = '0.0.2.4' s.summary = 'Simple HTTP Server using h...
Package version is increased from 0.0.2.3 to 0.0.2.4
diff --git a/ledger-base.gemspec b/ledger-base.gemspec index abc1234..def5678 100644 --- a/ledger-base.gemspec +++ b/ledger-base.gemspec @@ -11,8 +11,8 @@ s.email = 'himself at prof-maad dot org' s.license = 'MIT' - s.add_runtime_dependency 'trollop', '>= 2.0' - s.add_runtime_dependency 'deep_merge', '>= 1.0.0...
Improve dependency version spec in gemspec
diff --git a/ledger-rest.gemspec b/ledger-rest.gemspec index abc1234..def5678 100644 --- a/ledger-rest.gemspec +++ b/ledger-rest.gemspec @@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*- lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) -require './version' +require 'ledger-re...
Fix version require path in gemspec file
diff --git a/lib/gamification.rb b/lib/gamification.rb index abc1234..def5678 100644 --- a/lib/gamification.rb +++ b/lib/gamification.rb @@ -11,11 +11,7 @@ end def config - @config ||= Configatron::Store.new - - @config.storage = :file - - @config + @config ||= Configatron::Store.new stor...
Fix a bug that caused configuration to be ignored
diff --git a/lib/sfn/callback.rb b/lib/sfn/callback.rb index abc1234..def5678 100644 --- a/lib/sfn/callback.rb +++ b/lib/sfn/callback.rb @@ -10,6 +10,10 @@ attr_reader :ui # @return [Smash] attr_reader :config + # @return [Array<String>] CLI arguments + attr_reader :arguments + # @return [Miasma:...
Add reader helpers to access arguments and api
diff --git a/lib/tasks/talk.rake b/lib/tasks/talk.rake index abc1234..def5678 100644 --- a/lib/tasks/talk.rake +++ b/lib/tasks/talk.rake @@ -5,6 +5,8 @@ desc "import owners and collaborators as admins of their talk instances" task :create_admins do client = TalkApiClient.new - Project.find_each(&:create_ta...
Fix rake task to pass client to method
diff --git a/src/ruby/dxruby.gemspec b/src/ruby/dxruby.gemspec index abc1234..def5678 100644 --- a/src/ruby/dxruby.gemspec +++ b/src/ruby/dxruby.gemspec @@ -5,7 +5,7 @@ Gem::Specification.new do |gem| gem.name = 'dxruby' gem.version = DXRuby::VERSION - gem.date = Date.today.to_s + gem.date = Time.now.s...
Use Time.now.strftime() instead of Date.today
diff --git a/features/support/headless.rb b/features/support/headless.rb index abc1234..def5678 100644 --- a/features/support/headless.rb +++ b/features/support/headless.rb @@ -11,7 +11,7 @@ # display - which desktop environment to create the display on. # # Returns nothing -if ! ENV['BUILD_NUMBER'].nil? +unless EN...
Update so this file is only accessed for Jenkins builds
diff --git a/lib/capistrano/foreman.rb b/lib/capistrano/foreman.rb index abc1234..def5678 100644 --- a/lib/capistrano/foreman.rb +++ b/lib/capistrano/foreman.rb @@ -5,22 +5,22 @@ namespace :foreman do desc "Export the Procfile to Ubuntu's upstart scripts" task :export, roles: :app do - run "cd #{curren...
Use a service name prefix to remove `sites` folder dependencies This folder does not exist by default and require additional server setup.
diff --git a/Casks/disk-inventory-x.rb b/Casks/disk-inventory-x.rb index abc1234..def5678 100644 --- a/Casks/disk-inventory-x.rb +++ b/Casks/disk-inventory-x.rb @@ -0,0 +1,6 @@+class DiskInventoryX < Cask + url 'http://www.derlien.com/download.php?file=DiskInventoryX' + homepage 'http://www.derlien.com/' + version '...
Add a Cask for Disk Inventory X
diff --git a/lib/facter/thrift_path.rb b/lib/facter/thrift_path.rb index abc1234..def5678 100644 --- a/lib/facter/thrift_path.rb +++ b/lib/facter/thrift_path.rb @@ -0,0 +1,21 @@+Facter.add(:thrift_path) do + confine :kernel => :linux + setcode do + path = which('thrift') + if path + path.to_s + else + ...
Add fact to find the install of thrift
diff --git a/lib/language_pack/rack.rb b/lib/language_pack/rack.rb index abc1234..def5678 100644 --- a/lib/language_pack/rack.rb +++ b/lib/language_pack/rack.rb @@ -26,10 +26,8 @@ def default_process_types instrument "rack.default_process_types" do - # let's special case thin here if we detect it - w...
Use Phusion Passenger instead of WEBRick
diff --git a/lib/aptible/billing/billing_detail.rb b/lib/aptible/billing/billing_detail.rb index abc1234..def5678 100644 --- a/lib/aptible/billing/billing_detail.rb +++ b/lib/aptible/billing/billing_detail.rb @@ -10,7 +10,8 @@ field :stripe_subscription_id field :stripe_subscription_status field :pl...
Add billing_contact and organization fields.
diff --git a/lib/bullet/presenter/bullet_logger.rb b/lib/bullet/presenter/bullet_logger.rb index abc1234..def5678 100644 --- a/lib/bullet/presenter/bullet_logger.rb +++ b/lib/bullet/presenter/bullet_logger.rb @@ -1,11 +1,13 @@ module Bullet module Presenter class BulletLogger < Base + LOG_FILE = File.join(...
Move LOG_FILE constant to presenter
diff --git a/messagemedia-soap.gemspec b/messagemedia-soap.gemspec index abc1234..def5678 100644 --- a/messagemedia-soap.gemspec +++ b/messagemedia-soap.gemspec @@ -21,7 +21,7 @@ spec.require_paths = ['lib'] spec.add_development_dependency 'bundler', '~> 1.5' - spec.add_development_dependency 'rake', '~> 0' + ...
Make rake a non-development dependency
diff --git a/NZGoogleAnalytics.podspec b/NZGoogleAnalytics.podspec index abc1234..def5678 100644 --- a/NZGoogleAnalytics.podspec +++ b/NZGoogleAnalytics.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = 'NZGoogleAnalytics' - s.version = '0.0.1' - s.license = 'MIT' + s.version = '0.0.2' + s.license = { :type ...
Add NZBundle dependency and change version
diff --git a/lib/Storm/Network/private.rb b/lib/Storm/Network/private.rb index abc1234..def5678 100644 --- a/lib/Storm/Network/private.rb +++ b/lib/Storm/Network/private.rb @@ -0,0 +1,88 @@+require "Storm/Base/model" +require "Storm/Base/sodserver" +require "Storm/Server/server" +require "Storm/Network/zone" + +module ...
Add Private class and APIs
diff --git a/lib/agilecrm-wrapper/deal.rb b/lib/agilecrm-wrapper/deal.rb index abc1234..def5678 100644 --- a/lib/agilecrm-wrapper/deal.rb +++ b/lib/agilecrm-wrapper/deal.rb @@ -3,10 +3,33 @@ module AgileCRMWrapper class Deal < Hashie::Mash + DEFAULT_FIELDS = %w(name description expected_value pipeline_id milest...
Add ability to create Deal with custom fields
diff --git a/lib/alephant/models/queue.rb b/lib/alephant/models/queue.rb index abc1234..def5678 100644 --- a/lib/alephant/models/queue.rb +++ b/lib/alephant/models/queue.rb @@ -15,5 +15,8 @@ sleep 1 until @q.exists? end + def poll(*args, &block) + @q.poll(*args, &block) + end end end
Add missing poll method which delegates to real Queue poll method
diff --git a/lib/chamber/rails/railtie.rb b/lib/chamber/rails/railtie.rb index abc1234..def5678 100644 --- a/lib/chamber/rails/railtie.rb +++ b/lib/chamber/rails/railtie.rb @@ -0,0 +1,13 @@+module Chamber +module Rails +class Railtie < ::Rails::Railtie + initializer 'chamber.load', before: :load_environment_config...
Add a Railtie which loads Chamber with the proper Rails config path and load the rake task
diff --git a/lib/cukeq/scenario_runner.rb b/lib/cukeq/scenario_runner.rb index abc1234..def5678 100644 --- a/lib/cukeq/scenario_runner.rb +++ b/lib/cukeq/scenario_runner.rb @@ -2,11 +2,31 @@ class ScenarioRunner def run(job, &callback) - # Run the exploded scenario job using cucumber's wire protocol, - ...
Add some scm stuff to ScenarioRunner (Slave)
diff --git a/ova_manager.gemspec b/ova_manager.gemspec index abc1234..def5678 100644 --- a/ova_manager.gemspec +++ b/ova_manager.gemspec @@ -9,7 +9,7 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] - spec.add_dependency "rbvmomi", "~> 1.6.0" + spec.add_dependenc...
Revert "Lock rbvmomi at 1.6.x" This reverts commit 436941a6d38c8d3e015c41b7509e7ab09b8ef965.
diff --git a/spec/controllers/products_controller_spec.rb b/spec/controllers/products_controller_spec.rb index abc1234..def5678 100644 --- a/spec/controllers/products_controller_spec.rb +++ b/spec/controllers/products_controller_spec.rb @@ -4,7 +4,7 @@ render_views context "GET #index" do - subject { spree_ge...
Use normal get/post/put/delete test helpers
diff --git a/spec/controllers/sessions_controller_spec.rb b/spec/controllers/sessions_controller_spec.rb index abc1234..def5678 100644 --- a/spec/controllers/sessions_controller_spec.rb +++ b/spec/controllers/sessions_controller_spec.rb @@ -27,10 +27,6 @@ it 'renders the login page' do expect(response).t...
Remove error message controller test, will write a feature test for it.
diff --git a/spec/features/command_line_interface_spec.rb b/spec/features/command_line_interface_spec.rb index abc1234..def5678 100644 --- a/spec/features/command_line_interface_spec.rb +++ b/spec/features/command_line_interface_spec.rb @@ -0,0 +1,22 @@+require "spec_helper" + +RSpec.shared_examples "help information" ...
Add tests for CLI help output [#108]
diff --git a/lib/tasks/cached_assets.rake b/lib/tasks/cached_assets.rake index abc1234..def5678 100644 --- a/lib/tasks/cached_assets.rake +++ b/lib/tasks/cached_assets.rake @@ -17,7 +17,7 @@ path = "#{css_dir}#{basename}.css" system("rm #{path}") if (File.exist?(path)) end - stylesheet_link_tag('co...
Update stylesheet regeneration with correct order
diff --git a/Rakefile.rb b/Rakefile.rb index abc1234..def5678 100644 --- a/Rakefile.rb +++ b/Rakefile.rb @@ -1 +1,31 @@ require "bundler/gem_tasks" + +namespace :test do + desc "Delete test buckets" + task :delete_buckets do + require 'riak' + Riak.disable_list_keys_warnings = true + client = Riak::Client.ne...
Add rake task for deleting risky test buckets
diff --git a/core/db/migrate/20151026093607_change_return_item_pre_tax_amount_to_amount.rb b/core/db/migrate/20151026093607_change_return_item_pre_tax_amount_to_amount.rb index abc1234..def5678 100644 --- a/core/db/migrate/20151026093607_change_return_item_pre_tax_amount_to_amount.rb +++ b/core/db/migrate/2015102609360...
Split up SQL statements in migration This previously didn't work under mysql. In rails 4.2.6.rc1 this raises an exception, in previous versions the second statement was ignored.
diff --git a/ObjectMapper.podspec b/ObjectMapper.podspec index abc1234..def5678 100644 --- a/ObjectMapper.podspec +++ b/ObjectMapper.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'ObjectMapper' - s.version = '3.2.0' + s.version = '3.3.0' s.license = 'MIT' s.summary = 'JSON Object mapping written in S...
Update Podspec version to 3.3.0 This version has already been tagged and released.
diff --git a/error_data.gemspec b/error_data.gemspec index abc1234..def5678 100644 --- a/error_data.gemspec +++ b/error_data.gemspec @@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = 'error_data' - s.version = '0.2.0.0' + s.version = '0.2.0.1' s.summary = 'Representation of an er...
Package version is increased from 0.2.0.0 to 0.2.0.1
diff --git a/test/controllers/sessions_controller_test.rb b/test/controllers/sessions_controller_test.rb index abc1234..def5678 100644 --- a/test/controllers/sessions_controller_test.rb +++ b/test/controllers/sessions_controller_test.rb @@ -14,19 +14,21 @@ assert_template "devise/sessions/new" end - test "#...
Fix build so it works with Rails 3.1.
diff --git a/test/sanitize_rails_string_extension_test.rb b/test/sanitize_rails_string_extension_test.rb index abc1234..def5678 100644 --- a/test/sanitize_rails_string_extension_test.rb +++ b/test/sanitize_rails_string_extension_test.rb @@ -0,0 +1,38 @@+require 'test_helper' + +require 'action_view' +require 'sanitize'...
Add tests for sanitize/rails string extensions
diff --git a/spec/support/database_cleaner.rb b/spec/support/database_cleaner.rb index abc1234..def5678 100644 --- a/spec/support/database_cleaner.rb +++ b/spec/support/database_cleaner.rb @@ -0,0 +1,14 @@+RSpec.configure do |config| + + config.before(:suite) do + DatabaseCleaner.strategy = :transaction + Databa...
Configure rspec for database cleaner
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -5,6 +5,10 @@ devise_for :users resources :galleries do resources :collections, only: [:index, :new, :create] + member do + patch :archive + get :archived + end end ...
Add archived method to gallery route
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -5,7 +5,8 @@ :registrations => 'spree/user_registrations', :passwords => 'spree/user_passwords' }, :skip => [:unloc...
Use correct path_prefix so that URLs are correct
diff --git a/app/models/invoice.rb b/app/models/invoice.rb index abc1234..def5678 100644 --- a/app/models/invoice.rb +++ b/app/models/invoice.rb @@ -1,6 +1,9 @@ class Invoice < ActiveRecord::Base # Aspects include ApplicationHelper + + # Scopes + default_scope order(:due_date) # Associations belongs...
Order Invoices by due_date as default.
diff --git a/core/gc/count_spec.rb b/core/gc/count_spec.rb index abc1234..def5678 100644 --- a/core/gc/count_spec.rb +++ b/core/gc/count_spec.rb @@ -4,4 +4,14 @@ it "returns an integer" do GC.count.should be_kind_of(Integer) end + + it "increases as collections are run" do + count_before = GC.count + i...
Move GC.count spec to ruby/spec
diff --git a/utilities.rb b/utilities.rb index abc1234..def5678 100644 --- a/utilities.rb +++ b/utilities.rb @@ -0,0 +1,24 @@+# >---------------------------------------------------------------------------< +# Utilities with potential to make development more productive and fun. +# Applying this template to an exist...
Support applying recipes to an existing project
diff --git a/cricos_scrape.gemspec b/cricos_scrape.gemspec index abc1234..def5678 100644 --- a/cricos_scrape.gemspec +++ b/cricos_scrape.gemspec @@ -24,7 +24,7 @@ spec.add_development_dependency 'rspec', '~> 3.0' spec.add_development_dependency 'rspec-its', '~> 1.0' - spec.add_runtime_dependency 'mechanize', '~...
Fix version mechanize in gemspec
diff --git a/Casks/firefox-nightly.rb b/Casks/firefox-nightly.rb index abc1234..def5678 100644 --- a/Casks/firefox-nightly.rb +++ b/Casks/firefox-nightly.rb @@ -3,9 +3,16 @@ sha256 :no_check # required as upstream package is updated in-place url "https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-tru...
Add zap and name stanzas to Firefox Nightly
diff --git a/ruby/google-protobuf.gemspec b/ruby/google-protobuf.gemspec index abc1234..def5678 100644 --- a/ruby/google-protobuf.gemspec +++ b/ruby/google-protobuf.gemspec @@ -10,6 +10,7 @@ s.require_paths = ["lib"] s.files = Dir.glob('lib/**/*.rb') if RUBY_PLATFORM == "java" + s.platform = "java" ...
Set platform to "java" under JRuby Proposed fix for #1594
diff --git a/pry-vterm_aliases.gemspec b/pry-vterm_aliases.gemspec index abc1234..def5678 100644 --- a/pry-vterm_aliases.gemspec +++ b/pry-vterm_aliases.gemspec @@ -6,9 +6,9 @@ s.authors = ["Jordon Bedwell"] s.name = "pry-vterm_aliases" s.licenses = ["MIT"] + s.add_dependency("pry") s.require_paths = ["lib"...
Update Rspec and don't enforce a specific version of Pry.
diff --git a/Casks/opera.rb b/Casks/opera.rb index abc1234..def5678 100644 --- a/Casks/opera.rb +++ b/Casks/opera.rb @@ -1,6 +1,6 @@ cask :v1 => 'opera' do - version '32.0.1948.69' - sha256 'ab4e724b505b346bd310bb7e8b5dc0be53d3c6b569b76cf922e32b4d7c8ad7cd' + version '33.0.1990.43' + sha256 '3d0098b65960e506a1950ef1...
Update Opera to version 33.0.1990.43.
diff --git a/Cereal.podspec b/Cereal.podspec index abc1234..def5678 100644 --- a/Cereal.podspec +++ b/Cereal.podspec @@ -20,7 +20,7 @@ s.watchos.deployment_target = "2.0" #s.tvos.deployment_target = "1.0" - s.source = { :git => "https://github.com/Weebly/Cereal.git", :tag => "v1.3" } + s.source = {...
Use proper tag in podspec
diff --git a/src/db/migrate/20110816192727_renamed_suggested_deployable_to_catalog_entries.rb b/src/db/migrate/20110816192727_renamed_suggested_deployable_to_catalog_entries.rb index abc1234..def5678 100644 --- a/src/db/migrate/20110816192727_renamed_suggested_deployable_to_catalog_entries.rb +++ b/src/db/migrate/20110...
Fix this migration so it also works on sqlite. While sqlite is not the ideal db to run conductor on, we should attempt to at least keep it mostly usable for web app development. Updated this migration with same fix markmc applied months ago to another like this with patch a8d0f73693859b63d9831da607d9bdc6093b9afb
diff --git a/refinerycms-hooks.gemspec b/refinerycms-hooks.gemspec index abc1234..def5678 100644 --- a/refinerycms-hooks.gemspec +++ b/refinerycms-hooks.gemspec @@ -4,7 +4,7 @@ s.author = "Andrew Hadinyoto" s.platform = Gem::Platform::RUBY s.name = 'refinerycms-hooks' - s.versi...
Set gemspec version to 0.1
diff --git a/spec/active_bugzilla_spec.rb b/spec/active_bugzilla_spec.rb index abc1234..def5678 100644 --- a/spec/active_bugzilla_spec.rb +++ b/spec/active_bugzilla_spec.rb @@ -2,6 +2,6 @@ describe ActiveBugzilla do it "::VERSION" do - described_class::VERSION.should be_kind_of(String) + expect(described_cla...
Use `:expect` syntax instead of `:should`
diff --git a/smpp_client.gemspec b/smpp_client.gemspec index abc1234..def5678 100644 --- a/smpp_client.gemspec +++ b/smpp_client.gemspec @@ -8,9 +8,9 @@ spec.version = SmppClient::VERSION spec.authors = ["David Wilkie"] spec.email = ["dwilkie@gmail.com"] - spec.description = "A SMPP clien...
Fix typo in gempspec homepage
diff --git a/day-11/day-11.rb b/day-11/day-11.rb index abc1234..def5678 100644 --- a/day-11/day-11.rb +++ b/day-11/day-11.rb @@ -0,0 +1,45 @@+def char_triple(text) + (0..text.size-3).each do |idx| + ord = text[idx].ord + return true if ord == text[idx + 1].ord - 1 && ord == text[idx + 2].ord - 2 + end + + fals...
Complete Day 11 - Passwords
diff --git a/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule27.rb b/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule27.rb index abc1234..def5678 100644 --- a/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule27.rb +++ b/lib/sastrawi/morphology/disambiguator/disambiguator_pref...
Add implementation of twenty-seventh rule of disambiguator prefix
diff --git a/dyno_metadata.gemspec b/dyno_metadata.gemspec index abc1234..def5678 100644 --- a/dyno_metadata.gemspec +++ b/dyno_metadata.gemspec @@ -10,7 +10,7 @@ s.platform = Gem::Platform::RUBY s.authors = ["Patrik Ragnarsson"] s.email = ["patrik@starkast.net"] - s.homepage = "http://github.c...
Use https in homepage URL
diff --git a/spec/models/user.rb b/spec/models/user.rb index abc1234..def5678 100644 --- a/spec/models/user.rb +++ b/spec/models/user.rb @@ -15,7 +15,7 @@ default_scope do if _default_scope_enabled - query = joins("LEFT OUTER JOIN companies") + query = joins("LEFT OUTER JOIN companies ON users.compan...
Fix an invalid join that prevents specs from running on PostgreSQL
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,17 +1,9 @@ require 'serverspec' - -set :backend, :docker -set :docker_image, ENV['DOCKER_IMAGE'] - -## skip OS detection -## see specinfra-2.12.3/lib/specinfra/helper/os.rb -## ...
Use ssh backend for serverspec Using docker backend, spec fails at random, and very slow. Furthermore, `docker exec` is not available on Circle CI.
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,6 +3,16 @@ require 'safety_pin' RSpec.configure do |config| + def destroy_foo + if SafetyPin::JCR.logged_in? + node = SafetyPin::Node.find("/content/foo") + unl...
Improve before and after methods (fewer errors with repo state)
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,2 +1,7 @@ require 'rubygems' require 'puppetlabs_spec_helper/module_spec_helper' + +class Object + alias :must :should + alias :must_not :should_not +end
Create must synonym for should The rspec method `should` does conflict with the `should` method of a puppet property. Add a must synonym that can be used to avoid this conflict.
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -13,6 +13,7 @@ db_config = Configuration.new +# Disables/enables the queries log you see in your rails server in dev mode fd = ENV['VERBOSE'] ? STDOUT : '/dev/null' ActiveRec...
Add doc to VERBOSE flag