diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/array_shuffle.rb b/array_shuffle.rb index abc1234..def5678 100644 --- a/array_shuffle.rb +++ b/array_shuffle.rb @@ -0,0 +1,29 @@+# Cannot create a temporary array or make copies of the input array +# Must move the elements in place +# Two elements may swap places +# Shouldn't be able to predict what the sh...
Test version of Fisher-Yate's array shuffle
diff --git a/app/page_freshness.rb b/app/page_freshness.rb index abc1234..def5678 100644 --- a/app/page_freshness.rb +++ b/app/page_freshness.rb @@ -11,7 +11,7 @@ def expired_pages sitemap.resources.select do |page| - PageReview.new(page).expired? && page.data.section != Manual::ICINGA_ALERTS + PageR...
Include Icinga alerts in Slack message again Now that we're timing the Icinga alerts to be every 6 months, we can include it again to make sure we actually review the pages.
diff --git a/bumpspark.gemspec b/bumpspark.gemspec index abc1234..def5678 100644 --- a/bumpspark.gemspec +++ b/bumpspark.gemspec @@ -13,6 +13,7 @@ gem.homepage = "" gem.files = `git ls-files`.split($/) + gem.bindir = 'exe' gem.executables = gem.files.grep(%r{^exe/}).map{ |f| File.basena...
Set bindir correctly in gemspec
diff --git a/castle-rb.gemspec b/castle-rb.gemspec index abc1234..def5678 100644 --- a/castle-rb.gemspec +++ b/castle-rb.gemspec @@ -16,16 +16,16 @@ s.test_files = Dir["spec/**/*"] s.require_paths = ['lib'] - s.add_dependency "her", "~> 0.7.6" - s.add_dependency "faraday_middleware", "~> 0.9.1" - s.add_depen...
Update all gems to latest versions
diff --git a/attributes/default.rb b/attributes/default.rb index abc1234..def5678 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -7,5 +7,12 @@ # MIT License # +distro_name = case node['platform_version'] +when '14.04' + 'trusty' +when '16.04' + 'xenial' +end + default['dev_box']['user'] = 'jaso...
Update distro attribute to be dynamic
diff --git a/attributes/default.rb b/attributes/default.rb index abc1234..def5678 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -17,5 +17,5 @@ # limitations under the License. # -default[:pacman][:build_dir] = "#{Chef::Config[:file_cache_path]}/builds" -default[:pacman][:build_user] = "nobody" +d...
FC001: Use strings in preference to symbols to access node attributes
diff --git a/lib/gmail/gmindex.rb b/lib/gmail/gmindex.rb index abc1234..def5678 100644 --- a/lib/gmail/gmindex.rb +++ b/lib/gmail/gmindex.rb @@ -2,14 +2,14 @@ # # @author Ollivier Robert <roberto@keltia.net> -VCS_GMI_ID = "$Id: gmindex.rb,v f3a4da3ed2d3 2012/09/12 14:13:00 roberto $" +VCS_GMI_ID = "$Id: gmindex.rb,v...
Handle to the TC db.
diff --git a/Library/Formula/gnupg.rb b/Library/Formula/gnupg.rb index abc1234..def5678 100644 --- a/Library/Formula/gnupg.rb +++ b/Library/Formula/gnupg.rb @@ -1,12 +1,12 @@ require 'brewkit' class Gnupg <Formula - @url='ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-1.4.9.tar.bz2' + @url='ftp://ftp.gnupg.org/gcrypt/gnup...
Update GnuPG formula to 1.4.10 and include --disable-asm to prevent breakage
diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index abc1234..def5678 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -2,7 +2,7 @@ Rails.application.config.session_store( :redis_store, - expire_after: 30.days, + expire_afte...
Expire sessions after 30 minutes
diff --git a/lib/appointment_ticket.rb b/lib/appointment_ticket.rb index abc1234..def5678 100644 --- a/lib/appointment_ticket.rb +++ b/lib/appointment_ticket.rb @@ -52,8 +52,6 @@ Email: #{@appointment.email} - - Please confirm the appointment with the customer TEXT end
Remove internal note from appointment ticket
diff --git a/lib/fabrication/config.rb b/lib/fabrication/config.rb index abc1234..def5678 100644 --- a/lib/fabrication/config.rb +++ b/lib/fabrication/config.rb @@ -2,51 +2,32 @@ module Config extend self - def configure - yield self + def configure; yield self end + + def reset_defaults + @...
Replace options hash with memoized instance vars
diff --git a/lib/ffi-glib/main_loop.rb b/lib/ffi-glib/main_loop.rb index abc1234..def5678 100644 --- a/lib/ffi-glib/main_loop.rb +++ b/lib/ffi-glib/main_loop.rb @@ -15,7 +15,11 @@ def initialize timeout = DEFAULT_TIMEOUT @timeout = timeout - @handler = proc { Thread.pass; true } + @handle...
Add tiny sleep to make idle handler work on MRI 1.9.2
diff --git a/lib/gecko/record/order.rb b/lib/gecko/record/order.rb index abc1234..def5678 100644 --- a/lib/gecko/record/order.rb +++ b/lib/gecko/record/order.rb @@ -7,8 +7,8 @@ has_many :invoices has_many :order_line_items belongs_to :company - belongs_to :shipping_address - belongs_to :bi...
Set class_name for Order addresses
diff --git a/spec/dummy/config/application.rb b/spec/dummy/config/application.rb index abc1234..def5678 100644 --- a/spec/dummy/config/application.rb +++ b/spec/dummy/config/application.rb @@ -5,7 +5,7 @@ require "action_controller/railtie" require "action_mailer/railtie" require "action_view/railtie" -# require "spr...
Make dummy app's asset pipeline work
diff --git a/spec/features/index_view_spec.rb b/spec/features/index_view_spec.rb index abc1234..def5678 100644 --- a/spec/features/index_view_spec.rb +++ b/spec/features/index_view_spec.rb @@ -0,0 +1,18 @@+require 'spec_helper' + +describe "index page" do + it "has Highest-Rated games" do + visit('/') + expect(p...
Add a couple of features tests
diff --git a/lib/lita/handlers/snoo.rb b/lib/lita/handlers/snoo.rb index abc1234..def5678 100644 --- a/lib/lita/handlers/snoo.rb +++ b/lib/lita/handlers/snoo.rb @@ -1,6 +1,65 @@+require 'uri' + module Lita module Handlers class Snoo < Handler + config :domains, type: Array, default: ["imgur.com"] + + ...
lib: Write routes and basic url_search functionality
diff --git a/lib/rails_admin_charts.rb b/lib/rails_admin_charts.rb index abc1234..def5678 100644 --- a/lib/rails_admin_charts.rb +++ b/lib/rails_admin_charts.rb @@ -20,7 +20,7 @@ def graph_data since=30.days.ago [ { - name: model_name.pluralize, + name: model_name.plural,...
Use `plural` instead of `pluralize` with ModelName instance in `graph_data` Fixes Rails 4, rails_admin 0.5.0 'undefined method `pluralize' for #<ActiveModel::Name:0x007f93a0175990>'
diff --git a/lib/sprockets/browserify.rb b/lib/sprockets/browserify.rb index abc1234..def5678 100644 --- a/lib/sprockets/browserify.rb +++ b/lib/sprockets/browserify.rb @@ -15,13 +15,21 @@ def evaluate(scope, locals, &block) if (scope.pathname.dirname+'package.json').exist? deps = `#{browserify_exec...
Add more error information in case of failure
diff --git a/lib/stradivari/generator.rb b/lib/stradivari/generator.rb index abc1234..def5678 100644 --- a/lib/stradivari/generator.rb +++ b/lib/stradivari/generator.rb @@ -26,7 +26,7 @@ def title case t = opts[:title] when nil - klass.human_attribute_name(name) + human_attribu...
Use human_attribute_name only if available on the model
diff --git a/backend/spec/views/comable/admin/orders/edit.slim_spec.rb b/backend/spec/views/comable/admin/orders/edit.slim_spec.rb index abc1234..def5678 100644 --- a/backend/spec/views/comable/admin/orders/edit.slim_spec.rb +++ b/backend/spec/views/comable/admin/orders/edit.slim_spec.rb @@ -0,0 +1,27 @@+describe 'coma...
Add the test cases for orders/edit.slim
diff --git a/libraries/tar_commands.rb b/libraries/tar_commands.rb index abc1234..def5678 100644 --- a/libraries/tar_commands.rb +++ b/libraries/tar_commands.rb @@ -1,3 +1,45 @@+ +class TarCommandBuilder + + def unpack + "#{tar_binary} #{args} #{resource.release_file} #{strip_args}" + end + + def dump + "tar -...
Refactor individual tar command classes into a single class Turned the commands into shim layer -- they will be removed in the libraries/default
diff --git a/lib/zombie_scout/mission.rb b/lib/zombie_scout/mission.rb index abc1234..def5678 100644 --- a/lib/zombie_scout/mission.rb +++ b/lib/zombie_scout/mission.rb @@ -10,11 +10,14 @@ end def scout + start_time = Time.now zombies.each do |zombie| puts [zombie.location, zombie.name] ...
Add timing info to default output
diff --git a/config.rb b/config.rb index abc1234..def5678 100644 --- a/config.rb +++ b/config.rb @@ -4,9 +4,9 @@ @debug = "" @devops_bucket = "" @cloud = 'aws' -@availability_zone = "" +@availability_zone = "us-west-2a" @key_name = "" -@image_id = "ami-5c120b19" +@image_id = "ami-57e8d767" @knife_config = "" @...
Use the latest Ubuntu AMI
diff --git a/config.ru b/config.ru index abc1234..def5678 100644 --- a/config.ru +++ b/config.ru @@ -1,6 +1,11 @@ # For hosting on Heroku require 'rack' require 'rack/contrib/try_static' + +# "restrict" access for now +use Rack::Auth::Basic, "Restricted Area" do |username, password| + [username, password] == [ENV['A...
Use HTTP auth to restrict access We need this because we can't use the font & crown on non-gov.uk pages. The username/password are the default pseudo-secret GDS-username/password combo.
diff --git a/config.ru b/config.ru index abc1234..def5678 100644 --- a/config.ru +++ b/config.ru @@ -1,7 +1,4 @@ # This file is used by Rack-based servers to start the application. require ::File.expand_path('../config/environment', __FILE__) - -map (ENV['RAILS_RELATIVE_URL_ROOT'] || '/') do - run Rails.applicatio...
Revert "run app in subdirectory" This reverts commit e896b7241f498d172235e56c1e197cb36e7a7e46.
diff --git a/plugins/elasticsearch/check-es-cluster-status.rb b/plugins/elasticsearch/check-es-cluster-status.rb index abc1234..def5678 100644 --- a/plugins/elasticsearch/check-es-cluster-status.rb +++ b/plugins/elasticsearch/check-es-cluster-status.rb @@ -0,0 +1,87 @@+#!/usr/bin/env ruby +# +# Checks ElasticSearch clu...
Extend the configuration options for the check. Make the check 1.x compliant
diff --git a/boundary_days.gemspec b/boundary_days.gemspec index abc1234..def5678 100644 --- a/boundary_days.gemspec +++ b/boundary_days.gemspec @@ -20,6 +20,6 @@ spec.require_paths = ['lib'] spec.add_development_dependency 'bundler', '~> 2.0' - spec.add_development_dependency 'rake', '~> 12.0' + spec.add_deve...
Update rake requirement from ~> 12.0 to ~> 13.0 Updates the requirements on [rake](https://github.com/ruby/rake) to permit the latest version. - [Release notes](https://github.com/ruby/rake/releases) - [Changelog](https://github.com/ruby/rake/blob/master/History.rdoc) - [Commits](https://github.com/ruby/rake/compare/v...
diff --git a/revuelog.rb b/revuelog.rb index abc1234..def5678 100644 --- a/revuelog.rb +++ b/revuelog.rb @@ -8,10 +8,7 @@ end def to_hash - revuehash = Revuelog.new(@time,@nick,@message) - hash = {} - revuehash.instance_variables.each {|var| hash[var.to_s.delete("@")] = revuehash.instance_variable_get(v...
Update hash creation with very simple stuff
diff --git a/test/fixtures/policies/_base.rb b/test/fixtures/policies/_base.rb index abc1234..def5678 100644 --- a/test/fixtures/policies/_base.rb +++ b/test/fixtures/policies/_base.rb @@ -1,7 +1,7 @@ default_source :community default_source :chef_repo, '..' cookbook 'consul', path: '../../..' -run_list 'consul::defa...
Add sudo default recipe to fix /etc/sudoers
diff --git a/test/test_buienalarm_scraper.rb b/test/test_buienalarm_scraper.rb index abc1234..def5678 100644 --- a/test/test_buienalarm_scraper.rb +++ b/test/test_buienalarm_scraper.rb @@ -12,4 +12,13 @@ error.message end + def test_that_scrape_returns_valid_result + location = "rotterdam" + result = ...
Add basic success case test
diff --git a/app/models/manageiq/providers/lenovo/inventory/parser/component_parser/config_pattern.rb b/app/models/manageiq/providers/lenovo/inventory/parser/component_parser/config_pattern.rb index abc1234..def5678 100644 --- a/app/models/manageiq/providers/lenovo/inventory/parser/component_parser/config_pattern.rb ++...
Add the config pattern type for the graph refresh
diff --git a/carbon-router.gemspec b/carbon-router.gemspec index abc1234..def5678 100644 --- a/carbon-router.gemspec +++ b/carbon-router.gemspec @@ -18,6 +18,7 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] + spec.add_runtime_dependency "bunny", "0.8.0" spec....
Add bunny gem for MQ connection
diff --git a/Formula/djview4.rb b/Formula/djview4.rb index abc1234..def5678 100644 --- a/Formula/djview4.rb +++ b/Formula/djview4.rb @@ -9,6 +9,8 @@ depends_on 'qt' def install + # Added bug upstream to fix this: + # https://sourceforge.net/tracker/?func=detail&aid=3146507&group_id=32953&atid=406583 i...
Add DjView4 upstream bug URL.
diff --git a/spec/opal_converter_spec.rb b/spec/opal_converter_spec.rb index abc1234..def5678 100644 --- a/spec/opal_converter_spec.rb +++ b/spec/opal_converter_spec.rb @@ -16,7 +16,7 @@ end it "matches .opal files" do - expect(subject.matches(".opal")).to be(true) + expect(subject.matches(".opal")).to be_...
Use be_truthy instead of be(true) for Converter.matches
diff --git a/spec/storey/schemas_spec.rb b/spec/storey/schemas_spec.rb index abc1234..def5678 100644 --- a/spec/storey/schemas_spec.rb +++ b/spec/storey/schemas_spec.rb @@ -36,15 +36,23 @@ end end - context "when :public => true" do - it "should return an array of the schemas without the public sch...
Test when `Storey.schemas` does not include `public` Also update tests to use new RSpec syntax
diff --git a/ASOAnimatedButton.podspec b/ASOAnimatedButton.podspec index abc1234..def5678 100644 --- a/ASOAnimatedButton.podspec +++ b/ASOAnimatedButton.podspec @@ -1,12 +1,12 @@ Pod::Spec.new do |s| s.name = "ASOAnimatedButton" - s.version = "0.2.0" + s.version = "0.3.0" s.summary...
Modify podspec to refer to version 0.3.0
diff --git a/spec/rack_jax/app_wrapper_postprocessing_spec.rb b/spec/rack_jax/app_wrapper_postprocessing_spec.rb index abc1234..def5678 100644 --- a/spec/rack_jax/app_wrapper_postprocessing_spec.rb +++ b/spec/rack_jax/app_wrapper_postprocessing_spec.rb @@ -42,7 +42,9 @@ let(:response) {wrapper.handle(request)} - ...
Add a context block for the doc output
diff --git a/buildkit.gemspec b/buildkit.gemspec index abc1234..def5678 100644 --- a/buildkit.gemspec +++ b/buildkit.gemspec @@ -21,6 +21,6 @@ spec.required_ruby_version = '>= 2.3' - spec.add_dependency 'sawyer', '~> 0.6' + spec.add_dependency 'sawyer', '>= 0.6' spec.add_development_dependency 'bundler' end...
gemspec: Allow versions of sawyer >= 0.6
diff --git a/business.gemspec b/business.gemspec index abc1234..def5678 100644 --- a/business.gemspec +++ b/business.gemspec @@ -22,6 +22,6 @@ spec.add_development_dependency "gc_ruboconfig", "~> 2.30.0" spec.add_development_dependency "rspec", "~> 3.1" - spec.add_development_dependency "rspec_junit_formatter",...
Update rspec_junit_formatter requirement from ~> 0.4.1 to ~> 0.5.1 Updates the requirements on [rspec_junit_formatter](https://github.com/sj26/rspec_junit_formatter) to permit the latest version. - [Release notes](https://github.com/sj26/rspec_junit_formatter/releases) - [Changelog](https://github.com/sj26/rspec_junit...
diff --git a/Library/Formula/go.rb b/Library/Formula/go.rb index abc1234..def5678 100644 --- a/Library/Formula/go.rb +++ b/Library/Formula/go.rb @@ -1,7 +1,7 @@ require 'formula' class Go <Formula - head 'https://go.googlecode.com/hg/' + head 'https://go.googlecode.com/hg/', :revision => 'release' homepage 'htt...
Use the release version for Go
diff --git a/Casks/balsamiq-mockups.rb b/Casks/balsamiq-mockups.rb index abc1234..def5678 100644 --- a/Casks/balsamiq-mockups.rb +++ b/Casks/balsamiq-mockups.rb @@ -0,0 +1,7 @@+class BalsamiqMockups < Cask + url 'http://builds.balsamiq.com/b/mockups-desktop/MockupsForDesktop.dmg' + homepage 'http://balsamiq.com/' + ...
Add a cask for Balsamiq Mockups Adds a cask for Balsamiq Mockups, a rapid wireframing tool.
diff --git a/Casks/sublime-text-dev.rb b/Casks/sublime-text-dev.rb index abc1234..def5678 100644 --- a/Casks/sublime-text-dev.rb +++ b/Casks/sublime-text-dev.rb @@ -1,8 +1,8 @@ class SublimeTextDev < Cask - version 'Build 3064' - sha256 '727d14b2ba577c680a2d90645db16f6f736c545820fe90d44cc85ac6808c2f03' + version 'Bu...
Upgrade Sublime Text Dev to Build 3066
diff --git a/config/application.rb b/config/application.rb index abc1234..def5678 100644 --- a/config/application.rb +++ b/config/application.rb @@ -24,6 +24,7 @@ config.load_defaults(6.1) config.i18n.default_locale = :'zh-TW' + config.i18n.fallbacks = true config.i18n.available_locales = %i[ ...
Enable i18n fallback to zh-TW
diff --git a/config/application.rb b/config/application.rb index abc1234..def5678 100644 --- a/config/application.rb +++ b/config/application.rb @@ -20,6 +20,9 @@ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] # config.i18n.default_locale = :de + # activejob queue adap...
Set sidekiq as the activejob queue Signed-off-by: Max Fierke <0706025b2bbcec1ed8d64822f4eccd96314938d0@maxfierke.com>
diff --git a/config/application.rb b/config/application.rb index abc1234..def5678 100644 --- a/config/application.rb +++ b/config/application.rb @@ -18,6 +18,6 @@ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. # config.i18n.load_path += Dir[Rails.root.join('my'...
Use Bulgarian as the default locale
diff --git a/app/classes/forest/markdown_renderer.rb b/app/classes/forest/markdown_renderer.rb index abc1234..def5678 100644 --- a/app/classes/forest/markdown_renderer.rb +++ b/app/classes/forest/markdown_renderer.rb @@ -15,6 +15,12 @@ } end + def header(text, header_level) + sanitized_name = ActionView::B...
Add parameterized name attribute to markdown header tags
diff --git a/app/controllers/purchases_controller.rb b/app/controllers/purchases_controller.rb index abc1234..def5678 100644 --- a/app/controllers/purchases_controller.rb +++ b/app/controllers/purchases_controller.rb @@ -31,7 +31,7 @@ if @purchase.update_attributes purchases_params redirect_to user_path(sess...
Update purchase create error message
diff --git a/app/controllers/questions_controller.rb b/app/controllers/questions_controller.rb index abc1234..def5678 100644 --- a/app/controllers/questions_controller.rb +++ b/app/controllers/questions_controller.rb @@ -0,0 +1,49 @@+class QuestionsController < ActionController::Base + + def index + @question = Que...
Add basic CRUD to QuestionsController
diff --git a/app/models/enhancements/curated_list.rb b/app/models/enhancements/curated_list.rb index abc1234..def5678 100644 --- a/app/models/enhancements/curated_list.rb +++ b/app/models/enhancements/curated_list.rb @@ -2,6 +2,6 @@ class CuratedList def usable_artefacts - artefacts.select { |a| ["draft", "live...
Simplify selection of curatable artefacts
diff --git a/spec/models/config_builder_spec.rb b/spec/models/config_builder_spec.rb index abc1234..def5678 100644 --- a/spec/models/config_builder_spec.rb +++ b/spec/models/config_builder_spec.rb @@ -1,4 +1,8 @@-require "rails_helper" +require "spec_helper" +require "app/models/config_builder" +require "app/models/con...
Reduce spec dependencies for ConfigBuilder This test/code doesn't need the whole Rails framework. Shave off precious time on focused spec runs :)
diff --git a/spec/models/transportation_spec.rb b/spec/models/transportation_spec.rb index abc1234..def5678 100644 --- a/spec/models/transportation_spec.rb +++ b/spec/models/transportation_spec.rb @@ -1,5 +1,34 @@ require 'rails_helper' -RSpec.describe Transportation, :type => :model do - pending "add some examples ...
Add tests for valid transportation
diff --git a/SPTDataLoader.podspec b/SPTDataLoader.podspec index abc1234..def5678 100644 --- a/SPTDataLoader.podspec +++ b/SPTDataLoader.podspec @@ -16,9 +16,10 @@ s.tvos.deployment_target = "9.0" s.watchos.deployment_target = "2.0" - s.homepage = "https://github.com/spotify/SPTDataLoader" - s.lice...
Add social media URL to podspec - Pointing it at our Engineering account on Twitter.
diff --git a/test/daimon_skycrawlers/generator/new_test.rb b/test/daimon_skycrawlers/generator/new_test.rb index abc1234..def5678 100644 --- a/test/daimon_skycrawlers/generator/new_test.rb +++ b/test/daimon_skycrawlers/generator/new_test.rb @@ -0,0 +1,73 @@+require "test_helper" +require "daimon_skycrawlers/generator/n...
Add test for `daimon_skycrawlers new`
diff --git a/idl_iw.rb b/idl_iw.rb index abc1234..def5678 100644 --- a/idl_iw.rb +++ b/idl_iw.rb @@ -15,7 +15,7 @@ # stdout, stderr Thread.new do o.each do |line| - puts line + puts "\033[2K\r" + line end end
Add escape sequence for print stdout
diff --git a/app/serializers/user_serializer.rb b/app/serializers/user_serializer.rb index abc1234..def5678 100644 --- a/app/serializers/user_serializer.rb +++ b/app/serializers/user_serializer.rb @@ -13,7 +13,8 @@ :profile_type, :twitter_url, :name, - :image_url + :image_url, + :admin def n...
Add admin field to user serializer
diff --git a/lib/dotjs_sprockets/tilt_dot.rb b/lib/dotjs_sprockets/tilt_dot.rb index abc1234..def5678 100644 --- a/lib/dotjs_sprockets/tilt_dot.rb +++ b/lib/dotjs_sprockets/tilt_dot.rb @@ -10,13 +10,25 @@ # # @since 0.1.0 class TiltDot < Tilt::Template + # Define the mime type of the template + # + # @...
Add missing documentation for the TiltDot class
diff --git a/lib/faraday_persistent_excon.rb b/lib/faraday_persistent_excon.rb index abc1234..def5678 100644 --- a/lib/faraday_persistent_excon.rb +++ b/lib/faraday_persistent_excon.rb @@ -23,7 +23,7 @@ self.excon_options = {} self.perform_request_class = FaradayPersistentExcon::PerformRequest self.connection_p...
Use less confusing literal terminators
diff --git a/lib/orientdb-schema-migrator.rb b/lib/orientdb-schema-migrator.rb index abc1234..def5678 100644 --- a/lib/orientdb-schema-migrator.rb +++ b/lib/orientdb-schema-migrator.rb @@ -32,6 +32,10 @@ end def self.client - Orientdb4r.client(:host => get_config["host"]) + if defined?($client) + $cli...
Store initialized Orientdb4r client in global variable. Reduces client initialization.
diff --git a/lib/redirector/tna_timestamp.rb b/lib/redirector/tna_timestamp.rb index abc1234..def5678 100644 --- a/lib/redirector/tna_timestamp.rb +++ b/lib/redirector/tna_timestamp.rb @@ -3,17 +3,19 @@ module Redirector class TNATimestamp + TNA_BASE_URL = "http://webarchive.nationalarchives.gov.uk" + def ...
Make the TNA base URL a constant for shorter lines
diff --git a/pakyow-realtime/lib/pakyow-realtime/message_handlers/call_route.rb b/pakyow-realtime/lib/pakyow-realtime/message_handlers/call_route.rb index abc1234..def5678 100644 --- a/pakyow-realtime/lib/pakyow-realtime/message_handlers/call_route.rb +++ b/pakyow-realtime/lib/pakyow-realtime/message_handlers/call_rout...
Fix call-route for cases where only path is passed
diff --git a/spec/version_bomb_spec.rb b/spec/version_bomb_spec.rb index abc1234..def5678 100644 --- a/spec/version_bomb_spec.rb +++ b/spec/version_bomb_spec.rb @@ -2,7 +2,7 @@ describe VersionBomb do describe ".bomb!" do - it "blows up when the version matches the requirement" do + it "blows up when the ver...
Fix spec description that didn't match the code
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,5 @@ Rails.application.routes.draw do - root 'lists#index' + root 'lists#show', id: AllFoodsList::ID resources :lists, only: [:show, :index, :edit, :update] resources :foods,...
Make the All Foods list the homepage
diff --git a/apps.rb b/apps.rb index abc1234..def5678 100644 --- a/apps.rb +++ b/apps.rb @@ -1,14 +1,26 @@-def cask(name); dep name, :template => "icelab:cask"; end # Avoid repitition below +dep "apps" do + requires "mac app store apps" + requires "homebrew cask apps" +end -cask "dash" -cask "fork" -cask "google-ch...
Restructure reps and add Caffeine
diff --git a/bitpagos.gemspec b/bitpagos.gemspec index abc1234..def5678 100644 --- a/bitpagos.gemspec +++ b/bitpagos.gemspec @@ -12,6 +12,7 @@ s.homepage = "http://github.com/ombulabs/bitpagos" s.license = "MIT" + s.add_dependency("rest-client", "~> 1.8") s.add_development_dependency("rspec", "~> 3.3"...
Use RestClient instead of OAuth2.
diff --git a/lib/active_crew/concerns/lockable.rb b/lib/active_crew/concerns/lockable.rb index abc1234..def5678 100644 --- a/lib/active_crew/concerns/lockable.rb +++ b/lib/active_crew/concerns/lockable.rb @@ -5,10 +5,10 @@ end def locked? - options = context[:locker] + options = context.delete :loc...
Remove locker after apply it
diff --git a/railties/lib/rails/generators/rails/app/templates/config/initializers/application_controller_renderer.rb b/railties/lib/rails/generators/rails/app/templates/config/initializers/application_controller_renderer.rb index abc1234..def5678 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/in...
Bring comment in line with rest of initializers
diff --git a/lib/jekyll/converters/sass.rb b/lib/jekyll/converters/sass.rb index abc1234..def5678 100644 --- a/lib/jekyll/converters/sass.rb +++ b/lib/jekyll/converters/sass.rb @@ -33,10 +33,7 @@ end def sass_dir_relative_to_site_source - File.join( - @config["source"], - File.expand_path(...
Use the new, shiny Jekyll.sanitized_path
diff --git a/split-api.gemspec b/split-api.gemspec index abc1234..def5678 100644 --- a/split-api.gemspec +++ b/split-api.gemspec @@ -22,5 +22,5 @@ gem.add_development_dependency 'bundler' gem.add_development_dependency 'rspec', '~> 3.8.0' gem.add_development_dependency 'rack-test', '~> 1.1' - gem.add_d...
Update rake requirement from ~> 12.0 to ~> 13.0 Updates the requirements on [rake](https://github.com/ruby/rake) to permit the latest version. - [Release notes](https://github.com/ruby/rake/releases) - [Changelog](https://github.com/ruby/rake/blob/master/History.rdoc) - [Commits](https://github.com/ruby/rake/compare/v...
diff --git a/heidrun/uw_qdc.rb b/heidrun/uw_qdc.rb index abc1234..def5678 100644 --- a/heidrun/uw_qdc.rb +++ b/heidrun/uw_qdc.rb @@ -0,0 +1,81 @@+def uw_preview(identifier) + id = identifier.rpartition(':').last.split('/') + return nil if id.count != 2 + 'http://cdm16786.contentdm.oclc.org/utils/getthumbnail/collect...
Implement initial UW mapping for QDC
diff --git a/test/apis/test_api_users_validate.rb b/test/apis/test_api_users_validate.rb index abc1234..def5678 100644 --- a/test/apis/test_api_users_validate.rb +++ b/test/apis/test_api_users_validate.rb @@ -0,0 +1,56 @@+require_relative "../test_helper" + +# Deprecated API. +class Test::Apis::TestApiUsersValidate < M...
Add test for deprecated api key validation endpoint. Just so we have test coverage.
diff --git a/test/bmff/box/test_data_entry_urn.rb b/test/bmff/box/test_data_entry_urn.rb index abc1234..def5678 100644 --- a/test/bmff/box/test_data_entry_urn.rb +++ b/test/bmff/box/test_data_entry_urn.rb @@ -0,0 +1,32 @@+# coding: utf-8 +# vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 autoindent: + +require_...
Add a test file for BMFF::Box::DataEntryUrn.
diff --git a/lib/scrapinghub/api_method.rb b/lib/scrapinghub/api_method.rb index abc1234..def5678 100644 --- a/lib/scrapinghub/api_method.rb +++ b/lib/scrapinghub/api_method.rb @@ -1,7 +1,7 @@ module Scrapinghub class ApiMethod - def initialize(location, requires={}) - @location = "#{location}.json" + def...
Add option to select response format, default json
diff --git a/lib/tasks/fix_dangling_comments.rake b/lib/tasks/fix_dangling_comments.rake index abc1234..def5678 100644 --- a/lib/tasks/fix_dangling_comments.rake +++ b/lib/tasks/fix_dangling_comments.rake @@ -9,11 +9,13 @@ puts "[fix_dangling_comments] removing #{comments.count} orphaned comments" - comments...
Update comment clean up task to find comments in batches
diff --git a/Library/Homebrew/os/linux/global.rb b/Library/Homebrew/os/linux/global.rb index abc1234..def5678 100644 --- a/Library/Homebrew/os/linux/global.rb +++ b/Library/Homebrew/os/linux/global.rb @@ -1,8 +1,7 @@ # frozen_string_literal: true # enables experimental readelf.rb, patchelf support. -HOMEBREW_PATCHEL...
Revert "Enable patchelf.rb for HOMEBREW_DEVELOPERs." This reverts commit 6106bfc4976dff2b03cf3fadbbf92dd1fd9e0f09. Fix the error: brew install patchelf ==> Pouring patchelf-0.10.x86_64_linux.bottle.1.tar.gz Error: cannot load such file -- patchelf
diff --git a/config/unicorn.rb b/config/unicorn.rb index abc1234..def5678 100644 --- a/config/unicorn.rb +++ b/config/unicorn.rb @@ -1,14 +1,14 @@ worker_processes 4 rails_env = 'production' -app_home = ENV['APP_HOME'] +app_home = ENV['APP_HOME'] || '/home/vagrant/pq/current' #listen "/home/vagrant/pq/shared/unic...
Make APP_HOME have default valid for vagrant
diff --git a/db/migrate/20140603134952_create_spree_store_credit_payment_method.rb b/db/migrate/20140603134952_create_spree_store_credit_payment_method.rb index abc1234..def5678 100644 --- a/db/migrate/20140603134952_create_spree_store_credit_payment_method.rb +++ b/db/migrate/20140603134952_create_spree_store_credit_p...
Fix migration by removing environment column from PaymentMethod.
diff --git a/config/config.rb b/config/config.rb index abc1234..def5678 100644 --- a/config/config.rb +++ b/config/config.rb @@ -26,19 +26,6 @@ @config = HashWithIndifferentAccess.new(@config) end - def get(*keys) - value = @config - begin - keys.each do |key| - value = value.fetch(key) - ...
Return `nil` if the key doesn't exist.
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,5 @@ Rails.application.routes.draw do - resources :users + resources :users, path_names: {new: 'signup'} + root 'users#index' # For details on the DSL available within this file,...
Rename users/new path as users/signup
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -8,7 +8,7 @@ resources :events, :controller => "public/events", only: [:show] namespace :public do - resources :events, only: [:index] do + resources :events, only: [] do r...
Remove vestigial route for public/events/index
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,8 +1,8 @@ if Rails::VERSION::MAJOR == 3 Rails.application.routes.draw do |map| - map '/ops/version', :to => 'ops#version' - map '/ops/heartbeat(/:name)', :to => 'ops#heartbeat' - ...
[EP] Make routing actually compatible with Rails 3
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,7 @@ Rails.application.routes.draw do root 'items#index' + + get '/users/new', to: 'users#new' get '/items', to: 'items#index' get '/items/new', to: 'items#new', as: 'new_i...
Create new route for new users
diff --git a/Casks/intellij-idea-ce-bundled-jdk.rb b/Casks/intellij-idea-ce-bundled-jdk.rb index abc1234..def5678 100644 --- a/Casks/intellij-idea-ce-bundled-jdk.rb +++ b/Casks/intellij-idea-ce-bundled-jdk.rb @@ -1,17 +1,19 @@ cask :v1 => 'intellij-idea-ce-bundled-jdk' do - version '14' - sha256 '09bb078252e2f6af6b58...
Upgrade IntelliJ Idea CE with bundled JDK to 14.1 - Unify with other IntelliJ-based formulas (see #879)
diff --git a/SGHTTPRequest.podspec b/SGHTTPRequest.podspec index abc1234..def5678 100644 --- a/SGHTTPRequest.podspec +++ b/SGHTTPRequest.podspec @@ -11,13 +11,14 @@ s.dependency "MGEvents", '~> 1.1' s.default_subspecs = 'Core', 'UIKit' s.ios.deployment_target = '7.0' - s.watchos.deployment_target = '2.0' - ...
Fix deployment target causing trunk validation to fail
diff --git a/features/support/cucumber_extensions.rb b/features/support/cucumber_extensions.rb index abc1234..def5678 100644 --- a/features/support/cucumber_extensions.rb +++ b/features/support/cucumber_extensions.rb @@ -0,0 +1,102 @@+module Cucumber + module Ast + class Feature # http://rubydoc.info/github/cucumbe...
Extend cucumber with @with_and_without_javascript tag. Copied from budget_planner.
diff --git a/web/app/controllers/application_controller.rb b/web/app/controllers/application_controller.rb index abc1234..def5678 100644 --- a/web/app/controllers/application_controller.rb +++ b/web/app/controllers/application_controller.rb @@ -3,11 +3,7 @@ # For APIs, you may want to use :null_session instead. pr...
Remove set_time_zone method from before_action
diff --git a/lib/pretty_validation/tasks/validation.rake b/lib/pretty_validation/tasks/validation.rake index abc1234..def5678 100644 --- a/lib/pretty_validation/tasks/validation.rake +++ b/lib/pretty_validation/tasks/validation.rake @@ -11,6 +11,9 @@ namespace :db do task :_dump do original_db_dump.invoke + ...
:bug: Fix a bug that does not work in the migrate:redo
diff --git a/lib/vagrant-cloner/cloners/mysql_cleaner.rb b/lib/vagrant-cloner/cloners/mysql_cleaner.rb index abc1234..def5678 100644 --- a/lib/vagrant-cloner/cloners/mysql_cleaner.rb +++ b/lib/vagrant-cloner/cloners/mysql_cleaner.rb @@ -34,4 +34,4 @@ end end -Vagrant::Provisioners::Cloner::ClonerConfig.register_cl...
Add missing argument to register_plugin.
diff --git a/Casks/mongo-management-studio.rb b/Casks/mongo-management-studio.rb index abc1234..def5678 100644 --- a/Casks/mongo-management-studio.rb +++ b/Casks/mongo-management-studio.rb @@ -1,6 +1,6 @@ cask :v1 => 'mongo-management-studio' do - version '1.5.0' - sha256 'a5bfd413ed7280b21ef353314da8ef4acac78077d872...
Upgrade Mongo Management Studio.app to v1.7.0
diff --git a/lib/arrthorizer/rspec/shared_examples.rb b/lib/arrthorizer/rspec/shared_examples.rb index abc1234..def5678 100644 --- a/lib/arrthorizer/rspec/shared_examples.rb +++ b/lib/arrthorizer/rspec/shared_examples.rb @@ -1,4 +1,4 @@-Arrthorizer::RSpec::SharedExamples do +module Arrthorizer::RSpec::SharedExamples ...
Fix VIM error (darn 'u' button)
diff --git a/lib/data_mapper/relationship/iterator.rb b/lib/data_mapper/relationship/iterator.rb index abc1234..def5678 100644 --- a/lib/data_mapper/relationship/iterator.rb +++ b/lib/data_mapper/relationship/iterator.rb @@ -33,11 +33,13 @@ def each return to_enum unless block_given? - name = at...
Use a local variable to avoid duplicate method calls
diff --git a/lib/mighty_grid/filters/custom_filter.rb b/lib/mighty_grid/filters/custom_filter.rb index abc1234..def5678 100644 --- a/lib/mighty_grid/filters/custom_filter.rb +++ b/lib/mighty_grid/filters/custom_filter.rb @@ -4,9 +4,11 @@ attr_reader :scope def initialize(options = {}, &block) - se...
Add collection to custom filter
diff --git a/lib/rails_core_extensions/activatable.rb b/lib/rails_core_extensions/activatable.rb index abc1234..def5678 100644 --- a/lib/rails_core_extensions/activatable.rb +++ b/lib/rails_core_extensions/activatable.rb @@ -12,18 +12,18 @@ module InstanceMethods def activate(success_block = nil) - curren...
Use inherited_resources methods instead of make_resourceful * Works with QT4 now * Can't update QT3 to this rails_core_extensions now
diff --git a/lib/specinfra/command/base/mail_alias.rb b/lib/specinfra/command/base/mail_alias.rb index abc1234..def5678 100644 --- a/lib/specinfra/command/base/mail_alias.rb +++ b/lib/specinfra/command/base/mail_alias.rb @@ -1,8 +1,12 @@ class Specinfra::Command::Base::MailAlias < Specinfra::Command::Base class << s...
Add add method to MailAlias
diff --git a/lib/heroku/cli.rb b/lib/heroku/cli.rb index abc1234..def5678 100644 --- a/lib/heroku/cli.rb +++ b/lib/heroku/cli.rb @@ -11,8 +11,6 @@ require('rest_client') end -require "multi_json" - class Heroku::CLI extend Heroku::Helpers @@ -25,7 +23,6 @@ if $stdout.isatty $stdout.sync = true...
Revert "Force ok_json instead of the json_common MultiJson adapter" This reverts commit 6fe67aaf4380b41f14ce14576cc4dabfd0a60fd1.
diff --git a/spec/classes/postfix_mta_spec.rb b/spec/classes/postfix_mta_spec.rb index abc1234..def5678 100644 --- a/spec/classes/postfix_mta_spec.rb +++ b/spec/classes/postfix_mta_spec.rb @@ -0,0 +1,12 @@+require 'spec_helper' + +describe 'postfix::mta' do + let (:facts) { { + :needs_postfix_class_with_params => t...
Add spec for postfix::mta, do not include postfix anymore
diff --git a/spec/cli/cmd/analyze_cmd_spec.rb b/spec/cli/cmd/analyze_cmd_spec.rb index abc1234..def5678 100644 --- a/spec/cli/cmd/analyze_cmd_spec.rb +++ b/spec/cli/cmd/analyze_cmd_spec.rb @@ -14,4 +14,8 @@ it 'analyze data/sample.csv' do run_cli(%w(analyze data/sample.csv)) end + + it 'analyze --format tabl...
Test analyze --format table data/sample.csv
diff --git a/Casks/googleappenginelauncher.rb b/Casks/googleappenginelauncher.rb index abc1234..def5678 100644 --- a/Casks/googleappenginelauncher.rb +++ b/Casks/googleappenginelauncher.rb @@ -1,7 +1,7 @@ class Googleappenginelauncher < Cask - url 'https://googleappengine.googlecode.com/files/GoogleAppEngineLauncher-1...
Update Google App Engine Launcher from 1.8.8 to 1.9.0
diff --git a/config/initializers/cloudwatchlogger.rb b/config/initializers/cloudwatchlogger.rb index abc1234..def5678 100644 --- a/config/initializers/cloudwatchlogger.rb +++ b/config/initializers/cloudwatchlogger.rb @@ -1,4 +1,46 @@ if ENV['CLOUDWATCH_LOG_GROUP'] - cloudwatch_logger = CloudWatchLogger.new({}, ENV['CL...
Patch CloudWatchLogger to not log messages about itself logging; use dyno name as log stream name
diff --git a/spec/read_time_estimator_spec.rb b/spec/read_time_estimator_spec.rb index abc1234..def5678 100644 --- a/spec/read_time_estimator_spec.rb +++ b/spec/read_time_estimator_spec.rb @@ -24,5 +24,17 @@ text = "word " * 15000 expect(text.read_time_words).to eql "1 hour to read" end + + it "ret...
Add specs for reading time over one hour. PA-2182
diff --git a/cookbooks/ntp/recipes/windows_client.rb b/cookbooks/ntp/recipes/windows_client.rb index abc1234..def5678 100644 --- a/cookbooks/ntp/recipes/windows_client.rb +++ b/cookbooks/ntp/recipes/windows_client.rb @@ -22,18 +22,18 @@ action :create end -cookbook_file "C:\NTP\ntp.ini" +cookbook_file "C:\NTP\ntp....
Swap tabs for spaces and add a missing do Former-commit-id: ab337109d79a480d897f4ab29e2b54bcfce8f76e [formerly e4cf84e6a326dc2429480982f6a0fef39d822d90] [formerly 3df1aeb958049434e7e85539038aa4e1760b1b63 [formerly 2c4f609998a5239f7c2647296c800bfeade5d18e]] Former-commit-id: 89705e15c2225a2f8fdbc8a042c30903d51d9fd2 [f...