diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/lib/dato/dump/runner.rb b/lib/dato/dump/runner.rb index abc1234..def5678 100644 --- a/lib/dato/dump/runner.rb +++ b/lib/dato/dump/runner.rb @@ -24,6 +24,7 @@ operation ) + I18n.available_locales = loader.items_repo.available_locales operation.perform end
Set DatoCMS locales as I18n available locales
diff --git a/lib/sms_tools/encoding_detection.rb b/lib/sms_tools/encoding_detection.rb index abc1234..def5678 100644 --- a/lib/sms_tools/encoding_detection.rb +++ b/lib/sms_tools/encoding_detection.rb @@ -49,9 +49,9 @@ concatenated_parts * MAX_LENGTH_FOR_ENCODING[encoding][message_type] end - # Returns...
Fix the indentation and improve wording in a comment
diff --git a/lib/specinfra/backend/dockerfile.rb b/lib/specinfra/backend/dockerfile.rb index abc1234..def5678 100644 --- a/lib/specinfra/backend/dockerfile.rb +++ b/lib/specinfra/backend/dockerfile.rb @@ -13,6 +13,11 @@ CommandResult.new end + def send_file(from, to) + @lines << "ADD #{from} #{to}"...
Add send_file to Dockerfile backend
diff --git a/spec/stringextension_spec.rb b/spec/stringextension_spec.rb index abc1234..def5678 100644 --- a/spec/stringextension_spec.rb +++ b/spec/stringextension_spec.rb @@ -3,6 +3,37 @@ module Vim module Flavor describe StringExtension do + describe '#to_flavorfile_path' do + it 'extends a given...
Add missing tests about StringExtension
diff --git a/db/migrate/20150812150214_add_dropdown_to_assignment_questionnaires_table.rb b/db/migrate/20150812150214_add_dropdown_to_assignment_questionnaires_table.rb index abc1234..def5678 100644 --- a/db/migrate/20150812150214_add_dropdown_to_assignment_questionnaires_table.rb +++ b/db/migrate/20150812150214_add_dr...
Add dropdown to assignment questionnaires table
diff --git a/functions/rakefile.rb b/functions/rakefile.rb index abc1234..def5678 100644 --- a/functions/rakefile.rb +++ b/functions/rakefile.rb @@ -15,5 +15,5 @@ end task :clean do - sh 'git clean -dfx' + sh 'git clean -dfx --exclude .runtimeconfig.json' end
Exclude config file from clean up
diff --git a/http-commands.gemspec b/http-commands.gemspec index abc1234..def5678 100644 --- a/http-commands.gemspec +++ b/http-commands.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'http-commands' - s.version = '0.0.2.4' + s.version = '0.0.2.5' s.summary = 'Convenience abstractions for common...
Package version is increased from 0.0.2.4 to 0.0.2.5
diff --git a/lib/Storm/Account/auth.rb b/lib/Storm/Account/auth.rb index abc1234..def5678 100644 --- a/lib/Storm/Account/auth.rb +++ b/lib/Storm/Account/auth.rb @@ -0,0 +1,27 @@+require "Storm/Base/sodserver" + +module Storm + module Account + module Auth + # Expire an existing token immediately + # + ...
Add Auth module and APIs
diff --git a/spec/mailto_awesome_spec.rb b/spec/mailto_awesome_spec.rb index abc1234..def5678 100644 --- a/spec/mailto_awesome_spec.rb +++ b/spec/mailto_awesome_spec.rb @@ -2,13 +2,13 @@ RSpec.describe ::MailtoAwesome do - it 'Good mailto link' do + it 'accepts an awesome mailto link' do file = "#{FIXTURES_D...
Use canonical sentence structure for spec tests
diff --git a/spec/support/carrierwave.rb b/spec/support/carrierwave.rb index abc1234..def5678 100644 --- a/spec/support/carrierwave.rb +++ b/spec/support/carrierwave.rb @@ -11,10 +11,12 @@ storage :file def cache_dir + super # Just to run the superclass method, but we ignore the return value...
Call the superclass implementation to simulate production Carrierwave.
diff --git a/lib/fog/google/storage.rb b/lib/fog/google/storage.rb index abc1234..def5678 100644 --- a/lib/fog/google/storage.rb +++ b/lib/fog/google/storage.rb @@ -5,8 +5,14 @@ module Storage class Google < Fog::Service def self.new(options = {}) + begin + fog_creds = Fog.credentials + ...
Handle case where Fog.credentials is empty
diff --git a/lib/html-proofer/utils.rb b/lib/html-proofer/utils.rb index abc1234..def5678 100644 --- a/lib/html-proofer/utils.rb +++ b/lib/html-proofer/utils.rb @@ -31,13 +31,9 @@ # problem from http://git.io/vBYU1 # solution from http://git.io/vBYUi def clean_content(string) - matches = string.scan(...
Simplify some string cleaning logic
diff --git a/lib/markdo/rss_command.rb b/lib/markdo/rss_command.rb index abc1234..def5678 100644 --- a/lib/markdo/rss_command.rb +++ b/lib/markdo/rss_command.rb @@ -4,12 +4,14 @@ module Markdo class RssCommand < Command def run + uri_parser = URI::Parser.new + items = Dir. glob(markdown_glo...
Fix `warning: URI.extract is obsolete`
diff --git a/lib/rapnd/notification.rb b/lib/rapnd/notification.rb index abc1234..def5678 100644 --- a/lib/rapnd/notification.rb +++ b/lib/rapnd/notification.rb @@ -22,7 +22,7 @@ def json_payload j = ActiveSupport::JSON.encode(payload) - raise "The payload #{j} is larger than allowed: #{j.length}"...
Support the larger payload sizes in iOS 8
diff --git a/lib/tty/prompt/version.rb b/lib/tty/prompt/version.rb index abc1234..def5678 100644 --- a/lib/tty/prompt/version.rb +++ b/lib/tty/prompt/version.rb @@ -2,6 +2,6 @@ module TTY class Prompt - VERSION = '0.16.0'.freeze + VERSION = '0.16.1'.freeze end # Prompt end # TTY
Change to bump patch level up
diff --git a/lib/xcode/install/list.rb b/lib/xcode/install/list.rb index abc1234..def5678 100644 --- a/lib/xcode/install/list.rb +++ b/lib/xcode/install/list.rb @@ -4,23 +4,9 @@ self.command = 'list' self.summary = 'List Xcodes available for download.' - def self.options - [['--all', 'Show al...
Remove --all, and make it the default behaviour
diff --git a/lib/dry/container.rb b/lib/dry/container.rb index abc1234..def5678 100644 --- a/lib/dry/container.rb +++ b/lib/dry/container.rb @@ -7,6 +7,8 @@ require 'dry/container/mixin' require 'dry/container/version' +# A collection of micro-libraries, each intended to encapsulate +# a common task in Ruby module ...
Add a comment describing the Dry (namespace) module
diff --git a/lib/ldap/model/ad.rb b/lib/ldap/model/ad.rb index abc1234..def5678 100644 --- a/lib/ldap/model/ad.rb +++ b/lib/ldap/model/ad.rb @@ -1,17 +1,23 @@+require 'active_support/core_ext/time/zones' + module LDAP::Model module AD # Difference in seconds between the UNIX Epoch (1970-01-01) # and the...
Fix AD time interval parsing
diff --git a/lib/matross/mysql.rb b/lib/matross/mysql.rb index abc1234..def5678 100644 --- a/lib/matross/mysql.rb +++ b/lib/matross/mysql.rb @@ -25,4 +25,14 @@ run "mysql --user=#{mysql_user} --password=#{mysql_passwd} --host=#{mysql_host} --execute=\"#{sql}\"" end after "db:setup", "db:create" + + desc "Loa...
Implement schema load if database empty We count the number of tables in the configured database
diff --git a/lib/opbeat/filter.rb b/lib/opbeat/filter.rb index abc1234..def5678 100644 --- a/lib/opbeat/filter.rb +++ b/lib/opbeat/filter.rb @@ -62,7 +62,7 @@ end def rails_filters - if defined?(::Rails) && Rails.application + if defined?(::Rails) && Rails.respond_to?(:application) && Rails.applica...
Check if Rails responds to application before calling it
diff --git a/lib/croudia/status.rb b/lib/croudia/status.rb index abc1234..def5678 100644 --- a/lib/croudia/status.rb +++ b/lib/croudia/status.rb @@ -10,17 +10,14 @@ :in_reply_to_screen_name, :in_reply_to_status_id_str, :in_reply_to_status_id, :in_reply_to_user_id_str, :in_reply_to_user_id, :spread, ...
Delete play_* attrs of Status object It was a bug in the document. See: https://croudia.com/voices/show/1268070
diff --git a/lib/easemob/groups.rb b/lib/easemob/groups.rb index abc1234..def5678 100644 --- a/lib/easemob/groups.rb +++ b/lib/easemob/groups.rb @@ -1,15 +1,19 @@ module Easemob module Groups + def create_group(groupname, description, owner, members: nil, is_public: true, maxusers: 200, is_approval: false) + ...
Arrange the method sequence in create, query, delete and modify, same as users.
diff --git a/lib/email_assessor.rb b/lib/email_assessor.rb index abc1234..def5678 100644 --- a/lib/email_assessor.rb +++ b/lib/email_assessor.rb @@ -15,7 +15,7 @@ protected def self.domain_in_file?(domain, filename) - return false unless File.exists?(filename) + return false unless filename.present? && Fil...
Check that a file name was provided before checking if the file exists
diff --git a/lib/endpoint/tasks.rb b/lib/endpoint/tasks.rb index abc1234..def5678 100644 --- a/lib/endpoint/tasks.rb +++ b/lib/endpoint/tasks.rb @@ -1,12 +1,22 @@+require 'endpoint/socks' + namespace :endpoint do namespace :proxy do + def ensure_default_config + Endpoint::Socks.default_config.tap do |c| + ...
Add needed lib and better message on missing config.
diff --git a/lib/virtualbox-ws.rb b/lib/virtualbox-ws.rb index abc1234..def5678 100644 --- a/lib/virtualbox-ws.rb +++ b/lib/virtualbox-ws.rb @@ -1,7 +1,7 @@ require 'require_all' require_rel 'core_ext' +require_rel 'virtualbox/base' require_rel 'virtualbox/configuration' require_rel 'virtualbox/exceptions' require_...
Reorder files requiring in main script The main module VBox is defined in the virtualbox/base script. However it is used in others which define submodules. Requiring it first fix a 'NameError: uninitialized constant VBox' when trying to define those submodules.
diff --git a/omniauth-oauth2.gemspec b/omniauth-oauth2.gemspec index abc1234..def5678 100644 --- a/omniauth-oauth2.gemspec +++ b/omniauth-oauth2.gemspec @@ -4,7 +4,7 @@ Gem::Specification.new do |gem| gem.add_dependency "oauth2", "~> 1.1" - gem.add_dependency "omniauth", "~> 1.2" + gem.add_dependency "omni...
Use omniauth 1.9 to ensure latest security updates
diff --git a/lib/metacrunch/cli.rb b/lib/metacrunch/cli.rb index abc1234..def5678 100644 --- a/lib/metacrunch/cli.rb +++ b/lib/metacrunch/cli.rb @@ -24,11 +24,11 @@ if args.empty? say "You need to provide a job description file." exit(1) - elsif args.size > 1 - sa...
Improve CLI to actually run metacrunch job files.
diff --git a/app/helpers/helpers.rb b/app/helpers/helpers.rb index abc1234..def5678 100644 --- a/app/helpers/helpers.rb +++ b/app/helpers/helpers.rb @@ -1,7 +1,7 @@ helpers do def current_user - User.find_by(id: session[:user_id]) + User.find_by(id: session[:user_id]) if session[:user_id] end def log...
Secure by checking for cookie
diff --git a/lib/parallel_batch.rb b/lib/parallel_batch.rb index abc1234..def5678 100644 --- a/lib/parallel_batch.rb +++ b/lib/parallel_batch.rb @@ -61,7 +61,7 @@ end def batch_size - 1000 + 100 end end
Decrease default batch size to 100.
diff --git a/app/models/database.rb b/app/models/database.rb index abc1234..def5678 100644 --- a/app/models/database.rb +++ b/app/models/database.rb @@ -6,6 +6,8 @@ def postgres_report machines.inject([]) do |memo,machine| memo.concat(machine.postgres_report) + end.sort_by do |report| + [report["p...
Sort postgres reports by port and instance name
diff --git a/app/models/document.rb b/app/models/document.rb index abc1234..def5678 100644 --- a/app/models/document.rb +++ b/app/models/document.rb @@ -2,13 +2,13 @@ include FindOrCreateLocked has_many :editions - has_one :draft, -> { where(content_store: "draft") }, class_name: Edition - has_one :live, -> { ...
Use string for class_name in has_one. Passing a class is deprecated.
diff --git a/app/models/position.rb b/app/models/position.rb index abc1234..def5678 100644 --- a/app/models/position.rb +++ b/app/models/position.rb @@ -1,12 +1,19 @@ class Position < ActiveRecord::Base + # Constants + PARADIGM_AVAILABILITY = 'availability' + PARADIGM_FIXED_SHIFT = 'fixed_shift' + PARADIGM_NO_SHIFT...
Add paradigm validator to Position Signed-off-by: Max Fierke <0706025b2bbcec1ed8d64822f4eccd96314938d0@maxfierke.com>
diff --git a/app/models/resident.rb b/app/models/resident.rb index abc1234..def5678 100644 --- a/app/models/resident.rb +++ b/app/models/resident.rb @@ -3,17 +3,4 @@ belongs_to :user - def instance_variable_string_hash *variable_names - h = Hash.new - variable_names.each do |attr| - puts attr - h...
Remove unused methods from Resident model
diff --git a/lib/resource_index.rb b/lib/resource_index.rb index abc1234..def5678 100644 --- a/lib/resource_index.rb +++ b/lib/resource_index.rb @@ -1,9 +1,9 @@+module ResourceIndex; end +RI = ResourceIndex + require 'sequel' require_relative 'resource_index/version' require_relative 'resource_index/resource' - -mod...
Make sure RI is available first thing
diff --git a/rails-patch-json-encode.gemspec b/rails-patch-json-encode.gemspec index abc1234..def5678 100644 --- a/rails-patch-json-encode.gemspec +++ b/rails-patch-json-encode.gemspec @@ -6,11 +6,11 @@ Gem::Specification.new do |spec| spec.name = "rails-patch-json-encode" spec.version = Rails::Pat...
Add homepage and author to gemspec
diff --git a/lib/shoulda/context.rb b/lib/shoulda/context.rb index abc1234..def5678 100644 --- a/lib/shoulda/context.rb +++ b/lib/shoulda/context.rb @@ -1,11 +1,11 @@ begin - # if present, then also loads MiniTest::Spec + # if present, then also loads MiniTest::Unit::TestCase ActiveSupport::TestCase rescue end ...
Fix Rails 4 support for rc1: ActiveSupport::TestCase now inherits from MiniTest::Unit::TestCase instead of MiniTest::Spec. Please see: https://github.com/rails/rails/commit/eb4930e3c724cf71d6ce5bb2aec4af82b2025b03
diff --git a/lib/axiom/types/version.rb b/lib/axiom/types/version.rb index abc1234..def5678 100644 --- a/lib/axiom/types/version.rb +++ b/lib/axiom/types/version.rb @@ -3,7 +3,7 @@ module Axiom module Types - # Unreleased gem version + # Gem version VERSION = '0.0.1'.freeze end # module Types
Update comment to be applicable to released and unreleased gems
diff --git a/spec/client_spec.rb b/spec/client_spec.rb index abc1234..def5678 100644 --- a/spec/client_spec.rb +++ b/spec/client_spec.rb @@ -28,10 +28,10 @@ describe 'getLogs' do it 'returns array from id' do - test_client = Ephemeral::Client.new - response = test_client.build("ruby:2.1", "https://gi...
Comment out test until API is ready
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,7 +8,11 @@ require File.expand_path("../../spec/dummy/config/environment.rb", __FILE__) ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../spec/dummy/db/migra...
Fix setting up test DB
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,3 +1,4 @@+# vim:ai:fdm=marker require 'rubygems' require 'bundler' @@ -9,16 +10,18 @@ ENV["RACK_ENV"] ||= 'test' module RSpecMixin + # {{{ include Rack::Test::Methods...
Add Vim modeline and fold markers
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 @@ -2,3 +2,27 @@ require_relative 'spec_helper_common' require_relative 'spec_helper_pundit' + +def klass_name + described_class.name.underscore +end + +def subject_class + klass...
Add support for new 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 @@ -11,6 +11,10 @@ end end +# Temporary fix for missing require. See +# https://github.com/rails/rails/pull/28835 +require 'active_support/rescuable' + require 'premailer/rails'...
Add temporary fix for rails bug Action Mailer no longer works in isolation due to a missing require. See https://github.com/rails/rails/pull/28835 for more information.
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,12 @@ require 'pry' -require File.join(File.dirname(__FILE__), '/../lib/file_convert') +require File.expand_path('../../lib/file_convert', __FILE__) + +RSpec.configure do |...
Add some strictness for conventions' sake
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,7 +1,9 @@ require "rspec" require "rack" -require_relative "../lib/geo_redirect.rb" +$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) +$LOAD_PATH.unshift(Fi...
Modify load path instead of using require_relative
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 @@ -9,8 +9,6 @@ require 'rom-sql' require 'rom/sql/spec/support' - -require 'rom/adapter/mongo' include ROM
Remove mongo adapter (it was moved to rom-mongo project)
diff --git a/lib/metacon/loaders/rvm.rb b/lib/metacon/loaders/rvm.rb index abc1234..def5678 100644 --- a/lib/metacon/loaders/rvm.rb +++ b/lib/metacon/loaders/rvm.rb @@ -1,6 +1,7 @@ module MetaCon module Loaders class RVM + require 'metacon/loaders/helpers' include MetaCon::Loaders::Helpers in...
Make sure and require the needed helpers
diff --git a/lib/spreedly/connection.rb b/lib/spreedly/connection.rb index abc1234..def5678 100644 --- a/lib/spreedly/connection.rb +++ b/lib/spreedly/connection.rb @@ -28,8 +28,8 @@ private def http http = Net::HTTP.new(endpoint.host, endpoint.port) - http.open_timeout = 70 - http.read_timeou...
Make the inner timeout shorter than the outer
diff --git a/lib/tasks/marty_tasks.rake b/lib/tasks/marty_tasks.rake index abc1234..def5678 100644 --- a/lib/tasks/marty_tasks.rake +++ b/lib/tasks/marty_tasks.rake @@ -8,4 +8,19 @@ puts "Error: ", error end end + + desc 'remove all loaded scripts from the database' + task delete_scripts: :environment d...
Bring over script load/delete rake tasks from Gemini
diff --git a/tar.gemspec b/tar.gemspec index abc1234..def5678 100644 --- a/tar.gemspec +++ b/tar.gemspec @@ -26,6 +26,6 @@ spec.add_development_dependency "minitest", "~> 5.13" spec.add_development_dependency "pry", "~> 0.12" spec.add_development_dependency "rake", "~> 13.0" - spec.add_development_dependency "...
Update rubocop requirement from ~> 0.76.0 to ~> 0.77.0 Updates the requirements on [rubocop](https://github.com/rubocop-hq/rubocop) to permit the latest version. - [Release notes](https://github.com/rubocop-hq/rubocop/releases) - [Changelog](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md) - [Commits](h...
diff --git a/spec/lib/tumblfetch/cli_spec.rb b/spec/lib/tumblfetch/cli_spec.rb index abc1234..def5678 100644 --- a/spec/lib/tumblfetch/cli_spec.rb +++ b/spec/lib/tumblfetch/cli_spec.rb @@ -32,7 +32,7 @@ context 'when .tumblfetch already exist' do it 'should print warning message' do - File.open('.tu...
Use stub instead of File.open. Don't create needless file.
diff --git a/view_data.rb b/view_data.rb index abc1234..def5678 100644 --- a/view_data.rb +++ b/view_data.rb @@ -25,5 +25,5 @@ puts "average sentence length #{l.inject(:+) / 100.0}" -lexicon_density = hash.map {|key,internal| internal.keys.count * 1.0 / hash.keys.count}.inject(:+) / hash.keys.count +lexicon_density...
Make view data use a normalized to lexicon count density. Signed-off-by: Sam Phippen <e5a09176608998a68778e11d5021c871e8fae93c@googlemail.com>
diff --git a/test/models/message_test.rb b/test/models/message_test.rb index abc1234..def5678 100644 --- a/test/models/message_test.rb +++ b/test/models/message_test.rb @@ -2,7 +2,7 @@ require 'test_helper' class MessageTest < ActiveSupport::TestCase - test 'should mailboxer messages model work' do + test 'mailbox...
Reword test to drop should style
diff --git a/PJLinkCocoa.podspec b/PJLinkCocoa.podspec index abc1234..def5678 100644 --- a/PJLinkCocoa.podspec +++ b/PJLinkCocoa.podspec @@ -1,11 +1,11 @@ Pod::Spec.new do |s| s.name = 'PJLinkCocoa' - s.version = '0.9.4' + s.version = '0.9.5' s.license = 'MIT' s.summary = 'A Cocoa...
Update podspec file to 0.9.5
diff --git a/server/test/test_case.rb b/server/test/test_case.rb index abc1234..def5678 100644 --- a/server/test/test_case.rb +++ b/server/test/test_case.rb @@ -25,6 +25,7 @@ "name" => "New Name", "locality" => "New Locality", "distance" => 123, + "elevation_gain" => 1234, "elevation_max" => 1234, ...
Fix test errors which didn't include elevation_gain.
diff --git a/test/test_side_bar.rb b/test/test_side_bar.rb index abc1234..def5678 100644 --- a/test/test_side_bar.rb +++ b/test/test_side_bar.rb @@ -8,5 +8,22 @@ write_test_file g, 'side_bar.png' end + def test_bar_spacing + g = setup_basic_graph(Gruff::SideBar, 800) + g.bar_spacing = 0 + g.title...
Test cases for bar_spacing on SideBars.
diff --git a/TastyTomato.podspec b/TastyTomato.podspec index abc1234..def5678 100644 --- a/TastyTomato.podspec +++ b/TastyTomato.podspec @@ -26,4 +26,5 @@ s.resources = ['TastyTomato/Images/*.{xcassets, png}'] s.public_header_files = [] s.dependency 'SignificantSpices', '~> 0.4.0' + s.dependency 'SwiftDate', '...
Add SwiftDate dependency to podspec
diff --git a/Casks/butt.rb b/Casks/butt.rb index abc1234..def5678 100644 --- a/Casks/butt.rb +++ b/Casks/butt.rb @@ -2,7 +2,7 @@ version '0.1.14' sha256 'f12eac6ad2af8bc38717cccde3f7f139d426b6d098ef94f7dcd6ae7d1225f6ad' - url "http://downloads.sourceforge.net/sourceforge/butt/butt-#{version}/butt-#{version}.dmg...
Fix download url in Butt.app Cask.
diff --git a/lib/active_mocker/mock/exceptions.rb b/lib/active_mocker/mock/exceptions.rb index abc1234..def5678 100644 --- a/lib/active_mocker/mock/exceptions.rb +++ b/lib/active_mocker/mock/exceptions.rb @@ -12,7 +12,17 @@ class FileTypeMismatchError < StandardError end - class RejectedParams < Exception + # ...
Replace RejectedParams and use UnknownAttributesError to follow active record
diff --git a/spec/defines/collectd_plugin_spec.rb b/spec/defines/collectd_plugin_spec.rb index abc1234..def5678 100644 --- a/spec/defines/collectd_plugin_spec.rb +++ b/spec/defines/collectd_plugin_spec.rb @@ -0,0 +1,34 @@+require 'spec_helper' + +describe 'collectd::plugin', :type => :define do + + context 'loading a ...
Add rspec test to ensure the bracket syntax is using when available
diff --git a/UIAlertController+Show.podspec b/UIAlertController+Show.podspec index abc1234..def5678 100644 --- a/UIAlertController+Show.podspec +++ b/UIAlertController+Show.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "UIAlertController+Show" - s.version = "1.0.0" + s.version = "0.1.0" ...
Set initial version number to 0.1.0.
diff --git a/seam-mongodb.gemspec b/seam-mongodb.gemspec index abc1234..def5678 100644 --- a/seam-mongodb.gemspec +++ b/seam-mongodb.gemspec @@ -18,8 +18,6 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] - spec.add_runtime_dependency "json" - spec.add_runtime_de...
Drop the dependencies down a bit.
diff --git a/lib/fog/aws/models/rds/subnet_group.rb b/lib/fog/aws/models/rds/subnet_group.rb index abc1234..def5678 100644 --- a/lib/fog/aws/models/rds/subnet_group.rb +++ b/lib/fog/aws/models/rds/subnet_group.rb @@ -12,8 +12,11 @@ attribute :vpc_id, :aliases => 'VpcId' attribute :subnet_ids, :aliase...
[aws|rds] Implement `ready?` for subnet group.
diff --git a/lib/infoblox/resource/host_ipv4addr.rb b/lib/infoblox/resource/host_ipv4addr.rb index abc1234..def5678 100644 --- a/lib/infoblox/resource/host_ipv4addr.rb +++ b/lib/infoblox/resource/host_ipv4addr.rb @@ -1,6 +1,6 @@ module Infoblox class HostIpv4addr < Resource - remote_attr_accessor :network, :host,...
Add mac address attr to ipv4addr resource
diff --git a/lib/rubocop/cop/style/case_equality.rb b/lib/rubocop/cop/style/case_equality.rb index abc1234..def5678 100644 --- a/lib/rubocop/cop/style/case_equality.rb +++ b/lib/rubocop/cop/style/case_equality.rb @@ -5,7 +5,7 @@ module Style # This cop checks for uses of the case equality operator(===). ...
Improve CaseEquality's message a bit
diff --git a/lib/transition/google/tsv_generator.rb b/lib/transition/google/tsv_generator.rb index abc1234..def5678 100644 --- a/lib/transition/google/tsv_generator.rb +++ b/lib/transition/google/tsv_generator.rb @@ -1,3 +1,7 @@+# From the rake task, for some reason, app/models/hit.rb is not loaded, +# despite the => :...
Document why weird require_relative exists
diff --git a/Tunits.podspec b/Tunits.podspec index abc1234..def5678 100644 --- a/Tunits.podspec +++ b/Tunits.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "Tunits" - s.version = "0.1.1" + s.version = "0.1.2" s.summary = "A date modification library" s.descriptio...
Update to version 0.1.2 for tagging
diff --git a/Casks/iterm2-beta.rb b/Casks/iterm2-beta.rb index abc1234..def5678 100644 --- a/Casks/iterm2-beta.rb +++ b/Casks/iterm2-beta.rb @@ -1,5 +1,5 @@ class Iterm2Beta < Cask - url 'http://www.iterm2.com/downloads/beta/iTerm2-1_0_0_20130811.zip' + url 'http://www.iterm2.com/downloads/beta/iTerm2-1_0_0_20131108....
Update iTerm2 version to 20131108
diff --git a/Casks/handbrakecli-nightly.rb b/Casks/handbrakecli-nightly.rb index abc1234..def5678 100644 --- a/Casks/handbrakecli-nightly.rb +++ b/Casks/handbrakecli-nightly.rb @@ -1,6 +1,6 @@ cask :v1 => 'handbrakecli-nightly' do - version '6714svn' - sha256 '57eb6aa19d84e281e8d696bf1f3ecb2b84b3d6d13144c133f94b00530...
Update HandbrakeCLI Nightly to v6752svn HandBrakeCLI Nightly v6752svn built 2015-01-15.
diff --git a/lib/tasks/remove_duplicate_virtual_users.rake b/lib/tasks/remove_duplicate_virtual_users.rake index abc1234..def5678 100644 --- a/lib/tasks/remove_duplicate_virtual_users.rake +++ b/lib/tasks/remove_duplicate_virtual_users.rake @@ -3,7 +3,7 @@ task :remove => :environment do puts 'Removing duplicate...
Use batches to loop over every post, small refactoring
diff --git a/ruby-puppetdb.gemspec b/ruby-puppetdb.gemspec index abc1234..def5678 100644 --- a/ruby-puppetdb.gemspec +++ b/ruby-puppetdb.gemspec @@ -21,4 +21,6 @@ s.add_development_dependency 'rake' s.add_development_dependency 'puppetlabs_spec_helper' s.add_development_dependency 'puppet' + s.add_development_...
Add racc and rex as devel dependencies
diff --git a/app.rb b/app.rb index abc1234..def5678 100644 --- a/app.rb +++ b/app.rb @@ -26,9 +26,22 @@ @game = WebGameEngine.new({ttt_board: session[:board], rules: rules, comp_player: comp_player}) @player_input = params[:grid_position] - session[:board] = @game.ttt_board.move(@player_input) + if ses...
Add logic to check to see if input is valid
diff --git a/lib/ami_spec/server_spec.rb b/lib/ami_spec/server_spec.rb index abc1234..def5678 100644 --- a/lib/ami_spec/server_spec.rb +++ b/lib/ami_spec/server_spec.rb @@ -30,6 +30,10 @@ RSpec::Core::Runner.disable_autorun! result = RSpec::Core::Runner.run(Dir.glob("#{@spec}/#{@role}/*_spec.rb")) + ...
Clear rspec examples between runs So examples from previous runs are not executed in future runs
diff --git a/LunchOverflow/app/controllers/posts_controller.rb b/LunchOverflow/app/controllers/posts_controller.rb index abc1234..def5678 100644 --- a/LunchOverflow/app/controllers/posts_controller.rb +++ b/LunchOverflow/app/controllers/posts_controller.rb @@ -35,6 +35,12 @@ end end + def destroy + post = ...
Add destroy method for posts controller
diff --git a/config/schedule.rb b/config/schedule.rb index abc1234..def5678 100644 --- a/config/schedule.rb +++ b/config/schedule.rb @@ -9,7 +9,7 @@ # set :output, './log/cron.log' -%w[6:05 9:05 13:05 18:05 23:05 3:05].each do |time| +%w[6:05 9:05 13:05 18:05 23:05].each do |time| every :day, at: time do rak...
Remove unwanted diary entry in the afternoon
diff --git a/config/schedule.rb b/config/schedule.rb index abc1234..def5678 100644 --- a/config/schedule.rb +++ b/config/schedule.rb @@ -1,9 +1,9 @@ set :output, { error: 'log/cron.error.log', standard: 'log/cron.log'} every 1.hour do - rake "tariff:download" + rake "tariff:sync:download" end every 1.day, at: ...
Fix task names, add sync namespace.
diff --git a/lib/github_cli/formatter.rb b/lib/github_cli/formatter.rb index abc1234..def5678 100644 --- a/lib/github_cli/formatter.rb +++ b/lib/github_cli/formatter.rb @@ -5,10 +5,11 @@ # It delegates to other objects like Formatter::Table # to perform actual rendering. class Formatter - attr_reader :respon...
Fix error on empty response bodies, add custom message.
diff --git a/lib/looks/command/images.rb b/lib/looks/command/images.rb index abc1234..def5678 100644 --- a/lib/looks/command/images.rb +++ b/lib/looks/command/images.rb @@ -14,7 +14,7 @@ def configure(opts) super - opts.on('-v', '--verbose', "Be verbose") do |address| + opts.on('-v', '--v...
Remove misnamed block parameter in 'Images'
diff --git a/abstractize.gemspec b/abstractize.gemspec index abc1234..def5678 100644 --- a/abstractize.gemspec +++ b/abstractize.gemspec @@ -7,9 +7,9 @@ spec.name = 'abstractize' spec.version = Abstractize::VERSION spec.authors = ['Joakim Reinert'] - spec.email = ['reinert@meso.net...
Set correct mail address and push_host in gemspec
diff --git a/lib/responders.rb b/lib/responders.rb index abc1234..def5678 100644 --- a/lib/responders.rb +++ b/lib/responders.rb @@ -8,17 +8,16 @@ ActionController::Base.extend Responders::ControllerMethod class Railtie < ::Rails::Railtie - railtie_name :responders - + config.responders = ActiveSupport::Or...
Make it compatible with master.
diff --git a/lib/sonia/widgets/icinga.rb b/lib/sonia/widgets/icinga.rb index abc1234..def5678 100644 --- a/lib/sonia/widgets/icinga.rb +++ b/lib/sonia/widgets/icinga.rb @@ -7,7 +7,7 @@ def initial_push fetch_data - EventMachine::add_periodic_timer(61) { fetch_data } + EventMachine::add_pe...
Set timer to 60 seconds
diff --git a/lib/soprano/smart_assets.rb b/lib/soprano/smart_assets.rb index abc1234..def5678 100644 --- a/lib/soprano/smart_assets.rb +++ b/lib/soprano/smart_assets.rb @@ -0,0 +1,15 @@+Capistrano::Configuration.instance(:must_exist).load do + # This skips assets precompilation if nothing changed + namespace :deploy ...
Add recipe for smart assets. Assets won't be recompiled if they were not changed.
diff --git a/Casks/omnioutliner.rb b/Casks/omnioutliner.rb index abc1234..def5678 100644 --- a/Casks/omnioutliner.rb +++ b/Casks/omnioutliner.rb @@ -1,11 +1,11 @@ cask :v1 => 'omnioutliner' do - version :latest - sha256 :no_check + version '4.2.2' + sha256 '22b30eb4964caaa7be8e6a279ded2eae78f6f2e8db40b812f0b17e2759...
Update OmniOutliner to user version instead of latest This commit updates the version to be 4.2.2 instead of the :latest identifier, specifies a SHA and updates the license to commercial
diff --git a/lib/tinami/api.rb b/lib/tinami/api.rb index abc1234..def5678 100644 --- a/lib/tinami/api.rb +++ b/lib/tinami/api.rb @@ -9,12 +9,12 @@ end end - def get(path, params) + def get(path, params = {}) response = RestClient.get(endpoint + path, header.merge(params: params)) parse_...
Change request method params arguments to optional.
diff --git a/lib/tasks/peoplefinder.rake b/lib/tasks/peoplefinder.rake index abc1234..def5678 100644 --- a/lib/tasks/peoplefinder.rake +++ b/lib/tasks/peoplefinder.rake @@ -29,16 +29,9 @@ if STDIN.gets.chomp == 'Y' recipients.each do |recipient| - - if EmailAddress.new(recipient.email).valid_address...
Remove check of person's email validity in reminder email task Email validity is checked when person is created or updated. All invalid email addresses in legacy production data have been fixed. So email is always valid and does not need to be checked here.
diff --git a/lib/uniqueness/generator.rb b/lib/uniqueness/generator.rb index abc1234..def5678 100644 --- a/lib/uniqueness/generator.rb +++ b/lib/uniqueness/generator.rb @@ -1,3 +1,5 @@+require 'securerandom' + module Uniqueness class << self def generate(opts = {}) @@ -7,7 +9,7 @@ dict -= [*(:A..:Z)].map...
Use SecureRandom instead of rand
diff --git a/lib/veritas/algebra/join.rb b/lib/veritas/algebra/join.rb index abc1234..def5678 100644 --- a/lib/veritas/algebra/join.rb +++ b/lib/veritas/algebra/join.rb @@ -33,7 +33,7 @@ index = {} right.each do |tuple| - (index[join_tuple(tuple)] ||= []) << remainder_tuple(tuple) + ...
Use a Set for the Join index, to prevent duplicate tuples
diff --git a/libraries/util.rb b/libraries/util.rb index abc1234..def5678 100644 --- a/libraries/util.rb +++ b/libraries/util.rb @@ -13,13 +13,13 @@ def render_properties_file(config = {}) config.sort_by { |k, _v| k }.collect do |k, v| - "#{k.gsub('_', '-')}=#{v}" + "#{k.tr('_', '-')}=#{v}" ...
Rubocop: Use tr instead of gsub for a single char A total micro-optimization, but may as well while Rubocop is complaining
diff --git a/lib/knapsack_pro/crypto/branch_encryptor.rb b/lib/knapsack_pro/crypto/branch_encryptor.rb index abc1234..def5678 100644 --- a/lib/knapsack_pro/crypto/branch_encryptor.rb +++ b/lib/knapsack_pro/crypto/branch_encryptor.rb @@ -1,7 +1,21 @@ module KnapsackPro module Crypto class BranchEncryptor - ...
Update list of non encryptable branches
diff --git a/lib/omniauth/strategies/wordpress_hosted.rb b/lib/omniauth/strategies/wordpress_hosted.rb index abc1234..def5678 100644 --- a/lib/omniauth/strategies/wordpress_hosted.rb +++ b/lib/omniauth/strategies/wordpress_hosted.rb @@ -32,8 +32,8 @@ end def raw_info - puts access_token - @...
Update endpoints used by WP OAuth Server 3.1.3
diff --git a/lib/omniauth/strategies/wordpress_hosted.rb b/lib/omniauth/strategies/wordpress_hosted.rb index abc1234..def5678 100644 --- a/lib/omniauth/strategies/wordpress_hosted.rb +++ b/lib/omniauth/strategies/wordpress_hosted.rb @@ -32,7 +32,8 @@ end def raw_info - @raw_info ||= access_token.g...
Update endpoints used by WP OAuth Server 3.1.3
diff --git a/app/controllers/asciicasts_controller.rb b/app/controllers/asciicasts_controller.rb index abc1234..def5678 100644 --- a/app/controllers/asciicasts_controller.rb +++ b/app/controllers/asciicasts_controller.rb @@ -17,7 +17,7 @@ def show @asciicast = AsciicastDecorator.find(params[:id]) @title = @...
Fix fetching cast data via ajax
diff --git a/lib/tasks/taxonomy/find_tagged_content.rake b/lib/tasks/taxonomy/find_tagged_content.rake index abc1234..def5678 100644 --- a/lib/tasks/taxonomy/find_tagged_content.rake +++ b/lib/tasks/taxonomy/find_tagged_content.rake @@ -0,0 +1,22 @@+namespace :taxonomy do + desc "Find content tagged with the given doc...
Add rake task for finding taxon-tagged content by document type This will be used to check our assumptions about whether content with a given document type is really 'guidance' and should appear on taxon pages.
diff --git a/ColorPickerRow.podspec b/ColorPickerRow.podspec index abc1234..def5678 100644 --- a/ColorPickerRow.podspec +++ b/ColorPickerRow.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'ColorPickerRow' - s.version = '1.2.1' + s.version = '1.3.1' s.license = 'MIT' s.summary = 'A color picker row for...
Make sure the right version number is reporting to CocoaPods
diff --git a/spec/helpers/regions_helper_spec.rb b/spec/helpers/regions_helper_spec.rb index abc1234..def5678 100644 --- a/spec/helpers/regions_helper_spec.rb +++ b/spec/helpers/regions_helper_spec.rb @@ -0,0 +1,16 @@+require 'rails_helper' + +describe Admin::RegionsHelper do + + describe "#render_region" do + + be...
Test that render_region returns html_safe string
diff --git a/tasks/release_to_patch.rake b/tasks/release_to_patch.rake index abc1234..def5678 100644 --- a/tasks/release_to_patch.rake +++ b/tasks/release_to_patch.rake @@ -0,0 +1,16 @@+require 'buildr/packaging/artifact' + +module Buildr + class Repositories + def release_to + unless @release_to + valu...
Customize buildr so that release_to information is loaded from build settings if not present in user settings
diff --git a/lib/fog/scaleway/models/compute/servers.rb b/lib/fog/scaleway/models/compute/servers.rb index abc1234..def5678 100644 --- a/lib/fog/scaleway/models/compute/servers.rb +++ b/lib/fog/scaleway/models/compute/servers.rb @@ -28,7 +28,6 @@ defaults = { name: name, image: '75c2...
Stop passing commercial_type when bootstrapping
diff --git a/app/models/assignment_file.rb b/app/models/assignment_file.rb index abc1234..def5678 100644 --- a/app/models/assignment_file.rb +++ b/app/models/assignment_file.rb @@ -5,7 +5,7 @@ validates_presence_of :filename validates_uniqueness_of :filename, scope: :assignment_id validates_format_of :filename,...
Fix security warning from Rails 4 related to regepx anchors
diff --git a/app/models/where_you_heard.rb b/app/models/where_you_heard.rb index abc1234..def5678 100644 --- a/app/models/where_you_heard.rb +++ b/app/models/where_you_heard.rb @@ -1,9 +1,5 @@ class WhereYouHeard OPTIONS = { - '19' => 'Media - Pensions Awareness Day', - '20' => 'Media - Leaving planning retire...
Update WDYH options inline with other planners
diff --git a/webapp/lib/trisano.rb b/webapp/lib/trisano.rb index abc1234..def5678 100644 --- a/webapp/lib/trisano.rb +++ b/webapp/lib/trisano.rb @@ -1,5 +1,5 @@ module Trisano - VERSION = %w(3 5 7).freeze + VERSION = %w(EDGE).freeze end require 'trisano/application'
Remove version number from edge deployment
diff --git a/terraform_inventory.gemspec b/terraform_inventory.gemspec index abc1234..def5678 100644 --- a/terraform_inventory.gemspec +++ b/terraform_inventory.gemspec @@ -24,7 +24,8 @@ spec.test_files = Dir.glob("spec/**/*") spec.require_paths = %w[lib] + + spec.add_dependency "thor" spec.add_develo...
Make thor a dependency, rather than development_depdency