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
@@ -5,8 +5,8 @@ return unless File.exists?('.env')
File.readlines('.env').each do |line|
- values = line.split('=')
- ENV[values.first] = values.last.chomp
+ key, valu... | Clean up environment reading for specs
|
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
@@ -12,9 +12,14 @@ require 'rspec/rails'
require 'rspec/autorun'
require 'capybara/rspec'
+require 'capybara/poltergeist'
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| ... | Use poltergeist as js driver for capybara
|
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,6 +1,8 @@-unless ENV['TRAVIS']
+unless ENV['CI']
require 'simplecov'
- SimpleCov.start
+ SimpleCov.start do
+ add_filter 'spec'
+ end
end
require 'rspec'
@@ -32,4 +... | Exclude specs from code coverage report
|
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
@@ -8,6 +8,7 @@ logfile = File.open(File.expand_path("../../log/test.log", __FILE__), 'a')
logfile.sync = true
Celluloid.logger = Logger.new(logfile)
+Celluloid.shutdown_timeout = 1... | Change the default shutdown timeout in specs to 1 second
|
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
@@ -21,8 +21,7 @@ config.run_all_when_everything_filtered = true
# Set a default platform (this is overridden as needed)
- config.platform = 'ubuntu'
- config.version = '1... | Remove the default platform version from the chefspec
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
|
diff --git a/spec/winnow_spec.rb b/spec/winnow_spec.rb
index abc1234..def5678 100644
--- a/spec/winnow_spec.rb
+++ b/spec/winnow_spec.rb
@@ -27,5 +27,15 @@
expect(fprint_hashes).to eq hashes
end
+
+ it 'chooses the smallest hash per window' do
+ # window size = t - k + 1 = 2 ; for a two-char string... | Add test for simple case with only one window.
|
diff --git a/lib/arena/block.rb b/lib/arena/block.rb
index abc1234..def5678 100644
--- a/lib/arena/block.rb
+++ b/lib/arena/block.rb
@@ -14,31 +14,38 @@ :connection_id, :connected_at, :connected_by_user_id, :connected_by_username
def user
- @user ||= Arena::User.new(@attrs.dup['user'])
+ @user ||... | Remove duplication, better handling of types with convenience methods for optional portions of response
|
diff --git a/lib/updown/call.rb b/lib/updown/call.rb
index abc1234..def5678 100644
--- a/lib/updown/call.rb
+++ b/lib/updown/call.rb
@@ -37,7 +37,7 @@ JSON.parse yield
rescue RestClient::BadRequest, RestClient::Unauthorized, RestClient::ResourceNotFound => e
result = (JSON.parse(e.response) rescue {})... | Update exception message when no 'error'.
Hi,
In case key 'error' has not been set into result hash, shouldn't we set the exception message with e.response instead of e.reponse (I'm not sure it exists, isn't it ?)
Thank you. |
diff --git a/config/initializers/paperclip.rb b/config/initializers/paperclip.rb
index abc1234..def5678 100644
--- a/config/initializers/paperclip.rb
+++ b/config/initializers/paperclip.rb
@@ -5,7 +5,8 @@ hash_secret: ENV.fetch("ANNICT_PAPERCLIP_RANDOM_SECRET"),
path: ENV.fetch("ANNICT_PAPERCLIP_PATH"),
styles:... | Add default_url to Paperclip config
|
diff --git a/config/schedule.rb b/config/schedule.rb
index abc1234..def5678 100644
--- a/config/schedule.rb
+++ b/config/schedule.rb
@@ -2,7 +2,8 @@
set :output, File.join(File.expand_path(File.dirname(__FILE__)), "log", "cron_log.log")
-job_type :rake, "cd :path && RAILS_ENV=:environment /home/rails/.rvm/bin/ra... | Delete cached files older than 3 days via cron
|
diff --git a/AeroGearHttp.podspec b/AeroGearHttp.podspec
index abc1234..def5678 100644
--- a/AeroGearHttp.podspec
+++ b/AeroGearHttp.podspec
@@ -6,7 +6,7 @@ s.license = 'Apache License, Version 2.0'
s.author = "Red Hat, Inc."
s.source = { :git => 'https://github.com/aerogear/aerogear-ios-http.g... | Set back min deployment to7.0 |
diff --git a/Casks/apns-pusher.rb b/Casks/apns-pusher.rb
index abc1234..def5678 100644
--- a/Casks/apns-pusher.rb
+++ b/Casks/apns-pusher.rb
@@ -2,10 +2,10 @@ version '2.3'
sha256 '6aa54050bea8603b45e6737bf2cc6997180b1a58f1d02095f5141176a1335205'
- url "https://github.com/blommegard/APNS-Pusher/releases/downloa... | Fix the URLs of APNS Pusher
|
diff --git a/sciencemag_latest_news.gemspec b/sciencemag_latest_news.gemspec
index abc1234..def5678 100644
--- a/sciencemag_latest_news.gemspec
+++ b/sciencemag_latest_news.gemspec
@@ -20,9 +20,8 @@ spec.executables = "sciencemag_latest_news"
spec.require_paths = ["lib"]
- spec.add_development_dependency "bundl... | Update dependencies and remove pry
|
diff --git a/lib/deface/template_helper.rb b/lib/deface/template_helper.rb
index abc1234..def5678 100644
--- a/lib/deface/template_helper.rb
+++ b/lib/deface/template_helper.rb
@@ -16,7 +16,9 @@ #this needs to be reviewed for production mode, overrides not present
Rails.application.config.deface.enabled = ... | Disable cache when loading template source
|
diff --git a/Casks/rest-client.rb b/Casks/rest-client.rb
index abc1234..def5678 100644
--- a/Casks/rest-client.rb
+++ b/Casks/rest-client.rb
@@ -1,7 +1,7 @@ class RestClient < Cask
- url 'https://rest-client.googlecode.com/files/restclient-ui-3.2-app.zip'
+ url 'https://rest-client.googlecode.com/files/restclient-ui-... | Update Rest client to version 3.2.1
|
diff --git a/spec/capistrano_fastly_spec.rb b/spec/capistrano_fastly_spec.rb
index abc1234..def5678 100644
--- a/spec/capistrano_fastly_spec.rb
+++ b/spec/capistrano_fastly_spec.rb
@@ -1,5 +1,13 @@ require 'spec_helper'
describe Capistrano::Fastly do
- pending "YOOOOOOO!"
+ before do
+ @configuration = ... | Test for existence of purge_all task
|
diff --git a/lib/dry/monitor/sql/logger.rb b/lib/dry/monitor/sql/logger.rb
index abc1234..def5678 100644
--- a/lib/dry/monitor/sql/logger.rb
+++ b/lib/dry/monitor/sql/logger.rb
@@ -7,7 +7,7 @@ class Logger
extend Dry::Configurable
- setting :theme, Rouge::Themes::Gruvbox
+ setting :theme,... | Fix default config for rouge
|
diff --git a/lib/webpagetest/connection.rb b/lib/webpagetest/connection.rb
index abc1234..def5678 100644
--- a/lib/webpagetest/connection.rb
+++ b/lib/webpagetest/connection.rb
@@ -3,21 +3,22 @@ module Connection
ENDPOINT = 'http://www.webpagetest.org/'
+ FARADAY_OPTIONS = {
+ request: :url_encoded,
+ ... | Add option to override faraday options
This allows you to redefine Webpagetest::Connection::FARADAY_OPTIONS to
silence logging, by not adding `response: :logger`
|
diff --git a/lib/aruba-doubles/cucumber.rb b/lib/aruba-doubles/cucumber.rb
index abc1234..def5678 100644
--- a/lib/aruba-doubles/cucumber.rb
+++ b/lib/aruba-doubles/cucumber.rb
@@ -3,11 +3,11 @@ World(ArubaDoubles)
Before do
- Double.setup
+ ArubaDoubles::Double.setup
end
After do
- Double.teardown
+ ArubaDo... | Fix missing constant bug under Ruby 1.8.7
|
diff --git a/metasploit-credential.gemspec b/metasploit-credential.gemspec
index abc1234..def5678 100644
--- a/metasploit-credential.gemspec
+++ b/metasploit-credential.gemspec
@@ -20,8 +20,8 @@
# Various Metasploit::Credential records have associations to Mdm records
s.add_runtime_dependency 'metasploit_data_mo... | Fix order of runtime dependencies
MSP-9605
|
diff --git a/features/step_definitions/view_quarters_steps.rb b/features/step_definitions/view_quarters_steps.rb
index abc1234..def5678 100644
--- a/features/step_definitions/view_quarters_steps.rb
+++ b/features/step_definitions/view_quarters_steps.rb
@@ -1,5 +1,9 @@ Then(/^I should see the names of each list from the... | Fix step definitions to wait for ProgressBar to disappear before checking list
|
diff --git a/distillery.gemspec b/distillery.gemspec
index abc1234..def5678 100644
--- a/distillery.gemspec
+++ b/distillery.gemspec
@@ -22,4 +22,8 @@ s.add_dependency('nokogiri', '> 1.0')
s.add_development_dependency('rspec', '> 2.0')
+ s.add_development_dependency('guard')
+ s.add_development_dependency('g... | Add dev gems to gemspec.
|
diff --git a/part-2/sock_drawer.rb b/part-2/sock_drawer.rb
index abc1234..def5678 100644
--- a/part-2/sock_drawer.rb
+++ b/part-2/sock_drawer.rb
@@ -5,4 +5,13 @@ @socks = args.fetch(:socks) { Array.new }
@matcher = args.fetch(:matcher)
end
+
+ def supply_match_for(possible_match)
+ # iterate through all... | Add method to supply match from sockdrawer
|
diff --git a/app/controllers/queries_controller.rb b/app/controllers/queries_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/queries_controller.rb
+++ b/app/controllers/queries_controller.rb
@@ -12,6 +12,10 @@ @language = @query.language
end
+ def new
+ @query = language.queries.new
+ en... | Add query new path, comment out bing_new path - because in modal
|
diff --git a/app/models/person_detail_retriever.rb b/app/models/person_detail_retriever.rb
index abc1234..def5678 100644
--- a/app/models/person_detail_retriever.rb
+++ b/app/models/person_detail_retriever.rb
@@ -8,11 +8,32 @@
# add details for our person from secondary apis
def retrieve!
- person_detail = In... | Refactor to more easily skip steps for non-elected
Supports #255
|
diff --git a/aptible-auth.gemspec b/aptible-auth.gemspec
index abc1234..def5678 100644
--- a/aptible-auth.gemspec
+++ b/aptible-auth.gemspec
@@ -22,7 +22,7 @@
spec.add_dependency 'aptible-resource', '~> 1.0'
spec.add_dependency 'gem_config'
- spec.add_dependency 'oauth2', '~> 1.4'
+ spec.add_dependency 'oauth2... | Fix oauth2 dependency to 1.4.7
Currently, oauth2 1.4.8 includes a change that causes aptible-cli to break when attempting authorization: https://github.com/oauth-xx/oauth2/issues/572
The underlying cause is a hash not being converted to a string, which Faraday's default adapter provides. This will need to be fixed in ... |
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -1,3 +1,20 @@ class ApplicationController < ActionController::Base
protect_from_forgery w... | Add helpers for current chef, logged in, and require_user
|
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -1,7 +1,7 @@ class ApplicationController < ActionController::Base
# Prevent CSRF attacks ... | Change protect_from_forgery to null_session do to Api calls
|
diff --git a/demo/applique/bezel.rb b/demo/applique/bezel.rb
index abc1234..def5678 100644
--- a/demo/applique/bezel.rb
+++ b/demo/applique/bezel.rb
@@ -1,13 +1,14 @@-# require bezel
+# Use a dummy Gem location for this example.
+dummy_gem_home = File.expand_path('../fixtures', File.dirname(__FILE__))
+ENV['GEM_HOME'... | Reset gem specs for testing. [test]
|
diff --git a/test/test_helper.rb b/test/test_helper.rb
index abc1234..def5678 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -1,6 +1,8 @@ ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
+require 'rspec/rails'
+require 'capybara/rails'... | Add capybara to the spec helper file
|
diff --git a/test/test_helper.rb b/test/test_helper.rb
index abc1234..def5678 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -1,3 +1,4 @@+RAILS_GEM_VERSION="2.2.2"
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path(File.dirname(__FILE__) + "/application/config/environment")
require 'test_help'
| Use Rails 2.2.2 gems by default for testing
|
diff --git a/examples/models.rb b/examples/models.rb
index abc1234..def5678 100644
--- a/examples/models.rb
+++ b/examples/models.rb
@@ -24,7 +24,7 @@ # Easy and powerful scope examples
scope :by_admin, -> { where_assoc_exists(:author, &:admins) }
scope :commented_on_by_admin, -> { where_assoc_exists(:comments,... | Tweak code for rubocop [ci skip]
|
diff --git a/spec/space2underscore_spec.rb b/spec/space2underscore_spec.rb
index abc1234..def5678 100644
--- a/spec/space2underscore_spec.rb
+++ b/spec/space2underscore_spec.rb
@@ -14,15 +14,19 @@ end
def checkout_master
- system("git checkout master #{hidden}")
+ execute_command('git checkout master')
... | Make a command to hide the output
|
diff --git a/spec/controllers/contributors_controller_spec.rb b/spec/controllers/contributors_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/contributors_controller_spec.rb
+++ b/spec/controllers/contributors_controller_spec.rb
@@ -10,7 +10,7 @@
it 'returns json representation of user wit... | Sort lists for some added determinism
|
diff --git a/spec/controllers/transactions_controller_spec.rb b/spec/controllers/transactions_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/transactions_controller_spec.rb
+++ b/spec/controllers/transactions_controller_spec.rb
@@ -3,8 +3,17 @@ describe TransactionsController do
describe '... | Add tests to GET methods of transactions_controller.rb
|
diff --git a/cfa_stat_gatherer.rb b/cfa_stat_gatherer.rb
index abc1234..def5678 100644
--- a/cfa_stat_gatherer.rb
+++ b/cfa_stat_gatherer.rb
@@ -0,0 +1,42 @@+require 'pry'
+require 'csv'
+require './lib/cliometrics'
+
+# Most 2013 repos
+cfa_repos = %w(ohana-api ohana-web-search cityvoice promptly public-records ohanak... | Add initial CFA stat gatherer script
|
diff --git a/app/mailers/teacher_mailer.rb b/app/mailers/teacher_mailer.rb
index abc1234..def5678 100644
--- a/app/mailers/teacher_mailer.rb
+++ b/app/mailers/teacher_mailer.rb
@@ -1,5 +1,5 @@ class TeacherMailer < ActionMailer::Base
- default from: "leap@southdevon.ac.uk"
+ default from: Settings.absence_line_email
... | Change email from to look at settings
|
diff --git a/app/models/assignment_file.rb b/app/models/assignment_file.rb
index abc1234..def5678 100644
--- a/app/models/assignment_file.rb
+++ b/app/models/assignment_file.rb
@@ -4,13 +4,18 @@ has_many :criteria_assignment_files_joins, dependent: :destroy
has_many :template_divisions
+ before_validation :clea... | assignment: Fix required file before_validation callback
|
diff --git a/app/models/hosting_account.rb b/app/models/hosting_account.rb
index abc1234..def5678 100644
--- a/app/models/hosting_account.rb
+++ b/app/models/hosting_account.rb
@@ -1,3 +1,6 @@ class HostingAccount < ActiveRecord::Base
+ attr_accessible :annual_fee, :backed_up_on, :backup_cycle, :domain_id,
+ :ftp_h... | Whitelist attributes for hosting accounts
|
diff --git a/app/models/setup/parameter.rb b/app/models/setup/parameter.rb
index abc1234..def5678 100644
--- a/app/models/setup/parameter.rb
+++ b/app/models/setup/parameter.rb
@@ -4,7 +4,10 @@ include JsonMetadata
include ChangedIf
- build_in_data_type.with(:key, :value, :description, :metadata).referenc... | Update | Parameter build-in schema
|
diff --git a/Casks/dart-editor.rb b/Casks/dart-editor.rb
index abc1234..def5678 100644
--- a/Casks/dart-editor.rb
+++ b/Casks/dart-editor.rb
@@ -1,7 +1,7 @@ class DartEditor < Cask
url 'http://storage.googleapis.com/dart-archive/channels/stable/release/latest/editor/darteditor-macos-x64.zip'
homepage 'https://www... | Use latest for dart editor
|
diff --git a/test/redic_test.rb b/test/redic_test.rb
index abc1234..def5678 100644
--- a/test/redic_test.rb
+++ b/test/redic_test.rb
@@ -28,3 +28,9 @@
assert_equal ["OK", "QUEUED", ["OK"]], c.run
end
+
+test "runtime errors" do |c|
+ assert_raise RuntimeError do
+ c.call("KABLAMMO")
+ end
+end
| Add a test for RuntimeErrors.
Just verify that we are now indeed raising runtime errors.
|
diff --git a/serialize.gemspec b/serialize.gemspec
index abc1234..def5678 100644
--- a/serialize.gemspec
+++ b/serialize.gemspec
@@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'serialize'
- s.version = '0.1.1'
+ s.version = '0.1.2'
s.summary = 'Common interface for serializati... | Package version is increased from 0.1.1 to 0.1.2
|
diff --git a/test/override_assert_raise.rb b/test/override_assert_raise.rb
index abc1234..def5678 100644
--- a/test/override_assert_raise.rb
+++ b/test/override_assert_raise.rb
@@ -9,6 +9,9 @@ rescue ::Test::Unit::AssertionFailedError => e
# failed assert raises this Error and that extends StandardError, so ... | Fix to assert exception message
|
diff --git a/lib/twterm/user.rb b/lib/twterm/user.rb
index abc1234..def5678 100644
--- a/lib/twterm/user.rb
+++ b/lib/twterm/user.rb
@@ -6,7 +6,6 @@ alias_method :protected?, :protected
alias_method :verified?, :verified
- MAX_CACHED_TIME = 3600
COLORS = [:red, :blue, :green, :cyan, :yellow, :magenta... | Remove MAX_CACHED_TIME constant from User class
|
diff --git a/lib/vapebot/bot.rb b/lib/vapebot/bot.rb
index abc1234..def5678 100644
--- a/lib/vapebot/bot.rb
+++ b/lib/vapebot/bot.rb
@@ -45,7 +45,12 @@ elsif msg.cmd == "broadcast"
connection.broadcastmsg(msg.cmd_args.join(" "))
elsif handler
- response = eval "#{handler} #{msg.cmd_args}"
+ #A... | Add authorization check for commands with arguments... only factoids used by all.
|
diff --git a/app/decorators/log_decorator.rb b/app/decorators/log_decorator.rb
index abc1234..def5678 100644
--- a/app/decorators/log_decorator.rb
+++ b/app/decorators/log_decorator.rb
@@ -1,4 +1,6 @@ class LogDecorator < Draper::Base
+ decorates :activity_log
+
def created_at
Time.new(model.created_at)
end... | Make the log decorator wrap the ActivityLog class.
|
diff --git a/app/helpers/requirejs_helper.rb b/app/helpers/requirejs_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/requirejs_helper.rb
+++ b/app/helpers/requirejs_helper.rb
@@ -22,11 +22,18 @@ run_config = requirejs.run_config
if Rails.application.config.assets.digest
modules = require... | Make items in the user path spec take precedence.
The gem auto-generates a path spec based upon the modules spec from
requirejs.yml. This change ensures that any paths spec provided by the
user takes precedence and is digest-mangled for use in production.
|
diff --git a/lib/autotest/twitter/client.rb b/lib/autotest/twitter/client.rb
index abc1234..def5678 100644
--- a/lib/autotest/twitter/client.rb
+++ b/lib/autotest/twitter/client.rb
@@ -30,7 +30,7 @@ raise 'The number of elements in `consumer` must be at least two' if consumer.size < 2
raise 'The nu... | Fix the arguments to give to OAuth::Consumer.new
|
diff --git a/lib/bankscrap/exporters/csv.rb b/lib/bankscrap/exporters/csv.rb
index abc1234..def5678 100644
--- a/lib/bankscrap/exporters/csv.rb
+++ b/lib/bankscrap/exporters/csv.rb
@@ -3,7 +3,7 @@ module BankScrap
module Exporter
class Csv
- HEADERS = %w(Date Description Amount).freeze
+ HEADERS = %w(... | Fix headers for CSV exporter
|
diff --git a/lib/chroma/helpers/bounders.rb b/lib/chroma/helpers/bounders.rb
index abc1234..def5678 100644
--- a/lib/chroma/helpers/bounders.rb
+++ b/lib/chroma/helpers/bounders.rb
@@ -4,7 +4,7 @@ def bound01(n, max)
is_percent = n.to_s.include? '%'
n = [max, [0, n.to_f].max].min
- n = (n... | Fix rounding issue from not using float division
|
diff --git a/examples/multi_select_disabled.rb b/examples/multi_select_disabled.rb
index abc1234..def5678 100644
--- a/examples/multi_select_disabled.rb
+++ b/examples/multi_select_disabled.rb
@@ -0,0 +1,17 @@+# encoding: utf-8
+
+require_relative "../lib/tty-prompt"
+
+prompt = TTY::Prompt.new
+
+drinks = [
+ {name: ... | Add multi select example with disabled items
|
diff --git a/test/fixtures/cookbooks/test/recipes/default.rb b/test/fixtures/cookbooks/test/recipes/default.rb
index abc1234..def5678 100644
--- a/test/fixtures/cookbooks/test/recipes/default.rb
+++ b/test/fixtures/cookbooks/test/recipes/default.rb
@@ -2,9 +2,18 @@
git_client 'install it'
+home_dir =
+ if windows?... | Set home dir propertly between Windows and MacOS for testing
Signed-off-by: Lance Albertson <3161cdc7bf197e4c3a35b9cbe358c79910f27e90@osuosl.org>
|
diff --git a/Casks/phpstorm-eap.rb b/Casks/phpstorm-eap.rb
index abc1234..def5678 100644
--- a/Casks/phpstorm-eap.rb
+++ b/Casks/phpstorm-eap.rb
@@ -1,6 +1,6 @@ class PhpstormEap < Cask
- version '139.105'
- sha256 '9821ed1d1728fdcc833e896d7f2802643edd1707'
+ version '139.173'
+ sha256 '0815ca8237791fa41137aa27401d... | Update PhpStom EAP.app to version 139.173
|
diff --git a/Casks/phpstorm-eap.rb b/Casks/phpstorm-eap.rb
index abc1234..def5678 100644
--- a/Casks/phpstorm-eap.rb
+++ b/Casks/phpstorm-eap.rb
@@ -1,6 +1,6 @@ class PhpstormEap < Cask
- version '138.2071'
- sha256 'f0c52920fdce0ca3f1001342e816e5283c3efe502a1b0d39667332b4afeced87'
+ version '138.2502'
+ sha256 '61... | Update PhpStorm EAP to v138.2502
|
diff --git a/ConnectMe/rADMeNow.rb b/ConnectMe/rADMeNow.rb
index abc1234..def5678 100644
--- a/ConnectMe/rADMeNow.rb
+++ b/ConnectMe/rADMeNow.rb
@@ -3,8 +3,8 @@
require 'require_relative'
-load('./rCheckWifi.rb')
-load('./rVPNMeNow.rb')
+load(File.join(File.dirname(__FILE__),'rCheckWifi.rb'))
+load(File.join(File.d... | Use correct paths for loading additional ruby scripts
|
diff --git a/features/support/genomer_steps.rb b/features/support/genomer_steps.rb
index abc1234..def5678 100644
--- a/features/support/genomer_steps.rb
+++ b/features/support/genomer_steps.rb
@@ -0,0 +1,11 @@+When /^I create a new genomer project$/ do
+ step 'I successfully run `genomer init project`'
+ step 'I cd t... | Add cucumber steps for testing man pages
|
diff --git a/lib/frankie/class_level_api.rb b/lib/frankie/class_level_api.rb
index abc1234..def5678 100644
--- a/lib/frankie/class_level_api.rb
+++ b/lib/frankie/class_level_api.rb
@@ -20,10 +20,6 @@ after_hooks << Proc.new(&blk)
end
- def content_type type
- defaults[:headers]["Content-Type"] = ty... | Remove the content type helper since it uses defaults
|
diff --git a/config/initializers/asset_sync.rb b/config/initializers/asset_sync.rb
index abc1234..def5678 100644
--- a/config/initializers/asset_sync.rb
+++ b/config/initializers/asset_sync.rb
@@ -17,4 +17,7 @@ # Use the Rails generated 'manifest.yml' file to produce the list of files to
# upload instead of search... | Fix bug with S3 SSL certificate verification failing with dot in bucket name.
|
diff --git a/config/initializers/parameters.rb b/config/initializers/parameters.rb
index abc1234..def5678 100644
--- a/config/initializers/parameters.rb
+++ b/config/initializers/parameters.rb
@@ -4,3 +4,4 @@ GenieacsGui::Application.config.device_filters = {'Last inform' => 'summary.lastInform', 'Tag' => '_tags'}
Gen... | Exclude objects from search filters.
|
diff --git a/lib/virtus/attribute/strict.rb b/lib/virtus/attribute/strict.rb
index abc1234..def5678 100644
--- a/lib/virtus/attribute/strict.rb
+++ b/lib/virtus/attribute/strict.rb
@@ -1,8 +1,14 @@ module Virtus
class Attribute
+ # Attribute extension which raises CoercionError when coercion failed
+ #
... | Add docs for Strict extension
|
diff --git a/app/authorizers/inventory_authorizer.rb b/app/authorizers/inventory_authorizer.rb
index abc1234..def5678 100644
--- a/app/authorizers/inventory_authorizer.rb
+++ b/app/authorizers/inventory_authorizer.rb
@@ -4,7 +4,7 @@ end
def updatable_by?(user)
- resource.facilitator?(user: user)
+ resource... | Allow inventory members edit the inventory
|
diff --git a/app/commands/api/user_authentication.rb b/app/commands/api/user_authentication.rb
index abc1234..def5678 100644
--- a/app/commands/api/user_authentication.rb
+++ b/app/commands/api/user_authentication.rb
@@ -13,8 +13,8 @@ token, exp_date = Api::TokenProvider.encode(user_id: user.id)
user.u... | Fix problem with heroku syntax
|
diff --git a/app/controllers/companies_controller.rb b/app/controllers/companies_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/companies_controller.rb
+++ b/app/controllers/companies_controller.rb
@@ -10,6 +10,7 @@
def create
@company = Company.create(company_params)
+ redirect_to '/comp... | Fix create controller for companies
|
diff --git a/deferred_job.gemspec b/deferred_job.gemspec
index abc1234..def5678 100644
--- a/deferred_job.gemspec
+++ b/deferred_job.gemspec
@@ -15,5 +15,5 @@ s.require_paths = ['lib']
s.summary = 'Deferred job library for Sidekiq or generic classes'
s.test_files = Dir.glob('spec/*.rb')
- s.version = '0.1.1' #... | Update the gem version to 1.0.0
[3184]
|
diff --git a/config/initializers/01_redis.rb b/config/initializers/01_redis.rb
index abc1234..def5678 100644
--- a/config/initializers/01_redis.rb
+++ b/config/initializers/01_redis.rb
@@ -1,4 +1,6 @@ require 'redis-namespace'
+
+redis_default = '127.0.0.1:6379'
redis_conns = ENV['redis_conns'].to_i <= 0 ?
... | Set default server for redis
|
diff --git a/lib/battlenet/api/api_response.rb b/lib/battlenet/api/api_response.rb
index abc1234..def5678 100644
--- a/lib/battlenet/api/api_response.rb
+++ b/lib/battlenet/api/api_response.rb
@@ -10,7 +10,8 @@
def get_data(path, options)
unless @client.nil?
- @data = @client.get(path, options)
+ ... | Change the response data returned to be the parsed response (Hash format)
|
diff --git a/lib/chef/knife/secure_bag_edit.rb b/lib/chef/knife/secure_bag_edit.rb
index abc1234..def5678 100644
--- a/lib/chef/knife/secure_bag_edit.rb
+++ b/lib/chef/knife/secure_bag_edit.rb
@@ -14,17 +14,17 @@ item = Chef::DataBagItem.load(bag, item_name)
@raw_data = item.to_hash
- item = S... | Stop overriding keys in knife secure bag edit
|
diff --git a/lib/chef/resource/aws_iam_role.rb b/lib/chef/resource/aws_iam_role.rb
index abc1234..def5678 100644
--- a/lib/chef/resource/aws_iam_role.rb
+++ b/lib/chef/resource/aws_iam_role.rb
@@ -20,12 +20,12 @@ #
# The path to the role. For more information about paths, see http://docs.aws.amazon.com/IAM/latest/... | Allow only strings for assume role polciy
|
diff --git a/lib/shipping_easy/http/request.rb b/lib/shipping_easy/http/request.rb
index abc1234..def5678 100644
--- a/lib/shipping_easy/http/request.rb
+++ b/lib/shipping_easy/http/request.rb
@@ -19,8 +19,9 @@ end
def sign_request!
+ params[:api_key] = api_key
+ params[:api_timestamp] = Time.now.to_i
... | Add api_key and calculate signature afterwards.
|
diff --git a/lib/tasks/import/dns_details.rake b/lib/tasks/import/dns_details.rake
index abc1234..def5678 100644
--- a/lib/tasks/import/dns_details.rake
+++ b/lib/tasks/import/dns_details.rake
@@ -1,6 +1,7 @@ require 'transition/import/dns_details'
namespace :import do
+ desc 'Look up CNAME details for all hosts'
... | Add a description for DNS rake task
|
diff --git a/release/1_create_dmg.rb b/release/1_create_dmg.rb
index abc1234..def5678 100644
--- a/release/1_create_dmg.rb
+++ b/release/1_create_dmg.rb
@@ -27,7 +27,7 @@ require 'fileutils'
FileUtils.rm_rf(dmgwork)
FileUtils.mkdir(dmgwork)
-FileUtils.cp_r(app, dmgwork)
+FileUtils.mv(app, dmgwork)
# Copy additiona... | Fix code sign problem to create dmg
|
diff --git a/ruby_prof_rails.gemspec b/ruby_prof_rails.gemspec
index abc1234..def5678 100644
--- a/ruby_prof_rails.gemspec
+++ b/ruby_prof_rails.gemspec
@@ -17,7 +17,7 @@ server restart or affecting other users sessions.}
s.license = 'MIT'
- s.files = Dir['{app,config,db,lib}/**/*', 'MIT-L... | Remove db directory from gemspec
|
diff --git a/db/migrate/20190212170745_change_quarter_id_to_bigint.rb b/db/migrate/20190212170745_change_quarter_id_to_bigint.rb
index abc1234..def5678 100644
--- a/db/migrate/20190212170745_change_quarter_id_to_bigint.rb
+++ b/db/migrate/20190212170745_change_quarter_id_to_bigint.rb
@@ -0,0 +1,9 @@+class ChangeQuarter... | Update quarter_id foreign key to bigint
|
diff --git a/ScrollableGraphView.podspec b/ScrollableGraphView.podspec
index abc1234..def5678 100644
--- a/ScrollableGraphView.podspec
+++ b/ScrollableGraphView.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |s|
s.name = "ScrollableGraphView"
-s.version = "1.0.1"
+s.version = "1.1.0"
s.summary... | Update cocoapod version to 1.1.0
|
diff --git a/lib/algoliasearch/utilities.rb b/lib/algoliasearch/utilities.rb
index abc1234..def5678 100644
--- a/lib/algoliasearch/utilities.rb
+++ b/lib/algoliasearch/utilities.rb
@@ -13,7 +13,7 @@
def reindex_all_models
get_model_classes.each do |klass|
- klass.reindex!
+ klass.rein... | Use a temporary index to reindex instead of the inplace one.
|
diff --git a/lib/companies_house/request.rb b/lib/companies_house/request.rb
index abc1234..def5678 100644
--- a/lib/companies_house/request.rb
+++ b/lib/companies_house/request.rb
@@ -4,6 +4,11 @@
BASE_URI = 'http://data.companieshouse.gov.uk/doc/company/'
+ # White list of allowed prefixes for companies ho... | Add comment to prefixes white list
|
diff --git a/test/tags_test.rb b/test/tags_test.rb
index abc1234..def5678 100644
--- a/test/tags_test.rb
+++ b/test/tags_test.rb
@@ -0,0 +1,16 @@+require_relative 'config'
+
+class TagsTest < PunchTest
+
+ def test_brf_parser_doesnt_ignore_tags
+ brf_write <<-EOS
+ Februar 2015 - Simon Kiener
+
+ 03.01.15... | Add failing tests for tags parsing
|
diff --git a/test/test_misc.rb b/test/test_misc.rb
index abc1234..def5678 100644
--- a/test/test_misc.rb
+++ b/test/test_misc.rb
@@ -0,0 +1,40 @@+#!/usr/bin/ruby -w
+
+#
+# Test miscellaneous items that don't fit elsewhere
+#
+
+require "./#{File.dirname(__FILE__)}/etchtest"
+require 'webrick'
+
+class EtchMiscTests < ... | Add a file for misc tests, starting with test_empty_repository to try to
reproduce an issue reported by a user on the mailing list
|
diff --git a/Casks/xquartz.rb b/Casks/xquartz.rb
index abc1234..def5678 100644
--- a/Casks/xquartz.rb
+++ b/Casks/xquartz.rb
@@ -5,6 +5,11 @@ version '2.7.6'
sha256 '02aa3268af0bd7dcd5dfbc10d673f5c6834bba6371a928d2a3fc44a8039b194e'
install 'XQuartz.pkg'
+
+ after_install do
+ Pathname.new(Dir.home).join('Li... | XQuartz: Create Logs dir if it does not exist
|
diff --git a/lib/geocoder/lookups/geoip2.rb b/lib/geocoder/lookups/geoip2.rb
index abc1234..def5678 100644
--- a/lib/geocoder/lookups/geoip2.rb
+++ b/lib/geocoder/lookups/geoip2.rb
@@ -37,7 +37,8 @@ def results(query)
return [] unless configuration[:file]
- Array(@mmdb.lookup(query.to_s))
+ ... | Revert "Remove unnecessary ternary operator"
This reverts commit 97b6bb948f9c298b4d6c30ceddf9702e85b2d046.
|
diff --git a/lib/minitest/fivemat_plugin.rb b/lib/minitest/fivemat_plugin.rb
index abc1234..def5678 100644
--- a/lib/minitest/fivemat_plugin.rb
+++ b/lib/minitest/fivemat_plugin.rb
@@ -4,13 +4,18 @@ class FivematReporter < Reporter
include ElapsedTime
+ def initialize(*args)
+ super
+ @class = nil... | Fix reporting for Minitest 5+
The fix give in 191bef2b3caf4df5c2fab0396dedfc24152c7b8e actually broke the reporter entirely; because `@class` will not be defined initially, it never will be because the body of the `if` statement will never be entered. I can thing of two fixes. The smallest-diff fix would be to change ... |
diff --git a/rapa.gemspec b/rapa.gemspec
index abc1234..def5678 100644
--- a/rapa.gemspec
+++ b/rapa.gemspec
@@ -13,7 +13,7 @@
spec.require_paths = ["lib"]
- spec.add_development_dependency "bundler", "~> 1.14"
+ spec.add_development_dependency "bundler", "~> 1.13"
spec.add_development_dependency "rake", "~>... | Use bundler 1.13 or later
Because CircleCI uses 1.13
|
diff --git a/lib/plenty_client/warehouse.rb b/lib/plenty_client/warehouse.rb
index abc1234..def5678 100644
--- a/lib/plenty_client/warehouse.rb
+++ b/lib/plenty_client/warehouse.rb
@@ -2,25 +2,13 @@
module PlentyClient
module Warehouse
- include PlentyClient::Endpoint
include PlentyClient::Request
+ ext... | Refactor Warehouse with RestPaths mixin
|
diff --git a/lib/rom/sql/mapper_compiler.rb b/lib/rom/sql/mapper_compiler.rb
index abc1234..def5678 100644
--- a/lib/rom/sql/mapper_compiler.rb
+++ b/lib/rom/sql/mapper_compiler.rb
@@ -4,10 +4,10 @@ module SQL
class MapperCompiler < ROM::MapperCompiler
def visit_attribute(node)
- name, _, meta = no... | Fix mapper compiler reading attribute alias
After merging #324 to master, `rom` test suite (once `rom-sql`
dependency was updated to the new master ref) was failing due to a change
introduced by error on reading the attribute alias from the mapper
compiler.
|
diff --git a/lib/travis/travis_yml_stats.rb b/lib/travis/travis_yml_stats.rb
index abc1234..def5678 100644
--- a/lib/travis/travis_yml_stats.rb
+++ b/lib/travis/travis_yml_stats.rb
@@ -32,7 +32,7 @@ end
def normalize_string(str)
- str.downcase.tr(" ", "-")
+ str.to_s.downcase.tr(" ", "-")
end
... | Handle nils when normalising strings
|
diff --git a/Segment-GoogleAnalytics.podspec b/Segment-GoogleAnalytics.podspec
index abc1234..def5678 100644
--- a/Segment-GoogleAnalytics.podspec
+++ b/Segment-GoogleAnalytics.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |s|
s.name = "Segment-GoogleAnalytics"
- s.version = "1.1.0"
+ s.version ... | Prepare for next development version
|
diff --git a/example.rb b/example.rb
index abc1234..def5678 100644
--- a/example.rb
+++ b/example.rb
@@ -0,0 +1,93 @@+require "bundler/setup"
+
+module PHTTP
+ require "typhoeus"
+ require "forwardable"
+ require "delegate"
+ require "json"
+
+ class Response < SimpleDelegator
+ def response_json
+ JSON.pa... | Add first skeleton for performing requests with a hydra |
diff --git a/db/migrate/0002_create_games.rb b/db/migrate/0002_create_games.rb
index abc1234..def5678 100644
--- a/db/migrate/0002_create_games.rb
+++ b/db/migrate/0002_create_games.rb
@@ -0,0 +1,10 @@+class CreateGames < ActiveRecord::Migration
+ def up
+ create_table :games do |t|
+ t.integer :player_id
+ ... | Add migration for a games table.
|
diff --git a/delayed_job_data_mapper.gemspec b/delayed_job_data_mapper.gemspec
index abc1234..def5678 100644
--- a/delayed_job_data_mapper.gemspec
+++ b/delayed_job_data_mapper.gemspec
@@ -17,7 +17,7 @@ s.add_runtime_dependency 'dm-core'
s.add_runtime_dependency 'dm-observer'
s.add_runtime_dependency ... | Update Delayed Job and RSpec dependencies in gemspec. |
diff --git a/name_resolution/name_resolver.rb b/name_resolution/name_resolver.rb
index abc1234..def5678 100644
--- a/name_resolution/name_resolver.rb
+++ b/name_resolution/name_resolver.rb
@@ -8,21 +8,15 @@ timeout:
default: 30
EOS
- # Doesn't work :(
- TIMEOUT=77
def build_report
- resolver = R... | Use Ruby Timeout instead of Resolv::DNS timeout
|
diff --git a/spec/features/home_page_spec.rb b/spec/features/home_page_spec.rb
index abc1234..def5678 100644
--- a/spec/features/home_page_spec.rb
+++ b/spec/features/home_page_spec.rb
@@ -0,0 +1,52 @@+require 'spec_helper'
+
+include Warden::Test::Helpers
+
+describe_options = { type: :feature }
+
+describe "Visting t... | Add a failing integration test for long Solr GET request REFS 9085
When a user with a large number of groups logs in
a 500 error is raised due to too long of a GET
between Blacklight and Solr.
|
diff --git a/app/helpers/oauth_helper.rb b/app/helpers/oauth_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/oauth_helper.rb
+++ b/app/helpers/oauth_helper.rb
@@ -13,7 +13,7 @@
def enabled_social_providers
enabled_oauth_providers.select do |name|
- [:twitter, :gitlab, :github, :bitbucket, :googl... | Add SAML to list of social_provider
|
diff --git a/app/models/stock/package.rb b/app/models/stock/package.rb
index abc1234..def5678 100644
--- a/app/models/stock/package.rb
+++ b/app/models/stock/package.rb
@@ -24,8 +24,10 @@ #
# @return [Array<Spree::ShippingMethod>]
def shipping_methods
- super.delete_if do |shipping_method|
- !... | Fix insane N+1 in Package
The #ships_with? method was being called ~800 times when loading the admin order edit page (with Aus production data), and triggering a new query each time it was called.
|
diff --git a/app/models/user_interest.rb b/app/models/user_interest.rb
index abc1234..def5678 100644
--- a/app/models/user_interest.rb
+++ b/app/models/user_interest.rb
@@ -1,4 +1,6 @@ class UserInterest < ApplicationRecord
belongs_to :user
belongs_to :interest
+
+ validates_uniqueness_of :user_id, scope: [:inte... | Add validation to UserInterest to prevent redundancy
|
diff --git a/spec/full_usage_spec.rb b/spec/full_usage_spec.rb
index abc1234..def5678 100644
--- a/spec/full_usage_spec.rb
+++ b/spec/full_usage_spec.rb
@@ -1,22 +1,37 @@ require "spec_helper"
-RSpec.describe 'DeepCover usage' do
- it 'run `ruby spec/full_usage/simple/simple.rb` successfully' do
+RSpec::Matchers.def... | Create matcher for full usage
|
diff --git a/spec/models/ngo_spec.rb b/spec/models/ngo_spec.rb
index abc1234..def5678 100644
--- a/spec/models/ngo_spec.rb
+++ b/spec/models/ngo_spec.rb
@@ -10,6 +10,8 @@ it { is_expected.to validate_presence_of :name }
it { is_expected.to validate_presence_of :identifier }
end
+
+ it { is_expected.to defi... | Add spec to test that ngo has locale enum
|
diff --git a/engineyard-serverside.gemspec b/engineyard-serverside.gemspec
index abc1234..def5678 100644
--- a/engineyard-serverside.gemspec
+++ b/engineyard-serverside.gemspec
@@ -1,4 +1,4 @@-# -*- encoding: utf-8 -*
+# -*- encoding: utf-8 -*-
lib = File.expand_path('../lib/', __FILE__)
$:.unshift lib unless $:.incl... | Correct Gem::Requirement for rubygems (oops!) and fixed utf-8 marker.
|
diff --git a/test/test_melt.rb b/test/test_melt.rb
index abc1234..def5678 100644
--- a/test/test_melt.rb
+++ b/test/test_melt.rb
@@ -2,9 +2,7 @@ require 'melt'
class TestMelt < Minitest::Test
- def test_it_does_something_useful
- icicle = "----->"
-
+ def test_it_melt
# winter
icicle.freeze
asser... | Test object_id is not changed during meltdown.
|
diff --git a/script/cruise_build.rb b/script/cruise_build.rb
index abc1234..def5678 100644
--- a/script/cruise_build.rb
+++ b/script/cruise_build.rb
@@ -6,10 +6,10 @@ # local overrides are loaded by Rake.
project_name = ARGV.first
-project.source_control.branch = "montanabranch"
+project.source_control.branch = "mon... | Use montanacycling for consistency, not montanabranch
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.