diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/vagrantplugins.rb b/vagrantplugins.rb
index abc1234..def5678 100644
--- a/vagrantplugins.rb
+++ b/vagrantplugins.rb
@@ -1,5 +1,5 @@ def install_plugins(plugins)
- not_installed = get_not_installed plugins
+ not_installed = get_not_installed(plugins)
if not_installed.any?
puts "The following requi... | Make sure we continue with all switches after plugin install.
Also adjusted style on function calls.
|
diff --git a/app/helpers/people_helper.rb b/app/helpers/people_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/people_helper.rb
+++ b/app/helpers/people_helper.rb
@@ -4,6 +4,8 @@ form_for @person, :html => { :multipart => true } do |form|
yield form
concat form.submit("Save")
+ concat "... | Add cancel button to person edit forms
|
diff --git a/app/models/channel_member.rb b/app/models/channel_member.rb
index abc1234..def5678 100644
--- a/app/models/channel_member.rb
+++ b/app/models/channel_member.rb
@@ -2,4 +2,5 @@ belongs_to :channel
belongs_to :user
validates :user_id, :channel_id, presence: true
+ validate :user_id, uniqueness: true... | Add uniqueness validation to user on channel member
|
diff --git a/app/models/person_edition.rb b/app/models/person_edition.rb
index abc1234..def5678 100644
--- a/app/models/person_edition.rb
+++ b/app/models/person_edition.rb
@@ -10,7 +10,6 @@ field :affiliation, type: String
# name: uses artefact name
field :role, type: String
- field ... | Revert "Add team to PersonEdition"
This reverts commit 96043a66ff73d51b44f1cefcd9fee1d1ce4b5169.
|
diff --git a/spec/csv2avro_spec.rb b/spec/csv2avro_spec.rb
index abc1234..def5678 100644
--- a/spec/csv2avro_spec.rb
+++ b/spec/csv2avro_spec.rb
@@ -10,7 +10,7 @@ subject(:converter) { CSV2Avro.new(options) }
it 'should write errors to STDERR' do
- expect { converter.convert }.to output("line 4: Missing... | Update tests to new test data
|
diff --git a/spec/registry_spec.rb b/spec/registry_spec.rb
index abc1234..def5678 100644
--- a/spec/registry_spec.rb
+++ b/spec/registry_spec.rb
@@ -3,6 +3,17 @@ describe Calyx::Grammar::Registry do
let(:registry) do
Calyx::Grammar::Registry.new
+ end
+
+ context '#evaluate' do
+ # Need to do some more wor... | Add notes about improving the representation of tree structures
|
diff --git a/app/controllers/learning_objects_controller.rb b/app/controllers/learning_objects_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/learning_objects_controller.rb
+++ b/app/controllers/learning_objects_controller.rb
@@ -1,12 +1,12 @@ class LearningObjectsController < ApplicationController
... | Implement edit learning object feature
|
diff --git a/test/unit/download/router_test.rb b/test/unit/download/router_test.rb
index abc1234..def5678 100644
--- a/test/unit/download/router_test.rb
+++ b/test/unit/download/router_test.rb
@@ -37,7 +37,7 @@ domain = 'general'
params = {'id' => '123', 'email' => 'test@test.com'}
- $redis.expects(:set).... | Fix intermittent failing test through the use of regexp
|
diff --git a/ace-theme.gemspec b/ace-theme.gemspec
index abc1234..def5678 100644
--- a/ace-theme.gemspec
+++ b/ace-theme.gemspec
@@ -1,10 +1,12 @@ Gem::Specification.new do |s|
s.name = 'ace-theme'
- s.version = '1.0.1'
+ s.version = '1.0.2'
s.license = 'MIT'
s.summary = 'Ace: A Jekyll theme.'
s.a... | Add dependencies on Jekyll and jekyll-paginate.
|
diff --git a/lib/metacrunch/mab2/builder.rb b/lib/metacrunch/mab2/builder.rb
index abc1234..def5678 100644
--- a/lib/metacrunch/mab2/builder.rb
+++ b/lib/metacrunch/mab2/builder.rb
@@ -33,6 +33,10 @@ @document
end
+ def superorder!
+ controlfield("051", "n")
+ end
+
class Subf... | Add superorder helper to DSL.
|
diff --git a/lib/prefetcher/http_fetcher.rb b/lib/prefetcher/http_fetcher.rb
index abc1234..def5678 100644
--- a/lib/prefetcher/http_fetcher.rb
+++ b/lib/prefetcher/http_fetcher.rb
@@ -16,10 +16,6 @@ fetch_async.value
end
- def get_from_memory
- @redis_connection.get(cache_key)
- end
-
# Re... | Remove obsolete code - merging issue.
|
diff --git a/cbr2cbz.rb b/cbr2cbz.rb
index abc1234..def5678 100644
--- a/cbr2cbz.rb
+++ b/cbr2cbz.rb
@@ -1,4 +1,20 @@ # encoding: utf-8
+
+require 'optparse'
+
+options = {}
+OptionParser.new do |opts|
+ opts.banner = "Usage: cbr2cbz [options] file ..."
+
+ opts.on("-k", "--keep", "Keep original file") do |k|
+ op... | Add keep original file option
|
diff --git a/pieces.gemspec b/pieces.gemspec
index abc1234..def5678 100644
--- a/pieces.gemspec
+++ b/pieces.gemspec
@@ -21,6 +21,7 @@ spec.add_development_dependency 'bundler'
spec.add_development_dependency 'codeclimate-test-reporter'
spec.add_development_dependency 'mustache'
+ spec.add_development_dependen... | Add pry to dev dependencies |
diff --git a/plugin_gems.rb b/plugin_gems.rb
index abc1234..def5678 100644
--- a/plugin_gems.rb
+++ b/plugin_gems.rb
@@ -1,7 +1,7 @@ dir 'plugin_gems'
download "httpclient", "2.4.0"
download "td-client", "0.8.68"
-download "td", "0.11.8"
+download "td", "0.11.8.1"
download "fluent-plugin-td", "0.10.26"
download "th... | Use latest td command to reduce package size
|
diff --git a/user_with_email/test/forms/has_one_test.rb b/user_with_email/test/forms/has_one_test.rb
index abc1234..def5678 100644
--- a/user_with_email/test/forms/has_one_test.rb
+++ b/user_with_email/test/forms/has_one_test.rb
@@ -0,0 +1,33 @@+require 'test_helper'
+
+class HasOneTest < ActiveSupport::TestCase
+ def... | Add test case for HasOne populator
|
diff --git a/app/services/payload_parser.rb b/app/services/payload_parser.rb
index abc1234..def5678 100644
--- a/app/services/payload_parser.rb
+++ b/app/services/payload_parser.rb
@@ -43,7 +43,7 @@ private
def pull_request_or_issue_params
- payload["pull_request"] || payload["issue"]
+ payload["pull_reque... | Return an empty hash if no pull request or issue
|
diff --git a/config/initializers/security_headers.rb b/config/initializers/security_headers.rb
index abc1234..def5678 100644
--- a/config/initializers/security_headers.rb
+++ b/config/initializers/security_headers.rb
@@ -3,6 +3,8 @@ config.x_frame_options = 'DENY'
config.x_content_type_options = "nosniff"
... | Comment for CSP unsafe-inline cause.
|
diff --git a/app/importers/rows/access_row.rb b/app/importers/rows/access_row.rb
index abc1234..def5678 100644
--- a/app/importers/rows/access_row.rb
+++ b/app/importers/rows/access_row.rb
@@ -15,7 +15,7 @@ )
student_assessment.assign_attributes(
- scale_score: row[:assessment_scale_score],
+ scale... | Access importer: guard against nil values upstream
|
diff --git a/Casks/backblaze.rb b/Casks/backblaze.rb
index abc1234..def5678 100644
--- a/Casks/backblaze.rb
+++ b/Casks/backblaze.rb
@@ -8,4 +8,16 @@ license :commercial
installer :manual => 'Backblaze Installer.app'
+
+ uninstall :launchctl => [
+ 'com.backblaze.bzserv.plist',
+ ... | Add uninstall and zap stanzas for Backblaze
|
diff --git a/roles/foundation.rb b/roles/foundation.rb
index abc1234..def5678 100644
--- a/roles/foundation.rb
+++ b/roles/foundation.rb
@@ -22,8 +22,6 @@ :innodb_buffer_pool_size => "512M",
:key_buffer_size => "64M",
:max_connections => "200",
- :query_cache_size => "48M",
- :qu... | Drop no longer support mysql configuration options
|
diff --git a/app/models/drift/static_model.rb b/app/models/drift/static_model.rb
index abc1234..def5678 100644
--- a/app/models/drift/static_model.rb
+++ b/app/models/drift/static_model.rb
@@ -1,14 +1,6 @@ module Drift
class StaticModel
-
- def initialize(args)
- args.each do |k, v|
- instance_variabl... | Move instance method below class methods
|
diff --git a/TextFormater.podspec b/TextFormater.podspec
index abc1234..def5678 100644
--- a/TextFormater.podspec
+++ b/TextFormater.podspec
@@ -8,7 +8,7 @@ DESC
s.homepage = 'https://github.com/1fr3dg/TextFormater'
- # s.screenshots = 'www.example.com/screenshots_1', 'www.examp... | Modify podspec to add screenshot
|
diff --git a/config.ru b/config.ru
index abc1234..def5678 100644
--- a/config.ru
+++ b/config.ru
@@ -6,6 +6,7 @@ require 'data_mapper'
require 'slim'
require "cuba/render"
+require 'yaml'
# app
require "./app"
@@ -13,4 +14,6 @@ #Bar.create name: "MonBar"
#Beer.create price: 3, bar_id: Bar.first.id
+ENV['CUBA_E... | Add a basic support for environment
|
diff --git a/tasks/devtools.rake b/tasks/devtools.rake
index abc1234..def5678 100644
--- a/tasks/devtools.rake
+++ b/tasks/devtools.rake
@@ -1,8 +1,8 @@ target_gemfile = Devtools.project.shared_gemfile_path
source_gemfile = Devtools.shared_gemfile_path
-target_config = Devtools.project.root
-source_config = Devtoo... | Rename local variable to be more meaningful |
diff --git a/cookbooks/load-balancer/definitions/arr_farm_algorithm.rb b/cookbooks/load-balancer/definitions/arr_farm_algorithm.rb
index abc1234..def5678 100644
--- a/cookbooks/load-balancer/definitions/arr_farm_algorithm.rb
+++ b/cookbooks/load-balancer/definitions/arr_farm_algorithm.rb
@@ -1,4 +1,5 @@ # Enum must be ... | Add comment about LB algorithms
|
diff --git a/core/lib/generators/refinery/engine/templates/db/seeds.rb b/core/lib/generators/refinery/engine/templates/db/seeds.rb
index abc1234..def5678 100644
--- a/core/lib/generators/refinery/engine/templates/db/seeds.rb
+++ b/core/lib/generators/refinery/engine/templates/db/seeds.rb
@@ -16,8 +16,8 @@ :deletabl... | Set page part positions on engine generation.
|
diff --git a/spec/nod/base_files_spec.rb b/spec/nod/base_files_spec.rb
index abc1234..def5678 100644
--- a/spec/nod/base_files_spec.rb
+++ b/spec/nod/base_files_spec.rb
@@ -0,0 +1,16 @@+
+require 'spec_helper'
+
+RSpec.describe BASE_FILES do
+ let (:base_files) {BASE_FILES.map {|file| File.basename(file)} }
+
+ it ... | Add specs for base files
|
diff --git a/bin/pcap-trace.rb b/bin/pcap-trace.rb
index abc1234..def5678 100644
--- a/bin/pcap-trace.rb
+++ b/bin/pcap-trace.rb
@@ -0,0 +1,24 @@+#!/usr/bin/env ruby
+# -*- encoding: utf-8 -*-
+require 'arbdrone/nav_data.rb'
+require 'pcap'
+
+include ARbDrone::NavData
+include Pcap
+
+# TODO: Allow configuring a live ... | Add utility to trace drone packets
|
diff --git a/Library/Homebrew/os/mac/version.rb b/Library/Homebrew/os/mac/version.rb
index abc1234..def5678 100644
--- a/Library/Homebrew/os/mac/version.rb
+++ b/Library/Homebrew/os/mac/version.rb
@@ -13,7 +13,7 @@ :snow_leopard => "10.6",
:leopard => "10.5",
:tiger => "10.4",
-... | Fix bottle tag sort order for Linuxbrew
|
diff --git a/lib/job_board/services/allocate_jobs.rb b/lib/job_board/services/allocate_jobs.rb
index abc1234..def5678 100644
--- a/lib/job_board/services/allocate_jobs.rb
+++ b/lib/job_board/services/allocate_jobs.rb
@@ -8,7 +8,7 @@ def initialize(jobs: [], count: 1, from: '', queue: '', site: '')
@count... | Handle case where jobs is nil
|
diff --git a/lib/puppet/provider/dbmigrate/script.rb b/lib/puppet/provider/dbmigrate/script.rb
index abc1234..def5678 100644
--- a/lib/puppet/provider/dbmigrate/script.rb
+++ b/lib/puppet/provider/dbmigrate/script.rb
@@ -30,7 +30,7 @@ def default_args
scriptname = "#{resource[:name]}/stuff/db-migrate.py"
if... | Upgrade to the new db-migrate.py config flag
|
diff --git a/lib/saasable/mongoid/scoped_document.rb b/lib/saasable/mongoid/scoped_document.rb
index abc1234..def5678 100644
--- a/lib/saasable/mongoid/scoped_document.rb
+++ b/lib/saasable/mongoid/scoped_document.rb
@@ -10,7 +10,7 @@
# Indexes
index({saas_id: 1})
- index({saad_id: 1, _id: 1}, uniqu... | Fix typo in index key |
diff --git a/random_bell.gemspec b/random_bell.gemspec
index abc1234..def5678 100644
--- a/random_bell.gemspec
+++ b/random_bell.gemspec
@@ -20,5 +20,5 @@
spec.add_development_dependency "bundler"
spec.add_development_dependency "rake"
- spec.add_development_dependency "rspec"
+ spec.add_development_dependency... | Add version to development dependency.
|
diff --git a/app/controllers/spree/checkout_controller_decorator.rb b/app/controllers/spree/checkout_controller_decorator.rb
index abc1234..def5678 100644
--- a/app/controllers/spree/checkout_controller_decorator.rb
+++ b/app/controllers/spree/checkout_controller_decorator.rb
@@ -0,0 +1,21 @@+module Spree
+ CheckoutCo... | Add redirect to coinbase if they submit payment form.
|
diff --git a/week-6/gps2_3.rb b/week-6/gps2_3.rb
index abc1234..def5678 100644
--- a/week-6/gps2_3.rb
+++ b/week-6/gps2_3.rb
@@ -0,0 +1,44 @@+# Your Names
+# 1)
+# 2)
+
+# We spent [#] hours on this challenge.
+
+# Bakery Serving Size portion calculator.
+
+def serving_size_calc(item_to_make, order_quantity)
+ library... | Add new GPS 2.3 Code
|
diff --git a/rss-dcterms.gemspec b/rss-dcterms.gemspec
index abc1234..def5678 100644
--- a/rss-dcterms.gemspec
+++ b/rss-dcterms.gemspec
@@ -4,7 +4,7 @@ Gem::Specification.new do |gem|
gem.authors = ["KITAITI Makoto"]
gem.email = ["KitaitiMakoto@gmail.com"]
- gem.description = %q{Enable standard ... | Add full name of DCMI
|
diff --git a/services/twitter.rb b/services/twitter.rb
index abc1234..def5678 100644
--- a/services/twitter.rb
+++ b/services/twitter.rb
@@ -1,17 +1,16 @@ service :twitter do |data, payload|
repository = payload['repository']['name']
- url = URI.parse("http://twitter.com/statuses/update.xml")
+ url = URI.parse("... | Fix up the Twitter digest code
|
diff --git a/lib/generators/tabster/install_generator.rb b/lib/generators/tabster/install_generator.rb
index abc1234..def5678 100644
--- a/lib/generators/tabster/install_generator.rb
+++ b/lib/generators/tabster/install_generator.rb
@@ -0,0 +1,21 @@+module Tabster
+ module Generators
+ class InstallGenerator < Rail... | Add setup generator for config and styles files.
|
diff --git a/lib/shipit/first_parent_commits_iterator.rb b/lib/shipit/first_parent_commits_iterator.rb
index abc1234..def5678 100644
--- a/lib/shipit/first_parent_commits_iterator.rb
+++ b/lib/shipit/first_parent_commits_iterator.rb
@@ -8,7 +8,7 @@ next
end
- if last_ancestor.parents.first.s... | Handle orphan commits in GithubSyncJob
|
diff --git a/recipes/dsc_demo.rb b/recipes/dsc_demo.rb
index abc1234..def5678 100644
--- a/recipes/dsc_demo.rb
+++ b/recipes/dsc_demo.rb
@@ -17,19 +17,19 @@ #
dsc_resource 'demogroupremove' do
- resource_name :group
+ resource :group
property :groupname, 'demo1'
property :ensure, 'absent'
end
dsc_resourc... | Fix demo recipe to use resource attribute instead of resource_name
|
diff --git a/ryespy.gemspec b/ryespy.gemspec
index abc1234..def5678 100644
--- a/ryespy.gemspec
+++ b/ryespy.gemspec
@@ -8,11 +8,8 @@ spec.version = Ryespy::VERSION
spec.authors = ["tiredpixel"]
spec.email = ["tp@tiredpixel.com"]
- spec.description = %q{Ryespy provides a simple executable... | Update gemspec metadata and lock to redis 3.x instead of 3.0.x .
|
diff --git a/schema.gemspec b/schema.gemspec
index abc1234..def5678 100644
--- a/schema.gemspec
+++ b/schema.gemspec
@@ -2,7 +2,7 @@ Gem::Specification.new do |s|
s.name = 'evt-schema'
s.summary = "Primitives for schema and data structure"
- s.version = '2.2.4.1'
+ s.version = '2.2.4.2'
s.description = ' '
... | Package version increased from 2.2.4.1 to 2.2.4.2
|
diff --git a/app/filters/link_filter.rb b/app/filters/link_filter.rb
index abc1234..def5678 100644
--- a/app/filters/link_filter.rb
+++ b/app/filters/link_filter.rb
@@ -7,6 +7,9 @@ *.youtube.com
vimeo.com
soundcloud.com
+ i.imgur.com
+ *.cloudfront.net
+ *.s3.amazonaws.com
}
def process(p... | Rewrite HTTPS URLs for images as well
|
diff --git a/.citrus/config.rb b/.citrus/config.rb
index abc1234..def5678 100644
--- a/.citrus/config.rb
+++ b/.citrus/config.rb
@@ -1,3 +1,3 @@ Citrus::Configuration.describe do |c|
- c.build_script = 'gem ins bundler && bundle install && bundle exec rspec'
+ c.build_script = 'bundle install && bundle exec rspec'
e... | Drop bundler gem install from example, lags on rubygems.
|
diff --git a/features/step_definitions/teacher_registers_steps.rb b/features/step_definitions/teacher_registers_steps.rb
index abc1234..def5678 100644
--- a/features/step_definitions/teacher_registers_steps.rb
+++ b/features/step_definitions/teacher_registers_steps.rb
@@ -1,4 +1,8 @@ Given /^I am an anonymous user$/ do... | Fix Teacher registration step definition
There was an issue appearing only on the CI server because the anonymous user was not present when it was expected to be so. I've updated the step definitions to ensure the user is there. |
diff --git a/features/support/env.rb b/features/support/env.rb
index abc1234..def5678 100644
--- a/features/support/env.rb
+++ b/features/support/env.rb
@@ -1,18 +1,6 @@ require 'codewars_cli/runner'
require 'aruba/cucumber'
require 'aruba/in_process'
-
-Before do
- @real_path = ENV['HOME']
- @fake_home = File.join... | Remove extra configuration for mocking ENV[HOME] aruba handle it
|
diff --git a/app/models/raw_time_row.rb b/app/models/raw_time_row.rb
index abc1234..def5678 100644
--- a/app/models/raw_time_row.rb
+++ b/app/models/raw_time_row.rb
@@ -4,7 +4,7 @@ include ActiveModel::Serializers::JSON
RAW_TIME_ATTRIBUTES = [:id, :absolute_time, :entered_time, :bib_number, :split_name, :sub_spl... | Add lap back to the Raw Time Row serializer
|
diff --git a/BlocksKit.podspec b/BlocksKit.podspec
index abc1234..def5678 100644
--- a/BlocksKit.podspec
+++ b/BlocksKit.podspec
@@ -15,13 +15,4 @@ s.ios.frameworks = 'MessageUI'
s.ios.source_files = 'BlocksKit/*.{h,m}', 'BlocksKit/UIKit/*.{h,m}', 'BlocksKit/MessageUI/*.{h,m}'
s.ios.deployment_targe... | Remove documentation bit from podspec
|
diff --git a/app/controllers/v1/usergroups_controller.rb b/app/controllers/v1/usergroups_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/v1/usergroups_controller.rb
+++ b/app/controllers/v1/usergroups_controller.rb
@@ -3,5 +3,16 @@ def index
render json: current_user.groups
end
+
+ ... | Add api for joining and leaving groups
|
diff --git a/app/mutations/task/comments/base_comment.rb b/app/mutations/task/comments/base_comment.rb
index abc1234..def5678 100644
--- a/app/mutations/task/comments/base_comment.rb
+++ b/app/mutations/task/comments/base_comment.rb
@@ -28,7 +28,7 @@ def self.commenter
@commenter ||= User::Identity.find_or_creat... | Fix spec; status field isn't on the user any more.
|
diff --git a/app/overrides/add_capture_order_shortcut.rb b/app/overrides/add_capture_order_shortcut.rb
index abc1234..def5678 100644
--- a/app/overrides/add_capture_order_shortcut.rb
+++ b/app/overrides/add_capture_order_shortcut.rb
@@ -0,0 +1,21 @@+Deface::Override.new(:virtual_path => "spree/admin/orders/index",
+... | Add capture button and resize columns
|
diff --git a/app/presenters/event_reconcile_presenter.rb b/app/presenters/event_reconcile_presenter.rb
index abc1234..def5678 100644
--- a/app/presenters/event_reconcile_presenter.rb
+++ b/app/presenters/event_reconcile_presenter.rb
@@ -7,7 +7,7 @@ end
def unreconciled_batch
- event.unreconciled_efforts.order... | Fix bug in EventReconcilePresenter that kept efforts from being matched.
|
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
@@ -2,4 +2,9 @@ Bundler.require
require 'ostruct'
+require 'rspec/fire'
require File.expand_path("../../lib/textrazor" ,__FILE__)
+
+RSpec.configure do |config|
+ config.include(... | Add code to initialise rspec-fire.
|
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,18 +1,10 @@ require 'puppetlabs_spec_helper/module_spec_helper'
require 'shared_examples'
-
-require 'puppet-openstack_spec_helper/defaults'
-require 'rspec-puppet-facts'
-incl... | Move rspec-puppet-facts to spec helper
This change updates the module to use the rspec-puppet-facts as defined
in the puppet-openstack_spec_helper.
Change-Id: I8da03b20f05fa25aab70147d6f4445e4fdbc1101
|
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,6 @@ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
+
require 'tempfile'
require 'rspec'
require 'fakefs/... | Fix support requires in spec/helper.rb
|
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,7 +12,7 @@
config.before :suite do
system 'rm -r /tmp/s3'
- s3 = spawn 'fakes3 --port 10001 --root /tmp/s3'
+ s3 = spawn 'fakes3 --port 10001 --root /tmp/s3', er... | Hide fakes3 output in tests
|
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
@@ -7,6 +7,7 @@ require "syoboi_calendar"
require "webmock/rspec"
+WebMock.allow_net_connect!
module SyoboiCalendar::Fixture
extend self
| Allow net connect in spec
|
diff --git a/attributes/client.rb b/attributes/client.rb
index abc1234..def5678 100644
--- a/attributes/client.rb
+++ b/attributes/client.rb
@@ -5,8 +5,14 @@
case node["platform_family"]
when "debian"
+ abi_version = case version
+ when "5.5" then "18"
+ when "5.6" then "18.1"
+ ... | Fix odd package names on ubuntu trusty
|
diff --git a/lib/spirit_intent_listener/spirit/intent_listener.rb b/lib/spirit_intent_listener/spirit/intent_listener.rb
index abc1234..def5678 100644
--- a/lib/spirit_intent_listener/spirit/intent_listener.rb
+++ b/lib/spirit_intent_listener/spirit/intent_listener.rb
@@ -1,8 +1,9 @@ module Spirit
class IntentListen... | Allow redis to be injected into intent listener |
diff --git a/app/controllers/help_controller.rb b/app/controllers/help_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/help_controller.rb
+++ b/app/controllers/help_controller.rb
@@ -3,9 +3,6 @@ class HelpController < ApplicationController
before_filter :setup_slimmer_artefact
before_filter :set... | Remove redundant rescue_from calls from HelpController |
diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/home_controller.rb
+++ b/app/controllers/home_controller.rb
@@ -3,9 +3,13 @@ layout 'relaunch'
def index
+=begin
+ Find a way to cache this:
+
unless user_signed_in? ||... | Remove caching from home index action.
|
diff --git a/data-aggregation-index.gemspec b/data-aggregation-index.gemspec
index abc1234..def5678 100644
--- a/data-aggregation-index.gemspec
+++ b/data-aggregation-index.gemspec
@@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'data_aggregation-index'
- s.version = '0.5.0.1'
+ s... | Package version is incremented from 0.5.0.1 to 0.5.0.2
|
diff --git a/spec/branch_spec.rb b/spec/branch_spec.rb
index abc1234..def5678 100644
--- a/spec/branch_spec.rb
+++ b/spec/branch_spec.rb
@@ -0,0 +1,12 @@+require 'spec_helper'
+require 'compo'
+require 'branch_shared_examples'
+
+# Mock implementation of a Branch
+class MockBranch
+ include Compo::Branch
+end
+
+descr... | Add spec for mocked-up branches.
|
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,5 @@ require 'rubygems'
require 'spork'
-require 'spork/ext/ruby-debug'
Spork.prefork do
require 'bundler'
| Remove spork debug hooks for now. Doesn't work on Travis because we exclude ruby-debug.
|
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
@@ -14,8 +14,7 @@ }
end
require_relative '../postman/database'
-require_relative 'support/test_adapter'
-require_relative 'support/spawners'
+Dir[::File.join(root, "support/**/*.r... | Load all files inside support dir in one line
|
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index abc1234..def5678 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,7 +1,8 @@ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
# Require necessary files for sidekiq to believe it's running in server mode
-require 'celluloid'
+requir... | Make the celluloid requirement conditional on the Sidekiq version.
|
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,4 +17,19 @@ end
require File.expand_path('../../vendor/buildr/spec/spec_helpers', __FILE__)
+
+ module SpecHelpers
+ def root_project_filename(project_name)
+ "... | Customize spec helper to add some iidea specific helpers
|
diff --git a/simple_form.gemspec b/simple_form.gemspec
index abc1234..def5678 100644
--- a/simple_form.gemspec
+++ b/simple_form.gemspec
@@ -17,6 +17,8 @@ s.test_files = Dir["test/**/*.rb"]
s.test_files -= Dir["test/support/country_select/**/*"]
s.require_paths = ["lib"]
+
+ s.required_ruby_version = '>... | Add required Ruby version to .gemspec file |
diff --git a/spec/consul_spec.rb b/spec/consul_spec.rb
index abc1234..def5678 100644
--- a/spec/consul_spec.rb
+++ b/spec/consul_spec.rb
@@ -5,7 +5,7 @@ end
describe command('consul version'), :if => ['alpine', 'debian'].include?(os[:family]) do
- its(:stdout) { should contain("Consul v0.6.4") }
+ its(:stdout) { s... | Update spec about Consul version on Linux.
|
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,7 @@ :database => 'chie_test',
}
-DATABASE_URL = "mysql2://#{CREDENTIALS[:user]}:#{CREDENTIALS[:password]}@#{CREDENTIALS[:host]}/#{CREDENTIALS[:database]}"
+DATABASE... | Fix stupid typo in DATABASE_URL helper
|
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
@@ -8,8 +8,10 @@ end
calculate_stack_overflow_depth(2)
else
- 0
+ 16384
end
+
+puts STACK_OVERFLOW_DEPTH
class DeterministicHash
| Set a very big stack number if we can't determine one.
|
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
@@ -41,7 +41,7 @@ return app
end
-ENV['GASTRO_RESET_TOKEN'] = Digest::MD5.new.hexdigest(Time.now.to_i.to_s)
-ENV['MORPH_API_KEY'] = Digest::MD5.new.hexdigest((Time.now.to_i + 10)... | Make test data random, to help uncover any surprising bugs
|
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,3 +40,5 @@ end
OmniAuth.config.test_mode = true
+
+WebMock.disable_net_connect! :allow => /coveralls\.io/
| Configure Webmock to allow HTTP requests to coveralls.io
|
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
@@ -15,4 +15,12 @@ # Only allow expect syntax
c.syntax = :expect
end
+
+ config.before do
+ Celluloid.shutdown
+ Celluloid.boot
+
+ Celluloid.logger = nil
+ M... | Reset Celluloid actors and logger settings before each spec.
|
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,5 +13,10 @@
config.before do
allow(KindleManager::FileStore).to receive(:downloads_dir).and_return('spec/fixtures/downloads')
+
+ # Mock credentials
+ %w[AMAZON_... | Fix test with mocking credentials
|
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,8 +13,8 @@ SimpleCov.start do
command_name 'spec:unit'
+ add_filter 'support'
add_filter 'config'
- add_filter 'spec'
add_filter 'vendor'
minimu... | Remove coverage filter for specs.
DOH!
|
diff --git a/resources/uninstall_package.rb b/resources/uninstall_package.rb
index abc1234..def5678 100644
--- a/resources/uninstall_package.rb
+++ b/resources/uninstall_package.rb
@@ -18,12 +18,17 @@
delete_cache_path_action = "Delete the installer cache directory #{installer_cache_path}"
delete_install_path_ac... | [JLT-163581] Refactor uninstall recipes
* Fixed bug in agents_package_uinstall recipe after last refactoring
* Verified fix by running agents-package-uninstall-centos-6
|
diff --git a/app/models/registerable_edition.rb b/app/models/registerable_edition.rb
index abc1234..def5678 100644
--- a/app/models/registerable_edition.rb
+++ b/app/models/registerable_edition.rb
@@ -41,10 +41,13 @@ end
def state
- if archivable?
+ case edition.state
+ when "archived", "deleted"
... | Clean logic for setting registerable edition state
* Clarifies logic for setting registerable edition state
|
diff --git a/db/migrate/20141121025443_create_schools.rb b/db/migrate/20141121025443_create_schools.rb
index abc1234..def5678 100644
--- a/db/migrate/20141121025443_create_schools.rb
+++ b/db/migrate/20141121025443_create_schools.rb
@@ -1,16 +1,16 @@ class CreateSchools < ActiveRecord::Migration
def change
crea... | Modify school migration file to only pull from one Socrata API
|
diff --git a/test/integration/session_answers_test.rb b/test/integration/session_answers_test.rb
index abc1234..def5678 100644
--- a/test/integration/session_answers_test.rb
+++ b/test/integration/session_answers_test.rb
@@ -27,7 +27,7 @@ end
test "Returning to start of flow resets session" do
- visit "corona... | Update broken test from changing flow slug
We changed the coronavirus-find-support flow to find-coronavirus-support
, however this test was added with then old path.
|
diff --git a/catarse_moip.gemspec b/catarse_moip.gemspec
index abc1234..def5678 100644
--- a/catarse_moip.gemspec
+++ b/catarse_moip.gemspec
@@ -18,7 +18,7 @@ s.test_files = s.files.grep(%r{^(test|spec|features)/})
s.add_dependency "rails", "~> 3.2.13"
- s.add_dependency('libxml-ruby', '~> 2.3.3')
+ s.add_depe... | Update libxml-ruby version to the latest
I could not install or proceed with my catarse install due to this version failing on OSX. |
diff --git a/app/controllers/crowdblog/controller.rb b/app/controllers/crowdblog/controller.rb
index abc1234..def5678 100644
--- a/app/controllers/crowdblog/controller.rb
+++ b/app/controllers/crowdblog/controller.rb
@@ -4,7 +4,7 @@ before_filter :authorize!
def authorize!
- redirect_to main_app.new_use... | Use sign in url in main_app
|
diff --git a/app/controllers/decisions_controller.rb b/app/controllers/decisions_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/decisions_controller.rb
+++ b/app/controllers/decisions_controller.rb
@@ -1,6 +1,10 @@ class DecisionsController < ApplicationController
def show
decision = co.decis... | Handle resolution type better in DecisionsController.
|
diff --git a/app/controllers/questions_controller.rb b/app/controllers/questions_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/questions_controller.rb
+++ b/app/controllers/questions_controller.rb
@@ -0,0 +1,24 @@+get '/questions' do
+ @questions = Question.all
+ erb :'/questions/index'
+end
+
+ge... | Create some routes for questions
|
diff --git a/app/models/miq_remote_console_worker.rb b/app/models/miq_remote_console_worker.rb
index abc1234..def5678 100644
--- a/app/models/miq_remote_console_worker.rb
+++ b/app/models/miq_remote_console_worker.rb
@@ -20,4 +20,16 @@ def container_port
3001
end
+
+ def configure_service_worker_deployment(d... | Enable SSL to the remote console pods
|
diff --git a/lib/open_conference_ware/engine.rb b/lib/open_conference_ware/engine.rb
index abc1234..def5678 100644
--- a/lib/open_conference_ware/engine.rb
+++ b/lib/open_conference_ware/engine.rb
@@ -11,7 +11,11 @@ ]
initializer "open_conference_ware.assets.precompile" do |app|
- app.config.assets.prec... | Update asset pre-compilation list to include more file types
|
diff --git a/lib/rubycritic/analysers_runner.rb b/lib/rubycritic/analysers_runner.rb
index abc1234..def5678 100644
--- a/lib/rubycritic/analysers_runner.rb
+++ b/lib/rubycritic/analysers_runner.rb
@@ -27,7 +27,7 @@ end
def aggregate_smells(smell_adapters)
- smell_adapters.map(&:smells).flatten.sort
+ ... | Use flat_map instead of map followed by flatten
Not only is this more idiomatic, [it's also better performance wise!][1]
[1]: http://gistflow.com/posts/578-use-flat_map-instead-of-map-flatten
|
diff --git a/lib/simple_queues/encoders/json.rb b/lib/simple_queues/encoders/json.rb
index abc1234..def5678 100644
--- a/lib/simple_queues/encoders/json.rb
+++ b/lib/simple_queues/encoders/json.rb
@@ -3,7 +3,7 @@ module SimpleQueues
class JsonEncoder
def encode(message)
- JSON.generate(message)
+ mess... | Fix 'NoMethodError merge for JSON::Ext::Generator::State'
See http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/3739dd637e038fa9
And http://stackoverflow.com/questions/4934917/rails-json-conversion-error
|
diff --git a/lib/business_calendar/holiday_determiner.rb b/lib/business_calendar/holiday_determiner.rb
index abc1234..def5678 100644
--- a/lib/business_calendar/holiday_determiner.rb
+++ b/lib/business_calendar/holiday_determiner.rb
@@ -17,9 +17,8 @@ elsif removals.include? date
false
elsif !additions_o... | Use Ruby 1.8-compatible syntax.
Also a minor refactor.
|
diff --git a/lib/spout/templates/test/dictionary_test.rb b/lib/spout/templates/test/dictionary_test.rb
index abc1234..def5678 100644
--- a/lib/spout/templates/test/dictionary_test.rb
+++ b/lib/spout/templates/test/dictionary_test.rb
@@ -4,7 +4,7 @@ include Spout::Tests
# You may add additional tests here
- # te... | Use standard ruby method for defining tests
|
diff --git a/findrepos.gemspec b/findrepos.gemspec
index abc1234..def5678 100644
--- a/findrepos.gemspec
+++ b/findrepos.gemspec
@@ -17,6 +17,8 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ['lib']
+ spec.add_dependency 'thor'
+
spec.add_development_dependency 'bund... | Add thor to the dependencies (I forgot to do this earlier)
|
diff --git a/spec/file_readers/base_spec.rb b/spec/file_readers/base_spec.rb
index abc1234..def5678 100644
--- a/spec/file_readers/base_spec.rb
+++ b/spec/file_readers/base_spec.rb
@@ -1,5 +1,13 @@ require 'spec_helper'
describe RubyJawbone::FileReaders::Base do
- #
+ let(:file) { double "File" }
+
+ describe "#i... | Add small tests to cover a file reader being initialized with a file.
|
diff --git a/spec/node/node_version_spec.rb b/spec/node/node_version_spec.rb
index abc1234..def5678 100644
--- a/spec/node/node_version_spec.rb
+++ b/spec/node/node_version_spec.rb
@@ -3,13 +3,13 @@ # Node 4.x
if property[:name] =~ /v4./
describe command('node -v') do
- its(:stdout) { should contain('v4.8.1') }
... | Update for Node.js v4.8.2 and v6.10.2
|
diff --git a/api/gificiency.rb b/api/gificiency.rb
index abc1234..def5678 100644
--- a/api/gificiency.rb
+++ b/api/gificiency.rb
@@ -51,7 +51,11 @@
def get_random_gif_by_category(category)
gif_set = get_category_gifs(category)
- gif_set.sample[:url]
+ unless gif_set.empty?
+ gif_set.sample[:url]
+ ... | Return empty result if no GIF found in "API"
|
diff --git a/lib/cli.rb b/lib/cli.rb
index abc1234..def5678 100644
--- a/lib/cli.rb
+++ b/lib/cli.rb
@@ -0,0 +1,37 @@+require 'thor'
+require 'card'
+require 'yubioath'
+require 'yubioath/select'
+
+class CLI < Thor
+ CARD = Card.new(name: 'Yubico Yubikey NEO OTP+CCID')
+
+ package_name 'yubioath'
+
+ desc 'list', '... | Define the CLI using Thor
|
diff --git a/RPBorderlessSegmentedControl.podspec b/RPBorderlessSegmentedControl.podspec
index abc1234..def5678 100644
--- a/RPBorderlessSegmentedControl.podspec
+++ b/RPBorderlessSegmentedControl.podspec
@@ -8,8 +8,7 @@ s.author = { "Brandon Evans" => "brandon.evans@robotsandpencils.com" }
s.source ... | Drop deployment target to 10.8
|
diff --git a/spec/centos/install_chef_spec.rb b/spec/centos/install_chef_spec.rb
index abc1234..def5678 100644
--- a/spec/centos/install_chef_spec.rb
+++ b/spec/centos/install_chef_spec.rb
@@ -0,0 +1,7 @@+require 'spec_helper'
+
+# Make sure Chef installs
+
+describe command('curl -kL https://www.chef.io/chef/install.s... | Test ensure Chef can install
|
diff --git a/spec/dummy/config/application.rb b/spec/dummy/config/application.rb
index abc1234..def5678 100644
--- a/spec/dummy/config/application.rb
+++ b/spec/dummy/config/application.rb
@@ -9,7 +9,7 @@ # require "rails/test_unit/railtie"
Bundler.require(*Rails.groups)
-require "transam_spatial"
+require "transam_... | Make dummy app config require transam_sign (not transam_spatial)
|
diff --git a/spec/lib/requeue_content_spec.rb b/spec/lib/requeue_content_spec.rb
index abc1234..def5678 100644
--- a/spec/lib/requeue_content_spec.rb
+++ b/spec/lib/requeue_content_spec.rb
@@ -1,6 +1,10 @@ require "rails_helper"
RSpec.describe RequeueContent do
+ before do
+ ContentItem.destroy_all
+ end
+
l... | Delete all content items before running requeue test
This test is brittle because if another test leaves a
content item hanging arund, this test fails because it
reads the first content item out of the database. This
change ensures we start with a clean slate.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.