diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
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
@@ -1,7 +1,7 @@ require 'yaml'
require 'rspec'
-CASSANDRA_VERSION = ENV['CASSANDRA_VERSION'] || '1.0' unless defined?(CASSANDRA_VERSION)
+CASSANDRA_VERSION = ENV['CASSANDRA_VERSION... | Raise the connect_timeout and increase the default tested version to 1.1
|
diff --git a/solidus_page_objects.gemspec b/solidus_page_objects.gemspec
index abc1234..def5678 100644
--- a/solidus_page_objects.gemspec
+++ b/solidus_page_objects.gemspec
@@ -16,7 +16,7 @@ s.files = Dir["{app,config,db,lib}/**/*", 'LICENSE', 'Rakefile', 'README.md']
s.test_files = Dir['test/**/*']
- s.add_dep... | Update gemspec with latest gem versions
|
diff --git a/lib/everything/add_pieces_to_piece_refinement.rb b/lib/everything/add_pieces_to_piece_refinement.rb
index abc1234..def5678 100644
--- a/lib/everything/add_pieces_to_piece_refinement.rb
+++ b/lib/everything/add_pieces_to_piece_refinement.rb
@@ -1,3 +1,4 @@+# TODO: Delete this class.
module Everything
mo... | Add todo for removing a file
|
diff --git a/web/lib/soapbox_pb.rb b/web/lib/soapbox_pb.rb
index abc1234..def5678 100644
--- a/web/lib/soapbox_pb.rb
+++ b/web/lib/soapbox_pb.rb
@@ -0,0 +1,13 @@+# Generated by the protocol buffer compiler. DO NOT EDIT!
+# source: soapbox.proto
+
+require 'google/protobuf'
+
+Google::Protobuf::DescriptorPool.generated... | Add errant protobuf-generated Ruby file
|
diff --git a/lib/sparkle_formation/sparkle_struct.rb b/lib/sparkle_formation/sparkle_struct.rb
index abc1234..def5678 100644
--- a/lib/sparkle_formation/sparkle_struct.rb
+++ b/lib/sparkle_formation/sparkle_struct.rb
@@ -11,17 +11,17 @@ # @param inst [SparkleFormation]
# @return [SparkleFormation]
def _se... | Use proper namespacing for constant access
|
diff --git a/lib/stroke_counter/typist/assessment.rb b/lib/stroke_counter/typist/assessment.rb
index abc1234..def5678 100644
--- a/lib/stroke_counter/typist/assessment.rb
+++ b/lib/stroke_counter/typist/assessment.rb
@@ -1,5 +1,5 @@ module StrokeCounter::Typist::Assessment
- def path_to_file(filename)
+ def path_to_f... | Fix to accept 0 args
|
diff --git a/profile_cbc_test.rb b/profile_cbc_test.rb
index abc1234..def5678 100644
--- a/profile_cbc_test.rb
+++ b/profile_cbc_test.rb
@@ -6,7 +6,7 @@ puts "Encrypting a fairly big block of text...\n";
huge_ptext = File.open("bwulf10.txt", "r").read
-big_ptext = huge_ptext[0, 10240]
+big_ptext = huge_ptext[0, 1024... | Boost the number of blocks in the profile test to get better results
|
diff --git a/lib/adroll/service.rb b/lib/adroll/service.rb
index abc1234..def5678 100644
--- a/lib/adroll/service.rb
+++ b/lib/adroll/service.rb
@@ -13,7 +13,7 @@ request_uri = File.join(service_url, endpoint.to_s)
response = HTTParty.send(request_method, request_uri,
- ... | Use query param for requests
|
diff --git a/lib/capybara/rspec.rb b/lib/capybara/rspec.rb
index abc1234..def5678 100644
--- a/lib/capybara/rspec.rb
+++ b/lib/capybara/rspec.rb
@@ -1,7 +1,7 @@ require 'capybara'
require 'capybara/dsl'
-Rspec.configure do |config|
+RSpec.configure do |config|
config.include Capybara
config.after do
Capyb... | Correct module name for RSpec, prevent deprecation warnings |
diff --git a/lib/ventriloquist/cap/debian/erlang_install.rb b/lib/ventriloquist/cap/debian/erlang_install.rb
index abc1234..def5678 100644
--- a/lib/ventriloquist/cap/debian/erlang_install.rb
+++ b/lib/ventriloquist/cap/debian/erlang_install.rb
@@ -7,7 +7,7 @@
def self.erlang_install(machine)
m... | erlang: Fix check for whether erlang is installed or not
|
diff --git a/lib/suspenders/generators/decorator_generator.rb b/lib/suspenders/generators/decorator_generator.rb
index abc1234..def5678 100644
--- a/lib/suspenders/generators/decorator_generator.rb
+++ b/lib/suspenders/generators/decorator_generator.rb
@@ -0,0 +1,19 @@+require "rails/generators"
+
+module Suspenders
+ ... | Add a generator for draper decoration gem
|
diff --git a/spec/masking_secrets_spec.rb b/spec/masking_secrets_spec.rb
index abc1234..def5678 100644
--- a/spec/masking_secrets_spec.rb
+++ b/spec/masking_secrets_spec.rb
@@ -0,0 +1,49 @@+require "spec_helper"
+require "breach_mitigation/masking_secrets"
+
+describe BreachMitigation::MaskingSecrets do
+ let(:masking... | Add some specs for masking secrets
|
diff --git a/spec/models/location_spec.rb b/spec/models/location_spec.rb
index abc1234..def5678 100644
--- a/spec/models/location_spec.rb
+++ b/spec/models/location_spec.rb
@@ -24,10 +24,10 @@
it { should have_many(:natives) }
- it { should validate_presence_of(:name) }
+ xit { should validate_presence_of(:name... | Change location validation specs to pending
|
diff --git a/lib/einhorn/client.rb b/lib/einhorn/client.rb
index abc1234..def5678 100644
--- a/lib/einhorn/client.rb
+++ b/lib/einhorn/client.rb
@@ -1,5 +1,4 @@ require 'set'
-require 'uri'
require 'yaml'
module Einhorn
@@ -22,12 +21,12 @@
def self.serialize_message(message)
serialized = YAML.dump(... | Replace deprecated URI.escape / unescape methods
|
diff --git a/lib/github/markups.rb b/lib/github/markups.rb
index abc1234..def5678 100644
--- a/lib/github/markups.rb
+++ b/lib/github/markups.rb
@@ -24,7 +24,7 @@
command(:rest2html, /re?st(\.txt)?/)
-command('asciidoc -s --backend=xhtml11 -o - -', /asciidoc/)
+command('asciidoc -s --backend=xhtml11 -o - -', /ascii... | Add support for .asc and .adoc
Add support for .asciidoc.txt, .asc.txt and .adoc.txt (similar to ReSt support) |
diff --git a/lib/noted/renderer.rb b/lib/noted/renderer.rb
index abc1234..def5678 100644
--- a/lib/noted/renderer.rb
+++ b/lib/noted/renderer.rb
@@ -26,8 +26,11 @@ end
def render_body
- @notes.group_by { |note| note.tags.first }.each do | _ , group|
- color_pair = Constants::COLOR_PAIRS.sample
+ ... | Fix the colors sample problem by circling throught the colors
|
diff --git a/lib/rohbau/runtime.rb b/lib/rohbau/runtime.rb
index abc1234..def5678 100644
--- a/lib/rohbau/runtime.rb
+++ b/lib/rohbau/runtime.rb
@@ -2,33 +2,6 @@
module Rohbau
class Runtime
- class << self
- attr_reader :instance
-
- def start
- raise "Don't use Runtime.start, you should use a ... | Remove unneeded class methods from Runtime
|
diff --git a/lib/alf/sequel/unit_of_work/insert.rb b/lib/alf/sequel/unit_of_work/insert.rb
index abc1234..def5678 100644
--- a/lib/alf/sequel/unit_of_work/insert.rb
+++ b/lib/alf/sequel/unit_of_work/insert.rb
@@ -12,20 +12,45 @@ end
def matching_relation
- raise IllegalStateError, "Unit of w... | Refactor UnitOfWork::Insert for making use of the best key.
|
diff --git a/lib/clio_client/api/timeline_event.rb b/lib/clio_client/api/timeline_event.rb
index abc1234..def5678 100644
--- a/lib/clio_client/api/timeline_event.rb
+++ b/lib/clio_client/api/timeline_event.rb
@@ -3,6 +3,15 @@ class TimelineEvent < Base
include ClioClient::Api::Listable
+ include ClioC... | Allow timeline events to be createable
|
diff --git a/lib/api/apps/apps.rb b/lib/api/apps/apps.rb
index abc1234..def5678 100644
--- a/lib/api/apps/apps.rb
+++ b/lib/api/apps/apps.rb
@@ -1,7 +1,7 @@ class Apps
def initialize(client)
@client = client
- @ENDPOINT = client.ENDPOINT + "/" + "apps"
+ @ENDPOINT = client.ENDPOINT + "/" + "app"
end
def li... | Add delete and create endpoint params
|
diff --git a/lib/deba/document.rb b/lib/deba/document.rb
index abc1234..def5678 100644
--- a/lib/deba/document.rb
+++ b/lib/deba/document.rb
@@ -1,4 +1,6 @@ class Deba::Document
+ BLOCKQUOTE = "> "
+
attr_reader :content
def initialize(extractor)
@@ -22,7 +24,7 @@
@args.unshift(@segments)
block = @b... | Move blockquote prefix into constant
|
diff --git a/lib/pacer/version.rb b/lib/pacer/version.rb
index abc1234..def5678 100644
--- a/lib/pacer/version.rb
+++ b/lib/pacer/version.rb
@@ -1,7 +1,6 @@ module Pacer
- unless const_defined? :VERSION
- VERSION = "2.0.1"
-
+ VERSION = "2.0.1"
+ unless const_defined? :START_TIME
START_TIME = Time.now
end... | Allow VERSION to be reloaded
|
diff --git a/libexec/um-topics.rb b/libexec/um-topics.rb
index abc1234..def5678 100644
--- a/libexec/um-topics.rb
+++ b/libexec/um-topics.rb
@@ -9,8 +9,9 @@ end
end
+
config = UmConfig.source
-files = Dir["#{config[:pages_directory]}/*"].map { |file| File.basename(file) }
+files = Dir["#{config.pages_directory}/*... | Fix um topics subcommand, which wasn't using the expanded pages directory path.
|
diff --git a/db/migrate/20110302102208_add_user_id_and_deleted_at_to_addresses.rb b/db/migrate/20110302102208_add_user_id_and_deleted_at_to_addresses.rb
index abc1234..def5678 100644
--- a/db/migrate/20110302102208_add_user_id_and_deleted_at_to_addresses.rb
+++ b/db/migrate/20110302102208_add_user_id_and_deleted_at_to_... | Fix Directly inheriting from ActiveRecord::Migration is not supported
|
diff --git a/lib/vitrage/router.rb b/lib/vitrage/router.rb
index abc1234..def5678 100644
--- a/lib/vitrage/router.rb
+++ b/lib/vitrage/router.rb
@@ -2,21 +2,20 @@ module Router
def routes(rails_router, options = {})
- if options[:controller]
- cs = options[:controller].to_s
- rails_router.po... | Fix routes without custom controller
|
diff --git a/acts_as_likeable.gemspec b/acts_as_likeable.gemspec
index abc1234..def5678 100644
--- a/acts_as_likeable.gemspec
+++ b/acts_as_likeable.gemspec
@@ -9,7 +9,7 @@ spec.authors = ["Sung Won Cho"]
spec.email = ["mikeswcho@gmail.com"]
spec.summary = %q{Add like feature to any Active R... | Add github page as homepage
|
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -22,7 +22,8 @@ if project.save
redirect_to project_path(project)
else
- redirect_to... | Add create route flash message
|
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/sessions_controller.rb
+++ b/app/controllers/sessions_controller.rb
@@ -7,6 +7,7 @@ user = User.find_by_provider_and_uid(auth["provider"], auth["uid"]) ||
U... | Update email information on signup
|
diff --git a/test/integration/default/serverspec/racktables_spec.rb b/test/integration/default/serverspec/racktables_spec.rb
index abc1234..def5678 100644
--- a/test/integration/default/serverspec/racktables_spec.rb
+++ b/test/integration/default/serverspec/racktables_spec.rb
@@ -0,0 +1,37 @@+# Tests for a Racktable in... | Add suites of empty serverspec tests.
|
diff --git a/app/models/species/documents_export.rb b/app/models/species/documents_export.rb
index abc1234..def5678 100644
--- a/app/models/species/documents_export.rb
+++ b/app/models/species/documents_export.rb
@@ -31,9 +31,7 @@ :proposal_outcome,
:review_phase,
:taxon_names,
- :taxon_concept... | Remove obsolete taxon_concept and geo_entity ids from export
|
diff --git a/app/parameters/live_time_parameters.rb b/app/parameters/live_time_parameters.rb
index abc1234..def5678 100644
--- a/app/parameters/live_time_parameters.rb
+++ b/app/parameters/live_time_parameters.rb
@@ -2,6 +2,6 @@
def self.permitted
[:id, :event_id, :lap, :split_id, :sub_split_kind, :bitkey, :wa... | Add pulled_by attribute to LiveTimeParameters.permitted.
|
diff --git a/config/software/pg-gem.rb b/config/software/pg-gem.rb
index abc1234..def5678 100644
--- a/config/software/pg-gem.rb
+++ b/config/software/pg-gem.rb
@@ -0,0 +1,30 @@+#
+# Copyright 2014 Chef Software, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file exc... | Add definition for pg gem
|
diff --git a/app/services/load_test_data_remover.rb b/app/services/load_test_data_remover.rb
index abc1234..def5678 100644
--- a/app/services/load_test_data_remover.rb
+++ b/app/services/load_test_data_remover.rb
@@ -8,15 +8,17 @@ class << self
private
+ ASSOCIATIONS = [
+ :prisoner, :visitors, :visit_st... | Delete load test data in batches, optimise sql query
|
diff --git a/spec/spec_helper/example/model/_common/instance_methods/not_being.rb b/spec/spec_helper/example/model/_common/instance_methods/not_being.rb
index abc1234..def5678 100644
--- a/spec/spec_helper/example/model/_common/instance_methods/not_being.rb
+++ b/spec/spec_helper/example/model/_common/instance_methods/... | Fix a method in test
- Change #send to #__send__
- ::BasicObject, which is the superclass of PseudoObject::BasicObject, does not have #send
|
diff --git a/test/kitchen/cookbooks/apache2_test/files/default/tests/minitest/support/helpers.rb b/test/kitchen/cookbooks/apache2_test/files/default/tests/minitest/support/helpers.rb
index abc1234..def5678 100644
--- a/test/kitchen/cookbooks/apache2_test/files/default/tests/minitest/support/helpers.rb
+++ b/test/kitche... | Revert "use a symlink instead of copy of the file"
This reverts commit a9325a3180eea20cf2a9148cab84e3e9c5fcb540.
Test kitchen complains the file doesn't exist:
ERROR: Errno::ENOENT: No such file or directory - /tmp/apache2/../apache2/test/kitchen/cookbooks/apache2_test/files/default/tests/minitest/support/helpers.rb... |
diff --git a/lib/api-acl/control.rb b/lib/api-acl/control.rb
index abc1234..def5678 100644
--- a/lib/api-acl/control.rb
+++ b/lib/api-acl/control.rb
@@ -1,6 +1,23 @@ module ACL
module Control
+ def self.check_level(route,method)
+ validators_collection = Rules::Collection::ClassMethods.acl_routes_colle... | Add code to check access level
|
diff --git a/lib/devise_auth0_jwt_strategy/railtie.rb b/lib/devise_auth0_jwt_strategy/railtie.rb
index abc1234..def5678 100644
--- a/lib/devise_auth0_jwt_strategy/railtie.rb
+++ b/lib/devise_auth0_jwt_strategy/railtie.rb
@@ -5,14 +5,8 @@ print "Wiring up Auth0 JWT Devise Strategy..."
if ENV['AUTH0_CLIENT_S... | Update code for wiring auth0jwt into devise.
|
diff --git a/lib/feature_flagger.rb b/lib/feature_flagger.rb
index abc1234..def5678 100644
--- a/lib/feature_flagger.rb
+++ b/lib/feature_flagger.rb
@@ -29,9 +29,5 @@ def control
@@control ||= Control.new(config.storage)
end
-
- def migrate_feature_keys
- FeatureKeysMigration.new(control).call
-... | Remove interface used to expose migration code
|
diff --git a/lib/libraetd/app/helpers/token_helper.rb b/lib/libraetd/app/helpers/token_helper.rb
index abc1234..def5678 100644
--- a/lib/libraetd/app/helpers/token_helper.rb
+++ b/lib/libraetd/app/helpers/token_helper.rb
@@ -16,13 +16,14 @@ if @@secret.nil?
@@secret = get_secret
end
+
begin
- ... | Correct processing of auth token
|
diff --git a/lib/datastax_rails/util/solr_repair.rb b/lib/datastax_rails/util/solr_repair.rb
index abc1234..def5678 100644
--- a/lib/datastax_rails/util/solr_repair.rb
+++ b/lib/datastax_rails/util/solr_repair.rb
@@ -2,12 +2,12 @@ module SolrRepair
def repair_solr
encoded = {}
- attributes.keys.each ... | Remove deprecated replacefields directive from repair solr
|
diff --git a/db/data_migration/20121107114150_fix_dates_of_dft_speeches_round_1.rb b/db/data_migration/20121107114150_fix_dates_of_dft_speeches_round_1.rb
index abc1234..def5678 100644
--- a/db/data_migration/20121107114150_fix_dates_of_dft_speeches_round_1.rb
+++ b/db/data_migration/20121107114150_fix_dates_of_dft_spe... | Fix delivered_on and first_published_at of DfT Speeches
In the original DfT speech uploads
(20121012135700_upload_dft_speeches.rb) we were parsing the date from
the CSV file as a timestamp. Any date during BST would be converted to
a timestamp at midnight (BST) on the same day, which was then converted
to 23:00 the d... |
diff --git a/db/migrate/20180712165829_remove_irb_evidence_type_from_agreements.rb b/db/migrate/20180712165829_remove_irb_evidence_type_from_agreements.rb
index abc1234..def5678 100644
--- a/db/migrate/20180712165829_remove_irb_evidence_type_from_agreements.rb
+++ b/db/migrate/20180712165829_remove_irb_evidence_type_fr... | Remove deprecated column from agreements table
|
diff --git a/lib/generators/rails/post_deployment_migration/post_deployment_migration_generator.rb b/lib/generators/rails/post_deployment_migration/post_deployment_migration_generator.rb
index abc1234..def5678 100644
--- a/lib/generators/rails/post_deployment_migration/post_deployment_migration_generator.rb
+++ b/lib/g... | Fix timestamp to include %M instead of %I for post-deploy migrations.
Closes #44121.
|
diff --git a/app/controllers/admin/contests_controller.rb b/app/controllers/admin/contests_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/admin/contests_controller.rb
+++ b/app/controllers/admin/contests_controller.rb
@@ -1,5 +1,5 @@ module Admin
- class ContestsController < ApplicationController
+ ... | Make contests controller an admin controller
|
diff --git a/app/controllers/koi/admin_crud_controller.rb b/app/controllers/koi/admin_crud_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/koi/admin_crud_controller.rb
+++ b/app/controllers/koi/admin_crud_controller.rb
@@ -6,6 +6,12 @@
protected
+ # Matches missing route methods of the form (... | Comment for method_missing for koi routes.
|
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/sessions_controller.rb
+++ b/app/controllers/sessions_controller.rb
@@ -2,15 +2,9 @@ before_filter :check_session, except: :destroy
def create
- submitted_username =... | Change the sessions controller to use omniauth authentication.
|
diff --git a/app/controllers/participations_controller.rb b/app/controllers/participations_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/participations_controller.rb
+++ b/app/controllers/participations_controller.rb
@@ -6,6 +6,9 @@ participation = @challenge.participations.build(user: current_u... | Add ghetto synchronous mail notifications
Should use queues for this tomorrow.
|
diff --git a/benchmark/library/openssl/bench_hexdigest.rb b/benchmark/library/openssl/bench_hexdigest.rb
index abc1234..def5678 100644
--- a/benchmark/library/openssl/bench_hexdigest.rb
+++ b/benchmark/library/openssl/bench_hexdigest.rb
@@ -4,7 +4,7 @@ require 'benchmark'
require 'benchmark/ips'
-input = 'hello, wor... | Use a larger input string for the digest benchmark
|
diff --git a/app/notifiers/course/video_notifier.rb b/app/notifiers/course/video_notifier.rb
index abc1234..def5678 100644
--- a/app/notifiers/course/video_notifier.rb
+++ b/app/notifiers/course/video_notifier.rb
@@ -6,12 +6,16 @@ end
def video_opening(user, video)
+ return unless email_enabled?(video, :video... | Check email settings before firing email
Signed-off-by: Shen Yichen <be3bb257ef8d73236feaba36cd3e5ee9095e6819@gmail.com>
|
diff --git a/lib/polymorphic_integer_type/activerecord_5_0_0/association_query_handler_extension.rb b/lib/polymorphic_integer_type/activerecord_5_0_0/association_query_handler_extension.rb
index abc1234..def5678 100644
--- a/lib/polymorphic_integer_type/activerecord_5_0_0/association_query_handler_extension.rb
+++ b/li... | Handle the presence of sti_name on class or base class
|
diff --git a/lib/active_multiple_db/table_name_prefixer.rb b/lib/active_multiple_db/table_name_prefixer.rb
index abc1234..def5678 100644
--- a/lib/active_multiple_db/table_name_prefixer.rb
+++ b/lib/active_multiple_db/table_name_prefixer.rb
@@ -8,7 +8,7 @@ def inherited(kls)
super
# and not abst... | Check if inherited class is `descends_from_active_record?`
|
diff --git a/lib/simply_taggable.rb b/lib/simply_taggable.rb
index abc1234..def5678 100644
--- a/lib/simply_taggable.rb
+++ b/lib/simply_taggable.rb
@@ -10,5 +10,5 @@ # Equivalent of using "unloadable" in SurveyorController (unloadable has been deprecated)
%w{models controllers}.each do |dir|
path = File.expand_pat... | Patch to fix deprecation of load_once_paths in rails 2.3.9.
|
diff --git a/lib/tasks/release.rake b/lib/tasks/release.rake
index abc1234..def5678 100644
--- a/lib/tasks/release.rake
+++ b/lib/tasks/release.rake
@@ -1,6 +1,7 @@ namespace :release do
- task :bump, [:type] do |_, arguments|
- system "bin/semver increment #{arguments[:type]}"
+ task :bump, [:level] do |_, argume... | Add additional deploy tasks to mask rake attrs handling
|
diff --git a/lib/tinymce/railtie.rb b/lib/tinymce/railtie.rb
index abc1234..def5678 100644
--- a/lib/tinymce/railtie.rb
+++ b/lib/tinymce/railtie.rb
@@ -1,7 +1,7 @@ module TinyMCE
def self.base
[Rails.application.config.action_controller.asset_host,
- Rails.application.config.relative_url_root,
+ Action... | Access relative_url_root via ActionController::Base.config (for Rails 3.1 compatibility)
|
diff --git a/plugins/usd_to_cop.rb b/plugins/usd_to_cop.rb
index abc1234..def5678 100644
--- a/plugins/usd_to_cop.rb
+++ b/plugins/usd_to_cop.rb
@@ -1,9 +1,10 @@ require 'open-uri'
+require 'nokogiri'
class UsdToCopPlugin
include NinjaPlugin
- match /usd2cop (\d+)/, method: :convert
+ match /usd2cop ([-+]?[0-... | Use other source for usd to cop convertion
|
diff --git a/resources/mirror.rb b/resources/mirror.rb
index abc1234..def5678 100644
--- a/resources/mirror.rb
+++ b/resources/mirror.rb
@@ -34,7 +34,7 @@ end
ruby_block 'createrepo' do
block do
- system "createrepo #{real_local_path}"
+ system "createrepo -C #{real_local_path}"
end
end
i... | Make createrepo skip if packages were not updated to speed up runs where packages are not updated at all.
|
diff --git a/benchmark-perf.gemspec b/benchmark-perf.gemspec
index abc1234..def5678 100644
--- a/benchmark-perf.gemspec
+++ b/benchmark-perf.gemspec
@@ -13,7 +13,7 @@ spec.license = "MIT"
spec.files = Dir['{lib,spec}/**/*.rb']
- spec.files += Dir['{tasks}/*', 'benchmark-perf.gemspec']
+ sp... | Change to clean up syntax
|
diff --git a/spec/serverkit/resource_builder_spec.rb b/spec/serverkit/resource_builder_spec.rb
index abc1234..def5678 100644
--- a/spec/serverkit/resource_builder_spec.rb
+++ b/spec/serverkit/resource_builder_spec.rb
@@ -35,12 +35,20 @@ it { is_expected.to be_a Serverkit::Resources::Base }
end
+ context... | Fix failed spec on Serverkit::ResourceBuilder
The implementation had been changed in the previous commit.
In that change, Serverkit::Resources::Missing were added,
which is used on missing type attribute.
|
diff --git a/db/migrate/1437070556_add_transfers_index.rb b/db/migrate/1437070556_add_transfers_index.rb
index abc1234..def5678 100644
--- a/db/migrate/1437070556_add_transfers_index.rb
+++ b/db/migrate/1437070556_add_transfers_index.rb
@@ -0,0 +1,10 @@+Sequel.migration do
+
+ no_transaction
+
+ change do
+ alter_... | Add index to help improve transfer lookups
|
diff --git a/spec/certmeister/pg/store_spec.rb b/spec/certmeister/pg/store_spec.rb
index abc1234..def5678 100644
--- a/spec/certmeister/pg/store_spec.rb
+++ b/spec/certmeister/pg/store_spec.rb
@@ -16,9 +16,17 @@ private
def pg_cleanup
- db = Sequel.connect('postgres://localhost/test')
- certs = db[:certifi... | Fix first-time test on fresh workstation
|
diff --git a/app/models/contractor.rb b/app/models/contractor.rb
index abc1234..def5678 100644
--- a/app/models/contractor.rb
+++ b/app/models/contractor.rb
@@ -26,7 +26,7 @@ end
def corporate_id
- if !acn.blank?
+ if acn.present?
acn
else
abn
| Simplify if statement by removing ! negative (refactor only)
|
diff --git a/lib/bionya/diagram.rb b/lib/bionya/diagram.rb
index abc1234..def5678 100644
--- a/lib/bionya/diagram.rb
+++ b/lib/bionya/diagram.rb
@@ -11,7 +11,12 @@ nested = df.column(labels[2]) # 'nested_label' column from CircularPlot
raise 'received dataframe is not nested' unless nested.all? {|cell|... | Enable arc to accept minus value
|
diff --git a/app/models/submission.rb b/app/models/submission.rb
index abc1234..def5678 100644
--- a/app/models/submission.rb
+++ b/app/models/submission.rb
@@ -5,6 +5,8 @@ validates :age, numericality: { greater_than: 0, less_than: 110 }
validates_format_of :email, with: /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\... | Add length validations for :full_name, :email, :codecademy_username, :description, :goals, :problems
|
diff --git a/lib/libra2/app/controllers/dashboard_controller.rb b/lib/libra2/app/controllers/dashboard_controller.rb
index abc1234..def5678 100644
--- a/lib/libra2/app/controllers/dashboard_controller.rb
+++ b/lib/libra2/app/controllers/dashboard_controller.rb
@@ -17,7 +17,8 @@ @user = current_user
(@respons... | Use helpers to cleanup logic
|
diff --git a/lib/contracts/core.rb b/lib/contracts/core.rb
index abc1234..def5678 100644
--- a/lib/contracts/core.rb
+++ b/lib/contracts/core.rb
@@ -24,7 +24,10 @@ end
end
- base.class_eval do
+ # NOTE: Workaround for `defined?(super)` bug in ruby 1.9.2
+ # source: http://stackoverflow.c... | Fix defined?(super) for ruby 1.9.2
|
diff --git a/lib/convdayone/cli.rb b/lib/convdayone/cli.rb
index abc1234..def5678 100644
--- a/lib/convdayone/cli.rb
+++ b/lib/convdayone/cli.rb
@@ -1,3 +1,5 @@+require 'shellwords'
+
module Convdayone
OPTIONS = [:date, :starred, :photo_path, :journal_file].freeze
@@ -12,7 +14,7 @@ end
def self.escape_... | :bug: Fix issue to use Shellwords
|
diff --git a/randomizers/starting_room_randomizer.rb b/randomizers/starting_room_randomizer.rb
index abc1234..def5678 100644
--- a/randomizers/starting_room_randomizer.rb
+++ b/randomizers/starting_room_randomizer.rb
@@ -9,8 +9,15 @@ next if room.doors.length == 0
next if room.area.name.include?("B... | Fix free space error with both starting room+items randos
|
diff --git a/easy_logging.gemspec b/easy_logging.gemspec
index abc1234..def5678 100644
--- a/easy_logging.gemspec
+++ b/easy_logging.gemspec
@@ -23,7 +23,7 @@ spec.required_ruby_version = '>= 2.0.0'
spec.add_development_dependency "bundler", "~> 1.14"
- spec.add_development_dependency "rake", "~> 10.0"
+ spec.... | Upgrade rake to version 12.3.1 |
diff --git a/spec/integration/commands/servers/remove_spec.rb b/spec/integration/commands/servers/remove_spec.rb
index abc1234..def5678 100644
--- a/spec/integration/commands/servers/remove_spec.rb
+++ b/spec/integration/commands/servers/remove_spec.rb
@@ -9,25 +9,29 @@ @hp_svc = compute_connection
end
- ### ... | Fix specs for servers:remove command.
|
diff --git a/spec/repository/git_repo/test_pending_changes.rb b/spec/repository/git_repo/test_pending_changes.rb
index abc1234..def5678 100644
--- a/spec/repository/git_repo/test_pending_changes.rb
+++ b/spec/repository/git_repo/test_pending_changes.rb
@@ -8,7 +8,12 @@ `#{code}`
end
+ def reset_repo_cha... | Add test for pending_changes? due to update file
|
diff --git a/lib/tasks/convert_interactives.rake b/lib/tasks/convert_interactives.rake
index abc1234..def5678 100644
--- a/lib/tasks/convert_interactives.rake
+++ b/lib/tasks/convert_interactives.rake
@@ -30,5 +30,29 @@ end
end
+ desc 'migrate interactive tags to external_activities'
+ task :migrate_... | Create rake task to migrate tags and associations from Interactives to ExternalActivities.
[#151758282]
|
diff --git a/config/initializers/feature_toggles.rb b/config/initializers/feature_toggles.rb
index abc1234..def5678 100644
--- a/config/initializers/feature_toggles.rb
+++ b/config/initializers/feature_toggles.rb
@@ -3,11 +3,7 @@ beta_testers = ENV['BETA_TESTERS']&.split(/[\s,]+/) || []
OpenFoodNetwork::FeatureToggl... | Enable customer_balance to all users
This however makes the tests still pass, which rely on the off-branch
logic of the toggle. We'll work on them next.
|
diff --git a/spec/plugins/builder/mist_spec.rb b/spec/plugins/builder/mist_spec.rb
index abc1234..def5678 100644
--- a/spec/plugins/builder/mist_spec.rb
+++ b/spec/plugins/builder/mist_spec.rb
@@ -0,0 +1,74 @@+require 'spec_helper'
+
+describe Cyclid::API::Plugins::Mist do
+ # Provide some simple stub
+ module MistPl... | Add tests for the Mist Builder plugin
|
diff --git a/spec/processor/connection_spec.rb b/spec/processor/connection_spec.rb
index abc1234..def5678 100644
--- a/spec/processor/connection_spec.rb
+++ b/spec/processor/connection_spec.rb
@@ -3,13 +3,13 @@ describe Pupa::Processor::Connection do
describe '.new' do
it 'should use MongoDB' do
- expect(P... | Update test to use existing database
|
diff --git a/app/models/tuner.rb b/app/models/tuner.rb
index abc1234..def5678 100644
--- a/app/models/tuner.rb
+++ b/app/models/tuner.rb
@@ -20,7 +20,7 @@ def logs_since(time_interval)
query = RecentLog.where(:tuner_id => id)
- query = query.where('created_at > ? ', time_interval.date_range.begin.ut... | Use updated_at instead of created_at for recent logs
|
diff --git a/cookbooks/planet/attributes/default.rb b/cookbooks/planet/attributes/default.rb
index abc1234..def5678 100644
--- a/cookbooks/planet/attributes/default.rb
+++ b/cookbooks/planet/attributes/default.rb
@@ -3,6 +3,6 @@ default[:planet][:dump][:pbf_directory] = "/store/planet/pbf"
default[:planet][:dump][:pbf... | Put source directory somewhere more sensible.
|
diff --git a/lib/iridium/engine.rb b/lib/iridium/engine.rb
index abc1234..def5678 100644
--- a/lib/iridium/engine.rb
+++ b/lib/iridium/engine.rb
@@ -15,7 +15,7 @@ set[:sprites].add "app/sprites"
set[:system_initializers].add "config/initializers", :glob => "**/*.rb"
- set[:environment].add "co... | Use proc for env file
|
diff --git a/lib/goohub/datastore/redis_store.rb b/lib/goohub/datastore/redis_store.rb
index abc1234..def5678 100644
--- a/lib/goohub/datastore/redis_store.rb
+++ b/lib/goohub/datastore/redis_store.rb
@@ -22,8 +22,15 @@ self.glob('*')
end
- def glob(pattern)
- @redis.keys(pattern)
+ de... | Make it possible to pass block to glob method in RedisStore
|
diff --git a/week-6/gps.rb b/week-6/gps.rb
index abc1234..def5678 100644
--- a/week-6/gps.rb
+++ b/week-6/gps.rb
@@ -0,0 +1,43 @@+# Your Names
+# 1)
+# 2)
+
+# We spent [#] hours on this challenge.
+
+# Bakery Serving Size portion calculator.
+
+def serving_size_calc(item_to_make, num_of_ingredients)
+ library = {"coo... | Set up file for GPS 2.3
|
diff --git a/lib/tasks/sample_data/addressing.rb b/lib/tasks/sample_data/addressing.rb
index abc1234..def5678 100644
--- a/lib/tasks/sample_data/addressing.rb
+++ b/lib/tasks/sample_data/addressing.rb
@@ -15,7 +15,7 @@
def zone
zone = Spree::Zone.find_or_create_by_name!(ENV.fetch('CHECKOUT_ZONE'))
- zone.me... | Fix typo in sample_data zone creation (zonEable) and added clause to avoid re-adding the same country to the zone
|
diff --git a/lib/undo/serializer/active_model.rb b/lib/undo/serializer/active_model.rb
index abc1234..def5678 100644
--- a/lib/undo/serializer/active_model.rb
+++ b/lib/undo/serializer/active_model.rb
@@ -1,6 +1,3 @@-require "active_support/core_ext/hash"
-require "active_support/core_ext/string"
-
module Undo
modu... | Revert "load hash and object core_ext"
This reverts commit 9ded0797e3e6eebef5adab1f4d02bf991780aa63.
|
diff --git a/lib/pronto/rubocop.rb b/lib/pronto/rubocop.rb
index abc1234..def5678 100644
--- a/lib/pronto/rubocop.rb
+++ b/lib/pronto/rubocop.rb
@@ -21,7 +21,7 @@ end
def inspect(patch)
- processed_source = ::RuboCop::ProcessedSource.from_file(patch.new_file_full_path)
+ processed_source = ::RuboCo... | Convert Pathname to String when passing to ::Rubocop::ProcessedSource
Otherwise, it errors. Changed in rubocop 0.30.0
|
diff --git a/examples/find_all_posts_mentioning_github.rb b/examples/find_all_posts_mentioning_github.rb
index abc1234..def5678 100644
--- a/examples/find_all_posts_mentioning_github.rb
+++ b/examples/find_all_posts_mentioning_github.rb
@@ -11,9 +11,9 @@ query_parts = [
"sort-order:asc",
"sort:p... | Refactor: Add keyword directly to the array
https://github.com/twingly/twingly-search-api-ruby/pull/81#discussion_r269543135
|
diff --git a/lib/shuttle/runner.rb b/lib/shuttle/runner.rb
index abc1234..def5678 100644
--- a/lib/shuttle/runner.rb
+++ b/lib/shuttle/runner.rb
@@ -36,13 +36,13 @@ if integration.respond_to?(command)
begin
if integration.deploy_running?
- raise DeployError, "Another deployment is r... | Terminate deploy is another session is running
|
diff --git a/lib/stache/railtie.rb b/lib/stache/railtie.rb
index abc1234..def5678 100644
--- a/lib/stache/railtie.rb
+++ b/lib/stache/railtie.rb
@@ -1,7 +1,7 @@ module Stache
class Railtie < ::Rails::Railtie
initializer 'stache.autoload', :before => :set_autoload_paths do |app|
- app.config.autoload_paths ... | Change additional path from Pathname to String
Because some gems expects that autoload_paths is Array of String
|
diff --git a/lib/open_food_network/user_balance_calculator.rb b/lib/open_food_network/user_balance_calculator.rb
index abc1234..def5678 100644
--- a/lib/open_food_network/user_balance_calculator.rb
+++ b/lib/open_food_network/user_balance_calculator.rb
@@ -6,7 +6,7 @@ end
def balance
- -completed_orders... | Make BalanceCalculator use old balance calculation
This class is currently used and it gets skipped when the
:customer_balance toggle is enabled, so there's no point on abstracting
the balance with `OrderBalance`. It'll never go through its
`#new_outstanding_balance` branch and it'll be removed once we active
that tog... |
diff --git a/0_code_wars/find_the_smallest_power.rb b/0_code_wars/find_the_smallest_power.rb
index abc1234..def5678 100644
--- a/0_code_wars/find_the_smallest_power.rb
+++ b/0_code_wars/find_the_smallest_power.rb
@@ -0,0 +1,6 @@+# http://www.codewars.com/kata/56ba65c6a15703ac7e002075/
+# --- iteration 1 ---
+def find_n... | Add conde wars (7) - find the smallest power
|
diff --git a/spec/controllers/dashboards_controller_spec.rb b/spec/controllers/dashboards_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/dashboards_controller_spec.rb
+++ b/spec/controllers/dashboards_controller_spec.rb
@@ -1,37 +1,58 @@ describe DashboardsController do
render_views
- d... | Add further dashboards controller specs
|
diff --git a/specs/ishigaki-internal/controls/tidy_files.rb b/specs/ishigaki-internal/controls/tidy_files.rb
index abc1234..def5678 100644
--- a/specs/ishigaki-internal/controls/tidy_files.rb
+++ b/specs/ishigaki-internal/controls/tidy_files.rb
@@ -37,4 +37,12 @@ its('stdout') { should eq "0" }
end
+ %w[gpg d... | Check that some packages only needed to build have been removed
|
diff --git a/spec/lib/shanty/static_file_discoverer_spec.rb b/spec/lib/shanty/static_file_discoverer_spec.rb
index abc1234..def5678 100644
--- a/spec/lib/shanty/static_file_discoverer_spec.rb
+++ b/spec/lib/shanty/static_file_discoverer_spec.rb
@@ -0,0 +1,42 @@+require 'shanty/discoverers/shantyfile'
+
+module Shanty
+... | Add tests for static file discoverer
|
diff --git a/spec/mecab-dictionary/mecab_dictionary_spec.rb b/spec/mecab-dictionary/mecab_dictionary_spec.rb
index abc1234..def5678 100644
--- a/spec/mecab-dictionary/mecab_dictionary_spec.rb
+++ b/spec/mecab-dictionary/mecab_dictionary_spec.rb
@@ -4,6 +4,10 @@ it { should be_installed }
end
+describe package('mec... | Add mecab-ipadic task for Fedora
|
diff --git a/test/remote_tests/remote_secure_pay_tech_test.rb b/test/remote_tests/remote_secure_pay_tech_test.rb
index abc1234..def5678 100644
--- a/test/remote_tests/remote_secure_pay_tech_test.rb
+++ b/test/remote_tests/remote_secure_pay_tech_test.rb
@@ -0,0 +1,34 @@+require File.dirname(__FILE__) + '/../test_helper'... | Add remote tests for SecurePayTech
git-svn-id: 15afb6ebb5ffcaa0dbaaa80925839866918ea29e@457 6513ea26-6c20-0410-8a68-89cd7235086d
|
diff --git a/config/initializers/sidekiq.rb b/config/initializers/sidekiq.rb
index abc1234..def5678 100644
--- a/config/initializers/sidekiq.rb
+++ b/config/initializers/sidekiq.rb
@@ -0,0 +1,8 @@+# https://devcenter.heroku.com/articles/forked-pg-connections#sidekiq
+Sidekiq.configure_server do |config|
+ database_url... | Set Sidekiq configuration per Heroku's policies
|
diff --git a/services/jaconda.rb b/services/jaconda.rb
index abc1234..def5678 100644
--- a/services/jaconda.rb
+++ b/services/jaconda.rb
@@ -2,15 +2,20 @@ string :subdomain, :room_id, :room_token
boolean :digest
- def receive_push
- raise_config_error "Missing 'subdomain'" if data['subdomain'].to_s == ''
-... | Send all events to Jaconda |
diff --git a/Casks/qqinput.rb b/Casks/qqinput.rb
index abc1234..def5678 100644
--- a/Casks/qqinput.rb
+++ b/Casks/qqinput.rb
@@ -0,0 +1,10 @@+class Qqinput < Cask
+ version '2.8.86.400'
+ sha256 '5b90cf604230013d5afa974b5b4835c0d6faf55da932cebce4f72478b5665a4d'
+
+ url 'http://qqime.cdn.sogou.com/QQInput_Mac_Setup_2... | Add QQ input method, version 2.8.86.400
|
diff --git a/benchmark-memory.gemspec b/benchmark-memory.gemspec
index abc1234..def5678 100644
--- a/benchmark-memory.gemspec
+++ b/benchmark-memory.gemspec
@@ -13,7 +13,7 @@ spec.homepage = "https://github.com/michaelherold/benchmark-memory"
spec.license = "MIT"
- spec.files = %w(CHANGELOG.md LICENS... | Include the contributing guide in the gem
|
diff --git a/spec/watch_tower/editor/textmate_spec.rb b/spec/watch_tower/editor/textmate_spec.rb
index abc1234..def5678 100644
--- a/spec/watch_tower/editor/textmate_spec.rb
+++ b/spec/watch_tower/editor/textmate_spec.rb
@@ -21,7 +21,7 @@ subject.is_running?.should be_true
end
- it "should return ... | spec/textmate: Make sure it returns nil if the editor is not running.
|
diff --git a/spec/knapsack_pro/runners/base_runner_spec.rb b/spec/knapsack_pro/runners/base_runner_spec.rb
index abc1234..def5678 100644
--- a/spec/knapsack_pro/runners/base_runner_spec.rb
+++ b/spec/knapsack_pro/runners/base_runner_spec.rb
@@ -0,0 +1,51 @@+describe KnapsackPro::Runners::BaseRunner do
+ let(:adapter_c... | Add spec for base runner
|
diff --git a/lib/little_mapper/mapper_instance_methods.rb b/lib/little_mapper/mapper_instance_methods.rb
index abc1234..def5678 100644
--- a/lib/little_mapper/mapper_instance_methods.rb
+++ b/lib/little_mapper/mapper_instance_methods.rb
@@ -21,7 +21,7 @@ pe = to_persistent(entity)
if pe.save
entit... | Set persistent object on repo success
|
diff --git a/Argo.podspec b/Argo.podspec
index abc1234..def5678 100644
--- a/Argo.podspec
+++ b/Argo.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |spec|
spec.name = 'Argo'
- spec.version = '0.2'
+ spec.version = '0.2.1'
spec.summary = 'Functional JSON parsing library for Swift.'
spec.homepage = 'https://github.c... | Update podspec to support iOS 7 and latest version
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.