diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/unicode_math.gemspec b/unicode_math.gemspec
index abc1234..def5678 100644
--- a/unicode_math.gemspec
+++ b/unicode_math.gemspec
@@ -11,7 +11,7 @@ gem.homepage = 'https://github.com/collectiveidea/unicode_math'
gem.add_development_dependency 'rake', '~> 0.9'
- gem.add_development_dependency 'rspe... | Bring the RSpec dependency up-to-date to include random ordering
|
diff --git a/test/prx_auth/rails/configuration_test.rb b/test/prx_auth/rails/configuration_test.rb
index abc1234..def5678 100644
--- a/test/prx_auth/rails/configuration_test.rb
+++ b/test/prx_auth/rails/configuration_test.rb
@@ -9,17 +9,28 @@ end
it 'can be reconfigured using the namespace attr' do
- subject.... | Use stubbing here to ensure we trace the config block codepath
|
diff --git a/cookbooks/zookeeper/attributes/default.rb b/cookbooks/zookeeper/attributes/default.rb
index abc1234..def5678 100644
--- a/cookbooks/zookeeper/attributes/default.rb
+++ b/cookbooks/zookeeper/attributes/default.rb
@@ -1,9 +1,9 @@ default[:zookeeper][:version] = "3.3.4"
-default[:zookeeper][:installDir] = "... | Move installdir to /opt/zookeeper and make snapshotdir inside of whatever datadir is
Former-commit-id: c0e88f5abb0455236cf1bee2fdb37771ac51aa68 [formerly efb0f4b29750eeeca1e3f6b1d0f9da9fc1d5b929] [formerly b9a0f58862e0bbb50b4f743495580d2951f795d8 [formerly bc71f82139379f73042326dea9667cc0d5b0566f [formerly edf676cccd... |
diff --git a/numbers.rb b/numbers.rb
index abc1234..def5678 100644
--- a/numbers.rb
+++ b/numbers.rb
@@ -14,14 +14,14 @@
IfZero =
-> if_this_is_zero { -> do_this { -> otherwise_do_this {
- If[->_{do_this.(Noop)}][->_{otherwise_do_this.(Noop)}][IsZero[if_this_is_zero]]
+ IsZero[if_this_is_zero][->_{do_this.(Noop)}]... | Simplify a couple of Ifs
|
diff --git a/DRObservableArray.podspec b/DRObservableArray.podspec
index abc1234..def5678 100644
--- a/DRObservableArray.podspec
+++ b/DRObservableArray.podspec
@@ -6,8 +6,11 @@ s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Dariusz Rybicki' => 'darrarski@gmail.com' }
s.source ... | Update podspec so it contains setup for iOS and macOS platforms
|
diff --git a/capybara-firebug.gemspec b/capybara-firebug.gemspec
index abc1234..def5678 100644
--- a/capybara-firebug.gemspec
+++ b/capybara-firebug.gemspec
@@ -18,7 +18,7 @@ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
- s.add_dependency "capybara"... | Make gemspec compatible with Capybara 2.0
Things seem to be working fine. |
diff --git a/test/controllers/api/auth/networks_controller_test.rb b/test/controllers/api/auth/networks_controller_test.rb
index abc1234..def5678 100644
--- a/test/controllers/api/auth/networks_controller_test.rb
+++ b/test/controllers/api/auth/networks_controller_test.rb
@@ -0,0 +1,32 @@+require 'test_helper'
+require... | Add auth networks controller test
|
diff --git a/sharepoint.gemspec b/sharepoint.gemspec
index abc1234..def5678 100644
--- a/sharepoint.gemspec
+++ b/sharepoint.gemspec
@@ -10,6 +10,8 @@ gem.files = `git ls-files`.split("\n")
gem.require_paths = ["lib"]
+ gem.required_ruby_version = '>= 2.3'
+
gem.add_dependency 'ethon'
gem.... | Add required ruby version to gemspec
Sharepoint uses `.dig` method, introduced in Ruby 2.3, so it is not
compatible with versions older than 2.3 |
diff --git a/lib/cloudstrap/hdp/bootstrap_properties.rb b/lib/cloudstrap/hdp/bootstrap_properties.rb
index abc1234..def5678 100644
--- a/lib/cloudstrap/hdp/bootstrap_properties.rb
+++ b/lib/cloudstrap/hdp/bootstrap_properties.rb
@@ -55,7 +55,11 @@
Contract None => Hash
def load
- JavaProperties.lo... | Load seed contents if missing properties
|
diff --git a/lib/hell/lib/capistrano/task_definition.rb b/lib/hell/lib/capistrano/task_definition.rb
index abc1234..def5678 100644
--- a/lib/hell/lib/capistrano/task_definition.rb
+++ b/lib/hell/lib/capistrano/task_definition.rb
@@ -14,6 +14,7 @@ :fully_qualified_name => fully_qualified_name,
:descript... | Add options hash to task hash
|
diff --git a/lib/inch_ci/worker/build/badge_detector.rb b/lib/inch_ci/worker/build/badge_detector.rb
index abc1234..def5678 100644
--- a/lib/inch_ci/worker/build/badge_detector.rb
+++ b/lib/inch_ci/worker/build/badge_detector.rb
@@ -13,7 +13,7 @@
# @return [String] filename
def self.find_readme(repo)... | Sort README files for BadgeDetector
|
diff --git a/lib/morpher/evaluator/transformer/guard.rb b/lib/morpher/evaluator/transformer/guard.rb
index abc1234..def5678 100644
--- a/lib/morpher/evaluator/transformer/guard.rb
+++ b/lib/morpher/evaluator/transformer/guard.rb
@@ -4,9 +4,14 @@
# Transformer that allows to guard transformation process with a p... | Add printer configuration for Evaluator::Transformer::Guard
|
diff --git a/lib/tasks/data_feeds/meteostat_loader.rake b/lib/tasks/data_feeds/meteostat_loader.rake
index abc1234..def5678 100644
--- a/lib/tasks/data_feeds/meteostat_loader.rake
+++ b/lib/tasks/data_feeds/meteostat_loader.rake
@@ -6,6 +6,6 @@
loader = DataFeeds::MeteostatLoader.new(start_date, end_date)
lo... | Fix error in log message
|
diff --git a/Lyt.podspec b/Lyt.podspec
index abc1234..def5678 100644
--- a/Lyt.podspec
+++ b/Lyt.podspec
@@ -1,13 +1,14 @@ Pod::Spec.new do |s|
s.name = 'Lyt'
- s.version = '0.2'
+ s.version = '0.3'
s.license = 'Apache 2.0'
- s.summary = 'A UIView category to make autolayout (more) readable and less verbose'
+... | Increase version and add OS X platform
|
diff --git a/rake/test/filecreation.rb b/rake/test/filecreation.rb
index abc1234..def5678 100644
--- a/rake/test/filecreation.rb
+++ b/rake/test/filecreation.rb
@@ -13,7 +13,9 @@ end
def create_file(name)
- open(name, "w") {|f| f.puts "HI" } if ! File.exist?(name)
+ dirname = File.dirname(name)
+ FileUt... | Create directory in create_file if it does not exist.
git-svn-id: 6a2c20c72ceedae27ecedb68e90cd4f115192a7a@237 5af023f1-ac1a-0410-98d6-829a145c37ef
|
diff --git a/spec/ellen/handlers/whoami_spec.rb b/spec/ellen/handlers/whoami_spec.rb
index abc1234..def5678 100644
--- a/spec/ellen/handlers/whoami_spec.rb
+++ b/spec/ellen/handlers/whoami_spec.rb
@@ -0,0 +1,36 @@+require "spec_helper"
+
+describe Ellen::Handlers::Whoami do
+ let(:robot) do
+ Ellen::Robot.new
+ en... | Write test for whoami handler
|
diff --git a/spec/models/security_group_spec.rb b/spec/models/security_group_spec.rb
index abc1234..def5678 100644
--- a/spec/models/security_group_spec.rb
+++ b/spec/models/security_group_spec.rb
@@ -13,7 +13,13 @@ describe "#total_vms" do
it "counts vms" do
sg = FactoryGirl.create(:security_group)
- ... | Fix failing test due to old SC association
Fix failing test due to old SC association, test was using
an old association, with direct relation to VM.
|
diff --git a/spec/controllers/proposals_controller_spec.rb b/spec/controllers/proposals_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/proposals_controller_spec.rb
+++ b/spec/controllers/proposals_controller_spec.rb
@@ -0,0 +1,14 @@+require 'spec_helper'
+
+describe ProposalsController, :type =... | Add small test for proposals (not 500).
|
diff --git a/spec/ruby/core/module/initialize_copy_spec.rb b/spec/ruby/core/module/initialize_copy_spec.rb
index abc1234..def5678 100644
--- a/spec/ruby/core/module/initialize_copy_spec.rb
+++ b/spec/ruby/core/module/initialize_copy_spec.rb
@@ -1,2 +1,17 @@ require File.expand_path('../../../spec_helper', __FILE__)
re... | Add spec for trying to reinitialize Module
|
diff --git a/roles/eustace.rb b/roles/eustace.rb
index abc1234..def5678 100644
--- a/roles/eustace.rb
+++ b/roles/eustace.rb
@@ -2,6 +2,11 @@ description "Master role applied to eustace"
default_attributes(
+ :chef => {
+ :client => {
+ :version => "12.1.2-1"
+ }
+ },
:networking => {
:interface... | Upgrade one node to use a chef 12 client as a test
|
diff --git a/Casks/art-directors-toolkit.rb b/Casks/art-directors-toolkit.rb
index abc1234..def5678 100644
--- a/Casks/art-directors-toolkit.rb
+++ b/Casks/art-directors-toolkit.rb
@@ -0,0 +1,13 @@+cask :v1 => 'art-directors-toolkit' do
+ version '5.5.1'
+ sha256 '6b15214f4f928d8519836cd6e60b4f72ecf9365ebc2f29a931c32... | Add Art Director's Toolkit 5.1.1
Art Director's Toolkit from Code Line.
Signed-off-by: Daniel Bayley <a8999ec6105921a5e047cd21489d1a78436cfb40@me.com>
|
diff --git a/Casks/spotify-notifications.rb b/Casks/spotify-notifications.rb
index abc1234..def5678 100644
--- a/Casks/spotify-notifications.rb
+++ b/Casks/spotify-notifications.rb
@@ -0,0 +1,7 @@+class SpotifyNotifications < Cask
+ url 'https://github.com/citruspi/Spotify-Notifications/releases/download/0.4.8/Spotify... | Create Spotify Notifications v0.4.8 cask
|
diff --git a/app/controllers/sms_configurations_controller.rb b/app/controllers/sms_configurations_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/sms_configurations_controller.rb
+++ b/app/controllers/sms_configurations_controller.rb
@@ -12,7 +12,7 @@ end
def save_sms_configuration
- sms_co... | Fix param filter for sms config saving
|
diff --git a/config/initializers/ruby_parser_ruby23_bridge.rb b/config/initializers/ruby_parser_ruby23_bridge.rb
index abc1234..def5678 100644
--- a/config/initializers/ruby_parser_ruby23_bridge.rb
+++ b/config/initializers/ruby_parser_ruby23_bridge.rb
@@ -0,0 +1,18 @@+require 'ruby_parser'
+
+module RubyParserRuby23Br... | Use ruby 2.2 parser until 2.3 is supported in ruby_parser.
Fixes errors on ruby 2.3.0-preview2 of the variety:
```
1) ManageIQ::Providers::Kubernetes::ContainerManager::Refresher will perform a full refresh on k8s
Failure/Error: @ems = FactoryGirl.create(:ems_kubernetes, :hostname => "10.35.0.169",
Runtime... |
diff --git a/db/migrate/20131210181901_migrate_word_counts.rb b/db/migrate/20131210181901_migrate_word_counts.rb
index abc1234..def5678 100644
--- a/db/migrate/20131210181901_migrate_word_counts.rb
+++ b/db/migrate/20131210181901_migrate_word_counts.rb
@@ -5,13 +5,13 @@
post_ids = execute("SELECT id FROM posts WH... | Use COALESCE in case there are no posts in a topic
|
diff --git a/lib/baler/parser.rb b/lib/baler/parser.rb
index abc1234..def5678 100644
--- a/lib/baler/parser.rb
+++ b/lib/baler/parser.rb
@@ -9,26 +9,28 @@ DOCUMENT_ADAPTERS = {:hpricot => Adapter::Hpricot::Document}
DEFAULT_DOCUMENT_ADAPTER = DOCUMENT_ADAPTERS.keys.first
- def self.document(type_or_adapte... | Move Baler::Parser methods into a class << self block |
diff --git a/lib/sprint/rails.rb b/lib/sprint/rails.rb
index abc1234..def5678 100644
--- a/lib/sprint/rails.rb
+++ b/lib/sprint/rails.rb
@@ -2,6 +2,7 @@
module Sprint
module Rails
- # Your code goes here...
+ class Engine << ::Rails::Engine
+ end
end
end
| Declare as subclass of Rails::Engine
|
diff --git a/rubyfox-sfsobject.gemspec b/rubyfox-sfsobject.gemspec
index abc1234..def5678 100644
--- a/rubyfox-sfsobject.gemspec
+++ b/rubyfox-sfsobject.gemspec
@@ -13,7 +13,7 @@ gem.homepage = "https://github.com/neopoly/rubyfox-sfsobject"
gem.platform = Gem::Platform::CURRENT
- gem.files = `... | Exclude test/vendor when building a gem. [ci skip]
|
diff --git a/examples/rotating_hmans.rb b/examples/rotating_hmans.rb
index abc1234..def5678 100644
--- a/examples/rotating_hmans.rb
+++ b/examples/rotating_hmans.rb
@@ -5,11 +5,18 @@ class Hmans < Schnitzel::Node
def setup
@sprite = Schnitzel::Sprite.new file: File.join(__FILE__, '../assets/images/hmans.jpg')
+... | Add a bit of text to the rotating hmans example. |
diff --git a/faraday_middleware.gemspec b/faraday_middleware.gemspec
index abc1234..def5678 100644
--- a/faraday_middleware.gemspec
+++ b/faraday_middleware.gemspec
@@ -11,7 +11,7 @@ spec.licenses = ['MIT']
spec.name = 'faraday_middleware'
spec.require_paths = ['lib']
- spec.required_rubygems_version = Gem::Re... | Use of custom objects is not necessary here
|
diff --git a/examples/background_subtractor.rb b/examples/background_subtractor.rb
index abc1234..def5678 100644
--- a/examples/background_subtractor.rb
+++ b/examples/background_subtractor.rb
@@ -32,4 +32,6 @@ result.copy!(frame, delta);
window.show result
+
+ break if GUI::wait_key(10) > 0
end
| Add a break condition here too.
|
diff --git a/spec/factories/check_in_form.rb b/spec/factories/check_in_form.rb
index abc1234..def5678 100644
--- a/spec/factories/check_in_form.rb
+++ b/spec/factories/check_in_form.rb
@@ -1,4 +1,5 @@ FactoryGirl.define do
+ # TODO: this factory is invalid sometimes, see issue #122
factory :check_in_form do
tr... | Add note about factory being invalid sometimes
|
diff --git a/GoogleMediaFramework.podspec b/GoogleMediaFramework.podspec
index abc1234..def5678 100644
--- a/GoogleMediaFramework.podspec
+++ b/GoogleMediaFramework.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |s|
s.name = "GoogleMediaFramework"
- s.version = "0.1.2"
+ s.version = "0.1.3"
s.summar... | Update Cocapods version to 0.1.3
|
diff --git a/spec/helpers/attributes_spec.rb b/spec/helpers/attributes_spec.rb
index abc1234..def5678 100644
--- a/spec/helpers/attributes_spec.rb
+++ b/spec/helpers/attributes_spec.rb
@@ -1,5 +1,7 @@ require 'spec_helper'
+require 'serverspec/helper/base'
+include Serverspec::Helper::Base
include Serverspec::Helper... | Include base command helper to pass tests
|
diff --git a/app/controllers/api/internal/application_controller.rb b/app/controllers/api/internal/application_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/internal/application_controller.rb
+++ b/app/controllers/api/internal/application_controller.rb
@@ -5,6 +5,8 @@ class ApplicationContro... | Fix a bug which some text has not changed into correct language.
|
diff --git a/spec/usi/resource/score_spec.rb b/spec/usi/resource/score_spec.rb
index abc1234..def5678 100644
--- a/spec/usi/resource/score_spec.rb
+++ b/spec/usi/resource/score_spec.rb
@@ -26,4 +26,24 @@ end
end
end
+
+ describe '#mate' do
+ let(:score) { USI::Resource::Score.new(args) }
+
+ contex... | Set mate, getter returns String of mate.
|
diff --git a/spec/cli_spec.rb b/spec/cli_spec.rb
index abc1234..def5678 100644
--- a/spec/cli_spec.rb
+++ b/spec/cli_spec.rb
@@ -3,8 +3,15 @@ require "tempfile"
describe CLI do
+ # Super hacky way of setting a constant without setting off a warnings that the
+ # constant has already been initialized
+ def set_arg... | Handle warnings from changing ARGV
|
diff --git a/src/merge_dbs.rb b/src/merge_dbs.rb
index abc1234..def5678 100644
--- a/src/merge_dbs.rb
+++ b/src/merge_dbs.rb
@@ -1,6 +1,15 @@ IO.write(
"leak_summary.txt",
- Dir.glob("#{ARGV[0]}/*").map do |f|
+ ARGV.map do |arg|
+ if File.file?(arg)
+ arg
+ elsif File.directory?(arg)
+ Dir.glob("#... | Make script accept more than one directory or file
|
diff --git a/lib/oga/xml/node_set.rb b/lib/oga/xml/node_set.rb
index abc1234..def5678 100644
--- a/lib/oga/xml/node_set.rb
+++ b/lib/oga/xml/node_set.rb
@@ -9,8 +9,6 @@
def initialize(nodes = [])
@nodes = nodes
-
- associate_nodes
end
def each
@@ -23,9 +21,12 @@
alias_met... | Remove explicit index tracking of NodeSet.
Instead the various nodes can use NodeSet#index (aka Array#index) instead. This
has a slight performance overhead on very large (millions) of nodes but should
be fine in most other cases.
|
diff --git a/lib/scss_lint/engine.rb b/lib/scss_lint/engine.rb
index abc1234..def5678 100644
--- a/lib/scss_lint/engine.rb
+++ b/lib/scss_lint/engine.rb
@@ -4,7 +4,7 @@ class Engine
ENGINE_OPTIONS = { cache: false, syntax: :scss }
- attr_reader :contents
+ attr_reader :contents, :tree
def initiali... | Build parse tree on Engine initialization
`Sass::Engine.to_tree` apparently generates a new parse tree each time.
In order to save some processing time, initialize the parse tree only
once.
Change-Id: Idadd6d6f3653684ced13fde824e1c7c9f45fa703
Reviewed-on: https://gerrit.causes.com/16558
Reviewed-by: Shane da Silva <6... |
diff --git a/test/controllers/bookmarks_controller_test.rb b/test/controllers/bookmarks_controller_test.rb
index abc1234..def5678 100644
--- a/test/controllers/bookmarks_controller_test.rb
+++ b/test/controllers/bookmarks_controller_test.rb
@@ -1,7 +1,15 @@ require 'test_helper'
class BookmarksControllerTest < Actio... | Write test for bookmarks controller - create action.
|
diff --git a/core/app/models/evidence_deletable.rb b/core/app/models/evidence_deletable.rb
index abc1234..def5678 100644
--- a/core/app/models/evidence_deletable.rb
+++ b/core/app/models/evidence_deletable.rb
@@ -14,7 +14,7 @@
private
def people_believes_ids
- @people_believes_ids ||= believable.people_believ... | Use opiniated(:believes) instead of people_believes
|
diff --git a/src/app/controllers/admin/realm_mappings_controller.rb b/src/app/controllers/admin/realm_mappings_controller.rb
index abc1234..def5678 100644
--- a/src/app/controllers/admin/realm_mappings_controller.rb
+++ b/src/app/controllers/admin/realm_mappings_controller.rb
@@ -22,9 +22,14 @@
def multi_destroy
... | Check if realm mapping is selected
|
diff --git a/spec/levenshtein_spec.rb b/spec/levenshtein_spec.rb
index abc1234..def5678 100644
--- a/spec/levenshtein_spec.rb
+++ b/spec/levenshtein_spec.rb
@@ -1,22 +1,20 @@ require 'spec_helper'
describe Levenshtein do
- before(:each) do
- @fixtures = [
- ["hello", "hello", 0],
- ["hello", "helo", 1]... | Update each spec to be self-contained.
|
diff --git a/lib/ost.rb b/lib/ost.rb
index abc1234..def5678 100644
--- a/lib/ost.rb
+++ b/lib/ost.rb
@@ -59,7 +59,7 @@ end
def self.redis
- @redis ||= Redis.new
+ @redis ||= Redis.connect
end
def self.redis=(redis)
| Change default Redis.new to Redis.connect.
|
diff --git a/lib/faye-rails/routing_hooks.rb b/lib/faye-rails/routing_hooks.rb
index abc1234..def5678 100644
--- a/lib/faye-rails/routing_hooks.rb
+++ b/lib/faye-rails/routing_hooks.rb
@@ -8,7 +8,8 @@ defaults = {
:mount => mount_path||'/faye',
:timeout => 25,
- :engine => nil
+ ... | Fix issue with new version of faye |
diff --git a/lib/kenny_g/games/game_setup.rb b/lib/kenny_g/games/game_setup.rb
index abc1234..def5678 100644
--- a/lib/kenny_g/games/game_setup.rb
+++ b/lib/kenny_g/games/game_setup.rb
@@ -17,6 +17,7 @@ def play_game
game_factory.new(game_setup: self)
end
+ alias_method :start_game, :play_game
private
... | Add same convenience methods on instance as kenny g class
|
diff --git a/lib/mios/services/ha_device1.rb b/lib/mios/services/ha_device1.rb
index abc1234..def5678 100644
--- a/lib/mios/services/ha_device1.rb
+++ b/lib/mios/services/ha_device1.rb
@@ -5,13 +5,25 @@ base.instance_variable_set("@hadevice1_urn", "urn:micasaverde-com:serviceId:HaDevice1")
end
- d... | Add some additional methods to HaDevice
|
diff --git a/lib/mocha/adapters/test_unit.rb b/lib/mocha/adapters/test_unit.rb
index abc1234..def5678 100644
--- a/lib/mocha/adapters/test_unit.rb
+++ b/lib/mocha/adapters/test_unit.rb
@@ -1,6 +1,5 @@ require 'mocha_standalone'
require 'mocha/expectation_error'
-require 'test/unit/assertionfailederror'
test_unit_ve... | Use a custom exception handler in the new Test::Unit adapter.
* It turns out that Test::Unit::AssertionFailedError is derived from
StandardError; whereas MiniTest::Assertion is derived from Exception.
* I had been telling Mocha::ExpectationErrorFactory to use
Test::Unit::AssertionFailedError in the Test::Unit adap... |
diff --git a/lib/protobuf/message/encoder.rb b/lib/protobuf/message/encoder.rb
index abc1234..def5678 100644
--- a/lib/protobuf/message/encoder.rb
+++ b/lib/protobuf/message/encoder.rb
@@ -0,0 +1,49 @@+module Protobuf
+ class Message
+ module Encoder
+
+ def self.encode(stream, message)
+ message.each_f... | Make an Encoder module patterned after the Decoder, extract encoding logic from Message instance
|
diff --git a/lib/rpub/compilation_helpers.rb b/lib/rpub/compilation_helpers.rb
index abc1234..def5678 100644
--- a/lib/rpub/compilation_helpers.rb
+++ b/lib/rpub/compilation_helpers.rb
@@ -11,19 +11,11 @@ end
def layout
- @layout ||= if File.exist?('layout.html')
- 'layout.html'
- ... | Refactor defaulting to support files for style and layout
|
diff --git a/lib/spontaneous/cli/generate.rb b/lib/spontaneous/cli/generate.rb
index abc1234..def5678 100644
--- a/lib/spontaneous/cli/generate.rb
+++ b/lib/spontaneous/cli/generate.rb
@@ -32,6 +32,8 @@ end
end
+ protected
+
def generate_site(args)
::Spontaneous::Generators::Site.start(args.... | Remove warning about task creation without matching desc
|
diff --git a/app/serializers/api/admin/subscription_customer_serializer.rb b/app/serializers/api/admin/subscription_customer_serializer.rb
index abc1234..def5678 100644
--- a/app/serializers/api/admin/subscription_customer_serializer.rb
+++ b/app/serializers/api/admin/subscription_customer_serializer.rb
@@ -1,5 +1,3 @@... | Revert accidental copy and paste
|
diff --git a/video_merger.rb b/video_merger.rb
index abc1234..def5678 100644
--- a/video_merger.rb
+++ b/video_merger.rb
@@ -5,7 +5,7 @@ DRY_RUN = false
class VideoMerger
- def merge
+ def self.merge
files = find_files_to_merge
input_list = create_input_list(files)
do_merge(input_list) unless DRY_RU... | Convert from instance to class methods
|
diff --git a/lib/capistrano/tasks/migrate.rake b/lib/capistrano/tasks/migrate.rake
index abc1234..def5678 100644
--- a/lib/capistrano/tasks/migrate.rake
+++ b/lib/capistrano/tasks/migrate.rake
@@ -8,7 +8,7 @@
task :status do
set :process, ask('What process do you want to restart ?', nil)
- on roles(:web) do... | Update path fot phpmig files
|
diff --git a/app/controllers/pages/assets_controller.rb b/app/controllers/pages/assets_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/pages/assets_controller.rb
+++ b/app/controllers/pages/assets_controller.rb
@@ -13,7 +13,8 @@ def show
@page = Page.find(params[:page_id])
metric = AssetsM... | Fix : generate jsonp for har reader
|
diff --git a/spec/features/top_spec.rb b/spec/features/top_spec.rb
index abc1234..def5678 100644
--- a/spec/features/top_spec.rb
+++ b/spec/features/top_spec.rb
@@ -5,7 +5,7 @@ scenario "Each section should exist" do
visit "/"
expect(page).to have_title 'CoderDojo Japan'
- expect(page).to have_te... | Fix spec to test wording in Top
|
diff --git a/config.ru b/config.ru
index abc1234..def5678 100644
--- a/config.ru
+++ b/config.ru
@@ -1,13 +1,12 @@ require "#{File.dirname(__FILE__)}/lib/dolphy"
app = DolphyApplication.app do
- puts "Inside run DolphyApplication whatever"
get '/hello' do
haml :index, :body => "hello"
end
get '/wat'... | Add one more route using ERB to the app.
|
diff --git a/spec/view_helpers_spec.rb b/spec/view_helpers_spec.rb
index abc1234..def5678 100644
--- a/spec/view_helpers_spec.rb
+++ b/spec/view_helpers_spec.rb
@@ -6,9 +6,16 @@
describe RailsBootstrapAlerts::ViewHelpers do
describe '#flash_class' do
- it 'Returns a translated class name' do
- class_name =... | Test for supported flash message names
|
diff --git a/core/lib/spree/testing_support/dummy_app/migrations.rb b/core/lib/spree/testing_support/dummy_app/migrations.rb
index abc1234..def5678 100644
--- a/core/lib/spree/testing_support/dummy_app/migrations.rb
+++ b/core/lib/spree/testing_support/dummy_app/migrations.rb
@@ -15,12 +15,8 @@
def needs_migratio... | Remove DummyApp migration code that targets Rails < 5.2
|
diff --git a/app/workers/telegram_live_sender_worker.rb b/app/workers/telegram_live_sender_worker.rb
index abc1234..def5678 100644
--- a/app/workers/telegram_live_sender_worker.rb
+++ b/app/workers/telegram_live_sender_worker.rb
@@ -23,7 +23,7 @@ keyboard = Telegram::Bot::Types::InlineKeyboardMarkup.new(
... | Add I18n for preview label
|
diff --git a/db/migrate/20091007170153_add_downloads_to_versions.rb b/db/migrate/20091007170153_add_downloads_to_versions.rb
index abc1234..def5678 100644
--- a/db/migrate/20091007170153_add_downloads_to_versions.rb
+++ b/db/migrate/20091007170153_add_downloads_to_versions.rb
@@ -4,6 +4,6 @@ end
def self.down
- ... | Fix remove_column where a column type was given
|
diff --git a/lib/param_validator/controller.rb b/lib/param_validator/controller.rb
index abc1234..def5678 100644
--- a/lib/param_validator/controller.rb
+++ b/lib/param_validator/controller.rb
@@ -14,7 +14,7 @@ end
def validate_parameters
- klass_name = [self.class.name.gsub( /Controller/, '' ), "#{acti... | Fix action name translation issue
|
diff --git a/XTInfiniteScrollView.podspec b/XTInfiniteScrollView.podspec
index abc1234..def5678 100644
--- a/XTInfiniteScrollView.podspec
+++ b/XTInfiniteScrollView.podspec
@@ -0,0 +1,28 @@+#
+# Be sure to run `pod spec lint XTInfiniteScrollView.podspec' to ensure this is a
+# valid spec and to remove all comments in... | Add a pod spec file
|
diff --git a/project.rb b/project.rb
index abc1234..def5678 100644
--- a/project.rb
+++ b/project.rb
@@ -0,0 +1,63 @@+def fibs(num)
+ curr = 0
+ next_num = 1
+ temp = 0
+ while (num -= 1) > 0 do
+ temp = curr + next_num
+ curr = next_num
+ next_num = temp
+ end
+ return next_num
+... | Add solutions for fibonacci seq (iter and rec) and mergesort
|
diff --git a/soft_service.gemspec b/soft_service.gemspec
index abc1234..def5678 100644
--- a/soft_service.gemspec
+++ b/soft_service.gemspec
@@ -5,8 +5,8 @@ Gem::Specification.new do |gem|
gem.name = "soft_service"
gem.version = SoftService::VERSION
- gem.summary = %q{TODO: Summary}
- gem.d... | Update gemspec to avoid bundler whining about missing desc and summary
|
diff --git a/docs/examples/aws_vpc.rb b/docs/examples/aws_vpc.rb
index abc1234..def5678 100644
--- a/docs/examples/aws_vpc.rb
+++ b/docs/examples/aws_vpc.rb
@@ -6,7 +6,7 @@ cidr_block "10.0.1.0/24"
end
- subnet "provisioning-vpc-subnet-a" do
+ aws_subnet "provisioning-vpc-subnet-a" do
cidr_block "10.0.1... | Fix VPC example to use aws_subnet
|
diff --git a/spec/fetcher_spec.rb b/spec/fetcher_spec.rb
index abc1234..def5678 100644
--- a/spec/fetcher_spec.rb
+++ b/spec/fetcher_spec.rb
@@ -16,17 +16,19 @@ expect(f.etag).to be_a String
end
- it 'can honor a 304 Not Modified response' do
+ it 'can send If-Modified-Since and honor a 304 Not Modified resp... | Clarify Fetcher spec and check Fetcher content
|
diff --git a/lib/carto/mapcapped_visualization_updater.rb b/lib/carto/mapcapped_visualization_updater.rb
index abc1234..def5678 100644
--- a/lib/carto/mapcapped_visualization_updater.rb
+++ b/lib/carto/mapcapped_visualization_updater.rb
@@ -31,7 +31,7 @@ def export_in_memory_visualization(visualization, user)
... | Fix MapcappedVisualizationUpdater, ignore mapcaps in export
|
diff --git a/lib/padrino-pipeline/tasks/pipeline_tasks.rb b/lib/padrino-pipeline/tasks/pipeline_tasks.rb
index abc1234..def5678 100644
--- a/lib/padrino-pipeline/tasks/pipeline_tasks.rb
+++ b/lib/padrino-pipeline/tasks/pipeline_tasks.rb
@@ -9,6 +9,12 @@ app.pipeline.send(method, *args) if app.pipeline?
end
... | Add generic compile and clean tasks
|
diff --git a/app/services/spree_shopify_importer/connections/base.rb b/app/services/spree_shopify_importer/connections/base.rb
index abc1234..def5678 100644
--- a/app/services/spree_shopify_importer/connections/base.rb
+++ b/app/services/spree_shopify_importer/connections/base.rb
@@ -21,8 +21,8 @@ opts = { pa... | Break pagination loop if result is empty
Haven't really tested this, just spotted it as I came here to grab the ShopifyAPI pagination code. :) |
diff --git a/Casks/dropbox.rb b/Casks/dropbox.rb
index abc1234..def5678 100644
--- a/Casks/dropbox.rb
+++ b/Casks/dropbox.rb
@@ -1,6 +1,7 @@ class Dropbox < Cask
- url 'https://d1ilhw0800yew8.cloudfront.net/client/Dropbox%202.0.6.dmg'
+ url 'https://d1ilhw0800yew8.cloudfront.net/client/Dropbox%202.0.10.dmg'
homepa... | Update Dropbox cask to 2.0.10
|
diff --git a/Casks/modmove.rb b/Casks/modmove.rb
index abc1234..def5678 100644
--- a/Casks/modmove.rb
+++ b/Casks/modmove.rb
@@ -0,0 +1,14 @@+cask :v1 => 'modmove' do
+ version '1.0.0'
+ sha256 '1d0cc13c38a4f76ae4f3a5d24c31553d4607c2d180ec1cdc93b43ee8787fe679'
+
+ url "https://github.com/keith/modmove/releases/downl... | Add initial version of ModMove
https://github.com/keith/ModMove/
|
diff --git a/Casks/tagoman.rb b/Casks/tagoman.rb
index abc1234..def5678 100644
--- a/Casks/tagoman.rb
+++ b/Casks/tagoman.rb
@@ -7,7 +7,7 @@ name 'TagoMan'
appcast 'https://onflapp.appspot.com/tagoman',
:sha256 => 'b6e866d06fe73d9d2915e04cde5cb0270b452382b9cd9d0c7fc65d5735c15443'
- homepage 'http://onf... | Fix homepage to use SSL in TagoMan Cask
The HTTP URL is already getting redirected to HTTPS. Using the HTTPS URL directly
makes it more secure and saves a HTTP round-trip.
|
diff --git a/Casks/torpedo.rb b/Casks/torpedo.rb
index abc1234..def5678 100644
--- a/Casks/torpedo.rb
+++ b/Casks/torpedo.rb
@@ -1,7 +1,7 @@ class Torpedo < Cask
- url 'http://usetorpedo.com/downloads/mac/Torpedo-1.2.2.app.zip'
+ url 'http://usetorpedo.com/app/mac/download'
homepage 'https://usetorpedo.com'
- ver... | Change to latest version of Torpedo.
Update to HTTP instead of HTTPS.
|
diff --git a/app/models/blood_drive.rb b/app/models/blood_drive.rb
index abc1234..def5678 100644
--- a/app/models/blood_drive.rb
+++ b/app/models/blood_drive.rb
@@ -6,4 +6,6 @@ field :location, type: String
field :date, type: DateTime
field :description, type: String
+
+ validates_presence_of :location, :dat... | Add validation to blood drives
|
diff --git a/spec/controllers/events_controller_spec.rb b/spec/controllers/events_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/events_controller_spec.rb
+++ b/spec/controllers/events_controller_spec.rb
@@ -5,9 +5,9 @@ describe "#index" do
context "events page" do
it "lists the e... | Change the order of the event creation to satisfy the needs of the failing Event.all code
|
diff --git a/spec/controllers/groups_controller_spec.rb b/spec/controllers/groups_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/groups_controller_spec.rb
+++ b/spec/controllers/groups_controller_spec.rb
@@ -0,0 +1,21 @@+require 'spec_helper'
+
+describe GroupsController do
+
+ let(:group) { F... | Add basic group controller specs. |
diff --git a/spec/integration/command/aggregate_spec.rb b/spec/integration/command/aggregate_spec.rb
index abc1234..def5678 100644
--- a/spec/integration/command/aggregate_spec.rb
+++ b/spec/integration/command/aggregate_spec.rb
@@ -0,0 +1,52 @@+# encoding: utf-8
+
+require 'spec_helper'
+
+ENV['ADAPTER'] = 'cassandra'... | Add integration test for aggregate command
|
diff --git a/spec/unit/lib/itamae/resource/link_spec.rb b/spec/unit/lib/itamae/resource/link_spec.rb
index abc1234..def5678 100644
--- a/spec/unit/lib/itamae/resource/link_spec.rb
+++ b/spec/unit/lib/itamae/resource/link_spec.rb
@@ -0,0 +1,24 @@+require 'itamae'
+
+module Itamae
+ describe Resource::Link do
+ let(:... | Add unit test for link resource
|
diff --git a/relationize.gemspec b/relationize.gemspec
index abc1234..def5678 100644
--- a/relationize.gemspec
+++ b/relationize.gemspec
@@ -21,5 +21,4 @@
spec.add_development_dependency "bundler", "~> 1.11"
spec.add_development_dependency "rake", "~> 10.0"
- spec.add_development_dependency "minitest", "~> 5.0"... | Remove useless gem from gemspec
|
diff --git a/spec/dummy/shared/persistence.rb b/spec/dummy/shared/persistence.rb
index abc1234..def5678 100644
--- a/spec/dummy/shared/persistence.rb
+++ b/spec/dummy/shared/persistence.rb
@@ -1,5 +1,5 @@ module Persistence
- class Container < Dry::Component::Container
+ class Container < Dry::System::Container
... | Fix Component=>System in dummy app
|
diff --git a/spec/features/press_page_spec.rb b/spec/features/press_page_spec.rb
index abc1234..def5678 100644
--- a/spec/features/press_page_spec.rb
+++ b/spec/features/press_page_spec.rb
@@ -21,7 +21,7 @@
expect(title).to eq article.title
expect(source).to include article.company
- expect(source).to inc... | Correct strftime for press page spec
|
diff --git a/spec/helpers/tree_helper_spec.rb b/spec/helpers/tree_helper_spec.rb
index abc1234..def5678 100644
--- a/spec/helpers/tree_helper_spec.rb
+++ b/spec/helpers/tree_helper_spec.rb
@@ -5,7 +5,8 @@ let(:project) { create(:project) }
before do
- @repository = project.repository @commit = project.c... | Fix bad multi-line split from previous commit
|
diff --git a/spec/matchers/dictionary_spec.rb b/spec/matchers/dictionary_spec.rb
index abc1234..def5678 100644
--- a/spec/matchers/dictionary_spec.rb
+++ b/spec/matchers/dictionary_spec.rb
@@ -1,19 +1,30 @@-require 'spec_helper'
+# frozen_string_literal: true
+
+require "spec_helper"
describe Zxcvbn::Matchers::Dicti... | Refactor dictionary spec to gain an understanding
|
diff --git a/csg.gemspec b/csg.gemspec
index abc1234..def5678 100644
--- a/csg.gemspec
+++ b/csg.gemspec
@@ -5,7 +5,7 @@ s.description = s.summary
s.authors = ["Yaroslav Shirokov", "Sean Bryant"]
s.email = ['sshirokov@github.com', 'sbryant@github.com']
- s.files = ["lib/csg.rb"] + Dir['src/**/*... | Include the Makefile as part of the gem.
|
diff --git a/benchmarks/memory_usage.rb b/benchmarks/memory_usage.rb
index abc1234..def5678 100644
--- a/benchmarks/memory_usage.rb
+++ b/benchmarks/memory_usage.rb
@@ -1,4 +1,6 @@-require 'finite_machine'
+# frozen_string_literal: true
+
+require_relative '../lib/finite_machine'
3.times do
puts
@@ -6,7 +8,7 @@ ... | Change to show objects count
|
diff --git a/src/old.rb b/src/old.rb
index abc1234..def5678 100644
--- a/src/old.rb
+++ b/src/old.rb
@@ -3,12 +3,16 @@ require 'optparse'
require_relative 'scp-article-loader'
require_relative 'roff-builder'
+require_relative 'locale'
option = {
- :locale => "www"
+ :locale => SITE::EN,
+ :manpath => "~/.local/... | Use locale on option parsing
|
diff --git a/test/slide_hero/list_point_spec.rb b/test/slide_hero/list_point_spec.rb
index abc1234..def5678 100644
--- a/test/slide_hero/list_point_spec.rb
+++ b/test/slide_hero/list_point_spec.rb
@@ -3,9 +3,32 @@ module SlideHero
describe ListPoint do
it "takes text and an animation on initialization" do
- ... | Add more tests for ListPoint
|
diff --git a/mike_rowe/db/migrate/20160125220811_create_teachers.rb b/mike_rowe/db/migrate/20160125220811_create_teachers.rb
index abc1234..def5678 100644
--- a/mike_rowe/db/migrate/20160125220811_create_teachers.rb
+++ b/mike_rowe/db/migrate/20160125220811_create_teachers.rb
@@ -4,7 +4,7 @@ t.string :name
... | Add admin status default false
|
diff --git a/plugin/hammer.vim/renderers/markdown_renderer.rb b/plugin/hammer.vim/renderers/markdown_renderer.rb
index abc1234..def5678 100644
--- a/plugin/hammer.vim/renderers/markdown_renderer.rb
+++ b/plugin/hammer.vim/renderers/markdown_renderer.rb
@@ -15,7 +15,7 @@
end
-markup :redcarpet, /md|mkd|markdown/ do ... | Add support '.mdwn' as markdown file extension.
Closes #33.
|
diff --git a/rest/rest_server.rb b/rest/rest_server.rb
index abc1234..def5678 100644
--- a/rest/rest_server.rb
+++ b/rest/rest_server.rb
@@ -32,6 +32,12 @@
%({"token": "#{token}"})
end
+
+ get '/api/gateway' do
+ session!
+
+ 'wss://127.0.0.1:6602'
+ end
end
end
| Implement the gateway endpoint (even though WS is currently unimplemented)
|
diff --git a/button_like_a_link.gemspec b/button_like_a_link.gemspec
index abc1234..def5678 100644
--- a/button_like_a_link.gemspec
+++ b/button_like_a_link.gemspec
@@ -1,6 +1,6 @@ # coding: utf-8
lib = File.expand_path('../lib', __FILE__)
-# $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
+$LOAD_PATH.unshift(... | Revert change to load path
|
diff --git a/app/controllers/gend_image_pages_controller.rb b/app/controllers/gend_image_pages_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/gend_image_pages_controller.rb
+++ b/app/controllers/gend_image_pages_controller.rb
@@ -12,11 +12,13 @@ @gend_image_url = gend_image_url_for(@gend_image)
... | Refactor refresh in gend image pages controller.
|
diff --git a/thrifty-bunny.gemspec b/thrifty-bunny.gemspec
index abc1234..def5678 100644
--- a/thrifty-bunny.gemspec
+++ b/thrifty-bunny.gemspec
@@ -25,6 +25,6 @@
spec.add_dependency 'thrift'
spec.add_dependency 'thin'
- spec.add_dependency 'bunny'
+ spec.add_dependency 'bunny', '~> 1.6.3'
spec.add_dependen... | Set bunny version to be at least 1.6.3
|
diff --git a/tdd-fizzbuzz/fizzbuzz.rb b/tdd-fizzbuzz/fizzbuzz.rb
index abc1234..def5678 100644
--- a/tdd-fizzbuzz/fizzbuzz.rb
+++ b/tdd-fizzbuzz/fizzbuzz.rb
@@ -5,14 +5,18 @@ divisible_by_three = (n % 3).zero?
divisible_by_five = (n % 5).zero?
- if divisible_by_three && divisible_by_five
- "FizzBuzz... | Build a return string in parts instead of explicitly switching
|
diff --git a/warmercooler.rb b/warmercooler.rb
index abc1234..def5678 100644
--- a/warmercooler.rb
+++ b/warmercooler.rb
@@ -3,9 +3,9 @@ puts solution # This statement is temporary while I test the game.
puts "Guess what number I'm thinking of. It's between 1 and 1000"
guess = gets.to_i
+puts "Wrong! Guess again!" if... | Remove first guess from while loop
|
diff --git a/test/test_cfi.rb b/test/test_cfi.rb
index abc1234..def5678 100644
--- a/test/test_cfi.rb
+++ b/test/test_cfi.rb
@@ -1,5 +1,6 @@ require_relative 'helper'
require 'epub/cfi'
+require 'epub/parser/cfi'
class TestCFI < Test::Unit::TestCase
def test_escape
@@ -9,4 +10,17 @@ def test_unescape
asse... | Add test cases for CFI sorting rules
|
diff --git a/padrino_bootstrap_forms.gemspec b/padrino_bootstrap_forms.gemspec
index abc1234..def5678 100644
--- a/padrino_bootstrap_forms.gemspec
+++ b/padrino_bootstrap_forms.gemspec
@@ -14,8 +14,8 @@ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
- ... | Fix the gemspec for padrino 0.11.
|
diff --git a/lib/foreman/logging/stdout_adapter.rb b/lib/foreman/logging/stdout_adapter.rb
index abc1234..def5678 100644
--- a/lib/foreman/logging/stdout_adapter.rb
+++ b/lib/foreman/logging/stdout_adapter.rb
@@ -1,7 +1,7 @@ module Foreman
module Logging
class StdoutAdapter
- attr_reader :multiplexer
+ ... | Add attr_reader :logger on StdoutAdapter
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.