diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/db/seeds.rb b/db/seeds.rb
index abc1234..def5678 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -1,10 +1,10 @@-10.times do { User.create!( username: Faker::Internet.user_name, email: Faker::Internet.email, password:"password" )}
+10.times { User.create!( username: Faker::Internet.user_name, email: Faker::In... | Create seed data for making questions
|
diff --git a/spec/integration/renalware/session_timeout/session_expiry_spec.rb b/spec/integration/renalware/session_timeout/session_expiry_spec.rb
index abc1234..def5678 100644
--- a/spec/integration/renalware/session_timeout/session_expiry_spec.rb
+++ b/spec/integration/renalware/session_timeout/session_expiry_spec.rb... | Handle js error in RSpec 3.7
Handle an issues ocurring with the introduction of RSpec 3.7 - presumably a timing issue - which means we can get an `TypeError: undefined is not a constructor (evaluating 'window.sessionTimeoutCheck()’)` as the js has not loaded yet.
|
diff --git a/lib/travis/worker/shell/buffer.rb b/lib/travis/worker/shell/buffer.rb
index abc1234..def5678 100644
--- a/lib/travis/worker/shell/buffer.rb
+++ b/lib/travis/worker/shell/buffer.rb
@@ -15,7 +15,13 @@
def <<(other)
super.tap do
- limit_exeeded! if length > limit
+ #... | Check that limit is initialized and is > 0 before raising log length limit exceptions
Buffer#<< is called asynchronously by a separate thread Net::SSH is using. Buffer#initialize may or may not happen by then.
This causes build to be immediately terminated w/o log output some of the time, exactly what people have been... |
diff --git a/jekyll-commonmark.gemspec b/jekyll-commonmark.gemspec
index abc1234..def5678 100644
--- a/jekyll-commonmark.gemspec
+++ b/jekyll-commonmark.gemspec
@@ -20,5 +20,5 @@ spec.add_development_dependency "bundler", "~> 1.6"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec", "... | Use latest Rubocop like Jekyll |
diff --git a/app/models/digest_history.rb b/app/models/digest_history.rb
index abc1234..def5678 100644
--- a/app/models/digest_history.rb
+++ b/app/models/digest_history.rb
@@ -7,6 +7,7 @@ history.last_library_id = Library.last.id rescue 0
history.users_count = User.count
history.save!
+ history
end... | Fix bug in return value of creating digest history
|
diff --git a/app/services/nomis/client.rb b/app/services/nomis/client.rb
index abc1234..def5678 100644
--- a/app/services/nomis/client.rb
+++ b/app/services/nomis/client.rb
@@ -11,9 +11,9 @@ request(:get, route, params)
end
- def post(route, params)
- request(:post, route, params)
- end
+ # def... | Comment out (currently) unused code for RCov… |
diff --git a/week-4/variables-methods.rb b/week-4/variables-methods.rb
index abc1234..def5678 100644
--- a/week-4/variables-methods.rb
+++ b/week-4/variables-methods.rb
@@ -17,3 +17,24 @@ bigger_num = num.to_i + 1
puts "#{bigger_num} is better because it is bigger than #{num}."
+=begin
+
+How do you define a local v... | Add reflection to MD file
|
diff --git a/execjs-xtrn.gemspec b/execjs-xtrn.gemspec
index abc1234..def5678 100644
--- a/execjs-xtrn.gemspec
+++ b/execjs-xtrn.gemspec
@@ -23,5 +23,5 @@ spec.add_development_dependency "rake"
spec.add_development_dependency "minitest"
spec.add_development_dependency "coffee-script", '2.3.0'
- spec.add_develo... | Revert "uglifier 3.0 uses globals too!"
This reverts commit 2d8b0d2ae25fe04812d620fc6964195eab2e626e.
|
diff --git a/app/views/v1/talks/base.rabl b/app/views/v1/talks/base.rabl
index abc1234..def5678 100644
--- a/app/views/v1/talks/base.rabl
+++ b/app/views/v1/talks/base.rabl
@@ -5,5 +5,5 @@ :discourse_url
child :users do
- attributes :first_name, :last_name, :email_md5, :job
+ attributes :name, :email_md... | Replace first+last name w/ name
cc @robertdolca
|
diff --git a/spec/controllers/likes_controller_spec.rb b/spec/controllers/likes_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/likes_controller_spec.rb
+++ b/spec/controllers/likes_controller_spec.rb
@@ -15,11 +15,11 @@ describe "DELETE #destroy" do
let(:user) { FactoryGirl.create :user ... | Fix test for destroying a like
|
diff --git a/spec/controllers/pages_controller_spec.rb b/spec/controllers/pages_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/pages_controller_spec.rb
+++ b/spec/controllers/pages_controller_spec.rb
@@ -1,4 +1,10 @@ require 'spec_helper'
describe PagesController do
+ describe "#home" do
+ ... | Test that home page responses successfully.
|
diff --git a/filewatcher.gemspec b/filewatcher.gemspec
index abc1234..def5678 100644
--- a/filewatcher.gemspec
+++ b/filewatcher.gemspec
@@ -21,7 +21,7 @@
s.add_development_dependency 'bundler', '~> 2.0'
- s.add_development_dependency 'gem_toys', '~> 0.6.1'
+ s.add_development_dependency 'gem_toys', '~> 0.7.1'
... | Update gem_toys to version 0.7.1 |
diff --git a/hiredis.gemspec b/hiredis.gemspec
index abc1234..def5678 100644
--- a/hiredis.gemspec
+++ b/hiredis.gemspec
@@ -3,10 +3,10 @@ Gem::Specification.new do |s|
s.name = "hiredis"
s.version = Hiredis::VERSION
- s.homepage = "http://github.com/pietern/hiredis-rb"
+ s.homepage = "http://github.com/redis/h... | Update URL and summary in gemspec
|
diff --git a/resources/config.rb b/resources/config.rb
index abc1234..def5678 100644
--- a/resources/config.rb
+++ b/resources/config.rb
@@ -6,7 +6,7 @@ attribute :scope, equal_to: %w(local global system), default: 'global'
attribute :path, kind_of: String
attribute :user, kind_of: String
-attribute :group, kind_o... | Fix lint error from travis failure.
|
diff --git a/Casks/itouch-server.rb b/Casks/itouch-server.rb
index abc1234..def5678 100644
--- a/Casks/itouch-server.rb
+++ b/Casks/itouch-server.rb
@@ -0,0 +1,10 @@+cask :v1 => 'itouch-server' do
+ version '1.0'
+ sha256 'e8aae0461ce7056adcc4940dda65d3ec8e4929092f0f2465b3e1dc5e353a362e'
+
+ url "http://logitech.com... | Add Logitech Touch Mouse Server Latest
For everyone who sometimes do not want to use Mac's trackpad.
|
diff --git a/spec/services/creates_new_user_spec/sends_activation_needed_email_spec.rb b/spec/services/creates_new_user_spec/sends_activation_needed_email_spec.rb
index abc1234..def5678 100644
--- a/spec/services/creates_new_user_spec/sends_activation_needed_email_spec.rb
+++ b/spec/services/creates_new_user_spec/sends... | Improve the spec by checking the email that was sent
|
diff --git a/lib/motion_bindable/strategy.rb b/lib/motion_bindable/strategy.rb
index abc1234..def5678 100644
--- a/lib/motion_bindable/strategy.rb
+++ b/lib/motion_bindable/strategy.rb
@@ -22,7 +22,7 @@
def initialize(object, attribute)
@attribute = attribute.to_sym
- self.object = WeakRef.new(object)... | Remove the weak ref which is breaking KVO... for now.
|
diff --git a/Casks/hopper-disassembler.rb b/Casks/hopper-disassembler.rb
index abc1234..def5678 100644
--- a/Casks/hopper-disassembler.rb
+++ b/Casks/hopper-disassembler.rb
@@ -1,8 +1,8 @@ cask :v1 => 'hopper-disassembler' do
- version :latest
- sha256 :no_check
+ version '3.8.0'
+ sha256 'e68b46aef94f8ac3296cd3977... | Update Hopper to use versioned downloads
|
diff --git a/db/migrate/20181207221258_add_has_attribution_to_content_collaborators.rb b/db/migrate/20181207221258_add_has_attribution_to_content_collaborators.rb
index abc1234..def5678 100644
--- a/db/migrate/20181207221258_add_has_attribution_to_content_collaborators.rb
+++ b/db/migrate/20181207221258_add_has_attribu... | Remove comma in content_collaborators has_attribution down migration.
|
diff --git a/lib/memory_profiler/helpers.rb b/lib/memory_profiler/helpers.rb
index abc1234..def5678 100644
--- a/lib/memory_profiler/helpers.rb
+++ b/lib/memory_profiler/helpers.rb
@@ -25,7 +25,7 @@ end
def lookup_class_name(klass)
- @class_name_cache[klass] ||= klass.name || '<<Unknown>>'
+ @class... | Check for nil klass when looking up class names
fixes #27 |
diff --git a/lib/config/wdtk-routes.rb b/lib/config/wdtk-routes.rb
index abc1234..def5678 100644
--- a/lib/config/wdtk-routes.rb
+++ b/lib/config/wdtk-routes.rb
@@ -4,10 +4,10 @@ # Add a route for the survey
scope '/profile/survey' do
root :to => 'user#survey', :as => :survey
- match '/reset' => 'user#surv... | Add HTTP methods to custom routes
The survey POSTs a non-alaveteli endpoint so shouldn't need POST.
|
diff --git a/lib/rspec/core/command_line.rb b/lib/rspec/core/command_line.rb
index abc1234..def5678 100644
--- a/lib/rspec/core/command_line.rb
+++ b/lib/rspec/core/command_line.rb
@@ -14,7 +14,7 @@ def run(err, out)
@options.configure(@configuration)
@configuration.error_stream = err
- @... | Allow output_stream to be overridden in configuration
|
diff --git a/lib/time_series/time_series.rb b/lib/time_series/time_series.rb
index abc1234..def5678 100644
--- a/lib/time_series/time_series.rb
+++ b/lib/time_series/time_series.rb
@@ -25,6 +25,7 @@ end
class TimeSeriesCombination
+ class MismatchError < StandardError; end
def initialize(*time_series)
... | Check for mismatched start_time before combining timeseries
|
diff --git a/ruby/example_code/s3/s3_ruby_bucket_website.rb b/ruby/example_code/s3/s3_ruby_bucket_website.rb
index abc1234..def5678 100644
--- a/ruby/example_code/s3/s3_ruby_bucket_website.rb
+++ b/ruby/example_code/s3/s3_ruby_bucket_website.rb
@@ -0,0 +1,67 @@+# Copyright 2010-2016 Amazon.com, Inc. or its affiliates. ... | Add S3 Bucket Website Example for Ruby
|
diff --git a/lib/trashed/newrelic/enable.rb b/lib/trashed/newrelic/enable.rb
index abc1234..def5678 100644
--- a/lib/trashed/newrelic/enable.rb
+++ b/lib/trashed/newrelic/enable.rb
@@ -1,5 +1,7 @@ require 'trashed/newrelic/samplers'
-[Trashed::LiveObjectsSampler, Trashed::AllocatedObjectsSampler].each do |sampler|
- ... | Add samplers only if newrelic is present and not shimmed
|
diff --git a/lib/travis/model/remote_log.rb b/lib/travis/model/remote_log.rb
index abc1234..def5678 100644
--- a/lib/travis/model/remote_log.rb
+++ b/lib/travis/model/remote_log.rb
@@ -13,7 +13,7 @@ attribute :job_id, Integer
attribute :purged_at, Time
attribute :removed_at, Time
- attribute :removed_by, Integ... | Resolve remote log removed_by via removed_by_id instead
|
diff --git a/test/services/plus_one_test.rb b/test/services/plus_one_test.rb
index abc1234..def5678 100644
--- a/test/services/plus_one_test.rb
+++ b/test/services/plus_one_test.rb
@@ -2,12 +2,16 @@
class PlusOneTest < ActiveSupport::TestCase
- test "pluses someone with valid params" do
+ test "pluses someone and... | Add test to check if Plus instance was created
|
diff --git a/scripts/verhoeff_generator/bulk_generator.rb b/scripts/verhoeff_generator/bulk_generator.rb
index abc1234..def5678 100644
--- a/scripts/verhoeff_generator/bulk_generator.rb
+++ b/scripts/verhoeff_generator/bulk_generator.rb
@@ -0,0 +1,21 @@+require './participant_verhoeff'
+
+ParticipantTypes = ['A', 'B', ... | Add bulk participant id generator
|
diff --git a/library/tempfile/_close_spec.rb b/library/tempfile/_close_spec.rb
index abc1234..def5678 100644
--- a/library/tempfile/_close_spec.rb
+++ b/library/tempfile/_close_spec.rb
@@ -7,7 +7,7 @@ end
it "is protected" do
- @tempfile.protected_methods.should include("_close")
+ Tempfile.should have_p... | Use have_protected_instance_method for 1.9 compat
|
diff --git a/Formula/bartycrouch.rb b/Formula/bartycrouch.rb
index abc1234..def5678 100644
--- a/Formula/bartycrouch.rb
+++ b/Formula/bartycrouch.rb
@@ -1,7 +1,7 @@ class Bartycrouch < Formula
desc "Incrementally update/translate your Strings files"
homepage "https://github.com/Flinesoft/BartyCrouch"
- url "http... | Update formula to version 4.3.1
|
diff --git a/Formula/codeclimate.rb b/Formula/codeclimate.rb
index abc1234..def5678 100644
--- a/Formula/codeclimate.rb
+++ b/Formula/codeclimate.rb
@@ -8,6 +8,8 @@ # Alter PATH to ensure `docker' is available
if Formula["docker"].linked_keg.exist?
ENV.prepend_path "PATH", Formula["docker"].opt_bin
+ ... | Prepend /usr/local/bin if docker keg not installed
This allows Homebrew users who prefer non-brew docker installations to
continue using this formula.
|
diff --git a/gtm-oauth2-thekey.podspec b/gtm-oauth2-thekey.podspec
index abc1234..def5678 100644
--- a/gtm-oauth2-thekey.podspec
+++ b/gtm-oauth2-thekey.podspec
@@ -1,11 +1,11 @@ Pod::Spec.new do |s|
s.name = "gtm-oauth2-thekey"
- s.version = "1.0.0"
+ s.version = "1.0.118"
s.summary = "G... | Bump Version to 1.0.118, based on SVN r118
|
diff --git a/lib/electric_sheep/ssh.rb b/lib/electric_sheep/ssh.rb
index abc1234..def5678 100644
--- a/lib/electric_sheep/ssh.rb
+++ b/lib/electric_sheep/ssh.rb
@@ -0,0 +1,13 @@+require 'net/ssh'
+
+module ElectricSheep
+ module SSH
+ def ssh_session(host, user, private_key, &block)
+ Net::SSH.start(host.hostn... | Add missing SSH module to git :bomb:
|
diff --git a/activesupport/lib/active_support/core_ext/hash/transform_values.rb b/activesupport/lib/active_support/core_ext/hash/transform_values.rb
index abc1234..def5678 100644
--- a/activesupport/lib/active_support/core_ext/hash/transform_values.rb
+++ b/activesupport/lib/active_support/core_ext/hash/transform_value... | Add comment to remove code when we are in Ruby 2.4
|
diff --git a/doc/test/table_test.rb b/doc/test/table_test.rb
index abc1234..def5678 100644
--- a/doc/test/table_test.rb
+++ b/doc/test/table_test.rb
@@ -17,5 +17,8 @@ expected = "Hi a and b"
actual = Main.new(:template=>"Hi <%= m %> and <%= n %>", :context=>{"m"=>"a", "n"=>"b"}).render
assert_equal(actual... | Test rendering a shadowed method
|
diff --git a/spec/models/ontology_version/provers_spec.rb b/spec/models/ontology_version/provers_spec.rb
index abc1234..def5678 100644
--- a/spec/models/ontology_version/provers_spec.rb
+++ b/spec/models/ontology_version/provers_spec.rb
@@ -0,0 +1,27 @@+require 'spec_helper'
+
+describe 'OntologyVersion - Provers' do
+... | Add spec for provers retrieval when parsing.
|
diff --git a/nacre.gemspec b/nacre.gemspec
index abc1234..def5678 100644
--- a/nacre.gemspec
+++ b/nacre.gemspec
@@ -17,7 +17,7 @@
gem.add_dependency 'faraday'
gem.add_dependency 'json'
- gem.add_dependency 'active_support'
+ gem.add_dependency 'activesupport'
gem.add_development_dependency 'rspec'
gem.a... | Remove underscore for ActiveSupport gem
which works only for Rails 3
|
diff --git a/guard-spork.gemspec b/guard-spork.gemspec
index abc1234..def5678 100644
--- a/guard-spork.gemspec
+++ b/guard-spork.gemspec
@@ -16,12 +16,12 @@ s.required_rubygems_version = '>= 1.3.6'
s.rubyforge_project = 'guard-spork'
- s.add_dependency 'guard', '>= 1.1'
+ s.add_dependency 'guard', '~> ... | Update guard and rspec versions in gemspec |
diff --git a/api/app/views/mno_enterprise/jpi/v1/admin/users/show.json.jbuilder b/api/app/views/mno_enterprise/jpi/v1/admin/users/show.json.jbuilder
index abc1234..def5678 100644
--- a/api/app/views/mno_enterprise/jpi/v1/admin/users/show.json.jbuilder
+++ b/api/app/views/mno_enterprise/jpi/v1/admin/users/show.json.jbui... | Add fields in user show view
|
diff --git a/lib/new_github_service.rb b/lib/new_github_service.rb
index abc1234..def5678 100644
--- a/lib/new_github_service.rb
+++ b/lib/new_github_service.rb
@@ -0,0 +1,52 @@+module NewGithubService
+ ##
+ # GithubService is miq-bot's interface to the Github API. It acts as a
+ # wrapper around Octokit, delegatin... | Add new GithubService via Octokit
This NewGithubService will eventually replace the current github_api
GithubService class.
|
diff --git a/postgresql_lo_streamer.gemspec b/postgresql_lo_streamer.gemspec
index abc1234..def5678 100644
--- a/postgresql_lo_streamer.gemspec
+++ b/postgresql_lo_streamer.gemspec
@@ -15,7 +15,7 @@
s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.md"]
- s.add_dependency "rails", "... | Change dependency on rails to 4.0 and up |
diff --git a/lib/vagrant-env/config.rb b/lib/vagrant-env/config.rb
index abc1234..def5678 100644
--- a/lib/vagrant-env/config.rb
+++ b/lib/vagrant-env/config.rb
@@ -8,7 +8,7 @@ # config.env.enable __FILE__
def enable(vagrantfile = nil)
if vagrantfile
- load File.dirname(vagrantfile) + '/.... | Join the path with File.join
Hardcoding '/' as a path separator will break on systems where '\' or some other path separator is used instead. |
diff --git a/JSQSystemSoundPlayer.podspec b/JSQSystemSoundPlayer.podspec
index abc1234..def5678 100644
--- a/JSQSystemSoundPlayer.podspec
+++ b/JSQSystemSoundPlayer.podspec
@@ -7,8 +7,10 @@ s.license = 'MIT'
s.author = { 'Jesse Squires' => 'jesse.squires.developer@gmail.com' }
s.source = { :git => 'https://g... | Update podspec for OS X
|
diff --git a/app/models/item.rb b/app/models/item.rb
index abc1234..def5678 100644
--- a/app/models/item.rb
+++ b/app/models/item.rb
@@ -14,20 +14,24 @@ Item.where("id > ?", id).first
end
- def count_votes(vote)
- user_votes.where(vote: vote).count
+ def get_user_votes_for(vote_type)
+ votes = Array.new(0)
+
+... | Change Method Name, Count Votes To Get User Votes
Change the name and function of Count Votes from to Get User Votes
because the count votes is doing too many select statements to the
database. Get User Votes will find a participially vote type and return
an array of objects for the vote.
|
diff --git a/app/models/item.rb b/app/models/item.rb
index abc1234..def5678 100644
--- a/app/models/item.rb
+++ b/app/models/item.rb
@@ -2,6 +2,10 @@ belongs_to :user
belongs_to :section
has_attached_file :image,
+ :styles => {
+ :thumb => "100x100#",
+ :small => "150x150>",
+ :medium => "200... | Add sizes to image model
|
diff --git a/app/models/post.rb b/app/models/post.rb
index abc1234..def5678 100644
--- a/app/models/post.rb
+++ b/app/models/post.rb
@@ -12,6 +12,7 @@ acts_as_taggable rescue nil
# HACK: there is a known issue that acts_as_taggable breaks asset precompilation on Heroku.
+ default_scope ->{ order('posts.created... | Add default order by latest first |
diff --git a/app/models/user.rb b/app/models/user.rb
index abc1234..def5678 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -22,7 +22,7 @@ private
def friendly_token
- ActiveSupport::SecureRandom.base64(15).tr('+/=', '-_ ').strip.delete("\n")
+ SecureRandom.base64(15).tr('+/=', '-_ ').strip.del... | Remove ActiveSupport:: to prevent deprecation warning
|
diff --git a/app/models/user.rb b/app/models/user.rb
index abc1234..def5678 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -11,12 +11,15 @@
# Returns whether this user has access to (i.e. can edit/delete) given post
# POST is a model object
- def can_modify(post)
- if post == nil
+ def can_modi... | Fix bug where exception is thrown when trying to edit User
This is caused because User model objects do not have "posted_by" field,
instead, they have "username". Thus, instance_of? method is used to determine
the type of the argument, and get the "owner" of that object accordingly.
|
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb
index abc1234..def5678 100644
--- a/spec/models/project_spec.rb
+++ b/spec/models/project_spec.rb
@@ -45,4 +45,19 @@ expect(@third.previous(episode)).to eq(@first)
end
end
+
+ describe 'active?' do
+ it "returns true for ideas" d... | Add test for active? method of project model
|
diff --git a/spec/features/delayed/clear_all_jobs_spec.rb b/spec/features/delayed/clear_all_jobs_spec.rb
index abc1234..def5678 100644
--- a/spec/features/delayed/clear_all_jobs_spec.rb
+++ b/spec/features/delayed/clear_all_jobs_spec.rb
@@ -0,0 +1,24 @@+require 'rails_helper'
+
+feature 'clearing all of the delayed job... | Test for clearing all delayed jobs
|
diff --git a/spec/command-t/scanner/find_spec.rb b/spec/command-t/scanner/find_spec.rb
index abc1234..def5678 100644
--- a/spec/command-t/scanner/find_spec.rb
+++ b/spec/command-t/scanner/find_spec.rb
@@ -2,13 +2,8 @@
describe CommandT::Scanner::Find do
before :all do
- @pwd = Dir.pwd
- Dir.chdir File.join(F... | Simplify Find scanner spec set-up
Signed-off-by: Wincent Colaiuta <c76ac2e9cd86441713c7dfae92c451f3e6d17fdc@wincent.com>
|
diff --git a/spec/features/copying_files_spec.rb b/spec/features/copying_files_spec.rb
index abc1234..def5678 100644
--- a/spec/features/copying_files_spec.rb
+++ b/spec/features/copying_files_spec.rb
@@ -19,7 +19,11 @@ copy_attributes = copy.file.attributes
copy_attributes.reject! { |k,v| k == :last_modified ... | Test for matching ACL grants on copied file
Until now we didn't ensure that the files generated with
CarrierWave::Storage::AWSFile#copy_to were given the same ACL
(Access Control List) as the original files.
As explained in https://github.com/sorentwo/carrierwave-aws/issues/81#issue-154100161
the behavior of #copy_to... |
diff --git a/features/support/command_helper.rb b/features/support/command_helper.rb
index abc1234..def5678 100644
--- a/features/support/command_helper.rb
+++ b/features/support/command_helper.rb
@@ -52,7 +52,7 @@ end
def delay_until
- Timeout.timeout(2.5) do
+ Timeout.timeout(1) do
while true
... | Use one second timeout in cukes
|
diff --git a/spec/henson/source/git_spec.rb b/spec/henson/source/git_spec.rb
index abc1234..def5678 100644
--- a/spec/henson/source/git_spec.rb
+++ b/spec/henson/source/git_spec.rb
@@ -4,4 +4,37 @@ it "can be instantiated" do
Henson::Source::Git.new('foo', :bar => :baz).should_not be_nil
end
+
+ describe "#f... | Add pending specs to describe expected behavior
|
diff --git a/spec/perpetuity/mapper_spec.rb b/spec/perpetuity/mapper_spec.rb
index abc1234..def5678 100644
--- a/spec/perpetuity/mapper_spec.rb
+++ b/spec/perpetuity/mapper_spec.rb
@@ -27,22 +27,24 @@ its(:mapped_class) { should eq Object }
context 'with unserializable attributes' do
+ let(:unserializab... | Fix specs broken by removing test_classes require
|
diff --git a/rails_admin_rollincode.gemspec b/rails_admin_rollincode.gemspec
index abc1234..def5678 100644
--- a/rails_admin_rollincode.gemspec
+++ b/rails_admin_rollincode.gemspec
@@ -15,5 +15,5 @@ s.license = 'MIT'
s.files = Dir['{lib,vendor}/**/*', 'MIT-LICENSE', 'Rakefile', 'README.rdoc']
- s.add_depend... | Support Rails 6 by increasing max version constraint |
diff --git a/spec/support/capture_helper.rb b/spec/support/capture_helper.rb
index abc1234..def5678 100644
--- a/spec/support/capture_helper.rb
+++ b/spec/support/capture_helper.rb
@@ -1,15 +1,16 @@ module CaptureHelper
# capture(iface, options) { 'ping -c 125 127.0.0.1 }
- def capture(iface, options={}, &blk)
+ d... | Update CaptureHelper to reflect the new capture method.
May need to adjust this a little more.
|
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
@@ -32,4 +32,6 @@ end
config.expose_dsl_globally = true
+
+ config.warnings = true
end
| Enable Ruby warnings during test suite execution
This will allow us to spot possible issues in advance.
|
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,4 @@ # encoding: utf-8
-
-require 'devtools/spec_helper'
if ENV['COVERAGE'] == 'true'
require 'simplecov'
@@ -12,19 +10,18 @@ ]
SimpleCov.start do
- command... | Update spec helper to be similar to other gems
|
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,11 +1,8 @@-# $: << File.join(File.dirname(__FILE__),"..", "lib")
-
require 'pry'
require 'alephant/publisher'
require 'alephant/publisher/models/writer'
require 'alephant/pu... | Remove commented out lines [ci skip]
|
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
@@ -4,8 +4,12 @@ require 'spec'
require 'spec/autorun'
require 'rubygems'
-require 'bundler'
-Bundler.setup
+begin
+ require 'bundler'
+ Bundler.setup
+rescue LoadError
+ $stderr... | Allow running the specs even if the Bundler gem is not installed.
Since the gem may well be used without Bundler at all, don't force its
presence during the spec running.
|
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,3 +28,9 @@ def schema_file
spec_dir.join("../api/RAML/api-ja.raml")
end
+
+RSpec.configure do |config|
+ config.before(:suite) do
+ raise "Not found '#{schema_file}'. P... | Check whether submodule is initialized
|
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,7 +2,7 @@ require 'chefspec/berkshelf'
RSpec.configure do |config|
- config.color = true
+ config.color = true # Use color in STDOUT
+ config.formatter = :do... | Use doc formatter in Chefspec and avoid deprecation warnings
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.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
@@ -20,6 +20,7 @@ RSpec.configure do |config|
config.expect_with :rspec do |expectations|
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
+ expecta... | Change rspec config to stop truncating output
|
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
@@ -9,6 +9,9 @@
config.order = 'random'
+ config.filter_run :focus => true
+ config.run_all_when_everything_filtered = true
+
# exclude neo4j tests for now (not working on ... | Allow focus in rspec 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 @@
add_group('Adapters') { |source| source.filename =~ /basquiat\/adapters/ }
add_group('Interfaces') { |source| source.filename =~ /basquiat\/interfaces/ }
+ add... | Add the support group to SimpleCov
|
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 @@
SimpleCov.start do
add_filter "/spec"
+ add_filter "/example"
end
require "anodator"
| Remove example codes on SimpleCov.
|
diff --git a/change-image/dell/barclamps/deployer/chef/cookbooks/ohai/recipes/default.rb b/change-image/dell/barclamps/deployer/chef/cookbooks/ohai/recipes/default.rb
index abc1234..def5678 100644
--- a/change-image/dell/barclamps/deployer/chef/cookbooks/ohai/recipes/default.rb
+++ b/change-image/dell/barclamps/deploye... | Make sure that lshw is available on all system. This was making the switch_config variables empty and the UI having issues.
|
diff --git a/lib/notifier.rb b/lib/notifier.rb
index abc1234..def5678 100644
--- a/lib/notifier.rb
+++ b/lib/notifier.rb
@@ -23,8 +23,8 @@ notify(message, "red")
end
- def debug(message)
- notify(message, "yellow")
+ def info(message)
+ notify(message, "gray")
end
def notify(mes... | Change debug to info and make it grey
|
diff --git a/Zeeguu-API-iOS.podspec b/Zeeguu-API-iOS.podspec
index abc1234..def5678 100644
--- a/Zeeguu-API-iOS.podspec
+++ b/Zeeguu-API-iOS.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |s|
s.name = "Zeeguu-API-iOS"
- s.version = "1.0.8"
+ s.version = "1.0.9"
s.summary = "An API for Zeeguu fo... | Update pod spec to make sure it works again
|
diff --git a/lib/test_bed.rb b/lib/test_bed.rb
index abc1234..def5678 100644
--- a/lib/test_bed.rb
+++ b/lib/test_bed.rb
@@ -5,5 +5,5 @@ require 'optparse'
require 'fileutils'
-require 'test_bed/config'
+require 'test_bed/configuration'
require 'test_bed/base'
| Correct the name for configuration file
|
diff --git a/lib/grab.rb b/lib/grab.rb
index abc1234..def5678 100644
--- a/lib/grab.rb
+++ b/lib/grab.rb
@@ -1,17 +1,23 @@ require "grab/version"
-class Hash
- alias_method :old_values, :values
+module Grab
+ class ::Hash
+ alias_method :orig_values, :values
- def grab(*keys)
- keys.map { |k| self.fetch(k)... | Use a module to extend Hash |
diff --git a/lib/main.rb b/lib/main.rb
index abc1234..def5678 100644
--- a/lib/main.rb
+++ b/lib/main.rb
@@ -7,13 +7,21 @@ # Have questions or comments? email us at: contact@solvebio.com
require 'logger'
+require 'fileutils'
module SolveBio
VERSION = '1.6.1'
@api_key = ENV['SOLVEBIO_API_KEY']... | Create ~/.solvebio if its not there.
|
diff --git a/foodr-backend/app/controllers/searches_controller.rb b/foodr-backend/app/controllers/searches_controller.rb
index abc1234..def5678 100644
--- a/foodr-backend/app/controllers/searches_controller.rb
+++ b/foodr-backend/app/controllers/searches_controller.rb
@@ -1,4 +1,8 @@ class SearchesController < Applicat... | Remove create method from search controller
|
diff --git a/lib/artefact_retriever.rb b/lib/artefact_retriever.rb
index abc1234..def5678 100644
--- a/lib/artefact_retriever.rb
+++ b/lib/artefact_retriever.rb
@@ -10,7 +10,7 @@ self.logger = logger
self.statsd = statsd
self.supported_formats = supported_formats ||
- %w{answer completed_transaction ... | Remove help from the artefact retreiver
|
diff --git a/lib/casa/publisher/app.rb b/lib/casa/publisher/app.rb
index abc1234..def5678 100644
--- a/lib/casa/publisher/app.rb
+++ b/lib/casa/publisher/app.rb
@@ -7,9 +7,18 @@ class App < Sinatra::Base
@@storage_handler = false
+ @@postprocess_handler = false
+
+ def self.set_postprocess_handle... | Add post-process handler that runs before SendOut
|
diff --git a/_plugins/custom_tag.rb b/_plugins/custom_tag.rb
index abc1234..def5678 100644
--- a/_plugins/custom_tag.rb
+++ b/_plugins/custom_tag.rb
@@ -0,0 +1,13 @@+class LingualLink < Liquid::Tag
+ def initialize(tag_name, dest, _tokens)
+ super
+ @dest = dest
+ end
+
+ def render(context)
+ lang = contex... | Add custom tag for creating local links
English pages are at /page while non-English pages are at /lang/page.
This makes linking to translated pages a bit messy.
The custom tag added in this commit makes local page links simpler:
`{% lingual_link <page> %}` yields the correct relative link for <page>.
The tag determi... |
diff --git a/db/migrate/20150122180848_add_image_to_piggybak_variants_option_values.rb b/db/migrate/20150122180848_add_image_to_piggybak_variants_option_values.rb
index abc1234..def5678 100644
--- a/db/migrate/20150122180848_add_image_to_piggybak_variants_option_values.rb
+++ b/db/migrate/20150122180848_add_image_to_pi... | Add image to options value |
diff --git a/lib/raceresult/decoder.rb b/lib/raceresult/decoder.rb
index abc1234..def5678 100644
--- a/lib/raceresult/decoder.rb
+++ b/lib/raceresult/decoder.rb
@@ -18,6 +18,19 @@ get_status[:has_power] == "1"
end
+ def antennas
+ get_status[:antennas]
+ end
+
+ def datetime
+ if get_sta... | Add methods antennas and datetime to Decoder
|
diff --git a/lib/tasks/hackernews.rake b/lib/tasks/hackernews.rake
index abc1234..def5678 100644
--- a/lib/tasks/hackernews.rake
+++ b/lib/tasks/hackernews.rake
@@ -0,0 +1,27 @@+require 'open-uri'
+
+require_relative '../../config/environment'
+
+def save_the_children(parent, children)
+ children.each do |c|
+ next... | Implement hacker news collection task
Motivation:
-so that the top-notch chat over at HN can be collected and investigated
Change Explanation
-implement simple :hackernews task to collect the comment for a given ID
-comment nesting is retained
|
diff --git a/lib/tasks/ow-console.rake b/lib/tasks/ow-console.rake
index abc1234..def5678 100644
--- a/lib/tasks/ow-console.rake
+++ b/lib/tasks/ow-console.rake
@@ -10,9 +10,11 @@ name = stack_name(args[:to])
stack = Momentum::OpsWorks.get_stack(ow, name)
layer = ow.describe_layers(stack_id: stack[:stack_... | Improve error handling in ow:console.
|
diff --git a/pipeline/config/routes.rb b/pipeline/config/routes.rb
index abc1234..def5678 100644
--- a/pipeline/config/routes.rb
+++ b/pipeline/config/routes.rb
@@ -1,7 +1,7 @@ Rails.application.routes.draw do
root 'application#index'
# get '*path' => 'application#index'
- devise_for :users, defaults: { format: ... | Add controller to devise to accept extra fields
|
diff --git a/lib/vundle_cli/helpers.rb b/lib/vundle_cli/helpers.rb
index abc1234..def5678 100644
--- a/lib/vundle_cli/helpers.rb
+++ b/lib/vundle_cli/helpers.rb
@@ -24,11 +24,8 @@ fpath
end
- # Get the bundle's main name.
- # (the provided @bundle usually looks like baopham/trailertrash.vim,
- # s... | Use File.basename instead of sub()
|
diff --git a/spec/support/mocks/observer.rb b/spec/support/mocks/observer.rb
index abc1234..def5678 100644
--- a/spec/support/mocks/observer.rb
+++ b/spec/support/mocks/observer.rb
@@ -1,7 +1,6 @@ module Mocks
class Observer
def update(api_call)
- # puts "hello I am observer for #{api_call.api_call_type.to... | Remove commented out line from mock
|
diff --git a/quickstart.rb b/quickstart.rb
index abc1234..def5678 100644
--- a/quickstart.rb
+++ b/quickstart.rb
@@ -0,0 +1,60 @@+require 'google/apis/calendar_v3'
+require 'googleauth'
+require 'googleauth/stores/file_token_store'
+
+require 'fileutils'
+
+OOB_URI = 'urn:ietf:wg:oauth:2.0:oob'
+APPLICATION_NAME = 'Goo... | Add Google API for cal. Works
|
diff --git a/app/models/saved_scenario.rb b/app/models/saved_scenario.rb
index abc1234..def5678 100644
--- a/app/models/saved_scenario.rb
+++ b/app/models/saved_scenario.rb
@@ -14,6 +14,8 @@ belongs_to :user
attr_accessor :title, :description, :api_session_id
+
+ attr_accessible :scenario_id
validates :use... | Fix specs for saved scenario
|
diff --git a/app/helpers/materials_helper.rb b/app/helpers/materials_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/materials_helper.rb
+++ b/app/helpers/materials_helper.rb
@@ -13,7 +13,7 @@ end
def get_materials_display_name
- preferable = @course.student_sidebar_display.joins(:preferable_item).
... | Allow access to the customised materials component name even if it is disabled by the lecturer (e.g. by direct URL access)
|
diff --git a/app/uploaders/asset_uploader.rb b/app/uploaders/asset_uploader.rb
index abc1234..def5678 100644
--- a/app/uploaders/asset_uploader.rb
+++ b/app/uploaders/asset_uploader.rb
@@ -5,7 +5,9 @@ storage :file
def store_dir
- "#{Rails.root}/uploads/assets/#{model.id}"
+ id = model.id
+ path = id.sc... | Use a nested path to prevent hitting the directory limitation
EXT3 has a limit on the number of files that a directory can hold. To
prevent us hitting this limit we'll distribute our files to a depth of
two directories.
e.g. If our BSON ID is '5124bd9a686c8228a9000005', then the asset path
generated would be: /51/24/... |
diff --git a/lib/doing_stream.rb b/lib/doing_stream.rb
index abc1234..def5678 100644
--- a/lib/doing_stream.rb
+++ b/lib/doing_stream.rb
@@ -9,10 +9,10 @@ @streams = streams
end
- def latest n = 5
+ def latest n = 5, m = 2
streams.map do |stream|
- stream.entries.take(2)
- end.flatten.sort_by(&:... | Allow specifying max number of entries to take from each stream
|
diff --git a/callcredit.gemspec b/callcredit.gemspec
index abc1234..def5678 100644
--- a/callcredit.gemspec
+++ b/callcredit.gemspec
@@ -7,7 +7,7 @@ gem.add_runtime_dependency 'unicode_utils', '~> 1.4.0'
gem.add_development_dependency 'rspec', '~> 3.7.0'
- gem.add_development_dependency 'webmock... | Update webmock requirement to ~> 3.3.0
Updates the requirements on [webmock](https://github.com/bblimke/webmock) to permit the latest version.
- [Changelog](https://github.com/bblimke/webmock/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bblimke/webmock/commits/v3.3.0) |
diff --git a/lib/thinking_sphinx/search/glaze.rb b/lib/thinking_sphinx/search/glaze.rb
index abc1234..def5678 100644
--- a/lib/thinking_sphinx/search/glaze.rb
+++ b/lib/thinking_sphinx/search/glaze.rb
@@ -19,8 +19,6 @@ @object
end
- private
-
def method_missing(method, *args, &block)
pane = @panes.det... | Add respond_to? method definition for search panes |
diff --git a/spec/defines/proj_epsg_spec.rb b/spec/defines/proj_epsg_spec.rb
index abc1234..def5678 100644
--- a/spec/defines/proj_epsg_spec.rb
+++ b/spec/defines/proj_epsg_spec.rb
@@ -0,0 +1,38 @@+require 'spec_helper'
+
+describe 'proj::epsg' do
+ let (:title) { '900913' }
+
+ let (:pre_condition) { 'require ::auge... | Add basic specs for proj::epsg
|
diff --git a/spec/lib/chatwork/task_spec.rb b/spec/lib/chatwork/task_spec.rb
index abc1234..def5678 100644
--- a/spec/lib/chatwork/task_spec.rb
+++ b/spec/lib/chatwork/task_spec.rb
@@ -0,0 +1,45 @@+describe ChatWork::Task do
+ describe ".get", type: :api do
+ subject do
+ ChatWork::Task.get(
+ room_id: ... | Add test for ChatWork::Task.get and ChatWork::Task.create
|
diff --git a/Casks/hopper-debugger-server.rb b/Casks/hopper-debugger-server.rb
index abc1234..def5678 100644
--- a/Casks/hopper-debugger-server.rb
+++ b/Casks/hopper-debugger-server.rb
@@ -1,6 +1,6 @@ cask :v1 => 'hopper-debugger-server' do
- version '2.3'
- sha256 '291bcabcd84f395d9aba08532c1fff54101ec8d02aeb46e32c8... | Upgrade Hopper Debugger Server.app to v2.4
|
diff --git a/spec/rspec_ssltls/util_spec.rb b/spec/rspec_ssltls/util_spec.rb
index abc1234..def5678 100644
--- a/spec/rspec_ssltls/util_spec.rb
+++ b/spec/rspec_ssltls/util_spec.rb
@@ -0,0 +1,58 @@+require 'spec_helper'
+require 'rspec_ssltls'
+
+describe RspecSsltls::Util do
+ describe '#self.open_socket' do
+ bef... | Add spec for utils for adding proxy chain
|
diff --git a/puppet-lint-duplicate_class_parameters-check.gemspec b/puppet-lint-duplicate_class_parameters-check.gemspec
index abc1234..def5678 100644
--- a/puppet-lint-duplicate_class_parameters-check.gemspec
+++ b/puppet-lint-duplicate_class_parameters-check.gemspec
@@ -22,7 +22,7 @@ spec.add_development_dependency... | Update rubocop requirement from ~> 0.47.1 to ~> 0.75.0
Updates the requirements on [rubocop](https://github.com/rubocop-hq/rubocop) to permit the latest version.
- [Release notes](https://github.com/rubocop-hq/rubocop/releases)
- [Changelog](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md)
- [Commits](h... |
diff --git a/test/test_gem_install.rb b/test/test_gem_install.rb
index abc1234..def5678 100644
--- a/test/test_gem_install.rb
+++ b/test/test_gem_install.rb
@@ -12,7 +12,9 @@ out = IO.popen("ruby -rtestgem -e \"puts Libguess.determine_encoding('abc', 'Greek')\"", &:read)
assert_match(/UTF-8/, out)
- out =... | Fix test for GNU ed when running without MSYS2 in the path.
|
diff --git a/events/db/migrate/20120208144948_add_events_foreign_key.rb b/events/db/migrate/20120208144948_add_events_foreign_key.rb
index abc1234..def5678 100644
--- a/events/db/migrate/20120208144948_add_events_foreign_key.rb
+++ b/events/db/migrate/20120208144948_add_events_foreign_key.rb
@@ -0,0 +1,9 @@+class AddEv... | Add events table foreign key
|
diff --git a/log.gemspec b/log.gemspec
index abc1234..def5678 100644
--- a/log.gemspec
+++ b/log.gemspec
@@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'evt-log'
- s.version = '2.1.1.1'
+ s.version = '2.1.1.2'
s.summary = 'Logging to STD IO with levels, tagging, and coloring'
... | Package version is increased from 2.1.1.1 to 2.1.1.2
|
diff --git a/spec/issues/issue100_spec.rb b/spec/issues/issue100_spec.rb
index abc1234..def5678 100644
--- a/spec/issues/issue100_spec.rb
+++ b/spec/issues/issue100_spec.rb
@@ -1,40 +1,42 @@ require "spec_helper"
-describe Bunny::Channel, "#basic_publish" do
- let(:connection) do
- c = Bunny.new(:user => "bun... | Exclude more stress tests from CI runs
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.