diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/lib/generators/rafters/component/component_generator.rb b/lib/generators/rafters/component/component_generator.rb
index abc1234..def5678 100644
--- a/lib/generators/rafters/component/component_generator.rb
+++ b/lib/generators/rafters/component/component_generator.rb
@@ -15,6 +15,8 @@
def create_gitkee... | Add .gitkeeps for stylesheet and javascript directories
|
diff --git a/lib/generators/ruby_rabbitmq_janus/install_generator.rb b/lib/generators/ruby_rabbitmq_janus/install_generator.rb
index abc1234..def5678 100644
--- a/lib/generators/ruby_rabbitmq_janus/install_generator.rb
+++ b/lib/generators/ruby_rabbitmq_janus/install_generator.rb
@@ -44,6 +44,9 @@
# Add initi... | Add to install generators default_request action
|
diff --git a/action_args.gemspec b/action_args.gemspec
index abc1234..def5678 100644
--- a/action_args.gemspec
+++ b/action_args.gemspec
@@ -18,7 +18,9 @@ s.summary = 'Controller action arguments parameterizer for Rails 4+ & Ruby 2.0+'
s.description = 'Rails plugin gem that supports Merbish style controller ac... | Exclude test files from the gem package
|
diff --git a/lib/chef_zero/solr/query/regexpable_query.rb b/lib/chef_zero/solr/query/regexpable_query.rb
index abc1234..def5678 100644
--- a/lib/chef_zero/solr/query/regexpable_query.rb
+++ b/lib/chef_zero/solr/query/regexpable_query.rb
@@ -21,8 +21,8 @@ end
DEFAULT_FIELD = "text"
- WORD_CHARA... | Fix scary search behavior on terms containing dash character
|
diff --git a/test/test_async.rb b/test/test_async.rb
index abc1234..def5678 100644
--- a/test/test_async.rb
+++ b/test/test_async.rb
@@ -5,7 +5,7 @@ describe 'async operations' do
it 'can runs queries async' do
rows = []
- pool = 3.times.map.with_index {|n| Swift.setup n, Swift::DB::Postgres,... | Use the same db other tests use.
|
diff --git a/spec/flipper/adapters/active_record_spec.rb b/spec/flipper/adapters/active_record_spec.rb
index abc1234..def5678 100644
--- a/spec/flipper/adapters/active_record_spec.rb
+++ b/spec/flipper/adapters/active_record_spec.rb
@@ -45,4 +45,16 @@ end
it_should_behave_like 'a flipper adapter'
+
+ describe '... | Add spec to demonstrate that disabled features are not included in get_all
|
diff --git a/app/helpers/mapit_helper.rb b/app/helpers/mapit_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/mapit_helper.rb
+++ b/app/helpers/mapit_helper.rb
@@ -14,4 +14,8 @@ end
end
+ def link_to_infowindow(text, url, id, options => {})
+ link_to text, url, options.merge({:onclick => "infoWi... | Add a link_to_infowindow helper method
|
diff --git a/spec/db_spec_helper.rb b/spec/db_spec_helper.rb
index abc1234..def5678 100644
--- a/spec/db_spec_helper.rb
+++ b/spec/db_spec_helper.rb
@@ -6,6 +6,10 @@ ActiveRecord::Base.logger = Logger.new(logfile) if defined?(ActiveRecord::Base)
db_config = YAML.load_file('config/database.yml')['test']
+
+host = db_... | Check before accidentally blowing away a shared database
|
diff --git a/spec/features/admin/products/search_for_product_spec.rb b/spec/features/admin/products/search_for_product_spec.rb
index abc1234..def5678 100644
--- a/spec/features/admin/products/search_for_product_spec.rb
+++ b/spec/features/admin/products/search_for_product_spec.rb
@@ -20,7 +20,6 @@ end
def and_i_... | Remove debugging code in failing spec
|
diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/posts_controller.rb
+++ b/app/controllers/posts_controller.rb
@@ -1,4 +1,5 @@ class PostsController < ApplicationController
+ before_action :redirect, only: [:edit, :destroy]
de... | Work on Posts controller--protections and new posts
|
diff --git a/app/services/review_deck.rb b/app/services/review_deck.rb
index abc1234..def5678 100644
--- a/app/services/review_deck.rb
+++ b/app/services/review_deck.rb
@@ -2,7 +2,7 @@ def initialize(user, session)
@session = session
@user = user
- unless session.has_key?(:review) || session[:review].emp... | Fix for empty review set in session. |
diff --git a/app/services/weather_man.rb b/app/services/weather_man.rb
index abc1234..def5678 100644
--- a/app/services/weather_man.rb
+++ b/app/services/weather_man.rb
@@ -16,7 +16,7 @@ observationHash = @w_api.history_for(time, zip_code)
if observationHash
- observations = ['history']['observati... | Access hash properly for wunderground api response
|
diff --git a/app/controllers/docs_controller.rb b/app/controllers/docs_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/docs_controller.rb
+++ b/app/controllers/docs_controller.rb
@@ -2,7 +2,7 @@ before_action :find_doc, only: [:show, :edit, :update, :destroy]
def index
- @docs = Doc.all.or... | Change index to show current user docs
|
diff --git a/test/integration/elasticsearch_indexing_test.rb b/test/integration/elasticsearch_indexing_test.rb
index abc1234..def5678 100644
--- a/test/integration/elasticsearch_indexing_test.rb
+++ b/test/integration/elasticsearch_indexing_test.rb
@@ -38,21 +38,4 @@
assert_document_is_in_rummager(@sample_documen... | Remove redundant test for indexing
This test was added when migrating to a new elasticsearch version. It
no longer tests something valuable.
|
diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/home_controller.rb
+++ b/app/controllers/home_controller.rb
@@ -34,6 +34,7 @@ notes = notes
.order(show_id: :desc)
.offset((page-1) * PAGE_SIZE)
+ ... | Select only the fields needed to render the json
|
diff --git a/app/presenters/signup_presenter.rb b/app/presenters/signup_presenter.rb
index abc1234..def5678 100644
--- a/app/presenters/signup_presenter.rb
+++ b/app/presenters/signup_presenter.rb
@@ -12,7 +12,7 @@ end
def body
- artefact.description
+ artefact.details["description"]
end
def target... | Use description from details hash
|
diff --git a/app/helpers/article_helper.rb b/app/helpers/article_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/article_helper.rb
+++ b/app/helpers/article_helper.rb
@@ -1,14 +1,29 @@ require 'bing-search'
+
+# def find_articles
+# BingSearch.account_key = 'l1VfVxiJeygTtAUbcXL8O7A5Wpt3bmvH3+Z0eqX6HOE'
+# ... | Speed up the loading of the links
|
diff --git a/app/queries/project_filter_query.rb b/app/queries/project_filter_query.rb
index abc1234..def5678 100644
--- a/app/queries/project_filter_query.rb
+++ b/app/queries/project_filter_query.rb
@@ -29,7 +29,7 @@ when FILTER_TODO
items = items
.todo
- .order(id: :asc) # ... | Fix reordering of project items
Just calling order doesn't work, reorder needs to be used.
|
diff --git a/src/vsphere_cpi/spec/unit/cloud/vsphere/soap_stub_spec.rb b/src/vsphere_cpi/spec/unit/cloud/vsphere/soap_stub_spec.rb
index abc1234..def5678 100644
--- a/src/vsphere_cpi/spec/unit/cloud/vsphere/soap_stub_spec.rb
+++ b/src/vsphere_cpi/spec/unit/cloud/vsphere/soap_stub_spec.rb
@@ -12,7 +12,7 @@ expect(... | Update vim version in soap_stub_adapter test
|
diff --git a/app/models/concerns/geo_works/external_metadata_file_behavior.rb b/app/models/concerns/geo_works/external_metadata_file_behavior.rb
index abc1234..def5678 100644
--- a/app/models/concerns/geo_works/external_metadata_file_behavior.rb
+++ b/app/models/concerns/geo_works/external_metadata_file_behavior.rb
@@ ... | Fix parameterize separator deprecation warning
|
diff --git a/app/views/course/lesson_plan/milestones/_milestone.json.jbuilder b/app/views/course/lesson_plan/milestones/_milestone.json.jbuilder
index abc1234..def5678 100644
--- a/app/views/course/lesson_plan/milestones/_milestone.json.jbuilder
+++ b/app/views/course/lesson_plan/milestones/_milestone.json.jbuilder
@@ ... | Read off personal time for milestones
|
diff --git a/lib/persistence/active_record_persistence.rb b/lib/persistence/active_record_persistence.rb
index abc1234..def5678 100644
--- a/lib/persistence/active_record_persistence.rb
+++ b/lib/persistence/active_record_persistence.rb
@@ -5,6 +5,10 @@ base.extend AASM::Persistence::ActiveRecordPersistence::Cl... | Fix AR persistence so new records have their state set. [Joao Paulo Lins]
Ensure that a state is written for a new record even if aasm_current_state or
{state}= are never called.
|
diff --git a/windows/cookbooks/packer/recipes/disable_hibernation.rb b/windows/cookbooks/packer/recipes/disable_hibernation.rb
index abc1234..def5678 100644
--- a/windows/cookbooks/packer/recipes/disable_hibernation.rb
+++ b/windows/cookbooks/packer/recipes/disable_hibernation.rb
@@ -0,0 +1,6 @@+registry_key 'HKEY_LOCA... | Add a recipe for disabling hibernation on WIndows
No need to have this in a vagrant box
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
|
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb
index abc1234..def5678 100644
--- a/spec/models/user_spec.rb
+++ b/spec/models/user_spec.rb
@@ -10,7 +10,7 @@ end
it "is invalid without an email" do
- expect(User.new(email: nil)).to have(1).errors_on(:email)
+ expect(User.new(email:... | Update user model test to reflect additional email validation.
|
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb
index abc1234..def5678 100644
--- a/spec/models/user_spec.rb
+++ b/spec/models/user_spec.rb
@@ -27,5 +27,15 @@ bad_guy = User.new(@attr.merge(:name => ""))
bad_guy.should_not be_valid
end
+
+ it "devrait exige une adresse email" d... | Add Unit test validation User
|
diff --git a/config/initializers/patch_for_action_controller_test_response.rb b/config/initializers/patch_for_action_controller_test_response.rb
index abc1234..def5678 100644
--- a/config/initializers/patch_for_action_controller_test_response.rb
+++ b/config/initializers/patch_for_action_controller_test_response.rb
@@ ... | Add monkeypatch for Ruby 2.6
|
diff --git a/plugins/ftp/check-ftp.rb b/plugins/ftp/check-ftp.rb
index abc1234..def5678 100644
--- a/plugins/ftp/check-ftp.rb
+++ b/plugins/ftp/check-ftp.rb
@@ -0,0 +1,88 @@+#!/usr/bin/env ruby
+# check-ftp.rb
+# ===
+# Uses either net/ftp or optionally double-bag-ftps ruby gem to check for
+# connectivity to an FTP or... | Add FTP / FTPS check
|
diff --git a/app/models/wafflemix/asset.rb b/app/models/wafflemix/asset.rb
index abc1234..def5678 100644
--- a/app/models/wafflemix/asset.rb
+++ b/app/models/wafflemix/asset.rb
@@ -9,8 +9,8 @@ private
def store_image_info
if self.asset_origin
- self.asset_mime_type = remote_asset.mime_type
... | Use dragonfly for these attributes.
|
diff --git a/app/lib/services.rb b/app/lib/services.rb
index abc1234..def5678 100644
--- a/app/lib/services.rb
+++ b/app/lib/services.rb
@@ -9,7 +9,9 @@
def self.cached_content_item(base_path)
Rails.cache.fetch("finder-frontend_content_items#{base_path}", expires_in: 5.minutes) do
- content_store.content_... | Add timer to content item requests
This adds tracking to the content item requests.
This will be available in Graphite at
stats.timers.finder-frontend.content_store.fetch_request_time
|
diff --git a/routes/player_counts.rb b/routes/player_counts.rb
index abc1234..def5678 100644
--- a/routes/player_counts.rb
+++ b/routes/player_counts.rb
@@ -40,6 +40,18 @@
result.to_json
end
+
+ app.get '/player_counts-latest.json' do
+ result = []
+
+ servers = %... | Add latest player counts JSON route
|
diff --git a/app/models/image.rb b/app/models/image.rb
index abc1234..def5678 100644
--- a/app/models/image.rb
+++ b/app/models/image.rb
@@ -11,7 +11,7 @@ on: :create
before_validation :set_md5
- after_create :async_set_thumbnails
+ after_commit :async_set_thumbnails, on: :create
before_crea... | Use after commit instead of after create. |
diff --git a/scrolls/shellycloud.rb b/scrolls/shellycloud.rb
index abc1234..def5678 100644
--- a/scrolls/shellycloud.rb
+++ b/scrolls/shellycloud.rb
@@ -0,0 +1,82 @@+@name = File.basename(File.expand_path("."))
+
+gem_group :development do
+ gem 'shelly', '>= 0.0.62'
+end
+
+# check if user has account on shelly
+`she... | Add a scroll for deployment with AppScrolls
[#27824317]
depends on drnic/appscrolls#14 drnic/appscrolls#12 |
diff --git a/lib/krypt/hmac.rb b/lib/krypt/hmac.rb
index abc1234..def5678 100644
--- a/lib/krypt/hmac.rb
+++ b/lib/krypt/hmac.rb
@@ -1,6 +1,5 @@ module Krypt
class HMAC
- include Krypt::Helper::XOR
def initialize(digest, key)
@digest = digest
| Include is not necessary here |
diff --git a/lib/active_record_lite/mass_object.rb b/lib/active_record_lite/mass_object.rb
index abc1234..def5678 100644
--- a/lib/active_record_lite/mass_object.rb
+++ b/lib/active_record_lite/mass_object.rb
@@ -1,13 +1,25 @@ class MassObject
def self.my_attr_accessible(*attributes)
+ attributes.each do |attribu... | Add basic mass assignment checking
|
diff --git a/lib/approvals/extensions/rspec/dsl.rb b/lib/approvals/extensions/rspec/dsl.rb
index abc1234..def5678 100644
--- a/lib/approvals/extensions/rspec/dsl.rb
+++ b/lib/approvals/extensions/rspec/dsl.rb
@@ -10,7 +10,10 @@ def verify(options = {}, &block)
group = eval "self", block.binding
... | Make it possible to override the defaults |
diff --git a/pronto-scss.gemspec b/pronto-scss.gemspec
index abc1234..def5678 100644
--- a/pronto-scss.gemspec
+++ b/pronto-scss.gemspec
@@ -1,7 +1,8 @@ # -*- encoding: utf-8 -*-
+
$LOAD_PATH.push File.expand_path('../lib', __FILE__)
-
require 'pronto/scss/version'
+require 'English'
Gem::Specification.new do |s|
... | Reduce size of the gem by only including the necessary files via gemspec
|
diff --git a/lib/caprese/controller/concerns/typing.rb b/lib/caprese/controller/concerns/typing.rb
index abc1234..def5678 100644
--- a/lib/caprese/controller/concerns/typing.rb
+++ b/lib/caprese/controller/concerns/typing.rb
@@ -16,7 +16,15 @@ # @param [Symbol] type the record type to get the class for
# @retu... | Implement type aliasing in record_class
|
diff --git a/config/initializers/mailboxer.rb b/config/initializers/mailboxer.rb
index abc1234..def5678 100644
--- a/config/initializers/mailboxer.rb
+++ b/config/initializers/mailboxer.rb
@@ -20,19 +20,13 @@ messageable = Object.const_get(id_parts[0]).find(id_parts[1])
Mailboxer::Mailbox.new(messageable, ... | Add counter cache option to belongs to
|
diff --git a/config/initializers/mongo.rb b/config/initializers/mongo.rb
index abc1234..def5678 100644
--- a/config/initializers/mongo.rb
+++ b/config/initializers/mongo.rb
@@ -28,7 +28,6 @@ hosts: [ "#{settings.host}:#{settings.port}" ]
}
},
- options: { allow_dynamic_fields: false, use_... | Define some Mongoid option mandatory by define if there are ENV
configuration or not
Revert in commit [f021f13444f727888986ea79fad36b77ca0f6ae7]
|
diff --git a/app/controllers/spree/admin/variants_controller_decorator.rb b/app/controllers/spree/admin/variants_controller_decorator.rb
index abc1234..def5678 100644
--- a/app/controllers/spree/admin/variants_controller_decorator.rb
+++ b/app/controllers/spree/admin/variants_controller_decorator.rb
@@ -12,6 +12,7 @@
... | Build a volume price so table is populated
|
diff --git a/app/helpers/application_helper/button/transform_vm_button.rb b/app/helpers/application_helper/button/transform_vm_button.rb
index abc1234..def5678 100644
--- a/app/helpers/application_helper/button/transform_vm_button.rb
+++ b/app/helpers/application_helper/button/transform_vm_button.rb
@@ -6,7 +6,22 @@ ... | v2v: Disable VM transform button when op not possible
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1473180
|
diff --git a/lib/docs/scrapers/jquery/jquery_ui.rb b/lib/docs/scrapers/jquery/jquery_ui.rb
index abc1234..def5678 100644
--- a/lib/docs/scrapers/jquery/jquery_ui.rb
+++ b/lib/docs/scrapers/jquery/jquery_ui.rb
@@ -2,7 +2,7 @@ class JqueryUi < Jquery
self.name = 'jQuery UI'
self.slug = 'jqueryui'
- self.re... | Update jQuery UI documentation (1.12.1)
|
diff --git a/lib/sass/rails.rb b/lib/sass/rails.rb
index abc1234..def5678 100644
--- a/lib/sass/rails.rb
+++ b/lib/sass/rails.rb
@@ -1,16 +1,12 @@ module Sass
- autoload :Script, 'sass/rails/helpers'
-
module Rails
- autoload :CssCompressor, 'sass/rails/compressor'
- autoload :Importer, 'sass/rails/impor... | Disable autoloading for dev performance.
|
diff --git a/lib/greenhorn/craft/category_group.rb b/lib/greenhorn/craft/category_group.rb
index abc1234..def5678 100644
--- a/lib/greenhorn/craft/category_group.rb
+++ b/lib/greenhorn/craft/category_group.rb
@@ -28,6 +28,10 @@ update(group_locales: group_locales)
end
+ def ordered_categories
+ ... | Add support for ordering categories by their structure order
|
diff --git a/lib/tasks/db.rake b/lib/tasks/db.rake
index abc1234..def5678 100644
--- a/lib/tasks/db.rake
+++ b/lib/tasks/db.rake
@@ -5,5 +5,10 @@ task :votes => :environment do
Vote.destroy_all
end
+
+ desc 'Remove all representatives'
+ task :representatives => :environment do
+ Represen... | Add task to remove all representatives.
|
diff --git a/app/controllers/backend/users_controller.rb b/app/controllers/backend/users_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/backend/users_controller.rb
+++ b/app/controllers/backend/users_controller.rb
@@ -1,7 +1,7 @@ class Backend::UsersController < Backend::BaseController
include Con... | Rename find_user to find_model for the users controller.
|
diff --git a/lib/devise_cas_authenticatable/railtie.rb b/lib/devise_cas_authenticatable/railtie.rb
index abc1234..def5678 100644
--- a/lib/devise_cas_authenticatable/railtie.rb
+++ b/lib/devise_cas_authenticatable/railtie.rb
@@ -4,7 +4,11 @@ module DeviseCasAuthenticatable
class Railtie < ::Rails::Railtie
initi... | Fix for deprecation message when trying to pass a string an not a class to the middleware builder for Rails 5
|
diff --git a/lib/the_merger.rb b/lib/the_merger.rb
index abc1234..def5678 100644
--- a/lib/the_merger.rb
+++ b/lib/the_merger.rb
@@ -1,12 +1,20 @@ require "the_merger/version"
module TheMerger
+ #
+ # Default settings for TheMerger
+ #
+ # merge_model: User
+ #
+
def self.merger
puts 'Mail Merge te... | Read a variable from a yaml file
|
diff --git a/app/controllers/storytime/subscriptions_controller.rb b/app/controllers/storytime/subscriptions_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/storytime/subscriptions_controller.rb
+++ b/app/controllers/storytime/subscriptions_controller.rb
@@ -14,7 +14,11 @@ flash[:error] = I18n... | Fix redirect back since rails 5 changed signature for this
|
diff --git a/lib/rails-footnotes/notes/log_note.rb b/lib/rails-footnotes/notes/log_note.rb
index abc1234..def5678 100644
--- a/lib/rails-footnotes/notes/log_note.rb
+++ b/lib/rails-footnotes/notes/log_note.rb
@@ -12,7 +12,12 @@ self.original_logger = Rails.logger
note_logger = NoteLogger.new(self.logs)... | Remove the error occurred by `Footnotes::Notes::LogNote.start!` on Rails 3
On Rails 3, `Rails.logger` is not kind of `Logger`, and
`ActiveSupport::Logger::SimpleFormatter` is not defined. Therefore, this
line is output to Rails log.
```
Footnotes Log Exception: uninitialized constant ActiveSupport::Logger
```
Use `L... |
diff --git a/lib/rapns/daemon/feedback_receiver.rb b/lib/rapns/daemon/feedback_receiver.rb
index abc1234..def5678 100644
--- a/lib/rapns/daemon/feedback_receiver.rb
+++ b/lib/rapns/daemon/feedback_receiver.rb
@@ -8,7 +8,7 @@ loop do
break if @stop
check_for_feedback
- slee... | Use feedback poll config option
|
diff --git a/lib/fog/storage/requests/hp/put_object.rb b/lib/fog/storage/requests/hp/put_object.rb
index abc1234..def5678 100644
--- a/lib/fog/storage/requests/hp/put_object.rb
+++ b/lib/fog/storage/requests/hp/put_object.rb
@@ -11,6 +11,9 @@ def put_object(container, object, data, options = {})
data... | Remove Content-Length header incase Transfer-Encoding header is present. This was done to get the streaming for PUT working.
|
diff --git a/lib/rack_after_reply/adapter/passenger.rb b/lib/rack_after_reply/adapter/passenger.rb
index abc1234..def5678 100644
--- a/lib/rack_after_reply/adapter/passenger.rb
+++ b/lib/rack_after_reply/adapter/passenger.rb
@@ -12,8 +12,9 @@ RackAfterReply.freedom_patch self, :initialize
def acc... | Fix patch to Passenger's `accept_and_process_next_request` |
diff --git a/core/binding/eval_spec.rb b/core/binding/eval_spec.rb
index abc1234..def5678 100644
--- a/core/binding/eval_spec.rb
+++ b/core/binding/eval_spec.rb
@@ -14,6 +14,18 @@ bind.eval("Inside.name").should == "BindingSpecs::Demo::Inside"
end
+ describe "with a file given" do
+
+ it "does not ... | Add spec for using eval with different filenames on a binding
|
diff --git a/CUtil.podspec b/CUtil.podspec
index abc1234..def5678 100644
--- a/CUtil.podspec
+++ b/CUtil.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |s|
s.name = "CUtil"
- s.version = "0.1.20"
+ s.version = "0.1.21"
s.summary = "CUtil is a common utilities collection. It is designed as a too... | Add a new version 0.1.21 for CocoaPods.
|
diff --git a/Cedar.podspec b/Cedar.podspec
index abc1234..def5678 100644
--- a/Cedar.podspec
+++ b/Cedar.podspec
@@ -19,7 +19,8 @@ # https://github.com/pivotal/cedar/issues/47
s.xcconfig = {
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++0x',
- 'CLANG_CXX_LIBRARY' => 'libc++'
+ 'CLANG_CXX_LIBRARY' => 'libc++',
... | Update podspec to produce the DEVELOPER_BIN_DIR preprocessor macro
|
diff --git a/cardgate-rails.gemspec b/cardgate-rails.gemspec
index abc1234..def5678 100644
--- a/cardgate-rails.gemspec
+++ b/cardgate-rails.gemspec
@@ -22,6 +22,6 @@ spec.add_development_dependency "rake"
spec.add_development_dependency "mocha"
- spec.add_dependency "faraday", "0.8.9"
- spec.add_dependency "f... | Allow minor versions up for faraday gems.
|
diff --git a/week-5/nums-commas/my_solution.rb b/week-5/nums-commas/my_solution.rb
index abc1234..def5678 100644
--- a/week-5/nums-commas/my_solution.rb
+++ b/week-5/nums-commas/my_solution.rb
@@ -8,9 +8,46 @@
# 0. Pseudocode
+=begin
# What is the input?
+# Input: positive integer
+
# What is the output? (i.e. Wh... | Add pseudocode of separate_comma method.
|
diff --git a/graph.rb b/graph.rb
index abc1234..def5678 100644
--- a/graph.rb
+++ b/graph.rb
@@ -1,5 +1,7 @@ class Graph
- def new(graph_info, directed)
+ attr_reader :edges
+
+ def initialize(graph_info, directed)
@edges = {}
@directed = directed
make_edges(graph_info)
@@ -11,21 +13,22 @@ end
... | Correct ruby initialize method name
|
diff --git a/config.ru b/config.ru
index abc1234..def5678 100644
--- a/config.ru
+++ b/config.ru
@@ -20,6 +20,6 @@ end
run Rack::Cascade.new([
- Api::App,
- rails_app
+ rails_app,
+ Api::App
])
| Change order of rack cascade
|
diff --git a/spec/file_info_spec.rb b/spec/file_info_spec.rb
index abc1234..def5678 100644
--- a/spec/file_info_spec.rb
+++ b/spec/file_info_spec.rb
@@ -1,37 +1,44 @@ RSpec.describe(Jekyll::Compose::FileInfo) do
- let(:open_and_closing_tag) { "---\n" }
- let(:layout_content) { "post\n" }
-
describe '#content' do
... | Revert "Update tests to work for ruby 1.9"
This reverts commit 553dbbbd1d56752ded289a8b1ad0e7496ff96afa.
|
diff --git a/db/seeds/tags.rb b/db/seeds/tags.rb
index abc1234..def5678 100644
--- a/db/seeds/tags.rb
+++ b/db/seeds/tags.rb
@@ -6,11 +6,3 @@
TagRepository.put(:tag_id => 'businesslink', :title => 'Business Link', :tag_type => 'legacy_source')
TagRepository.put(:tag_id => 'directgov', :title => 'Directgov', :tag_typ... | Remove old Section seeds to avoid overwriting them
This has been deployed now.
There's a secret UI for editing these and they are subject to change,
so let's not trash those changes on every deploy.
|
diff --git a/config/environments/development.rb b/config/environments/development.rb
index abc1234..def5678 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -35,5 +35,5 @@ # Expands the lines which load the assets
config.assets.debug = true
- config.i18n.fallbacks = tr... | Disable fallback locales from dev env |
diff --git a/delayed_job_mongo_mapper.gemspec b/delayed_job_mongo_mapper.gemspec
index abc1234..def5678 100644
--- a/delayed_job_mongo_mapper.gemspec
+++ b/delayed_job_mongo_mapper.gemspec
@@ -5,7 +5,6 @@ s.summary = "MongoMapper backend for delayed_job"
s.version = '1.0.0'
s.authors ... | Remove date.today specifier in gemspec |
diff --git a/spec/support/helper.rb b/spec/support/helper.rb
index abc1234..def5678 100644
--- a/spec/support/helper.rb
+++ b/spec/support/helper.rb
@@ -2,17 +2,33 @@
module SpecHelper
- def mock_model(*attributes)
- Class.new {
+ def mock_model(*attributes, &block)
+ model = Class.new {
include Equa... | Add support for immutable objects to session
|
diff --git a/lib/technoweenie/attachment_fu/backends/db_file_backend.rb b/lib/technoweenie/attachment_fu/backends/db_file_backend.rb
index abc1234..def5678 100644
--- a/lib/technoweenie/attachment_fu/backends/db_file_backend.rb
+++ b/lib/technoweenie/attachment_fu/backends/db_file_backend.rb
@@ -29,11 +29,12 @@ ... | Refactor DbFileBackend for Rails 4 AREL conformity
ActiveRecord#update_all was deprecated in Rails 2.3.8 and has since been replaced by ActiveRecord::Relation#update_all. With this change the method signature (accepted parameters) and usage have also changed requiring the refactoring. |
diff --git a/spec/hash_object_spec.rb b/spec/hash_object_spec.rb
index abc1234..def5678 100644
--- a/spec/hash_object_spec.rb
+++ b/spec/hash_object_spec.rb
@@ -3,18 +3,18 @@ # Test support object
describe HashObject do
- subject { HashObject.new(hash) }
- let(:hash) do
- {
- :name => 'Steve',
- ... | Fix code identation in HashObject spec.
|
diff --git a/spec/lib/webhook_spec.rb b/spec/lib/webhook_spec.rb
index abc1234..def5678 100644
--- a/spec/lib/webhook_spec.rb
+++ b/spec/lib/webhook_spec.rb
@@ -5,6 +5,10 @@ describe 'Webhook' do
it 'does only block for a very short time' do
+ # Set up webhook directory.
+ #
+ Webhook.directory = '.'
+
... | [Webhook] Use . as directory when testing to make Travis happy.
|
diff --git a/manticore.gemspec b/manticore.gemspec
index abc1234..def5678 100644
--- a/manticore.gemspec
+++ b/manticore.gemspec
@@ -19,8 +19,11 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
- spec.signing_key = File.expand_path("~/.gemcert/gem-private_key.pem"... | Make signing conditional for building the gem, so that external systems such as Travis may build it without needing to have a private key present
|
diff --git a/cookbooks/util/libraries/cflags.rb b/cookbooks/util/libraries/cflags.rb
index abc1234..def5678 100644
--- a/cookbooks/util/libraries/cflags.rb
+++ b/cookbooks/util/libraries/cflags.rb
@@ -2,7 +2,7 @@ def cflags
flags = {
"LDFLAGS" => "-I#{embedded_dir}/include -L#{embedded_dir}/lib",
- "CLFAGS" ... | Mac: Support down to Mac OS X 10.5
|
diff --git a/spec/models/task_spec.rb b/spec/models/task_spec.rb
index abc1234..def5678 100644
--- a/spec/models/task_spec.rb
+++ b/spec/models/task_spec.rb
@@ -3,14 +3,9 @@ describe Task do
context "for three sample tasks in a list" do
let(:list) { create(:task_list) }
- let(:task1) { create(:task, list: li... | Use let! instead of let+before hack.
|
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb
index abc1234..def5678 100644
--- a/spec/models/user_spec.rb
+++ b/spec/models/user_spec.rb
@@ -1,5 +1,6 @@ require 'spec_helper'
describe User do
- pending "add some examples to (or delete) #{__FILE__}"
+# TODO: Write some tests
+# pending "add some... | Disable "pending" test for now
|
diff --git a/helpspot-sso/lib/opscode/helpspot_sso.rb b/helpspot-sso/lib/opscode/helpspot_sso.rb
index abc1234..def5678 100644
--- a/helpspot-sso/lib/opscode/helpspot_sso.rb
+++ b/helpspot-sso/lib/opscode/helpspot_sso.rb
@@ -11,7 +11,7 @@ def create_helpspot_user(email)
return 0 unless DATABASE_URI
po... | Update column names for new helpspot version. |
diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb
index abc1234..def5678 100644
--- a/spec/support/helpers.rb
+++ b/spec/support/helpers.rb
@@ -14,6 +14,11 @@ it 'inflects through module method' do
assert { RussianInflect.inflect(answers[0], inflection_case) == answers[index] }
... | Add force_downcase: true inflect test assertion
|
diff --git a/lib/ld4l_browser_data/utilities/file_systems/mysql_zip_fs.rb b/lib/ld4l_browser_data/utilities/file_systems/mysql_zip_fs.rb
index abc1234..def5678 100644
--- a/lib/ld4l_browser_data/utilities/file_systems/mysql_zip_fs.rb
+++ b/lib/ld4l_browser_data/utilities/file_systems/mysql_zip_fs.rb
@@ -4,62 +4,12 @@ m... | Make MySqlZipFS an extension of MySqlFS
|
diff --git a/lib/metamorpher/builders/ruby/uppercase_constant_rewriter.rb b/lib/metamorpher/builders/ruby/uppercase_constant_rewriter.rb
index abc1234..def5678 100644
--- a/lib/metamorpher/builders/ruby/uppercase_constant_rewriter.rb
+++ b/lib/metamorpher/builders/ruby/uppercase_constant_rewriter.rb
@@ -1,29 +1,15 @@ r... | Reduce duplication in Ruby builder code.
|
diff --git a/lib/doorkeeper/request.rb b/lib/doorkeeper/request.rb
index abc1234..def5678 100644
--- a/lib/doorkeeper/request.rb
+++ b/lib/doorkeeper/request.rb
@@ -9,22 +9,22 @@ module Request
module_function
- def authorization_strategy(strategy)
- get_strategy strategy, Doorkeeper.configuration.auth... | Rename Doorkeeper::Request method params for clarity
The arguments are strings from the `request_type` and `grant_type`
parameters, not strategies. |
diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/pages_controller.rb
+++ b/app/controllers/pages_controller.rb
@@ -1,7 +1,7 @@ class PagesController < ActionController::Base
before_filter :update_page_resolver
- append_view_... | Prepend view templates to view context.
|
diff --git a/core/db/migrate/20140309024355_create_spree_stores.rb b/core/db/migrate/20140309024355_create_spree_stores.rb
index abc1234..def5678 100644
--- a/core/db/migrate/20140309024355_create_spree_stores.rb
+++ b/core/db/migrate/20140309024355_create_spree_stores.rb
@@ -1,17 +1,25 @@ class CreateSpreeStores < Act... | Update store migration for when apps already were using spree-multi-domain.
|
diff --git a/app/controllers/votes_controller.rb b/app/controllers/votes_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/votes_controller.rb
+++ b/app/controllers/votes_controller.rb
@@ -11,11 +11,17 @@ @prev_winner_ranking = rankings[@prev_winner.id]
@prev_loser_ranking = rankings[@prev_... | Add logic to find next pair of votes
|
diff --git a/app/decorators/storage_decorator.rb b/app/decorators/storage_decorator.rb
index abc1234..def5678 100644
--- a/app/decorators/storage_decorator.rb
+++ b/app/decorators/storage_decorator.rb
@@ -6,9 +6,8 @@ def quadicon
{
:top_left => {
- :fileicon => store_type_icon,
:toolti... | Use svg/fonticons for store types in the storage decorator
|
diff --git a/app/helpers/georgia/users_helper.rb b/app/helpers/georgia/users_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/georgia/users_helper.rb
+++ b/app/helpers/georgia/users_helper.rb
@@ -9,5 +9,9 @@ PermissionTablePresenter.new(self, section, actions).to_s
end
+ def georgia_roles_colle... | Add georgia_roles_collection for users form
|
diff --git a/app/models/repository_text_value.rb b/app/models/repository_text_value.rb
index abc1234..def5678 100644
--- a/app/models/repository_text_value.rb
+++ b/app/models/repository_text_value.rb
@@ -3,4 +3,7 @@ accepts_nested_attributes_for :repository_cell
validates :repository_cell, presence: true
+ val... | Add validation of text_value length [SCI-1267]
|
diff --git a/lib/link_shrink/config.rb b/lib/link_shrink/config.rb
index abc1234..def5678 100644
--- a/lib/link_shrink/config.rb
+++ b/lib/link_shrink/config.rb
@@ -1,8 +1,11 @@ module LinkShrink
module Config
+ # @author Jonah Ruiz <jonah@pixelhipsters.com>
+ # Configurable module for integrating with other U... | Add documentation for Config module
|
diff --git a/Formula/ruby-enterprise-edition.rb b/Formula/ruby-enterprise-edition.rb
index abc1234..def5678 100644
--- a/Formula/ruby-enterprise-edition.rb
+++ b/Formula/ruby-enterprise-edition.rb
@@ -11,6 +11,23 @@
def install
ENV.gcc_4_2 # fails with LLVM
- system "./installer --auto #{prefix} --no-tcmall... | Allow REE to be built shared
|
diff --git a/lib/tasks/ci_monitor.rake b/lib/tasks/ci_monitor.rake
index abc1234..def5678 100644
--- a/lib/tasks/ci_monitor.rake
+++ b/lib/tasks/ci_monitor.rake
@@ -1,11 +1,13 @@ namespace :cimonitor do
desc "Update the status for each active project"
task :fetch_statuses => :environment do
- StatusFetcher.new... | Fix up ci monitor rake task to use delayed_job
|
diff --git a/app/models/admin.rb b/app/models/admin.rb
index abc1234..def5678 100644
--- a/app/models/admin.rb
+++ b/app/models/admin.rb
@@ -1,6 +1,5 @@ class Admin < ActiveRecord::Base
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable and :omniauthable
- devise :dat... | Remove sign_up path from devise
|
diff --git a/app/models/skill.rb b/app/models/skill.rb
index abc1234..def5678 100644
--- a/app/models/skill.rb
+++ b/app/models/skill.rb
@@ -3,4 +3,6 @@ belongs_to :user
acts_as_tenant(:user)
+
+ validates_uniqueness_of :name
end
| Add AR uniquness validator on name
Signed-off-by: Max Fierke <0706025b2bbcec1ed8d64822f4eccd96314938d0@maxfierke.com>
|
diff --git a/app/models/tweet.rb b/app/models/tweet.rb
index abc1234..def5678 100644
--- a/app/models/tweet.rb
+++ b/app/models/tweet.rb
@@ -1,5 +1,5 @@ class Tweet < ActiveRecord::Base
- default_scope order("created_at desc")
+ default_scope order("published_at desc")
mount_uploader :image, ImageUploader
| Sort desc by Twitter's timestamp
|
diff --git a/kiwi/app/controllers/votes_controller.rb b/kiwi/app/controllers/votes_controller.rb
index abc1234..def5678 100644
--- a/kiwi/app/controllers/votes_controller.rb
+++ b/kiwi/app/controllers/votes_controller.rb
@@ -1,5 +1,5 @@ class VotesController < ApplicationController
- before_action :load_votable
+ bef... | Make changes to votable_type assignment
|
diff --git a/spec/rspec/rails/matchers/be_valid_spec.rb b/spec/rspec/rails/matchers/be_valid_spec.rb
index abc1234..def5678 100644
--- a/spec/rspec/rails/matchers/be_valid_spec.rb
+++ b/spec/rspec/rails/matchers/be_valid_spec.rb
@@ -10,19 +10,12 @@ validates_presence_of :something
end
+ let(:matcher) { be_val... | Test for matcher error text instead
|
diff --git a/ruboty-sloc.gemspec b/ruboty-sloc.gemspec
index abc1234..def5678 100644
--- a/ruboty-sloc.gemspec
+++ b/ruboty-sloc.gemspec
@@ -20,6 +20,7 @@ spec.require_paths = ["lib"]
spec.add_dependency "ruboty"
+ spec.add_dependency "sloc"
spec.add_development_dependency "bundler", "~> 1.8"
spec.add_dev... | Add sloc as runtime dependency
|
diff --git a/ruby-dtrace.gemspec b/ruby-dtrace.gemspec
index abc1234..def5678 100644
--- a/ruby-dtrace.gemspec
+++ b/ruby-dtrace.gemspec
@@ -1,3 +1,6 @@+$:<<'./lib'
+require 'dtrace'
+
Gem::Specification.new do |s|
s.name = 'ruby-dtrace'
| Fix gemspec - must include dtrace.rb
|
diff --git a/blimp.gemspec b/blimp.gemspec
index abc1234..def5678 100644
--- a/blimp.gemspec
+++ b/blimp.gemspec
@@ -6,7 +6,7 @@ Gem::Specification.new do |gem|
gem.name = "blimp"
gem.version = Blimp::VERSION
- gem.authors = ["Blake Williams"]
+ gem.authors = ["Blake Williams", "Sixte... | Add Sixteen Eighty as an author
|
diff --git a/db/migrate/20150123013225_add_parsed_user_agent_to_open_events.rb b/db/migrate/20150123013225_add_parsed_user_agent_to_open_events.rb
index abc1234..def5678 100644
--- a/db/migrate/20150123013225_add_parsed_user_agent_to_open_events.rb
+++ b/db/migrate/20150123013225_add_parsed_user_agent_to_open_events.rb... | Use uncached. to try to cut down on runaway memory
See http://stackoverflow.com/questions/6668875/ruby-on-rails-memory-leak-when-looping-through-large-number-of-records-find-eac
|
diff --git a/spec/lib/angellist_api/configuration_spec.rb b/spec/lib/angellist_api/configuration_spec.rb
index abc1234..def5678 100644
--- a/spec/lib/angellist_api/configuration_spec.rb
+++ b/spec/lib/angellist_api/configuration_spec.rb
@@ -0,0 +1,52 @@+require 'spec_helper'
+
+describe AngellistApi::Configuration do
+... | Write tests for AngellistApi::Configuration module
|
diff --git a/lib/locotimezone/active_record_helper.rb b/lib/locotimezone/active_record_helper.rb
index abc1234..def5678 100644
--- a/lib/locotimezone/active_record_helper.rb
+++ b/lib/locotimezone/active_record_helper.rb
@@ -1,33 +1,21 @@ module Locotimezone
module ActiveRecordHelper
+ def locotime(options = {})
... | Simplify helper to single method
|
diff --git a/lib/sandthorn/aggregate_root_snapshot.rb b/lib/sandthorn/aggregate_root_snapshot.rb
index abc1234..def5678 100644
--- a/lib/sandthorn/aggregate_root_snapshot.rb
+++ b/lib/sandthorn/aggregate_root_snapshot.rb
@@ -10,7 +10,7 @@
def aggregate_snapshot!
if @aggregate_events.count > 0
- rais... | Correct raise statements to not use new.
|
diff --git a/lib/scanny/checks/http_redirect_check.rb b/lib/scanny/checks/http_redirect_check.rb
index abc1234..def5678 100644
--- a/lib/scanny/checks/http_redirect_check.rb
+++ b/lib/scanny/checks/http_redirect_check.rb
@@ -36,7 +36,16 @@
# require 'open-uri'
def pattern_open_uri
- "StringLiteral... | Update pattern to more specific (call require method)
|
diff --git a/lib/templates/rspec/scaffold/new_spec.rb b/lib/templates/rspec/scaffold/new_spec.rb
index abc1234..def5678 100644
--- a/lib/templates/rspec/scaffold/new_spec.rb
+++ b/lib/templates/rspec/scaffold/new_spec.rb
@@ -3,8 +3,9 @@ <% output_attributes = model.columns.reject{|attribute| [:datetime, :timestamp, :ti... | Use let definition for assigned variable
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.