diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/ruby/ql/test/library-tests/dataflow/barrier-guards/barrier-guards.rb b/ruby/ql/test/library-tests/dataflow/barrier-guards/barrier-guards.rb
index abc1234..def5678 100644
--- a/ruby/ql/test/library-tests/dataflow/barrier-guards/barrier-guards.rb
+++ b/ruby/ql/test/library-tests/dataflow/barrier-guards/barri... | Ruby: Add test case: array constant barrier guard
This guard isn't yet recognised as a `StringConstArrayInclusionCall`.
|
diff --git a/HysteriaPlayer.podspec b/HysteriaPlayer.podspec
index abc1234..def5678 100644
--- a/HysteriaPlayer.podspec
+++ b/HysteriaPlayer.podspec
@@ -1,12 +1,13 @@ Pod::Spec.new do |s|
s.name = "HysteriaPlayer"
s.version = "2.1.2"
- s.summary = "Objective-C remote audio player (AVPlayer exte... | Update .podspec, OS X compatible |
diff --git a/app/models/inputs/effective_static_control/input.rb b/app/models/inputs/effective_static_control/input.rb
index abc1234..def5678 100644
--- a/app/models/inputs/effective_static_control/input.rb
+++ b/app/models/inputs/effective_static_control/input.rb
@@ -8,7 +8,12 @@ end
def to_html
- ... | Tweak effective_static_control to avoid double <p>
|
diff --git a/db/migrate/20090606004452_add_status_to_racers.rb b/db/migrate/20090606004452_add_status_to_racers.rb
index abc1234..def5678 100644
--- a/db/migrate/20090606004452_add_status_to_racers.rb
+++ b/db/migrate/20090606004452_add_status_to_racers.rb
@@ -1,11 +1,17 @@ class AddStatusToRacers < ActiveRecord::Migra... | Fix migration for WSBA (already deployed and ran People migrations)
|
diff --git a/lib/dc/zip_utils.rb b/lib/dc/zip_utils.rb
index abc1234..def5678 100644
--- a/lib/dc/zip_utils.rb
+++ b/lib/dc/zip_utils.rb
@@ -7,15 +7,12 @@ module ZipUtils
def package(zip_name)
- temp_dir = Dir.mktmpdir# do |temp_dir|
- zipfile = "#{temp_dir}/#{zip_name}"
- Zip::File.open(zip... | Use Tempfile for zipfile creation
When Dir.mktmpdir is unlinked, the inner files are inaccessible to send_file.
This meant that we had to keep it around until after the download was complete,
which littered the /tmp directory with directories filled with zip files.
Since we only need a single file, Tempfile is more a... |
diff --git a/pronto-rails_schema.gemspec b/pronto-rails_schema.gemspec
index abc1234..def5678 100644
--- a/pronto-rails_schema.gemspec
+++ b/pronto-rails_schema.gemspec
@@ -20,7 +20,7 @@ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
- spec.add_dependency '... | Upgrade pronto dependency to 0.6.0.
|
diff --git a/db/migrate/20120814113226_create_wafflemix_pages.rb b/db/migrate/20120814113226_create_wafflemix_pages.rb
index abc1234..def5678 100644
--- a/db/migrate/20120814113226_create_wafflemix_pages.rb
+++ b/db/migrate/20120814113226_create_wafflemix_pages.rb
@@ -1,5 +1,5 @@ class CreateWafflemixPages < ActiveReco... | Add pages migration w translations.
|
diff --git a/db/migrate/20161014123500_add_episode_attributes.rb b/db/migrate/20161014123500_add_episode_attributes.rb
index abc1234..def5678 100644
--- a/db/migrate/20161014123500_add_episode_attributes.rb
+++ b/db/migrate/20161014123500_add_episode_attributes.rb
@@ -20,5 +20,7 @@ add_column :episodes, :feedburner... | Copy data from overrides to the episode columns
|
diff --git a/lib/finch/cursor.rb b/lib/finch/cursor.rb
index abc1234..def5678 100644
--- a/lib/finch/cursor.rb
+++ b/lib/finch/cursor.rb
@@ -15,8 +15,12 @@ klass.extend ClassMethods
end
+ def more?
+ !@_next.nil
+ end
+
def next
- raise "No next parameter set" if @_next.nil?
+ raise "No next para... | Add `more?` method to test for pagination.
|
diff --git a/db/migrate/20151125123352_create_notifications_endpoint.rb b/db/migrate/20151125123352_create_notifications_endpoint.rb
index abc1234..def5678 100644
--- a/db/migrate/20151125123352_create_notifications_endpoint.rb
+++ b/db/migrate/20151125123352_create_notifications_endpoint.rb
@@ -0,0 +1,25 @@+class Crea... | Add View to notification endpoint
|
diff --git a/attributes/remi-gpgkey.rb b/attributes/remi-gpgkey.rb
index abc1234..def5678 100644
--- a/attributes/remi-gpgkey.rb
+++ b/attributes/remi-gpgkey.rb
@@ -1,11 +1,8 @@ # From https://rpms.remirepo.net/ in the "Other Resources" section about
# gpg keys for platform versions.
-default['yum-remi-chef']['gpgkey'... | Remove logic to support EOL Fedora platforms
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
|
diff --git a/lib/api2cart/daemon/proxy_server.rb b/lib/api2cart/daemon/proxy_server.rb
index abc1234..def5678 100644
--- a/lib/api2cart/daemon/proxy_server.rb
+++ b/lib/api2cart/daemon/proxy_server.rb
@@ -28,7 +28,7 @@ begin
connection_handler.handle_proxy_connection(client_socket)
rescue Exceptio... | Add backtrace to error logs
|
diff --git a/test_site/se_demo.rb b/test_site/se_demo.rb
index abc1234..def5678 100644
--- a/test_site/se_demo.rb
+++ b/test_site/se_demo.rb
@@ -4,7 +4,7 @@ require 'sequel_setup'
require 'se_setup'
ScaffoldingExtensions.javascript_library = 'JQuery'
-set :port=>7980
+set :port=>7980, :run=>true
get '/' do
erb ... | Add :run=>true option so sinatra works with ruby-style on test site
|
diff --git a/app/mailers/song_mailer.rb b/app/mailers/song_mailer.rb
index abc1234..def5678 100644
--- a/app/mailers/song_mailer.rb
+++ b/app/mailers/song_mailer.rb
@@ -1,5 +1,5 @@ class SongMailer < ApplicationMailer
- default to: 'miyoshi@ku-unplugged.net' # TODO: Replace "miyoshi" with "pa"
+ default to: 'pa@ku-un... | Change the destination to PA
|
diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb
index abc1234..def5678 100644
--- a/app/mailers/user_mailer.rb
+++ b/app/mailers/user_mailer.rb
@@ -1,9 +1,9 @@ class UserMailer < ActionMailer::Base
- default from: "from@example.com"
+ default from: Rails.configuration.noreply_email
def passw... | Use rails configuration for from email
|
diff --git a/db/migrate/20190124103508_remove_micro_chp_input.rb b/db/migrate/20190124103508_remove_micro_chp_input.rb
index abc1234..def5678 100644
--- a/db/migrate/20190124103508_remove_micro_chp_input.rb
+++ b/db/migrate/20190124103508_remove_micro_chp_input.rb
@@ -11,7 +11,7 @@ Scenario.migratable.find_each.wit... | Fix micro CHP migration when no network gas is set
|
diff --git a/app/models/rapidfire/question.rb b/app/models/rapidfire/question.rb
index abc1234..def5678 100644
--- a/app/models/rapidfire/question.rb
+++ b/app/models/rapidfire/question.rb
@@ -9,7 +9,7 @@ serialize :validation_rules
if Rails::VERSION::MAJOR == 3
- attr_accessible :survey, :question_text... | Make position attribute accessible in Rails 3
|
diff --git a/shuffle.rb b/shuffle.rb
index abc1234..def5678 100644
--- a/shuffle.rb
+++ b/shuffle.rb
@@ -1,11 +1,10 @@ require 'sinatra'
require 'httparty'
require 'yaml'
+require 'pry'
data = YAML.load_file(File.expand_path("./data.yml"))
post('/') do
- team = data['team_members'].shuffle
-
- HTTParty.post(d... | Remove unnecessary variable and return list joined
|
diff --git a/lib/ranked-model.rb b/lib/ranked-model.rb
index abc1234..def5678 100644
--- a/lib/ranked-model.rb
+++ b/lib/ranked-model.rb
@@ -53,8 +53,13 @@ instance_variable_set "@#{ranker.name}_position", position
end
end
+ define_method "position" do
+ position_value = send(ranke... | Add position method to ranked objects.
An instance of a ranked class can now call #position to get their position in the list. It uses count so wouldn't be great for querying every object (if you're doing that you're probably in a loop and can use with_index) but will be fine for infrequent calls.
|
diff --git a/lib/reel/version.rb b/lib/reel/version.rb
index abc1234..def5678 100644
--- a/lib/reel/version.rb
+++ b/lib/reel/version.rb
@@ -1,4 +1,4 @@ module Reel
- VERSION = "0.6.0"
- CODENAME = "Garland"
+ VERSION = "0.7.0.pre"
+ CODENAME = "Marilyn"
end
| Make master 0.7.0.pre (codename "Marilyn")
|
diff --git a/lib/ruby_rexster.rb b/lib/ruby_rexster.rb
index abc1234..def5678 100644
--- a/lib/ruby_rexster.rb
+++ b/lib/ruby_rexster.rb
@@ -1,8 +1,8 @@ libdir = File.dirname(__FILE__)
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
-require 'ruby_rexster/vertex'
-require 'ruby_rexster/edge'
module ... | Move to autoloading the modules
|
diff --git a/lib/clojurescript_rails/template.rb b/lib/clojurescript_rails/template.rb
index abc1234..def5678 100644
--- a/lib/clojurescript_rails/template.rb
+++ b/lib/clojurescript_rails/template.rb
@@ -4,13 +4,8 @@
module ClojurescriptRails
class ClojurescriptTemplate < ::Tilt::Template
- def self.engine_ini... | Remove debugging statement and unecessary method
|
diff --git a/lib/earth/air/airline/data_miner.rb b/lib/earth/air/airline/data_miner.rb
index abc1234..def5678 100644
--- a/lib/earth/air/airline/data_miner.rb
+++ b/lib/earth/air/airline/data_miner.rb
@@ -3,6 +3,7 @@ schema Earth.database_options do
string 'name'
string 'bts_code'
+ string 'iata_... | Include iata_code in our Airline table since we have it |
diff --git a/lib/easy_dci/extensions/dci_base.rb b/lib/easy_dci/extensions/dci_base.rb
index abc1234..def5678 100644
--- a/lib/easy_dci/extensions/dci_base.rb
+++ b/lib/easy_dci/extensions/dci_base.rb
@@ -11,18 +11,22 @@
def create
set_dci_data(_crud_model.params(:on_create))
- _crud_model.scope... | Handle additional params for DCI actions
|
diff --git a/Casks/omni-disk-sweeper.rb b/Casks/omni-disk-sweeper.rb
index abc1234..def5678 100644
--- a/Casks/omni-disk-sweeper.rb
+++ b/Casks/omni-disk-sweeper.rb
@@ -1,7 +1,7 @@ class OmniDiskSweeper < Cask
url 'http://www.omnigroup.com/download/latest/omnidisksweeper'
homepage 'http://www.omnigroup.com/produc... | Update OmniDiskSweeper to use latest scheme |
diff --git a/db/migrate/20141007022617_create_collaboration_runs.rb b/db/migrate/20141007022617_create_collaboration_runs.rb
index abc1234..def5678 100644
--- a/db/migrate/20141007022617_create_collaboration_runs.rb
+++ b/db/migrate/20141007022617_create_collaboration_runs.rb
@@ -2,12 +2,12 @@ def up
create_tabl... | Fix one of the migrations where column name was accidentally changed
[#79958812]
|
diff --git a/benchmarks/format_args.rb b/benchmarks/format_args.rb
index abc1234..def5678 100644
--- a/benchmarks/format_args.rb
+++ b/benchmarks/format_args.rb
@@ -0,0 +1,34 @@+require "benchmark"
+require 'lib/yard'
+
+def format_args_regex(object)
+ if object.signature
+ object.signature[/#{Regexp.quote object.n... | Add benchmark for argument formatting
|
diff --git a/lib/ruby-lint/analysis/pedantics.rb b/lib/ruby-lint/analysis/pedantics.rb
index abc1234..def5678 100644
--- a/lib/ruby-lint/analysis/pedantics.rb
+++ b/lib/ruby-lint/analysis/pedantics.rb
@@ -1,9 +1,20 @@ module RubyLint
module Analysis
##
- # The {RubyLint::Analysis::UselessRuby} class checks f... | Correct docs of the Pedantics analysis class.
|
diff --git a/lib/tasks/load_legacy_mappings.rake b/lib/tasks/load_legacy_mappings.rake
index abc1234..def5678 100644
--- a/lib/tasks/load_legacy_mappings.rake
+++ b/lib/tasks/load_legacy_mappings.rake
@@ -13,7 +13,7 @@ begin
topic_taxon_id = api.lookup_content_id(base_path: topic_taxon)
raise "Lookup ... | Modify legacy mapping rake task to support optimistic locking.
This will prevent the rake task accidentally overwriting concurrent
changes to a topic taxon when populating its legacy_taxons links.
|
diff --git a/db/data_migration/20190117142343_remove_policy_publisher_content.rb b/db/data_migration/20190117142343_remove_policy_publisher_content.rb
index abc1234..def5678 100644
--- a/db/data_migration/20190117142343_remove_policy_publisher_content.rb
+++ b/db/data_migration/20190117142343_remove_policy_publisher_co... | Add a data migration to unpublish old Policy Publisher content
This doesn't specifically relate to Whitehall, it's just an easy place
to put this code.
A single email signup page was left behind when Policy Publisher was
retired, so unpublish that and replace it with a redirect to the email
signup page for the replac... |
diff --git a/db/migrate/20160310114854_add_document_fingerprint_to_print_jobs.rb b/db/migrate/20160310114854_add_document_fingerprint_to_print_jobs.rb
index abc1234..def5678 100644
--- a/db/migrate/20160310114854_add_document_fingerprint_to_print_jobs.rb
+++ b/db/migrate/20160310114854_add_document_fingerprint_to_print... | Fix missing migration for previous commit.
|
diff --git a/rb/spec/unit/selenium/webdriver/remote/http/common_spec.rb b/rb/spec/unit/selenium/webdriver/remote/http/common_spec.rb
index abc1234..def5678 100644
--- a/rb/spec/unit/selenium/webdriver/remote/http/common_spec.rb
+++ b/rb/spec/unit/selenium/webdriver/remote/http/common_spec.rb
@@ -6,13 +6,13 @@ mod... | JariBakken: Fix spec for last change.
git-svn-id: 4179480af2c2519a5eb5e1e9b541cbdf5cf27696@13679 07704840-8298-11de-bf8c-fd130f914ac9
|
diff --git a/spec/controllers/physical_server_controller_spec.rb b/spec/controllers/physical_server_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/physical_server_controller_spec.rb
+++ b/spec/controllers/physical_server_controller_spec.rb
@@ -9,8 +9,9 @@ before(:each) do
EvmSpecHelp... | Update specs for physical server
- Add parent relationship for physical server with ems_physical_infra
|
diff --git a/app/controllers/admin/link_check_reports_controller.rb b/app/controllers/admin/link_check_reports_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/admin/link_check_reports_controller.rb
+++ b/app/controllers/admin/link_check_reports_controller.rb
@@ -1,5 +1,5 @@ class Admin::LinkCheckRepor... | Use before_action instead of before_filter in link check controller
|
diff --git a/lib/spectrum/config/online_resource_aggregator.rb b/lib/spectrum/config/online_resource_aggregator.rb
index abc1234..def5678 100644
--- a/lib/spectrum/config/online_resource_aggregator.rb
+++ b/lib/spectrum/config/online_resource_aggregator.rb
@@ -34,8 +34,8 @@ text: link['link_text'],
... | Put the cell data in a structure.
|
diff --git a/lib/mutant/mutator/node/send/binary.rb b/lib/mutant/mutator/node/send/binary.rb
index abc1234..def5678 100644
--- a/lib/mutant/mutator/node/send/binary.rb
+++ b/lib/mutant/mutator/node/send/binary.rb
@@ -20,7 +20,7 @@ emit(left)
emit_left_mutations
emit_selector_replac... | Correct use of node type predicates
|
diff --git a/lib/generators/geocoder/maxmind/templates/migration/geolite_city.rb b/lib/generators/geocoder/maxmind/templates/migration/geolite_city.rb
index abc1234..def5678 100644
--- a/lib/generators/geocoder/maxmind/templates/migration/geolite_city.rb
+++ b/lib/generators/geocoder/maxmind/templates/migration/geolite... | Add indices for faster queries.
See: https://github.com/alexreisner/geocoder/issues/703
|
diff --git a/lib/rocket_cms/controllers/contacts.rb b/lib/rocket_cms/controllers/contacts.rb
index abc1234..def5678 100644
--- a/lib/rocket_cms/controllers/contacts.rb
+++ b/lib/rocket_cms/controllers/contacts.rb
@@ -17,10 +17,13 @@ end
if @contact_message.send(meth)
after_create
- ... | Add ajax contact message handling |
diff --git a/lib/simple_form/inputs/string_input.rb b/lib/simple_form/inputs/string_input.rb
index abc1234..def5678 100644
--- a/lib/simple_form/inputs/string_input.rb
+++ b/lib/simple_form/inputs/string_input.rb
@@ -4,13 +4,13 @@ def input
input_html_options[:size] ||= [limit, SimpleForm.default_in... | Refactor string input a bit
|
diff --git a/lib/spree/chimpy/controller_filters.rb b/lib/spree/chimpy/controller_filters.rb
index abc1234..def5678 100644
--- a/lib/spree/chimpy/controller_filters.rb
+++ b/lib/spree/chimpy/controller_filters.rb
@@ -14,7 +14,7 @@ if (mc_eid || mc_cid) && session[:order_id]
attributes = {campaign_id:... | Use Spree 2.x method signature
|
diff --git a/bin/circle_client_tests.rb b/bin/circle_client_tests.rb
index abc1234..def5678 100644
--- a/bin/circle_client_tests.rb
+++ b/bin/circle_client_tests.rb
@@ -9,6 +9,9 @@ # export CIRCLE_BANK_ACCOUNT_ID=186074
# export CIRCLE_CUSTOMER_SESSION_TOKEN=
# export CIRCLE_COOKIE=""
+# export COINBASE_KEY=
+# expor... | Add placeholders for COINBASE_KEY and COINBASE_SECRET
|
diff --git a/lib/active_support_decorators/active_support_decorators.rb b/lib/active_support_decorators/active_support_decorators.rb
index abc1234..def5678 100644
--- a/lib/active_support_decorators/active_support_decorators.rb
+++ b/lib/active_support_decorators/active_support_decorators.rb
@@ -38,7 +38,7 @@ if co... | Fix `no implicit conversion of Pathname into String (TypeError)`
|
diff --git a/libraries/provider_shipyard_agent_application_container.rb b/libraries/provider_shipyard_agent_application_container.rb
index abc1234..def5678 100644
--- a/libraries/provider_shipyard_agent_application_container.rb
+++ b/libraries/provider_shipyard_agent_application_container.rb
@@ -0,0 +1,68 @@+# Encoding... | Add a provider for container-based agent applications
|
diff --git a/actionsystemtest/lib/action_system_test/driver_adapters/web_server.rb b/actionsystemtest/lib/action_system_test/driver_adapters/web_server.rb
index abc1234..def5678 100644
--- a/actionsystemtest/lib/action_system_test/driver_adapters/web_server.rb
+++ b/actionsystemtest/lib/action_system_test/driver_adapte... | Set Webrick logger for system testing
If this is not set Webrick will log **everything** to STDOUT and
distract from the running tests. This will instead log to the log file.
This example was extracted from the Capybara source code.
|
diff --git a/spec/dummy/config/application.rb b/spec/dummy/config/application.rb
index abc1234..def5678 100644
--- a/spec/dummy/config/application.rb
+++ b/spec/dummy/config/application.rb
@@ -1,15 +1,15 @@ require File.expand_path('../boot', __FILE__)
# Pick the frameworks you want:
-require "active_record/railtie"... | Use single quotes for requiring files.
|
diff --git a/spec/helpers/methods_examples.rb b/spec/helpers/methods_examples.rb
index abc1234..def5678 100644
--- a/spec/helpers/methods_examples.rb
+++ b/spec/helpers/methods_examples.rb
@@ -38,7 +38,7 @@ it 'should raise an undefined method error (without the _async)' do
ex = (begin; subject.send("som... | Change exception expectation message for rbx compatibility.
|
diff --git a/spec/requests/user_pages_spec.rb b/spec/requests/user_pages_spec.rb
index abc1234..def5678 100644
--- a/spec/requests/user_pages_spec.rb
+++ b/spec/requests/user_pages_spec.rb
@@ -17,6 +17,7 @@
it { should have_title(user_title(user.name)) }
it { should have_content(user.name) }
+ it { should h... | Add lc_email to initial entry (John Glenn)
|
diff --git a/app/lib/mock_aws_s3.rb b/app/lib/mock_aws_s3.rb
index abc1234..def5678 100644
--- a/app/lib/mock_aws_s3.rb
+++ b/app/lib/mock_aws_s3.rb
@@ -4,28 +4,27 @@ @key = key
end
- VALID_KEYS = [
- 'demo-student-photo-small-172x207.jpg',
- 'demo-student-photo-large-308x364.jpg',
- ]
-
... | Refactor MockAwsS3 to be more protective of the filesystem, even in dev/test envs
|
diff --git a/lib/watch_tower/server/extensions/improved_partials.rb b/lib/watch_tower/server/extensions/improved_partials.rb
index abc1234..def5678 100644
--- a/lib/watch_tower/server/extensions/improved_partials.rb
+++ b/lib/watch_tower/server/extensions/improved_partials.rb
@@ -4,30 +4,34 @@ module ImprovedPart... | App/Extensions: Fix the definition of partial.
|
diff --git a/config/initializers/opbeat.rb b/config/initializers/opbeat.rb
index abc1234..def5678 100644
--- a/config/initializers/opbeat.rb
+++ b/config/initializers/opbeat.rb
@@ -0,0 +1,9 @@+if Rails.env.production?
+ require "opbeat"
+ # set up an Opbeat configuration
+ Opbeat.configure do |config|
+ config.or... | Revert old configuration way, load only on production
|
diff --git a/config/initializers/stripe.rb b/config/initializers/stripe.rb
index abc1234..def5678 100644
--- a/config/initializers/stripe.rb
+++ b/config/initializers/stripe.rb
@@ -1,6 +1,6 @@ Rails.configuration.stripe = {
- :publishable_key => ENV['STRIPE_PUBLISHABLE_KEY'],
- :secret_key => ENV['STRIPE_SECRET_... | Switch API keys to actually use the test keys
|
diff --git a/core/spec/models/spree/return_item/eligibility_validator/time_since_purchase_spec.rb b/core/spec/models/spree/return_item/eligibility_validator/time_since_purchase_spec.rb
index abc1234..def5678 100644
--- a/core/spec/models/spree/return_item/eligibility_validator/time_since_purchase_spec.rb
+++ b/core/spe... | Test TimeSincePurchaseSpec without the database
This spec previously took 1 full second to run because of the objects
being unnecessarily persisted.
This implements the same specs in memory to speed up the test
|
diff --git a/templates/app_generators/test_engineering/test_block/lib_dev/dut.rb b/templates/app_generators/test_engineering/test_block/lib_dev/dut.rb
index abc1234..def5678 100644
--- a/templates/app_generators/test_engineering/test_block/lib_dev/dut.rb
+++ b/templates/app_generators/test_engineering/test_block/lib_de... | Update to latest arm_debug driver requirements
|
diff --git a/config/initializers/clearance.rb b/config/initializers/clearance.rb
index abc1234..def5678 100644
--- a/config/initializers/clearance.rb
+++ b/config/initializers/clearance.rb
@@ -5,7 +5,6 @@ config.allow_sign_up = false
config.mailer_sender = ENV["MAILGUN_FROM_EMAIL"]
config.sign_in_guards = [Sign... | Allow cookies to work across all domains
|
diff --git a/config/initializers/cloudfuji.rb b/config/initializers/cloudfuji.rb
index abc1234..def5678 100644
--- a/config/initializers/cloudfuji.rb
+++ b/config/initializers/cloudfuji.rb
@@ -2,7 +2,7 @@
Errbit::Application.configure do
# Register observers to fire Cloudfuji events
- config.mongoid.observers = :... | Extend original observers, instead of overwriting
|
diff --git a/pages/lib/generators/refinery/pages/pages_generator.rb b/pages/lib/generators/refinery/pages/pages_generator.rb
index abc1234..def5678 100644
--- a/pages/lib/generators/refinery/pages/pages_generator.rb
+++ b/pages/lib/generators/refinery/pages/pages_generator.rb
@@ -5,6 +5,17 @@ def generate_pages_ini... | Use rails way to load seed data from pages engine
|
diff --git a/Template/{PROJECT}.podspec b/Template/{PROJECT}.podspec
index abc1234..def5678 100644
--- a/Template/{PROJECT}.podspec
+++ b/Template/{PROJECT}.podspec
@@ -3,6 +3,7 @@ s.version = "0.1"
s.summary = ""
s.description = <<-DESC
+Your description here.
DESC
s.homepage = "{URL}"
... | Add description placeholder and reuse version str |
diff --git a/recipes/sevenscale_deploy/github.rb b/recipes/sevenscale_deploy/github.rb
index abc1234..def5678 100644
--- a/recipes/sevenscale_deploy/github.rb
+++ b/recipes/sevenscale_deploy/github.rb
@@ -0,0 +1,21 @@+namespace :github do
+ namespace :pending do
+ desc 'Display pending changes ready to be deployed ... | Add task to show the changes ready to be deployed.
|
diff --git a/lib/puppet/provider/rabbitmq_plugin/rabbitmqplugins.rb b/lib/puppet/provider/rabbitmq_plugin/rabbitmqplugins.rb
index abc1234..def5678 100644
--- a/lib/puppet/provider/rabbitmq_plugin/rabbitmqplugins.rb
+++ b/lib/puppet/provider/rabbitmq_plugin/rabbitmqplugins.rb
@@ -21,8 +21,8 @@ defaultfor :feature => ... | Use -m flag on rabbitmq-plugins command for managing rabbitmq_plugin resources
Use the -m flag for calls to the rabbitmq-plugins command, which enables minimal
output mode. This is much easier and more reliable to parse.
Fixes an issue under RMQ 3.4.0 where rabbitmq_plugin resources were being enabled
on every Puppe... |
diff --git a/SIGS/app/controllers/administrative_assistant_controller.rb b/SIGS/app/controllers/administrative_assistant_controller.rb
index abc1234..def5678 100644
--- a/SIGS/app/controllers/administrative_assistant_controller.rb
+++ b/SIGS/app/controllers/administrative_assistant_controller.rb
@@ -16,13 +16,24 @@ d... | Add methods destroy aprove_regisration enable
|
diff --git a/core/errno/eagain_spec.rb b/core/errno/eagain_spec.rb
index abc1234..def5678 100644
--- a/core/errno/eagain_spec.rb
+++ b/core/errno/eagain_spec.rb
@@ -0,0 +1,12 @@+require File.expand_path('../../../spec_helper', __FILE__)
+
+describe "Errno::EAGAIN" do
+ # From http://jira.codehaus.org/browse/JRUBY-4747... | Add a spec to confirm that Errno::EAGAIN is used for EWOULDBLOCK when appropriate
|
diff --git a/tasks/git.rake b/tasks/git.rake
index abc1234..def5678 100644
--- a/tasks/git.rake
+++ b/tasks/git.rake
@@ -18,7 +18,7 @@ msg = "Tag release v#{version}"
msg << "\n\n"
unless issues.empty?
- msg << "References:#{issues.uniq.sort.join(', ')}"
+ msg << "References: #{issues.uniq.sort.join(', ')... | Format update for release message.
|
diff --git a/db/migrate/20211015074811_add_klarna_customer_token_to_spree_user.rb b/db/migrate/20211015074811_add_klarna_customer_token_to_spree_user.rb
index abc1234..def5678 100644
--- a/db/migrate/20211015074811_add_klarna_customer_token_to_spree_user.rb
+++ b/db/migrate/20211015074811_add_klarna_customer_token_to_s... | Add the customer_token col to the user table
This column is needed to store the fetched customer token.
The customer token will be used to place future orders.
|
diff --git a/ruby/command-t/lib/command-t/scanner/buffer_scanner.rb b/ruby/command-t/lib/command-t/scanner/buffer_scanner.rb
index abc1234..def5678 100644
--- a/ruby/command-t/lib/command-t/scanner/buffer_scanner.rb
+++ b/ruby/command-t/lib/command-t/scanner/buffer_scanner.rb
@@ -8,14 +8,10 @@ include PathUtiliti... | Work around pathologically slow buffer scanning in Neovim
In Neovim, unlisted buffers are returned to the Ruby layer. If you run
Ferret's :Ack, for example, you might find yourself with a large number
of those (as `:h unlisted-buffer` says, Vim uses these to track things
like file names). As such, it is too easy to wi... |
diff --git a/spec/models/layout_spec.rb b/spec/models/layout_spec.rb
index abc1234..def5678 100644
--- a/spec/models/layout_spec.rb
+++ b/spec/models/layout_spec.rb
@@ -1,29 +1,30 @@ require File.dirname(__FILE__) + '/../spec_helper'
describe Layout do
- #dataset :layouts
- test_helper :validations
- before :ea... | Rewrite model spec w/o validations_helper
|
diff --git a/YumiUnitySDK/2.0.0/YumiUnitySDK.podspec b/YumiUnitySDK/2.0.0/YumiUnitySDK.podspec
index abc1234..def5678 100644
--- a/YumiUnitySDK/2.0.0/YumiUnitySDK.podspec
+++ b/YumiUnitySDK/2.0.0/YumiUnitySDK.podspec
@@ -20,7 +20,7 @@
s.ios.deployment_target = "7.0"
- s.source = { :http => "http://ad-sdk.oss-cn-... | Update unity sdk source to use cdn
|
diff --git a/app/models/course/video.rb b/app/models/course/video.rb
index abc1234..def5678 100644
--- a/app/models/course/video.rb
+++ b/app/models/course/video.rb
@@ -6,7 +6,8 @@
after_initialize :set_defaults, if: :new_record?
- has_many :submissions, inverse_of: :video, dependent: :destroy
+ has_many :submi... | Define a more verbose association, also to circumvent circular dependency issue while loading in production
|
diff --git a/app/models/geo_activity.rb b/app/models/geo_activity.rb
index abc1234..def5678 100644
--- a/app/models/geo_activity.rb
+++ b/app/models/geo_activity.rb
@@ -10,7 +10,7 @@ field :country_code, type: String
field :city, type: String
- validates_presence_of :id, :dates, :loc, :country_code, :ci... | Allow city to be missing.
|
diff --git a/app/models/registration.rb b/app/models/registration.rb
index abc1234..def5678 100644
--- a/app/models/registration.rb
+++ b/app/models/registration.rb
@@ -2,5 +2,5 @@ belongs_to :user
belongs_to :event
- PAYMENT_TYPE = ['Cash','Check']
+ PAYMENT_TYPE = [['Cash',1],['Check',2]]
end
| Add id value to PAYMENT_TYPE
|
diff --git a/app/models/user_profile.rb b/app/models/user_profile.rb
index abc1234..def5678 100644
--- a/app/models/user_profile.rb
+++ b/app/models/user_profile.rb
@@ -9,6 +9,6 @@
def generate_picture_path
hash = Digest::SHA1.file(picture.path).hexdigest
- "attachments/user_profile/#{hash[0..6]}/#{hash}"
+... | Reduce profile picture path size and make safe.
* 16^3 directory entries is well within FS limits.
* DragonFly root path means "attachments" is not needed.
* Give path a more relevant name.
|
diff --git a/spec/classes/apache_spec.rb b/spec/classes/apache_spec.rb
index abc1234..def5678 100644
--- a/spec/classes/apache_spec.rb
+++ b/spec/classes/apache_spec.rb
@@ -8,7 +8,7 @@ it { should include_class("apache::params") }
it { should contain_package("httpd") }
it { should contain_service("httpd")... | Update spec tests to expect boolean
|
diff --git a/webhookr-mandrill.gemspec b/webhookr-mandrill.gemspec
index abc1234..def5678 100644
--- a/webhookr-mandrill.gemspec
+++ b/webhookr-mandrill.gemspec
@@ -19,12 +19,5 @@
gem.add_dependency("webhookr")
gem.add_dependency("activesupport", ["~> 3.1"])
- # Until the latest version gets to Rubygems
- # ge... | Remove comments and dev dependencies
|
diff --git a/db/migrate/20141111164439_create_storytime_subscriptions.rb b/db/migrate/20141111164439_create_storytime_subscriptions.rb
index abc1234..def5678 100644
--- a/db/migrate/20141111164439_create_storytime_subscriptions.rb
+++ b/db/migrate/20141111164439_create_storytime_subscriptions.rb
@@ -3,7 +3,7 @@ cre... | Fix syntax in subscription migration
|
diff --git a/phare.gemspec b/phare.gemspec
index abc1234..def5678 100644
--- a/phare.gemspec
+++ b/phare.gemspec
@@ -7,7 +7,7 @@ spec.name = 'phare'
spec.version = Phare::VERSION
spec.authors = ['Rémi Prévost']
- spec.email = ['remi@exomel.com']
+ spec.email = ['rprevost@m... | Fix my own email in gemspec
|
diff --git a/config/initializers/csp.rb b/config/initializers/csp.rb
index abc1234..def5678 100644
--- a/config/initializers/csp.rb
+++ b/config/initializers/csp.rb
@@ -5,8 +5,8 @@ *.hatena.ne.jp *.st-hatena.com
*.slidesharecdn.com *.slideshare.net)
config.csp = {
- report_only: Rails.env.p... | Set report_only to 'false' in CSP
|
diff --git a/omnibus/config/projects/opscode-push-jobs-server.rb b/omnibus/config/projects/opscode-push-jobs-server.rb
index abc1234..def5678 100644
--- a/omnibus/config/projects/opscode-push-jobs-server.rb
+++ b/omnibus/config/projects/opscode-push-jobs-server.rb
@@ -22,6 +22,7 @@ build_version Omnibus::BuildVersion... | Add private-chef as runtime dependency
|
diff --git a/config/tire.rb b/config/tire.rb
index abc1234..def5678 100644
--- a/config/tire.rb
+++ b/config/tire.rb
@@ -8,3 +8,8 @@ config = es_config[APP_ENV]
Tire::Model::Search.index_prefix config["index_prefix"]
+
+Tire.configure do
+ logger File.expand_path(config["log"], APP_ROOT) if config["log"]
+ url con... | deploy: Configure ES url and log
|
diff --git a/lib/cb/utils/validator.rb b/lib/cb/utils/validator.rb
index abc1234..def5678 100644
--- a/lib/cb/utils/validator.rb
+++ b/lib/cb/utils/validator.rb
@@ -14,7 +14,7 @@
begin
json = JSON.parse(response.response.body)
- if json[json.keys[0]].empty?
+ if json.keys.any? && json[jso... | Check if keys exist before accessing
|
diff --git a/app/controllers/downloads_controller.rb b/app/controllers/downloads_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/downloads_controller.rb
+++ b/app/controllers/downloads_controller.rb
@@ -27,8 +27,8 @@ @platform = 'windows' if @platform == 'win'
if @platform == 'windows' || @pl... | Update project & source URL from MSysGit to Git for Windows. |
diff --git a/app/controllers/libraries_controller.rb b/app/controllers/libraries_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/libraries_controller.rb
+++ b/app/controllers/libraries_controller.rb
@@ -4,8 +4,8 @@ end
def search
- s = params[:search]
- @query = s[:query]
- @results = ... | Update library search to render same page.
|
diff --git a/app/controllers/questions_controller.rb b/app/controllers/questions_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/questions_controller.rb
+++ b/app/controllers/questions_controller.rb
@@ -22,7 +22,6 @@ end
def show
- @question = Question.find(params[:id])
end
def edit
| Remove unnecessary local variable from questions controller
|
diff --git a/MTLParseAdapter.podspec b/MTLParseAdapter.podspec
index abc1234..def5678 100644
--- a/MTLParseAdapter.podspec
+++ b/MTLParseAdapter.podspec
@@ -1,28 +1,16 @@-#
-# Be sure to run `pod lib lint MTLParseAdapter.podspec' to ensure this is a
-# valid spec and remove all comments before submitting the spec.
-#
-... | Update podspec to have more information
|
diff --git a/fuubar.gemspec b/fuubar.gemspec
index abc1234..def5678 100644
--- a/fuubar.gemspec
+++ b/fuubar.gemspec
@@ -27,6 +27,6 @@ s.executables = Dir.glob("bin/*").map{ |f| File.basename(f) }
s.require_paths = ['lib']
- s.add_dependency 'rspec', '~> 2.0'
+ s.add... | Update RSpec dependency to work with RSpec 3.0
|
diff --git a/examples/galena/lib/galena/tissue/migration/frozen_shims.rb b/examples/galena/lib/galena/tissue/migration/frozen_shims.rb
index abc1234..def5678 100644
--- a/examples/galena/lib/galena/tissue/migration/frozen_shims.rb
+++ b/examples/galena/lib/galena/tissue/migration/frozen_shims.rb
@@ -11,7 +11,7 @@ #... | Set the Galena box site and container type.
|
diff --git a/activerecord/test/cases/arel/collectors/bind_test.rb b/activerecord/test/cases/arel/collectors/bind_test.rb
index abc1234..def5678 100644
--- a/activerecord/test/cases/arel/collectors/bind_test.rb
+++ b/activerecord/test/cases/arel/collectors/bind_test.rb
@@ -1,6 +1,7 @@ # frozen_string_literal: true
re... | Address `NameError: uninitialized constant Arel::Collectors::Bind`
when tested with Ruby 2.5 or higher
```ruby
$ ruby -v
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]
$ bundle exec ruby -w -Itest test/cases/arel/collectors/bind_test.rb -n test_compile_gathers_all_bind_params
Run options: -n test_compile_gat... |
diff --git a/app/workers/concerns/waitable_worker.rb b/app/workers/concerns/waitable_worker.rb
index abc1234..def5678 100644
--- a/app/workers/concerns/waitable_worker.rb
+++ b/app/workers/concerns/waitable_worker.rb
@@ -3,7 +3,7 @@
module ClassMethods
# Schedules multiple jobs and waits for them to be complet... | Allow bulk_perform_and_wait wait timeout to be overridden
|
diff --git a/config/software/fluentd.rb b/config/software/fluentd.rb
index abc1234..def5678 100644
--- a/config/software/fluentd.rb
+++ b/config/software/fluentd.rb
@@ -9,9 +9,11 @@ relative_path "fluentd"
build do
+ env = with_standard_compiler_flags(with_embedded_path)
+
Dir.glob(File.expand_path(File.join(Omn... | Add env to each command
|
diff --git a/app/controllers/islay_blog/public/blog_controller.rb b/app/controllers/islay_blog/public/blog_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/islay_blog/public/blog_controller.rb
+++ b/app/controllers/islay_blog/public/blog_controller.rb
@@ -13,6 +13,7 @@ @blog_entry = BlogEntry.publi... | Add confirmation of a new comment to the flash.
|
diff --git a/lib/mountebank/network.rb b/lib/mountebank/network.rb
index abc1234..def5678 100644
--- a/lib/mountebank/network.rb
+++ b/lib/mountebank/network.rb
@@ -32,11 +32,11 @@ end
def self.mountebank_server
- !!ENV['MOUNTEBANK_SERVER'] ? ENV['MOUNTEBANK_SERVER'] : 'localhost'
+ ENV['MOUNTEBANK... | Use different syntax as recommended by Bjorn.
|
diff --git a/lib/seed/configuration.rb b/lib/seed/configuration.rb
index abc1234..def5678 100644
--- a/lib/seed/configuration.rb
+++ b/lib/seed/configuration.rb
@@ -13,7 +13,7 @@ end
def schema_version
- @schema_version ||= Digest::SHA1.hexdigest(ActiveRecord::Migrator.get_all_versions.sort.join)
+ ... | Fix NoMethodError on Rails 5.2
|
diff --git a/lib/vagrant-lxc/plugin.rb b/lib/vagrant-lxc/plugin.rb
index abc1234..def5678 100644
--- a/lib/vagrant-lxc/plugin.rb
+++ b/lib/vagrant-lxc/plugin.rb
@@ -8,27 +8,22 @@ The LXC provider allows Vagrant to manage and control
LXC-based virtual machines.
EOF
- locale_loaded = false
... | Make code similar to other providers
|
diff --git a/lib/redmine_project_filtering/patches/custom_field_patch.rb b/lib/redmine_project_filtering/patches/custom_field_patch.rb
index abc1234..def5678 100644
--- a/lib/redmine_project_filtering/patches/custom_field_patch.rb
+++ b/lib/redmine_project_filtering/patches/custom_field_patch.rb
@@ -9,8 +9,10 @@ ... | Fix custom_field_path for been usable on new instances of chiliproject
|
diff --git a/spec/controllers/items_controller_spec.rb b/spec/controllers/items_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/items_controller_spec.rb
+++ b/spec/controllers/items_controller_spec.rb
@@ -53,4 +53,14 @@ expect(response).to redirect_to action: :index
end
end
+
+ describe ... | Add failing spec for redirect to index after remove done
|
diff --git a/lib/lims-laboratory-app/laboratory/create_receptacle_action_trait.rb b/lib/lims-laboratory-app/laboratory/create_receptacle_action_trait.rb
index abc1234..def5678 100644
--- a/lib/lims-laboratory-app/laboratory/create_receptacle_action_trait.rb
+++ b/lib/lims-laboratory-app/laboratory/create_receptacle_act... | Add create receptacle action trait
|
diff --git a/spec/controllers/remote_translation_controller_spec.rb b/spec/controllers/remote_translation_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/remote_translation_controller_spec.rb
+++ b/spec/controllers/remote_translation_controller_spec.rb
@@ -9,7 +9,7 @@ @remote_translations_... | Use Rails 5 syntax to set referer in specs
The previous way was working fine with Rails 4, but now the referer was
returning nil and therefore raising an error in this spec.
|
diff --git a/spec/dummy/spec/integration/user_model_mapping_spec.rb b/spec/dummy/spec/integration/user_model_mapping_spec.rb
index abc1234..def5678 100644
--- a/spec/dummy/spec/integration/user_model_mapping_spec.rb
+++ b/spec/dummy/spec/integration/user_model_mapping_spec.rb
@@ -6,7 +6,7 @@ let(:users) { rom.read(:u... | Update spec to use .try interface
|
diff --git a/ruby/puppy.rb b/ruby/puppy.rb
index abc1234..def5678 100644
--- a/ruby/puppy.rb
+++ b/ruby/puppy.rb
@@ -1,16 +1,41 @@-SPECIES ------------------------
+
+=begin SPECIES ------------------------
Canis lateus amplexus
+create hash
CHARACTERISTICS ----------------
-Ability to hug: varies
+Ability to hug: ... | Create Puppy class, characteristics hash and behavior array
|
diff --git a/resources/target.rb b/resources/target.rb
index abc1234..def5678 100644
--- a/resources/target.rb
+++ b/resources/target.rb
@@ -1,4 +1,3 @@-property :name, String, name_property: true
property :data, Array, default: []
action :create do
| Remove name property from the resource
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
|
diff --git a/Casks/aluxian-messenger.rb b/Casks/aluxian-messenger.rb
index abc1234..def5678 100644
--- a/Casks/aluxian-messenger.rb
+++ b/Casks/aluxian-messenger.rb
@@ -1,6 +1,6 @@ cask :v1 => 'aluxian-messenger' do
- version '1.4.0'
- sha256 'cd29d15312435952d6dba2bf65421d910a4c4f866c036e2b1f3beb3af626ac23'
+ versi... | Update Aluxian Messenger to 1.4.3
|
diff --git a/capistrano-cook.gemspec b/capistrano-cook.gemspec
index abc1234..def5678 100644
--- a/capistrano-cook.gemspec
+++ b/capistrano-cook.gemspec
@@ -22,6 +22,6 @@ "LICENSE"
]
- s.add_dependency "capistrano", "~> 2.5.9"
+ s.add_dependency "capistrano", [">= 2.5.9", "< 3.0"]
s.add_dependency "capist... | Support all versions of 2.x.x of Capistrano.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.