diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/lib/jquery-rails.rb b/lib/jquery-rails.rb
index abc1234..def5678 100644
--- a/lib/jquery-rails.rb
+++ b/lib/jquery-rails.rb
@@ -1,8 +1,8 @@ module Jquery
module Rails
class Railtie < ::Rails::Railtie
- if ::Rails.root.join("javascripts/jquery-ui.min.js").exist?
config.before_initializ... | Fix jQuery-UI checking to actually work |
diff --git a/lib/maia/message.rb b/lib/maia/message.rb
index abc1234..def5678 100644
--- a/lib/maia/message.rb
+++ b/lib/maia/message.rb
@@ -51,7 +51,6 @@ def to_h
hash = {
data: other,
- priority: priority.to_s,
notification: {
title: alert,
body: alert,
| Remove priority from to_h, merge it later if it's set
|
diff --git a/lib/client_for_poslynx/data/requests/debit_card_sale.rb b/lib/client_for_poslynx/data/requests/debit_card_sale.rb
index abc1234..def5678 100644
--- a/lib/client_for_poslynx/data/requests/debit_card_sale.rb
+++ b/lib/client_for_poslynx/data/requests/debit_card_sale.rb
@@ -12,7 +12,6 @@
attr_elemen... | Remove invalid TaxAmount element from DCSALE
|
diff --git a/lib/middleware/base.rb b/lib/middleware/base.rb
index abc1234..def5678 100644
--- a/lib/middleware/base.rb
+++ b/lib/middleware/base.rb
@@ -3,13 +3,21 @@ class Base
extend Aliasable
+ # By default, Testify middleware is initialized with only the next app on
+ # the stack. If you ove... | Add some rdoc (more needed)
|
diff --git a/lib/pgquilter/topic.rb b/lib/pgquilter/topic.rb
index abc1234..def5678 100644
--- a/lib/pgquilter/topic.rb
+++ b/lib/pgquilter/topic.rb
@@ -12,13 +12,10 @@ end
def self.normalize(subject)
- # 1. Look for '(was $subject) and normalize subject instead
- # 2. Strip '[HACKERS]'
- # 3.... | Remove unneeded comments and improve subject normalization
|
diff --git a/lib/tasks/ingress.rake b/lib/tasks/ingress.rake
index abc1234..def5678 100644
--- a/lib/tasks/ingress.rake
+++ b/lib/tasks/ingress.rake
@@ -17,7 +17,8 @@ begin
response = HTTP.basic_auth(user: "actionmailbox", pass: password)
.timeout(connect: 1, write: 10, read: 10)
- .p... | Read STDIN to upload it
http.rb can't stream from pipes.
|
diff --git a/lib/tiddle/strategy.rb b/lib/tiddle/strategy.rb
index abc1234..def5678 100644
--- a/lib/tiddle/strategy.rb
+++ b/lib/tiddle/strategy.rb
@@ -9,7 +9,7 @@ def authenticate!
env["devise.skip_trackable"] = true
- resource = mapping.to.find_for_authentication(email: email_from_headers)
+ ... | Allow authentication using authentication_keys different than email.
This introduces the possibility to use for instance "login" field instead of "email" to authenticate.
|
diff --git a/lib/tori/backend/s3.rb b/lib/tori/backend/s3.rb
index abc1234..def5678 100644
--- a/lib/tori/backend/s3.rb
+++ b/lib/tori/backend/s3.rb
@@ -35,8 +35,12 @@ object(filename).read
end
- def url(filename)
- object(filename).url_for(:read)
+ def public_url(filename)
+ ob... | Remove `url` and define `public_url` and `url_for`
since proxy to S3Object
|
diff --git a/turbolinks.gemspec b/turbolinks.gemspec
index abc1234..def5678 100644
--- a/turbolinks.gemspec
+++ b/turbolinks.gemspec
@@ -6,7 +6,7 @@ s.author = 'David Heinemeier Hansson'
s.email = 'david@loudthinking.com'
s.license = 'MIT'
- s.homepage = 'https://github.com/turbolinks/turboli... | Update homepage to point to the main Turbolinks repo
|
diff --git a/spec/classes/mysql_backup_spec.rb b/spec/classes/mysql_backup_spec.rb
index abc1234..def5678 100644
--- a/spec/classes/mysql_backup_spec.rb
+++ b/spec/classes/mysql_backup_spec.rb
@@ -12,7 +12,7 @@ it { should contain_database_user('testuser@localhost')}
it { should contain_database_grant('testuser@... | Update privilege names to comply with 3fbb54de6c.
Forgot to update the rspec test.
|
diff --git a/spec/factories/address_factory.rb b/spec/factories/address_factory.rb
index abc1234..def5678 100644
--- a/spec/factories/address_factory.rb
+++ b/spec/factories/address_factory.rb
@@ -5,5 +5,6 @@ # Modify the address factory to generate unique addresses.
factory :address do
address2 { SecureRando... | Make sure all factory addresses have the same state.
|
diff --git a/lib/bookyt_pos/railtie.rb b/lib/bookyt_pos/railtie.rb
index abc1234..def5678 100644
--- a/lib/bookyt_pos/railtie.rb
+++ b/lib/bookyt_pos/railtie.rb
@@ -3,8 +3,8 @@
module BookytPos
class Railtie < Rails::Engine
- initializer :after_initialize do
- Bookyt::Engine.register_engine 'bookyt_pos'
+ ... | Use app.config.bookyt.engines to register engines with bookyt.
|
diff --git a/lib/phusion_passenger/railz/framework_extensions/analytics_logging/ar_abstract_adapter_extension.rb b/lib/phusion_passenger/railz/framework_extensions/analytics_logging/ar_abstract_adapter_extension.rb
index abc1234..def5678 100644
--- a/lib/phusion_passenger/railz/framework_extensions/analytics_logging/ar... | Fix ActiveRecord SQL logging: name could be nil.
|
diff --git a/examples/test_ffi_struct.rb b/examples/test_ffi_struct.rb
index abc1234..def5678 100644
--- a/examples/test_ffi_struct.rb
+++ b/examples/test_ffi_struct.rb
@@ -33,7 +33,7 @@ layout :a, :int, :b, :int
end
def initialize(ptr=nil)
- @struct = Struct.new(ptr)
+ @struct = self.class.const_get(:S... | Make initialize work for subclasses too.
By using const_get to retrieve the Struct class, we don't need to redefine
initialize for each subclass of Foo2.
|
diff --git a/lib/conceptql/database.rb b/lib/conceptql/database.rb
index abc1234..def5678 100644
--- a/lib/conceptql/database.rb
+++ b/lib/conceptql/database.rb
@@ -1,6 +1,3 @@-require 'facets/hash/revalue'
-require 'facets/hash/symbolize_keys'
-
module ConceptQL
class Database
attr :db, :opts
@@ -15,10 +12,11... | Database: Move DB_OPT processing to Sequelizer
Addresses #120
|
diff --git a/core/lib/spree/deprecation.rb b/core/lib/spree/deprecation.rb
index abc1234..def5678 100644
--- a/core/lib/spree/deprecation.rb
+++ b/core/lib/spree/deprecation.rb
@@ -4,4 +4,54 @@
module Spree
Deprecation = ActiveSupport::Deprecation.new('3.0', 'Solidus')
+
+ # This DeprecatedInstanceVariableProxy t... | Add a Spree::DeprecatedInstanceVariableProxy to allow custom messages
The default Rails class does not allow to pass a custom message to the
deprecation. This custom class extends its behavior to make it possible.
Note that I also opened a PR in Rails for fixing this: rails/rails#35442
|
diff --git a/week-6/nested_data_solution.rb b/week-6/nested_data_solution.rb
index abc1234..def5678 100644
--- a/week-6/nested_data_solution.rb
+++ b/week-6/nested_data_solution.rb
@@ -0,0 +1,47 @@+# RELEASE 2: NESTED STRUCTURE GOLF
+# Hole 1
+# Target element: "FORE"
+
+array = [[1,2], ["inner", ["eagle", "par", ["FOR... | Add initial load challenge 6.5
|
diff --git a/spec/dummy/config/initializers/alchemy.rb b/spec/dummy/config/initializers/alchemy.rb
index abc1234..def5678 100644
--- a/spec/dummy/config/initializers/alchemy.rb
+++ b/spec/dummy/config/initializers/alchemy.rb
@@ -1,31 +1,33 @@ # frozen_string_literal: true
-Alchemy.register_ability Ability
-Alchemy.us... | Move initializer code into to_prepare block
Rails 7 does not autoload constants during boot anymore.
|
diff --git a/rails/spec/helpers/theme_helper_spec.rb b/rails/spec/helpers/theme_helper_spec.rb
index abc1234..def5678 100644
--- a/rails/spec/helpers/theme_helper_spec.rb
+++ b/rails/spec/helpers/theme_helper_spec.rb
@@ -0,0 +1,75 @@+require 'spec_helper'
+
+class ConsumerClass
+ include ThemeHelper
+end
+
+def set_th... | Add test for the theme_helper
#178193020 - find alternative to themes on rails
https://www.pivotaltracker.com/story/show/178193020
|
diff --git a/lib/docushin/route_set.rb b/lib/docushin/route_set.rb
index abc1234..def5678 100644
--- a/lib/docushin/route_set.rb
+++ b/lib/docushin/route_set.rb
@@ -12,7 +12,7 @@ if (rack_app = discover_rack_app(route.app)) && rack_app.respond_to?(:routes)
rack_app.routes.routes.each do |rack_route|
... | Fix error when multiple Rack apps are mounted.
|
diff --git a/app/helpers/translation_helper.rb b/app/helpers/translation_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/translation_helper.rb
+++ b/app/helpers/translation_helper.rb
@@ -0,0 +1,17 @@+module TranslationHelper
+ # Forest translation
+ def ft(record, attribute_name, options = {})
+ fallback... | Add forest translation `ft` helper method
|
diff --git a/app/controllers/pods_controller.rb b/app/controllers/pods_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/pods_controller.rb
+++ b/app/controllers/pods_controller.rb
@@ -1,7 +1,7 @@ class PodsController < ApplicationController
caches_page :index, :show
- CHUNK_SIZE = 100
+ CHUNK_... | Increase chunk size to 500 pods.
|
diff --git a/app/helpers/bsat/content_helper.rb b/app/helpers/bsat/content_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/bsat/content_helper.rb
+++ b/app/helpers/bsat/content_helper.rb
@@ -1,7 +1,7 @@ module Bsat
module ContentHelper
- def bsat_brand(title, path: nil, &block)
+ def bsat_brand(pat... | Allow only block syntax for bsat_brand with optional path.
|
diff --git a/app/helpers/vote_display_helper.rb b/app/helpers/vote_display_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/vote_display_helper.rb
+++ b/app/helpers/vote_display_helper.rb
@@ -9,6 +9,6 @@ end
def get_type(voteable)
-
+ voteable.class.name
end
end
| Define get_type method for voteable
|
diff --git a/minitest-sugar.gemspec b/minitest-sugar.gemspec
index abc1234..def5678 100644
--- a/minitest-sugar.gemspec
+++ b/minitest-sugar.gemspec
@@ -14,4 +14,5 @@ s.test_files = Dir["test/**/*.rb"]
s.add_dependency "minitest", "~> 5.0"
+ spec.add_development_dependency "rake", "~> 10.0"
end
| Add rake as a development dependency.
|
diff --git a/spec/kat.rb b/spec/kat.rb
index abc1234..def5678 100644
--- a/spec/kat.rb
+++ b/spec/kat.rb
@@ -5,17 +5,21 @@ load 'daniel'
describe Daniel::PasswordGenerator do
- it "gives the expected password for foo, bar" do
- gen = Daniel::PasswordGenerator.new "foo"
- gen.generate("baz", Daniel::Parameters.new)... | Refactor tests to make multiple tests easier.
Signed-off-by: brian m. carlson <738bdd359be778fee9f0fc4e2934ad72f436ceda@crustytoothpaste.net>
|
diff --git a/app/workers/reservation_worker.rb b/app/workers/reservation_worker.rb
index abc1234..def5678 100644
--- a/app/workers/reservation_worker.rb
+++ b/app/workers/reservation_worker.rb
@@ -1,7 +1,7 @@ class ReservationWorker
include Sidekiq::Worker
- sidekiq_options :retry => 1
+ sidekiq_options :retry =... | Revert "allow reservation worker to retry jobs"
This reverts commit 9d36398251f2ee136d47394953e1ea856dd94c0d.
|
diff --git a/core/env/clear_spec.rb b/core/env/clear_spec.rb
index abc1234..def5678 100644
--- a/core/env/clear_spec.rb
+++ b/core/env/clear_spec.rb
@@ -5,7 +5,7 @@ orig = ENV.to_hash
begin
ENV.clear
- ENV.should == {}
+ env.should == {}
ensure
ENV.replace orig
end
| Revert "change env to ENV"
This reverts commit 789b8248a6f13710177488284505e45ee452923d.
|
diff --git a/lib/shanty/initializer.rb b/lib/shanty/initializer.rb
index abc1234..def5678 100644
--- a/lib/shanty/initializer.rb
+++ b/lib/shanty/initializer.rb
@@ -1,42 +1,40 @@ require "thor"
module Shanty
- class Initializer < Thor
+ class Initializer
+ include Thor::Base
include Thor::Actions
-
so... | Make Initializer not a inherit from Thor.
I made this change to have it no longer inherit from Thor because it isn't
really a sub command. Instead it is simply a class that I wanted to use the
thor action methods in.
|
diff --git a/web/database/db.rb b/web/database/db.rb
index abc1234..def5678 100644
--- a/web/database/db.rb
+++ b/web/database/db.rb
@@ -15,4 +15,4 @@ end
options[:dbname] = uri.path[1..-1]
-DB = Flounder.connect options
+DB = Flounder.connect options.merge(search_path: 'public, information_schema')
| Include the information schema in the search path.
|
diff --git a/web_purify.gemspec b/web_purify.gemspec
index abc1234..def5678 100644
--- a/web_purify.gemspec
+++ b/web_purify.gemspec
@@ -15,7 +15,7 @@
s.add_dependency "json"
- s.add_development_dependency "rspec", "~> 3.2.0"
+ s.add_development_dependency "rspec", "~> 3.8.0"
s.add_development_dependency "vc... | Update rspec requirement from ~> 3.2.0 to ~> 3.8.0
Updates the requirements on [rspec](https://github.com/rspec/rspec) to permit the latest version.
- [Release notes](https://github.com/rspec/rspec/releases)
- [Commits](https://github.com/rspec/rspec/commits/v3.8.0)
Signed-off-by: dependabot[bot] <5bdcd3c0d4d24ae3e71... |
diff --git a/test/unit/git/commit/test_rememberance.rb b/test/unit/git/commit/test_rememberance.rb
index abc1234..def5678 100644
--- a/test/unit/git/commit/test_rememberance.rb
+++ b/test/unit/git/commit/test_rememberance.rb
@@ -8,6 +8,7 @@
@reposdir = Pathname.new("tmp/repos.git")
@commit = Piston::Git::Com... | Fix test rememberance of git repositories due to use of git-ls-remote to get last commit
|
diff --git a/jekyll-theme-kagami.gemspec b/jekyll-theme-kagami.gemspec
index abc1234..def5678 100644
--- a/jekyll-theme-kagami.gemspec
+++ b/jekyll-theme-kagami.gemspec
@@ -15,5 +15,5 @@ spec.add_runtime_dependency "jekyll", "~> 3.3"
spec.add_development_dependency "bundler", "~> 1.12"
- spec.add_development_de... | Upgrade rake to version 12.3.3
Upgrade rake to version 12.3.3
|
diff --git a/test/deprecated_sanitizer_test.rb b/test/deprecated_sanitizer_test.rb
index abc1234..def5678 100644
--- a/test/deprecated_sanitizer_test.rb
+++ b/test/deprecated_sanitizer_test.rb
@@ -19,4 +19,9 @@ sanitize_helper.sanitized_allowed_tags = %w(horse)
assert_equal %w(horse), HTML::WhiteListSanitizer.... | Add a test for setting allowed attributes.
|
diff --git a/config/environments/production.rb b/config/environments/production.rb
index abc1234..def5678 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -13,4 +13,5 @@ config.logger = Logger::Syslog.new("racing_on_rails", Syslog::LOG_LOCAL4)
con... | Add assets for WSBA precompilation
|
diff --git a/config/initializers/mime_types.rb b/config/initializers/mime_types.rb
index abc1234..def5678 100644
--- a/config/initializers/mime_types.rb
+++ b/config/initializers/mime_types.rb
@@ -6,3 +6,5 @@
Mime::Type.register_alias "text/plain", :diff
Mime::Type.register_alias "text/plain", :patch
+Mime::Type.reg... | Add Markdown to Mime types
|
diff --git a/db/migrate/093_add_reviewer_id_to_review_of_review_mappings.rb b/db/migrate/093_add_reviewer_id_to_review_of_review_mappings.rb
index abc1234..def5678 100644
--- a/db/migrate/093_add_reviewer_id_to_review_of_review_mappings.rb
+++ b/db/migrate/093_add_reviewer_id_to_review_of_review_mappings.rb
@@ -0,0 +1,... | Add reviewer_id to review_of_review_mappings (metareview mappings)
git-svn-id: f67d969b640da65cb7bc1d229e09fd6d2db44ae1@575 392d7b7b-3f31-0410-9dc3-c95a9635ea79
|
diff --git a/lib/bulk_insert.rb b/lib/bulk_insert.rb
index abc1234..def5678 100644
--- a/lib/bulk_insert.rb
+++ b/lib/bulk_insert.rb
@@ -33,4 +33,6 @@ end
end
-ActiveRecord::Base.send :include, BulkInsert
+ActiveSupport.on_load(:active_record) do
+ send(:include, BulkInsert)
+end
| Fix Rails 5 belongs_to behaviour override
|
diff --git a/lib/mr_keychain.rb b/lib/mr_keychain.rb
index abc1234..def5678 100644
--- a/lib/mr_keychain.rb
+++ b/lib/mr_keychain.rb
@@ -10,7 +10,7 @@ # This is a special constant that allows {Keychain::Item} to treat a
# password as if it were like the other keychain item attributes.
# @return [Symbol]
- KSec... | Make KSecAttPassword a 4 letter string like the real constants |
diff --git a/lib/parse_fasta.rb b/lib/parse_fasta.rb
index abc1234..def5678 100644
--- a/lib/parse_fasta.rb
+++ b/lib/parse_fasta.rb
@@ -20,6 +20,7 @@ require "parse_fasta/record"
require "parse_fasta/seq_file"
require "parse_fasta/error/data_format_error"
+require "parse_fasta/error/sequence_format_error"
module ... | Raise error with bad fastA seq
|
diff --git a/lib/pausescreen.rb b/lib/pausescreen.rb
index abc1234..def5678 100644
--- a/lib/pausescreen.rb
+++ b/lib/pausescreen.rb
@@ -6,4 +6,16 @@ @window = window
end
+ def draw
+ draw_rect(@window_width, @window_height, Pokeconstants::Trans_black,
+ ZOrder::Pause_background)
+ end
+
+ def draw_re... | Add draw_rect method and use it in PauseScreen.draw
|
diff --git a/lib/date-parser/datetime.rb b/lib/date-parser/datetime.rb
index abc1234..def5678 100644
--- a/lib/date-parser/datetime.rb
+++ b/lib/date-parser/datetime.rb
@@ -6,6 +6,7 @@ value = args.first
return if value.nil?
return value if value.is_a?(DateTime) || value.is_a?(Time)
+ return value.to_d... | Return to DateTime converted value if called with Date |
diff --git a/deployment_scripts/puppet/modules/plugin_midonet/lib/puppet/parser/functions/generate_zookeeper_hash.rb b/deployment_scripts/puppet/modules/plugin_midonet/lib/puppet/parser/functions/generate_zookeeper_hash.rb
index abc1234..def5678 100644
--- a/deployment_scripts/puppet/modules/plugin_midonet/lib/puppet/p... | Fix function to generate zookeper hashes
Change to each_to_index method
Change-Id: Ibed3824a6d9ee4912365291a2323eda9d98ab48d
|
diff --git a/lib/filter_factory/field.rb b/lib/filter_factory/field.rb
index abc1234..def5678 100644
--- a/lib/filter_factory/field.rb
+++ b/lib/filter_factory/field.rb
@@ -3,17 +3,29 @@ attr_reader :name, :condition, :alias, :options
attr_accessor :value
+ # Initializes new instance of Field.
+ #
+ ... | Add RDoc/Yard comments and minor style fixed for Field class.
|
diff --git a/spec/features/with_dependencies_spec.rb b/spec/features/with_dependencies_spec.rb
index abc1234..def5678 100644
--- a/spec/features/with_dependencies_spec.rb
+++ b/spec/features/with_dependencies_spec.rb
@@ -7,5 +7,12 @@ it 'outputs multiple project banners' do
lines.select{|l| l == "="*80}.size... | Add tests for dependency output
|
diff --git a/dill.gemspec b/dill.gemspec
index abc1234..def5678 100644
--- a/dill.gemspec
+++ b/dill.gemspec
@@ -18,7 +18,6 @@ s.require_paths = ['lib']
s.rubyforge_project = '[none]'
- s.add_dependency 'cucumber'
s.add_dependency 'chronic'
s.add_dependency 'capybara', '>= 2.0'
| Remove cucumber as a runtime dependency.
|
diff --git a/spec/helpers/application_helper_spec.rb b/spec/helpers/application_helper_spec.rb
index abc1234..def5678 100644
--- a/spec/helpers/application_helper_spec.rb
+++ b/spec/helpers/application_helper_spec.rb
@@ -26,7 +26,7 @@ @issue = create :issue, :github_labels => [[[], ['name', 'foo'], ['color', 'bar... | Fix spec description for issue_tag_color
|
diff --git a/dm-restful-adapter.gemspec b/dm-restful-adapter.gemspec
index abc1234..def5678 100644
--- a/dm-restful-adapter.gemspec
+++ b/dm-restful-adapter.gemspec
@@ -15,7 +15,7 @@ gem.require_paths = ["lib"]
gem.version = DataMapper::Adapters::RestfulAdapter::VERSION
- gem.add_dependency 'dm-core', '1.... | Change dm-core dependency to 1.2.0 (hopefully, just until pull request is included into core and they fix mainline)
|
diff --git a/spec/presenters/asset_presenter_spec.rb b/spec/presenters/asset_presenter_spec.rb
index abc1234..def5678 100644
--- a/spec/presenters/asset_presenter_spec.rb
+++ b/spec/presenters/asset_presenter_spec.rb
@@ -0,0 +1,56 @@+require 'rails_helper'
+
+RSpec.describe AssetPresenter do
+ subject(:presenter) { de... | Add unit test coverage for AssetPresenter
|
diff --git a/lib/rspec-redo/rake_task.rb b/lib/rspec-redo/rake_task.rb
index abc1234..def5678 100644
--- a/lib/rspec-redo/rake_task.rb
+++ b/lib/rspec-redo/rake_task.rb
@@ -9,12 +9,12 @@ def initialize(name = 'spec:redo', *args, &block)
@retry_count = ENV['RETRY_COUNT']
- unless ::Rake.application.las... | Fix deprecated Rake last_comment is now last_description
|
diff --git a/lib/hpcloud/commands/addresses.rb b/lib/hpcloud/commands/addresses.rb
index abc1234..def5678 100644
--- a/lib/hpcloud/commands/addresses.rb
+++ b/lib/hpcloud/commands/addresses.rb
@@ -29,7 +29,6 @@ display_error_message(error)
rescue Fog::AWS::Compute::Error => error
# Hack to... | Remove line as it is not needed anymore.
|
diff --git a/lib/sippy_cup/media/rtp_packet.rb b/lib/sippy_cup/media/rtp_packet.rb
index abc1234..def5678 100644
--- a/lib/sippy_cup/media/rtp_packet.rb
+++ b/lib/sippy_cup/media/rtp_packet.rb
@@ -5,6 +5,7 @@ module SippyCup
class Media
class RTPPacket < PacketFu::UDPPacket
+ attr_reader :header
d... | Use attr_reader instead of a method |
diff --git a/lib/spree_store_credits/engine.rb b/lib/spree_store_credits/engine.rb
index abc1234..def5678 100644
--- a/lib/spree_store_credits/engine.rb
+++ b/lib/spree_store_credits/engine.rb
@@ -16,5 +16,9 @@ end
config.to_prepare &method(:activate).to_proc
+
+ initializer "spree.gateway.payment_methods... | Add store credit to list of payment_methods.
This will currently cause issues if you attempt to save the store credit
payment method in the Spree admin interface because the gateway is not
in the list of available payment methods.
It will default the store credit payment method to the first payment
method in the list... |
diff --git a/dragons/scripts/run.rb b/dragons/scripts/run.rb
index abc1234..def5678 100644
--- a/dragons/scripts/run.rb
+++ b/dragons/scripts/run.rb
@@ -0,0 +1,13 @@+#!/usr/bin/env ruby
+
+require_relative "../src/html-visualizer.rb"
+
+usage = <<eos
+./run.rb <input_file> <rooms|teachers|groups>
+ parses a given JSON... | Add ignored dir and rename it because bin is Satan for M$
|
diff --git a/providers/common.rb b/providers/common.rb
index abc1234..def5678 100644
--- a/providers/common.rb
+++ b/providers/common.rb
@@ -15,7 +15,7 @@ action :create
source new_resource.config_template
path new_resource.config_destination
- variables new_resource.variables
+ variables new_resour... | Correct name of resource variables
new_resource.variables -> new_resource.config_vars
|
diff --git a/spec/bin/t012_git_contest_list_spec.rb b/spec/bin/t012_git_contest_list_spec.rb
index abc1234..def5678 100644
--- a/spec/bin/t012_git_contest_list_spec.rb
+++ b/spec/bin/t012_git_contest_list_spec.rb
@@ -0,0 +1,51 @@+require 'spec_helper'
+
+describe "T012: git-contest-list" do
+ before do
+ ENV['GIT_C... | Add spec for git-contest-list sites
|
diff --git a/spec/stack_master/commands/nag_spec.rb b/spec/stack_master/commands/nag_spec.rb
index abc1234..def5678 100644
--- a/spec/stack_master/commands/nag_spec.rb
+++ b/spec/stack_master/commands/nag_spec.rb
@@ -25,7 +25,7 @@ let(:template_body) { '{}' }
let(:template_format) { :json }
- it 'outputs ... | Fix spec to allow yaml templates
|
diff --git a/spec/support/potential_user_helpers.rb b/spec/support/potential_user_helpers.rb
index abc1234..def5678 100644
--- a/spec/support/potential_user_helpers.rb
+++ b/spec/support/potential_user_helpers.rb
@@ -0,0 +1,31 @@+module PotentialUserHelpers
+
+ def create_potential_user args={}
+ defaults = {
+ ... | Add potential users helpers for request invite tests
|
diff --git a/extras/image_reaper.rb b/extras/image_reaper.rb
index abc1234..def5678 100644
--- a/extras/image_reaper.rb
+++ b/extras/image_reaper.rb
@@ -0,0 +1,15 @@+#!/usr/bin/env ruby
+
+require 'rubygems'
+require 'active_support'
+
+class File
+ def self.obsolete?(filename)
+ File.mtime(filename) < 1.day.ago
+ ... | Add supplimentary script for cleaning out older spool paths via cron
git-svn-id: 6d9b9a8f21f96071dc3ac7ff320f08f2a342ec80@89 daa9635f-4444-0410-9b3d-b8c75a019348
|
diff --git a/app/parameters/raw_time_parameters.rb b/app/parameters/raw_time_parameters.rb
index abc1234..def5678 100644
--- a/app/parameters/raw_time_parameters.rb
+++ b/app/parameters/raw_time_parameters.rb
@@ -3,12 +3,34 @@ class RawTimeParameters < BaseParameters
def self.permitted
- %i[id event_group_id ev... | Allow entered_lap (but not lap) as a permitted param
|
diff --git a/spec/commands/version_spec.rb b/spec/commands/version_spec.rb
index abc1234..def5678 100644
--- a/spec/commands/version_spec.rb
+++ b/spec/commands/version_spec.rb
@@ -17,10 +17,8 @@
context "with version" do
it "outputs the version with build metadata" do
- date = Bundler::BuildMetadata.buil... | Update the version spec to handle when the specs start in the day before that example is run
|
diff --git a/spec/lib/tasks/dummy_app.rake b/spec/lib/tasks/dummy_app.rake
index abc1234..def5678 100644
--- a/spec/lib/tasks/dummy_app.rake
+++ b/spec/lib/tasks/dummy_app.rake
@@ -0,0 +1,26 @@+require "rspec/core/rake_task"
+
+namespace :engine_example do
+ desc "Generate a dummy app for testing and development"
+ t... | Add dummy app Rake tasks
|
diff --git a/spec/the_google/event_spec.rb b/spec/the_google/event_spec.rb
index abc1234..def5678 100644
--- a/spec/the_google/event_spec.rb
+++ b/spec/the_google/event_spec.rb
@@ -0,0 +1,18 @@+require_relative '../spec_helper'
+
+describe TheGoogle::Event do
+
+ describe "apply recurrence" do
+
+ let(:event) { The... | Write a test for the existing functionality.
|
diff --git a/spec/presenters/entry_presenter_spec.rb b/spec/presenters/entry_presenter_spec.rb
index abc1234..def5678 100644
--- a/spec/presenters/entry_presenter_spec.rb
+++ b/spec/presenters/entry_presenter_spec.rb
@@ -0,0 +1,38 @@+require 'spec_helper'
+
+RSpec.describe EntryPresenter do
+ describe '#summary' do
+ ... | Add unit tests for EntryPresenter
|
diff --git a/spec/reports_kit/report_builder_spec.rb b/spec/reports_kit/report_builder_spec.rb
index abc1234..def5678 100644
--- a/spec/reports_kit/report_builder_spec.rb
+++ b/spec/reports_kit/report_builder_spec.rb
@@ -22,13 +22,7 @@ end
it 'transforms the filter criteria' do
- expect(subject.properti... | Improve scope of ReportBuilder example's expectation
|
diff --git a/spec/requests/default_namespace_spec.rb b/spec/requests/default_namespace_spec.rb
index abc1234..def5678 100644
--- a/spec/requests/default_namespace_spec.rb
+++ b/spec/requests/default_namespace_spec.rb
@@ -3,6 +3,8 @@ RSpec.describe ActiveAdmin::Application, type: :request do
include Rails.applicati... | Add some resource route specs to default namespace
|
diff --git a/spec/unit/imap/backup/cli/utils_spec.rb b/spec/unit/imap/backup/cli/utils_spec.rb
index abc1234..def5678 100644
--- a/spec/unit/imap/backup/cli/utils_spec.rb
+++ b/spec/unit/imap/backup/cli/utils_spec.rb
@@ -0,0 +1,45 @@+describe Imap::Backup::CLI::Utils do
+ let(:list) do
+ instance_double(Imap::Backu... | Add tests for local utils
|
diff --git a/tww.gemspec b/tww.gemspec
index abc1234..def5678 100644
--- a/tww.gemspec
+++ b/tww.gemspec
@@ -17,7 +17,7 @@ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']
- spec.required_ruby_version = '>= 2.1.0'
+ spec.required_ruby_version = '>= 2.6.0'
... | Remove suporte a versões antigas do Ruby
|
diff --git a/app/models/project_decorator.rb b/app/models/project_decorator.rb
index abc1234..def5678 100644
--- a/app/models/project_decorator.rb
+++ b/app/models/project_decorator.rb
@@ -34,7 +34,11 @@ end
def status
- @_status
+ @_ci.status
+ end
+
+ def status_url
+ @_ci.url
end
private
@@... | Update project decorator to be able to retrieve the build url.
|
diff --git a/Casks/master-key.rb b/Casks/master-key.rb
index abc1234..def5678 100644
--- a/Casks/master-key.rb
+++ b/Casks/master-key.rb
@@ -0,0 +1,7 @@+class MasterKey < Cask
+ url 'http://macinmind.com/MasterKey.dmg'
+ homepage 'http://macinmind.com/?area=app&app=masterkey&pg=info'
+ version '5.6.2'
+ sha256 '3b9... | Add Master Key.app version 5.6.2
Created a new Cask for Master Key 5.6.2 following the naming
conventions, converting it to master-key.rb. Included a sha256, and
successfully passed both install and audit --download prior to
committing.
|
diff --git a/Casks/qt-creator.rb b/Casks/qt-creator.rb
index abc1234..def5678 100644
--- a/Casks/qt-creator.rb
+++ b/Casks/qt-creator.rb
@@ -1,6 +1,6 @@ cask :v1 => 'qt-creator' do
- version '3.3.0'
- sha256 '5e5491f6c82d3cb57b3ccc186b5b239ca52c2144034da92fc72ad7e8e6788045'
+ version '3.3.1'
+ sha256 '4e7f697e49330... | Upgrade QT Creator to v3.3.1
|
diff --git a/examples/rails_log/file_output.rb b/examples/rails_log/file_output.rb
index abc1234..def5678 100644
--- a/examples/rails_log/file_output.rb
+++ b/examples/rails_log/file_output.rb
@@ -6,7 +6,7 @@ @outgoing = CSV.open('/tmp/connection_logging.csv', 'w')
end
- def finalize
+ def after_run_log_path... | Use after_run hook in rails log example during output.
|
diff --git a/date-parser.gemspec b/date-parser.gemspec
index abc1234..def5678 100644
--- a/date-parser.gemspec
+++ b/date-parser.gemspec
@@ -7,8 +7,8 @@ Gem::Specification.new do |s|
s.name = "date-parser"
s.version = DateParser::VERSION
- s.authors = ["Rober Voß", "Niels Bennke"]
- s.email ... | Fix typo in name and email |
diff --git a/Casks/bit-slicer.rb b/Casks/bit-slicer.rb
index abc1234..def5678 100644
--- a/Casks/bit-slicer.rb
+++ b/Casks/bit-slicer.rb
@@ -1,12 +1,12 @@ cask :v1 => 'bit-slicer' do
- version '1.7.5'
- sha256 '1180666794b41ddba4895c6f90ba9e428f49c115f0eb260d76061c6c6aa9f1a9'
+ version '1.7.6'
+ sha256 '03e9125481b... | Update Bit Slicer to 1.7.6 |
diff --git a/Formula/modelgen.rb b/Formula/modelgen.rb
index abc1234..def5678 100644
--- a/Formula/modelgen.rb
+++ b/Formula/modelgen.rb
@@ -2,20 +2,16 @@ desc "Swift CLI to generate Models based on a JSON Schema and a template."
homepage "https://github.com/hebertialmeida/ModelGen"
url "https://github.com/hebe... | Update formula to build with SPM
|
diff --git a/byk.gemspec b/byk.gemspec
index abc1234..def5678 100644
--- a/byk.gemspec
+++ b/byk.gemspec
@@ -17,6 +17,8 @@ s.homepage = "https://github.com/topalovic/byk"
s.license = "MIT"
+ s.required_ruby_version = ">= 1.9.3"
+
s.extensions = ["ext/byk/extconf.rb"]
s.require_paths = ["lib"... | Set the required Ruby version in gemspec
|
diff --git a/DKDBManager.podspec b/DKDBManager.podspec
index abc1234..def5678 100644
--- a/DKDBManager.podspec
+++ b/DKDBManager.podspec
@@ -8,6 +8,8 @@ s.source = { :git => "https://github.com/kevindelord/DKDBManager.git", :tag => s.version.to_s }
s.platform = :ios
s.requires_arc = true
+... | Add deployment target on podspec
|
diff --git a/config/routes.rb b/config/routes.rb
index abc1234..def5678 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -2,7 +2,7 @@
mount RailsAdmin::Engine => '/admin', :as => 'rails_admin'
- devise_for :users, controllers: { registrations: 'registrations', omniauth_callbacks: 'users/omniauth_callbacks... | Change users routing to members
|
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,6 @@ Frontend::Application.routes.draw do
match "/homepage" => redirect("/")
+ match "/search" => "search#index", as: :search
# Crude way of handling the situation described a... | Move /search route so it actually kicks in
It was being trumped by the catch-all publication routes.
|
diff --git a/JBSSettings.podspec b/JBSSettings.podspec
index abc1234..def5678 100644
--- a/JBSSettings.podspec
+++ b/JBSSettings.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |s|
s.name = 'JBSSettings'
- s.version = '0.1.0'
+ s.version = '0.1.1'
s.summary = 'A settings object that is less anno... | Fix failing `pod spec lint`
|
diff --git a/MJExtension.podspec b/MJExtension.podspec
index abc1234..def5678 100644
--- a/MJExtension.podspec
+++ b/MJExtension.podspec
@@ -1,12 +1,12 @@ Pod::Spec.new do |s|
s.name = "MJExtension"
- s.version = "0.1.0"
+ s.version = "0.1.1"
s.summary = "The fastest and most convenient c... | Fix setValue:forKeyPath: nil value problem
Fix setValue:forKeyPath: nil value problem
|
diff --git a/railties/lib/rails/deprecation.rb b/railties/lib/rails/deprecation.rb
index abc1234..def5678 100644
--- a/railties/lib/rails/deprecation.rb
+++ b/railties/lib/rails/deprecation.rb
@@ -3,7 +3,8 @@ module Rails
class DeprecatedConstant < ActiveSupport::Deprecation::DeprecatedConstantProxy
def self.de... | Remove 'assigned but unused variable' warning
|
diff --git a/MenuItemKit.podspec b/MenuItemKit.podspec
index abc1234..def5678 100644
--- a/MenuItemKit.podspec
+++ b/MenuItemKit.podspec
@@ -5,7 +5,7 @@ s.author = "CHEN Xian’an <xianan.chen@gmail.com>"
s.homepage = "https://github.com/cxa/MenuItemKit"
s.license = 'MIT'
- s.source = { :git... | Add correct branch and source for source value in podspec
|
diff --git a/instrumental_agent.gemspec b/instrumental_agent.gemspec
index abc1234..def5678 100644
--- a/instrumental_agent.gemspec
+++ b/instrumental_agent.gemspec
@@ -16,6 +16,7 @@ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f... | Add pry for testing introspection.
|
diff --git a/app/controllers/servers_controller.rb b/app/controllers/servers_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/servers_controller.rb
+++ b/app/controllers/servers_controller.rb
@@ -1,6 +1,7 @@ class ServersController < ApplicationController
skip_before_filter :authenticate_user!
+ ... | Revert "disable caching on server page for now"
This reverts commit a0809d53fc3ec833c74f4fa423a60db0baa4a202.
|
diff --git a/app/models/neighborhood/crime_data.rb b/app/models/neighborhood/crime_data.rb
index abc1234..def5678 100644
--- a/app/models/neighborhood/crime_data.rb
+++ b/app/models/neighborhood/crime_data.rb
@@ -5,8 +5,8 @@
def yearly_counts
# TODO: Append the within_polygon to the where clause for the data s... | Use the new API for Crime Data
|
diff --git a/recipes/_fedora.rb b/recipes/_fedora.rb
index abc1234..def5678 100644
--- a/recipes/_fedora.rb
+++ b/recipes/_fedora.rb
@@ -2,7 +2,7 @@ # Cookbook Name:: build-essential
# Recipe:: fedora
#
-# Copyright 2008-2013, Chef Software, Inc.
+# Copyright 2008-2015, Chef Software, Inc.
#
# Licensed under the Ap... | Include patch on Fedora systems
We included this on RHEL. Without this the xml cookbook fails on Fedora |
diff --git a/recipes/default.rb b/recipes/default.rb
index abc1234..def5678 100644
--- a/recipes/default.rb
+++ b/recipes/default.rb
@@ -3,11 +3,11 @@ # Cookbook Name:: chef_testing_example
# Recipe:: default
#
-#
+
package 'apache2'
service 'apache2' do
- action [:start,:enable]
+ action [:start, :enable]
end... | Revert "Test CI pickup of failure"
It worked!
This reverts commit 0d8a0467fca6af2df7e76bcfb30f5ba13058f375.
|
diff --git a/spec/models/mcas_importer_spec.rb b/spec/models/mcas_importer_spec.rb
index abc1234..def5678 100644
--- a/spec/models/mcas_importer_spec.rb
+++ b/spec/models/mcas_importer_spec.rb
@@ -6,19 +6,31 @@ fixture_path = "#{Rails.root}/spec/fixtures/fake_mcas.csv"
let(:healey) { FactoryGirl.create(:healey... | Test MCAS import by school.
* #18.
|
diff --git a/lib/daniel/credential/resource.rb b/lib/daniel/credential/resource.rb
index abc1234..def5678 100644
--- a/lib/daniel/credential/resource.rb
+++ b/lib/daniel/credential/resource.rb
@@ -0,0 +1,83 @@+require 'daniel'
+require 'open-uri'
+require 'uri'
+
+module Daniel
+ # A set of classes providing automatic... | Move credential helper implementation to separate file.
The implementation of a credential helper is useful, but not a good base
class. Move it to a separate file in preparation for providing a useful
API in the original file.
Signed-off-by: brian m. carlson <738bdd359be778fee9f0fc4e2934ad72f436ceda@crustytoothpaste... |
diff --git a/TVMLKitchen.podspec b/TVMLKitchen.podspec
index abc1234..def5678 100644
--- a/TVMLKitchen.podspec
+++ b/TVMLKitchen.podspec
@@ -14,5 +14,5 @@ s.platform = :tvos, '9.0'
s.requires_arc = true
- s.source_files = 'source/**/*'
+ s.source_files = 'source/**/*', 'library/**/*'
end
| Add library to the podspec
|
diff --git a/config/routes.rb b/config/routes.rb
index abc1234..def5678 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,9 +1,10 @@ Rails.application.routes.draw do
resources :requests
-
+
get '/login', :to => 'sessions#new', :as => :login
get '/logout', :to => 'sessions#destroy', :as => :logou... | Add route to accept a user's address input.
|
diff --git a/lib/atlas/fever_details.rb b/lib/atlas/fever_details.rb
index abc1234..def5678 100644
--- a/lib/atlas/fever_details.rb
+++ b/lib/atlas/fever_details.rb
@@ -7,8 +7,8 @@ values do
attribute :type, Symbol
attribute :group, Symbol
- attribute :curve, Symbol, default: nil
- ... | Remove redundant defaults from FeverDetails
|
diff --git a/lib/aweplug/helpers/cdn.rb b/lib/aweplug/helpers/cdn.rb
index abc1234..def5678 100644
--- a/lib/aweplug/helpers/cdn.rb
+++ b/lib/aweplug/helpers/cdn.rb
@@ -9,18 +9,23 @@ # _tmp/cdn with new file name, and return that file name
class CDN
- CDN_TMP_DIR = Pathname.new("_tmp").join("cdn")
- ... | Add support for copying in a .htaccess file to the CDN dirs
|
diff --git a/lib/batsir/stage_worker.rb b/lib/batsir/stage_worker.rb
index abc1234..def5678 100644
--- a/lib/batsir/stage_worker.rb
+++ b/lib/batsir/stage_worker.rb
@@ -21,6 +21,7 @@ @operation_queue.each do |operation|
puts "Performing #{operation.class.to_s}"
message = operation.execute(messag... | Stop operation execution once an operation returns nil
|
diff --git a/capistrano-github-releases.gemspec b/capistrano-github-releases.gemspec
index abc1234..def5678 100644
--- a/capistrano-github-releases.gemspec
+++ b/capistrano-github-releases.gemspec
@@ -23,6 +23,6 @@ spec.add_dependency "highline", ">= 1.6.20"
spec.add_dependency "dotenv", ">= 0.11.0"
- spec.add_... | Update bundler requirement from ~> 1.5 to ~> 2.0
Updates the requirements on [bundler](https://github.com/bundler/bundler) to permit the latest version.
- [Release notes](https://github.com/bundler/bundler/releases)
- [Changelog](https://github.com/bundler/bundler/blob/master/CHANGELOG.md)
- [Commits](https://github.c... |
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index abc1234..def5678 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -30,7 +30,7 @@ config.mock_with :rspec
config.use_transactional_fixtures = true
- config.include Spree::TestingSupport::ControllerRequests
+ config.include Spree::TestingS... | Fix spec helper for Rspec 3.2
|
diff --git a/githubqa.rb b/githubqa.rb
index abc1234..def5678 100644
--- a/githubqa.rb
+++ b/githubqa.rb
@@ -0,0 +1,59 @@+#!/usr/bin/env ruby
+
+class SrcRepo
+ def initialize(root_repo_path, repo_name)
+ @root_repo_path = root_repo_path
+ @repo_name = repo_name
+ @repo_path = "#{root_repo_path}/#{repo_name}"
+ @sc... | Add QA script in Ruby.
|
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index abc1234..def5678 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -15,10 +15,10 @@ mocks_config.verify_partial_doubles = true
end
- # Lita calls `exit(false)` in a few places. If an RSpec example hits one of these calls and it wasn't
- ... | Fix line length RuboCop violation.
|
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index abc1234..def5678 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -4,6 +4,7 @@ require 'rspec/rails'
require 'rspec/autorun'
require 'factory_girl_rails'
+require File.expand_path("../dummy/spec/factories.rb", __FILE__)
Rails.backtrace_clea... | Load factories defined in dummy app
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.