diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/lib/event_store/messaging/controls/writer.rb b/lib/event_store/messaging/controls/writer.rb
index abc1234..def5678 100644
--- a/lib/event_store/messaging/controls/writer.rb
+++ b/lib/event_store/messaging/controls/writer.rb
@@ -5,7 +5,7 @@ def self.write(count=nil, stream_name=nil, stream_metadata:... | Correct mistake where stream_name is always set
|
diff --git a/middleman-title.gemspec b/middleman-title.gemspec
index abc1234..def5678 100644
--- a/middleman-title.gemspec
+++ b/middleman-title.gemspec
@@ -9,6 +9,7 @@ spec.authors = ['Justin Cypret']
spec.email = ['jcypret@gmail.com']
spec.summary = 'A Middleman extension for setting the p... | Update Rake and Rspec dependancies
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -5,6 +5,7 @@ description "Installs and configures Rundeck 2.0"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "2.0.4"
+depends "runit"
depends ... | Revert "remove the runit dependency"
This reverts commit 4916eef5d50edaf84ec39f2e87026e080e3d1315 [formerly d6a5d91d367b9aa6bac0144542660d5a3d94d7ae] [formerly 4b48d64dcf39560f4696fe824cf335c79701a25f [formerly 586cd3dd624dfcb538acd30b7c2e19f46670025f]] [formerly ee9b210ca3b650b96206da89acb500f290462487 [formerly af11... |
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -10,4 +10,5 @@ supports platform
end
+depends 'erlang', '>= 0.9'
depends 'rabbitmq', '~>3.7.0'
| Add dependency for erlang cookbook
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -1,7 +1,7 @@-maintainer "Chris Roberts"
-maintainer_email "chrisroberts.code@gmail.com"
+maintainer "Heavy Water"
+maintainer_email "support@hw-ops.com"
license "Apache 2.0"
description ... | Update and bump version to 0.1.0
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -6,6 +6,6 @@ long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "1.2.7"
-%w{redhat centos scientific fedora amazon debian ubuntu}.each do |os|
+%w{redhat centos scientifi... | [COOK-3452] Add support for raspbian platform
Signed-off-by: Seth Vargo <81550dbf04dfd8537ff7b3c014c6fbf86e0889dc@gmail.com>
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -7,4 +7,4 @@ version '1.1.1'
recipe 'ssh_known_hosts', 'Provides an LWRP for managing SSH known hosts. Also includes a recipe for automatically adding all nodes to the SSH known hosts.'
-d... | [COOK-4328] Change depends on Partial Search to recommends. If its not there, you just can't use it as a recipe, but the provider is still useful.
|
diff --git a/spec/controllers/event_wines_controller_spec.rb b/spec/controllers/event_wines_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/event_wines_controller_spec.rb
+++ b/spec/controllers/event_wines_controller_spec.rb
@@ -0,0 +1,18 @@+require 'rails_helper'
+
+describe EventWinesControlle... | Add event_wine controller spec with edit render test
|
diff --git a/spec/factories/calculated_adjustment_factory.rb b/spec/factories/calculated_adjustment_factory.rb
index abc1234..def5678 100644
--- a/spec/factories/calculated_adjustment_factory.rb
+++ b/spec/factories/calculated_adjustment_factory.rb
@@ -1,12 +1,23 @@-attach_per_item_trait = proc do
- trait :per_item do... | Add flat rate calculator traits to related factories
|
diff --git a/db/migrate/20150501003216_create_submissions.rb b/db/migrate/20150501003216_create_submissions.rb
index abc1234..def5678 100644
--- a/db/migrate/20150501003216_create_submissions.rb
+++ b/db/migrate/20150501003216_create_submissions.rb
@@ -1,3 +1,5 @@+# Encoding: utf-8
+# Create submission
class CreateSub... | Clean up submission migration script
|
diff --git a/dcs-debian.gemspec b/dcs-debian.gemspec
index abc1234..def5678 100644
--- a/dcs-debian.gemspec
+++ b/dcs-debian.gemspec
@@ -20,6 +20,7 @@
spec.add_runtime_dependency "thor", "~> 0.19.1"
spec.add_runtime_dependency "colored", "~> 1.2"
+ spec.add_runtime_dependency "nokogiri", "~> 1.6.4"
spec.add_... | Add missing run-time dependency to nokogiri
|
diff --git a/demo/cheatsheet.rb b/demo/cheatsheet.rb
index abc1234..def5678 100644
--- a/demo/cheatsheet.rb
+++ b/demo/cheatsheet.rb
@@ -0,0 +1,30 @@+# Cheet sheet for SolveBio API
+require 'solvebio'
+
+# Load the Dataset object
+dataset = SolveBio::Dataset.retrieve('ClinVar/2.0.0-1/Variants')
+
+# Print the Dataset
+... | Add SolveBio Ruby cheet sheet
|
diff --git a/db/migrate/20140724134601_fix_yaml_encoding.rb b/db/migrate/20140724134601_fix_yaml_encoding.rb
index abc1234..def5678 100644
--- a/db/migrate/20140724134601_fix_yaml_encoding.rb
+++ b/db/migrate/20140724134601_fix_yaml_encoding.rb
@@ -6,6 +6,7 @@ fix_encoding(Profile, 'data')
fix_encoding(ActionT... | Add Task model to fix yaml encoding migration
|
diff --git a/lib/user.rb b/lib/user.rb
index abc1234..def5678 100644
--- a/lib/user.rb
+++ b/lib/user.rb
@@ -7,24 +7,23 @@ page += 1
end until a.empty?
- remain = 0
- forks = []
EventMachine.run do
- repos.each do |current|
+ http = EventMachine::MultiRequest.new
+ repos.each_with... | Refactor to use multi-request interface
|
diff --git a/public/plugin/lokka-pygmentize/lib/lokka/pygmentize.rb b/public/plugin/lokka-pygmentize/lib/lokka/pygmentize.rb
index abc1234..def5678 100644
--- a/public/plugin/lokka-pygmentize/lib/lokka/pygmentize.rb
+++ b/public/plugin/lokka-pygmentize/lib/lokka/pygmentize.rb
@@ -16,11 +16,11 @@ end
class Entry
- a... | Stop using Nokogiri::HTML.search, instead use Nokogiri::HTML.css
|
diff --git a/db/seeds.rb b/db/seeds.rb
index abc1234..def5678 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -6,6 +6,16 @@ The street is dusty and unkept. There is a small tavern to the west.
DESCRIPTION
)
+
+ Monster.find_or_create_by(name: "Rat").tap do |rat|
+ Spawn.find_or_create_by(base: rat, room... | Add duration and frequency to spawn seed, and activate immediately.
|
diff --git a/spec/controllers/comments_controller_spec.rb b/spec/controllers/comments_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/comments_controller_spec.rb
+++ b/spec/controllers/comments_controller_spec.rb
@@ -1,26 +1,26 @@-require 'rails_helper'
+# require 'rails_helper'
-RSpec.describ... | Comment out comments_controller spec file
|
diff --git a/spec/features/actions_from_dashboard_spec.rb b/spec/features/actions_from_dashboard_spec.rb
index abc1234..def5678 100644
--- a/spec/features/actions_from_dashboard_spec.rb
+++ b/spec/features/actions_from_dashboard_spec.rb
@@ -0,0 +1,19 @@+require 'rails_helper'
+
+describe 'actions from dashboard' do
+ ... | Add acceptance test of dashboard links.
|
diff --git a/no-style-please.gemspec b/no-style-please.gemspec
index abc1234..def5678 100644
--- a/no-style-please.gemspec
+++ b/no-style-please.gemspec
@@ -2,7 +2,7 @@
Gem::Specification.new do |spec|
spec.name = "no-style-please"
- spec.version = "0.1.1"
+ spec.version = "0.1.2"
spec.au... | Update gem version to 0.1.2
|
diff --git a/spec/easemob/chatlog_spec.rb b/spec/easemob/chatlog_spec.rb
index abc1234..def5678 100644
--- a/spec/easemob/chatlog_spec.rb
+++ b/spec/easemob/chatlog_spec.rb
@@ -1,4 +1,5 @@ require 'spec_helper'
+require 'date'
RSpec.describe Easemob::Chatlog do
describe '#chatmessages' do
@@ -8,5 +9,12 @@ h... | Add rspec case to using after for chatmessages
|
diff --git a/spec/models/user_ban_spec.rb b/spec/models/user_ban_spec.rb
index abc1234..def5678 100644
--- a/spec/models/user_ban_spec.rb
+++ b/spec/models/user_ban_spec.rb
@@ -0,0 +1,64 @@+# frozen_string_literal: true
+
+require "rails_helper"
+
+RSpec.describe UserBan, type: :model do
+ describe "validations" do
+ ... | Add tests for `UserBan` model
|
diff --git a/app/models/effective/snippets/effective_asset.rb b/app/models/effective/snippets/effective_asset.rb
index abc1234..def5678 100644
--- a/app/models/effective/snippets/effective_asset.rb
+++ b/app/models/effective/snippets/effective_asset.rb
@@ -0,0 +1,37 @@+if defined?(EffectiveAssets)
+ module Effective
+... | Move asset snippet from effective assets
|
diff --git a/spec/unit/puppet/parser/functions/validate_cmd_spec.rb b/spec/unit/puppet/parser/functions/validate_cmd_spec.rb
index abc1234..def5678 100644
--- a/spec/unit/puppet/parser/functions/validate_cmd_spec.rb
+++ b/spec/unit/puppet/parser/functions/validate_cmd_spec.rb
@@ -1,4 +1,7 @@ require 'spec_helper'
+
+TE... | Fix the tests on osx
|
diff --git a/spec/controllers/admin/extensions_controller_spec.rb b/spec/controllers/admin/extensions_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/admin/extensions_controller_spec.rb
+++ b/spec/controllers/admin/extensions_controller_spec.rb
@@ -26,7 +26,7 @@ end
it "should list al... | Test fails when extension sort does not match
Signed-off-by: Radiant CMS dev team <f73d9485a052e9e946f26c8e2a718dc9d93fdd45@prime-motif.com> |
diff --git a/cc-tool.rb b/cc-tool.rb
index abc1234..def5678 100644
--- a/cc-tool.rb
+++ b/cc-tool.rb
@@ -0,0 +1,19 @@+class CcTool < Formula
+ desc "Support for Texas Instruments CC Debugger."
+ homepage "https://sourceforge.net/projects/cctool"
+ head "https://github.com/dashesy/cc-tool.git"
+
+ depends_on "boost"... | Add CLI tool for Texas Instrument CC Debugger
|
diff --git a/week-8/ruby/numbers_to_words/nums_to_words.rb b/week-8/ruby/numbers_to_words/nums_to_words.rb
index abc1234..def5678 100644
--- a/week-8/ruby/numbers_to_words/nums_to_words.rb
+++ b/week-8/ruby/numbers_to_words/nums_to_words.rb
@@ -0,0 +1,72 @@+# Numbers to English Words
+
+=begin
+
+PSEUDOCODE
+Input: An ... | Complete the Numbers to Words Challenge
|
diff --git a/dynamo_kickstarter.gemspec b/dynamo_kickstarter.gemspec
index abc1234..def5678 100644
--- a/dynamo_kickstarter.gemspec
+++ b/dynamo_kickstarter.gemspec
@@ -14,4 +14,6 @@ gem.name = "dynamo_kickstarter"
gem.require_paths = ["lib"]
gem.version = DynamoKickstarter::VERSION
+
+ gem.add_... | Add Rails as a dependency |
diff --git a/test/apps/queue_wait.ru b/test/apps/queue_wait.ru
index abc1234..def5678 100644
--- a/test/apps/queue_wait.ru
+++ b/test/apps/queue_wait.ru
@@ -0,0 +1,38 @@+require 'bundler/setup'
+require 'librato-rack'
+
+# Simulate the environment variables Heroku passes along
+# with each request
+#
+class QueueWait
+... | Add a test app simulating queuing time
|
diff --git a/lib/chef/provisioning/driver_init/docker.rb b/lib/chef/provisioning/driver_init/docker.rb
index abc1234..def5678 100644
--- a/lib/chef/provisioning/driver_init/docker.rb
+++ b/lib/chef/provisioning/driver_init/docker.rb
@@ -1,3 +1,3 @@ require 'chef/provisioning/docker_driver/driver'
-ChefMetal.register_... | Update from ChefMetal to Chef::Provisioning
Signed-off-by: David Crosby <f7d7cb7f72d0fb8b54dea8a8286127a99c2eb292@gmail.com>
|
diff --git a/test/factories/users.rb b/test/factories/users.rb
index abc1234..def5678 100644
--- a/test/factories/users.rb
+++ b/test/factories/users.rb
@@ -1,6 +1,10 @@ FactoryGirl.define do
+ sequence :name do |n|
+ "user-#{n}"
+ end
+
factory :user do
- name "Daaaaaaave"
+ name
end
factory :pol... | Use different names for each test user
I found it confusing when a test comparing two users failed, and both user names were Daaaaaave
|
diff --git a/lib/rpush/daemon/dispatcher/apnsp8_http2.rb b/lib/rpush/daemon/dispatcher/apnsp8_http2.rb
index abc1234..def5678 100644
--- a/lib/rpush/daemon/dispatcher/apnsp8_http2.rb
+++ b/lib/rpush/daemon/dispatcher/apnsp8_http2.rb
@@ -8,6 +8,7 @@ URLS = {
production: 'https://api.push.apple.com',
... | Add sandbox because it is allowed in the client validation
|
diff --git a/lib/smart_answer/calculators/rates_query.rb b/lib/smart_answer/calculators/rates_query.rb
index abc1234..def5678 100644
--- a/lib/smart_answer/calculators/rates_query.rb
+++ b/lib/smart_answer/calculators/rates_query.rb
@@ -14,7 +14,7 @@ end
def rates(date = nil)
- date = date || date_from_... | Use DateHelper to retrieve the reference date
Refactor to use the new current_day function in DateHelper to reduce
duplication of code. |
diff --git a/bosh-director/db/migrations/director/20160210201838_denormalize_compiled_package_stemcell_id_to_stemcell_name_and_version.rb b/bosh-director/db/migrations/director/20160210201838_denormalize_compiled_package_stemcell_id_to_stemcell_name_and_version.rb
index abc1234..def5678 100644
--- a/bosh-director/db/mi... | Fix foreign key and unique constraints
[#113954017](https://www.pivotaltracker.com/story/show/113954017)
Signed-off-by: Danny Berger <8efccf38e9d8f361e1973ad644e1b1e50ad8ecfe@pivotal.io>
|
diff --git a/robot_sweatshop.gemspec b/robot_sweatshop.gemspec
index abc1234..def5678 100644
--- a/robot_sweatshop.gemspec
+++ b/robot_sweatshop.gemspec
@@ -12,6 +12,8 @@ gem.test_files = `git ls-files -- kintama/**/*`.split("\n")
gem.executables = `git ls-files -- bin/sweatshop`.split("\n").map { |f| File.ba... | Make sure we can use the syntax we need
|
diff --git a/tests/hp/requests/storage/object_tests.rb b/tests/hp/requests/storage/object_tests.rb
index abc1234..def5678 100644
--- a/tests/hp/requests/storage/object_tests.rb
+++ b/tests/hp/requests/storage/object_tests.rb
@@ -0,0 +1,64 @@+Shindo.tests('Fog::Storage[:hp] | object requests', [:hp]) do
+
+ @directory ... | Add object tests for storage.
|
diff --git a/app/serializers/api/admin/customer_serializer.rb b/app/serializers/api/admin/customer_serializer.rb
index abc1234..def5678 100644
--- a/app/serializers/api/admin/customer_serializer.rb
+++ b/app/serializers/api/admin/customer_serializer.rb
@@ -14,7 +14,8 @@ end
def balance
- OpenFoodNetwork::User... | Make customer balance serialize with the currency
|
diff --git a/app/controllers/admin/locations_controller.rb b/app/controllers/admin/locations_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/admin/locations_controller.rb
+++ b/app/controllers/admin/locations_controller.rb
@@ -1,5 +1,5 @@ class Admin::LocationsController < AdminController
- before_ac... | Remove before_action on action forbidding in routing
|
diff --git a/app/controllers/authentications_controller.rb b/app/controllers/authentications_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/authentications_controller.rb
+++ b/app/controllers/authentications_controller.rb
@@ -3,7 +3,7 @@
def create
if person = Person.authenticate(params[:aut... | Exclude password fields from authentication api |
diff --git a/app/models/applicant.rb b/app/models/applicant.rb
index abc1234..def5678 100644
--- a/app/models/applicant.rb
+++ b/app/models/applicant.rb
@@ -40,8 +40,14 @@ when /^LL(\d+)(.*)$/
index = $1.to_i - 1
delegate_field_to landlords[index], $2
+ when "Today"
+ Date.today
+ when "Now... | Add fields "Today" and "Now"
|
diff --git a/test/minitest_helper.rb b/test/minitest_helper.rb
index abc1234..def5678 100644
--- a/test/minitest_helper.rb
+++ b/test/minitest_helper.rb
@@ -9,7 +9,7 @@ # Avoid OpenSSL certificate verify failed error
if ENV.has_key?('APPVEYOR') && Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.4')
require 'op... | [CI] Fix typo for AppVeyor OpenSSL error |
diff --git a/lib/salesforce_bulk/batch_result_collection.rb b/lib/salesforce_bulk/batch_result_collection.rb
index abc1234..def5678 100644
--- a/lib/salesforce_bulk/batch_result_collection.rb
+++ b/lib/salesforce_bulk/batch_result_collection.rb
@@ -1,35 +1,28 @@ module SalesforceBulk
class BatchResultCollection < Ar... | Remove unnecessary properties and methods. Add possible helper methods. Not sure yet if we'll stick with using this class. Might not really be necessary or all that helpful if we have the right helpers on the BatchResult class.
|
diff --git a/Casks/font-fontawesome.rb b/Casks/font-fontawesome.rb
index abc1234..def5678 100644
--- a/Casks/font-fontawesome.rb
+++ b/Casks/font-fontawesome.rb
@@ -1,8 +1,8 @@ cask :v1 => 'font-fontawesome' do
- version '4.2.0'
- sha256 'b68b47c5e6da744fc78393eeae0cb16e3844a76b505855c99ff50e99c680b5c0'
+ version '4... | Update font-awesome to version 4.3.0 from 4.2.0
|
diff --git a/beerded_happiness/spec/controllers/event_spec.rb b/beerded_happiness/spec/controllers/event_spec.rb
index abc1234..def5678 100644
--- a/beerded_happiness/spec/controllers/event_spec.rb
+++ b/beerded_happiness/spec/controllers/event_spec.rb
@@ -2,6 +2,8 @@ require 'spec_helper'
describe EventsController ... | Add one test for event show
|
diff --git a/app/tasks/fetch_feed.rb b/app/tasks/fetch_feed.rb
index abc1234..def5678 100644
--- a/app/tasks/fetch_feed.rb
+++ b/app/tasks/fetch_feed.rb
@@ -13,7 +13,7 @@
def fetch
begin
- raw_feed = @parser.fetch_and_parse(@feed.url, user_agent: "Stringer")
+ raw_feed = @parser.fetch_and_parse(@feed... | Use If-Modified-Since Header when refreshing feeds
Fetch feeds with the If-Modified-Since HTTP header set to the last refresh timestamp.
This should save us (and the feed providers) quite some traffic since we don't have the fetch the whole feed when the content hasn't changed
|
diff --git a/dataflow.rb b/dataflow.rb
index abc1234..def5678 100644
--- a/dataflow.rb
+++ b/dataflow.rb
@@ -1,4 +1,4 @@-require 'thread'
+require 'monitor'
module Dataflow
def self.included(cls)
@@ -22,28 +22,30 @@ end
class Variable
- MUTEX = Mutex.new
instance_methods.each { |m| undef_method m u... | Use monitors for handling locking and waiting
|
diff --git a/spec/integration/auth_spec.rb b/spec/integration/auth_spec.rb
index abc1234..def5678 100644
--- a/spec/integration/auth_spec.rb
+++ b/spec/integration/auth_spec.rb
@@ -31,10 +31,12 @@
it 'should show registration page at /register' do
visit '/register'
+ expect(page).to have_content 'Register n... | Make sure login and register pages have certain words
|
diff --git a/spec/features/admin/groups_spec.rb b/spec/features/admin/groups_spec.rb
index abc1234..def5678 100644
--- a/spec/features/admin/groups_spec.rb
+++ b/spec/features/admin/groups_spec.rb
@@ -39,4 +39,18 @@ flash_notice!("The selected group has been deleted.")
end
end
+
+ context "removing use... | Test for removing users from groups
|
diff --git a/spec/features/submit_paper_spec.rb b/spec/features/submit_paper_spec.rb
index abc1234..def5678 100644
--- a/spec/features/submit_paper_spec.rb
+++ b/spec/features/submit_paper_spec.rb
@@ -1,6 +1,6 @@ require 'spec_helper'
-feature "Submitting a paper", js: true do
+feature "Submitting a paper", js: true,... | Tag addtional spec with selenium
|
diff --git a/test/integration/user-install/serverspec/rvm_spec.rb b/test/integration/user-install/serverspec/rvm_spec.rb
index abc1234..def5678 100644
--- a/test/integration/user-install/serverspec/rvm_spec.rb
+++ b/test/integration/user-install/serverspec/rvm_spec.rb
@@ -1,14 +1,18 @@ require 'spec_helper'
-rvm_init... | Fix RVM single-user install file spec tests
|
diff --git a/govuk_template.gemspec b/govuk_template.gemspec
index abc1234..def5678 100644
--- a/govuk_template.gemspec
+++ b/govuk_template.gemspec
@@ -25,5 +25,4 @@ spec.add_development_dependency 'gem_publisher', '1.3.0'
spec.add_development_dependency 'gemfury', '0.4.17'
spec.add_development_dependency 'rsp... | Remove pry-debugger as a dev dependency.
It's not a required dependency, so probaboy shouldn't be listed here...
|
diff --git a/test/lib/generators/jsonapi/resource_generator_test.rb b/test/lib/generators/jsonapi/resource_generator_test.rb
index abc1234..def5678 100644
--- a/test/lib/generators/jsonapi/resource_generator_test.rb
+++ b/test/lib/generators/jsonapi/resource_generator_test.rb
@@ -14,7 +14,12 @@
test "resource is ... | Add tests to check for regex
|
diff --git a/db/seeds.rb b/db/seeds.rb
index abc1234..def5678 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -11,19 +11,38 @@ unless Rails.env == 'production'
dummy = User.create(
username: 'dummy',
- email: 'email@example.com',
+ email: 'dummy1@example.com',
password: 'password',
password_confir... | Add a second dummy user
|
diff --git a/services/gecko_board.rb b/services/gecko_board.rb
index abc1234..def5678 100644
--- a/services/gecko_board.rb
+++ b/services/gecko_board.rb
@@ -11,25 +11,21 @@ raise_config_error "Error sending GeckoBoard message: #{$!}"
end
- def deliver(token, widget_key, count)
+ def deliver(token, widget_key... | Adjust in light of lack of state
|
diff --git a/lib/buoys/link.rb b/lib/buoys/link.rb
index abc1234..def5678 100644
--- a/lib/buoys/link.rb
+++ b/lib/buoys/link.rb
@@ -40,8 +40,8 @@ CONFIG.merge(options_for_config)
end
- def extract_options_and_config(_options)
- options = _options.with_indifferent_access
+ def extract_options_an... | Fix `Do not use prefix _ for a variable that is used.`
|
diff --git a/lib/buoys/link.rb b/lib/buoys/link.rb
index abc1234..def5678 100644
--- a/lib/buoys/link.rb
+++ b/lib/buoys/link.rb
@@ -1,9 +1,18 @@ module Buoys
class Link
attr_accessor :text, :url, :options
+ attr_reader :current
def initialize(text, url, options)
@text, @url, @options = text, u... | Add methods to Buoys::Link class
To judge and decide the Link is the end of breadcrumbs
|
diff --git a/lib/hato/httpd.rb b/lib/hato/httpd.rb
index abc1234..def5678 100644
--- a/lib/hato/httpd.rb
+++ b/lib/hato/httpd.rb
@@ -23,13 +23,17 @@ class App < Sinatra::Base
enable :logging
- before do
- if settings.api_key != params[:api_key]
+ before '/.+' do
+ if settings.api_ke... | Allow users to visit to '/' without API key;;
|
diff --git a/lib/keen/async.rb b/lib/keen/async.rb
index abc1234..def5678 100644
--- a/lib/keen/async.rb
+++ b/lib/keen/async.rb
@@ -0,0 +1,6 @@+require 'keen/async/storage/base_storage_handler'
+require 'keen/async/storage/redis_handler'
+require 'keen/async/storage/flat_file_handler'
+require 'keen/async/job'
+requir... | Add a package manager file for Async
|
diff --git a/lib/space_cats.rb b/lib/space_cats.rb
index abc1234..def5678 100644
--- a/lib/space_cats.rb
+++ b/lib/space_cats.rb
@@ -7,7 +7,7 @@
def get_cat_url
begin
- parse_url_from_string(File.open(get_random_space_cat_file))
+ parse_url_from_file(File.open(get_random_space_cat_file))
rescue
... | Rename method so it's more descriptive.
|
diff --git a/lib/tasks/db.rake b/lib/tasks/db.rake
index abc1234..def5678 100644
--- a/lib/tasks/db.rake
+++ b/lib/tasks/db.rake
@@ -0,0 +1,53 @@+namespace :db do
+ desc 'Dump the database to db/<time>._<name>.pgsql_dump'
+ task dump: :environment do
+ cmd = nil
+ f_name = nil
+ with_config do |_app, host, d... | Add database backup rake task |
diff --git a/lib/turbo_urls.rb b/lib/turbo_urls.rb
index abc1234..def5678 100644
--- a/lib/turbo_urls.rb
+++ b/lib/turbo_urls.rb
@@ -22,6 +22,13 @@ def self.i_m_your_turbo_lover!
mod = Rails.application.routes.named_routes.path_helpers_module
mod.prepend TurboUrls::Interceptor
+
+ (mod.public_instance_me... | Prepend the cache lookup to already defined _path methods
|
diff --git a/web.rb b/web.rb
index abc1234..def5678 100644
--- a/web.rb
+++ b/web.rb
@@ -8,11 +8,18 @@
post '/possible-matches' do
begin
+ if params[:peptide_sequence] == ""
+ return { 'possible_sequences' => 'missing peptide sequence' }.to_json
+ end
+ if params[:weight] == "NaN"
+ return { 'po... | Check for peptide sequence and found weight
|
diff --git a/PactConsumerSwift.podspec b/PactConsumerSwift.podspec
index abc1234..def5678 100644
--- a/PactConsumerSwift.podspec
+++ b/PactConsumerSwift.podspec
@@ -19,7 +19,7 @@ s.source_files = 'PactConsumerSwift/**/*.swift'
s.resources = 'scripts/start_server.sh', 'scripts/stop_server.sh'
s.requires_arc = tr... | Add XCTest framework to podspec.
|
diff --git a/PactConsumerSwift.podspec b/PactConsumerSwift.podspec
index abc1234..def5678 100644
--- a/PactConsumerSwift.podspec
+++ b/PactConsumerSwift.podspec
@@ -16,7 +16,7 @@ s.platform = :ios, "8.0"
s.source = { :git => "https://github.com/DiUS/pact-consumer-swift.git", :tag => s.version }
- s.so... | Include pact server scripts in cocoapod. |
diff --git a/RCDraggableButton.podspec b/RCDraggableButton.podspec
index abc1234..def5678 100644
--- a/RCDraggableButton.podspec
+++ b/RCDraggableButton.podspec
@@ -1,7 +1,7 @@ Pod::Spec.new do |s|
s.name = "RCDraggableButton"
- s.version = “0.2”
- s.summary = "A draggable button that appears in you... | Fix fancy quotes that cause Travis CI build failed while submit to CocoaPods.
|
diff --git a/SHOmniAuthTwitter.podspec b/SHOmniAuthTwitter.podspec
index abc1234..def5678 100644
--- a/SHOmniAuthTwitter.podspec
+++ b/SHOmniAuthTwitter.podspec
@@ -19,8 +19,8 @@
s.source_files = 'SHOmniAuthTwitter/**/*.{h,m}'
s.requires_arc = true
- s.dependency 'TWReverseAuth'
- s.dependency 'AFOAuth1Clien... | Fix breaking changes (use scope)
Set dependency versions
|
diff --git a/little_printer.rb b/little_printer.rb
index abc1234..def5678 100644
--- a/little_printer.rb
+++ b/little_printer.rb
@@ -1,9 +1,15 @@+require 'httparty'
+
class LittlePrinter
+
def initialize(code)
@code = code
end
def message(msg)
- `curl -X POST -d "html=<html><head><meta charset='utf-... | Use HTTPParty instead of CURL
|
diff --git a/test-gir.rb b/test-gir.rb
index abc1234..def5678 100644
--- a/test-gir.rb
+++ b/test-gir.rb
@@ -1,27 +1,33 @@ require 'ffi'
module GLib
- extend FFI::Library
-
- class GType
+ private
+ module Lib
extend FFI::Library
ffi_lib "gobject-2.0"
attach_function :g_type_init, [], :void
- d... | Put FFI stuff in private modules.
|
diff --git a/spec/factories/turns.rb b/spec/factories/turns.rb
index abc1234..def5678 100644
--- a/spec/factories/turns.rb
+++ b/spec/factories/turns.rb
@@ -3,6 +3,5 @@ association :player, factory: :user
association :round, factory: :round
seconds_remaining 60
- cards_won 0
end
end
| Fix tests for turn to reflect deletion of cards_won
|
diff --git a/spec/middleware_spec.rb b/spec/middleware_spec.rb
index abc1234..def5678 100644
--- a/spec/middleware_spec.rb
+++ b/spec/middleware_spec.rb
@@ -16,5 +16,18 @@ middleware.should_receive(:serve_from_escrow?).with(env_pass)
middleware.call env_pass
end
+
+ context 'when request is not served from... | Test pass-through to Rails application |
diff --git a/spec/controllers/locales_controller_spec.rb b/spec/controllers/locales_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/locales_controller_spec.rb
+++ b/spec/controllers/locales_controller_spec.rb
@@ -8,14 +8,14 @@
context 'tries not supported fr locale' do
it 'falls back do... | Fix failed build on master
|
diff --git a/sprockets-rails.gemspec b/sprockets-rails.gemspec
index abc1234..def5678 100644
--- a/sprockets-rails.gemspec
+++ b/sprockets-rails.gemspec
@@ -11,8 +11,10 @@ s.add_dependency "sprockets", [">= 2.8", "< 4.0"]
s.add_dependency "actionpack", ">= 3.0"
s.add_dependency "activesupport", ">= 3.0"
+ s.ad... | Load sass and uglifier as test deps
|
diff --git a/providers/apt_key.rb b/providers/apt_key.rb
index abc1234..def5678 100644
--- a/providers/apt_key.rb
+++ b/providers/apt_key.rb
@@ -17,7 +17,7 @@ action :add do
newkey = new_resource.key
- execute "Adding APT repository key #{newkey}" do
+ execute "Adding APT repository key" do
command "echo '#... | Remove repository key contents from chef output
|
diff --git a/app/helpers/spree/products_helper_decorator.rb b/app/helpers/spree/products_helper_decorator.rb
index abc1234..def5678 100644
--- a/app/helpers/spree/products_helper_decorator.rb
+++ b/app/helpers/spree/products_helper_decorator.rb
@@ -3,7 +3,8 @@
def property_value_for(product, property)
retu... | Add brand to product title.
|
diff --git a/app/importers/file_importers/csv_downloader.rb b/app/importers/file_importers/csv_downloader.rb
index abc1234..def5678 100644
--- a/app/importers/file_importers/csv_downloader.rb
+++ b/app/importers/file_importers/csv_downloader.rb
@@ -15,7 +15,7 @@ log("file_contents.size: #{file_contents.size}")
... | Raise on zero byte CSV
|
diff --git a/db/migrate/20090803194614_add_pcguid_to_sites.rb b/db/migrate/20090803194614_add_pcguid_to_sites.rb
index abc1234..def5678 100644
--- a/db/migrate/20090803194614_add_pcguid_to_sites.rb
+++ b/db/migrate/20090803194614_add_pcguid_to_sites.rb
@@ -1,9 +1,9 @@ class AddPcguidToSites < ActiveRecord::Migration
... | Update migration for external_guid in sites table
Signed-off-by: Tim Morgan <5ee0edb9e2229c0838f1959779f1949031de0123@timmorgan.org>
|
diff --git a/webapp/config/deploy.rb b/webapp/config/deploy.rb
index abc1234..def5678 100644
--- a/webapp/config/deploy.rb
+++ b/webapp/config/deploy.rb
@@ -8,6 +8,7 @@ set :scm, :none
set :deploy_via, :copy
set :copy_exclude, [".git"]
+set :copy_compression, :zip
depend :remote, :command, "rake"
depend :remote, ... | Use zip compression rather than tar + gzip which will default to following symlinks rather than adding the actual symlink to the archive
|
diff --git a/app.rb b/app.rb
index abc1234..def5678 100644
--- a/app.rb
+++ b/app.rb
@@ -10,7 +10,8 @@ get '/' do
headers "Content-Type" => "application/json"
Oj.dump({
- "version" => "1.0"
+ "version" => "1.0",
+ "source" => "https://github.com/keichan34/premailer-api"
})
end
| Add link to GitHub page in /
|
diff --git a/peg.rb b/peg.rb
index abc1234..def5678 100644
--- a/peg.rb
+++ b/peg.rb
@@ -13,4 +13,10 @@ def ==(other_peg)
@color_index == other_peg.color_index
end
+
+ def hash
+ @color_index.hash ^ Peg.hash
+ end
+
+ alias_method :eql?, :==
end
| Add hash equality to Peg class
|
diff --git a/spec/controllers/challenges_controller_spec.rb b/spec/controllers/challenges_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/challenges_controller_spec.rb
+++ b/spec/controllers/challenges_controller_spec.rb
@@ -11,14 +11,14 @@
describe "GET 'show'" do
it "returns http succ... | Fix controller spec for challenges.
|
diff --git a/spec/replication/util/schema_structure_spec.rb b/spec/replication/util/schema_structure_spec.rb
index abc1234..def5678 100644
--- a/spec/replication/util/schema_structure_spec.rb
+++ b/spec/replication/util/schema_structure_spec.rb
@@ -4,8 +4,8 @@
expect(ret).to be_nil, <<-EOS.gsub!(/^ +/, "")
... | Add href to explain schema validation spec in error message
|
diff --git a/rails-footnotes.gemspec b/rails-footnotes.gemspec
index abc1234..def5678 100644
--- a/rails-footnotes.gemspec
+++ b/rails-footnotes.gemspec
@@ -17,6 +17,7 @@ s.add_dependency "rails", ">= 3.2"
s.add_development_dependency "rspec-rails", '~> 2.14.0'
+ s.add_development_dependency "test-unit"
s.ad... | Add test-unit to dev dependencies in order to run tests with rails 3.2 and ruby 2.2
|
diff --git a/test/fluffy_paws_test.rb b/test/fluffy_paws_test.rb
index abc1234..def5678 100644
--- a/test/fluffy_paws_test.rb
+++ b/test/fluffy_paws_test.rb
@@ -12,26 +12,19 @@ end
def test_index_response_is_ok
- get '/'
+ get '/login'
assert last_response.ok?
end
def test_index_body_contains_... | Adjust tests for user authorisation changes
|
diff --git a/spec/output_spec.rb b/spec/output_spec.rb
index abc1234..def5678 100644
--- a/spec/output_spec.rb
+++ b/spec/output_spec.rb
@@ -13,7 +13,7 @@ subject.sources.should match /source 'http:\/\/rubygems\.org'/
end
- it '.source returns sources even as symbols' do
+ it '.source returns sources... | Remove the sound of surprise from the spec.
|
diff --git a/spec/plugin_spec.rb b/spec/plugin_spec.rb
index abc1234..def5678 100644
--- a/spec/plugin_spec.rb
+++ b/spec/plugin_spec.rb
@@ -17,6 +17,18 @@ expect(subclasses).to eq([TestPluginA, TestPluginB])
end
end
+
+ context 'when a plugin supports a list of events' do
+ before do
+ ... | Add a test for supported events
|
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
@@ -23,3 +23,24 @@ PuppetlabsSpec::Files.cleanup
end
end
+
+require 'pathname'
+dir = Pathname.new(__FILE__).parent
+Puppet[:modulepath] = File.join(dir, 'fixtures', 'modules'... | Use modulesync to manage meta files
|
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
@@ -17,7 +17,10 @@
if RUBY_VERSION >= '1.9' and ENV['COVERAGE'] == 'true'
require 'simplecov'
- SimpleCov.start
+ SimpleCov.start do
+ command_name 'spec:unit'
+ add_filt... | Add simplecov configuration to filter out the spec folder
|
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
@@ -13,10 +13,6 @@ require 'support/database_cleaner'
require 'capybara/rspec'
require 'capybara/rails'
-
-Capybara.register_driver :selenium do |app|
- Capybara::Selenium::Driver.... | Revert "Move to Chrome for tests"
Will have to get to Travis CI later.
This reverts commit c1c9edffbce89bbd39249d8fe5e4287c8b94af5f.
|
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,5 +1,7 @@ require "simplecov"
-SimpleCov.start
+SimpleCov.start do
+ add_filter "/spec/"
+end
# Configure Rails Environment
ENV["RAILS_ENV"] = "test"
| Remove the files in spec/ dir from coverage result
|
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
@@ -6,7 +6,6 @@ require 'ptilinopus'
RSpec.configure do |config|
- config.treat_symbols_as_metadata_keys_with_true_values = true
config.run_all_when_everything_filtered = true
... | Remove deprecation warning regarding rspec configuration
|
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,7 +5,6 @@ #
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
RSpec.configure do |config|
- config.treat_symbols_as_metadata_keys_with_true_values = true
... | Remove deprecated setting, rspec3 forces this true.
RSpec::Core::Configuration#treat_symbols_as_metadata_keys_with_true_values= is deprecated. Called from /Users/sane/work/ruby-study/tachikoma/spec/spec_helper.rb:8:in `block in <top (required)>'.
Deprecate config.treat_symbols_as_metadata_keys_with_true_values = fals... |
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
@@ -3,6 +3,7 @@
# Uncomment to use ChefSpec's Berkshelf extension
require 'chefspec/berkshelf'
+require_relative 'support/shared_context'
RSpec.configure do |config|
# Specif... | Use require_relative in shared_context load
|
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
@@ -28,8 +28,7 @@
include ROM
-ROM_ENV = Environment.setup(test: 'memory://test')
-ROM_ADAPTER = ENV.fetch('ROM_ADAPTER', :in_memory).to_sym
+ROM_ENV = Environment.setup(test:... | Remove unused constant from spec env
|
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
@@ -40,4 +40,10 @@ example.run
end
end
+
+ config.before(:each) do |s|
+ md = s.metadata
+ x = md[:example_group]
+ STDERR.puts "==>>> #{x[:file_path]}:#{x[:li... | Print running example groups to ease debugging
|
diff --git a/test/test_tori_define.rb b/test/test_tori_define.rb
index abc1234..def5678 100644
--- a/test/test_tori_define.rb
+++ b/test/test_tori_define.rb
@@ -4,8 +4,9 @@ class Dammy
extend Tori::Define
tori :test_image
+ bird = "piyo"
tori :def_image do |model|
- "foo/#{__tori__}/bar"
+ ... | Add test for out of block should be able to call
|
diff --git a/test/acceptance/test_init.rb b/test/acceptance/test_init.rb
index abc1234..def5678 100644
--- a/test/acceptance/test_init.rb
+++ b/test/acceptance/test_init.rb
@@ -1,24 +1,63 @@ require 'helper'
+require 'pty'
+require 'expect'
class TestInit < Test::Pwm::AppTestCase
#
# Tests that initing with tw... | Use pty and expect to test interactive init dialog
|
diff --git a/init.rb b/init.rb
index abc1234..def5678 100644
--- a/init.rb
+++ b/init.rb
@@ -1,4 +1,14 @@ require 'redmine'
+
+# Patches!
+require 'dispatcher'
+
+Dispatcher.to_prepare :overview_view_page_forward do
+ gem 'lockfile'
+
+ require_dependency 'projects_helper'
+ ProjectsHelper.send(:include, Overv... | Patch the change in, instead.
|
diff --git a/site-cookbooks/meta/recipes/ruby_development.rb b/site-cookbooks/meta/recipes/ruby_development.rb
index abc1234..def5678 100644
--- a/site-cookbooks/meta/recipes/ruby_development.rb
+++ b/site-cookbooks/meta/recipes/ruby_development.rb
@@ -2,8 +2,8 @@ include_recipe "wel_station::gem_setup"
include_recipe... | Switch over to wel-osx-apps for imagemagick and nodejs
This commit switches wel_station to wel-osx-apps as it is being slowly deprecated.
|
diff --git a/attributes/default.rb b/attributes/default.rb
index abc1234..def5678 100644
--- a/attributes/default.rb
+++ b/attributes/default.rb
@@ -18,6 +18,10 @@ normal[:apache][:listen_ports] = ['80']
normal[:apache][:project_web_path] = node[:core][:workspace_path]
+# PHP Settings
+normal[:php][:directives][... | Define PHP's directives needed by Symfony
|
diff --git a/attributes/default.rb b/attributes/default.rb
index abc1234..def5678 100644
--- a/attributes/default.rb
+++ b/attributes/default.rb
@@ -3,7 +3,7 @@ default['racktables']['source']['version'] = "0.20.4"
default['racktables']['source']['checksum'] = "cbd1e2...2b4f65"
default['racktables']['source']['instal... | Fix source recipe looking up URL with double slash
Introduced in 503926c7.
|
diff --git a/attributes/default.rb b/attributes/default.rb
index abc1234..def5678 100644
--- a/attributes/default.rb
+++ b/attributes/default.rb
@@ -3,8 +3,6 @@ default['boulder']['config']['boulder-config']['va']['portConfig']['tlsPort'] = 443
default['boulder']['config']['boulder-config']['syslog']['network'] = 'udp... | Remove personal customization from attributes.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.