diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/app/controllers/api/v1/dependencies_controller.rb b/app/controllers/api/v1/dependencies_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/v1/dependencies_controller.rb
+++ b/app/controllers/api/v1/dependencies_controller.rb
@@ -21,7 +21,7 @@ return render plain: "" if gem_names.empt... | Use symbol to match request format
request.format returns format string, ex: "application/json"
|
diff --git a/app/models/bibliographer/chapter.rb b/app/models/bibliographer/chapter.rb
index abc1234..def5678 100644
--- a/app/models/bibliographer/chapter.rb
+++ b/app/models/bibliographer/chapter.rb
@@ -1,6 +1,6 @@ class Bibliographer::Chapter < Bibliographer::Base
def to_s
- "#{names}, '#{title}' in |#{book_ti... | Add a comma before page numbers
|
diff --git a/app/models/world_record_observer.rb b/app/models/world_record_observer.rb
index abc1234..def5678 100644
--- a/app/models/world_record_observer.rb
+++ b/app/models/world_record_observer.rb
@@ -13,6 +13,6 @@
def delete_page_cache(page)
page_file = Rails.public_path.join page
- File.delete(page_fi... | Use FilUtis.rm_rf ti delete instead of checking if file exists
|
diff --git a/Casks/logitech-gaming-software.rb b/Casks/logitech-gaming-software.rb
index abc1234..def5678 100644
--- a/Casks/logitech-gaming-software.rb
+++ b/Casks/logitech-gaming-software.rb
@@ -1,13 +1,13 @@ cask 'logitech-gaming-software' do
- version '8.53.10'
- sha256 '60ce2aacf33ab523333328128ce96239e6e4bb90f6... | Upgrade Logitech Gaming Software to 8.60.313
|
diff --git a/conditional_counter_cache.gemspec b/conditional_counter_cache.gemspec
index abc1234..def5678 100644
--- a/conditional_counter_cache.gemspec
+++ b/conditional_counter_cache.gemspec
@@ -17,7 +17,7 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
- spec.... | Fix supported ActiveRecord version as `[4.0.0, 4.2.0)`
BelongsTo's implementation will be changed in v4.2.0
|
diff --git a/parsley_simple_form.gemspec b/parsley_simple_form.gemspec
index abc1234..def5678 100644
--- a/parsley_simple_form.gemspec
+++ b/parsley_simple_form.gemspec
@@ -6,10 +6,10 @@ Gem::Specification.new do |spec|
spec.name = "parsley_simple_form"
spec.version = ParsleySimpleForm::VERSION
- ... | Add authors for gemspect; Add simple_form dependency for gemspec
|
diff --git a/feedback.gemspec b/feedback.gemspec
index abc1234..def5678 100644
--- a/feedback.gemspec
+++ b/feedback.gemspec
@@ -7,11 +7,11 @@ Gem::Specification.new do |s|
s.name = "feedback"
s.version = Feedback::VERSION
- s.authors = ["TODO: Your name"]
- s.email = ["TODO: Your email"]
-... | Add MAS details to gemspec
|
diff --git a/app/controllers/alexa_interface_controller.rb b/app/controllers/alexa_interface_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/alexa_interface_controller.rb
+++ b/app/controllers/alexa_interface_controller.rb
@@ -2,6 +2,7 @@ def recommend
respond_to do |f|
f.json {
+ ... | Add p params to try to examine the object that alexa sends us
|
diff --git a/app/controllers/koi/application_controller.rb b/app/controllers/koi/application_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/koi/application_controller.rb
+++ b/app/controllers/koi/application_controller.rb
@@ -6,6 +6,6 @@ include ExportableController
include IsAdminController... | Fix capitalisation of Formbuilder helper
|
diff --git a/spec/quality/reek_source_spec.rb b/spec/quality/reek_source_spec.rb
index abc1234..def5678 100644
--- a/spec/quality/reek_source_spec.rb
+++ b/spec/quality/reek_source_spec.rb
@@ -2,6 +2,6 @@
describe 'Reek source code' do
it 'has no smells' do
- Dir['lib/**/*.rb'].should_not reek
+ expect(Dir['... | Update quality spec to new rspec syntax
|
diff --git a/lib/appnexusapi/resource.rb b/lib/appnexusapi/resource.rb
index abc1234..def5678 100644
--- a/lib/appnexusapi/resource.rb
+++ b/lib/appnexusapi/resource.rb
@@ -11,6 +11,7 @@ def update(route_params={}, body_params={})
resource = @service.update(id, route_params, body_params)
@json = resource.ra... | Return the Resource object instead of the updated JSON after updates
|
diff --git a/lib/rack/indicium/sentry.rb b/lib/rack/indicium/sentry.rb
index abc1234..def5678 100644
--- a/lib/rack/indicium/sentry.rb
+++ b/lib/rack/indicium/sentry.rb
@@ -14,13 +14,11 @@ end
def call(env)
- check_for_jwt(env)
+ check_for_jwt(env) if enabled?
@app.call(env)
... | Refactor: Check as early as possible if we should handle JWT
|
diff --git a/lib/we_the_people/simple.rb b/lib/we_the_people/simple.rb
index abc1234..def5678 100644
--- a/lib/we_the_people/simple.rb
+++ b/lib/we_the_people/simple.rb
@@ -0,0 +1,38 @@+module WeThePeople
+ class Simple
+ class <<self
+ def petitions(criteria = {})
+ get("petitions.json", criteria)
+ ... | Add WeThePeople::Simple for simply accessing resources
|
diff --git a/config/initializers/content_security_policy.rb b/config/initializers/content_security_policy.rb
index abc1234..def5678 100644
--- a/config/initializers/content_security_policy.rb
+++ b/config/initializers/content_security_policy.rb
@@ -8,14 +8,14 @@ p.font_src :self, :https, :data
p.img_src ... | Allow unsafe_eval in CSP for script_src
|
diff --git a/lib/awspec/type/iam_role.rb b/lib/awspec/type/iam_role.rb
index abc1234..def5678 100644
--- a/lib/awspec/type/iam_role.rb
+++ b/lib/awspec/type/iam_role.rb
@@ -7,7 +7,7 @@ end
def id
- @id ||= resource_via_client.role_id if resource_via_client
+ @id ||= resource_via_client.role_name if... | Change Awspec::Type::IamRole.id from role_id to role_name
Because Aws::IAM::Role initialize using role_name
|
diff --git a/lib/chrono_model/railtie.rb b/lib/chrono_model/railtie.rb
index abc1234..def5678 100644
--- a/lib/chrono_model/railtie.rb
+++ b/lib/chrono_model/railtie.rb
@@ -12,5 +12,30 @@
task 'db:schema:load' => 'db:chrono:create_schemas'
end
+
+ class SchemaDumper < ::ActiveRecord::SchemaDumper
+ ... | Implement an overly hacky schema dumper for temporal tables
|
diff --git a/lib/readingtime/core_ext.rb b/lib/readingtime/core_ext.rb
index abc1234..def5678 100644
--- a/lib/readingtime/core_ext.rb
+++ b/lib/readingtime/core_ext.rb
@@ -7,10 +7,10 @@ seconds = Readingtime.seconds(word_size)
case format_options
- when :basic
- Readingtime.format_seconds((m... | Indent when as much as case |
diff --git a/lib/patronus_fati/data_models/common_state.rb b/lib/patronus_fati/data_models/common_state.rb
index abc1234..def5678 100644
--- a/lib/patronus_fati/data_models/common_state.rb
+++ b/lib/patronus_fati/data_models/common_state.rb
@@ -14,7 +14,7 @@ end
def new?
- sync_status == SYNC_FLAG... | Fix new check to ignore child & attributes, we only care if it's been synced of not
|
diff --git a/lib/sync_checker/formats/publication_check.rb b/lib/sync_checker/formats/publication_check.rb
index abc1234..def5678 100644
--- a/lib/sync_checker/formats/publication_check.rb
+++ b/lib/sync_checker/formats/publication_check.rb
@@ -0,0 +1,65 @@+module SyncChecker
+ module Formats
+ class PublicationChe... | Add sync checker for Publications
|
diff --git a/lib/tasks/custom_tests.rake b/lib/tasks/custom_tests.rake
index abc1234..def5678 100644
--- a/lib/tasks/custom_tests.rake
+++ b/lib/tasks/custom_tests.rake
@@ -0,0 +1,15 @@+# Adding test/parsers directory to rake test.
+namespace :test do
+ desc "Test custom/tests/* code"
+ Rails::TestTask.new(custom: 't... | Update to support custom tests
|
diff --git a/Casks/firefoxdeveloperedition-ja.rb b/Casks/firefoxdeveloperedition-ja.rb
index abc1234..def5678 100644
--- a/Casks/firefoxdeveloperedition-ja.rb
+++ b/Casks/firefoxdeveloperedition-ja.rb
@@ -5,6 +5,7 @@ url "https://download.mozilla.org/?product=firefox-aurora-latest-l10n&os=osx&lang=ja-JP-mac"
homep... | Add tag stanza to Firefox Developer Edition JA
|
diff --git a/XCDYouTubeVideoPlayerViewController.podspec b/XCDYouTubeVideoPlayerViewController.podspec
index abc1234..def5678 100644
--- a/XCDYouTubeVideoPlayerViewController.podspec
+++ b/XCDYouTubeVideoPlayerViewController.podspec
@@ -1,13 +1,15 @@ Pod::Spec.new do |s|
- s.name = "XCDYouTubeVideoPlayerViewCo... | Add screenshot, social media URL and license file in podspec
|
diff --git a/lib/unveil/rails/railtie.rb b/lib/unveil/rails/railtie.rb
index abc1234..def5678 100644
--- a/lib/unveil/rails/railtie.rb
+++ b/lib/unveil/rails/railtie.rb
@@ -1,4 +1,4 @@-require 'unveil/rails/view_helpers'
+require 'unveil/rails/view_helper'
module Unveil
class Rails
| Fix require statement in Unveil::Rails::Railtie |
diff --git a/app.rb b/app.rb
index abc1234..def5678 100644
--- a/app.rb
+++ b/app.rb
@@ -2,6 +2,10 @@
configure do
set :wsrep_state_dir, '/etc/mysql/wsrep'
+end
+
+configure :development do
+ set :wsrep_state_dir, 'spec/data/3_node_cluster_synced'
end
get '/' do
| Configure a sane dev default
|
diff --git a/engines/debug/steps/text.rb b/engines/debug/steps/text.rb
index abc1234..def5678 100644
--- a/engines/debug/steps/text.rb
+++ b/engines/debug/steps/text.rb
@@ -41,7 +41,7 @@ end
def rewrite(what)
- replace(@env["rewrite_#{what}_matcher"], @env["rewrite_#{what}_to"] + @env["proxy_domain"])
+... | Use a faster version of rewrite.
|
diff --git a/gem_config.rb b/gem_config.rb
index abc1234..def5678 100644
--- a/gem_config.rb
+++ b/gem_config.rb
@@ -1,5 +1,3 @@-require 'English'
-
# gem_config.rb - This script is executed by the gem command
# to generate the RMagick Makefile. Ref: rmagick.gemspec
@@ -8,14 +6,19 @@ args = []
ARGV.each { |arg... | Replace popen with a simple call to system
|
diff --git a/app/controllers/registrant/domain_update_confirms_controller.rb b/app/controllers/registrant/domain_update_confirms_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/registrant/domain_update_confirms_controller.rb
+++ b/app/controllers/registrant/domain_update_confirms_controller.rb
@@ -5,1... | Comment out domain confirms for temp
|
diff --git a/HanlyKit.podspec b/HanlyKit.podspec
index abc1234..def5678 100644
--- a/HanlyKit.podspec
+++ b/HanlyKit.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |s|
s.name = "HanlyKit"
- s.version = "0.0.1"
+ s.version = "0.0.2"
s.summary = "A common Kit used on iOS."
s.de... | Update pod spec version 0.0.2
|
diff --git a/week-6/die-2/my_solution.rb b/week-6/die-2/my_solution.rb
index abc1234..def5678 100644
--- a/week-6/die-2/my_solution.rb
+++ b/week-6/die-2/my_solution.rb
@@ -20,20 +20,19 @@ # Initial Solution
class Die
- def initialize(sides)
- if not sides.empty?
- @sides = sides
+ attr_reader :labels, ... | Fix initial code to fit pseudocode, refactor code
|
diff --git a/api/app/views/spree/api/images/show.v1.rabl b/api/app/views/spree/api/images/show.v1.rabl
index abc1234..def5678 100644
--- a/api/app/views/spree/api/images/show.v1.rabl
+++ b/api/app/views/spree/api/images/show.v1.rabl
@@ -1,3 +1,4 @@ object @image
attributes *image_attributes
attributes :viewable_type,... | [api] Return relative attachment url for product images
|
diff --git a/app/controllers/api/customers_controller.rb b/app/controllers/api/customers_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/customers_controller.rb
+++ b/app/controllers/api/customers_controller.rb
@@ -11,11 +11,15 @@ @customer = Customer.find(params[:id])
authorize! :upd... | Fix credit cards strong params
|
diff --git a/app/controllers/api/v1/events_controller.rb b/app/controllers/api/v1/events_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/v1/events_controller.rb
+++ b/app/controllers/api/v1/events_controller.rb
@@ -13,7 +13,8 @@ end
def create
- event = Event.create(event_par... | Add cause id to event params in event controller
|
diff --git a/lib/gembeat.rb b/lib/gembeat.rb
index abc1234..def5678 100644
--- a/lib/gembeat.rb
+++ b/lib/gembeat.rb
@@ -9,13 +9,21 @@
def self.setup!
config = YAML.load_file("#{Rails.root.to_s}/config/gembeat.yml")
- self.token = config["token"]
- self.pulse_url = config["pulse_url"]
+
+ if config["t... | Add message if uninitialized config
|
diff --git a/Formula/percona-toolkit.rb b/Formula/percona-toolkit.rb
index abc1234..def5678 100644
--- a/Formula/percona-toolkit.rb
+++ b/Formula/percona-toolkit.rb
@@ -3,7 +3,7 @@ class PerconaToolkit < Formula
homepage 'http://www.percona.com/software/percona-toolkit/'
url 'http://www.percona.com/redir/download... | percona: Use SHA1 instead of MD5
Signed-off-by: Adam Vandenberg <34c2b6407fd5a10249a15d699d40f9ed1782e98c@gmail.com>
|
diff --git a/lib/rubella.rb b/lib/rubella.rb
index abc1234..def5678 100644
--- a/lib/rubella.rb
+++ b/lib/rubella.rb
@@ -7,21 +7,33 @@
def initialize(input_name, output_name, weighting_name)
+ # set the input type
@input = case input_name
+ # add the option to set input later
+ when ni... | Make it almost possible to decide input, output and weighting later
It is not possible to choose something differen, if it's nil. But you can
choose nil.
|
diff --git a/config/initializers/_patch-GHSA-65cv-r6x7-79hv.rb b/config/initializers/_patch-GHSA-65cv-r6x7-79hv.rb
index abc1234..def5678 100644
--- a/config/initializers/_patch-GHSA-65cv-r6x7-79hv.rb
+++ b/config/initializers/_patch-GHSA-65cv-r6x7-79hv.rb
@@ -0,0 +1,27 @@+# Patch from https://github.com/net1957/ProxyC... | Patch for GHSA-65cv-r6x7-79hv in Rails 5.1
|
diff --git a/lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb b/lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb
index abc1234..def5678 100644
--- a/lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb
++... | Fix warning in Rails 4: adopt Rails 5 behaviour
```
DEPRECATION WARNING: `#timestamps` was called without specifying an
option for `null`. In Rails 5, this behavior will change to
`null: false`. You should manually specify `null: true` to prevent the
behavior of your existing migrations from changing.
```
|
diff --git a/hutch.gemspec b/hutch.gemspec
index abc1234..def5678 100644
--- a/hutch.gemspec
+++ b/hutch.gemspec
@@ -6,7 +6,7 @@ gem.add_runtime_dependency 'march_hare', '>= 3.0.0'
else
gem.platform = Gem::Platform::RUBY
- gem.add_runtime_dependency 'bunny', '>= 2.7.2'
+ gem.add_runtime_dependency 'bu... | Bump Bunny to ~> 2.9.0; require Ruby 2.2+
Which in turn will depend on amp-protocol 2.3.x. Earlier Bunny versions won't work
with that amp-protocol release series. Note that it also bumps minimum supported
Ruby version to 2.2, which over 3 years old.
See ruby-amqp/bunny#538 and Bunny change log for details. |
diff --git a/cookbooks/networking/libraries/ipaddresses.rb b/cookbooks/networking/libraries/ipaddresses.rb
index abc1234..def5678 100644
--- a/cookbooks/networking/libraries/ipaddresses.rb
+++ b/cookbooks/networking/libraries/ipaddresses.rb
@@ -5,6 +5,8 @@
interfaces(options).each do |interface|
addres... | Handle interfaces with no address
|
diff --git a/November.podspec b/November.podspec
index abc1234..def5678 100644
--- a/November.podspec
+++ b/November.podspec
@@ -16,7 +16,8 @@ spec.author = "Manuel García-Estañ"
spec.social_media_url = "http://twitter.com/ManueGE"
- spec.platform = :ios, "8.0"
+ spec.ios.deployment_target = '8.0'
+... | Add macOS as a target
|
diff --git a/db/migrate/20130215185809_fix_condition_on_rule_occurrences_set_latest.rb b/db/migrate/20130215185809_fix_condition_on_rule_occurrences_set_latest.rb
index abc1234..def5678 100644
--- a/db/migrate/20130215185809_fix_condition_on_rule_occurrences_set_latest.rb
+++ b/db/migrate/20130215185809_fix_condition_o... | Fix the condition portion on the set latest rule.
|
diff --git a/config/initializers/core_ext/active_record.rb b/config/initializers/core_ext/active_record.rb
index abc1234..def5678 100644
--- a/config/initializers/core_ext/active_record.rb
+++ b/config/initializers/core_ext/active_record.rb
@@ -0,0 +1,25 @@+module Elasticsearch
+ module Model
+ module Adapter
+ ... | Patch elasticsearch-model for Rails 5.
|
diff --git a/cookbooks/bcpc-hadoop/recipes/oozie_client.rb b/cookbooks/bcpc-hadoop/recipes/oozie_client.rb
index abc1234..def5678 100644
--- a/cookbooks/bcpc-hadoop/recipes/oozie_client.rb
+++ b/cookbooks/bcpc-hadoop/recipes/oozie_client.rb
@@ -13,7 +13,7 @@ hdp_select('oozie-client', node[:bcpc][:hadoop][:distribution... | Add the correct oozie prefix to the VIP URL
|
diff --git a/spec/functional/coffeeshop_functional_spec.rb b/spec/functional/coffeeshop_functional_spec.rb
index abc1234..def5678 100644
--- a/spec/functional/coffeeshop_functional_spec.rb
+++ b/spec/functional/coffeeshop_functional_spec.rb
@@ -0,0 +1,34 @@+require 'spec_helper'
+
+describe 'Coffeeshop functional spec'... | Add functional test for coffeeshops
|
diff --git a/Formula/ack.rb b/Formula/ack.rb
index abc1234..def5678 100644
--- a/Formula/ack.rb
+++ b/Formula/ack.rb
@@ -5,4 +5,8 @@ @url="http://ack.googlecode.com/svn/tags/#{@version}/ack"
@md5='8009a13ab0fc66047bea0ea2ad89419c'
@homepage='http://betterthangrep.com/'
+
+ def download_strategy
+ HttpDown... | Support building from Subversion repositories
Adds a new DownloadStrategy that checks files out from Subversion to the
cache, then exports over to the temp folder for the build.
To use checkout with the svn:// protocol or reimplement download_strategy and
return SubversionDownloadStrategy.
|
diff --git a/app/controllers/destinations_import_model.rb b/app/controllers/destinations_import_model.rb
index abc1234..def5678 100644
--- a/app/controllers/destinations_import_model.rb
+++ b/app/controllers/destinations_import_model.rb
@@ -24,6 +24,10 @@ attr_accessor :replace, :file
validates :file, presence: tr... | Fix 'replace' mode on import
|
diff --git a/app/helpers/cross_domain_analytics_helper.rb b/app/helpers/cross_domain_analytics_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/cross_domain_analytics_helper.rb
+++ b/app/helpers/cross_domain_analytics_helper.rb
@@ -3,7 +3,7 @@ {
'register-to-vote' => 'UA-23066786-5',
'acceler... | Remove link to pivotal story
|
diff --git a/config/routes.rb b/config/routes.rb
index abc1234..def5678 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -48,4 +48,9 @@ print.output
end
+ get '/' do
+ content_type 'text/html'
+ erb :lanes_root_view
+ end
+
end
| Add route to mount view
|
diff --git a/config/routes.rb b/config/routes.rb
index abc1234..def5678 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -16,7 +16,7 @@ # Admin routes
namespace :products, :path => '' do
namespace :admin, :path => Refinery::Core.backend_route do
- scope :path => Refinery::Products.products_path do... | Change admin scope path for /shop
|
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,8 @@ require 'sidekiq/web'
require 'sidekiq-scheduler/web'
+
+Sidekiq::Web.instance_variable_get(:@middleware).delete_if { |klass,_,_| klass == Rack::Protection }
+Sidekiq::Web.set :p... | Allow sidekiq web assets to load under rack-protection |
diff --git a/config/routes.rb b/config/routes.rb
index abc1234..def5678 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,3 +1,7 @@ ActionController::Routing::Routes.draw do |map|
- map.open_window 'window_rails/open_window', :controller => :window_rails, :action => :open_window
+ if(Rails.version.split('.')... | Update routing for rails 3
|
diff --git a/spec/dockly/tar_diff_spec.rb b/spec/dockly/tar_diff_spec.rb
index abc1234..def5678 100644
--- a/spec/dockly/tar_diff_spec.rb
+++ b/spec/dockly/tar_diff_spec.rb
@@ -0,0 +1,85 @@+require 'spec_helper'
+
+describe Dockly::TarDiff do
+ let(:base) { StringIO.new }
+ let(:input) { StringIO.new }
+ let(:output... | Add spec for tar diff
|
diff --git a/schema.gemspec b/schema.gemspec
index abc1234..def5678 100644
--- a/schema.gemspec
+++ b/schema.gemspec
@@ -2,7 +2,7 @@ Gem::Specification.new do |s|
s.name = 'evt-schema'
s.summary = "Primitives for schema and data structure"
- s.version = '2.2.4.0'
+ s.version = '2.2.4.1'
s.description = ' '
... | Package version is increased from 2.2.4.0 to 2.2.4.1
|
diff --git a/app/models/hackbot/interactions/help.rb b/app/models/hackbot/interactions/help.rb
index abc1234..def5678 100644
--- a/app/models/hackbot/interactions/help.rb
+++ b/app/models/hackbot/interactions/help.rb
@@ -1,10 +1,7 @@ module Hackbot
module Interactions
- class Help < Hackbot::Interactions::Channel... | Convert Hackbot::Interactions::Help to a Command
|
diff --git a/spec/language/string_spec.rb b/spec/language/string_spec.rb
index abc1234..def5678 100644
--- a/spec/language/string_spec.rb
+++ b/spec/language/string_spec.rb
@@ -0,0 +1,15 @@+# -*- encoding: us-ascii -*-
+#
+with_feature :encoding do
+ describe "Ruby String interpolation" do
+ it "creates a String wh... | Add Rubinius specific spec for string building
This ensures that we cover the behavior of string interpolation where
the string doesn't have an encoding yet. This is possible on Rubinius,
we only setup the encoding then in the method retrieving the encoding
from the string.
This is an extraction from issue #2222 and ... |
diff --git a/spec/network/network_spec.rb b/spec/network/network_spec.rb
index abc1234..def5678 100644
--- a/spec/network/network_spec.rb
+++ b/spec/network/network_spec.rb
@@ -1,6 +1,7 @@ require_relative '../tests/netbase/netbase_spec.rb'
require_relative '../tests/dhcp/dhcp_spec.rb'
-require_relative '../tests/l3/l... | Disable L3 tests on network
Bug #43
Signed-off-by: Emilien Macchi <d605a501dec15c980af71d9dfebf4b595ab6da1f@enovance.com>
|
diff --git a/has_configuration.gemspec b/has_configuration.gemspec
index abc1234..def5678 100644
--- a/has_configuration.gemspec
+++ b/has_configuration.gemspec
@@ -30,6 +30,6 @@ spec.add_development_dependency('coveralls')
spec.add_development_dependency('rake')
spec.add_development_dependency('rspec')
- spec... | Remove version pin from Rubocop because Ruby 2.2 is not supported anymore
|
diff --git a/db/schema.rb b/db/schema.rb
index abc1234..def5678 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -0,0 +1,38 @@+# encoding: UTF-8
+# This file is auto-generated from the current state of the database. Instead
+# of editing this file, please use the migrations feature of Active Record to
+# incrementally m... | Migrate vendor, activities, and schedules
|
diff --git a/app/validators/shape_validator.rb b/app/validators/shape_validator.rb
index abc1234..def5678 100644
--- a/app/validators/shape_validator.rb
+++ b/app/validators/shape_validator.rb
@@ -13,10 +13,14 @@ # @param [Charta::Geometry] shape
# @return [Boolean]
def valid?(shape)
- res = ActiveRe... | Make ShapeValidator Rails 5.0 compatible
|
diff --git a/spree_static_content.gemspec b/spree_static_content.gemspec
index abc1234..def5678 100644
--- a/spree_static_content.gemspec
+++ b/spree_static_content.gemspec
@@ -15,7 +15,7 @@ s.require_path = 'lib'
s.requirements << 'none'
- s.add_dependency 'spree_core', '~> 1.3.0'
+ s.add_dependency 'spree_co... | Update spree version to 1.3.0.rc1 |
diff --git a/app/controllers/api/items_controller.rb b/app/controllers/api/items_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/items_controller.rb
+++ b/app/controllers/api/items_controller.rb
@@ -1,15 +1,10 @@ class Api::ItemsController < ApiController
def index
item_type_id = params[:i... | Change API Item Query To Use Multiple Criteria
|
diff --git a/app/controllers/trackings_controller.rb b/app/controllers/trackings_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/trackings_controller.rb
+++ b/app/controllers/trackings_controller.rb
@@ -12,25 +12,42 @@ # GET /trackings/1
# GET /trackings/1.json
def show
- @tracking = Tracki... | Add show, create and update functionality for the Tracking controller
|
diff --git a/schema.gemspec b/schema.gemspec
index abc1234..def5678 100644
--- a/schema.gemspec
+++ b/schema.gemspec
@@ -2,7 +2,7 @@ Gem::Specification.new do |s|
s.name = 'evt-schema'
s.summary = "Primitives for schema and data structure"
- s.version = '2.3.1.3'
+ s.version = '2.3.1.4'
s.description = ' '
... | Package version is increased from 2.3.1.3 to 2.3.1.4
|
diff --git a/app/presenters/interaction_presenter.rb b/app/presenters/interaction_presenter.rb
index abc1234..def5678 100644
--- a/app/presenters/interaction_presenter.rb
+++ b/app/presenters/interaction_presenter.rb
@@ -19,7 +19,9 @@ {
id: interaction.id,
gene_name: interaction.gene.name,
+ entr... | Add chembl_id and entrez_id to interaction API endpoint
|
diff --git a/fizzbuzz/fizzbuzz.rb b/fizzbuzz/fizzbuzz.rb
index abc1234..def5678 100644
--- a/fizzbuzz/fizzbuzz.rb
+++ b/fizzbuzz/fizzbuzz.rb
@@ -1,11 +1,14 @@ module FizzBuzz
def self.play
+
+ fizz = "Fizz"
+ buzz = "Buzz"
played_array = (1..100).map do |i|
played_i = ""
- played_i = "... | Put 'Fizz' and 'Buzz' strings into ever so slightly more readable variables
|
diff --git a/app/services/email_retrieval_service.rb b/app/services/email_retrieval_service.rb
index abc1234..def5678 100644
--- a/app/services/email_retrieval_service.rb
+++ b/app/services/email_retrieval_service.rb
@@ -5,13 +5,13 @@ end
def retrieve_emails(partner)
- @emails = @gmail.inbox.emails(from: part... | Add many ways to clean up email text
|
diff --git a/seeder.gemspec b/seeder.gemspec
index abc1234..def5678 100644
--- a/seeder.gemspec
+++ b/seeder.gemspec
@@ -18,5 +18,6 @@ s.add_dependency('activerecord', '>= 3.2', '< 5.0')
s.add_development_dependency('mysql2', '~> 0.3.10')
- s.add_development_dependency('rspec-rails', '~> 3.0')
+ s.add_developm... | Switch from rspec-rails to rspec
This commit drops the development dependency on `rspec-rails`. The specs
for `seeder` don't use any of the extra functionality beyond what is
provided by `rspec`.
|
diff --git a/core/regexp/case_compare_spec.rb b/core/regexp/case_compare_spec.rb
index abc1234..def5678 100644
--- a/core/regexp/case_compare_spec.rb
+++ b/core/regexp/case_compare_spec.rb
@@ -16,4 +16,10 @@ it "returns false if it does not match a Symbol" do
(/a/ === :b).should be_false
end
+
+ # mirroring ... | Cover another regexp case that was failing in Opal
|
diff --git a/lib/sockjs/adapter.rb b/lib/sockjs/adapter.rb
index abc1234..def5678 100644
--- a/lib/sockjs/adapter.rb
+++ b/lib/sockjs/adapter.rb
@@ -17,7 +17,7 @@ end
def self.inherited(subclass)
- @subclasses << subclass
+ Adapter.subclasses << subclass
subclass.filters = Array.new
end... | Add all subclasses to SockJS::Adapter.subclasses, not to ASubclass.subclasses.
|
diff --git a/bat/spec/spec_helper.rb b/bat/spec/spec_helper.rb
index abc1234..def5678 100644
--- a/bat/spec/spec_helper.rb
+++ b/bat/spec/spec_helper.rb
@@ -5,7 +5,7 @@ SPEC_ROOT = File.expand_path(File.dirname(__FILE__))
RSpec.configure do |config|
- unless ENV['BOSH_OS_BATS']
+ unless ENV['BOSH_OS_BATS'] =~ (/^(... | Allow to implicitly disable OS bats by setting BOSH_OS_BATS to false
Signed-off-by: Edward Zhang <acecdb50c47454737d0b9a0b29c19169fafbd4f7@cn.ibm.com>
|
diff --git a/lib/facter/gonzo.rb b/lib/facter/gonzo.rb
index abc1234..def5678 100644
--- a/lib/facter/gonzo.rb
+++ b/lib/facter/gonzo.rb
@@ -26,4 +26,13 @@ open(input) { |f| f.each_line.detect { |line| /^release=.+$/i.match(line) } }.match(/\w+=(.+)/)[1]
end
end
+end
+
+Facter.add(:gonzo_available_release... | Add fact to list available releases on master
|
diff --git a/lib/tasks/ladder.thor b/lib/tasks/ladder.thor
index abc1234..def5678 100644
--- a/lib/tasks/ladder.thor
+++ b/lib/tasks/ladder.thor
@@ -0,0 +1,32 @@+# require defined gems
+Bundler.require(:default)
+
+class Ladder < Thor
+
+ desc "destroy URL", "Delete and (re)initialize a Ladder instance"
+ def destroy... | Add command to delete/init a Ladder instance
|
diff --git a/lib/koala/config.rb b/lib/koala/config.rb
index abc1234..def5678 100644
--- a/lib/koala/config.rb
+++ b/lib/koala/config.rb
@@ -20,11 +20,12 @@ end
def method_missing(method, *args)
- case method
- when /(.+)=$/
- self[$1] = args.pop
- else
- self[method.to_s... | Add support for ruby 1.8 with 'old' style matching.
|
diff --git a/lib/org-converge.rb b/lib/org-converge.rb
index abc1234..def5678 100644
--- a/lib/org-converge.rb
+++ b/lib/org-converge.rb
@@ -24,21 +24,3 @@ end
end
end
-
-module StringWithColors
- def red; colorize("\e[0m\e[31m"); end
- def green; colorize("\e[0m\e[32m"); end
- def yell... | Remove old coloring code since we use tco gem now
|
diff --git a/lib/tasks/data.rake b/lib/tasks/data.rake
index abc1234..def5678 100644
--- a/lib/tasks/data.rake
+++ b/lib/tasks/data.rake
@@ -1,5 +1,27 @@ namespace :data do
namespace :migrate do
+ desc "migrate deprecated problems"
+ task :deprecated_problems do
+ require 'bundler'
+ Bundler.require
... | Add task to migrate deprecated ruby exercise
|
diff --git a/clipp/tests/tc_regression.rb b/clipp/tests/tc_regression.rb
index abc1234..def5678 100644
--- a/clipp/tests/tc_regression.rb
+++ b/clipp/tests/tc_regression.rb
@@ -26,7 +26,7 @@ clipp(
input: "echo:\"GET /foo\"",
default_site_config: <<-EOS
- Rule REQUEST_METHOD "@rx GET" id:1 phas... | clipp: Fix one test to use new rule syntax.
|
diff --git a/config/initializers/cookies_serializer.rb b/config/initializers/cookies_serializer.rb
index abc1234..def5678 100644
--- a/config/initializers/cookies_serializer.rb
+++ b/config/initializers/cookies_serializer.rb
@@ -2,4 +2,4 @@
# Specify a serializer for the signed and encrypted cookie jars.
# Valid opt... | Switch to the :json cookie serializer
This application doesn't use cookies from Rails as far as I'm aware,
so switch the configuration to the :json serializer, as this avoids
brakeman picking up security issues with the :marshal serializer.
|
diff --git a/db/migrate/20130804154805_setup_hstore.rb b/db/migrate/20130804154805_setup_hstore.rb
index abc1234..def5678 100644
--- a/db/migrate/20130804154805_setup_hstore.rb
+++ b/db/migrate/20130804154805_setup_hstore.rb
@@ -1,9 +1,11 @@ class SetupHstore < ActiveRecord::Migration
def self.up
- execute "CREAT... | Remove hstore create - has to be manually run.
|
diff --git a/lib/idealista/property.rb b/lib/idealista/property.rb
index abc1234..def5678 100644
--- a/lib/idealista/property.rb
+++ b/lib/idealista/property.rb
@@ -2,7 +2,7 @@ class Property
# TODO all idealista attributes or only some? allow configure?
# TODO Location class?
- attr_reader :price, :addr... | Add @url to Property class
|
diff --git a/lib/jsonlint/rake_task.rb b/lib/jsonlint/rake_task.rb
index abc1234..def5678 100644
--- a/lib/jsonlint/rake_task.rb
+++ b/lib/jsonlint/rake_task.rb
@@ -34,12 +34,10 @@
files_to_check_raw = Rake::FileList.new(paths)
files_to_exclude = Rake::FileList.new(exclude_paths)
- files_to_ch... | Use instead of and remove extra puts
|
diff --git a/spec/integration/snmpjr_walk_spec.rb b/spec/integration/snmpjr_walk_spec.rb
index abc1234..def5678 100644
--- a/spec/integration/snmpjr_walk_spec.rb
+++ b/spec/integration/snmpjr_walk_spec.rb
@@ -11,14 +11,13 @@ it 'can perform a simple synchronous walk request on an snmp agent' do
response ... | Modify the integration spec to match the snmp4j behaviour
|
diff --git a/spec/models/rejection_reason_spec.rb b/spec/models/rejection_reason_spec.rb
index abc1234..def5678 100644
--- a/spec/models/rejection_reason_spec.rb
+++ b/spec/models/rejection_reason_spec.rb
@@ -1,7 +1,6 @@-require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
+require 'rails_helper'
des... | Fix require of Rails spec helper
There's no need to do a relative require as the load paths are setup correctly.
|
diff --git a/Formula/gdb.rb b/Formula/gdb.rb
index abc1234..def5678 100644
--- a/Formula/gdb.rb
+++ b/Formula/gdb.rb
@@ -1,7 +1,7 @@ require 'formula'
class Gdb < Formula
- url 'http://ftp.gnu.org/gnu/gdb/gdb-7.3.1.tar.bz2'
+ url 'http://ftpmirror.gnu.org/gdb/gdb-7.3.1.tar.bz2'
homepage 'http://www.gnu.org/soft... | Use ftpmirror.gnu.org for GNU urls
Signed-off-by: Jack Nagel <43386ce32af96f5c56f2a88e458cb94cebee3751@gmail.com>
|
diff --git a/lib/mongoid/contextual.rb b/lib/mongoid/contextual.rb
index abc1234..def5678 100644
--- a/lib/mongoid/contextual.rb
+++ b/lib/mongoid/contextual.rb
@@ -8,15 +8,15 @@
# The aggregate operations provided in the aggregate module get delegated
# through to the context from the criteria.
- delegat... | Remove warning: `*' interpreted as argument prefix
|
diff --git a/lib/rmodbus/exceptions.rb b/lib/rmodbus/exceptions.rb
index abc1234..def5678 100644
--- a/lib/rmodbus/exceptions.rb
+++ b/lib/rmodbus/exceptions.rb
@@ -15,7 +15,7 @@
module Errors
- class ModBusException < Exception
+ class ModBusException < StandardError
end
class IllegalFun... | Add bugfix from release 0.2.2
|
diff --git a/lib/spree/adyen/engine.rb b/lib/spree/adyen/engine.rb
index abc1234..def5678 100644
--- a/lib/spree/adyen/engine.rb
+++ b/lib/spree/adyen/engine.rb
@@ -18,6 +18,7 @@
initializer "spree.solidus-adyen.payment_methods", after: "spree.register.payment_methods" do |app|
app.config.spree.payment... | Make Adyen Credit Card payment method available
|
diff --git a/lib/standard_hierarchy.rb b/lib/standard_hierarchy.rb
index abc1234..def5678 100644
--- a/lib/standard_hierarchy.rb
+++ b/lib/standard_hierarchy.rb
@@ -18,6 +18,10 @@
def self.find_ancestors(standards, standard, i)
+ # If it's a root standard, it doesn't have ancestors
+ if standard["depth"] ==... | Fix problem with standards with depth 0 having ancestors
|
diff --git a/lib/weekly_commits/cli.rb b/lib/weekly_commits/cli.rb
index abc1234..def5678 100644
--- a/lib/weekly_commits/cli.rb
+++ b/lib/weekly_commits/cli.rb
@@ -21,9 +21,13 @@ 5.times do |day_count|
date = beg_week + day_count.days
week_title = date.strftime('%a, %e %b %Y')
- git_date... | Use %Y for git date format
|
diff --git a/spec/integration/heartbeat_message_publishing_spec.rb b/spec/integration/heartbeat_message_publishing_spec.rb
index abc1234..def5678 100644
--- a/spec/integration/heartbeat_message_publishing_spec.rb
+++ b/spec/integration/heartbeat_message_publishing_spec.rb
@@ -1,17 +1,8 @@ require "rails_helper"
+requir... | Make heartbeat integration tests invoke rake task.
To ensure they are a full end-to-end test
|
diff --git a/spec/support/shared_examples/multithreaded_adapter.rb b/spec/support/shared_examples/multithreaded_adapter.rb
index abc1234..def5678 100644
--- a/spec/support/shared_examples/multithreaded_adapter.rb
+++ b/spec/support/shared_examples/multithreaded_adapter.rb
@@ -22,4 +22,21 @@ thread.join
one.sho... | Add an extra spec to make sure multiple Workers can run simultaneously on multithreaded adapters.
|
diff --git a/google_civic_info.gemspec b/google_civic_info.gemspec
index abc1234..def5678 100644
--- a/google_civic_info.gemspec
+++ b/google_civic_info.gemspec
@@ -18,6 +18,7 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
+ spec.add_dependency "httparty"
spe... | Add explicit dependency on httparty |
diff --git a/vendor/refinerycms/pages/spec/models/page_spec.rb b/vendor/refinerycms/pages/spec/models/page_spec.rb
index abc1234..def5678 100644
--- a/vendor/refinerycms/pages/spec/models/page_spec.rb
+++ b/vendor/refinerycms/pages/spec/models/page_spec.rb
@@ -35,8 +35,12 @@ reset_page({:menu_match => '^/RSpec is... | Make the destroy test a little more interesting
|
diff --git a/test/helper.rb b/test/helper.rb
index abc1234..def5678 100644
--- a/test/helper.rb
+++ b/test/helper.rb
@@ -1,7 +1,9 @@ unless ENV['CI']
begin
require 'simplecov'
- SimpleCov.start
+ SimpleCov.start do
+ add_filter 'test'
+ end
rescue LoadError
end
end
| Exclude tests from code coverage report
|
diff --git a/light_show/combination.rb b/light_show/combination.rb
index abc1234..def5678 100644
--- a/light_show/combination.rb
+++ b/light_show/combination.rb
@@ -14,36 +14,50 @@ @animations << animation
end
- # Iterate over the combined animations, lazily evaluating each frame.
+ # Frames for the ... | Use the new enumerable approach for Combination
|
diff --git a/lib/clockwork/database_events/event.rb b/lib/clockwork/database_events/event.rb
index abc1234..def5678 100644
--- a/lib/clockwork/database_events/event.rb
+++ b/lib/clockwork/database_events/event.rb
@@ -13,7 +13,7 @@ end
def name
- job.name
+ (job.respond_to?(:name) && job.nam... | Make model name attribute optional
* if model has no name attribute it will default to
"[ModelClassName]:[id]
|
diff --git a/lib/scss_lint/linter/property_units.rb b/lib/scss_lint/linter/property_units.rb
index abc1234..def5678 100644
--- a/lib/scss_lint/linter/property_units.rb
+++ b/lib/scss_lint/linter/property_units.rb
@@ -4,7 +4,6 @@ include LinterRegistry
def visit_prop(node)
- @node = node
@global_a... | Remove unnecessary instance variable for node
While not declaring the `node` as a parameter for these helpers can make
things seem cleaner, it reduces the locality of the value's declaration
to its use.
|
diff --git a/lib/stash_datacite/merritt_packager.rb b/lib/stash_datacite/merritt_packager.rb
index abc1234..def5678 100644
--- a/lib/stash_datacite/merritt_packager.rb
+++ b/lib/stash_datacite/merritt_packager.rb
@@ -17,7 +17,7 @@ target_url = tenant.landing_url(path)
folder = StashEngine::Resource.uploads... | Add error/failure mail support to PackageJob
|
diff --git a/libimagruby/test/test_store_id_load.rb b/libimagruby/test/test_store_id_load.rb
index abc1234..def5678 100644
--- a/libimagruby/test/test_store_id_load.rb
+++ b/libimagruby/test/test_store_id_load.rb
@@ -2,7 +2,7 @@
require 'fiddle'
-lib = Fiddle::dlopen './target/debug/libimag_ruby.so'
+lib = Fiddle::... | Fix test script for new location of build articfact
|
diff --git a/graphql-batch.gemspec b/graphql-batch.gemspec
index abc1234..def5678 100644
--- a/graphql-batch.gemspec
+++ b/graphql-batch.gemspec
@@ -7,7 +7,7 @@ spec.name = "graphql-batch"
spec.version = GraphQL::Batch::VERSION
spec.authors = ["Dylan Thacker-Smith"]
- spec.email = ... | Use gems@shopify.com email address in gemspec
|
diff --git a/test/controllers/backend/campaigns_controller_test.rb b/test/controllers/backend/campaigns_controller_test.rb
index abc1234..def5678 100644
--- a/test/controllers/backend/campaigns_controller_test.rb
+++ b/test/controllers/backend/campaigns_controller_test.rb
@@ -2,6 +2,11 @@
module Backend
class Camp... | Fix campaign open action test
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.