diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/lib/active_conductor.rb b/lib/active_conductor.rb index abc1234..def5678 100644 --- a/lib/active_conductor.rb +++ b/lib/active_conductor.rb @@ -4,7 +4,9 @@ class ActiveConductor include ActiveModel::Conversion include ActiveModel::Validations + extend ActiveModel::Naming + extend ActiveModel::Tra...
Add I18n translations to the conductor
diff --git a/plugins/guests/debian/cap/change_host_name.rb b/plugins/guests/debian/cap/change_host_name.rb index abc1234..def5678 100644 --- a/plugins/guests/debian/cap/change_host_name.rb +++ b/plugins/guests/debian/cap/change_host_name.rb @@ -12,6 +12,8 @@ if !comm.test("hostname -f | grep '^#{name}$'", sud...
guests/debian: Exit on error when configuring hostname
diff --git a/Casks/reveal.rb b/Casks/reveal.rb index abc1234..def5678 100644 --- a/Casks/reveal.rb +++ b/Casks/reveal.rb @@ -6,7 +6,7 @@ appcast 'http://download.revealapp.com/reveal-release.xml' name 'Reveal' homepage 'http://revealapp.com/' - license :unknown # todo: change license and remove this comment...
Set Reveal license to commercial
diff --git a/lib/goodyear/railtie.rb b/lib/goodyear/railtie.rb index abc1234..def5678 100644 --- a/lib/goodyear/railtie.rb +++ b/lib/goodyear/railtie.rb @@ -1,16 +1,26 @@ module Goodyear class Railtie < Rails::Railtie + include ActionView::Helpers::NumberHelper + def time_diff(start, finish) + begin + ...
Fix for activesupport < 4.0
diff --git a/lib/insensitive_load.rb b/lib/insensitive_load.rb index abc1234..def5678 100644 --- a/lib/insensitive_load.rb +++ b/lib/insensitive_load.rb @@ -19,8 +19,7 @@ collector(*args).files end - def values( - *args) + def values(*args) collector(*args).values end end
Make a clean code in InsensitiveLoad InsensitiveLoad ---- - Make a clean code at argument definition of InsensitiveLoad.values.
diff --git a/app/controllers/article_controller.rb b/app/controllers/article_controller.rb index abc1234..def5678 100644 --- a/app/controllers/article_controller.rb +++ b/app/controllers/article_controller.rb @@ -33,11 +33,9 @@ end def update - t = Article.find(params[:id]) - t.link = params[:link] - t.author =...
Use the same oneliner in the update function Signed-off-by: Siddharth Kannan <7a804f1d08bac02a84ba1822c22c8bf38be68ecc@tutanota.com>
diff --git a/lib/mongoff/selector.rb b/lib/mongoff/selector.rb index abc1234..def5678 100644 --- a/lib/mongoff/selector.rb +++ b/lib/mongoff/selector.rb @@ -5,5 +5,9 @@ value = serializer.evolve_hash(value) super end + + def multi_selection?(key) + %w($and $or $nor).include?(key.to_s) + end...
Fix how Selector.multi_selection? handles symbols
diff --git a/dashboard/app/controllers/refinery/admin/dashboard_controller.rb b/dashboard/app/controllers/refinery/admin/dashboard_controller.rb index abc1234..def5678 100644 --- a/dashboard/app/controllers/refinery/admin/dashboard_controller.rb +++ b/dashboard/app/controllers/refinery/admin/dashboard_controller.rb @@ ...
Check active plugin array for inquiries plugin.
diff --git a/lib/nicorepo/reports.rb b/lib/nicorepo/reports.rb index abc1234..def5678 100644 --- a/lib/nicorepo/reports.rb +++ b/lib/nicorepo/reports.rb @@ -16,14 +16,15 @@ end def fetch(request_num, limit_page) - @reports = fetch_recursively(request_num, limit_page) - end - - def fetch_and_select...
Clarify differences of selecting kind filter
diff --git a/dayglo.gemspec b/dayglo.gemspec index abc1234..def5678 100644 --- a/dayglo.gemspec +++ b/dayglo.gemspec @@ -17,8 +17,6 @@ s.files = Dir['lib/**/*'] + ['LICENSE', 'README.md'] s.test_files = Dir['spec/**/*'] - s.add_dependency 'require_all', '~> 1.3.0' - s.add_development_dependency 'rake', '~> 1...
Remove the require_all dependency as it adds complexity/magic
diff --git a/ReactNativePermissions.podspec b/ReactNativePermissions.podspec index abc1234..def5678 100644 --- a/ReactNativePermissions.podspec +++ b/ReactNativePermissions.podspec @@ -18,4 +18,5 @@ s.preserve_paths = 'LICENSE', 'package.json' s.source_files = '**/*.{h,m}' s.exclude_files ...
Cocoapods: Fix issue <React/RCTConvert.h> not found See #191. Fixes issue <React/RCTConvert.h> by adding the missing dependency.
diff --git a/templates/api_define.rb b/templates/api_define.rb index abc1234..def5678 100644 --- a/templates/api_define.rb +++ b/templates/api_define.rb @@ -2,12 +2,13 @@ module Aliyun::Openapi Core::ApiDSL.define('openapi').<%= @product %>(version: '<%= @version %>').<%=@api_name%>.end_point do |end_point| - ...
Format api end point and remove empty params such as value switch
diff --git a/google-cloud-video_intelligence/google-cloud-video_intelligence.gemspec b/google-cloud-video_intelligence/google-cloud-video_intelligence.gemspec index abc1234..def5678 100644 --- a/google-cloud-video_intelligence/google-cloud-video_intelligence.gemspec +++ b/google-cloud-video_intelligence/google-cloud-vi...
Remove some dependencies that can be pulled in transitively via GAX
diff --git a/ruby/subscription-with-metadata.rb b/ruby/subscription-with-metadata.rb index abc1234..def5678 100644 --- a/ruby/subscription-with-metadata.rb +++ b/ruby/subscription-with-metadata.rb @@ -0,0 +1,30 @@+# Testing creating a subscription with metadata (custom fields) + +gem 'chargify_api_ares', '=1.4.7' +requ...
Add example of creating a subscription with metadata using the Ruby gem
diff --git a/ostrichPoll.gemspec b/ostrichPoll.gemspec index abc1234..def5678 100644 --- a/ostrichPoll.gemspec +++ b/ostrichPoll.gemspec @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -require File.expand_path('../lib/ostrichPoll/version', __FILE__) +require File.expand_path('../lib/ostrichpoll/version', __FILE__) Gem::S...
Fix version path for case sensitive FSes
diff --git a/patchstream.gemspec b/patchstream.gemspec index abc1234..def5678 100644 --- a/patchstream.gemspec +++ b/patchstream.gemspec @@ -8,8 +8,8 @@ spec.version = Patchstream::VERSION spec.authors = ["opsb"] spec.email = ["oliver@opsb.co.uk"] - spec.description = %q{TODO: Write a gem...
Add description and summary to gemspec
diff --git a/lib/stacks/inventory.rb b/lib/stacks/inventory.rb index abc1234..def5678 100644 --- a/lib/stacks/inventory.rb +++ b/lib/stacks/inventory.rb @@ -1,16 +1,12 @@ class Stacks::Inventory def initialize(stack_dir) + stack_file = "#{stack_dir}/stack.rb" + raise "no stack.rb found in #{stack_dir}" unles...
Revert "rpearce: Adding support for multiple stackbuilder-config files" This reverts commit d48cb6eda2b31f7304b26b30f867264082231c1a.
diff --git a/spec/disclosure/configuration_spec.rb b/spec/disclosure/configuration_spec.rb index abc1234..def5678 100644 --- a/spec/disclosure/configuration_spec.rb +++ b/spec/disclosure/configuration_spec.rb @@ -30,7 +30,7 @@ end it "should have a default for reactor classes" do - subject.reactor_classes.sho...
Update spec for new default configuration
diff --git a/spec/interactors/user_deposit_spec.rb b/spec/interactors/user_deposit_spec.rb index abc1234..def5678 100644 --- a/spec/interactors/user_deposit_spec.rb +++ b/spec/interactors/user_deposit_spec.rb @@ -6,6 +6,7 @@ let(:interactor) {UserDeposit.new(user_id: user.id, amount: 1000)} let(:context) {inte...
Add a context for user_deposit specs
diff --git a/app/api/shopt/api.rb b/app/api/shopt/api.rb index abc1234..def5678 100644 --- a/app/api/shopt/api.rb +++ b/app/api/shopt/api.rb @@ -38,9 +38,18 @@ end resource :products do - desc 'Returns all products' - get do - Product.all + desc 'Returns quantity sold per month' + ...
Add endpoint for period quantity sold in range
diff --git a/spec/requests/index_districts_spec.rb b/spec/requests/index_districts_spec.rb index abc1234..def5678 100644 --- a/spec/requests/index_districts_spec.rb +++ b/spec/requests/index_districts_spec.rb @@ -3,10 +3,12 @@ describe "GET /districts", type: :request do let(:user) { create :user } let(:auth) { {...
Fix index districts request spec
diff --git a/spec/ruby/core/kernel/at_exit_spec.rb b/spec/ruby/core/kernel/at_exit_spec.rb index abc1234..def5678 100644 --- a/spec/ruby/core/kernel/at_exit_spec.rb +++ b/spec/ruby/core/kernel/at_exit_spec.rb @@ -14,6 +14,12 @@ code = "at_exit {print 4};at_exit {print 5}; print 6; at_exit {print 7}" ruby_exe(c...
Add spec for calling exit inside at_exit handler
diff --git a/NSData+ImageMIMEDetection.podspec b/NSData+ImageMIMEDetection.podspec index abc1234..def5678 100644 --- a/NSData+ImageMIMEDetection.podspec +++ b/NSData+ImageMIMEDetection.podspec @@ -0,0 +1,15 @@+Pod::Spec.new do |s| + s.name = "NSData+ImageMIMEDetection" + s.version = "0.1.0" + s....
Add podspec file with valid details
diff --git a/example/app.rb b/example/app.rb index abc1234..def5678 100644 --- a/example/app.rb +++ b/example/app.rb @@ -11,7 +11,7 @@ require 'omniauth-google-oauth2' require 'omniauth-github' -require_relative 'config_env' +load "#{__dir__}/config_env" require_relative 'config_app' helpers do
Prepare to CI Capybara.default_wait_time = 15
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,62 +1,12 @@ Rails.application.routes.draw do - resources :papers + + resources :activities do + resources :papers + end + devise_for :users, :controllers => { :omniauth_callbacks...
Add nested path for activities and papers
diff --git a/app/controllers/user_sessions_controller.rb b/app/controllers/user_sessions_controller.rb index abc1234..def5678 100644 --- a/app/controllers/user_sessions_controller.rb +++ b/app/controllers/user_sessions_controller.rb @@ -14,7 +14,7 @@ flash[:notice] = "You have been signed in." redirect_bac...
[Foundation] Fix error messages on login to be more better.
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,6 +1,7 @@ Rails.application.routes.draw do root to: 'welcome#index' + resources :users, only: [:show] get '/login', :to => 'sessions#new', :as => :login get '/logout',...
Add route for user show page
diff --git a/tinplate.gemspec b/tinplate.gemspec index abc1234..def5678 100644 --- a/tinplate.gemspec +++ b/tinplate.gemspec @@ -19,7 +19,7 @@ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] - spec.add_dependency "faraday", "~> 0.9.2" + spec.add_dependency ...
Allow newer versions of faraday dependency.
diff --git a/lib/user_preferences.rb b/lib/user_preferences.rb index abc1234..def5678 100644 --- a/lib/user_preferences.rb +++ b/lib/user_preferences.rb @@ -14,7 +14,7 @@ class << self def [](category, name) - if pref = definitions[category].try(:[], name) + unless (pref = definitions[category].try(:...
Test explicitely for nil, not falsey
diff --git a/lib/veewee/providers.rb b/lib/veewee/providers.rb index abc1234..def5678 100644 --- a/lib/veewee/providers.rb +++ b/lib/veewee/providers.rb @@ -1,32 +1,31 @@ module Veewee + class Providers + def initialize(env, options = {}) + @env=env + @options=options + @providers=Hash.new + end ...
Initialize option parameter in Providers
diff --git a/cassandra/lib/flow/cassandra/local.rb b/cassandra/lib/flow/cassandra/local.rb index abc1234..def5678 100644 --- a/cassandra/lib/flow/cassandra/local.rb +++ b/cassandra/lib/flow/cassandra/local.rb @@ -4,7 +4,7 @@ def addresses @local_addresses ||= begin if RUBY_VERSION['2.1'] - Socket.g...
Fix edge case with getifaddrs
diff --git a/app/models/campus.rb b/app/models/campus.rb index abc1234..def5678 100644 --- a/app/models/campus.rb +++ b/app/models/campus.rb @@ -9,6 +9,7 @@ validates :name, presence: true, uniqueness: true validates :mode, presence: true validates :abbreviation, presence: true, uniqueness: true...
ENHANCE: Validate that active is present
diff --git a/rails_event_store-rspec/lib/rails_event_store/rspec/have_published.rb b/rails_event_store-rspec/lib/rails_event_store/rspec/have_published.rb index abc1234..def5678 100644 --- a/rails_event_store-rspec/lib/rails_event_store/rspec/have_published.rb +++ b/rails_event_store-rspec/lib/rails_event_store/rspec/h...
Kill passing ivars as local vars Issue: #215
diff --git a/lib/upnp/control_point/base.rb b/lib/upnp/control_point/base.rb index abc1234..def5678 100644 --- a/lib/upnp/control_point/base.rb +++ b/lib/upnp/control_point/base.rb @@ -24,6 +24,7 @@ log "<#{self.class}> Connection count: #{EM.connection_count}" log "<#{self.class}> Request error: #...
Set deferred status on failure
diff --git a/spec/clamshell/dsl/project_spec.rb b/spec/clamshell/dsl/project_spec.rb index abc1234..def5678 100644 --- a/spec/clamshell/dsl/project_spec.rb +++ b/spec/clamshell/dsl/project_spec.rb @@ -15,7 +15,7 @@ it "should create a Git dependency" do create_repo("/tmp/repo") - @project.git("/tmp/re...
Make it more obvious we're referenceing a non-bare repository.
diff --git a/spec/commands/read_command_spec.rb b/spec/commands/read_command_spec.rb index abc1234..def5678 100644 --- a/spec/commands/read_command_spec.rb +++ b/spec/commands/read_command_spec.rb @@ -26,7 +26,7 @@ end describe 'tells translator to' do - let(:translator) { MiniTest::Mock.new FakeT...
Remove delegate from ReadCommand spec mocks
diff --git a/spec/lib/tracked_revisions_spec.rb b/spec/lib/tracked_revisions_spec.rb index abc1234..def5678 100644 --- a/spec/lib/tracked_revisions_spec.rb +++ b/spec/lib/tracked_revisions_spec.rb @@ -0,0 +1,31 @@+# frozen_string_literal: true + +require 'rails_helper' +require_dependency "#{Rails.root}/lib/analytics/c...
Create a separate spec for tracked revisions functionality
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index abc1234..def5678 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -7,8 +7,6 @@ def current_project @current_project = if session[:project_id] current_user.projects.find(session[:project_id...
Fix no projects for current project bug
diff --git a/falcor.gemspec b/falcor.gemspec index abc1234..def5678 100644 --- a/falcor.gemspec +++ b/falcor.gemspec @@ -22,7 +22,5 @@ spec.add_development_dependency 'bundler', '~> 1.3' spec.add_development_dependency 'rake' - spec.add_development_dependency 'pry' - spec.add_development_dependency 'pry-debugg...
Remove pry; debugger not available on JRuby
diff --git a/em-winrm.gemspec b/em-winrm.gemspec index abc1234..def5678 100644 --- a/em-winrm.gemspec +++ b/em-winrm.gemspec @@ -13,6 +13,7 @@ s.homepage = "http://github.com/schisamo/em-winrm" s.summary = %q{EventMachine based, asynchronous parallel WinRM client} s.description = s.summary + s.license =...
Add license to gemspec with SPDX compliant identifier Closes #15
diff --git a/app/models/manufacturer.rb b/app/models/manufacturer.rb index abc1234..def5678 100644 --- a/app/models/manufacturer.rb +++ b/app/models/manufacturer.rb @@ -22,7 +22,7 @@ def volume # returns 0 instead of nil when Manufacturer exists without any donations - donations.map { |d| d.line_items.total...
Use ActiveRecord instead of Ruby Enumerables to compute volume, as per @armahillo's recommendation.
diff --git a/config/initializers/gds-sso.rb b/config/initializers/gds-sso.rb index abc1234..def5678 100644 --- a/config/initializers/gds-sso.rb +++ b/config/initializers/gds-sso.rb @@ -2,5 +2,5 @@ config.user_model = "User" config.oauth_id = 'abcdefgh12345678' config.oauth_secret = 'secret' - config.oaut...
Remove reference to 'authentication' when calling Plek This was more unnecessary indirection, let's just use signon.
diff --git a/config/initializers/gds-sso.rb b/config/initializers/gds-sso.rb index abc1234..def5678 100644 --- a/config/initializers/gds-sso.rb +++ b/config/initializers/gds-sso.rb @@ -3,7 +3,7 @@ config.oauth_id = 'abcdefgh12345678pan' config.oauth_secret = 'secret' config.default_scope = "Panopticon" - c...
Remove reference to 'authentication' when calling Plek This was more unnecessary indirection, let's just use signon.
diff --git a/config/initializers/sidekiq.rb b/config/initializers/sidekiq.rb index abc1234..def5678 100644 --- a/config/initializers/sidekiq.rb +++ b/config/initializers/sidekiq.rb @@ -1,5 +1,5 @@ schedule_file = "config/schedule.yml" if File.exists?(schedule_file) && Sidekiq.server? - Sidekiq::Cron::Job.load_from_...
Load jobs and get rid of jobs no longer in the schedule file
diff --git a/fakefs.gemspec b/fakefs.gemspec index abc1234..def5678 100644 --- a/fakefs.gemspec +++ b/fakefs.gemspec @@ -19,6 +19,6 @@ spec.require_paths = ["lib"] spec.add_development_dependency "bundler", "~> 1.3" - spec.add_development_dependency "rake" - spec.add_development_dependency "rspec" + spec.add_...
Add versions for the development dependencies. Addresses #217.
diff --git a/spec/char_cover/exception_else.rb b/spec/char_cover/exception_else.rb index abc1234..def5678 100644 --- a/spec/char_cover/exception_else.rb +++ b/spec/char_cover/exception_else.rb @@ -1,5 +1,5 @@ ### Without rescue -#### With raise +#### With raise (Ruby <2.6) begin raise @@ -9,7 +9,7 @@ #>X ...
Exclude begin-else without rescue from 2.6 tests
diff --git a/spec/integration/migrator_test.rb b/spec/integration/migrator_test.rb index abc1234..def5678 100644 --- a/spec/integration/migrator_test.rb +++ b/spec/integration/migrator_test.rb @@ -0,0 +1,33 @@+require File.join(File.dirname(__FILE__), 'spec_helper.rb') + +Sequel.extension :migration +describe Sequel::M...
Add integration tests for the migrator
diff --git a/fuubar.gemspec b/fuubar.gemspec index abc1234..def5678 100644 --- a/fuubar.gemspec +++ b/fuubar.gemspec @@ -29,5 +29,5 @@ s.require_paths = ['lib'] s.add_dependency 'rspec', '~> 2.0' - s.add_dependency 'ruby-progressbar', '~> 1.0' + s.add_dependency...
Upgrade ruby-progressbar to the latest version
diff --git a/db/migrate/20170518100414_remove_extra_fields_field_from_section_editions.rb b/db/migrate/20170518100414_remove_extra_fields_field_from_section_editions.rb index abc1234..def5678 100644 --- a/db/migrate/20170518100414_remove_extra_fields_field_from_section_editions.rb +++ b/db/migrate/20170518100414_remove...
Remove unused extra_fields field from SectionEdition Although this field was removed from the `SectionEdition` model class in this commit [1], many/all of the documents in the `manual_section_editions` collection in MongoDB still had this field set to an empty Hash. The presence of this field seems to have started ca...
diff --git a/lib/blow_pipe/configuration.rb b/lib/blow_pipe/configuration.rb index abc1234..def5678 100644 --- a/lib/blow_pipe/configuration.rb +++ b/lib/blow_pipe/configuration.rb @@ -8,7 +8,7 @@ @@mount_at = '/blowpipe' @@strategy = :transaction - @orm = :active_record + @@orm = :acti...
Correct typo to make orm a module variable
diff --git a/cookbooks/sys_dns/recipes/do_set_private.rb b/cookbooks/sys_dns/recipes/do_set_private.rb index abc1234..def5678 100644 --- a/cookbooks/sys_dns/recipes/do_set_private.rb +++ b/cookbooks/sys_dns/recipes/do_set_private.rb @@ -22,7 +22,7 @@ if ! node.has_key?('cloud') private_ip = "#{local_ip}" else - pu...
Fix syntax error in var ref.
diff --git a/lib/mod_rails/platform_info.rb b/lib/mod_rails/platform_info.rb index abc1234..def5678 100644 --- a/lib/mod_rails/platform_info.rb +++ b/lib/mod_rails/platform_info.rb @@ -0,0 +1,78 @@+require 'rbconfig' + +module PlatformInfo # :nodoc: +private + def self.determine_multi_arch_flags + if RUBY_PLATFORM =~ ...
Split most platform-specific autodetection code to a seperate module.
diff --git a/lib/alephant/views/base.rb b/lib/alephant/views/base.rb index abc1234..def5678 100644 --- a/lib/alephant/views/base.rb +++ b/lib/alephant/views/base.rb @@ -18,7 +18,7 @@ def t(key, params = {}) I18n.locale = locale - prefix = /\/([^\/]+)\./.match(template_file)[1] + prefix = /\/([^\/...
Change regex so it only picks up the filename for the template, as in production the path has 'election-data-renderer.jar' in it so 'election-data-renderer' was picked up
diff --git a/lib/bourgeois/presenter.rb b/lib/bourgeois/presenter.rb index abc1234..def5678 100644 --- a/lib/bourgeois/presenter.rb +++ b/lib/bourgeois/presenter.rb @@ -5,28 +5,36 @@ super(@object = object) end + # Return a String representation of the presenter + the original object def inspect ...
Add a few code comments
diff --git a/lib/warden/strategies/token.rb b/lib/warden/strategies/token.rb index abc1234..def5678 100644 --- a/lib/warden/strategies/token.rb +++ b/lib/warden/strategies/token.rb @@ -1,7 +1,7 @@ require "warden" class Warden::Strategies::Token < ::Warden::Strategies::Base - VERSION = "0.1.1" + VERSION = "0.2.0" ...
Use Warden configs to handle custom naming schemes
diff --git a/lib/httparty/exceptions.rb b/lib/httparty/exceptions.rb index abc1234..def5678 100644 --- a/lib/httparty/exceptions.rb +++ b/lib/httparty/exceptions.rb @@ -20,6 +20,7 @@ # @param [Net::HTTPResponse] def initialize(response) @response = response + super(response) end end
Add ResponseError response attribute to message
diff --git a/lib/mr_darcy/promise/em.rb b/lib/mr_darcy/promise/em.rb index abc1234..def5678 100644 --- a/lib/mr_darcy/promise/em.rb +++ b/lib/mr_darcy/promise/em.rb @@ -2,7 +2,10 @@ module MrDarcy module Promise - class EM < Thread + class EM < Base + class DeferrableAdapter + include EventMachin...
Rewrite `Promise::EM` to use a proper `EventMachine::Deferrable`.
diff --git a/huddle.gemspec b/huddle.gemspec index abc1234..def5678 100644 --- a/huddle.gemspec +++ b/huddle.gemspec @@ -24,4 +24,5 @@ spec.add_development_dependency "rake", "~> 10.0" spec.add_development_dependency "rspec" spec.add_development_dependency "simplecov" + spec.add_development_dependency "pry" e...
Add pry to development dependencies
diff --git a/spec/default/sample_spec.rb b/spec/default/sample_spec.rb index abc1234..def5678 100644 --- a/spec/default/sample_spec.rb +++ b/spec/default/sample_spec.rb @@ -1,13 +1,5 @@ require 'spec_helper' -describe package('pv'), :if => os[:family] == 'darwin' do - it { should be_installed } +describe command('de...
Replace tests with super-simple OS X test
diff --git a/spec/factories/miq_group.rb b/spec/factories/miq_group.rb index abc1234..def5678 100644 --- a/spec/factories/miq_group.rb +++ b/spec/factories/miq_group.rb @@ -1,7 +1,8 @@ FactoryGirl.define do factory :miq_group do + guid { MiqUUID.new_guid } + sequence(:description) { |n| "Test Group #{seq_pad...
Simplify guid in MiqGroup factory
diff --git a/spec/support/cannon_test.rb b/spec/support/cannon_test.rb index abc1234..def5678 100644 --- a/spec/support/cannon_test.rb +++ b/spec/support/cannon_test.rb @@ -26,8 +26,15 @@ end def post(path, params = {}) - uri = URI("http://127.0.0.1:#{PORT}#{path}") - @response = MockResponse.new(Net::HTTP...
Add support for put and patch requests in specs
diff --git a/rendered-multi-select.gemspec b/rendered-multi-select.gemspec index abc1234..def5678 100644 --- a/rendered-multi-select.gemspec +++ b/rendered-multi-select.gemspec @@ -14,5 +14,5 @@ s.files = Dir["vendor/assets/javascripts/*.js.coffee", "vendor/assets/stylesheets/*.css.less", "lib/*" "README.md",...
Allow any Rails 4.x version
diff --git a/app/jobs/download_job.rb b/app/jobs/download_job.rb index abc1234..def5678 100644 --- a/app/jobs/download_job.rb +++ b/app/jobs/download_job.rb @@ -8,7 +8,7 @@ FileUtils.rm_rf "tmp/news" system "#{@sys_run} news:get_all" - FileUtils.rm_rf @github_directory + FileUtils.rm_rf "tmp/github" ...
Replace global variable with string in downloadJob
diff --git a/app/controllers/sha_controller.rb b/app/controllers/sha_controller.rb index abc1234..def5678 100644 --- a/app/controllers/sha_controller.rb +++ b/app/controllers/sha_controller.rb @@ -3,7 +3,7 @@ def index @names = %w( - creator custom-chooser + creator custom-chooser exercises-chooser l...
Add new choosers to sha/index list
diff --git a/app/helpers/award_emoji_helper.rb b/app/helpers/award_emoji_helper.rb index abc1234..def5678 100644 --- a/app/helpers/award_emoji_helper.rb +++ b/app/helpers/award_emoji_helper.rb @@ -4,7 +4,7 @@ if awardable.is_a?(Note) # We render a list of notes very frequently and calling the specific meth...
Fix broken award emoji for comments Closes #23506
diff --git a/app/models/concerns/providable.rb b/app/models/concerns/providable.rb index abc1234..def5678 100644 --- a/app/models/concerns/providable.rb +++ b/app/models/concerns/providable.rb @@ -22,7 +22,7 @@ end def provider=(value) - super(value.slice(:vendor, :name, :id, :data)) + super(value&...
Fix pnv controller test. Provider setter should respect nil
diff --git a/features/step_definitions/troo_steps.rb b/features/step_definitions/troo_steps.rb index abc1234..def5678 100644 --- a/features/step_definitions/troo_steps.rb +++ b/features/step_definitions/troo_steps.rb @@ -1,5 +1,5 @@ Given(/^the Trello API is stubbed with "(.*?)"$/) do |stub| - VCR.insert_cassette(stub...
Allow cassette re-use in integration tests.
diff --git a/resources/domain.rb b/resources/domain.rb index abc1234..def5678 100644 --- a/resources/domain.rb +++ b/resources/domain.rb @@ -20,12 +20,9 @@ actions :create, :destroy attribute :domain_name, :kind_of => String, :name_attribute => true -attribute :tune_gc, :kind_of => [TrueClass, FalseClass], :default ...
Remove some attributes that are no longer used
diff --git a/Gemfiler.gemspec b/Gemfiler.gemspec index abc1234..def5678 100644 --- a/Gemfiler.gemspec +++ b/Gemfiler.gemspec @@ -12,7 +12,7 @@ gem.files = `git ls-files`.split($\) gem.executables = `git ls-files -- exe/*`.split("\n").map{ |f| File.basename(f) } gem.test_files = gem.files.grep(%r...
Update name to not be uppercase.
diff --git a/irc-hipchat.rb b/irc-hipchat.rb index abc1234..def5678 100644 --- a/irc-hipchat.rb +++ b/irc-hipchat.rb @@ -4,10 +4,12 @@ IRC_HOST = 'irc.freenode.net' IRC_PORT = '6667' -IRC_CHANNEL = '#emacs' HIPCHAT_ROOM = 'IRC' -hipchat_client = HipChat::Client.new(ENV['HIPCHAT_AUTH_TOKEN'], :api_version => 'v2')...
Make IRC channel an environment variable
diff --git a/spec/models/subscriber_spec.rb b/spec/models/subscriber_spec.rb index abc1234..def5678 100644 --- a/spec/models/subscriber_spec.rb +++ b/spec/models/subscriber_spec.rb @@ -11,4 +11,17 @@ subscriber.last_name.should eq(@attributes[:last_name]) subscriber.email.should eq(@attributes[:email]) end ...
Add tests for setting a name by full name.
diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb index abc1234..def5678 100644 --- a/spec/spec_helper_acceptance.rb +++ b/spec/spec_helper_acceptance.rb @@ -20,8 +20,8 @@ # Readable test descriptions c.formatter = :documentation c.before :suite do - puppet_module_install(:source =...
Remove puppet_module_install in favor of copy_module_to
diff --git a/spec/worker_scoreboard_spec.rb b/spec/worker_scoreboard_spec.rb index abc1234..def5678 100644 --- a/spec/worker_scoreboard_spec.rb +++ b/spec/worker_scoreboard_spec.rb @@ -2,7 +2,17 @@ require 'tmpdir' describe WorkerScoreboard do - context do + describe '.new' do + context 'For nested directory' d...
Add test for nested directory
diff --git a/printit.gemspec b/printit.gemspec index abc1234..def5678 100644 --- a/printit.gemspec +++ b/printit.gemspec @@ -20,4 +20,6 @@ spec.add_development_dependency "bundler", "~> 1.6" spec.add_development_dependency "rake" + + spec.add_dependency "thor" end
Add Thor as a dependency
diff --git a/dagnabit.gemspec b/dagnabit.gemspec index abc1234..def5678 100644 --- a/dagnabit.gemspec +++ b/dagnabit.gemspec @@ -15,7 +15,7 @@ s.executables = ["dagnabit-test"] s.require_paths = ["lib"] - s.add_dependency 'activerecord', '>= 2.3.0' + s.add_dependency 'activerecord', ['>= 2.3.0', '< 3.1'] ...
Put an upper bound on compatible versions of ActiveRecord. The loaded_{parent,child}? association methods no longer exist in ActiveRecord 3.1. To use dagnabit with ActiveRecord >= 3.1, use dagnabit from the activerecord-edge branch.
diff --git a/config/deploy.rb b/config/deploy.rb index abc1234..def5678 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -lock '3.10.2' +lock '3.11.0' set :application, 'evemonk' set :repo_url, 'git@github.com:biow0lf/evemonk.git'
Update capistrano lock to 3.11.0
diff --git a/config/deploy.rb b/config/deploy.rb index abc1234..def5678 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -8,6 +8,6 @@ set :deploy_to, '/var/www/mjmr' set :linked_files, ['app/config/parameters.yml'] -set :linked_dirs, [fetch(:log_path), 'web/images'] +set :linked_dirs, [fetch(:log_path), 'web/...
Add pdf to shared directories
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -2,11 +2,9 @@ mount RailsAdmin::Engine => '/admin', as: 'rails_admin' devise_for :users, :controllers => { :omniauth_callbacks => "callbacks" } - resources :question + resources :ques...
Remove 'only' parameter in resources questions
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -3,6 +3,7 @@ get '/users', to: 'users#index' get '/users/new', to: 'users#new', as: 'new_user' post '/users', to: 'users#create' + get '/users/:id', to: 'users#show', as: 'user' ...
Create route for individual user show pages
diff --git a/jekyll-theme-feeling-responsive.gemspec b/jekyll-theme-feeling-responsive.gemspec index abc1234..def5678 100644 --- a/jekyll-theme-feeling-responsive.gemspec +++ b/jekyll-theme-feeling-responsive.gemspec @@ -1,9 +1,10 @@ Gem::Specification.new do |s| s.name = 'jekyll-theme-feeling-responsive' - s.versi...
Remove Lovell as author since email contact is not needed
diff --git a/version_gemfile.gemspec b/version_gemfile.gemspec index abc1234..def5678 100644 --- a/version_gemfile.gemspec +++ b/version_gemfile.gemspec @@ -17,6 +17,6 @@ gem.require_paths = ["lib"] gem.add_development_dependency("rake", "~> 13.0.6") - gem.add_development_dependency("rspec", "~> 3.10.0") + gem...
Update rspec requirement from ~> 3.10.0 to ~> 3.11.0 Updates the requirements on [rspec](https://github.com/rspec/rspec-metagem) to permit the latest version. - [Release notes](https://github.com/rspec/rspec-metagem/releases) - [Commits](https://github.com/rspec/rspec-metagem/compare/v3.10.0...v3.11.0) --- updated-de...
diff --git a/lib/con_air.rb b/lib/con_air.rb index abc1234..def5678 100644 --- a/lib/con_air.rb +++ b/lib/con_air.rb @@ -14,7 +14,7 @@ ar.handler_hijackings[ar.connection_id] = ConnectionHandler.new(klass, spec) end - klass.establish_connection + ar.establish_connection yield ensure
Establish connection by using ActiveRecord::Base
diff --git a/interapp.gemspec b/interapp.gemspec index abc1234..def5678 100644 --- a/interapp.gemspec +++ b/interapp.gemspec @@ -17,7 +17,7 @@ s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.rdoc"] s.test_files = Dir["spec/**/*"] - s.add_dependency "rails", "~> 4.1.1", '>= 4.1.1' + ...
Make Rails version dependency more liberal
diff --git a/lib/rvm_cap.rb b/lib/rvm_cap.rb index abc1234..def5678 100644 --- a/lib/rvm_cap.rb +++ b/lib/rvm_cap.rb @@ -0,0 +1,67 @@+# Copyright (c) 2009-2011 Wayne E. Seguin +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You...
Add cap support file from RVM.
diff --git a/yaml_converters.gemspec b/yaml_converters.gemspec index abc1234..def5678 100644 --- a/yaml_converters.gemspec +++ b/yaml_converters.gemspec @@ -20,6 +20,7 @@ gem.add_dependency('activesupport') gem.add_dependency('psych') + gem.add_development_dependency('rake') gem.add_development_dependency('r...
Add rake as development dependency
diff --git a/makara.gemspec b/makara.gemspec index abc1234..def5678 100644 --- a/makara.gemspec +++ b/makara.gemspec @@ -7,6 +7,10 @@ gem.description = %q{Read-write split your DB yo} gem.summary = %q{Read-write split your DB yo} gem.homepage = "" + gem.licenses = ['MIT'] + gem.metadata ...
Add more metadata to gemspec Making automated reasoning about the gem easier, by indicating a link to its source code and indicating the license.
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 @@ -6,8 +6,10 @@ # Set PEM file to APNS module # # @param [String] region - # One of ap-northeast-1, ap-southeast-1, ap-southeast-2, eu-central-1, - # eu-west-1, sa-east-1, us-east-1, us-we...
Update the region list documentation
diff --git a/lib/instana.rb b/lib/instana.rb index abc1234..def5678 100644 --- a/lib/instana.rb +++ b/lib/instana.rb @@ -23,8 +23,14 @@ @tracer = ::Instana::Tracer.new @processor = ::Instana::Processor.new @collectors = [] - @logger = ::Logger.new(STDOUT) - @logger.info "Stan is on the sce...
Set log level according to environment
diff --git a/BlurryModalSegue.podspec b/BlurryModalSegue.podspec index abc1234..def5678 100644 --- a/BlurryModalSegue.podspec +++ b/BlurryModalSegue.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| - git_tag = '0.2.0' + git_tag = '0.3.0' s.name = "BlurryModalSegue" s.version = git...
Update podspec for 0.3.0 release
diff --git a/CKRefreshControl.podspec b/CKRefreshControl.podspec index abc1234..def5678 100644 --- a/CKRefreshControl.podspec +++ b/CKRefreshControl.podspec @@ -1,15 +1,15 @@ Pod::Spec.new do |s| s.name = "CKRefreshControl" - s.version = "1.1.0" + s.version = "1.1.1" s.summary = "A pull-t...
Update podspec to 1.1.1, with Xcode 5 fixes
diff --git a/cash_flow_analysis.gemspec b/cash_flow_analysis.gemspec index abc1234..def5678 100644 --- a/cash_flow_analysis.gemspec +++ b/cash_flow_analysis.gemspec @@ -19,7 +19,7 @@ spec.require_paths = ["lib"] spec.add_development_dependency "bundler", "~> 1.8" - spec.add_development_dependency "pry" + spec....
Add version constraints to development dependencies.
diff --git a/Casks/bettertouchtool.rb b/Casks/bettertouchtool.rb index abc1234..def5678 100644 --- a/Casks/bettertouchtool.rb +++ b/Casks/bettertouchtool.rb @@ -13,7 +13,7 @@ appcast 'http://appcast.boastr.net' name 'BetterTouchTool' homepage 'http://bettertouchtool.net/' - license :commercial + license :grat...
Update BetterTouchTool license from commercial to gratis as per the official homepage, BetterTouchTool is absolutely free.
diff --git a/Casks/rstudio-preview.rb b/Casks/rstudio-preview.rb index abc1234..def5678 100644 --- a/Casks/rstudio-preview.rb +++ b/Casks/rstudio-preview.rb @@ -1,7 +1,7 @@ class RstudioPreview < Cask - url 'https://s3.amazonaws.com/rstudio-dailybuilds/RStudio-0.98.484.dmg' + url 'https://s3.amazonaws.com/rstudio-dai...
Update RStudio preview to 0.98.752
diff --git a/config/initializers/openssl.rb b/config/initializers/openssl.rb index abc1234..def5678 100644 --- a/config/initializers/openssl.rb +++ b/config/initializers/openssl.rb @@ -0,0 +1,12 @@+if RUBY_PLATFORM == 'java' + require 'java' + java_import 'java.lang.ClassNotFoundException' + + begin + security_cl...
Enable JCE for unlimited strength encryption
diff --git a/BlocksKit.podspec b/BlocksKit.podspec index abc1234..def5678 100644 --- a/BlocksKit.podspec +++ b/BlocksKit.podspec @@ -7,7 +7,9 @@ s.author = { 'Zachary Waldowski' => 'zwaldowski@gmail.com', 'Alexsander Akers' => 'a2@pandamonia.us' } s.source = { :git => 'https://github.com/pand...
Fix pod spec for 1.6 and up. Signed-off-by: Zachary Waldowski <f6cb034ae1bf314d2c0261a7a22e4684d1f74b57@gmail.com>
diff --git a/lib/memdash.rb b/lib/memdash.rb index abc1234..def5678 100644 --- a/lib/memdash.rb +++ b/lib/memdash.rb @@ -24,10 +24,8 @@ def generate_stats(op, key, *args) val = perform_without_stats(:get, "memdash") if val.nil? - perform_without_stats(:add, "memdash", "BAM", self.class.memdash_ttl, {})...
Store the stats instead of a test string
diff --git a/lib/my_data.rb b/lib/my_data.rb index abc1234..def5678 100644 --- a/lib/my_data.rb +++ b/lib/my_data.rb @@ -0,0 +1,13 @@+class MyData + attr_reader :year, :lat, :lng, :times + + def initialize(year, lat, lng) + @year = year + @lat = lat + @lng = lng + end + + def calculate + raise NotImplem...
Add base class for data.
diff --git a/lib/specter.rb b/lib/specter.rb index abc1234..def5678 100644 --- a/lib/specter.rb +++ b/lib/specter.rb @@ -3,6 +3,10 @@ require 'clap' class Specter + def self.current + Thread.current[:specter] ||= {} + end + def patterns @patterns ||= [] end
Add helper for tracking thread-level current state.
diff --git a/lib/tootsie.rb b/lib/tootsie.rb index abc1234..def5678 100644 --- a/lib/tootsie.rb +++ b/lib/tootsie.rb @@ -3,6 +3,7 @@ require 's3' require 'sqs' require 'yaml' +require 'optparse' require 'tootsie/application' require 'tootsie/client'
Add missing require for optparse.
diff --git a/lib/tty/cmd.rb b/lib/tty/cmd.rb index abc1234..def5678 100644 --- a/lib/tty/cmd.rb +++ b/lib/tty/cmd.rb @@ -1,9 +1,13 @@ # encoding: utf-8 -require_relative 'sh' +require 'forwardable' +require 'tty-command' module TTY class Cmd + extend Forwardable + + def_delegators :command, :run de...
Change to add ability to run external commands.