diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/nexpose.gemspec b/nexpose.gemspec index abc1234..def5678 100644 --- a/nexpose.gemspec +++ b/nexpose.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |s| s.name = 'nexpose' - s.version = '0.2.1' + s.version = '0.2.2' s.homepage = 'https://...
Bump to fix ReportTemplate issue.
diff --git a/helpers/upload_helper.rb b/helpers/upload_helper.rb index abc1234..def5678 100644 --- a/helpers/upload_helper.rb +++ b/helpers/upload_helper.rb @@ -1,3 +1,5 @@+require "digest" + module UploadHelper def self.validate(text) return false if text.nil? or text.length <= 0
Add digest require to UploadHelper
diff --git a/db/seeds.rb b/db/seeds.rb index abc1234..def5678 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -34,9 +34,24 @@ organizer_id: 2 ) +dbc = Group.create( + name: 'Dev Bootcamp', + admin_id: 3, + organizer_id: 3 +) + +coding = Group.create( + name: 'Coding Champz Basketball Team', + admin_id: 4, + or...
Update seed data, add more groups, and members to those groups
diff --git a/jsonnet.gemspec b/jsonnet.gemspec index abc1234..def5678 100644 --- a/jsonnet.gemspec +++ b/jsonnet.gemspec @@ -20,4 +20,5 @@ spec.add_development_dependency "bundler", "~> 1.7" spec.add_development_dependency "rake", "~> 10.0" + spec.add_development_dependency "test-unit", "~> 3.1.3" end
Add test/unit to the list of deps
diff --git a/hector.gemspec b/hector.gemspec index abc1234..def5678 100644 --- a/hector.gemspec +++ b/hector.gemspec @@ -7,10 +7,11 @@ s.homepage = "http://github.com/sstephenson/hector" s.summary = "Private group chat server" s.description = "A private group chat server for people you trust. Implemen...
Update gemspec to remove warnings - Use MIT license - Use pessimistic operator to give version constraints
diff --git a/lib/twitter.rb b/lib/twitter.rb index abc1234..def5678 100644 --- a/lib/twitter.rb +++ b/lib/twitter.rb @@ -1,4 +1,4 @@-# +# require('rubygems') module Twitter; end @@ -7,9 +7,11 @@ require(File.expand_path(File.join(File.dirname(__FILE__), suffix))) end -# For better unicode support -$KCODE = 'u...
Check RUBY_VERSION for 1.9 support
diff --git a/language/file_spec.rb b/language/file_spec.rb index abc1234..def5678 100644 --- a/language/file_spec.rb +++ b/language/file_spec.rb @@ -14,7 +14,7 @@ it "equals a relative path when required using a relative path" do path = "language/fixtures/file.rb" require path - ScratchPad.recorded.shoul...
Correct coding of __FILE__ expectation
diff --git a/spec/controllers/blobs_controller_spec.rb b/spec/controllers/blobs_controller_spec.rb index abc1234..def5678 100644 --- a/spec/controllers/blobs_controller_spec.rb +++ b/spec/controllers/blobs_controller_spec.rb @@ -5,7 +5,7 @@ # Test dependent on the fact that the default repo_with_data contains a Gemfi...
Remove debug code from blobs spec
diff --git a/lib/vertica/messages/backend_messages/data_row.rb b/lib/vertica/messages/backend_messages/data_row.rb index abc1234..def5678 100644 --- a/lib/vertica/messages/backend_messages/data_row.rb +++ b/lib/vertica/messages/backend_messages/data_row.rb @@ -11,6 +11,7 @@ pos = 2 field_count.times do...
Fix decoding of nil values in DataRow messages.
diff --git a/cookbooks/travis_docker/attributes/default.rb b/cookbooks/travis_docker/attributes/default.rb index abc1234..def5678 100644 --- a/cookbooks/travis_docker/attributes/default.rb +++ b/cookbooks/travis_docker/attributes/default.rb @@ -1,4 +1,4 @@-default['travis_docker']['version'] = '1.12.6-0~trusty' +defaul...
Switch to new docker deb suffix style
diff --git a/lib/compass-magick.rb b/lib/compass-magick.rb index abc1234..def5678 100644 --- a/lib/compass-magick.rb +++ b/lib/compass-magick.rb @@ -1,18 +1,12 @@-module Compass::Magick; end +require 'RMagick' -begin - # Gem install - require 'rubygems' - require 'RMagick' - require 'compass-magick/command' - re...
Simplify loading of components, no need to depend on rubygems.
diff --git a/lib/cloud_conductor/adapters/abstract_adapter.rb b/lib/cloud_conductor/adapters/abstract_adapter.rb index abc1234..def5678 100644 --- a/lib/cloud_conductor/adapters/abstract_adapter.rb +++ b/lib/cloud_conductor/adapters/abstract_adapter.rb @@ -23,7 +23,7 @@ fail 'Unimplement method' end - ...
Add argument that has cloud credentials
diff --git a/recipes/default.rb b/recipes/default.rb index abc1234..def5678 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -1,5 +1,5 @@ if node[:omnibus_updater][:disabled] - Chef::Log.info 'Omnibus update disabled as requested' + Chef::Log.warn 'Omnibus updater disabled via `disabled` attribute' elsi...
Use warn level message when disabled via attribute
diff --git a/lib/parens_matcher.rb b/lib/parens_matcher.rb index abc1234..def5678 100644 --- a/lib/parens_matcher.rb +++ b/lib/parens_matcher.rb @@ -1,26 +1,19 @@ class ParensMatcher def initialize(str) @str = str - @balanced = true - @number_of_opened_parens = 0 end def balanced? - if parens.f...
Improve the paren matcher algorithm
diff --git a/lib/precious_cargo.rb b/lib/precious_cargo.rb index abc1234..def5678 100644 --- a/lib/precious_cargo.rb +++ b/lib/precious_cargo.rb @@ -1,8 +1,5 @@+require "gibberish" require "precious_cargo/version" -require "digest/sha2" -require "openssl" -require 'base64' - require 'precious_cargo/secret' require '...
Change require statements to use gibberish gem.
diff --git a/knife-vsphere.gemspec b/knife-vsphere.gemspec index abc1234..def5678 100644 --- a/knife-vsphere.gemspec +++ b/knife-vsphere.gemspec @@ -16,7 +16,7 @@ s.license = "Apache-2.0" s.add_dependency "netaddr", ["~> 1.5"] s.add_dependency "rbvmomi", [">= 1.8", "< 3.0"] - s.add_dependency "filesize", ["~> ...
Update filesize requirement from ~> 0.1.1 to >= 0.1.1, < 0.3.0 Updates the requirements on [filesize](https://github.com/dominikh/filesize) to permit the latest version. - [Release notes](https://github.com/dominikh/filesize/releases) - [Commits](https://github.com/dominikh/filesize/commits) Signed-off-by: dependabot...
diff --git a/lib/status_checker.rb b/lib/status_checker.rb index abc1234..def5678 100644 --- a/lib/status_checker.rb +++ b/lib/status_checker.rb @@ -34,7 +34,7 @@ def get_errors begin - return status_service.list().entries.select{|e| e.NgIdSet.NgObjectType == "SalesReceipt" and e.NgIdSet.NgId == @id}.coll...
Add more information to failure status
diff --git a/keyboard_example.rb b/keyboard_example.rb index abc1234..def5678 100644 --- a/keyboard_example.rb +++ b/keyboard_example.rb @@ -5,12 +5,7 @@ super 640, 480 self.caption = "Keyboard Example" @font = Gosu::Font.new(32, name: "Nimbus Mono L") - input = Gosu::TextInput.new - def input.filter text_in ...
Remove filter from keyboard example.
diff --git a/lib/MrMurano/Solution.rb b/lib/MrMurano/Solution.rb index abc1234..def5678 100644 --- a/lib/MrMurano/Solution.rb +++ b/lib/MrMurano/Solution.rb @@ -30,6 +30,15 @@ end # … + def get(*args) + ret = super + if ret.nil? + warning "No solution with ID: #{@sid}" + exit 1 + ...
Add get() wrapper to catch when ret is nil and die. - ret is nil, e.g., if the solution ID being used is invalid.
diff --git a/spec/controllers/active_courses_controller_spec.rb b/spec/controllers/active_courses_controller_spec.rb index abc1234..def5678 100644 --- a/spec/controllers/active_courses_controller_spec.rb +++ b/spec/controllers/active_courses_controller_spec.rb @@ -2,17 +2,15 @@ require 'rails_helper' -describe Acti...
Convert controller spec to request spec Controller specs are no longer a supported part of Rails core, and request specs are now the recommended replacement since they hit the router and middlewhare, and they render views by default.
diff --git a/postino.podspec b/postino.podspec index abc1234..def5678 100644 --- a/postino.podspec +++ b/postino.podspec @@ -0,0 +1,12 @@+Pod::Spec.new do |s| + + s.name = "Postino" + s.version = "0.0.1" + s.summary = "" + s.homepage = "https://github.com/miguelbassila/postino" + s.license ...
Add podspec to integrate with CocoaPods
diff --git a/lib/fizzbuzz.rb b/lib/fizzbuzz.rb index abc1234..def5678 100644 --- a/lib/fizzbuzz.rb +++ b/lib/fizzbuzz.rb @@ -31,5 +31,7 @@ end end +FB = FizzBuzz + # vim: set ts=2 sw=2 et : # encoding: utf-8
Add alias FB for FizzBuzz. Signed-off-by: Krzysztof Wilczynski <9bf091559fc98493329f7d619638c79e91ccf029@linux.com>
diff --git a/routes/api/main.rb b/routes/api/main.rb index abc1234..def5678 100644 --- a/routes/api/main.rb +++ b/routes/api/main.rb @@ -26,8 +26,11 @@ halt json_status 404, 'Unknown group' if @group.nil? end - after %r{/api.*} do - halt json_status 404, 'Route not found' if response.status == 404 + not_f...
Fix bug with 404 errors
diff --git a/Casks/gephi.rb b/Casks/gephi.rb index abc1234..def5678 100644 --- a/Casks/gephi.rb +++ b/Casks/gephi.rb @@ -1,7 +1,7 @@ class Gephi < Cask url 'https://launchpad.net/gephi/0.8/0.8.2beta/+download/gephi-0.8.2-beta.dmg' homepage 'http://gephi.org/' - version '0.8.2' + version '0.8.2-beta' sha1 'ce...
Add beta to Gephi version field
diff --git a/lib/guard/ui.rb b/lib/guard/ui.rb index abc1234..def5678 100644 --- a/lib/guard/ui.rb +++ b/lib/guard/ui.rb @@ -24,7 +24,7 @@ end def reset_line - print "\r\e " + print "\r\e[0m" end def clear
Use the correct ANSI escape code to reset SGR parameters.
diff --git a/lib/jiraSOAP.rb b/lib/jiraSOAP.rb index abc1234..def5678 100644 --- a/lib/jiraSOAP.rb +++ b/lib/jiraSOAP.rb @@ -1,3 +1,4 @@+#TODO: set a requirement on the handsoap version require 'handsoap' require 'logger'
Add a note to remind myself of something to do later
diff --git a/lib/commonmarker/node.rb b/lib/commonmarker/node.rb index abc1234..def5678 100644 --- a/lib/commonmarker/node.rb +++ b/lib/commonmarker/node.rb @@ -6,6 +6,8 @@ # # blk - A {Proc} representing the action to take for each child def walk(&block) + return enum_for(:walk) unless block_given? ...
Return an enumerator if no block is given for `walk`
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.5' + s.version = '0.5.0.0' s.summary = 'Logging to STD IO with levels, tagging, and coloring' ...
Package version increased from 0.4.3.5 to 0.5.0.0
diff --git a/config/initializers/ahoy.rb b/config/initializers/ahoy.rb index abc1234..def5678 100644 --- a/config/initializers/ahoy.rb +++ b/config/initializers/ahoy.rb @@ -1,3 +1,9 @@ class Ahoy::Store < Ahoy::Stores::ActiveRecordTokenStore - # customize here + end + +Ahoy.geocode = :async +Ahoy.track_visits_immedia...
Configure Ahoy to try to collect more data
diff --git a/config/initializers/misc.rb b/config/initializers/misc.rb index abc1234..def5678 100644 --- a/config/initializers/misc.rb +++ b/config/initializers/misc.rb @@ -5,7 +5,7 @@ PEOPLE_ATTRIBUTES_SHOWABLE_ON_HOMEPAGE = %w(website service_name service_description service_phone service_email service_website activi...
Use connection.adapter_name for determining database type
diff --git a/lib/http/timeout/null.rb b/lib/http/timeout/null.rb index abc1234..def5678 100644 --- a/lib/http/timeout/null.rb +++ b/lib/http/timeout/null.rb @@ -20,27 +20,29 @@ # Starts a SSL connection on a socket def connect_ssl - socket.connect + @socket.connect end # Con...
Check if socket responds to sync_close=
diff --git a/lib/mina/scp.rb b/lib/mina/scp.rb index abc1234..def5678 100644 --- a/lib/mina/scp.rb +++ b/lib/mina/scp.rb @@ -9,8 +9,7 @@ when :down then from = remote_prefix + from end command << " #{from} #{to}" - print_command command if options[:verbose] - exec command + options[:verbose] ? %x[command] : ...
Use `system` over `exec` to spawn a subshell. If using verbose, use `%x[command]` instead to return output.
diff --git a/PXInfiniteScrollView.podspec b/PXInfiniteScrollView.podspec index abc1234..def5678 100644 --- a/PXInfiniteScrollView.podspec +++ b/PXInfiniteScrollView.podspec @@ -16,11 +16,8 @@ s.platform = :ios, '7.0' s.requires_arc = true - s.source_files = 'Pod/Classes/**/*' - s.resource_bundles = { - ...
Remove unnecessary items from podspec
diff --git a/lib/mado/file_handler.rb b/lib/mado/file_handler.rb index abc1234..def5678 100644 --- a/lib/mado/file_handler.rb +++ b/lib/mado/file_handler.rb @@ -7,7 +7,7 @@ end def file_modified - @sockets.each { |socket| socket.send(convert_markdown) } + @sockets.each { |socket| socket.send(conver...
Check whether Markdown file exists
diff --git a/lib/alchemy/logger.rb b/lib/alchemy/logger.rb index abc1234..def5678 100644 --- a/lib/alchemy/logger.rb +++ b/lib/alchemy/logger.rb @@ -1,9 +1,9 @@ module Alchemy module Logger - # Logs a warning to the Rails standard logger and adds some nicer formatting + # Logs a debug message to the Rails st...
Change log level of Alchemy.log_warning from warn to debug. Log level warn is also used in production environments. But the Alchemy warn logger is meant to only log in dev environments.
diff --git a/metadata.rb b/metadata.rb index abc1234..def5678 100644 --- a/metadata.rb +++ b/metadata.rb @@ -11,3 +11,5 @@ depends 'docker', '~> 2.3' supports 'rhel' +supports 'centos' +
Add centos as a supported platform Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
diff --git a/metadata.rb b/metadata.rb index abc1234..def5678 100644 --- a/metadata.rb +++ b/metadata.rb @@ -13,4 +13,4 @@ chef_version '>= 12.0' if respond_to?(:chef_version) supports 'debian' -version '1.51.0' +version '1.51.1'
Fix confusion of File and Chef::Provider::File
diff --git a/lib/huginn_agent.rb b/lib/huginn_agent.rb index abc1234..def5678 100644 --- a/lib/huginn_agent.rb +++ b/lib/huginn_agent.rb @@ -35,7 +35,8 @@ alias :default_types :types def types - default_types + HuginnAgent.agent_types + (default_types + HuginnAgent.agent_types) + ....
Sort these agents by name.
diff --git a/lib/rubocop/cop/money.rb b/lib/rubocop/cop/money.rb index abc1234..def5678 100644 --- a/lib/rubocop/cop/money.rb +++ b/lib/rubocop/cop/money.rb @@ -1,3 +1,4 @@ # frozen_string_literal: true require 'rubocop/cop/money/missing_currency' +require 'rubocop/cop/money/zero_money'
Add missing ZeroMoney cop require Missed this in https://github.com/Shopify/money/pull/205
diff --git a/lib/specjour/db_scrub.rb b/lib/specjour/db_scrub.rb index abc1234..def5678 100644 --- a/lib/specjour/db_scrub.rb +++ b/lib/specjour/db_scrub.rb @@ -30,6 +30,7 @@ protected def connect_to_database + ActiveRecord::Base.remove_connection connection rescue # assume the database does...
Fix specjour prepare task not recreating db The prepare task drops the database then tries to recreate it but won't recreate the database when the stale connection still exists.
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 @@ -7,28 +7,29 @@ require_relative 'view_extensions' module Loaf + class RailtieHelpers + class << self + def insert_view + ActionController::Base.helper Loaf::View...
Change to fix class mismatch
diff --git a/lib/tasks/downloads.rake b/lib/tasks/downloads.rake index abc1234..def5678 100644 --- a/lib/tasks/downloads.rake +++ b/lib/tasks/downloads.rake @@ -16,8 +16,15 @@ .order(:name) package_list.each_with_index do |package, index| - categories = package.categories.map(&:name).inspect - ca...
Remove clutter from categories column
diff --git a/lib/tasks/travis-ci.rake b/lib/tasks/travis-ci.rake index abc1234..def5678 100644 --- a/lib/tasks/travis-ci.rake +++ b/lib/tasks/travis-ci.rake @@ -1,4 +1,5 @@ begin + require 'rspec/core/rake_task' namespace :travis do desc "Run all specs in except for the request specs"
Add the rspec load call for rake_task This is needed to actually trigger the LoadError. If it isn't present then the rescue block will never fire and the uninitialized constant error for RSpec will still happen in prod.
diff --git a/lib/thailand/province.rb b/lib/thailand/province.rb index abc1234..def5678 100644 --- a/lib/thailand/province.rb +++ b/lib/thailand/province.rb @@ -31,5 +31,10 @@ def self.query_collection all end + + alias_method :amphoe, :subregions + alias_method :amphoe?, :subregions? + alias_m...
Add alias methods for Province
diff --git a/lib/post_message.rb b/lib/post_message.rb index abc1234..def5678 100644 --- a/lib/post_message.rb +++ b/lib/post_message.rb @@ -4,12 +4,12 @@ notifier = Slack::Notifier.new webhook_url - notifier.channel = value_for(:channel, 'hub') - notifier.username = value_for(:username, 'Slack EP') + ...
Send attachments without array wrapping
diff --git a/lib/segments/tq1.rb b/lib/segments/tq1.rb index abc1234..def5678 100644 --- a/lib/segments/tq1.rb +++ b/lib/segments/tq1.rb @@ -7,8 +7,8 @@ add_field :explicit_time, idx: 4 add_field :relative_time_and_units, idx: 5 add_field :service_duration, idx: 6 - add_field :start_date_time, idx: 7 - add_fi...
Rename TQ1 start_date and end_date
diff --git a/lib/ship_fosdick.rb b/lib/ship_fosdick.rb index abc1234..def5678 100644 --- a/lib/ship_fosdick.rb +++ b/lib/ship_fosdick.rb @@ -1,23 +1,17 @@+require 'spree_core' require 'ship_fosdick/version' require 'ship_fosdick/railtie' require 'ship_fosdick/engine' # Fosdick integration entry point. -# Will che...
Clean Up If Rails Block Assuming this will only work with rails now that this will be an Engine over a strait gem.
diff --git a/lib/sidecloq/web.rb b/lib/sidecloq/web.rb index abc1234..def5678 100644 --- a/lib/sidecloq/web.rb +++ b/lib/sidecloq/web.rb @@ -11,8 +11,10 @@ end app.post '/recurring/:name/enqueue' do |name| + job_name = respond_to?(:route_params) ? route_params[:name] : name + # rubocop:di...
Fix enqueuing jobs for Sidekiq 4.2.
diff --git a/lackeys.gemspec b/lackeys.gemspec index abc1234..def5678 100644 --- a/lackeys.gemspec +++ b/lackeys.gemspec @@ -10,8 +10,11 @@ spec.version = Lackeys::VERSION spec.authors = ['Adrian Joseph Tumusok'] spec.email = ['adrian@egissys.com'] - spec.summary = 'TODO: Write a shor...
Add summary and description to gemspec
diff --git a/lib/quanto/metrics.rb b/lib/quanto/metrics.rb index abc1234..def5678 100644 --- a/lib/quanto/metrics.rb +++ b/lib/quanto/metrics.rb @@ -11,6 +11,14 @@ post('/metrics', metric: metric) end + # Make a GET request for the URL for the authenticated plugin. + # Returns the plugin URL as a str...
Add API endpoint for obtaining plugin URL.
diff --git a/lib/rack/pesticide.rb b/lib/rack/pesticide.rb index abc1234..def5678 100644 --- a/lib/rack/pesticide.rb +++ b/lib/rack/pesticide.rb @@ -15,7 +15,7 @@ private def forbidden - [403, {"Content-Type" => "text/plain"}, ["Pest, be gone!\n"]] + [403, {"Content-Type" => "text/plain"}, ["Pest, ...
Use \r\n for line ending
diff --git a/moa.podspec b/moa.podspec index abc1234..def5678 100644 --- a/moa.podspec +++ b/moa.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "moa" - s.version = "1.0.44" + s.version = "1.0.45" s.license = { :type => "MIT" } s.homepage = "https://github.com/evgenyneu/moa" s....
Add watch kit demo schemes
diff --git a/lib/seeders/league.rb b/lib/seeders/league.rb index abc1234..def5678 100644 --- a/lib/seeders/league.rb +++ b/lib/seeders/league.rb @@ -1,6 +1,7 @@ class Seeders::League LEAGUES = { '10' => 'MSI', + '43' => 'Rivals', '2' => 'NA LCS', '3' => 'EU LCS', '6' => 'LCK', @@ -9,8 +10,7 @@...
Move rivals after MSI in settings view
diff --git a/casing.gemspec b/casing.gemspec index abc1234..def5678 100644 --- a/casing.gemspec +++ b/casing.gemspec @@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = 'casing' - s.version = '0.1.0' + s.version = '0.1.1' s.summary = 'Convert the case of strings, symbols, and hash ...
Package version is increased from 0.1.0 to 0.1.1
diff --git a/recipes/suse.rb b/recipes/suse.rb index abc1234..def5678 100644 --- a/recipes/suse.rb +++ b/recipes/suse.rb @@ -19,9 +19,10 @@ # This sets the timezone on SUSE distributions v_major, _v_minor = node['platform_version'].split(/\./) +template_file = v_major.to_i == 11 ? 'suse/clock.suse11.erb' : 'suse/clo...
Fix definition of source file in resource Fix syntax of defining either of 2 source files for the template, based on SUSE major release
diff --git a/lib/tasks/docker.rake b/lib/tasks/docker.rake index abc1234..def5678 100644 --- a/lib/tasks/docker.rake +++ b/lib/tasks/docker.rake @@ -8,6 +8,16 @@ desc 'Run all tests (JS and code in a standalone environment)' task 'docker:test' do begin + + exit 1 unless run_or_fail("git remote update") + + ch...
Allow to pass commit hash to tester
diff --git a/lib/tasks/papers.rake b/lib/tasks/papers.rake index abc1234..def5678 100644 --- a/lib/tasks/papers.rake +++ b/lib/tasks/papers.rake @@ -0,0 +1,19 @@+namespace :papers do + + desc 'switch logger to stdout' + task to_stdout: :environment do + Rails.logger = Logger.new(STDOUT) + end + + desc 'Upload pap...
Add rake task to upload already downloaded pdfs
diff --git a/libraries/matchers.rb b/libraries/matchers.rb index abc1234..def5678 100644 --- a/libraries/matchers.rb +++ b/libraries/matchers.rb @@ -5,7 +5,7 @@ end def untap_homebrew_tap(tap) - ChefSpec::Matchers::ResourceMatcher.new(:homebrew_tap, :tap, tap) + ChefSpec::Matchers::ResourceMatcher.new(:hom...
Fix uptap action for homebrew_tap matcher.
diff --git a/mrbgem.rake b/mrbgem.rake index abc1234..def5678 100644 --- a/mrbgem.rake +++ b/mrbgem.rake @@ -7,10 +7,14 @@ spec.description = spec.summary spec.homepage = "Not yet defined" - spec.cc.command = 'gcc' # clang does not work! - spec.cc.flags << %w|| - spec.cc.include_paths << "/usr/local/include...
Support for CrossBuild in gem rake file
diff --git a/lib/pad_utils/pad_text.rb b/lib/pad_utils/pad_text.rb index abc1234..def5678 100644 --- a/lib/pad_utils/pad_text.rb +++ b/lib/pad_utils/pad_text.rb @@ -1,7 +1,18 @@ module PadUtils - def self.convert_to_ruby_name(val) - "" + # Convert a string into a proper Ruby name. + # For example, 'app_name' wi...
Add some text handling methods
diff --git a/lib/rabl-rails/library.rb b/lib/rabl-rails/library.rb index abc1234..def5678 100644 --- a/lib/rabl-rails/library.rb +++ b/lib/rabl-rails/library.rb @@ -15,7 +15,7 @@ compiled_template = compile_template_from_source(source, path) format = context.params[:format] || 'json' - Renderers.con...
Add support for format as symbol (e.g. when specified in routes.rb or inside the controller
diff --git a/lib/shipping_materials.rb b/lib/shipping_materials.rb index abc1234..def5678 100644 --- a/lib/shipping_materials.rb +++ b/lib/shipping_materials.rb @@ -1,4 +1,5 @@-Dir["lib/shipping_materials/*.rb"].each {|f| require f } +Dir["lib/shipping_materials/mixins/*.rb"].each {|f| require f } +Dir["lib/shipping_ma...
Create and require mixins directory
diff --git a/lib/what_now.rb b/lib/what_now.rb index abc1234..def5678 100644 --- a/lib/what_now.rb +++ b/lib/what_now.rb @@ -2,6 +2,7 @@ require 'ptools' +# TODO this struct should know how to print itself Todo = Struct.new :text, :path, :line module WhatNow
Add TODO for remebering to refactor todo's output
diff --git a/lib/svgeez/svg_element.rb b/lib/svgeez/svg_element.rb index abc1234..def5678 100644 --- a/lib/svgeez/svg_element.rb +++ b/lib/svgeez/svg_element.rb @@ -6,16 +6,12 @@ end def build - %(<svg #{build_attributes}>#{collect_source_files.join}</svg>) + %(<svg id="#{@destination.file_id}" ver...
Remove build_attributes method and rename collect_source_files method.
diff --git a/kstarv.gemspec b/kstarv.gemspec index abc1234..def5678 100644 --- a/kstarv.gemspec +++ b/kstarv.gemspec @@ -8,8 +8,8 @@ spec.version = Kstarv::VERSION spec.authors = ["都是牛奶装什么特仑苏丶"] spec.email = ["simlegate@163.com"] - spec.description = %q{TODO: Write a gem description} - s...
Add gem description and summary
diff --git a/lib/boardlog/sanitize.rb b/lib/boardlog/sanitize.rb index abc1234..def5678 100644 --- a/lib/boardlog/sanitize.rb +++ b/lib/boardlog/sanitize.rb @@ -10,7 +10,7 @@ end def self.sanitize_html(html) - ::HTML::WhiteListSanitizer.new.sanitize(html, :tags => %w(b i ol ul li pre code tt), :attr...
Allow <p> tags in markdown
diff --git a/lib/brew-cask-upgrade.rb b/lib/brew-cask-upgrade.rb index abc1234..def5678 100644 --- a/lib/brew-cask-upgrade.rb +++ b/lib/brew-cask-upgrade.rb @@ -1,6 +1,7 @@ BREW_HOME = `brew --repository`.strip CASK_HOME = "#{BREW_HOME}/Library/Taps/caskroom/homebrew-cask" $LOAD_PATH.unshift("#{CASK_HOME}/lib") +$LOA...
Add Homebrew directory to $LOAD_PATH fix #5
diff --git a/lib/apns-s3.rb b/lib/apns-s3.rb index abc1234..def5678 100644 --- a/lib/apns-s3.rb +++ b/lib/apns-s3.rb @@ -7,12 +7,12 @@ # # @param [String] aws_access_key_id # @param [String] aws_secret_access_key - # @param [String] bucket_name + # @param [String] bucketname # @param [String] filename PEM ...
Rename argument from bucket_name to bucketname
diff --git a/lib/bouncer.rb b/lib/bouncer.rb index abc1234..def5678 100644 --- a/lib/bouncer.rb +++ b/lib/bouncer.rb @@ -21,6 +21,8 @@ require "bouncer/outcome/canary" require "bouncer/outcome/global_type" require "bouncer/outcome/healthcheck" +require "bouncer/outcome/liveness_healthcheck" +require "bouncer/outcome/...
Add missing includes for LivenessHealthcheck & ReadinessHealthcheck
diff --git a/lib/dimples/frontable.rb b/lib/dimples/frontable.rb index abc1234..def5678 100644 --- a/lib/dimples/frontable.rb +++ b/lib/dimples/frontable.rb @@ -3,28 +3,23 @@ module Dimples # A mixin class that handles reading and parsing front matter from a file. module Frontable - def read_with_front_matter(...
Change read_with_front_matter to no longer need a path, only allow filtered metadata keys.
diff --git a/memdash.gemspec b/memdash.gemspec index abc1234..def5678 100644 --- a/memdash.gemspec +++ b/memdash.gemspec @@ -10,7 +10,7 @@ gem.summary = 'Gain insight into your memcached servers' gem.homepage = 'https://github.com/bryckbost/memdash' - gem.add_dependency 'dalli', '~> 1.0' + gem.add_depen...
Update Dalli dependency to ~> 2.0
diff --git a/spec/features/notifications_spec.rb b/spec/features/notifications_spec.rb index abc1234..def5678 100644 --- a/spec/features/notifications_spec.rb +++ b/spec/features/notifications_spec.rb @@ -15,7 +15,7 @@ expect(page).to have_content "These files have been saved" expect(page).to have_content "Fil...
Fix message expectations for "Batch"
diff --git a/spec/controllers/static_content_controller_spec.rb b/spec/controllers/static_content_controller_spec.rb index abc1234..def5678 100644 --- a/spec/controllers/static_content_controller_spec.rb +++ b/spec/controllers/static_content_controller_spec.rb @@ -10,26 +10,26 @@ it 'accepts path as root' do ...
Fix params in controller specs
diff --git a/vagrant_base/libqt4/recipes/default.rb b/vagrant_base/libqt4/recipes/default.rb index abc1234..def5678 100644 --- a/vagrant_base/libqt4/recipes/default.rb +++ b/vagrant_base/libqt4/recipes/default.rb @@ -1,3 +1,25 @@+case node['platform'] +when "ubuntu" + apt_repository "kubuntu-backports-ppa-deb" do + ...
Use Kubuntu Backports PPA to get libqt and qmake 4.7 for Capybara WebKit
diff --git a/vagrant_base/php/attributes/default.rb b/vagrant_base/php/attributes/default.rb index abc1234..def5678 100644 --- a/vagrant_base/php/attributes/default.rb +++ b/vagrant_base/php/attributes/default.rb @@ -1,2 +1,2 @@-default[:php][:multi][:versions] = ["5.2.17", "5.3.2", "5.3.8", "5.3.9rc3", "5.4.0rc4"] -de...
Support PHP 5.3.9RC4 and 5.4.0RC5. Add an alias for 5.3.9 => 5.3.9RC4.
diff --git a/dredge.gemspec b/dredge.gemspec index abc1234..def5678 100644 --- a/dredge.gemspec +++ b/dredge.gemspec @@ -9,6 +9,9 @@ s.email = 'lewismarshall86@gmail.com' s.authors = ['Lewis Marshall'] + s.add_dependency 'activerecord' + s.add_dependency 'sinatra' + s.description = <<description ...
Add Sinatra and ActiveRecord dependencies
diff --git a/config/initializers/i18n.rb b/config/initializers/i18n.rb index abc1234..def5678 100644 --- a/config/initializers/i18n.rb +++ b/config/initializers/i18n.rb @@ -22,7 +22,7 @@ raise exception when "production" if MissingTranslationData === exception - Rollbar.report_exception...
Stop using deprecated report_exception method of Rollbar.
diff --git a/config/initializers/i18n.rb b/config/initializers/i18n.rb index abc1234..def5678 100644 --- a/config/initializers/i18n.rb +++ b/config/initializers/i18n.rb @@ -1 +1,6 @@ I18n.enforce_available_locales = true +if Rails.env.development? || Rails.env.test? + I18n.exception_handler = lambda do |exception, loc...
Raise exceptions for missing translations
diff --git a/app/controllers/citations_controller.rb b/app/controllers/citations_controller.rb index abc1234..def5678 100644 --- a/app/controllers/citations_controller.rb +++ b/app/controllers/citations_controller.rb @@ -6,13 +6,11 @@ before_action :build_breadcrumbs, only: [:work, :file] def work - @curation...
Remove unused instance variable from CitationsController
diff --git a/app/controllers/embassies_controller.rb b/app/controllers/embassies_controller.rb index abc1234..def5678 100644 --- a/app/controllers/embassies_controller.rb +++ b/app/controllers/embassies_controller.rb @@ -1,6 +1,6 @@ class EmbassiesController < ApplicationController def index - @embassies_by_locat...
Remove international delegations from embassy finder
diff --git a/lib/clients.rb b/lib/clients.rb index abc1234..def5678 100644 --- a/lib/clients.rb +++ b/lib/clients.rb @@ -16,4 +16,8 @@ end clients end + + define_method(:==) do |another_client| + self.client_name().==(another_client.client_name()).&(self.id().==(another_client.id())) + end end
Add two entries with the same client name equals the same client
diff --git a/app/jobs/asset_update_job.rb b/app/jobs/asset_update_job.rb index abc1234..def5678 100644 --- a/app/jobs/asset_update_job.rb +++ b/app/jobs/asset_update_job.rb @@ -0,0 +1,34 @@+#------------------------------------------------------------------------------ +# +# AssetValueUpdateJob +# +# Updates an assets ...
Create a single asset update job that can be overridden as needed
diff --git a/app/models/arcade_machine.rb b/app/models/arcade_machine.rb index abc1234..def5678 100644 --- a/app/models/arcade_machine.rb +++ b/app/models/arcade_machine.rb @@ -7,7 +7,7 @@ has_many :subscriptions, dependent: :destroy has_many :playlists, through: :subscriptions - has_many :api_keys + has_many ...
Destroy ApiKeys when machine removed.
diff --git a/app/models/redirect_route.rb b/app/models/redirect_route.rb index abc1234..def5678 100644 --- a/app/models/redirect_route.rb +++ b/app/models/redirect_route.rb @@ -8,5 +8,13 @@ presence: true, uniqueness: { case_sensitive: false } - scope :matching_path_and_descendants, -> (path) { where('LOWER...
Remove unnecessary work for MySQL
diff --git a/app/policies/staff_policy.rb b/app/policies/staff_policy.rb index abc1234..def5678 100644 --- a/app/policies/staff_policy.rb +++ b/app/policies/staff_policy.rb @@ -39,7 +39,7 @@ admin_or_self end - def add_user_setting? + def create_user_setting? admin_or_self end @@ -47,7 +47,7 @@ ...
Change staff policy to match old names with new routes
diff --git a/lib/hangman.rb b/lib/hangman.rb index abc1234..def5678 100644 --- a/lib/hangman.rb +++ b/lib/hangman.rb @@ -1,7 +1,9 @@ class Hangman attr_reader :guesses - def initialize(starting_lives: 10, word: "hangman") + DEFAULT_STARTING_LIVES = 10 + + def initialize(starting_lives: DEFAULT_STARTING_LIVES, w...
Make constant for default starting lives
diff --git a/spec/utils_spec.rb b/spec/utils_spec.rb index abc1234..def5678 100644 --- a/spec/utils_spec.rb +++ b/spec/utils_spec.rb @@ -0,0 +1,17 @@+require 'spec_helper' + +include PacketFu + +describe Utils do + context "when using ifconfig" do + it "should return a hash" do + PacketFu::Utils.ifconfig().sho...
Add a spec to test interface validatation
diff --git a/lib/maxmind.rb b/lib/maxmind.rb index abc1234..def5678 100644 --- a/lib/maxmind.rb +++ b/lib/maxmind.rb @@ -7,5 +7,7 @@ require 'net/https' require 'uri' require 'digest/md5' -require File.join(File.dirname(__FILE__), 'maxmind/request') -require File.join(File.dirname(__FILE__), 'maxmind/response')+ +req...
Change require's to relative paths
diff --git a/lib/blog_fetcher.rb b/lib/blog_fetcher.rb index abc1234..def5678 100644 --- a/lib/blog_fetcher.rb +++ b/lib/blog_fetcher.rb @@ -1,8 +1,8 @@ class BlogFetcher BASE_URL = 'http://blog.mayday.us/api' ENDPOINTS = { - recent: '/read/json?num=5', - press_releases: '/read/json?tagged=press%20r...
BlogFeed: Update to match tumblr API change, only fetch text posts
diff --git a/lib/spinach.rb b/lib/spinach.rb index abc1234..def5678 100644 --- a/lib/spinach.rb +++ b/lib/spinach.rb @@ -6,7 +6,7 @@ require_relative 'spinach/feature' require_relative 'spinach/reporter' -# Spinach is a BDD framework in top of cucumber. It's main goals are: +# Spinach is a BDD framework in top of gh...
Fix two typos in a row!
diff --git a/api/app/jobs/ops_accountability_job.rb b/api/app/jobs/ops_accountability_job.rb index abc1234..def5678 100644 --- a/api/app/jobs/ops_accountability_job.rb +++ b/api/app/jobs/ops_accountability_job.rb @@ -0,0 +1,84 @@+class OpsAccountabilityJob < ApplicationJob + PIPELINE_KEY = Rails.application.secrets.st...
Add accountability mechanisms for club application flow
diff --git a/lib/setting.rb b/lib/setting.rb index abc1234..def5678 100644 --- a/lib/setting.rb +++ b/lib/setting.rb @@ -4,11 +4,11 @@ end def self.faye_url - settings['faye_url'] + settings['faye_url'] end def self.pour_timeout - settings['pour_timeout'] + settings['pour_timeout'] || 10 end...
Set a default pour timeout
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index abc1234..def5678 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -16,7 +16,7 @@ end def destroy - sign_out + sign_out if signed_in? redirect_to root_pa...
Add conditional to session destroy action, to only allow signing out if the current user is already signed in.
diff --git a/spec/models/subscribers/slack_spec.rb b/spec/models/subscribers/slack_spec.rb index abc1234..def5678 100644 --- a/spec/models/subscribers/slack_spec.rb +++ b/spec/models/subscribers/slack_spec.rb @@ -12,11 +12,18 @@ subject(:process) { described_class.new(event_name, start, ending, transaction_id, pa...
Set up message expectations with spies
diff --git a/lib/synchronizer.rb b/lib/synchronizer.rb index abc1234..def5678 100644 --- a/lib/synchronizer.rb +++ b/lib/synchronizer.rb @@ -39,7 +39,7 @@ @storage.write(exchange_name, rates) successfull.push(provider) rescue StandardError => e - failed.push(provider) + f...
Fix: Return error message with failed provider name
diff --git a/lib/tasks/docs.rake b/lib/tasks/docs.rake index abc1234..def5678 100644 --- a/lib/tasks/docs.rake +++ b/lib/tasks/docs.rake @@ -2,13 +2,13 @@ desc "Generate the latest docs from the source code and add to gh-pages" task :generate do ensure_clean_git - run "git checkout master" + run "git ch...
Use starting branch instead of assuming master
diff --git a/lib/venn/diagram.rb b/lib/venn/diagram.rb index abc1234..def5678 100644 --- a/lib/venn/diagram.rb +++ b/lib/venn/diagram.rb @@ -7,30 +7,46 @@ def method_missing(meth, *args, &blk) if meth[-3, 3] == '_is' - @values[meth[0, meth.length - 3].to_sym] = args[0] + id = meth[0, meth.len...
Consolidate the three operations into separate methods.
diff --git a/modules/puppet/lib/puppet/provider/package/autoload_monkey_patch.rb b/modules/puppet/lib/puppet/provider/package/autoload_monkey_patch.rb index abc1234..def5678 100644 --- a/modules/puppet/lib/puppet/provider/package/autoload_monkey_patch.rb +++ b/modules/puppet/lib/puppet/provider/package/autoload_monkey_...
Remove newlines from monkey-patch warning These produce "empty" log events in Kibana which makes me :( ``` @fields.syslog_program:puppet AND @message:"(/var/lib/puppet/lib/puppet/provider/package/autoload_monkey_patch.rb)" ```
diff --git a/test/controllers/bills_controller_test.rb b/test/controllers/bills_controller_test.rb index abc1234..def5678 100644 --- a/test/controllers/bills_controller_test.rb +++ b/test/controllers/bills_controller_test.rb @@ -1,14 +1,5 @@ require 'test_helper' class BillsControllerTest < ActionController::TestCas...
Remove tests so Travis CI build passes. Signed-off-by: Siddharth Kannan <805f056820c7a1cecc4ab591b8a0a604b501a0b7@gmail.com>
diff --git a/test/lib/troo/actions/refresh_all_test.rb b/test/lib/troo/actions/refresh_all_test.rb index abc1234..def5678 100644 --- a/test/lib/troo/actions/refresh_all_test.rb +++ b/test/lib/troo/actions/refresh_all_test.rb @@ -6,6 +6,7 @@ let(:options) { { } } before do + @board = Fabricate(:board) ...
Add simple test for RefreshAll.