diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/examples/heavy_provider_light_resource/libraries/resource_service.rb b/examples/heavy_provider_light_resource/libraries/resource_service.rb
index abc1234..def5678 100644
--- a/examples/heavy_provider_light_resource/libraries/resource_service.rb
+++ b/examples/heavy_provider_light_resource/libraries/resourc... | Add provides line to crazy spec
This is actually a heavy-resource spec and it needs a provides
line.
Signed-off-by: Lamont Granquist <0ab8dc438f73addc98d9ad5925ec8f2b97991703@scriptkiddie.org>
|
diff --git a/holidays.gemspec b/holidays.gemspec
index abc1234..def5678 100644
--- a/holidays.gemspec
+++ b/holidays.gemspec
@@ -16,7 +16,7 @@ gem.test_files = gem.files.grep(/^test/)
gem.require_paths = ['lib']
gem.licenses = ['MIT']
- gem.required_ruby_version = '~> 2.4'
+ gem.required_ruby_version ... | Update ruby_version requirement to allow ruby 3.0
|
diff --git a/app/controllers/concerns/setting_history_concern.rb b/app/controllers/concerns/setting_history_concern.rb
index abc1234..def5678 100644
--- a/app/controllers/concerns/setting_history_concern.rb
+++ b/app/controllers/concerns/setting_history_concern.rb
@@ -28,7 +28,7 @@ else
flash = { danger: @fl... | Use redirect_back to suppress deprecation warning
> DEPRECATION WARNING: `redirect_to :back` is deprecated and will be
> removed from Rails 5.1. Please use `redirect_back(fallback_location:
> fallback_location)` where `fallback_location` represents the location
> to use if the request has no HTTP referer information.
... |
diff --git a/app/models/etsource/reloader.rb b/app/models/etsource/reloader.rb
index abc1234..def5678 100644
--- a/app/models/etsource/reloader.rb
+++ b/app/models/etsource/reloader.rb
@@ -29,6 +29,8 @@ NastyCache.instance.expire!
NastyCache.instance.expire_local!
+ Atlas::ActiveDocument::Mana... | Fix "live" reloading of inputs and gqueries
Resolves quintel/etmodel#1500
|
diff --git a/app/models/railitics/request.rb b/app/models/railitics/request.rb
index abc1234..def5678 100644
--- a/app/models/railitics/request.rb
+++ b/app/models/railitics/request.rb
@@ -4,6 +4,17 @@ class Request
include Mongoid::Document
field :uuid, type: String
- field :user_id
+ field :user_id,... | Define methods for action and controller
|
diff --git a/acceptance/tests/inventory/basic_fact_retrieval.rb b/acceptance/tests/inventory/basic_fact_retrieval.rb
index abc1234..def5678 100644
--- a/acceptance/tests/inventory/basic_fact_retrieval.rb
+++ b/acceptance/tests/inventory/basic_fact_retrieval.rb
@@ -0,0 +1,24 @@+require 'json'
+
+test_name "facts should ... | Add acceptance test for fact retrieval / inventory service
|
diff --git a/spec/lib/escobar/heroku/client_spec.rb b/spec/lib/escobar/heroku/client_spec.rb
index abc1234..def5678 100644
--- a/spec/lib/escobar/heroku/client_spec.rb
+++ b/spec/lib/escobar/heroku/client_spec.rb
@@ -0,0 +1,27 @@+require "spec_helper"
+
+RSpec.describe Escobar::Heroku::Client do
+ let(:client) { Escob... | Add specs for error raising
|
diff --git a/app/controllers/api/v1/organizations_controller.rb b/app/controllers/api/v1/organizations_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/v1/organizations_controller.rb
+++ b/app/controllers/api/v1/organizations_controller.rb
@@ -3,9 +3,11 @@
class OrganizationsController < Appl... | Include provider taxonomy information when loading organizations
|
diff --git a/app/controllers/email_configurations_controller.rb b/app/controllers/email_configurations_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/email_configurations_controller.rb
+++ b/app/controllers/email_configurations_controller.rb
@@ -25,7 +25,7 @@ end
def try_email
- output = Ja... | Fix email sending class name
|
diff --git a/cli/lib/rbld_status.rb b/cli/lib/rbld_status.rb
index abc1234..def5678 100644
--- a/cli/lib/rbld_status.rb
+++ b/cli/lib/rbld_status.rb
@@ -9,6 +9,6 @@ @description = "List modified environments"
end
- legacy_run_implementation :status
+ run_prints :modified, "modified: "
end
end
| cli: Convert rbld status implementation to Ruby
Signed-off-by: Dmitry Fleytman <a8cf97adadec4e1b734a39bc5aea71b5741cfca1@daynix.com>
|
diff --git a/Casks/tex-live-utility.rb b/Casks/tex-live-utility.rb
index abc1234..def5678 100644
--- a/Casks/tex-live-utility.rb
+++ b/Casks/tex-live-utility.rb
@@ -0,0 +1,7 @@+class TexLiveUtility < Cask
+ url 'https://mactlmgr.googlecode.com/files/TeX%20Live%20Utility.app-1.17.tar.gz'
+ homepage 'https://code.googl... | Add 'Tex Live Utility.app' v1.17
|
diff --git a/Casks/tunnelblick-beta.rb b/Casks/tunnelblick-beta.rb
index abc1234..def5678 100644
--- a/Casks/tunnelblick-beta.rb
+++ b/Casks/tunnelblick-beta.rb
@@ -1,7 +1,7 @@ class TunnelblickBeta < Cask
- url 'http://downloads.sourceforge.net/project/tunnelblick/All%20files/Tunnelblick_3.4beta22.dmg'
+ url 'http:/... | Update Tunnelblick to latest beta 24 |
diff --git a/app/models/book.rb b/app/models/book.rb
index abc1234..def5678 100644
--- a/app/models/book.rb
+++ b/app/models/book.rb
@@ -10,7 +10,7 @@ genres_attributes.each do |genre_attribute|
unless genre_attribute["name"].blank?
genre_attribute.values.each do |attribute|
- genre = Genre... | Fix error where genre attribute can't define value
|
diff --git a/lib/requirejs_optimizer/railtie.rb b/lib/requirejs_optimizer/railtie.rb
index abc1234..def5678 100644
--- a/lib/requirejs_optimizer/railtie.rb
+++ b/lib/requirejs_optimizer/railtie.rb
@@ -9,7 +9,8 @@
class RequirejsOptimizerRailtie < Rails::Railtie
- config.after_initialize do
+ config.before_initial... | Add modules to precompile path in before_init
|
diff --git a/sensu-plugins/check_keystone-api.rb b/sensu-plugins/check_keystone-api.rb
index abc1234..def5678 100644
--- a/sensu-plugins/check_keystone-api.rb
+++ b/sensu-plugins/check_keystone-api.rb
@@ -0,0 +1,86 @@+#!/usr/bin/env ruby
+#
+# Keystone API monitoring script for Sensu
+#
+# Copyright © 2014 Christopher ... | Add Keystone API check to sensu-plugins.
|
diff --git a/app/models/note.rb b/app/models/note.rb
index abc1234..def5678 100644
--- a/app/models/note.rb
+++ b/app/models/note.rb
@@ -5,8 +5,6 @@ accepts_nested_attributes_for :comments
delegate :chapter, to: :element
-
- after_save :expire_chapter_cache
belongs_to :user
@@ -32,8 +30,4 @@ def co... | Remove chapter expiry from Note
i_have_no_idea_what_im_doing.jpg
|
diff --git a/lib/the_tv_db/series/collection.rb b/lib/the_tv_db/series/collection.rb
index abc1234..def5678 100644
--- a/lib/the_tv_db/series/collection.rb
+++ b/lib/the_tv_db/series/collection.rb
@@ -5,11 +5,12 @@ ATTRS_MAP = {
:id => "seriesid",
:api_id => "id",
+ :alias => ... | Add AliasNames and Network on search results
|
diff --git a/app/models/user.rb b/app/models/user.rb
index abc1234..def5678 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -8,7 +8,7 @@ :suspendable, # in signonotron2/lib/devise/models/suspendable.rb
:strengthened # in signonotron2/lib/devise/models/strengthened.rb
- attr_accessibl... | Remove old attributes from attr_accessible
The old twitter, github and beard attributes aren't part of this app so let's not reference them in the code
|
diff --git a/appbundler.gemspec b/appbundler.gemspec
index abc1234..def5678 100644
--- a/appbundler.gemspec
+++ b/appbundler.gemspec
@@ -6,8 +6,8 @@ Gem::Specification.new do |spec|
spec.name = "appbundler"
spec.version = Appbundler::VERSION
- spec.authors = ["Dan DeLeo"]
- spec.email ... | Use the standard gem author for chef
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
|
diff --git a/lib/gmail/tags.rb b/lib/gmail/tags.rb
index abc1234..def5678 100644
--- a/lib/gmail/tags.rb
+++ b/lib/gmail/tags.rb
@@ -2,7 +2,9 @@ #
# @author Ollivier Robert <roberto@keltia.net>
#
-# $Id: tags.rb,v 7f48d095873f 2012/12/06 10:04:19 roberto $
+# $Id: tags.rb,v 6869d2bfca55 2012/12/06 13:14:14 roberto $... | Include "gmail/tag" here for completeness.
|
diff --git a/lib/mogli/page.rb b/lib/mogli/page.rb
index abc1234..def5678 100644
--- a/lib/mogli/page.rb
+++ b/lib/mogli/page.rb
@@ -12,6 +12,9 @@
# Musicians
define_properties :record_label, :hometown, :band_members, :genre
+
+ # Restaurants
+ define_properties :parking, :public_transit, :hours, :paym... | Define some missing "Restaurants" properties on Page |
diff --git a/lib/nehm/track.rb b/lib/nehm/track.rb
index abc1234..def5678 100644
--- a/lib/nehm/track.rb
+++ b/lib/nehm/track.rb
@@ -7,9 +7,8 @@ end
def artist
- if @hash['title'].include?('-')
- title = @hash['title'].split('-')
- title[0].rstrip
+ if @hash['title'].index(' - ')
+ ... | Fix detection of artist in title name of song
|
diff --git a/lib/the_merger.rb b/lib/the_merger.rb
index abc1234..def5678 100644
--- a/lib/the_merger.rb
+++ b/lib/the_merger.rb
@@ -23,11 +23,14 @@ end
def field_selection
+ body = select_tag :field, options_for_select(model_fields)
+ body += button_tag "Insert", class: "insert_field"
+ content_tag(:di... | Split getting the model fields into a separate method so we can call that externally if we want to.
|
diff --git a/ruby/ql/test/library-tests/dataflow/barrier-guards/barrier-guards.rb b/ruby/ql/test/library-tests/dataflow/barrier-guards/barrier-guards.rb
index abc1234..def5678 100644
--- a/ruby/ql/test/library-tests/dataflow/barrier-guards/barrier-guards.rb
+++ b/ruby/ql/test/library-tests/dataflow/barrier-guards/barri... | Ruby: Add barrier guards test involving captured variables
|
diff --git a/base/lib/rails/social_stream.rb b/base/lib/rails/social_stream.rb
index abc1234..def5678 100644
--- a/base/lib/rails/social_stream.rb
+++ b/base/lib/rails/social_stream.rb
@@ -5,7 +5,7 @@ def initialize_with_magic(*args, &block)
initialize_without_magic(*args, &block)
- if (unix_file = `which f... | Patch `which file` command in windows
It returns nil. Should provide a better solution
|
diff --git a/spec/colour_alphabet_result_spec.rb b/spec/colour_alphabet_result_spec.rb
index abc1234..def5678 100644
--- a/spec/colour_alphabet_result_spec.rb
+++ b/spec/colour_alphabet_result_spec.rb
@@ -20,4 +20,16 @@ result = ABCing::ColourAlphabetResult.new(params).calculate
expect(result).to include(A: :g... | Test for not finding class or test results and marking them yellow
|
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
@@ -23,7 +23,7 @@
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# confi... | Use NL as default locale.
|
diff --git a/spec/support/database_cleaner.rb b/spec/support/database_cleaner.rb
index abc1234..def5678 100644
--- a/spec/support/database_cleaner.rb
+++ b/spec/support/database_cleaner.rb
@@ -2,7 +2,8 @@
config.before(:suite) do
#DatabaseCleaner.strategy = :transaction
- DatabaseCleaner.strategy = :truncat... | Switch DatabaseCleaner strategy to :deletion.
This greatly improves the speed of the test suite.
`DatabaseCleaner.strategy = :transaction`:
docker-compose exec web bin/rspec 0,56s user 0,21s system 0% cpu 24:25,34 total
`DatabaseCleaner.strategy = :deletion`:
docker-compose exec web bin/rspec 0,38s user ... |
diff --git a/lib/kafka/snappy_codec.rb b/lib/kafka/snappy_codec.rb
index abc1234..def5678 100644
--- a/lib/kafka/snappy_codec.rb
+++ b/lib/kafka/snappy_codec.rb
@@ -2,6 +2,9 @@ class SnappyCodec
def initialize
require "snappy"
+ rescue LoadError
+ raise LoadError,
+ "Using snappy compressio... | Improve error message when `snappy` is not available
|
diff --git a/source/_plugins/fix_rss.rb b/source/_plugins/fix_rss.rb
index abc1234..def5678 100644
--- a/source/_plugins/fix_rss.rb
+++ b/source/_plugins/fix_rss.rb
@@ -7,6 +7,7 @@ input.gsub(/(?<href>href=('|"))\//, '\k<href>' + @context.registers[:site].config["url"] + '/')
.gsub(/(?<src>src=('|"))\... | Remove any `data-` attributes too.
|
diff --git a/lib/mailman/middleware.rb b/lib/mailman/middleware.rb
index abc1234..def5678 100644
--- a/lib/mailman/middleware.rb
+++ b/lib/mailman/middleware.rb
@@ -27,7 +27,7 @@
def run(*args, &final_action)
final_return = nil
- stack = @entries.map {|m| m.new()}
+ stack = @entries.map {|m| m.ne... | Remove brackets for consistent style
|
diff --git a/db/data_migration/20121213100857_fix_mod_news_versions.rb b/db/data_migration/20121213100857_fix_mod_news_versions.rb
index abc1234..def5678 100644
--- a/db/data_migration/20121213100857_fix_mod_news_versions.rb
+++ b/db/data_migration/20121213100857_fix_mod_news_versions.rb
@@ -1,6 +1,10 @@+mod = Organisa... | Stop using a magic number for MOD's ID
|
diff --git a/core/lib/refinery/helpers/site_bar_helper.rb b/core/lib/refinery/helpers/site_bar_helper.rb
index abc1234..def5678 100644
--- a/core/lib/refinery/helpers/site_bar_helper.rb
+++ b/core/lib/refinery/helpers/site_bar_helper.rb
@@ -13,10 +13,8 @@ link_to t('.switch_to_your_website_editor'),
... | Make the function dumber so that it doesn't try to guess.
|
diff --git a/spec/likeable/like_spec.rb b/spec/likeable/like_spec.rb
index abc1234..def5678 100644
--- a/spec/likeable/like_spec.rb
+++ b/spec/likeable/like_spec.rb
@@ -9,12 +9,12 @@ like.user.should eq(@user)
like.target.should eq(@target)
# Times often fail equality checks due to micro... | Fix matcher deprecation warning on time specs.
|
diff --git a/lib/saxinator/optional.rb b/lib/saxinator/optional.rb
index abc1234..def5678 100644
--- a/lib/saxinator/optional.rb
+++ b/lib/saxinator/optional.rb
@@ -12,14 +12,6 @@ push(state_machine, @child, true) # attempt to parse child
end
- def start_element(state_machine, name, attrs = [])
- @... | Remove extraneous code from Optional combinator
|
diff --git a/lib/divide/extractor.rb b/lib/divide/extractor.rb
index abc1234..def5678 100644
--- a/lib/divide/extractor.rb
+++ b/lib/divide/extractor.rb
@@ -13,6 +13,8 @@ splitted_procfile = @procfile_content.split(/\s/)
@options.each do |option|
+ next if option.length < 2
+
key = option[0]
... | Fix bug when a flag/option doesn’t have a value
|
diff --git a/lib/weighable/active_record/migration_extensions/table.rb b/lib/weighable/active_record/migration_extensions/table.rb
index abc1234..def5678 100644
--- a/lib/weighable/active_record/migration_extensions/table.rb
+++ b/lib/weighable/active_record/migration_extensions/table.rb
@@ -9,9 +9,9 @@ end
... | Fix issue with using wrong method in migration command
|
diff --git a/app/controllers/spree/admin/variants_controller_decorator.rb b/app/controllers/spree/admin/variants_controller_decorator.rb
index abc1234..def5678 100644
--- a/app/controllers/spree/admin/variants_controller_decorator.rb
+++ b/app/controllers/spree/admin/variants_controller_decorator.rb
@@ -1,6 +1,4 @@ Spr... | Remove call to non-existant before_update hook in Admin::VariantsController decorator
|
diff --git a/test/integration/installation_package/inspec/assert_functioning_spec.rb b/test/integration/installation_package/inspec/assert_functioning_spec.rb
index abc1234..def5678 100644
--- a/test/integration/installation_package/inspec/assert_functioning_spec.rb
+++ b/test/integration/installation_package/inspec/as... | Update package specs to pass on Amazon Linux
The version is updated all the time here so we can't rely on anything in the tests
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
|
diff --git a/lib/dnsimple/error.rb b/lib/dnsimple/error.rb
index abc1234..def5678 100644
--- a/lib/dnsimple/error.rb
+++ b/lib/dnsimple/error.rb
@@ -15,7 +15,7 @@ private
def message_from(http_response)
- if http_response.headers["Content-Type"] =~ %r{^application/json}
+ if http_response.headers["... | Use start_with? instead of regexp match
|
diff --git a/lib/fog/cloudstack.rb b/lib/fog/cloudstack.rb
index abc1234..def5678 100644
--- a/lib/fog/cloudstack.rb
+++ b/lib/fog/cloudstack.rb
@@ -8,7 +8,7 @@
service(:compute, 'cloudstack/compute','Compute')
- @@digest = OpenSSL::Digest::Digest.new('sha1')
+ @@digest = OpenSSL::Digest.new('sha1')
... | Use OpenSSL::Digest instead of deprecated OpenSSL::Digest::Digest
|
diff --git a/db/migrate/20090404033151_add_single_access_token_to_invision_user.rb b/db/migrate/20090404033151_add_single_access_token_to_invision_user.rb
index abc1234..def5678 100644
--- a/db/migrate/20090404033151_add_single_access_token_to_invision_user.rb
+++ b/db/migrate/20090404033151_add_single_access_token_to_... | Change :single_access_token :null to true
This prevents blank api_key values from being valid.
|
diff --git a/minitest-fastfail.gemspec b/minitest-fastfail.gemspec
index abc1234..def5678 100644
--- a/minitest-fastfail.gemspec
+++ b/minitest-fastfail.gemspec
@@ -14,7 +14,7 @@ gem.summary = %q{Show a dot for each passing test. Show full description for each tests that fail or have errors.}
gem.files ... | Fix gemspec to point to correct test files
|
diff --git a/app/models/transaction.rb b/app/models/transaction.rb
index abc1234..def5678 100644
--- a/app/models/transaction.rb
+++ b/app/models/transaction.rb
@@ -14,4 +14,8 @@ def self.sort_by_active
Transaction.joins(:request).where('transaction_type LIKE :type AND transactions.created_at BETWEEN :then AND :... | Add method for displaying date in words
|
diff --git a/lib/mips/assembler.rb b/lib/mips/assembler.rb
index abc1234..def5678 100644
--- a/lib/mips/assembler.rb
+++ b/lib/mips/assembler.rb
@@ -1,5 +1,5 @@ module MIPS
- SYNTAX = /^\s*((?<tag>[a-zA-Z]\w*)\s*:\s*)?((?<cmd>[a-z]+)\s*((?<arg1>\$?\w+)\s*(,\s*((?<arg2>\$?\w+)|((?<offset>\d+)\(\s*(?<arg2>\$\w+)\s*\)))\... | Fix an misuse of regex
|
diff --git a/test/unit/document_test.rb b/test/unit/document_test.rb
index abc1234..def5678 100644
--- a/test/unit/document_test.rb
+++ b/test/unit/document_test.rb
@@ -21,8 +21,20 @@ require 'test_helper'
describe "a Riagent::Document" do
- it "should pass" do
- doc = User.new
- assert true
+ # See test/exa... | Test for document key & attributes
|
diff --git a/spec/scss_lint/linter/compass/property_with_mixin_spec.rb b/spec/scss_lint/linter/compass/property_with_mixin_spec.rb
index abc1234..def5678 100644
--- a/spec/scss_lint/linter/compass/property_with_mixin_spec.rb
+++ b/spec/scss_lint/linter/compass/property_with_mixin_spec.rb
@@ -40,4 +40,16 @@
it { s... | Add spec for new PropertyWithMixin ignore option
Change-Id: Ifc7d552844e8bdc9c117c2719b53ef9f76d6bb40
Reviewed-on: http://gerrit.causes.com/40956
Tested-by: jenkins <d95b56ce41a2e1ac4cecdd398defd7414407cc08@causes.com>
Reviewed-by: Shane da Silva <67fb7bfe39f841b16a1f86d3928acc568d12c716@brigade.com>
|
diff --git a/lib/messenger.rb b/lib/messenger.rb
index abc1234..def5678 100644
--- a/lib/messenger.rb
+++ b/lib/messenger.rb
@@ -34,13 +34,13 @@ listener.listen
end
- def self.work(type = nil)
- self.new.work type
+ def self.work(message, type = nil)
+ self.new.work message, type
end
- def work(t... | Fix work to pass the message
|
diff --git a/lib/nehm/configure.rb b/lib/nehm/configure.rb
index abc1234..def5678 100644
--- a/lib/nehm/configure.rb
+++ b/lib/nehm/configure.rb
@@ -2,20 +2,59 @@ module Configure
def self.menu
loop do
- puts 'Download path: ' + Paint[PathControl.dl_path, :magenta] if PathControl.dl_path
- puts 'iTune... | Add check for unset up options
|
diff --git a/lib/postmark-rails.rb b/lib/postmark-rails.rb
index abc1234..def5678 100644
--- a/lib/postmark-rails.rb
+++ b/lib/postmark-rails.rb
@@ -1,9 +1,11 @@ require 'action_mailer'
require 'postmark'
-require 'postmark-rails/delivery_method'
module PostmarkRails
+ extend ActiveSupport::Autoload
extend self... | Use ActiveSupport::Autoload so that we don't even load the PostmarkRails::DeliveryMethod module in newer versions.
|
diff --git a/lib/rqrcode-rails3.rb b/lib/rqrcode-rails3.rb
index abc1234..def5678 100644
--- a/lib/rqrcode-rails3.rb
+++ b/lib/rqrcode-rails3.rb
@@ -11,15 +11,14 @@
extend SizeCalculator
- ActionController::Renderers.add :qrcode do |string, options|
- format = self.request.format.symbol
+
+ def render_qrcode... | Refactor render code into callable module function
|
diff --git a/lib/snapme/snapper.rb b/lib/snapme/snapper.rb
index abc1234..def5678 100644
--- a/lib/snapme/snapper.rb
+++ b/lib/snapme/snapper.rb
@@ -21,6 +21,10 @@
def endpoint_url
"#{host}/snapshot"
+ end
+
+ def field_name
+ 'snapshot'
end
def filename
@@ -48,7 +52,7 @@ end
... | Revert "Get rid of method for field name constant"
* This reverts commit d3e4d699f1838a5945fcdc455dea4b80786fc93f.
* I was wrong, this method is used in specs and that is probably a good
thing...
|
diff --git a/lib/tasks/deploy.rake b/lib/tasks/deploy.rake
index abc1234..def5678 100644
--- a/lib/tasks/deploy.rake
+++ b/lib/tasks/deploy.rake
@@ -5,13 +5,13 @@ system("mkdir -p log tmp")
end
- task :bundle_gems do
+ task :bundle_gems => [:environment] do
puts "bundling..."
Dir.chdir(Rails.root)
... | Add environment scope to the rake tasks
|
diff --git a/lib/tasks/deploy.rake b/lib/tasks/deploy.rake
index abc1234..def5678 100644
--- a/lib/tasks/deploy.rake
+++ b/lib/tasks/deploy.rake
@@ -21,3 +21,5 @@ PackageBuilder.deploy!(:production)
end
end
+
+task deploy: 'deploy:staging'
| Deploy to staging by default
|
diff --git a/lib/tasks/travis.rake b/lib/tasks/travis.rake
index abc1234..def5678 100644
--- a/lib/tasks/travis.rake
+++ b/lib/tasks/travis.rake
@@ -1,8 +1,8 @@ namespace :travis do
- desc "Runs rspec specs on travis"
+ desc "Runs rspec specs and jasmine specs on travis"
task :run_specs do
- ["rspec spec"].ea... | Revert "Removes jasmine tests from running on Travis for now."
This reverts commit af68f7b4c258f5908f57b14e4047c2240c8b2a0b.
|
diff --git a/lib/analytics/course_wikidata_csv_builder.rb b/lib/analytics/course_wikidata_csv_builder.rb
index abc1234..def5678 100644
--- a/lib/analytics/course_wikidata_csv_builder.rb
+++ b/lib/analytics/course_wikidata_csv_builder.rb
@@ -18,7 +18,7 @@ hash_stats = @course
.course_stat.stats_has... | Fix deprecation warning for Enumerable.sum
CampaignCsvBuilder#sum_wiki_columns was throwing warnings whenever it would sum a column that included non-numeric values, since Rails has deprecated the Rails implementation of Enumerable.sum in favor of the native Ruby version.
Using 0 rather than an empty string as the de... |
diff --git a/lib/tenanted/model.rb b/lib/tenanted/model.rb
index abc1234..def5678 100644
--- a/lib/tenanted/model.rb
+++ b/lib/tenanted/model.rb
@@ -10,6 +10,12 @@
def current_tenant= value
@@tenant = value
+
+ if postgresql?
+ ActiveRecord::Base.connection.schema_search_path = "tenant_#{@@tena... | Switch schema when switching tenant
|
diff --git a/test/linear_test.rb b/test/linear_test.rb
index abc1234..def5678 100644
--- a/test/linear_test.rb
+++ b/test/linear_test.rb
@@ -20,6 +20,10 @@ constraint2.set_coefficient(x, 1)
constraint2.set_coefficient(y, -1)
+ # solver.add(x + y * 2 <= 14)
+ # solver.add(x*3 + y >= 0)
+ # solver.add... | Test better expression building for solver [skip ci]
|
diff --git a/grabbers/grab-thehowardtheatre.rb b/grabbers/grab-thehowardtheatre.rb
index abc1234..def5678 100644
--- a/grabbers/grab-thehowardtheatre.rb
+++ b/grabbers/grab-thehowardtheatre.rb
@@ -0,0 +1,49 @@+require_relative 'grabber'
+
+class GrabTheHowardTheatre < Grabber
+ # get the array of urls to grab from
+ ... | Add a scraper for the the howard theatre website
|
diff --git a/lib/timetrack.rb b/lib/timetrack.rb
index abc1234..def5678 100644
--- a/lib/timetrack.rb
+++ b/lib/timetrack.rb
@@ -3,5 +3,7 @@ require 'timetrack/parser'
# Entrypoint for gem
+#
+# @api private
module Timetrack
end
| Add @api private to toplevel namespace
|
diff --git a/spec/adapters/faraday_adapter.rb b/spec/adapters/faraday_adapter.rb
index abc1234..def5678 100644
--- a/spec/adapters/faraday_adapter.rb
+++ b/spec/adapters/faraday_adapter.rb
@@ -1,17 +1,25 @@ require 'faraday'
class FaradayAdapter < HTTPBaseAdapter
def send_get_request
- conn = Faraday.new(:url =>... | Fix Faraday test adapter to actually use Faraday for POSTing
|
diff --git a/spec/controllers/clients_spec.rb b/spec/controllers/clients_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/clients_spec.rb
+++ b/spec/controllers/clients_spec.rb
@@ -24,4 +24,10 @@ delete :destroy, { id: @client.id }
expect(response).to redirect_to clients_path
end
+
+ it "requir... | Add Spec to Check for Login (Clients)
|
diff --git a/spec/core/float/multiply_spec.rb b/spec/core/float/multiply_spec.rb
index abc1234..def5678 100644
--- a/spec/core/float/multiply_spec.rb
+++ b/spec/core/float/multiply_spec.rb
@@ -4,6 +4,6 @@ it "returns self multiplied by other" do
(4923.98221 * 2).should be_close(9847.96442, TOLERANCE)
(671... | Modify Float multiply spec to be_close with a TOLERANCE multiplied by a similar scale as the value under test.
|
diff --git a/test/test_helper.rb b/test/test_helper.rb
index abc1234..def5678 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -12,7 +12,7 @@ # Different DB settings and load our schema.
connection = case ENV["DB"]
when /mysql/
- { :adapter => "mysql", :username => "root", :dat... | Use .my.cnf to connect to the database
|
diff --git a/test/test_helper.rb b/test/test_helper.rb
index abc1234..def5678 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -4,7 +4,7 @@ require 'plugin_test_helper'
# Run the migrations
-ActiveRecord::Migrator.migrate("#{RAILS_ROOT}/db/migrate")
+ActiveRecord::Migrator.migrate("#{Rails.root}/db/migr... | Use Rails.root instead of RAILS_ROOT in preparation for the Rails 2.1 release
|
diff --git a/spec/models/organisation_spec.rb b/spec/models/organisation_spec.rb
index abc1234..def5678 100644
--- a/spec/models/organisation_spec.rb
+++ b/spec/models/organisation_spec.rb
@@ -1,25 +1,49 @@ require "spec_helper"
describe Organisation do
- let!(:hmrc) { create :organisation }
+ subject(:organisatio... | Refactor Organisation spec to test methods
As per:
https://github.com/alphagov/hmrc-contacts/pull/113#commitcomment-5908997
I've refactored this test to test the actual methods in Organisation.rb
|
diff --git a/spec/toy_robot/toy_robot_spec.rb b/spec/toy_robot/toy_robot_spec.rb
index abc1234..def5678 100644
--- a/spec/toy_robot/toy_robot_spec.rb
+++ b/spec/toy_robot/toy_robot_spec.rb
@@ -10,24 +10,24 @@ end
end
- describe 'example a' do
+ context 'when example a' do
let(:commands) { ['PLACE 0,0,NO... | Change bin spec describes to contexts
|
diff --git a/middleman-core/lib/middleman-core/dns_resolver/basic_network_resolver.rb b/middleman-core/lib/middleman-core/dns_resolver/basic_network_resolver.rb
index abc1234..def5678 100644
--- a/middleman-core/lib/middleman-core/dns_resolver/basic_network_resolver.rb
+++ b/middleman-core/lib/middleman-core/dns_resolv... | Add Errno::ENETUNREACH to exception list in BasicNetworkResolver
Fixes #1621 |
diff --git a/spec/models/customer_spec.rb b/spec/models/customer_spec.rb
index abc1234..def5678 100644
--- a/spec/models/customer_spec.rb
+++ b/spec/models/customer_spec.rb
@@ -1,5 +1,7 @@ require 'spec_helper'
describe Customer do
- pending "add some examples to (or delete) #{__FILE__}"
+ it "should create a new ... | Replace Pending with a valid example
|
diff --git a/spec/models/routines_spec.rb b/spec/models/routines_spec.rb
index abc1234..def5678 100644
--- a/spec/models/routines_spec.rb
+++ b/spec/models/routines_spec.rb
@@ -0,0 +1,23 @@+require 'spec_helper'
+
+# TODO https://github.com/NetSweet/netsuite_rails/issues/16
+# there are still some unresolved issues wit... | Test boilerplate for company contact match routine
|
diff --git a/spec/usaidwat/client_spec.rb b/spec/usaidwat/client_spec.rb
index abc1234..def5678 100644
--- a/spec/usaidwat/client_spec.rb
+++ b/spec/usaidwat/client_spec.rb
@@ -3,14 +3,6 @@ module USaidWat
module Client
describe Client do
- before(:each) do
- WebMock.disable_net_connect!
- We... | Test for network errors when retrieving comments
|
diff --git a/messaging.gemspec b/messaging.gemspec
index abc1234..def5678 100644
--- a/messaging.gemspec
+++ b/messaging.gemspec
@@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'evt-messaging'
- s.version = '2.5.4.0'
+ s.version = '2.5.5.0'
s.summary = 'Common primitives for pl... | Package version is increased from 2.5.4.0 to 2.5.5.0
|
diff --git a/messaging.gemspec b/messaging.gemspec
index abc1234..def5678 100644
--- a/messaging.gemspec
+++ b/messaging.gemspec
@@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'evt-messaging'
- s.version = '0.13.0.0'
+ s.version = '0.14.0.0'
s.summary = 'Messaging primitives f... | Package version is increased from 0.13.0.0 to 0.14.0.0
|
diff --git a/tests/dns/helper.rb b/tests/dns/helper.rb
index abc1234..def5678 100644
--- a/tests/dns/helper.rb
+++ b/tests/dns/helper.rb
@@ -30,6 +30,12 @@ :zerigo => {
:mocked => false
},
+ :rackspace => {
+ :mocked => false,
+ :zone_attributes => {
+ :email => 'fog@example... | Revert "Moving Rackspace logic to fog-rackspace"
This reverts commit d6ecb19d24503d432d84042753afa1304648d055.
Conflicts:
fog.gemspec
|
diff --git a/lib/axe/configuration.rb b/lib/axe/configuration.rb
index abc1234..def5678 100644
--- a/lib/axe/configuration.rb
+++ b/lib/axe/configuration.rb
@@ -48,3 +48,5 @@ end
end
end
+
+Axe::Configuration.from_yaml
| Load from yaml file on require
|
diff --git a/lib/dotenv/deployment.rb b/lib/dotenv/deployment.rb
index abc1234..def5678 100644
--- a/lib/dotenv/deployment.rb
+++ b/lib/dotenv/deployment.rb
@@ -1,7 +1,7 @@ require "dotenv"
require "dotenv/deployment/version"
-rails_root = File.absolute_path("./")
+rails_root = Rails.root || Dir.pwd
# Load defaul... | Use Dir.pwd instead of File.absolute_path
|
diff --git a/lib/ffi/msgpack/types.rb b/lib/ffi/msgpack/types.rb
index abc1234..def5678 100644
--- a/lib/ffi/msgpack/types.rb
+++ b/lib/ffi/msgpack/types.rb
@@ -16,14 +16,14 @@ callback :msgpack_packer_write, [:pointer, :pointer, :uint], :int
enum :msgpack_object_type, [
- :nil, 0x01,
- ... | Change the msgpack_object_type values for msgpack-0.5.0.
|
diff --git a/lib/github_cli/errors.rb b/lib/github_cli/errors.rb
index abc1234..def5678 100644
--- a/lib/github_cli/errors.rb
+++ b/lib/github_cli/errors.rb
@@ -26,4 +26,12 @@ status_code 12
end
+ class UnknownFormatError < GithubCLIError
+ status_code 13
+
+ def initialize(format)
+ super %{Unreco... | Add wrong formatter custom error.
|
diff --git a/db/seeds.rb b/db/seeds.rb
index abc1234..def5678 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -1,7 +1,14 @@-# This file should contain all the record creation needed to seed the database with its default values.
-# The data can then be loaded with the rake db:seed (or created alongside the db with db:setu... | Add some seed data for the demo
|
diff --git a/lib/max_value.rb b/lib/max_value.rb
index abc1234..def5678 100644
--- a/lib/max_value.rb
+++ b/lib/max_value.rb
@@ -18,7 +18,7 @@ sorter = block ? block : sym
sorted = sort_by(&sorter)
if is_a?(Enumerator::Lazy)
- sorted.lazy.map(&:sym)
+ sorted.lazy.map(&sym)
else
sorte... | Fix typo, &:sym -> &sym
|
diff --git a/lib/active_cucumber/cucumparer.rb b/lib/active_cucumber/cucumparer.rb
index abc1234..def5678 100644
--- a/lib/active_cucumber/cucumparer.rb
+++ b/lib/active_cucumber/cucumparer.rb
@@ -10,7 +10,7 @@ # Returns all entries in the database as a horizontal Mortadella table
def to_horizontal_table
... | Sort table entries by id
|
diff --git a/lib/oneroster/apibase.rb b/lib/oneroster/apibase.rb
index abc1234..def5678 100644
--- a/lib/oneroster/apibase.rb
+++ b/lib/oneroster/apibase.rb
@@ -11,7 +11,8 @@ self.consumer_secret = secret
end
- base_url 'https://oneroster.infinitecampus.org/campus/oneroster/entropyMaster/ims/oneroster/v... | Put base_url into a constant
|
diff --git a/lib/roger_style_guide.rb b/lib/roger_style_guide.rb
index abc1234..def5678 100644
--- a/lib/roger_style_guide.rb
+++ b/lib/roger_style_guide.rb
@@ -4,7 +4,7 @@ module RogerStyleGuide
# The path within project.html_path where the components reside
def self.components_paths=(path)
- @components_path... | Allow setting components_paths as an array
|
diff --git a/lib/rom/mapper/loader.rb b/lib/rom/mapper/loader.rb
index abc1234..def5678 100644
--- a/lib/rom/mapper/loader.rb
+++ b/lib/rom/mapper/loader.rb
@@ -6,7 +6,7 @@
def call(tuple)
header.each_with_object(model.allocate) { |attribute, object|
- object.send("#{attribute.name}=", tuple[a... | Set ivars instead of calling attr writers
refs #2
|
diff --git a/lib/trice/spec_helper.rb b/lib/trice/spec_helper.rb
index abc1234..def5678 100644
--- a/lib/trice/spec_helper.rb
+++ b/lib/trice/spec_helper.rb
@@ -26,7 +26,7 @@ when :controller
request.headers['X-Requested-At'] = time.iso8601
when :feature
- set_header 'X-Requested-At... | Update capybara header customize method
|
diff --git a/app/controllers/logs_controller.rb b/app/controllers/logs_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/logs_controller.rb
+++ b/app/controllers/logs_controller.rb
@@ -15,11 +15,11 @@ end
def edit
- @log = Log.find(params[:id])
+ @log = Log.find(params[:id])
end
de... | Fix indentation in logs controller
|
diff --git a/app/controllers/oils_controller.rb b/app/controllers/oils_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/oils_controller.rb
+++ b/app/controllers/oils_controller.rb
@@ -1,2 +1,49 @@ class OilsController < ApplicationController
+ before_action :set_oil, only: [:show, :edit, :update, :des... | Set up Oil controller actions
|
diff --git a/app/jobs/slack_jobs/inviter_job.rb b/app/jobs/slack_jobs/inviter_job.rb
index abc1234..def5678 100644
--- a/app/jobs/slack_jobs/inviter_job.rb
+++ b/app/jobs/slack_jobs/inviter_job.rb
@@ -1,6 +1,7 @@ class SlackJobs
class InviterJob < SlackJobs
include Sidekiq::Worker
+ sidekiq_options retry: 5
... | Set retries option for SlackJobs
|
diff --git a/db/seeds.rb b/db/seeds.rb
index abc1234..def5678 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -1,7 +1,19 @@-# This file should contain all the record creation needed to seed the database with its default values.
-# The data can then be loaded with the rake db:seed (or created alongside the db with db:setu... | Update seed file to create admin user
|
diff --git a/dbt.gemspec b/dbt.gemspec
index abc1234..def5678 100644
--- a/dbt.gemspec
+++ b/dbt.gemspec
@@ -0,0 +1,27 @@+# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require 'dbt/version'
+
+Gem::Specification.new do |s|
+ s.name = %q{dbt}
+ s.version = Dbt::VERSI... | Add a minimal gemspec file
|
diff --git a/spec/features/registration_spec.rb b/spec/features/registration_spec.rb
index abc1234..def5678 100644
--- a/spec/features/registration_spec.rb
+++ b/spec/features/registration_spec.rb
@@ -23,6 +23,11 @@
visit '/registration'
fill_in('email', with: email)
+
+ expect(Pony).to receive(:mail).wit... | Check registration email in feature test
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -14,6 +14,5 @@
depends 'apt', '~> 2.4'
depends 'build-essential'
-depends 'disable_ipv6'
depends 'yum', '~> 3.0'
depends 'yum-epel'
| Remove dependency to test recipe
|
diff --git a/db/migrate/20100406105223_migrate_to_task_users.rb b/db/migrate/20100406105223_migrate_to_task_users.rb
index abc1234..def5678 100644
--- a/db/migrate/20100406105223_migrate_to_task_users.rb
+++ b/db/migrate/20100406105223_migrate_to_task_users.rb
@@ -0,0 +1,21 @@+class MigrateToTaskUsers < ActiveRecord::M... | Add migration to merge task_owners and notifications tables into task_users.
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -16,8 +16,8 @@ supports os
end
-depends 'apt', '>= 2.3.8', '< 3.0.0'
-depends 'database', '>= 4.0.2', '< 5.0.0'
-depends 'mysql', '>= 6.0.13', '< 7.0.0'
-depends 'yum', '>= 3.5.2', '< 4.0.0'
-depends 'yum-ep... | Switch back to pessimistic version constraint
Change-Id: Ie7038d8d971cedc0bc487c9b9373b444b66ed66d
Partial-Bug: #1425192
|
diff --git a/spec/lib/data_tiering/sync_spec.rb b/spec/lib/data_tiering/sync_spec.rb
index abc1234..def5678 100644
--- a/spec/lib/data_tiering/sync_spec.rb
+++ b/spec/lib/data_tiering/sync_spec.rb
@@ -5,7 +5,6 @@ subject { described_class }
before do
- Rails = double(:env => double(:test? => true))
subje... | Remove last piece of mock Rails
|
diff --git a/spec/lib/hidemyass/request_spec.rb b/spec/lib/hidemyass/request_spec.rb
index abc1234..def5678 100644
--- a/spec/lib/hidemyass/request_spec.rb
+++ b/spec/lib/hidemyass/request_spec.rb
@@ -9,14 +9,14 @@ let(:proxy) { "http://#{proxies[0][:host]}:#{proxies[0][:port]}" }
before do
- HideMyAss.stub... | Convert specs to RSpec 3.0.0 syntax with Transpec
This conversion is done by Transpec 2.2.4 with the following command:
transpec
* 2 conversions
from: obj.stub(:message)
to: allow(obj).to receive(:message)
* 1 conversion
from: obj.should_receive(:message)
to: expect(obj).to receive(:message)
... |
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -1,4 +1,4 @@-name 'kibana'
+name 'opsworks_kibana'
maintainer 'Andrew Jo'
maintainer_email 'andrew@verdigris.co'
license 'Simplified BSD'
@@ -6,4 +6,4 @@ long_description... | Update wrapper cookbook name to opsworks_kibana
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -8,8 +8,8 @@ %w[ debian ubuntu centos redhat fedora scientific suse amazon].each do |os|
supports os
end
-source_url 'https://github.com/brianbianco/redisio'
-issues_url 'https://github.com/brianbi... | Fix to run under Chef <12
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -15,5 +15,5 @@ depends 'build-essential', '~> 2.2'
depends 'java', '~> 1.39'
depends 'runit', '~> 1.7'
-depends 'apt', '~> 3.0'
+depends 'apt'
depends 'mag... | Drop apt version pin to avoid conflicts
apt is often pinned in many places, and is generally safe to leave
unpinned. To avoid transistive depsolving pain, this will be unpinned
for now
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -1,10 +1,9 @@ name "tideways"
-version "0.2.0"
+version "0.2.1"
maintainer "Rupert Jones"
maintainer_email "rjones@inviqa.com"
license "Apache 2.0"
description "Install and configure tideways daemon and PHP e... | Update depency for apache2 rather than httpd
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.