diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/celluloid-zmq/celluloid-zmq.gemspec b/celluloid-zmq/celluloid-zmq.gemspec
index abc1234..def5678 100644
--- a/celluloid-zmq/celluloid-zmq.gemspec
+++ b/celluloid-zmq/celluloid-zmq.gemspec
@@ -8,11 +8,7 @@ gem.summary = "Celluloid::ZMQ provides concurrent Celluloid actors that can listen for 0MQ eve... | Use a better mechanism for locating files in the gemspec
|
diff --git a/spec/acceptance/test_sbyc.rb b/spec/acceptance/test_sbyc.rb
index abc1234..def5678 100644
--- a/spec/acceptance/test_sbyc.rb
+++ b/spec/acceptance/test_sbyc.rb
@@ -0,0 +1,72 @@+require 'spec_helper'
+module ICRb
+ describe "Using specialization by constraint" do
+
+ class WithSByCContract
+ includ... | Add acceptance test for SByC.
|
diff --git a/spec/endpoint_access_spec.rb b/spec/endpoint_access_spec.rb
index abc1234..def5678 100644
--- a/spec/endpoint_access_spec.rb
+++ b/spec/endpoint_access_spec.rb
@@ -6,7 +6,7 @@ let(:client) { WechatMP::Client.create }
it "should find the health endpoint" do
- expect(@client.Datacube.class).t... | Fix an error in spec
|
diff --git a/fund_id_reference.rb b/fund_id_reference.rb
index abc1234..def5678 100644
--- a/fund_id_reference.rb
+++ b/fund_id_reference.rb
@@ -6,7 +6,7 @@ require 'nokogiri'
doc = Nokogiri::HTML(open('http://www.fundsupermart.com/main/home/index.svdo'))
-funds = doc.css('select.fundselect option')
+funds = doc.css... | Update fund ID parser due to change on page markup.
|
diff --git a/retort.gemspec b/retort.gemspec
index abc1234..def5678 100644
--- a/retort.gemspec
+++ b/retort.gemspec
@@ -2,18 +2,14 @@ require 'retort/version'
Gem::Specification.new do |s|
- s.name = "retort"
- s.version = Retort::VERSION
- s.authors = ["Marcel Morgan"]
- s.email = ["marcel.morgan@gmail.c... | Update gemspec description and summary to be the same
|
diff --git a/spec/fixtures/jeckle_config.rb b/spec/fixtures/jeckle_config.rb
index abc1234..def5678 100644
--- a/spec/fixtures/jeckle_config.rb
+++ b/spec/fixtures/jeckle_config.rb
@@ -1,31 +1,33 @@-Jeckle::Setup.register(:my_super_api) do |api|
- api.base_uri = 'http://my-super-api.com.br'
- api.headers = { 'Content... | Change the config fixture setup to use the user external DSL. |
diff --git a/spec/support/example_models.rb b/spec/support/example_models.rb
index abc1234..def5678 100644
--- a/spec/support/example_models.rb
+++ b/spec/support/example_models.rb
@@ -20,6 +20,12 @@ end
end
+
+ after do
+ NetSuiteRails::PollTrigger.instance_variable_set('@record_models', [... | Clear record & list cache after each model is torn down
|
diff --git a/pronto-rubocop.gemspec b/pronto-rubocop.gemspec
index abc1234..def5678 100644
--- a/pronto-rubocop.gemspec
+++ b/pronto-rubocop.gemspec
@@ -20,6 +20,8 @@ s.test_files = `git ls-files -- {spec}/*`.split("\n")
s.require_paths = ['lib']
+ s.add_dependency 'rubocop', '~> 0.9.0'
+ s.add_dependency '... | Add pronto and rubocop as dependencies
|
diff --git a/spec/helpers/seeds_helper_spec.rb b/spec/helpers/seeds_helper_spec.rb
index abc1234..def5678 100644
--- a/spec/helpers/seeds_helper_spec.rb
+++ b/spec/helpers/seeds_helper_spec.rb
@@ -0,0 +1,38 @@+require 'rails_helper'
+
+describe SeedsHelper do
+ describe "display_seed_description" do
+ it "no descri... | Add test coverage for Seeds Helper
|
diff --git a/spec/unit/recipes/default_spec.rb b/spec/unit/recipes/default_spec.rb
index abc1234..def5678 100644
--- a/spec/unit/recipes/default_spec.rb
+++ b/spec/unit/recipes/default_spec.rb
@@ -1,7 +1,7 @@ require 'spec_helper'
describe 'openvpn::default' do
- let(:chef_run) { ChefSpec::Runner.new.converge(descr... | Use ChefSpec::SoloRunner instead of ChefSpec::Runner' due to deprecation.
|
diff --git a/lib/_program.rb b/lib/_program.rb
index abc1234..def5678 100644
--- a/lib/_program.rb
+++ b/lib/_program.rb
@@ -42,4 +42,8 @@ end
end
+ def path_is_blocked?
+ next_block_is_solid? or block_is_out_of_path?
+ end
+
end
| Add custom path_is_blocked? method in Program
|
diff --git a/app/helpers/votes_helper.rb b/app/helpers/votes_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/votes_helper.rb
+++ b/app/helpers/votes_helper.rb
@@ -1,25 +1,30 @@ module VotesHelper
+ # vote_controls takes a post and outputs the controls seen at the side
+ # of the post
+ #
+ # it does this ... | Refactor out similar logic in selecting which partial to render
|
diff --git a/app/jobs/application_job.rb b/app/jobs/application_job.rb
index abc1234..def5678 100644
--- a/app/jobs/application_job.rb
+++ b/app/jobs/application_job.rb
@@ -5,15 +5,18 @@ # Base class for all Jobs
class ApplicationJob < ActiveJob::Base
# Copied from ActiveJob::Exceptions, but uses debug log level.
-... | Fix custom ActiveJob::Base.rescue_from after upgrading to Rails 6
|
diff --git a/features/step_definitions/session_steps.rb b/features/step_definitions/session_steps.rb
index abc1234..def5678 100644
--- a/features/step_definitions/session_steps.rb
+++ b/features/step_definitions/session_steps.rb
@@ -1,4 +1,4 @@-Given /^I am (?:a|an) (writer|editor|admin|GDS editor)(?: called "([^"]*)")... | Allow cucumber to login as an importer user.
|
diff --git a/spec/angus/rspec/examples/describe_errors_spec.rb b/spec/angus/rspec/examples/describe_errors_spec.rb
index abc1234..def5678 100644
--- a/spec/angus/rspec/examples/describe_errors_spec.rb
+++ b/spec/angus/rspec/examples/describe_errors_spec.rb
@@ -0,0 +1,64 @@+require 'spec_helper'
+
+require 'angus/rspec/... | Add describe errors matcher specs.
Change-Id: I289ec5ac23a3ea52c8ac11772860173e733b9511
|
diff --git a/spec/rails_admin/config/fields/types/text_spec.rb b/spec/rails_admin/config/fields/types/text_spec.rb
index abc1234..def5678 100644
--- a/spec/rails_admin/config/fields/types/text_spec.rb
+++ b/spec/rails_admin/config/fields/types/text_spec.rb
@@ -2,12 +2,20 @@
describe RailsAdmin::Config::Fields::Types:... | Fix order-dependent failure in spec
|
diff --git a/spec/support/lib/generators/test_app_generator.rb b/spec/support/lib/generators/test_app_generator.rb
index abc1234..def5678 100644
--- a/spec/support/lib/generators/test_app_generator.rb
+++ b/spec/support/lib/generators/test_app_generator.rb
@@ -21,6 +21,10 @@ generate 'hydra:head', '-f'
end
+ ... | Set up redis.yml first so that subsequent generators don't fail
|
diff --git a/spec/unit/facter/haveged_startup_provider_spec.rb b/spec/unit/facter/haveged_startup_provider_spec.rb
index abc1234..def5678 100644
--- a/spec/unit/facter/haveged_startup_provider_spec.rb
+++ b/spec/unit/facter/haveged_startup_provider_spec.rb
@@ -9,14 +9,14 @@ Facter.clear
}
- describe 'haveged_... | Use context in fact tests
|
diff --git a/config/schedule.rb b/config/schedule.rb
index abc1234..def5678 100644
--- a/config/schedule.rb
+++ b/config/schedule.rb
@@ -1,3 +1,6 @@+# Force manual loading of rails application to get all env variables from dotenv-rails when running whenever cmd
+require File.expand_path('../environment', __FILE__)
+
... | Fix environment variables loading when running whenever
|
diff --git a/app/models/feedback.rb b/app/models/feedback.rb
index abc1234..def5678 100644
--- a/app/models/feedback.rb
+++ b/app/models/feedback.rb
@@ -3,4 +3,23 @@ validates_presence_of :rating
belongs_to :sender, class_name: "User"
belongs_to :recipient, class_name: "User"
+
+ RESET_POINTS = 0
+ POINTS_ADJ... | Add helper methods adjusting user points
|
diff --git a/lib/analyze_student_attendance.rb b/lib/analyze_student_attendance.rb
index abc1234..def5678 100644
--- a/lib/analyze_student_attendance.rb
+++ b/lib/analyze_student_attendance.rb
@@ -36,8 +36,15 @@ select_by_column(column, value).size
end
+ def total
+ @total ||= data.length
+ end
+
def c... | Print out percentages for counts
|
diff --git a/config/initializers/mobile_phone.rb b/config/initializers/mobile_phone.rb
index abc1234..def5678 100644
--- a/config/initializers/mobile_phone.rb
+++ b/config/initializers/mobile_phone.rb
@@ -1,5 +1,5 @@ MOBILE_GATEWAYS = {
- 'AT&T' => '%s@mobile.att.net',
+ 'AT&T' => '%s@txt.att.net',
'CellularOne' =... | Update AT&T mobile txt gateway address.
|
diff --git a/app/models/review_period.rb b/app/models/review_period.rb
index abc1234..def5678 100644
--- a/app/models/review_period.rb
+++ b/app/models/review_period.rb
@@ -1,7 +1,4 @@ class ReviewPeriod
- def initialize
- end
-
def send_closure_notifications
if ENV['REVIEW_PERIOD'] == 'CLOSED'
partici... | Remove initializer declaration (not needed)
|
diff --git a/app/models/search_record.rb b/app/models/search_record.rb
index abc1234..def5678 100644
--- a/app/models/search_record.rb
+++ b/app/models/search_record.rb
@@ -11,7 +11,7 @@ #
class SearchRecord < ActiveRecord::Base
- STORAGE_LIFETIME = 30.days
+ STORAGE_LIFETIME = 14.days
has_many :search_record... | Reduce SearchRecord STORAGE_LIFETIME to 14 days |
diff --git a/lib/em/mqtts/broker_connection.rb b/lib/em/mqtts/broker_connection.rb
index abc1234..def5678 100644
--- a/lib/em/mqtts/broker_connection.rb
+++ b/lib/em/mqtts/broker_connection.rb
@@ -9,7 +9,7 @@ @client_address = client_address
@client_port = client_port
@gateway_handler = gateway_handler
- ... | Reset first topic id to 1
|
diff --git a/lib/perpetuity/data_injectable.rb b/lib/perpetuity/data_injectable.rb
index abc1234..def5678 100644
--- a/lib/perpetuity/data_injectable.rb
+++ b/lib/perpetuity/data_injectable.rb
@@ -17,10 +17,8 @@ id = args.pop
object.define_singleton_method(:id) { id }
else
- object.instan... | Define method rather than using instance_exec
|
diff --git a/lib/spree_billing_sisow/engine.rb b/lib/spree_billing_sisow/engine.rb
index abc1234..def5678 100644
--- a/lib/spree_billing_sisow/engine.rb
+++ b/lib/spree_billing_sisow/engine.rb
@@ -1,6 +1,7 @@ module SpreeBillingSisow
class Engine < Rails::Engine
require 'spree/core'
+ require 'sisow'
is... | Make sure sisow is loaded. Checkout and admin wil otherwise flunk.
|
diff --git a/lib/thinking_sphinx/core/index.rb b/lib/thinking_sphinx/core/index.rb
index abc1234..def5678 100644
--- a/lib/thinking_sphinx/core/index.rb
+++ b/lib/thinking_sphinx/core/index.rb
@@ -7,10 +7,11 @@ end
def initialize(reference, options = {})
- @reference = reference.to_sym
- @docinfo = :ex... | Use UTF-8 as the default charset (same as previous Thinking Sphinx versions).
|
diff --git a/lib/vidibus/user/warden/helper.rb b/lib/vidibus/user/warden/helper.rb
index abc1234..def5678 100644
--- a/lib/vidibus/user/warden/helper.rb
+++ b/lib/vidibus/user/warden/helper.rb
@@ -37,6 +37,7 @@ end
# Returns current host.
+ # TODO: return forwarded host, if proxied
de... | Add note about forwarded hosts |
diff --git a/init.rb b/init.rb
index abc1234..def5678 100644
--- a/init.rb
+++ b/init.rb
@@ -1,2 +1,2 @@ # Get long stack traces for easier debugging; you'll thank me later.
-Rails.backtrace_cleaner.remove_silencers!+Rails.backtrace_cleaner.remove_silencers! if Rails.respond_to?(:backtrace_cleaner)
| [^] Fix undefined method 'backtrace_cleaner' for Rails:Module on rails 2.0.2
|
diff --git a/config/initializers/90_roll_tape.rb b/config/initializers/90_roll_tape.rb
index abc1234..def5678 100644
--- a/config/initializers/90_roll_tape.rb
+++ b/config/initializers/90_roll_tape.rb
@@ -1,5 +1,3 @@-require 'rack/streaming_proxy'
-
if defined? Camerasink::BASEDIR
camera = Camera.find_by_name(:test... | Remove an errant rack-streaming-proxy require
|
diff --git a/config/initializers/registration.rb b/config/initializers/registration.rb
index abc1234..def5678 100644
--- a/config/initializers/registration.rb
+++ b/config/initializers/registration.rb
@@ -7,11 +7,17 @@ "TODO"
end
+account_path = -> do
+ Neighborly::Balanced::Bankaccount::Engine.
+ routes.url_h... | Add to payment engines register the account path
|
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -1,2 +1,12 @@ module ApplicationHelper
+ # Get the gravatar picture of a user.
+ # This take an user object as paramet... | Create gravatar_for helper for get avatars pictures
This helper can be used in views for get gravatars pictures linked with the user email. Optionally can pass a size for a better picture quality. |
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -14,6 +14,6 @@ end
def current_year
- DateTime.now.year
+ Date.today.year
end
end
| Use Date instead of DateTime
|
diff --git a/app/helpers/hub/request_helper.rb b/app/helpers/hub/request_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/hub/request_helper.rb
+++ b/app/helpers/hub/request_helper.rb
@@ -1,11 +1,5 @@ module Hub
module RequestHelper
- def wechat_request?
- request.user_agent.downcase.match(/micromes... | Move back wechat_request to applications.
|
diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb
index abc1234..def5678 100644
--- a/app/mailers/application_mailer.rb
+++ b/app/mailers/application_mailer.rb
@@ -1,7 +1,8 @@ # frozen_string_literal: true
class ApplicationMailer < ActionMailer::Base
- default from: "dashboard@#{ENV... | Set a default reply-to address
|
diff --git a/utils/defcon.rb b/utils/defcon.rb
index abc1234..def5678 100644
--- a/utils/defcon.rb
+++ b/utils/defcon.rb
@@ -0,0 +1,29 @@+#!/usr/bin/env ruby -wKU
+
+$:.unshift(File.expand_path("../../lib", __FILE__))
+
+require 'fileutils'
+require 'whois'
+require 'json'
+
+def convert(type)
+ defs = Whois::Server.d... | Add utility to convert existing definitions to JSON |
diff --git a/db/migrate/20150518151555_add_geocoding_batching.rb b/db/migrate/20150518151555_add_geocoding_batching.rb
index abc1234..def5678 100644
--- a/db/migrate/20150518151555_add_geocoding_batching.rb
+++ b/db/migrate/20150518151555_add_geocoding_batching.rb
@@ -0,0 +1,16 @@+# encoding: utf-8
+
+class AddBatchedT... | Add migration to store batched field
Targetted at hi-res geocodings
|
diff --git a/app/presenters/field_presenter.rb b/app/presenters/field_presenter.rb
index abc1234..def5678 100644
--- a/app/presenters/field_presenter.rb
+++ b/app/presenters/field_presenter.rb
@@ -32,7 +32,7 @@
def input_defaults(options)
data = input_data_defaults(options.fetch(:data, {}))
- options.revers... | Allow for an empty choice if field is not required
|
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
@@ -13,5 +13,9 @@ can [ :create, :update ], Lesson do |lesson|
lesson.user == user
end
+
+ can [ :create ], Blog do |blog|
+ blog.user == user
+ end... | Update Ability for Blog Create
Update the Ability model to handle create Blog.
|
diff --git a/SimpleAuth.podspec b/SimpleAuth.podspec
index abc1234..def5678 100644
--- a/SimpleAuth.podspec
+++ b/SimpleAuth.podspec
@@ -12,6 +12,8 @@ s.dependency 'cocoa-oauth'
s.dependency 'SAMCategories'
+ s.public_header_files = 'SimpleAuth/SimpleAuth.h'
+
s.ios.deployment_target = '6.0'
s.ios.fra... | Hide headers that API consumers don't need. |
diff --git a/lib/jefferies_tube/capistrano/s3_assets.rb b/lib/jefferies_tube/capistrano/s3_assets.rb
index abc1234..def5678 100644
--- a/lib/jefferies_tube/capistrano/s3_assets.rb
+++ b/lib/jefferies_tube/capistrano/s3_assets.rb
@@ -1,5 +1,5 @@-task :precompile_and_upload_assets do
- on roles(:assets_precompiler) do
+... | Use asset_roles to know which server to have upload the assets
|
diff --git a/lib/stateflow/persistence/active_record.rb b/lib/stateflow/persistence/active_record.rb
index abc1234..def5678 100644
--- a/lib/stateflow/persistence/active_record.rb
+++ b/lib/stateflow/persistence/active_record.rb
@@ -9,7 +9,7 @@
module ClassMethods
def add_scope(state)
- scope ... | Fix ActiveRecord deprecation warning from old-school scope usage.
Removes annoying deprecation warnings from Rails output:
```
DEPRECATION WARNING: Using #scope without passing a callable object is deprecated. For example `scope :red, where(color: 'red')` should be changed to `scope :red, -> { where(color: 'red') }`.... |
diff --git a/actionversion.gemspec b/actionversion.gemspec
index abc1234..def5678 100644
--- a/actionversion.gemspec
+++ b/actionversion.gemspec
@@ -18,6 +18,7 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
+ spec.required_ruby_version = '>= 1.9.3'
spec.add_d... | Add ruby version support to gemfile
|
diff --git a/files/default/ohai_plugins/pci.rb b/files/default/ohai_plugins/pci.rb
index abc1234..def5678 100644
--- a/files/default/ohai_plugins/pci.rb
+++ b/files/default/ohai_plugins/pci.rb
@@ -21,10 +21,13 @@ pci2 Mash.new
# use the more verbose lspci output:
# devices are split by double newlines
- ... | Extend collected information and fix regex for scan
|
diff --git a/announcements.gemspec b/announcements.gemspec
index abc1234..def5678 100644
--- a/announcements.gemspec
+++ b/announcements.gemspec
@@ -20,7 +20,7 @@
s.add_development_dependency "rspec"
- s.add_runtime_dependency "rails", "~> 3.1"
+ s.add_runtime_dependency "rails", ">= 3.1.0"
s.add_runtime_dep... | Use more permissive version constraint
|
diff --git a/lib/arrthorizer/group.rb b/lib/arrthorizer/group.rb
index abc1234..def5678 100644
--- a/lib/arrthorizer/group.rb
+++ b/lib/arrthorizer/group.rb
@@ -13,7 +13,12 @@ Role.register(self)
end
- def applies_to_user?(user, context)
+ def applies_to_user?(user, _)
+ is_member?(user)
+ en... | Add level of indirection to ease overriding in Groups
The applies_to_user? function is used internally by Arrthorizer, but
if developers want to override the default behavior, this
applies_to_user function makes no semantic sense (for example, it takes
a superfluous parameter). The is_member? function makes semantic s... |
diff --git a/lib/default_variables.rb b/lib/default_variables.rb
index abc1234..def5678 100644
--- a/lib/default_variables.rb
+++ b/lib/default_variables.rb
@@ -0,0 +1,35 @@+module RailsReroute
+ DEFAULT_VARIABLES = Set.new(%W[
+ CONTENT_TYPE
+ CONTENT_LENGTH
+ HTTPS
+ AUTH_TYPE
+ HTTP_COOKIE
+ GATEW... | Add constants to store the default variables
|
diff --git a/handlers/other/deregister-node.rb b/handlers/other/deregister-node.rb
index abc1234..def5678 100644
--- a/handlers/other/deregister-node.rb
+++ b/handlers/other/deregister-node.rb
@@ -0,0 +1,14 @@+#! /usr/bin/env ruby
+
+require 'json'
+require 'socket'
+
+hostname = 'localhost'
+port = '3030'
+socket_inpu... | Add handler to deregister sensu node from dashboard upon shutdown
|
diff --git a/be_valid_asset.gemspec b/be_valid_asset.gemspec
index abc1234..def5678 100644
--- a/be_valid_asset.gemspec
+++ b/be_valid_asset.gemspec
@@ -7,7 +7,7 @@ gem.name = "be_valid_asset"
gem.version = BeValidAsset::VERSION
gem.authors = ["Alex Tomlins", "Attila Gyorffy", "Ben Brincker... | Switch back to the organisation email address.
|
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
@@ -3,6 +3,6 @@
def initialize(user)
user ||= User.new
- can :manage, Club, :user_id => user.id
+ can :update, Club, :user_id => user.id
end
end
| Update Ability for Club Update (vs Manage)
Update the Ability model to change the manage capability to update since
a User will only ever update the Club model.
|
diff --git a/app/models/section.rb b/app/models/section.rb
index abc1234..def5678 100644
--- a/app/models/section.rb
+++ b/app/models/section.rb
@@ -20,4 +20,8 @@ end
false
end
+
+ def sort_periods
+
+ end
end | Add empty function to sort periods in Section model
|
diff --git a/test/unit/multi_sender_test.rb b/test/unit/multi_sender_test.rb
index abc1234..def5678 100644
--- a/test/unit/multi_sender_test.rb
+++ b/test/unit/multi_sender_test.rb
@@ -0,0 +1,56 @@+# frozen_string_literal: true
+
+require_relative '../../lib/invoca/utils/multi_sender.rb'
+require_relative '../test_help... | Add tests for MultiSender class
|
diff --git a/spec/classes/dependencies_spec.rb b/spec/classes/dependencies_spec.rb
index abc1234..def5678 100644
--- a/spec/classes/dependencies_spec.rb
+++ b/spec/classes/dependencies_spec.rb
@@ -13,4 +13,8 @@ it { should include_class('rbenv::dependencies::ubuntu') }
end
+ context 'CentOS' do
+ let(:fact... | Add very simple spec for detection of CentOS dependency class
|
diff --git a/spec/factories/theorem_factory.rb b/spec/factories/theorem_factory.rb
index abc1234..def5678 100644
--- a/spec/factories/theorem_factory.rb
+++ b/spec/factories/theorem_factory.rb
@@ -9,6 +9,7 @@ parent_onto = create :distributed_ontology, :with_versioned_children
theorem.ontology = parent... | Fix Theorem factory not setting a locid.
|
diff --git a/spec/support/controller_macros.rb b/spec/support/controller_macros.rb
index abc1234..def5678 100644
--- a/spec/support/controller_macros.rb
+++ b/spec/support/controller_macros.rb
@@ -0,0 +1,24 @@+# https://github.com/plataformatec/devise/wiki/How-To:-Test-controllers-with-Rails-3-and-4-(and-RSpec)
+
+modu... | Prepare for writing movings request spec
|
diff --git a/activesupport.gemspec b/activesupport.gemspec
index abc1234..def5678 100644
--- a/activesupport.gemspec
+++ b/activesupport.gemspec
@@ -1,4 +1,4 @@-version = File.read(File.expand_path('../../RAILS_VERSION', __FILE__)).strip
+version = '4.2.0.alpha'
Gem::Specification.new do |s|
s.platform = Gem::... | Fix gemspec version at 4.2.0.alpha |
diff --git a/add_user_to_sqlite.rb b/add_user_to_sqlite.rb
index abc1234..def5678 100644
--- a/add_user_to_sqlite.rb
+++ b/add_user_to_sqlite.rb
@@ -1,17 +1,17 @@ # -*- coding: utf-8 -*-
require 'sqlite3'
-
-@database_yml = ARGV[0]
+require 'digest/sha1'
@nomnichi_db = SQLite3::Database.new("nomnichi.sqlite3")
+
... | Fix bug in script to add user to sqlite3
|
diff --git a/tasks/ffi.rake b/tasks/ffi.rake
index abc1234..def5678 100644
--- a/tasks/ffi.rake
+++ b/tasks/ffi.rake
@@ -4,13 +4,12 @@ `swig -xml -o ioctl_wrap.xml -I/usr/include swig/ioctl.i`
`swig -xml -o input_wrap.xml -I/usr/include swig/input.i`
- `ffi-gen ioctl_wrap.xml lib/linux_input/generated/... | Fix permissions of generated files
|
diff --git a/looksee.gemspec b/looksee.gemspec
index abc1234..def5678 100644
--- a/looksee.gemspec
+++ b/looksee.gemspec
@@ -6,7 +6,7 @@ s.version = Looksee::VERSION
s.authors = ["George Ogata"]
s.email = ["george.ogata@gmail.com"]
- s.date = Date.today.strftime('%Y-%m-%d')
+ s.date = Time.now.strftime('%Y-%m... | Use Time.now instead of Date.today in gemspec.
Date.today requires the date library, which is not always loaded by
rubygems.
|
diff --git a/gem_template.gemspec b/gem_template.gemspec
index abc1234..def5678 100644
--- a/gem_template.gemspec
+++ b/gem_template.gemspec
@@ -2,8 +2,8 @@ require File.expand_path('../lib/gem_template/version', __FILE__)
Gem::Specification.new do |gem|
- gem.add_development_dependency 'maruku', '~> 0.6'
gem.ad... | Replace maruku with rdiscount for Markdown library
|
diff --git a/app/models/concerns/adminable/resource_concern.rb b/app/models/concerns/adminable/resource_concern.rb
index abc1234..def5678 100644
--- a/app/models/concerns/adminable/resource_concern.rb
+++ b/app/models/concerns/adminable/resource_concern.rb
@@ -4,7 +4,11 @@
def adminable
%i(title name email... | Refactor resource concern adminable method
|
diff --git a/Casks/firefox-aurora.rb b/Casks/firefox-aurora.rb
index abc1234..def5678 100644
--- a/Casks/firefox-aurora.rb
+++ b/Casks/firefox-aurora.rb
@@ -1,8 +1,8 @@ class FirefoxAurora < Cask
- version '35.0a2'
- sha256 'c27899ebdb9d3b44ccac8ad904a03b421b65208e66937c62d795aab1d0014999'
+ version :latest
+ sha25... | Remove sha check and version from FirefoxAurora
Sha is likely to change without notice even for the same dmg filename (was currently broken because of this) |
diff --git a/Casks/send_to_kindle.rb b/Casks/send_to_kindle.rb
index abc1234..def5678 100644
--- a/Casks/send_to_kindle.rb
+++ b/Casks/send_to_kindle.rb
@@ -0,0 +1,7 @@+class Send_to_kindle < Cask
+ url 'http://s3.amazonaws.com/sendtokindle/SendToKindleForMac-installer-v1.0.0.218.pkg'
+ homepage 'http://www.amazon.co... | Send to kindle recipe added.
|
diff --git a/lib/casino_core/helper/tickets.rb b/lib/casino_core/helper/tickets.rb
index abc1234..def5678 100644
--- a/lib/casino_core/helper/tickets.rb
+++ b/lib/casino_core/helper/tickets.rb
@@ -1,8 +1,15 @@+require 'securerandom'
+
module CASinoCore
module Helper
module Tickets
+
+ ALLOWED_TICKET_STRIN... | Use SecureRandom to generate ticket strings
|
diff --git a/lib/catsocket_client/publisher.rb b/lib/catsocket_client/publisher.rb
index abc1234..def5678 100644
--- a/lib/catsocket_client/publisher.rb
+++ b/lib/catsocket_client/publisher.rb
@@ -4,7 +4,8 @@ class Publisher < Struct.new(:url, :api_key)
def publish(channel, data)
- RestClient.post(url, gu... | Convert data to json only if it is not already a string
|
diff --git a/lib/convection/model/cloudfile.rb b/lib/convection/model/cloudfile.rb
index abc1234..def5678 100644
--- a/lib/convection/model/cloudfile.rb
+++ b/lib/convection/model/cloudfile.rb
@@ -9,7 +9,7 @@ # DSL for Cloudfile
##
module Cloudfile
- extend DSL::Helpers
+ include DSL::Helpers
... | Clean up and expand Helpers modules
|
diff --git a/lib/llt/diff/parser/reportable.rb b/lib/llt/diff/parser/reportable.rb
index abc1234..def5678 100644
--- a/lib/llt/diff/parser/reportable.rb
+++ b/lib/llt/diff/parser/reportable.rb
@@ -4,10 +4,10 @@ include HashContainable
include Comparable
- attr_reader :total
+ attr_reader :id, :... | Fix id handling in Reportable
|
diff --git a/lib/oauth2/strategy/web_server.rb b/lib/oauth2/strategy/web_server.rb
index abc1234..def5678 100644
--- a/lib/oauth2/strategy/web_server.rb
+++ b/lib/oauth2/strategy/web_server.rb
@@ -13,7 +13,14 @@ # endpoints.
def get_access_token(code, options = {})
response = @client.request(:post... | Fix parsing of the access_token response with ActiveRecord::JSON.
The JSON parser that is provided by ActiveRecord will not report an
exception, causing the string not to be parsed; this in turn will cause a
ripple-effect through the code (and indeed specs will fail).
With this change, the params value is guaranteed ... |
diff --git a/recipes/agent_windows.rb b/recipes/agent_windows.rb
index abc1234..def5678 100644
--- a/recipes/agent_windows.rb
+++ b/recipes/agent_windows.rb
@@ -9,7 +9,7 @@ download_url = node['go']['agent']['download_url']
if !download_url
major_ver = node['go']['version'].split('-', 2).first
- download_url = "ht... | Fix download_url for windows agent installation
The download URL for the windows agent installer is using a different URL pattern than is currently
in use on the thoughtworks website. This change updates to use the current pattern. The URL for the
server install seems to be fine.
|
diff --git a/mubi.rb b/mubi.rb
index abc1234..def5678 100644
--- a/mubi.rb
+++ b/mubi.rb
@@ -12,7 +12,7 @@ end
def get_runtime_for_movie(movie_id)
- doc = Nokogiri::HTML RestClient.get "https://mubi.com/films/#{id}"
+ doc = Nokogiri::HTML RestClient.get "https://mubi.com/films/#{movie_id}"
doc.css('.film-show... | Add method for calculating total runtime
|
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
@@ -0,0 +1,32 @@+class Ability
+ include CanCan::Ability
+
+ def initialize(user)
+ # Define abilities for the passed in user here. For example:
+ #
+ # user ||= ... | Use the cancancan gem to restricts what resources a given user is allowed to access.
|
diff --git a/Casks/zip-cleaner.rb b/Casks/zip-cleaner.rb
index abc1234..def5678 100644
--- a/Casks/zip-cleaner.rb
+++ b/Casks/zip-cleaner.rb
@@ -1,7 +1,7 @@ class ZipCleaner < Cask
url 'http://roger-jolly.nl/software/downloads/zipcleaner/ZipCleaner.zip'
homepage 'http://roger-jolly.nl/software/#zipcleaner'
- ver... | Use `latest` version scheme per @NanoXD’s feedback |
diff --git a/Library/Homebrew/build_environment.rb b/Library/Homebrew/build_environment.rb
index abc1234..def5678 100644
--- a/Library/Homebrew/build_environment.rb
+++ b/Library/Homebrew/build_environment.rb
@@ -28,8 +28,16 @@ receiver.instance_eval(&proc)
end
+ def marshal_dump
+ @settings
+ end
+
+ de... | Define 1.8 marshal hooks in terms of 1.9+ marshal hooks
|
diff --git a/NFJTableViewSectionController.podspec b/NFJTableViewSectionController.podspec
index abc1234..def5678 100644
--- a/NFJTableViewSectionController.podspec
+++ b/NFJTableViewSectionController.podspec
@@ -1,14 +1,14 @@ Pod::Spec.new do |s|
s.name = 'NFJTableViewSectionController'
s.version = ... | Fix a SyntaxError of PodSpec |
diff --git a/examples/manual_entry_definition.rb b/examples/manual_entry_definition.rb
index abc1234..def5678 100644
--- a/examples/manual_entry_definition.rb
+++ b/examples/manual_entry_definition.rb
@@ -0,0 +1,14 @@+#!/usr/bin/env ruby -rubygems
+
+require File.join(File.dirname(__FILE__), 'authentication')
+
+# defi... | Add manual entry definition example
|
diff --git a/uchiwa.gemspec b/uchiwa.gemspec
index abc1234..def5678 100644
--- a/uchiwa.gemspec
+++ b/uchiwa.gemspec
@@ -21,6 +21,7 @@ spec.require_paths = ['lib']
spec.add_development_dependency 'bundler', '~> 1.7'
+ spec.add_development_dependency 'pry'
spec.add_development_dependency 'rake', '~> 10.0'
... | Add pry as development dependency
|
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -1,6 +1,10 @@ module ApplicationHelper
def poster_url(movie, size: 'w342')
- "#{configuration.base_url}#{size}#{movie.... | Add placeholder for missing images
|
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -1,4 +1,18 @@ module ApplicationHelper
+ # Define a correct base URL.
+ #
+ # To ease the transition between environments... | Add helper to get correct base URL
|
diff --git a/ruby-sun-times.gemspec b/ruby-sun-times.gemspec
index abc1234..def5678 100644
--- a/ruby-sun-times.gemspec
+++ b/ruby-sun-times.gemspec
@@ -3,20 +3,20 @@
require 'sun_times/version'
-Gem::Specification.new do |s|
- s.name = 'ruby-sun-times'
- s.summary = 'Calculate sunrise and su... | Use a more descriptive variable name
|
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
@@ -12,6 +12,7 @@ if JUMU_ROUND == 1
can :create, Performance # TODO: Check that user has access to selected competition
can :manage, Performance, comp... | Allow read access to all participants, limiting to own competitions doesn't seem to work
|
diff --git a/app/models/edition.rb b/app/models/edition.rb
index abc1234..def5678 100644
--- a/app/models/edition.rb
+++ b/app/models/edition.rb
@@ -10,7 +10,7 @@ field :title, :type => String
field :created_at, :type => DateTime, :default => lambda { Time.now }
- accepts_nested_attributes_for :parts
+ accepts... | Update accepting of nested attributes to allow us to remove parts
|
diff --git a/govuk_frontend_toolkit.gemspec b/govuk_frontend_toolkit.gemspec
index abc1234..def5678 100644
--- a/govuk_frontend_toolkit.gemspec
+++ b/govuk_frontend_toolkit.gemspec
@@ -11,6 +11,7 @@ s.homepage = 'https://github.com/alphagov/govuk_frontend_toolkit'
s.add_dependency "rails", ">= 3.1.0"
+ s.ad... | Add sass 3.2 as a dependency
|
diff --git a/bookyt_salary.gemspec b/bookyt_salary.gemspec
index abc1234..def5678 100644
--- a/bookyt_salary.gemspec
+++ b/bookyt_salary.gemspec
@@ -12,7 +12,7 @@ s.summary = "Salary plugin for bookyt"
s.description = "This plugin extends bookyt with Salary functionality."
- s.files = `git ls-files... | Include db directory in gem.
|
diff --git a/webtail.gemspec b/webtail.gemspec
index abc1234..def5678 100644
--- a/webtail.gemspec
+++ b/webtail.gemspec
@@ -18,6 +18,6 @@ gem.add_dependency "eventmachine"
gem.add_dependency "em-websocket"
gem.add_dependency "sinatra"
- gem.add_dependency "slop"
+ gem.add_dependency "slop", "~> 3.6"
gem.a... | Fix slop version to 3.6
|
diff --git a/html-pipeline.gemspec b/html-pipeline.gemspec
index abc1234..def5678 100644
--- a/html-pipeline.gemspec
+++ b/html-pipeline.gemspec
@@ -15,8 +15,8 @@ gem.test_files = gem.files.grep(%r{^test})
gem.require_paths = ["lib"]
- gem.add_dependency "nokogiri", RUBY_VERSION < "1.9.2" ? [">= 1.4", "... | Remove RUBY_VERSION conditionals from gemspec
Remove the useless conditionals added in ae1f3c828cccd2b5ebf0678ea3edc2bcca10c9f3
since gemspec is turned into a static one at gem publish time, so the
version constraints will be adjusted to whatever Ruby version the gem
was *published* with, not the one that will eventua... |
diff --git a/filewatcher.gemspec b/filewatcher.gemspec
index abc1234..def5678 100644
--- a/filewatcher.gemspec
+++ b/filewatcher.gemspec
@@ -25,5 +25,5 @@ s.add_development_dependency 'rspec', '~> 3.8'
s.add_development_dependency 'rubocop', '~> 1.3.0'
s.add_development_dependency 'rubocop-performance', '~> 1.5... | Update `rubocop-rspec` to compatible with RuboCop 1.0 version
|
diff --git a/config/initializers/i18n.rb b/config/initializers/i18n.rb
index abc1234..def5678 100644
--- a/config/initializers/i18n.rb
+++ b/config/initializers/i18n.rb
@@ -1,5 +1,9 @@ I18n.backend.class.send(:include, I18n::Backend::Fallbacks)
I18n.fallbacks.map('ru' => 'en')
+I18n.fallbacks.map('nl' => 'en')
+I18n.f... | Add more fallback rules
(becuse for some reason the fallbacks defaulted to russia, even though it was not the default_locale)
|
diff --git a/lib/core_ext/hash/require_keys.rb b/lib/core_ext/hash/require_keys.rb
index abc1234..def5678 100644
--- a/lib/core_ext/hash/require_keys.rb
+++ b/lib/core_ext/hash/require_keys.rb
@@ -1,8 +1,5 @@ class Hash
def require_keys(*valid_keys)
- unknown_keys = keys - [valid_keys].flatten
- raise(Argument... | Allow keys in hash that aren't required.
|
diff --git a/wright.gemspec b/wright.gemspec
index abc1234..def5678 100644
--- a/wright.gemspec
+++ b/wright.gemspec
@@ -14,8 +14,8 @@ gem.require_paths = ['lib']
gem.version = Wright::VERSION
- gem.add_development_dependency 'simplecov'
- gem.add_development_dependency 'rdoc'
- gem.add_development_depe... | Add gem versions to Gemfile
|
diff --git a/bundler-patch.gemspec b/bundler-patch.gemspec
index abc1234..def5678 100644
--- a/bundler-patch.gemspec
+++ b/bundler-patch.gemspec
@@ -19,7 +19,7 @@ spec.executables = ['bundler-patch']
spec.require_paths = ['lib']
- spec.add_dependency 'bundler-advise', '~> 1.1', '>= 1.1.2'
+ spec.add_dependen... | Use bundle-advise 1.1.5 to obey BUNDLE_GEMFILE
Updates travis matrix as well.
|
diff --git a/rack-protection/spec/frame_options_spec.rb b/rack-protection/spec/frame_options_spec.rb
index abc1234..def5678 100644
--- a/rack-protection/spec/frame_options_spec.rb
+++ b/rack-protection/spec/frame_options_spec.rb
@@ -3,7 +3,7 @@ describe Rack::Protection::FrameOptions do
it_behaves_like "any rack app... | Fix typo in FrameOptions example description
|
diff --git a/simple_display.gemspec b/simple_display.gemspec
index abc1234..def5678 100644
--- a/simple_display.gemspec
+++ b/simple_display.gemspec
@@ -8,9 +8,9 @@ spec.version = SimpleDisplay::VERSION
spec.authors = ["Marc Riera"]
spec.email = ["mrc2407@gmail.com"]
- spec.description = ... | Add missing data in gemspec
|
diff --git a/app/models/game.rb b/app/models/game.rb
index abc1234..def5678 100644
--- a/app/models/game.rb
+++ b/app/models/game.rb
@@ -6,19 +6,19 @@
# takes in an array of clues
# if there are less than 25 clues
- def generate_board(clues)
+ def generate_board(board_size, clues)
clues.shuffle!
- if c... | Add board_size to the parameters for generate_baord
|
diff --git a/SMCalloutView.podspec b/SMCalloutView.podspec
index abc1234..def5678 100644
--- a/SMCalloutView.podspec
+++ b/SMCalloutView.podspec
@@ -10,7 +10,7 @@ s.homepage = "https://github.com/nfarina/calloutview"
s.license = 'Apache License, Version 2.0'
s.author = { "Nick Farina" => "nfarina... | Update podspec in preparation for 1.1 release
|
diff --git a/SVProgressHUD.podspec b/SVProgressHUD.podspec
index abc1234..def5678 100644
--- a/SVProgressHUD.podspec
+++ b/SVProgressHUD.podspec
@@ -14,4 +14,5 @@ s.preserve_paths = 'Demo'
s.framework = 'QuartzCore'
s.resources = 'SVProgressHUD/SVProgressHUD.bundle'
+ s.requires_arc = true
end
| Set podspec's requires_arc to true.
|
diff --git a/config/environments/production.rb b/config/environments/production.rb
index abc1234..def5678 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -1,4 +1,5 @@ uncomment_lines "config/environments/production.rb", /config\.force_ssl = true/
+gsub_file "config/environments... | Fix RuboCop rule violation for STDOUT
|
diff --git a/config/software/oc-chef-pedant.rb b/config/software/oc-chef-pedant.rb
index abc1234..def5678 100644
--- a/config/software/oc-chef-pedant.rb
+++ b/config/software/oc-chef-pedant.rb
@@ -16,7 +16,7 @@
name "oc-chef-pedant"
-default_version "1.0.73"
+default_version "1.0.74"
source git: "git@github.com:... | Update oc pedant to 1.0.74
|
diff --git a/attributes/default.rb b/attributes/default.rb
index abc1234..def5678 100644
--- a/attributes/default.rb
+++ b/attributes/default.rb
@@ -18,6 +18,6 @@ #
default['lvm']['chef-ruby-lvm']['version'] = '0.4.0'
-default['lvm']['chef-ruby-lvm-attrib']['version'] = '0.2.3'
+default['lvm']['chef-ruby-lvm-attrib'... | Update the attributes gem version from 0.2.3 to 0.2.5
Supports RHEL 7.6 |
diff --git a/spec/ar_spec_helper.rb b/spec/ar_spec_helper.rb
index abc1234..def5678 100644
--- a/spec/ar_spec_helper.rb
+++ b/spec/ar_spec_helper.rb
@@ -12,7 +12,11 @@ end
class Tag < ActiveRecord::Base
- has_and_belongs_to_many :albums, :order=>'id DESC'
+ if ActiveRecord.respond_to?(:version) # Rails 4+
+ has... | Make specs run on Rails 3 and Rails 4 (no code changes)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.