diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/app/models/order_detail.rb b/app/models/order_detail.rb
index abc1234..def5678 100644
--- a/app/models/order_detail.rb
+++ b/app/models/order_detail.rb
@@ -19,4 +19,8 @@ quantity: quantity
}
end
+
+ def value
+ quantity * price
+ end
end
| Add value method to order details
|
diff --git a/lib/core_extensions/regexp/examples.rb b/lib/core_extensions/regexp/examples.rb
index abc1234..def5678 100644
--- a/lib/core_extensions/regexp/examples.rb
+++ b/lib/core_extensions/regexp/examples.rb
@@ -29,5 +29,4 @@ end
end
-# Regexp#include is private for ruby 2.0 and below
-Regexp.send(:include, C... | Drop workaround for ruby 2.0 support
|
diff --git a/core/app/models/spree/calculator.rb b/core/app/models/spree/calculator.rb
index abc1234..def5678 100644
--- a/core/app/models/spree/calculator.rb
+++ b/core/app/models/spree/calculator.rb
@@ -17,12 +17,6 @@ ###################################################################
def self.register(*kl... | Remove commented out code from Calculator.register
|
diff --git a/SentryReactNative.podspec b/SentryReactNative.podspec
index abc1234..def5678 100644
--- a/SentryReactNative.podspec
+++ b/SentryReactNative.podspec
@@ -18,8 +18,7 @@ s.preserve_paths = '*.js'
s.dependency 'React'
- s.dependency 'Sentry', '~> 3.0.1'
- s.dependency 'KSCrash', '~> 1.15.8'
+ s.depend... | Update podspec to use subspec of KSCrash
|
diff --git a/app/models/owner.rb b/app/models/owner.rb
index abc1234..def5678 100644
--- a/app/models/owner.rb
+++ b/app/models/owner.rb
@@ -37,10 +37,11 @@ def after_create
super
mail = Mail.new
- mail.from 'info@cocoapods.org'
- mail.to email
- mail.subject 'This i... | [Owner] Set charset of email to UTF-8.
|
diff --git a/db/migrations/010_add_indexes_on_uuid_resources.rb b/db/migrations/010_add_indexes_on_uuid_resources.rb
index abc1234..def5678 100644
--- a/db/migrations/010_add_indexes_on_uuid_resources.rb
+++ b/db/migrations/010_add_indexes_on_uuid_resources.rb
@@ -2,7 +2,7 @@ change do
alter_table(:uuid_resource... | Update index order to be able to use where clause with 'key' only
|
diff --git a/SGHTTPRequest.podspec b/SGHTTPRequest.podspec
index abc1234..def5678 100644
--- a/SGHTTPRequest.podspec
+++ b/SGHTTPRequest.podspec
@@ -7,7 +7,7 @@ s.author = "SeatGeek"
s.watchos.deployment_target = '2.0'
s.ios.deployment_target = '7.0'
- s.source = { :git => "https://github.com/sea... | Update pod spec to v1.7.0
|
diff --git a/bin/console.rb b/bin/console.rb
index abc1234..def5678 100644
--- a/bin/console.rb
+++ b/bin/console.rb
@@ -5,4 +5,4 @@ require 'mote_sms'
require 'irb'
-IRB.start(__FILE__)+IRB.start(__FILE__)
| Add line at the end of file
|
diff --git a/spec/mesos/slave_spec.rb b/spec/mesos/slave_spec.rb
index abc1234..def5678 100644
--- a/spec/mesos/slave_spec.rb
+++ b/spec/mesos/slave_spec.rb
@@ -0,0 +1,79 @@+# encoding: utf-8
+
+require 'spec_helper'
+
+describe 'mesos::slave' do
+ before do
+ File.stub(:exist?).and_call_original
+ File.stub(:ex... | Add unit tests for slave recipe |
diff --git a/SPTDataLoader.podspec b/SPTDataLoader.podspec
index abc1234..def5678 100644
--- a/SPTDataLoader.podspec
+++ b/SPTDataLoader.podspec
@@ -1,7 +1,7 @@ Pod::Spec.new do |s|
s.name = "SPTDataLoader"
- s.version = "1.0.0"
+ s.version = "1.0.1"
s.summary = "SPTDataLoader i... | Update podspec to reflect latest release
* In the future we should do this on every release |
diff --git a/active_decorator.gemspec b/active_decorator.gemspec
index abc1234..def5678 100644
--- a/active_decorator.gemspec
+++ b/active_decorator.gemspec
@@ -13,7 +13,9 @@ s.summary = %q{A simple and Rubyish view helper for Rails}
s.description = %q{A simple and Rubyish view helper for Rails}
- s.files ... | Exclude test files from the gem package
|
diff --git a/UIImageColors.podspec b/UIImageColors.podspec
index abc1234..def5678 100644
--- a/UIImageColors.podspec
+++ b/UIImageColors.podspec
@@ -8,6 +8,6 @@ spec.source = { :git => "https://github.com/jathu/UIImageColors.git", :tag => spec.version }
spec.ios.deployment_target = "8.0"
- spec.source_file... | Update podspec source files path
|
diff --git a/test/system/system_test.rb b/test/system/system_test.rb
index abc1234..def5678 100644
--- a/test/system/system_test.rb
+++ b/test/system/system_test.rb
@@ -17,7 +17,7 @@ test = %Q("#{@here_path}/test_project/_output")
truth = %Q("#{@here_path}/truth")
assert_equal true,
- sys... | Use unified 'diff' format in an effort to troubleshoot the failed RunCodeRun system test that succeeds on my local Ruby v1.9.1 installation >:-< |
diff --git a/lib/rubocop/cop/lint/duplicate_case_condition.rb b/lib/rubocop/cop/lint/duplicate_case_condition.rb
index abc1234..def5678 100644
--- a/lib/rubocop/cop/lint/duplicate_case_condition.rb
+++ b/lib/rubocop/cop/lint/duplicate_case_condition.rb
@@ -31,21 +31,11 @@ MSG = 'Duplicate `when` condition detec... | Refactor Lint/DuplicateCaseCondition cop with Set
|
diff --git a/app/controllers/beacons_controller.rb b/app/controllers/beacons_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/beacons_controller.rb
+++ b/app/controllers/beacons_controller.rb
@@ -11,8 +11,13 @@ end
def create
- @beacon = Beacon.new
- render action: 'new'
+ @beacon = Bea... | Create a beacon controller edits
|
diff --git a/app/controllers/players_controller.rb b/app/controllers/players_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/players_controller.rb
+++ b/app/controllers/players_controller.rb
@@ -4,6 +4,11 @@
def create
@current_player2 = User.find_by(email: player_params[:email])
+ if @curr... | Add logic to prevent user from signing in as user1 and 2
|
diff --git a/app/controllers/api/contests_controller.rb b/app/controllers/api/contests_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/contests_controller.rb
+++ b/app/controllers/api/contests_controller.rb
@@ -1,22 +1,23 @@ class Api::ContestsController < ApplicationController
def show
un... | Fix Case 1 and 2
|
diff --git a/app/controllers/queries_controller.rb b/app/controllers/queries_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/queries_controller.rb
+++ b/app/controllers/queries_controller.rb
@@ -8,7 +8,7 @@ case params[:group_by]
when "section"
for section in @account.main_categories
-... | Refactor query on Queries controller.
|
diff --git a/app/controllers/posts/abouts_controller.rb b/app/controllers/posts/abouts_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/posts/abouts_controller.rb
+++ b/app/controllers/posts/abouts_controller.rb
@@ -18,7 +18,7 @@ # GET /a-propos/1.json
def show
redirect_to @about, status: :mo... | Use decorated version of object for seo_tag_show
|
diff --git a/age_jp.gemspec b/age_jp.gemspec
index abc1234..def5678 100644
--- a/age_jp.gemspec
+++ b/age_jp.gemspec
@@ -18,7 +18,7 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
- spec.add_dependency "activesupport", '>= 3.2'
+ spec.add_dependency "activesuppo... | Set dependent activesupport version >= 4.1
|
diff --git a/lib/bond/completions/kernel.rb b/lib/bond/completions/kernel.rb
index abc1234..def5678 100644
--- a/lib/bond/completions/kernel.rb
+++ b/lib/bond/completions/kernel.rb
@@ -1,6 +1,8 @@ complete(:methods=>%w{Kernel#raise Kernel#fail}) { objects_of(Class).select {|e| e < StandardError } }
complete(:method=>%... | Support entries in $PATH which do not exist
Signed-off-by: Gabriel Horner <0ad009e2f1307e2b56a46d2786acc83aaf18056e@gmail.com>
|
diff --git a/candela.gemspec b/candela.gemspec
index abc1234..def5678 100644
--- a/candela.gemspec
+++ b/candela.gemspec
@@ -19,4 +19,5 @@ s.add_dependency "rails", "~> 4.0.0"
s.add_development_dependency "sqlite3"
+ s.add_development_dependency "capybara"
end
| Add capybara as a development dependency.
|
diff --git a/app/helpers/ads/application_helper.rb b/app/helpers/ads/application_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/ads/application_helper.rb
+++ b/app/helpers/ads/application_helper.rb
@@ -13,7 +13,6 @@ # TODO user can specifiy if he wanna load one ad in render time.
banner = Banner... | Remove banner name from div
|
diff --git a/app/models/conversation_summarizer.rb b/app/models/conversation_summarizer.rb
index abc1234..def5678 100644
--- a/app/models/conversation_summarizer.rb
+++ b/app/models/conversation_summarizer.rb
@@ -20,7 +20,7 @@ end
def first_message
- self.conversation.messages.order('created_at DESC').first
+... | Fix problem with the generated title
|
diff --git a/opal.gemspec b/opal.gemspec
index abc1234..def5678 100644
--- a/opal.gemspec
+++ b/opal.gemspec
@@ -19,7 +19,7 @@
s.add_dependency 'source_map'
- s.add_development_dependency 'mspec', '1.5.18'
+ s.add_development_dependency 'mspec', '1.5.20'
s.add_development_dependency 'rake'
s.add_developme... | Update to mspec 1.5.20 (latest) for running rubyspecs
|
diff --git a/lib/facter/sendmail_version.rb b/lib/facter/sendmail_version.rb
index abc1234..def5678 100644
--- a/lib/facter/sendmail_version.rb
+++ b/lib/facter/sendmail_version.rb
@@ -4,7 +4,8 @@ #
Facter.add(:sendmail_version) do
setcode do
- version = Facter::Util::Resolution.exec('sendmail -d0.4 -bv root')
+... | Set DontProbeInterfaces when getting sendmail version
|
diff --git a/lib/fluent/plugin/out_logio.rb b/lib/fluent/plugin/out_logio.rb
index abc1234..def5678 100644
--- a/lib/fluent/plugin/out_logio.rb
+++ b/lib/fluent/plugin/out_logio.rb
@@ -9,6 +9,12 @@ config_param :output_type, :default => 'json'
config_param :host, :string, :default => 'localhost'
config_pa... | Add more options for formatting the output
|
diff --git a/config/initializers/delayed_job_config.rb b/config/initializers/delayed_job_config.rb
index abc1234..def5678 100644
--- a/config/initializers/delayed_job_config.rb
+++ b/config/initializers/delayed_job_config.rb
@@ -2,4 +2,5 @@ # Delayed::Worker.destroy_successful_jobs = false
Delayed::Worker.sleep_delay ... | Set Rails logger as delayed job logger
|
diff --git a/config/initializers/gravatar_image_tag.rb b/config/initializers/gravatar_image_tag.rb
index abc1234..def5678 100644
--- a/config/initializers/gravatar_image_tag.rb
+++ b/config/initializers/gravatar_image_tag.rb
@@ -0,0 +1,8 @@+GravatarImageTag.configure do |config|
+# config.default_image = nil... | Add initializer to configure gravatar image tags
|
diff --git a/lib/graphql/relay/page_info.rb b/lib/graphql/relay/page_info.rb
index abc1234..def5678 100644
--- a/lib/graphql/relay/page_info.rb
+++ b/lib/graphql/relay/page_info.rb
@@ -5,8 +5,8 @@ PageInfo = GraphQL::ObjectType.define do
name("PageInfo")
description("Information about pagination in a ... | Add some details to hasNextPage/hasPreviousPage descriptions.
|
diff --git a/chaplin.gemspec b/chaplin.gemspec
index abc1234..def5678 100644
--- a/chaplin.gemspec
+++ b/chaplin.gemspec
@@ -14,7 +14,8 @@ gem.add_runtime_dependency "faraday"
gem.add_runtime_dependency "mustache"
- gem.add_development_dependency "pry"
+ gem.add_runtime_dependency "pry"
+
gem.add_developmen... | Add pry to runtime dependencies for debugging requests
|
diff --git a/core/lib/spree/core/controller_helpers.rb b/core/lib/spree/core/controller_helpers.rb
index abc1234..def5678 100644
--- a/core/lib/spree/core/controller_helpers.rb
+++ b/core/lib/spree/core/controller_helpers.rb
@@ -1,10 +1,11 @@ module Spree
module Core
module ControllerHelpers
- def self.inc... | Add Spree::Core::ControllerHelpers which can be included to include all its submodules
|
diff --git a/lib/jasmine-phantom/tasks.rake b/lib/jasmine-phantom/tasks.rake
index abc1234..def5678 100644
--- a/lib/jasmine-phantom/tasks.rake
+++ b/lib/jasmine-phantom/tasks.rake
@@ -12,7 +12,10 @@ port = config.instance_variable_get :@jasmine_server_port
script = File.join File.dirname(__FILE__), 'run... | Use Process.spawn instead of sh
|
diff --git a/app/serializers/user_profile_serializer.rb b/app/serializers/user_profile_serializer.rb
index abc1234..def5678 100644
--- a/app/serializers/user_profile_serializer.rb
+++ b/app/serializers/user_profile_serializer.rb
@@ -1,3 +1,4 @@ class UserProfileSerializer < ActiveModel::Serializer
attributes :nusnet... | Include timetables in user profile payload
|
diff --git a/spec/unit/data_mapper/relation/mapper/class_methods/from_spec.rb b/spec/unit/data_mapper/relation/mapper/class_methods/from_spec.rb
index abc1234..def5678 100644
--- a/spec/unit/data_mapper/relation/mapper/class_methods/from_spec.rb
+++ b/spec/unit/data_mapper/relation/mapper/class_methods/from_spec.rb
@@ ... | Fix Relation::Mapper.from spec under 1.8 rubies
|
diff --git a/kiwi/spec/controllers/questions_controller_spec.rb b/kiwi/spec/controllers/questions_controller_spec.rb
index abc1234..def5678 100644
--- a/kiwi/spec/controllers/questions_controller_spec.rb
+++ b/kiwi/spec/controllers/questions_controller_spec.rb
@@ -7,7 +7,22 @@ expect(assigns(:questions)).to eq Qu... | Add work on questions controller spec for create route |
diff --git a/db/migrate/20140927001217_create_users.rb b/db/migrate/20140927001217_create_users.rb
index abc1234..def5678 100644
--- a/db/migrate/20140927001217_create_users.rb
+++ b/db/migrate/20140927001217_create_users.rb
@@ -2,7 +2,7 @@ def change
create_table :users do |t|
t.string :email, null: fals... | Replace :password_hash with :password_digest as is required by the newer Bcrypt-Rails integration using the HasSecurePassword feature.
|
diff --git a/spec/rollbar/plugins/delayed_job/job_data_spec.rb b/spec/rollbar/plugins/delayed_job/job_data_spec.rb
index abc1234..def5678 100644
--- a/spec/rollbar/plugins/delayed_job/job_data_spec.rb
+++ b/spec/rollbar/plugins/delayed_job/job_data_spec.rb
@@ -1,7 +1,20 @@ require 'spec_helper'
-
require 'rollbar/plug... | Fix tests for ruby 1.8.7
|
diff --git a/app/controllers/tweets.rb b/app/controllers/tweets.rb
index abc1234..def5678 100644
--- a/app/controllers/tweets.rb
+++ b/app/controllers/tweets.rb
@@ -3,7 +3,7 @@ # end
get '/tweets/index'do
- @tweet = Tweet.all
+ @tweet = Tweet.order('id DESC')
erb :'tweets/index'
end
| Modify get route to order all tweet entries by last tweet tweeted.
|
diff --git a/app/uploaders/site_figure_uploader.rb b/app/uploaders/site_figure_uploader.rb
index abc1234..def5678 100644
--- a/app/uploaders/site_figure_uploader.rb
+++ b/app/uploaders/site_figure_uploader.rb
@@ -18,7 +18,7 @@ process resize_to_fill: [570, 360]
def extension_whitelist
- %w[png]
+ %w[png jp... | Fix site figure file extension constraint incorrect
|
diff --git a/_plugins/geolookup.rb b/_plugins/geolookup.rb
index abc1234..def5678 100644
--- a/_plugins/geolookup.rb
+++ b/_plugins/geolookup.rb
@@ -16,6 +16,11 @@ :lookup => :google
)
response = Geocoder::search(query)
+
+ if response.empty?
+ raise "#{query.inspect} is... | Raise exception when location doesn't exist
|
diff --git a/app/models/role_right.rb b/app/models/role_right.rb
index abc1234..def5678 100644
--- a/app/models/role_right.rb
+++ b/app/models/role_right.rb
@@ -16,9 +16,6 @@ rr.group_id = new_group_id
rr.save
end
- else
- err_msg = 'No role_rights records found for group id #{root_id}'
... | Fix issue when no role rights are defined
|
diff --git a/app/models/subscriber.rb b/app/models/subscriber.rb
index abc1234..def5678 100644
--- a/app/models/subscriber.rb
+++ b/app/models/subscriber.rb
@@ -2,6 +2,7 @@ before_save :generate_private_code
validates_uniqueness_of :email
+ validates_presence_of :email
def generate_private_code
self.p... | Validate that something was put into the email field on subscription signup
|
diff --git a/tasks/extconf/looksee.rake b/tasks/extconf/looksee.rake
index abc1234..def5678 100644
--- a/tasks/extconf/looksee.rake
+++ b/tasks/extconf/looksee.rake
@@ -17,7 +17,7 @@ if Dir.glob("**/#{extension}.{o,so,dll}").length == 0
STDERR.puts "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
STDE... | Fix extconf:compile task when gem fails to build.
Not sure where GEM_NAME is supposed to be defined. Probably a newgem
bug.
|
diff --git a/spec/integration/integration_helper.rb b/spec/integration/integration_helper.rb
index abc1234..def5678 100644
--- a/spec/integration/integration_helper.rb
+++ b/spec/integration/integration_helper.rb
@@ -20,6 +20,10 @@ @env += "#{name}=#{value} "
end
+ def use_cucumber_config(file)
+ s... | Add method to setup cucumber.yml file to use
|
diff --git a/spec/lib/component_validations_spec.rb b/spec/lib/component_validations_spec.rb
index abc1234..def5678 100644
--- a/spec/lib/component_validations_spec.rb
+++ b/spec/lib/component_validations_spec.rb
@@ -14,4 +14,34 @@ signup = Signup.new(@params)
expect(signup).to be_valid
end
+
+ it "require... | Test validations on the signup model
|
diff --git a/spec/policies/account_geocoded_spec.rb b/spec/policies/account_geocoded_spec.rb
index abc1234..def5678 100644
--- a/spec/policies/account_geocoded_spec.rb
+++ b/spec/policies/account_geocoded_spec.rb
@@ -4,9 +4,9 @@ describe 'Policies::AccountGeocoded' do
describe '.entity_geocoded' do
- context 'w... | Adjust in RSpec test on policies
|
diff --git a/spec/dummy/config/initializers/secret_token.rb b/spec/dummy/config/initializers/secret_token.rb
index abc1234..def5678 100644
--- a/spec/dummy/config/initializers/secret_token.rb
+++ b/spec/dummy/config/initializers/secret_token.rb
@@ -5,3 +5,4 @@ # Make sure the secret is at least 30 characters and all ra... | [JRO] Add `secret_key_base` to quell the warning
Rails 4 noise
|
diff --git a/test/integration_helper.rb b/test/integration_helper.rb
index abc1234..def5678 100644
--- a/test/integration_helper.rb
+++ b/test/integration_helper.rb
@@ -7,6 +7,7 @@ end
def accounts
+ skip if ENV['SKIP_INTEGRATION']
YAML.load_file(File.expand_path('../fixtures/mws.yml', __FILE__))
resc... | Add environment variable to skip integration tests
|
diff --git a/test/lsi/word_list_test.rb b/test/lsi/word_list_test.rb
index abc1234..def5678 100644
--- a/test/lsi/word_list_test.rb
+++ b/test/lsi/word_list_test.rb
@@ -0,0 +1,33 @@+require_relative '../test_helper'
+
+class WordListTest < Test::Unit::TestCase
+ def test_size_does_not_count_words_twice
+ list = Cla... | Add some tests for ClassifierRebord::WordList
|
diff --git a/core/spec/entities/menu/menu_entry_spec.rb b/core/spec/entities/menu/menu_entry_spec.rb
index abc1234..def5678 100644
--- a/core/spec/entities/menu/menu_entry_spec.rb
+++ b/core/spec/entities/menu/menu_entry_spec.rb
@@ -3,5 +3,9 @@
module Abc
describe MenuEntry do
+ it "wraps passed children" do
+ ... | Expand test coverage for menu_entry.
|
diff --git a/test/support/assertions.rb b/test/support/assertions.rb
index abc1234..def5678 100644
--- a/test/support/assertions.rb
+++ b/test/support/assertions.rb
@@ -17,7 +17,7 @@ end
assert(remaining.empty?, lambda do
- "Expected #{mu_pp(collection)} to include only #{mu_pp(expected_elements)}... | Make collections stand out better in error message
|
diff --git a/stdlib/thread.rb b/stdlib/thread.rb
index abc1234..def5678 100644
--- a/stdlib/thread.rb
+++ b/stdlib/thread.rb
@@ -0,0 +1,17 @@+class Thread
+ def self.current
+ @current ||= self.new
+ end
+
+ def initialize
+ @vars = {}
+ end
+
+ def [](key)
+ @vars[key]
+ end
+
+ def []=(key, val)
+ ... | Add a stubbed Thread implementation for stdlib
|
diff --git a/test/unit/case_metadata.rb b/test/unit/case_metadata.rb
index abc1234..def5678 100644
--- a/test/unit/case_metadata.rb
+++ b/test/unit/case_metadata.rb
@@ -4,7 +4,7 @@ testcase "VCLog" do
test "VERSION is set" do
- ::VCLog::VERSION.assert == File.read('profile/version').strip
+ ::VCLog::VERSION.... | Fix metadata test for new var location.
|
diff --git a/celluloid-zmq.gemspec b/celluloid-zmq.gemspec
index abc1234..def5678 100644
--- a/celluloid-zmq.gemspec
+++ b/celluloid-zmq.gemspec
@@ -8,11 +8,7 @@ gem.summary = "Celluloid::ZMQ provides concurrent Celluloid actors that can listen for 0MQ events"
gem.homepage = "http://github.com/tarcieri/... | Use a better mechanism for locating files in the gemspec
|
diff --git a/powerdns_dyndns.gemspec b/powerdns_dyndns.gemspec
index abc1234..def5678 100644
--- a/powerdns_dyndns.gemspec
+++ b/powerdns_dyndns.gemspec
@@ -1,6 +1,6 @@ Gem::Specification.new do |spec|
spec.name = 'powerdns_dyndns'
- spec.version = '0.0.1'
+ spec.version = '0.0.2'
spec.auth... | Update dependencies and bump version
|
diff --git a/bwoken.gemspec b/bwoken.gemspec
index abc1234..def5678 100644
--- a/bwoken.gemspec
+++ b/bwoken.gemspec
@@ -10,6 +10,7 @@ gem.authors = ['Brad Grzesiak']
gem.email = ['brad@bendyworks.com']
gem.homepage = 'https://bendyworks.github.com/bwoken'
+ gem.license = 'MIT'
ge... | Add license line to gemspec
|
diff --git a/ops_genie_client.gemspec b/ops_genie_client.gemspec
index abc1234..def5678 100644
--- a/ops_genie_client.gemspec
+++ b/ops_genie_client.gemspec
@@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'ops_genie_client'
- s.version = '0.2.1.1'
+ s.version = '0.2.2.0'
s.summ... | Package version is increased from 0.2.1.1 to 0.2.2.0
|
diff --git a/config/environment.rb b/config/environment.rb
index abc1234..def5678 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -1,4 +1,4 @@-RAILS_GEM_VERSION = '2.3.8' unless defined? RAILS_GEM_VERSION
+RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION
require File.join(File.dirname(... | Switch back to Rails 2.3.5
|
diff --git a/app/models/meeting.rb b/app/models/meeting.rb
index abc1234..def5678 100644
--- a/app/models/meeting.rb
+++ b/app/models/meeting.rb
@@ -1,2 +1,6 @@ class Meeting < ActiveRecord::Base
+ validates_presence_of :date
+
+ scope :past, -> { where('date < ?', Date.today) }
+ scope :upcoming, -> { where('date >... | Validate presence of date and create past and upcoming scopes
|
diff --git a/test/module_youtube_test.rb b/test/module_youtube_test.rb
index abc1234..def5678 100644
--- a/test/module_youtube_test.rb
+++ b/test/module_youtube_test.rb
@@ -11,7 +11,7 @@
should "detect and fetch raw youtube URL" do
uri = "http://www.youtube.com/watch?v=bXjbMIZzAgs"
- exp_result =/^Chr... | Fix youtube module test because of changed title
Author changed the title of the URL so the test broke. Well ;)
Signed-off-by: Aki Saarinen <278bc57fbbff6b7b38435aea0f9d37e3d879167e@akisaarinen.fi>
|
diff --git a/test/module_youtube_test.rb b/test/module_youtube_test.rb
index abc1234..def5678 100644
--- a/test/module_youtube_test.rb
+++ b/test/module_youtube_test.rb
@@ -11,7 +11,7 @@
should "detect and fetch raw youtube URL" do
uri = "http://www.youtube.com/watch?v=bXjbMIZzAgs"
- exp_result =/^Chr... | Fix test for youtube module
Video title had changed. Add a more tolerant regex.
Signed-off-by: Aki Saarinen <278bc57fbbff6b7b38435aea0f9d37e3d879167e@akisaarinen.fi>
|
diff --git a/test/sti_test.rb b/test/sti_test.rb
index abc1234..def5678 100644
--- a/test/sti_test.rb
+++ b/test/sti_test.rb
@@ -0,0 +1,33 @@+require File.expand_path("../helper.rb", __FILE__)
+
+class StiTest < MiniTest::Unit::TestCase
+ include FriendlyId::Test
+
+ test "friendly_id should accept a base and a hash ... | Add failing test for single table inheritance
|
diff --git a/test/integration/default/minitest/test_default.rb b/test/integration/default/minitest/test_default.rb
index abc1234..def5678 100644
--- a/test/integration/default/minitest/test_default.rb
+++ b/test/integration/default/minitest/test_default.rb
@@ -7,6 +7,6 @@ it "check R version" do
system('echo "q(... | Update test case R version 3.2.3 RC
|
diff --git a/app/admin/artifact.rb b/app/admin/artifact.rb
index abc1234..def5678 100644
--- a/app/admin/artifact.rb
+++ b/app/admin/artifact.rb
@@ -25,14 +25,14 @@ f.input :downloadable
f.input :author
f.input :file_hash
- f.input :mirrors, input_html: { value: f.artifact.mirrors.join(',') }
-... | Correct tags, mirrors, etc in admin dashboard in case of nil values
|
diff --git a/lib/tasks/rename.rake b/lib/tasks/rename.rake
index abc1234..def5678 100644
--- a/lib/tasks/rename.rake
+++ b/lib/tasks/rename.rake
@@ -1,6 +1,7 @@ namespace :rename do
- desc "Renaming rapidfire_answer_groups to rapidfire_attempts"
- task question_groups_to_surveys: :environment do
+ desc "Renaming rap... | Add task for renaming question_groups table to surveys
|
diff --git a/lib/webmock/server.rb b/lib/webmock/server.rb
index abc1234..def5678 100644
--- a/lib/webmock/server.rb
+++ b/lib/webmock/server.rb
@@ -2,7 +2,7 @@
module WebMock
module Server
- STUB_URI = 'http://stubme'
+ STUB_URI = 'http://localhost:65534'
autoload :Handler, "webmock/server/handler"
... | Change internal stub URL to not timeout
|
diff --git a/app/models/ability.rb b/app/models/ability.rb
index abc1234..def5678 100644
--- a/app/models/ability.rb
+++ b/app/models/ability.rb
@@ -1,7 +1,10 @@+# Clase que indica los permisos de los distintos usuarios a partir de su rol.
+
class Ability
include CanCan::Ability
- @@user
+ # Por defecto todos l... | Add sample documentation on Ability. |
diff --git a/tools-cd.gemspec b/tools-cd.gemspec
index abc1234..def5678 100644
--- a/tools-cd.gemspec
+++ b/tools-cd.gemspec
@@ -9,8 +9,8 @@ spec.authors = ['Andrew Page']
spec.email = %w(andrew@andrewpage.me)
- spec.summary = 'Collection of tools for automating a seedbox.'
- spec.descripti... | Add more info to the description
|
diff --git a/db/seeds.rb b/db/seeds.rb
index abc1234..def5678 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -0,0 +1,17 @@+# Model for creating a question and associated answer
+# Question.create(text: "").answers << Answer.create(text: "")
+
+
+# Theater_Screens_Screenings
+Question.create!(text: "What is the relations... | Add questions and answers for Theaters_Screens_Screenings
|
diff --git a/db/seeds.rb b/db/seeds.rb
index abc1234..def5678 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -1,7 +1,21 @@-# This file should contain all the record creation needed to seed the database with its default values.
-# The data can then be loaded with the rake db:seed (or created alongside the db with db:setu... | Create users in seed file
|
diff --git a/db/seeds.rb b/db/seeds.rb
index abc1234..def5678 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -7,7 +7,7 @@ # Mayor.create(name: 'Emanuel', city: cities.first)
user_count = 25
user_count.times do
- User.create(name: Faker::Name.name)
+ User.create(name: Faker::Name.name, image: Faker::Avatar.image)
... | Add user image to seed file
|
diff --git a/test/test_tmuxpowerline.rb b/test/test_tmuxpowerline.rb
index abc1234..def5678 100644
--- a/test/test_tmuxpowerline.rb
+++ b/test/test_tmuxpowerline.rb
@@ -1,6 +1,6 @@ require 'helper'
-class TestTmuxpowerline < Test::Unit::TestCase
+class TestTmuxPowerline < Test::Unit::TestCase
should "probably rena... | Rename TestTmuxpowerline to use PascalCase
|
diff --git a/attributes/default.rb b/attributes/default.rb
index abc1234..def5678 100644
--- a/attributes/default.rb
+++ b/attributes/default.rb
@@ -1,2 +1,7 @@-default['one_password']['version'] = '4.4.1'
-default['one_password']['checksum'] = '007b554067cc0016bedfdcb75577f88b68daeabb5474a219960080e2e9159c90'
+if node... | Update to 1Password 5.1 for >= Yosemite
|
diff --git a/attributes/default.rb b/attributes/default.rb
index abc1234..def5678 100644
--- a/attributes/default.rb
+++ b/attributes/default.rb
@@ -28,7 +28,6 @@ whois
tcpdump
nmap
- git-annex
pwgen
mg
)
| Remove git-annex from package list |
diff --git a/attributes/default.rb b/attributes/default.rb
index abc1234..def5678 100644
--- a/attributes/default.rb
+++ b/attributes/default.rb
@@ -27,9 +27,12 @@ when 'suse', 'fedora', 'rhel'
default['memcached']['user'] = 'memcached'
default['memcached']['group'] = 'memcached'
-when 'debian', 'ubuntu'
+when 'u... | [COOK-3682] Fix debian user and group
Debian package does not create a `memcache` user, and it uses `nobody` in default config file.
Signed-off-by: Seth Vargo <81550dbf04dfd8537ff7b3c014c6fbf86e0889dc@gmail.com>
|
diff --git a/benchmark-ips/bm_case.rb b/benchmark-ips/bm_case.rb
index abc1234..def5678 100644
--- a/benchmark-ips/bm_case.rb
+++ b/benchmark-ips/bm_case.rb
@@ -0,0 +1,33 @@+Benchmark.ips do |x|
+ obj = Object.new
+ x.report("numeric statement") do
+ case 1
+ when 4 then 4
+ when 3 then 3
+ when 2 then 2
... | Add a bm-ips that checks perf on `case` w/ numbers |
diff --git a/cleric.gemspec b/cleric.gemspec
index abc1234..def5678 100644
--- a/cleric.gemspec
+++ b/cleric.gemspec
@@ -17,6 +17,7 @@
s.add_dependency 'ansi', '~> 1.4'
s.add_dependency 'hipchat-api', '~> 1.0'
+ s.add_dependency 'git', '~> 1.2'
s.add_dependency 'octokit', '~> 1.24'
s.add_dependency 'thor'... | Add gem dependency git ~> 1.2
|
diff --git a/concord.gemspec b/concord.gemspec
index abc1234..def5678 100644
--- a/concord.gemspec
+++ b/concord.gemspec
@@ -15,6 +15,8 @@ s.executables = []
s.require_paths = ['lib']
+ s.required_ruby_version = '>= 1.9.3'
+
s.add_dependency('adamantium', '~> 0.2.0')
s.add_dependency('equalizer', '~> 0... | Add required ruby version to gemspec
|
diff --git a/config/puma.rb b/config/puma.rb
index abc1234..def5678 100644
--- a/config/puma.rb
+++ b/config/puma.rb
@@ -1,9 +1,11 @@ #!/usr/bin/env puma
+
+rack_env = ENV.fetch('RACK_ENV', 'development')
rackup DefaultRackup
daemonize false
-environment ENV.fetch('RACK_ENV', 'development')
-workers ENV.... | Use RACK_ENV to check for development environment
The Rails constant isn't available when booting puma directly so use
the environment variable to check for development mode.
|
diff --git a/chatwork-cli-get-rooms.rb b/chatwork-cli-get-rooms.rb
index abc1234..def5678 100644
--- a/chatwork-cli-get-rooms.rb
+++ b/chatwork-cli-get-rooms.rb
@@ -1,27 +1,8 @@-require 'faraday'
-require 'json'
+require_relative './chatwork-cli-controller'
-BASE_URI='https://api.chatwork.com/v1/'
-API_TOKEN=ENV['CHA... | Modify to use the ChatworkCliController class
|
diff --git a/cronut.gemspec b/cronut.gemspec
index abc1234..def5678 100644
--- a/cronut.gemspec
+++ b/cronut.gemspec
@@ -17,7 +17,7 @@ end
spec.bindir = 'bin'
- spec.executables = ['bin/cronut']
+ spec.executables = ['cronut']
spec.require_paths = ['lib']
spec.add_development_dependency 'bun... | Fix executable name in gemspec
|
diff --git a/src/app/models/providers/mock/mock_launchable.rb b/src/app/models/providers/mock/mock_launchable.rb
index abc1234..def5678 100644
--- a/src/app/models/providers/mock/mock_launchable.rb
+++ b/src/app/models/providers/mock/mock_launchable.rb
@@ -5,13 +5,13 @@ # List all of the launchable items.
... | Replace mock code to establish connection with new ProviderModel.connect! method
|
diff --git a/lib/conceptql/nodes/before.rb b/lib/conceptql/nodes/before.rb
index abc1234..def5678 100644
--- a/lib/conceptql/nodes/before.rb
+++ b/lib/conceptql/nodes/before.rb
@@ -3,6 +3,10 @@ module ConceptQL
module Nodes
class Before < TemporalNode
+ def right_stream(db)
+ right.evaluate(db).from... | Before: Reduce right stream to one result per person
|
diff --git a/check_everything.gemspec b/check_everything.gemspec
index abc1234..def5678 100644
--- a/check_everything.gemspec
+++ b/check_everything.gemspec
@@ -1,6 +1,6 @@ Gem::Specification.new do |gem|
gem.name = 'check_everything'
- gem.version = '0.2.8'
+ gem.version = '0.2.9'
gem.date ... | Update gemfile to require previous version of Nokogiri for Ruby 1.8.7 compatibility
|
diff --git a/lib/cumulonimbusfs/textkvs.rb b/lib/cumulonimbusfs/textkvs.rb
index abc1234..def5678 100644
--- a/lib/cumulonimbusfs/textkvs.rb
+++ b/lib/cumulonimbusfs/textkvs.rb
@@ -5,8 +5,7 @@ class TextKeyValueStore
def parse_directory(content)
- content = Base64.decode64(content)
- #puts "Parsing d... | Remove extra base64 encoding from TextKeyValueStore
|
diff --git a/Casks/unsplash-wallpaper.rb b/Casks/unsplash-wallpaper.rb
index abc1234..def5678 100644
--- a/Casks/unsplash-wallpaper.rb
+++ b/Casks/unsplash-wallpaper.rb
@@ -1,11 +1,11 @@ cask :v1 => 'unsplash-wallpaper' do
- version '1330_1440930902'
- sha256 'f85d5a05de54c9407f4d2287a2cba54bdb8f5a5f97c64a22b9da129d5... | Upgrade Unsplash Wallpaper to 1.3.4
|
diff --git a/test/test_cruise_control.rb b/test/test_cruise_control.rb
index abc1234..def5678 100644
--- a/test/test_cruise_control.rb
+++ b/test/test_cruise_control.rb
@@ -3,30 +3,54 @@
describe CiStatus::CruiseControl do
- before { stub_request(:get, "http://example.com/cc.xml").to_return(:body => cc_fixture) }... | Add tests for basic authentication.
|
diff --git a/lib/firebolt/tasks/cache.rake b/lib/firebolt/tasks/cache.rake
index abc1234..def5678 100644
--- a/lib/firebolt/tasks/cache.rake
+++ b/lib/firebolt/tasks/cache.rake
@@ -24,6 +24,7 @@ end
end
+ desc 'Warm the cache with a new salt'
task :warm do
::Firebolt.initialize!
warme... | Add description to warm task
|
diff --git a/safe_email_name.gemspec b/safe_email_name.gemspec
index abc1234..def5678 100644
--- a/safe_email_name.gemspec
+++ b/safe_email_name.gemspec
@@ -9,6 +9,6 @@ s.license = 'MIT'
s.files = ['lib/safe_email_name.rb']
- s.add_dependency 'activesupport'
- s.add_development_dependency 'rspec'
+ ... | Update dependencies not-to be open ended
|
diff --git a/config/environment.rb b/config/environment.rb
index abc1234..def5678 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -7,6 +7,8 @@
require_rel "../app/"
require_rel "../lib/"
+
+GC::Profiler.enable
Unsplash.configure do |config|
config.application_id = ENV['UNSPLASH_ID']
| Add GC::Profiler for New Relic
|
diff --git a/lib/i18n/tasks/ar/generate.rb b/lib/i18n/tasks/ar/generate.rb
index abc1234..def5678 100644
--- a/lib/i18n/tasks/ar/generate.rb
+++ b/lib/i18n/tasks/ar/generate.rb
@@ -5,6 +5,7 @@ class << self
def model lang
result = Model.final_hash(lang).to_yaml
+ FileUtils.mkd... | Create folder if don't exist
|
diff --git a/lib/kramdown/manpage/tasks.rb b/lib/kramdown/manpage/tasks.rb
index abc1234..def5678 100644
--- a/lib/kramdown/manpage/tasks.rb
+++ b/lib/kramdown/manpage/tasks.rb
@@ -56,7 +56,10 @@ #
def render(markdown,manpage)
doc = Kramdown::Document.new(File.read(markdown),@options)
- Fil... | Use File.open instead of File.write for Ruby 1.8.x.
|
diff --git a/lib/metacrunch/file_writer.rb b/lib/metacrunch/file_writer.rb
index abc1234..def5678 100644
--- a/lib/metacrunch/file_writer.rb
+++ b/lib/metacrunch/file_writer.rb
@@ -22,18 +22,28 @@ end
def flush
- io.flush if io
+ file_io.flush if file_io
+ gzip_io.flush if gzip_io
end
... | Split up io into file_io and gzip_io to be more flexible for subclassing.
|
diff --git a/test/functional/admin/editions_controller_test.rb b/test/functional/admin/editions_controller_test.rb
index abc1234..def5678 100644
--- a/test/functional/admin/editions_controller_test.rb
+++ b/test/functional/admin/editions_controller_test.rb
@@ -15,6 +15,6 @@
post :create, :guide_id => @guide.i... | Update test to reflect extended error messages on creating new edition
|
diff --git a/test/unit/edition_organisation_image_data_test.rb b/test/unit/edition_organisation_image_data_test.rb
index abc1234..def5678 100644
--- a/test/unit/edition_organisation_image_data_test.rb
+++ b/test/unit/edition_organisation_image_data_test.rb
@@ -7,12 +7,12 @@ end
test 'should be invalid if image i... | Use absolute paths to fixture image so test will run within an editor.
|
diff --git a/db/migrate/20200410144107_add_root_account_id_to_master_courses_child_content_tags.rb b/db/migrate/20200410144107_add_root_account_id_to_master_courses_child_content_tags.rb
index abc1234..def5678 100644
--- a/db/migrate/20200410144107_add_root_account_id_to_master_courses_child_content_tags.rb
+++ b/db/mi... | Add root account id to master_courses_child_content_tags
Closes PLAT-5568
flag=none
Test Plan:
- Verify migrations run
- Verify a root_account_id can be set on a
MasterCourses::ChildContentTag record
- Verify MasterCourses::ChildContentTag always live on the same shard
as their root account
Change-Id: Ie4247064b... |
diff --git a/conker.gemspec b/conker.gemspec
index abc1234..def5678 100644
--- a/conker.gemspec
+++ b/conker.gemspec
@@ -7,7 +7,6 @@ s.description = "Configuration library."
s.homepage = "https://github.com/rapportive/conker"
s.license = 'MIT'
- s.date = Date.today.to_s
s.files = `git ls-files`.split("\n")
... | Remove broken Date.today from gemspec (don't know why it didn't fail before)
|
diff --git a/test/controllers/code_objects_controller_test.rb b/test/controllers/code_objects_controller_test.rb
index abc1234..def5678 100644
--- a/test/controllers/code_objects_controller_test.rb
+++ b/test/controllers/code_objects_controller_test.rb
@@ -19,6 +19,8 @@ }
get :show, params
ass... | Add test for code_object_role localization
|
diff --git a/scratch/read_activity.rb b/scratch/read_activity.rb
index abc1234..def5678 100644
--- a/scratch/read_activity.rb
+++ b/scratch/read_activity.rb
@@ -34,6 +34,8 @@ when 'DownloadEvent'
end
+ exit # safe guard
+
next unless comment
puts comment
end
| Stop fetching too much data
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.