diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/spec/integration/business_stage_page_spec.rb b/spec/integration/business_stage_page_spec.rb
index abc1234..def5678 100644
--- a/spec/integration/business_stage_page_spec.rb
+++ b/spec/integration/business_stage_page_spec.rb
@@ -17,6 +17,7 @@ 'Pre-start',
'Start-up',
'Grow and sust... | Add new facet value to test
|
diff --git a/spec/integration/template_attributes_spec.rb b/spec/integration/template_attributes_spec.rb
index abc1234..def5678 100644
--- a/spec/integration/template_attributes_spec.rb
+++ b/spec/integration/template_attributes_spec.rb
@@ -0,0 +1,45 @@+require "spec_helper"
+require "flex_commerce_api"
+require "flex_... | Add tests for `template_attribute` retrieval |
diff --git a/tasks/metrics/mutant.rake b/tasks/metrics/mutant.rake
index abc1234..def5678 100644
--- a/tasks/metrics/mutant.rake
+++ b/tasks/metrics/mutant.rake
@@ -8,8 +8,8 @@ task :mutant => :coverage do
project = Devtools.project
config = project.mutant
- cmd = %[mutant -r ./spec/spec_helper.... | Change system command to use an Array as input
* This causes the arguments to be escaped automatically, preventing
shell injection (not a huge risk in this case, but may prevent
some kinds of errors; I wish this was the default interface).
|
diff --git a/spec/consul_daemon_dev_spec.rb b/spec/consul_daemon_dev_spec.rb
index abc1234..def5678 100644
--- a/spec/consul_daemon_dev_spec.rb
+++ b/spec/consul_daemon_dev_spec.rb
@@ -15,12 +15,18 @@
describe file('/var/log/consul/stdout.log') do
its(:content) { should match /Consul agent running/ }
+ it { shoul... | Add specs to check that consul owner runs daemon.
|
diff --git a/spec/features/redshift_spec.rb b/spec/features/redshift_spec.rb
index abc1234..def5678 100644
--- a/spec/features/redshift_spec.rb
+++ b/spec/features/redshift_spec.rb
@@ -9,6 +9,7 @@ end
it "inserts new record" do
+ DB.drop_table? :items
DB.create_table :items do
primary_key :id
... | Drop test table if exists
|
diff --git a/spec/tok/configuration_spec.rb b/spec/tok/configuration_spec.rb
index abc1234..def5678 100644
--- a/spec/tok/configuration_spec.rb
+++ b/spec/tok/configuration_spec.rb
@@ -1,6 +1,5 @@ describe Tok::Configuration do
before :all do
- User = Class.new
Account = Class.new
end
| Remove User object (not necessary as User is defined elsewhere now)
|
diff --git a/cookbooks/ruby/recipes/linux.rb b/cookbooks/ruby/recipes/linux.rb
index abc1234..def5678 100644
--- a/cookbooks/ruby/recipes/linux.rb
+++ b/cookbooks/ruby/recipes/linux.rb
@@ -16,7 +16,7 @@ # On all linux installations, add in this rpath so that our
# libraries can be accessed when called from the `ru... | Linux: Use the proper Ruby rpath
This fixes a major issue where Ruby would get a bogus Rpath value (see
https://github.com/mitchellh/vagrant/issues/850#issuecomment-6263739).
This bogus value would cause compiled extensions to have a bogus rpath
value (see
https://github.com/mitchellh/vagrant/issues/850#issuecomment-5... |
diff --git a/test/filmbuff/test_filmbuff_imdb.rb b/test/filmbuff/test_filmbuff_imdb.rb
index abc1234..def5678 100644
--- a/test/filmbuff/test_filmbuff_imdb.rb
+++ b/test/filmbuff/test_filmbuff_imdb.rb
@@ -38,8 +38,8 @@
describe 'when only returning popular titles' do
before do
- @title = @imdb.find_... | Add parentheses to method call
|
diff --git a/test/spec_session_abstract_session_hash.rb b/test/spec_session_abstract_session_hash.rb
index abc1234..def5678 100644
--- a/test/spec_session_abstract_session_hash.rb
+++ b/test/spec_session_abstract_session_hash.rb
@@ -37,5 +37,9 @@ it "works with a block" do
assert_equal :default, hash.fetch(:... | Add test for fetching unknown keys without defaults
|
diff --git a/app/controllers/renalware/pathology/observations_controller.rb b/app/controllers/renalware/pathology/observations_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/renalware/pathology/observations_controller.rb
+++ b/app/controllers/renalware/pathology/observations_controller.rb
@@ -18,7 +1... | Move 'RETA' display after 'PLT' to remove gap
|
diff --git a/db/seeds/routes_from_varnish.rb b/db/seeds/routes_from_varnish.rb
index abc1234..def5678 100644
--- a/db/seeds/routes_from_varnish.rb
+++ b/db/seeds/routes_from_varnish.rb
@@ -12,7 +12,6 @@ backends = [
'canary-frontend',
'licensify',
- 'spotlight',
'tariff',
'transactions-explorer',
]
@@ -32... | Remove seeding of /performance route.
This is now handled by the application itself at deploy time.
|
diff --git a/app/controllers/flag_log_controller.rb b/app/controllers/flag_log_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/flag_log_controller.rb
+++ b/app/controllers/flag_log_controller.rb
@@ -1,5 +1,6 @@ class FlagLogController < ApplicationController
def index
- @flag_logs = FlagLog.all.... | Speed up prettier flag log view
|
diff --git a/app/controllers/profiles_controller.rb b/app/controllers/profiles_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/profiles_controller.rb
+++ b/app/controllers/profiles_controller.rb
@@ -27,6 +27,7 @@ def user_params
params.require(:user).permit(:bio, :gender, :ethnicity, :country, ... | Allow updating your GitHub and Twitter account |
diff --git a/app/controllers/profiles_controller.rb b/app/controllers/profiles_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/profiles_controller.rb
+++ b/app/controllers/profiles_controller.rb
@@ -1,5 +1,6 @@ class ProfilesController < ApplicationController
- authorize_resource :class => false
+ s... | Fix 2647: normal user is able to see profile
|
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
@@ -2,4 +2,8 @@ def show
@project = Project.find params[:id]
end
+
+ def index
+ @projects = ... | Add index action on projects controller
|
diff --git a/app/controllers/zipcodes_controller.rb b/app/controllers/zipcodes_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/zipcodes_controller.rb
+++ b/app/controllers/zipcodes_controller.rb
@@ -4,11 +4,12 @@ class ZipcodesController < ApplicationController
def show
@zipcode = session[:zip... | Add not found message to polling place method
|
diff --git a/lib/epub/constants.rb b/lib/epub/constants.rb
index abc1234..def5678 100644
--- a/lib/epub/constants.rb
+++ b/lib/epub/constants.rb
@@ -7,7 +7,8 @@ 'xhtml' => 'http://www.w3.org/1999/xhtml',
'epub' => 'http://www.idpf.org/2007/ops',
'm' => 'http://www.w3.org/1998/Math/MathML',
- ... | Add XML namespace for SMIL
|
diff --git a/lib/tasks/deploy.rake b/lib/tasks/deploy.rake
index abc1234..def5678 100644
--- a/lib/tasks/deploy.rake
+++ b/lib/tasks/deploy.rake
@@ -3,7 +3,7 @@ set :owned_by_user, 'app'
set :owned_by_group, 'deploy'
set :release_paths_to_be_owned_by_app, '.'
- set :shared_paths_to_be_owned_by_app, 'lo... | Revert back to default of whole directory
|
diff --git a/lib/tasks/lucene.rake b/lib/tasks/lucene.rake
index abc1234..def5678 100644
--- a/lib/tasks/lucene.rake
+++ b/lib/tasks/lucene.rake
@@ -2,8 +2,8 @@ namespace :couch do
desc "Load views in db/couch/* into the configured couchdb instance"
- task :migrate do
- Dir['db/couch/**/*.js'].each do ... | Load the environment from the migrate rake task
|
diff --git a/lib/yandex_captcha.rb b/lib/yandex_captcha.rb
index abc1234..def5678 100644
--- a/lib/yandex_captcha.rb
+++ b/lib/yandex_captcha.rb
@@ -18,8 +18,6 @@ yield(config)
end
- private
-
# Gives access to the current Configuration.
def self.configuration
@configuration ||= Configuration.new
| Fix private bug in main module
|
diff --git a/test/integration/test_database_result_set.rb b/test/integration/test_database_result_set.rb
index abc1234..def5678 100644
--- a/test/integration/test_database_result_set.rb
+++ b/test/integration/test_database_result_set.rb
@@ -0,0 +1,55 @@+require 'helper'
+
+class IntegrationTests::TestDatabaseResultSet ... | Add integration test for database result sets
|
diff --git a/git_evolution.gemspec b/git_evolution.gemspec
index abc1234..def5678 100644
--- a/git_evolution.gemspec
+++ b/git_evolution.gemspec
@@ -18,7 +18,7 @@ spec.executables = Dir['bin/*'].map { |f| File.basename(f) }
spec.require_paths = ['lib']
- spec.add_development_dependency 'bundler', '~> 1.7'
- ... | Fix development dependencies to include bundle, rake and rugged
|
diff --git a/app/jobs/tabular_import_operation_job.rb b/app/jobs/tabular_import_operation_job.rb
index abc1234..def5678 100644
--- a/app/jobs/tabular_import_operation_job.rb
+++ b/app/jobs/tabular_import_operation_job.rb
@@ -10,15 +10,15 @@ file: open_file(saved_upload.file)
)
import.run
- operation_... | 9991: Use new run_errors instead of old errors
|
diff --git a/app/models/state_machines/candidature.rb b/app/models/state_machines/candidature.rb
index abc1234..def5678 100644
--- a/app/models/state_machines/candidature.rb
+++ b/app/models/state_machines/candidature.rb
@@ -18,7 +18,7 @@ end
event :deny do
- transition :new => :deni... | Allow deny from accepted state.
|
diff --git a/webdriver-firefox.gemspec b/webdriver-firefox.gemspec
index abc1234..def5678 100644
--- a/webdriver-firefox.gemspec
+++ b/webdriver-firefox.gemspec
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
require 'webdriver-firefox/version'
-class RbConfig
+module RbConfig
class << self
def ... | Change RbConfig from a class to a module
|
diff --git a/tools/scripts/jeprof/aggregate_profile.rb b/tools/scripts/jeprof/aggregate_profile.rb
index abc1234..def5678 100644
--- a/tools/scripts/jeprof/aggregate_profile.rb
+++ b/tools/scripts/jeprof/aggregate_profile.rb
@@ -0,0 +1,49 @@+#! /usr/bin/ruby
+require 'csv'
+
+PROFILE = ARGF.argv.shift
+HEAP_INTERVAL = ... | Add script to aggregate-process heap file output.
|
diff --git a/jobs/regular/check_akismet_post.rb b/jobs/regular/check_akismet_post.rb
index abc1234..def5678 100644
--- a/jobs/regular/check_akismet_post.rb
+++ b/jobs/regular/check_akismet_post.rb
@@ -14,7 +14,7 @@ return if ReviewableQueuedPost.exists?(target: post)
client = Akismet::Client.build_client... | FIX: Call the correct post bouncer method
|
diff --git a/app/controllers/api/messages_controller.rb b/app/controllers/api/messages_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/messages_controller.rb
+++ b/app/controllers/api/messages_controller.rb
@@ -20,7 +20,7 @@ methods = Doorkeeper.configuration.access_token_methods
@token |... | Use shortcut method to find a single record
|
diff --git a/Casks/intellij-idea-eap.rb b/Casks/intellij-idea-eap.rb
index abc1234..def5678 100644
--- a/Casks/intellij-idea-eap.rb
+++ b/Casks/intellij-idea-eap.rb
@@ -1,8 +1,8 @@ cask :v1 => 'intellij-idea-eap' do
- version '139.463.4'
- sha256 '9c121f506136f9c658fe3246c6f69947d67184d523c8a3fdaf94e5065b80a918'
+ v... | Upgrade IntelliJ Idea EAP to v139.791.2
|
diff --git a/Casks/omnipresence-beta.rb b/Casks/omnipresence-beta.rb
index abc1234..def5678 100644
--- a/Casks/omnipresence-beta.rb
+++ b/Casks/omnipresence-beta.rb
@@ -0,0 +1,13 @@+cask :v1 => 'omnipresence-beta' do
+ version '1.4.x-r232733'
+ sha256 'c21289a7a90b4efc8f0eb9cf3775bb4bb19145688229cd886718881b2c34377a'... | Add Omnipresence beta track (currently 1.4)
This creates a new cask for the Omnipresence beta (at v1.4 at the
time of creation).
|
diff --git a/Casks/intellij-idea-community-eap.rb b/Casks/intellij-idea-community-eap.rb
index abc1234..def5678 100644
--- a/Casks/intellij-idea-community-eap.rb
+++ b/Casks/intellij-idea-community-eap.rb
@@ -1,9 +1,9 @@ class IntellijIdeaCommunityEap < Cask
- version '14'
- sha256 'bcea58e2f59356e9b10e33d40adbcd7ec7... | Upgrade IntelliJ CE EAP to 14 RC1 (139.144.2)
|
diff --git a/config/initializers/wrap_parameters.rb b/config/initializers/wrap_parameters.rb
index abc1234..def5678 100644
--- a/config/initializers/wrap_parameters.rb
+++ b/config/initializers/wrap_parameters.rb
@@ -12,3 +12,5 @@ ActiveSupport.on_load(:active_record) do
self.include_root_in_json = false
end
+
+Act... | Include root in ActiveResource JSON payloads, because Illyan expects it
|
diff --git a/cookbooks/wordpress/recipes/default.rb b/cookbooks/wordpress/recipes/default.rb
index abc1234..def5678 100644
--- a/cookbooks/wordpress/recipes/default.rb
+++ b/cookbooks/wordpress/recipes/default.rb
@@ -22,12 +22,10 @@
package "subversion"
-package "php5"
-package "php5-mysql"
+package "php"
+package ... | Update wordpress cookbook for Ubuntu 16.04
|
diff --git a/MDCustomNotificationsManager.podspec b/MDCustomNotificationsManager.podspec
index abc1234..def5678 100644
--- a/MDCustomNotificationsManager.podspec
+++ b/MDCustomNotificationsManager.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |s|
s.name = "MDCustomNotificationsManager"
- s.version =... | Increase pod version to 0.9.5.
|
diff --git a/lib/fubot/commands/fubot_who_is.rb b/lib/fubot/commands/fubot_who_is.rb
index abc1234..def5678 100644
--- a/lib/fubot/commands/fubot_who_is.rb
+++ b/lib/fubot/commands/fubot_who_is.rb
@@ -7,7 +7,8 @@ user = args[1]
values = KeyValue.get("Fubot:Whois:#{user}[]")
if values.size > 0
- bot.r... | Fix fubot who is command
|
diff --git a/lib/rubocop/ast/node/array_node.rb b/lib/rubocop/ast/node/array_node.rb
index abc1234..def5678 100644
--- a/lib/rubocop/ast/node/array_node.rb
+++ b/lib/rubocop/ast/node/array_node.rb
@@ -29,9 +29,12 @@ #
# @overload percent_literal?
# Check for any percent literal.
+ #
# ... | Fix overload documentation for ArrayNode
|
diff --git a/lib/tasks/email/notifications.rake b/lib/tasks/email/notifications.rake
index abc1234..def5678 100644
--- a/lib/tasks/email/notifications.rake
+++ b/lib/tasks/email/notifications.rake
@@ -6,7 +6,7 @@
user_accounts.each do |account|
days_before = account.reminder_days_before
- date_t... | Fix date to search on entries notification
|
diff --git a/app/controllers/review_controller.rb b/app/controllers/review_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/review_controller.rb
+++ b/app/controllers/review_controller.rb
@@ -9,7 +9,7 @@ @posts = Post.all
end
- @posts = @posts.includes(:reasons).includes(:feedbacks).whe... | Fix ambiguous query cause by adding feedback timestamps
|
diff --git a/db/migrate/20150210115300_detoxify_yaml.rb b/db/migrate/20150210115300_detoxify_yaml.rb
index abc1234..def5678 100644
--- a/db/migrate/20150210115300_detoxify_yaml.rb
+++ b/db/migrate/20150210115300_detoxify_yaml.rb
@@ -4,17 +4,44 @@ class Version < ActiveRecord::Base
end
+ def clean_yaml(yaml)
+ ... | Make the version YAML fix more robust
* Don't try to correct new versions created after the code changed, i.e.
where the image is already a string
* Fix the 'object' field as well, which also contained broken YAML.
* Don't try to fix blank YAML: if the event is destroy, then object_changes
is nil.
|
diff --git a/app/controllers/user_actions_controller.rb b/app/controllers/user_actions_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/user_actions_controller.rb
+++ b/app/controllers/user_actions_controller.rb
@@ -12,7 +12,7 @@
def assigned_to_group
if current_user.group.nil?
- redirect... | Fix bug in the redirect of the assigned_to_group method.
|
diff --git a/lib/ferrety_ferret.rb b/lib/ferrety_ferret.rb
index abc1234..def5678 100644
--- a/lib/ferrety_ferret.rb
+++ b/lib/ferrety_ferret.rb
@@ -7,9 +7,18 @@
def initialize(params)
clear_alerts
+ params = parse(params)
end
private
+
+ def parse(params)
+ if params.is_a?(Hash)
+... | Add acceptance of JSON and Hash params
|
diff --git a/lib/git_store/user.rb b/lib/git_store/user.rb
index abc1234..def5678 100644
--- a/lib/git_store/user.rb
+++ b/lib/git_store/user.rb
@@ -1,12 +1,5 @@ class GitStore
-
- class User
- attr_accessor :name, :email, :time
-
- def initialize(name, email, time)
- @name, @email, @time = name, email, tim... | Make User a Struct so it's faster and Comparable
|
diff --git a/lib/bummr/bisecter.rb b/lib/bummr/bisecter.rb
index abc1234..def5678 100644
--- a/lib/bummr/bisecter.rb
+++ b/lib/bummr/bisecter.rb
@@ -6,7 +6,9 @@ puts "Bad commits found! Bisecting...".red
system("bundle")
- system("git bisect start head master")
+ system("git bisect start")
+ ... | Make bisect work with old git 1.9.1
I found that git version 1.9.1 under Debian wheezy does not like
combining the bad & good commands into the bisect start command like so;
git bisect start head master. It starts bisect correctly but it doesn't
set the bad & good points.
|
diff --git a/lib/grape/kaminari.rb b/lib/grape/kaminari.rb
index abc1234..def5678 100644
--- a/lib/grape/kaminari.rb
+++ b/lib/grape/kaminari.rb
@@ -1,4 +1,5 @@ require "grape/kaminari/version"
+require "grape/kaminari/max_value_validator"
require "kaminari/grape"
module Grape
@@ -17,12 +18,16 @@ end
... | Add max value validator to parameter
|
diff --git a/lib/layer/identity.rb b/lib/layer/identity.rb
index abc1234..def5678 100644
--- a/lib/layer/identity.rb
+++ b/lib/layer/identity.rb
@@ -17,5 +17,10 @@ def self.url
'/identity'
end
+
+ def attributes=(attributes)
+ attributes['metadata'] ||= {}
+ super
+ end
end
end
| Make sure the metadata object is always present on Identity resources
|
diff --git a/lib/hn_history/app.rb b/lib/hn_history/app.rb
index abc1234..def5678 100644
--- a/lib/hn_history/app.rb
+++ b/lib/hn_history/app.rb
@@ -2,8 +2,21 @@ require 'hn_history/api'
require 'hn_history/web'
+if ENV['RACK_ENV'] == "production"
+ require 'oboe'
+ require 'oboe/inst/rack'
+
+ Oboe::Config[:trac... | Add Oboe in production environment
|
diff --git a/app/controllers/renalware/users_controller.rb b/app/controllers/renalware/users_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/renalware/users_controller.rb
+++ b/app/controllers/renalware/users_controller.rb
@@ -2,10 +2,6 @@
require_dependency "renalware"
-# Note we rely on template... | Hide users marked as 'hidden' on the Renal -> Users list
|
diff --git a/lib/manbook/parser.rb b/lib/manbook/parser.rb
index abc1234..def5678 100644
--- a/lib/manbook/parser.rb
+++ b/lib/manbook/parser.rb
@@ -10,7 +10,14 @@ # <h2>NAME</h2>
# <p style="margin-left:11%; margin-top: 1em">git − the stupid content tracker</p>
#
- title = Nokogi... | Add title extraction for non-trivial HTML pages
|
diff --git a/lib/query_comments.rb b/lib/query_comments.rb
index abc1234..def5678 100644
--- a/lib/query_comments.rb
+++ b/lib/query_comments.rb
@@ -5,6 +5,9 @@
module ActiveRecordInstrumentation
def self.included(instrumented_class)
+ if defined? Rails.application
+ QueryComments.application_name ... | Set the application_name to the rails app name by default (in Rails 3)
|
diff --git a/lib/mrkt/concerns/connection.rb b/lib/mrkt/concerns/connection.rb
index abc1234..def5678 100644
--- a/lib/mrkt/concerns/connection.rb
+++ b/lib/mrkt/concerns/connection.rb
@@ -11,9 +11,7 @@ conn.request :multipart
conn.request :url_encoded
- if @debug
- conn.response :log... | Use modifier instead of a block
|
diff --git a/spec/controllers/api/api_controller_spec.rb b/spec/controllers/api/api_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/api/api_controller_spec.rb
+++ b/spec/controllers/api/api_controller_spec.rb
@@ -1,7 +1,7 @@ require 'rails_helper'
RSpec.describe API::APIController, type: :con... | Work around strange anonymous controller behaviour
|
diff --git a/lib/shoulda/matchers/routing.rb b/lib/shoulda/matchers/routing.rb
index abc1234..def5678 100644
--- a/lib/shoulda/matchers/routing.rb
+++ b/lib/shoulda/matchers/routing.rb
@@ -1,7 +1,7 @@ module Shoulda
module Matchers
+ # @private
module Routing
- # @private
def route(method, path)
... | Hide Routing module in docs
[ci skip]
|
diff --git a/lib/spontaneous/rack/helpers.rb b/lib/spontaneous/rack/helpers.rb
index abc1234..def5678 100644
--- a/lib/spontaneous/rack/helpers.rb
+++ b/lib/spontaneous/rack/helpers.rb
@@ -13,7 +13,7 @@ end
def script_list(scripts)
- if Spontaneous.development?
+ # if Spontaneous.developmen... | Remove env test for scripts -- bundling etc should be done by gem creation process
|
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
@@ -44,7 +44,7 @@ end
def terminate
- # noop
+ terminate_plugins
end
def root
@@ -63,5 +63,12 @@ end
end
+ def terminate_plugi... | Terminate plugins on Runtime termination
|
diff --git a/lib/video_transcoding/ffmpeg.rb b/lib/video_transcoding/ffmpeg.rb
index abc1234..def5678 100644
--- a/lib/video_transcoding/ffmpeg.rb
+++ b/lib/video_transcoding/ffmpeg.rb
@@ -23,8 +23,6 @@
if output =~ /--enable-libfdk-aac/
properties[:aac_encoder] = 'libfdk_aac'
- elsif output... | Remove support for FAAC from "FFmpeg" module.
|
diff --git a/app/models/metrics.rb b/app/models/metrics.rb
index abc1234..def5678 100644
--- a/app/models/metrics.rb
+++ b/app/models/metrics.rb
@@ -18,7 +18,7 @@ return values
end
- scores = []
+ scores = values
repositories = Repository.all
repositories.each do |repository|
score =... | Change source of scores for value normalization
Instead of starting with an empty array for the normalization of metric
scores, the array is initialized with the values passed to the method.
This way exceptions can be prevented, if there are no scores available.
Signed-off-by: Konrad Reiche <4ff0213f56e2082fcd8c882d0... |
diff --git a/lib/chicago/etl/sequel/load_data_infile.rb b/lib/chicago/etl/sequel/load_data_infile.rb
index abc1234..def5678 100644
--- a/lib/chicago/etl/sequel/load_data_infile.rb
+++ b/lib/chicago/etl/sequel/load_data_infile.rb
@@ -8,7 +8,7 @@ end
def load_csv_infile_sql(filepath, columns)
-... | Fix 1.9 bug with load_csv_infile.
[:foo].to_s returns "foo" in ruby 1.8.7, but returns "[:foo]" in ruby
1.9.3. Take the first element of the opts[:from] array to fix this.
|
diff --git a/cookbooks/chef/attributes/default.rb b/cookbooks/chef/attributes/default.rb
index abc1234..def5678 100644
--- a/cookbooks/chef/attributes/default.rb
+++ b/cookbooks/chef/attributes/default.rb
@@ -5,4 +5,4 @@ default[:chef][:server][:version] = "12.17.33"
# Set the default client version
-default[:chef][... | Update chef client to 16.5.64
|
diff --git a/cookbooks/otrs/attributes/default.rb b/cookbooks/otrs/attributes/default.rb
index abc1234..def5678 100644
--- a/cookbooks/otrs/attributes/default.rb
+++ b/cookbooks/otrs/attributes/default.rb
@@ -1,13 +1,13 @@ default[:otrs][:version] = "6.0.30"
default[:otrs][:user] = "otrs"
default[:otrs][:group] = nil... | Upgrade OTRS to postgres 13
|
diff --git a/lib/fabrication/generator/active_record.rb b/lib/fabrication/generator/active_record.rb
index abc1234..def5678 100644
--- a/lib/fabrication/generator/active_record.rb
+++ b/lib/fabrication/generator/active_record.rb
@@ -8,8 +8,9 @@ method_name = method_name.to_s
if block_given?
options = ar... | Move count determination into block that uses it
|
diff --git a/lib/spiderfw/controller/page_controller.rb b/lib/spiderfw/controller/page_controller.rb
index abc1234..def5678 100644
--- a/lib/spiderfw/controller/page_controller.rb
+++ b/lib/spiderfw/controller/page_controller.rb
@@ -21,9 +21,8 @@ end
def init_template(path)
- templ... | Fix for new template sintax
|
diff --git a/lib/dry/result_matcher/either_matcher.rb b/lib/dry/result_matcher/either_matcher.rb
index abc1234..def5678 100644
--- a/lib/dry/result_matcher/either_matcher.rb
+++ b/lib/dry/result_matcher/either_matcher.rb
@@ -5,21 +5,21 @@ EitherMatcher = Dry::ResultMatcher::Matcher.new(
success: Case.new(
... | Remove EitherMatcher’s to_either respond_to checks
We can just assume that this is a standard part of the interface for any object that this matcher works with. |
diff --git a/lib/gitomator/github/tagging_provider.rb b/lib/gitomator/github/tagging_provider.rb
index abc1234..def5678 100644
--- a/lib/gitomator/github/tagging_provider.rb
+++ b/lib/gitomator/github/tagging_provider.rb
@@ -0,0 +1,74 @@+require 'gitomator/github/base_hosting_provider'
+require 'gitomator/model/hosting... | Add a GitHub tagging provider (can tag issues/pull-requests, and maintain tag metadata)
|
diff --git a/lib/peepshot/rails/helpers/image_tags.rb b/lib/peepshot/rails/helpers/image_tags.rb
index abc1234..def5678 100644
--- a/lib/peepshot/rails/helpers/image_tags.rb
+++ b/lib/peepshot/rails/helpers/image_tags.rb
@@ -5,7 +5,7 @@ def peepshot_image_tag(url, options)
width = find_width(options)... | Allow for other image_tag options than width and heigt - for instance class, id, etc.
|
diff --git a/test/processors/instagram_processor_test.rb b/test/processors/instagram_processor_test.rb
index abc1234..def5678 100644
--- a/test/processors/instagram_processor_test.rb
+++ b/test/processors/instagram_processor_test.rb
@@ -32,7 +32,7 @@
def test_ids
result.value!.each do |entity|
- exp... | Fix id expectation for IG processor test
|
diff --git a/minitest-tagz.gemspec b/minitest-tagz.gemspec
index abc1234..def5678 100644
--- a/minitest-tagz.gemspec
+++ b/minitest-tagz.gemspec
@@ -23,7 +23,6 @@
spec.add_development_dependency "bundler"
spec.add_development_dependency "rake", "~> 10.0"
- spec.add_development_dependency "minitest"
spec.add_... | Fix gemspec minitest dependency discrepency
|
diff --git a/invariant.gemspec b/invariant.gemspec
index abc1234..def5678 100644
--- a/invariant.gemspec
+++ b/invariant.gemspec
@@ -17,4 +17,5 @@ gem.require_paths = ["lib"]
gem.add_development_dependency('rspec', "~> 2.12.0")
+ gem.add_development_dependency('rake')
end
| Add rake to development gemspec
|
diff --git a/kangaruby.gemspec b/kangaruby.gemspec
index abc1234..def5678 100644
--- a/kangaruby.gemspec
+++ b/kangaruby.gemspec
@@ -20,4 +20,7 @@
spec.add_development_dependency "bundler", "~> 1.3"
spec.add_development_dependency "rake"
+ spec.add_development_dependency "rspec"
+ spec.add_development_dependen... | Add more required gems to the gemspec
|
diff --git a/lib/hpcloud/commands/containers/add.rb b/lib/hpcloud/commands/containers/add.rb
index abc1234..def5678 100644
--- a/lib/hpcloud/commands/containers/add.rb
+++ b/lib/hpcloud/commands/containers/add.rb
@@ -8,7 +8,7 @@ or without the preceding colon: 'my_container' or ':my_container'.
Examples:
- hpclou... | Fix a typo in the example.
|
diff --git a/lib/infoblox/resource/host_ipv4addr.rb b/lib/infoblox/resource/host_ipv4addr.rb
index abc1234..def5678 100644
--- a/lib/infoblox/resource/host_ipv4addr.rb
+++ b/lib/infoblox/resource/host_ipv4addr.rb
@@ -5,7 +5,9 @@ :mac,
:network,
... | Add bootfile and use_bootfile to HostIpv4addr
|
diff --git a/lib/rails-footnotes/notes/view_note.rb b/lib/rails-footnotes/notes/view_note.rb
index abc1234..def5678 100644
--- a/lib/rails-footnotes/notes/view_note.rb
+++ b/lib/rails-footnotes/notes/view_note.rb
@@ -12,7 +12,6 @@
def initialize(controller)
@controller = controller
- @template =... | Remove variable for not having @template in controller
|
diff --git a/lib/solidus_paypal_braintree/engine.rb b/lib/solidus_paypal_braintree/engine.rb
index abc1234..def5678 100644
--- a/lib/solidus_paypal_braintree/engine.rb
+++ b/lib/solidus_paypal_braintree/engine.rb
@@ -17,6 +17,8 @@ Rails.configuration.cache_classes ? require(c) : load(c)
end
end
+
+ ... | Add backend JS to precompile list
|
diff --git a/lib/tasks/check_route_consistency.rake b/lib/tasks/check_route_consistency.rake
index abc1234..def5678 100644
--- a/lib/tasks/check_route_consistency.rake
+++ b/lib/tasks/check_route_consistency.rake
@@ -1,7 +1,7 @@ require "route_consistency_checker"
def report_errors(errors)
- Airbrake.notify_sync(
+... | Use GovukError instead of Airbrake
|
diff --git a/recipes/msys2/50-install-components.rake b/recipes/msys2/50-install-components.rake
index abc1234..def5678 100644
--- a/recipes/msys2/50-install-components.rake
+++ b/recipes/msys2/50-install-components.rake
@@ -1,11 +1,15 @@-# Use one file out of many to indicate installation of devtools
-self.devtools = ... | Use pacman cache of the main MSYS2 environment
|
diff --git a/lib/connection.rb b/lib/connection.rb
index abc1234..def5678 100644
--- a/lib/connection.rb
+++ b/lib/connection.rb
@@ -11,13 +11,21 @@ def read(sensor)
@socket.write("GET #{sensor}\n")
result = @socket.readline.split(" ")
- result[1].to_i
+ float_or_nil(result[1])
end
... | Return nil when the resulting value is missing.
|
diff --git a/lib/decorators.rb b/lib/decorators.rb
index abc1234..def5678 100644
--- a/lib/decorators.rb
+++ b/lib/decorators.rb
@@ -1,6 +1,5 @@ module Decorators
require 'decorators/paths'
- require 'decorators/railtie'
class << self
def load!(cache_classes)
@@ -32,3 +31,5 @@ end
end
+
+require 'dec... | Fix require order (thank @spaceghost for finding this)
|
diff --git a/spec/rackstash/encoders/logstash_spec.rb b/spec/rackstash/encoders/logstash_spec.rb
index abc1234..def5678 100644
--- a/spec/rackstash/encoders/logstash_spec.rb
+++ b/spec/rackstash/encoders/logstash_spec.rb
@@ -15,7 +15,7 @@ it 'formats the passed event hash as a JSON string and includes @version' do
... | Resolve Ruby warning in spec for Rackstash::Encoders::Logstash
This resolves the following warning:
> spec/rackstash/encoders/logstash_spec.rb:18: warning: ambiguous first
> argument; put parentheses or a space even after `/' operator
|
diff --git a/spec/search_object/plugin/paging_spec.rb b/spec/search_object/plugin/paging_spec.rb
index abc1234..def5678 100644
--- a/spec/search_object/plugin/paging_spec.rb
+++ b/spec/search_object/plugin/paging_spec.rb
@@ -30,6 +30,14 @@ search = search_class.new({}, -1)
expect(search.page).to eq 1
... | Document with spec requirement of per_page method
|
diff --git a/config/application.rb b/config/application.rb
index abc1234..def5678 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -21,7 +21,7 @@
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for findi... | Set the timezone to CST
|
diff --git a/config/application.rb b/config/application.rb
index abc1234..def5678 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -11,5 +11,7 @@ # Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initialize... | Add libs to the load path
|
diff --git a/config/config_ruby.rb b/config/config_ruby.rb
index abc1234..def5678 100644
--- a/config/config_ruby.rb
+++ b/config/config_ruby.rb
@@ -1,18 +1,18 @@ require 'rbconfig'
-CONFIG = Config::MAKEFILE_CONFIG
+CONFIG = RbConfig::MAKEFILE_CONFIG
case ARGV[0]
when "archdir"
- puts Config::expand(CONFIG[... | Use RbConfig instead of obsolete and deprecated Config (7, 17 May 2013)
|
diff --git a/config/initializers/rws.rb b/config/initializers/rws.rb
index abc1234..def5678 100644
--- a/config/initializers/rws.rb
+++ b/config/initializers/rws.rb
@@ -0,0 +1,4 @@+RakutenWebService.configuration do |c|
+ c.application_id = ENV['RWS_APPLICATION_ID']
+ c.affiliate_id = ENV['RWS_AFFILIATE_ID']
+end
| Define intializer to set RakutenWebService configuration.
|
diff --git a/lib/transforms.rb b/lib/transforms.rb
index abc1234..def5678 100644
--- a/lib/transforms.rb
+++ b/lib/transforms.rb
@@ -4,7 +4,7 @@ def to_url
return if self.nil?
- self.downcase.tr("\"'", '').strip.gsub(/\W/, '-').tr(' ', '-').squeeze('-')
+ self.downcase.tr("\"'", '').gsub(/\W/, ' ').strip... | Tweak permalink transformation again so existing tests don't break
git-svn-id: 70ab0960c3db1cbf656efd6df54a8f3de72dc710@1014 820eb932-12ee-0310-9ca8-eeb645f39767
|
diff --git a/lib/zenvia/sms.rb b/lib/zenvia/sms.rb
index abc1234..def5678 100644
--- a/lib/zenvia/sms.rb
+++ b/lib/zenvia/sms.rb
@@ -1,5 +1,3 @@-require './zenvia/base'
-
module Zenvia
class Sms
include Base
| Remove require zenvia base from Sms class
|
diff --git a/spec/features/event_stream_spec.rb b/spec/features/event_stream_spec.rb
index abc1234..def5678 100644
--- a/spec/features/event_stream_spec.rb
+++ b/spec/features/event_stream_spec.rb
@@ -3,6 +3,7 @@ feature "Event streaming", js: true do
let!(:author) { FactoryGirl.create :user }
let!(:paper) { auth... | Add edit page spec and sleep for race condition.
|
diff --git a/spec/performance/benchmark_spec.rb b/spec/performance/benchmark_spec.rb
index abc1234..def5678 100644
--- a/spec/performance/benchmark_spec.rb
+++ b/spec/performance/benchmark_spec.rb
@@ -23,7 +23,7 @@ it "correctly loops through events" do
measurement = Measurement.new
- fsm = FiniteMachine.de... | Change to fix perf spec
|
diff --git a/sensu-plugins.gemspec b/sensu-plugins.gemspec
index abc1234..def5678 100644
--- a/sensu-plugins.gemspec
+++ b/sensu-plugins.gemspec
@@ -2,7 +2,7 @@
Gem::Specification.new do |s|
s.name = 'sensu-plugins'
- s.version = Sensu::Plugins::VERSION
+ s.version = Sensu::Plugin::VERSION
... | Move VERSION to Sensu::Plugin, not Sensu::Plugins
|
diff --git a/week-4/basic-math.rb b/week-4/basic-math.rb
index abc1234..def5678 100644
--- a/week-4/basic-math.rb
+++ b/week-4/basic-math.rb
@@ -0,0 +1,84 @@+# Solution Below
+
+# RSpec Tests. They are included in this file because the local variables you are creating are not accessible across files. If we try to run t... | Add arithmetic operations - 0 failures
|
diff --git a/server/app/controllers/wants_controller.rb b/server/app/controllers/wants_controller.rb
index abc1234..def5678 100644
--- a/server/app/controllers/wants_controller.rb
+++ b/server/app/controllers/wants_controller.rb
@@ -1,23 +1,79 @@ class WantsController < ApplicationController
+ before_action :wants_fin... | Add json crud routes to wants controller
|
diff --git a/matrioska.gemspec b/matrioska.gemspec
index abc1234..def5678 100644
--- a/matrioska.gemspec
+++ b/matrioska.gemspec
@@ -7,7 +7,7 @@ s.version = Matrioska::VERSION
s.authors = ["Luca Pradovera"]
s.email = ["lpradovera@mojolingo.com"]
- s.homepage = "https://github.com/polysics/matr... | Switch to new official project repo |
diff --git a/net-http2.gemspec b/net-http2.gemspec
index abc1234..def5678 100644
--- a/net-http2.gemspec
+++ b/net-http2.gemspec
@@ -22,6 +22,6 @@ spec.add_dependency "http-2", "~> 0.10.1"
spec.add_development_dependency "bundler"
- spec.add_development_dependency "rake", "~> 10.0"
+ spec.add_development_depen... | Upgrade ruby rake dependency (security).
|
diff --git a/lib/devise_cas_authenticatable/strategy.rb b/lib/devise_cas_authenticatable/strategy.rb
index abc1234..def5678 100644
--- a/lib/devise_cas_authenticatable/strategy.rb
+++ b/lib/devise_cas_authenticatable/strategy.rb
@@ -34,7 +34,11 @@ def service_url
u = URI.parse(request.url)
u.que... | Support both new and old mapping API
|
diff --git a/db/migrate/20141110212340_create_districts.rb b/db/migrate/20141110212340_create_districts.rb
index abc1234..def5678 100644
--- a/db/migrate/20141110212340_create_districts.rb
+++ b/db/migrate/20141110212340_create_districts.rb
@@ -0,0 +1,11 @@+class CreateDistricts < ActiveRecord::Migration
+ def change
... | Add create districts migration file
|
diff --git a/Casks/omnioutliner.rb b/Casks/omnioutliner.rb
index abc1234..def5678 100644
--- a/Casks/omnioutliner.rb
+++ b/Casks/omnioutliner.rb
@@ -4,7 +4,7 @@
url "http://downloads2.omnigroup.com/software/MacOSX/10.10/OmniOutliner-#{version}.dmg"
name 'OmniOutliner'
- homepage 'http://www.omnigroup.com/omniou... | Fix homepage to use SSL in OmniOutliner Cask
The HTTP URL is already getting redirected to HTTPS. Using the HTTPS URL directly
makes it more secure and saves a HTTP round-trip.
|
diff --git a/spec/interval_spec.rb b/spec/interval_spec.rb
index abc1234..def5678 100644
--- a/spec/interval_spec.rb
+++ b/spec/interval_spec.rb
@@ -32,5 +32,15 @@ i.cromatic_interval.should == 16
end
+ it "class of interval do-mi should be 3M" do
+ i = Interval.new('do', 'mi', 0)
+ i.interval_class.sho... | Add 2 examples for new method interval_class
|
diff --git a/spec/resource_spec.rb b/spec/resource_spec.rb
index abc1234..def5678 100644
--- a/spec/resource_spec.rb
+++ b/spec/resource_spec.rb
@@ -6,12 +6,12 @@
@stack = Yutani.stack(:s1) {
scope(:rnameA) {
- resource(:rtype) {
+ resource(:rtype, :x, y: 'a') {
propZ hiera(:foo)
... | Add test for new resource sig
|
diff --git a/app/serializers/sector_preview_serializer.rb b/app/serializers/sector_preview_serializer.rb
index abc1234..def5678 100644
--- a/app/serializers/sector_preview_serializer.rb
+++ b/app/serializers/sector_preview_serializer.rb
@@ -1,7 +1,7 @@ class SectorPreviewSerializer < ActiveModel::Serializer
cache ke... | Revise the sector_preview serializer output
|
diff --git a/test/spec/resources/monit_config_spec.rb b/test/spec/resources/monit_config_spec.rb
index abc1234..def5678 100644
--- a/test/spec/resources/monit_config_spec.rb
+++ b/test/spec/resources/monit_config_spec.rb
@@ -18,17 +18,10 @@
describe PoiseMonit::Resources::MonitConfig do
step_into(:monit_config)
- ... | Use the new dummy provider (which happens by default on chefspec). |
diff --git a/test/lib/rubycritic/source_locator_test.rb b/test/lib/rubycritic/source_locator_test.rb
index abc1234..def5678 100644
--- a/test/lib/rubycritic/source_locator_test.rb
+++ b/test/lib/rubycritic/source_locator_test.rb
@@ -22,6 +22,11 @@ Rubycritic::SourceLocator.new(["."]).source_files.must_equal files
... | Test how Source Locator deals with non-existent files
|
diff --git a/chef/cookbooks/python-dev/recipes/default.rb b/chef/cookbooks/python-dev/recipes/default.rb
index abc1234..def5678 100644
--- a/chef/cookbooks/python-dev/recipes/default.rb
+++ b/chef/cookbooks/python-dev/recipes/default.rb
@@ -7,3 +7,10 @@ ].each do |p|
package p
end
+
+bash "install_pipmodules" do
+ ... | Install pip module "nose" to simplify Tests
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.