diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/rom-sql.gemspec b/rom-sql.gemspec
index abc1234..def5678 100644
--- a/rom-sql.gemspec
+++ b/rom-sql.gemspec
@@ -20,7 +20,7 @@
spec.add_runtime_dependency "sequel", "~> 4.17"
spec.add_runtime_dependency "equalizer", "~> 0.0", ">= 0.0.9"
- spec.add_runtime_dependency "rom", "~> 0.4", "~> 0.4.0"
+ sp... | Fix rom version in gemspec
|
diff --git a/lib/be_valid_asset/be_valid_css.rb b/lib/be_valid_asset/be_valid_css.rb
index abc1234..def5678 100644
--- a/lib/be_valid_asset/be_valid_css.rb
+++ b/lib/be_valid_asset/be_valid_css.rb
@@ -20,7 +20,7 @@ # The validator return a 500 Error if it's sent empty string
fragment = ' ' if fragment.empt... | Add the option not to error if vendor specific extensions are used.
|
diff --git a/lib/brightbox-cli/server_groups.rb b/lib/brightbox-cli/server_groups.rb
index abc1234..def5678 100644
--- a/lib/brightbox-cli/server_groups.rb
+++ b/lib/brightbox-cli/server_groups.rb
@@ -51,7 +51,9 @@ end
def server_ids
- @server_ids ||= attributes["servers"].collect { |s| s["id"] } if att... | Join servers by whitespace rather than comma in group show
|
diff --git a/core/spec/models/user_spec.rb b/core/spec/models/user_spec.rb
index abc1234..def5678 100644
--- a/core/spec/models/user_spec.rb
+++ b/core/spec/models/user_spec.rb
@@ -1,6 +1,6 @@ require 'spec_helper'
-describe User do
+describe Spree::User do
context "validation" do
it { should have_valid_fac... | Fix User ref in user spec
|
diff --git a/lib/etl/processor/database_join_processor.rb b/lib/etl/processor/database_join_processor.rb
index abc1234..def5678 100644
--- a/lib/etl/processor/database_join_processor.rb
+++ b/lib/etl/processor/database_join_processor.rb
@@ -0,0 +1,68 @@+module ETL
+ module Processor
+ class DatabaseJoinProcessor < ... | Add a join lookup step to get data from an another database
|
diff --git a/lib/filestore.rb b/lib/filestore.rb
index abc1234..def5678 100644
--- a/lib/filestore.rb
+++ b/lib/filestore.rb
@@ -8,6 +8,7 @@ @db.type_translation = true
@db.execute("create table if not exists sensor_reads
(sensor string, date integer, value real)")
+ @mutex = Mute... | Add a lock around DB operations to guard agains concurrent sqlite access.
|
diff --git a/lib/tasks/wheres-your-database-yml-dude.rake b/lib/tasks/wheres-your-database-yml-dude.rake
index abc1234..def5678 100644
--- a/lib/tasks/wheres-your-database-yml-dude.rake
+++ b/lib/tasks/wheres-your-database-yml-dude.rake
@@ -0,0 +1,11 @@+file "config/database.yml.template" do |task|
+ abort "I don't ... | Add warning when you have no database config
|
diff --git a/lib/fastlane/actions/clean_cocoapods_cache.rb b/lib/fastlane/actions/clean_cocoapods_cache.rb
index abc1234..def5678 100644
--- a/lib/fastlane/actions/clean_cocoapods_cache.rb
+++ b/lib/fastlane/actions/clean_cocoapods_cache.rb
@@ -0,0 +1,39 @@+module Fastlane
+ module Actions
+ class CleanCocoapodsCac... | Add new action for cocoapods cache cleanup.
|
diff --git a/lib/license_finder/package_managers/pipenv.rb b/lib/license_finder/package_managers/pipenv.rb
index abc1234..def5678 100644
--- a/lib/license_finder/package_managers/pipenv.rb
+++ b/lib/license_finder/package_managers/pipenv.rb
@@ -15,7 +15,7 @@ begin
packages = {}
each_depend... | Fix parsing Pipfile when version isn't defined
Normally this would cause `'canonicalize': undefined method 'sub' for nil:NilClass (NoMethodError)` |
diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/comments_controller.rb
+++ b/app/controllers/comments_controller.rb
@@ -16,7 +16,7 @@ post '/users/:user_id/posts/:post_id/comments' do
@post = Post.find(params[:post_id]) ... | Fix comment error where user was @user instead of current_user
|
diff --git a/app/controllers/entities_controller.rb b/app/controllers/entities_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/entities_controller.rb
+++ b/app/controllers/entities_controller.rb
@@ -2,7 +2,7 @@ def menu_metrics
e = Entity.find(params[:id].to_i)
if e
- @graphs = e.grap... | Fix the metrics sorting in menu
|
diff --git a/app/controllers/explorer_controller.rb b/app/controllers/explorer_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/explorer_controller.rb
+++ b/app/controllers/explorer_controller.rb
@@ -9,7 +9,7 @@
protected
def check_mongo_blacklist
- if !can_read_database?
+ if curr... | Fix bug for /explorer that was throwing an exception
|
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/sessions_controller.rb
+++ b/app/controllers/sessions_controller.rb
@@ -10,7 +10,6 @@ end
def create
- raise params
if auth_hash = request.env['omniauth.auth']
... | Remove raise params from sessions controller doesn't display through Heroku
|
diff --git a/app/controllers/watchers_controller.rb b/app/controllers/watchers_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/watchers_controller.rb
+++ b/app/controllers/watchers_controller.rb
@@ -19,7 +19,7 @@
def require_watcher_edit_priviledges
can_edit = current_user == @watcher.use... | Remove return(false) from before_filter "require_watcher_edit_priviledges"
|
diff --git a/lib/google/api_client/auth/service_account.rb b/lib/google/api_client/auth/service_account.rb
index abc1234..def5678 100644
--- a/lib/google/api_client/auth/service_account.rb
+++ b/lib/google/api_client/auth/service_account.rb
@@ -27,9 +27,6 @@ }
end
credentials.reverse_merge!(... | Remove a silly puts line.
|
diff --git a/lib/trysail_blog_notification/last_article.rb b/lib/trysail_blog_notification/last_article.rb
index abc1234..def5678 100644
--- a/lib/trysail_blog_notification/last_article.rb
+++ b/lib/trysail_blog_notification/last_article.rb
@@ -34,6 +34,36 @@ @last_update = last_update
end
+ # Convert t... | Implement "to_h" and "[]" method in TrySailBlogNotification::LastArticle
|
diff --git a/app/helpers/image_helper.rb b/app/helpers/image_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/image_helper.rb
+++ b/app/helpers/image_helper.rb
@@ -1,9 +1,11 @@ module ImageHelper
+ # TODO ENV, not raw strings
def thumbor_image_tag(source, options={})
- image_tag("https://thumbs.picyo.me... | Use new url for thumbor
|
diff --git a/app/helpers/plans_helper.rb b/app/helpers/plans_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/plans_helper.rb
+++ b/app/helpers/plans_helper.rb
@@ -6,4 +6,12 @@ plan.date.strftime("%B '%y")
end
end
+
+ def ids_of_past_plans(current_plan_id)
+ arr = current_user.past_plans.map ... | Write helper method to identity past plans from
the reference of the current plan being viewed.
|
diff --git a/rundock.gemspec b/rundock.gemspec
index abc1234..def5678 100644
--- a/rundock.gemspec
+++ b/rundock.gemspec
@@ -13,7 +13,7 @@ spec.homepage = 'https://github.com/hiracy/rundock'
spec.license = 'MIT'
- spec.files = `git ls-files -z`.split('\x0').reject { |f| f.match(%r{^(test|spec... | Fix spec.executables not found \x0 separated strings.
|
diff --git a/app/mailers/admin_mailer.rb b/app/mailers/admin_mailer.rb
index abc1234..def5678 100644
--- a/app/mailers/admin_mailer.rb
+++ b/app/mailers/admin_mailer.rb
@@ -10,6 +10,11 @@ def profile_published(profile)
@profile = profile
@url = 'https://www.speakerinnen.org'
- mail(to: @profile.email, su... | Add the locale to the profile_published mailer
|
diff --git a/lib/monk/glue.rb b/lib/monk/glue.rb
index abc1234..def5678 100644
--- a/lib/monk/glue.rb
+++ b/lib/monk/glue.rb
@@ -26,8 +26,6 @@ set :static, true
set :views, root_path("app", "views")
- use Rack::Session::Cookie
-
configure :development do
require "monk/glue/reloader"
| Remove redundant use of Rack::Session::Cookie.
|
diff --git a/config/initializers/csp.rb b/config/initializers/csp.rb
index abc1234..def5678 100644
--- a/config/initializers/csp.rb
+++ b/config/initializers/csp.rb
@@ -1,15 +1,15 @@ SecureHeaders::Configuration.default do |config|
config.csp = {
- report_only: Rails.env.production?, # default: false
+ report_... | Update CSP, report_only is false in production, and update report_uri
|
diff --git a/lib/rich_text.rb b/lib/rich_text.rb
index abc1234..def5678 100644
--- a/lib/rich_text.rb
+++ b/lib/rich_text.rb
@@ -13,5 +13,5 @@ # end
#
require 'rich_text/engine'
-require 'app/helpers/rich_text_helper'
+require '../app/helpers/rich_text_helper'
ActionView::Base.send :include, RichTextHelper | Fix path to helper file
|
diff --git a/lib/rom/model.rb b/lib/rom/model.rb
index abc1234..def5678 100644
--- a/lib/rom/model.rb
+++ b/lib/rom/model.rb
@@ -2,6 +2,7 @@ module Model
class ValidationError < CommandError
include Charlatan.new(:errors)
+ include Equalizer.new(:errors)
end
end
end
| Add equalizer to validation error and form classes
|
diff --git a/lib/tilt/opal.rb b/lib/tilt/opal.rb
index abc1234..def5678 100644
--- a/lib/tilt/opal.rb
+++ b/lib/tilt/opal.rb
@@ -8,6 +8,10 @@ module Opal
class TiltTemplate < Tilt::Template
self.default_mime_type = 'application/javascript'
+
+ def self.inherited(subclass)
+ subclass.default_mime_type = ... | Mark all subclasses of TiltTemplate with JS Mime |
diff --git a/test/generator/files/generate_cases_test.rb b/test/generator/files/generate_cases_test.rb
index abc1234..def5678 100644
--- a/test/generator/files/generate_cases_test.rb
+++ b/test/generator/files/generate_cases_test.rb
@@ -8,6 +8,17 @@ Dir.stub :glob, %w(/alpha_cases.rb hy_phen_ated_cases.rb) do
... | Test that glob is called with expected arguments
|
diff --git a/app/reports/progress_bar.rb b/app/reports/progress_bar.rb
index abc1234..def5678 100644
--- a/app/reports/progress_bar.rb
+++ b/app/reports/progress_bar.rb
@@ -17,10 +17,7 @@ end
def bar
- progress_bar_string = String.new
- bar_progress.times { progress_bar_string << '=' }
- bar_remainder.t... | Stop creating ProgressBar string objects
+ Lots of unnecessary memory being created at progress_bar.rb:22
+ https://github.com/studentinsights/studentinsights/issues/11#issuecomment-207132740
+ #11
|
diff --git a/library/openstruct/new_ostruct_member_spec.rb b/library/openstruct/new_ostruct_member_spec.rb
index abc1234..def5678 100644
--- a/library/openstruct/new_ostruct_member_spec.rb
+++ b/library/openstruct/new_ostruct_member_spec.rb
@@ -10,13 +10,14 @@ it "creates an attribute reader method for the passed met... | OpenStruct: Improve the spec of new_ostruct_member, even though it will
most likely disappear altogether as this method should be private.
|
diff --git a/tools/extract_top_starred_nodejs_modules.rb b/tools/extract_top_starred_nodejs_modules.rb
index abc1234..def5678 100644
--- a/tools/extract_top_starred_nodejs_modules.rb
+++ b/tools/extract_top_starred_nodejs_modules.rb
@@ -0,0 +1,28 @@+
+require 'rubygems'
+require 'nokogiri'
+require 'open-uri'
+
+# USAG... | Add (ruby) script to extract top X most starred node.js modules from npmjs.com
|
diff --git a/lib/autoparts/packages/nodejs.rb b/lib/autoparts/packages/nodejs.rb
index abc1234..def5678 100644
--- a/lib/autoparts/packages/nodejs.rb
+++ b/lib/autoparts/packages/nodejs.rb
@@ -5,12 +5,12 @@ module Packages
class Nodejs < Package
name 'nodejs'
- version '0.10.33'
+ version '0.10.... | Update Node.JS to latest stable v0.10.35
Taken directly from http://nodejs.org/dist/v0.10.35/ |
diff --git a/lib/varnish/lib/cartodb-varnish.rb b/lib/varnish/lib/cartodb-varnish.rb
index abc1234..def5678 100644
--- a/lib/varnish/lib/cartodb-varnish.rb
+++ b/lib/varnish/lib/cartodb-varnish.rb
@@ -38,7 +38,7 @@ retry
else
if Cartodb::config[:varnish_management]["critical"] == true
- ... | Fix varnish connection error message from ruby
|
diff --git a/lib/ghtml2pdf/argument_parser.rb b/lib/ghtml2pdf/argument_parser.rb
index abc1234..def5678 100644
--- a/lib/ghtml2pdf/argument_parser.rb
+++ b/lib/ghtml2pdf/argument_parser.rb
@@ -3,15 +3,16 @@ class ArgumentParser
attr_reader :input, :output
+ # Error class raised for missing arguments
+ cl... | Raise exception instead of exiting in ArgumentParser
|
diff --git a/lib/relix/indexes/primary_key.rb b/lib/relix/indexes/primary_key.rb
index abc1234..def5678 100644
--- a/lib/relix/indexes/primary_key.rb
+++ b/lib/relix/indexes/primary_key.rb
@@ -1,6 +1,11 @@ module Relix
class PrimaryKeyIndex < Index
include Ordering
+
+ def initialize(set, base_name, accessor... | Refactor the primary key immutability to use the standard index option.
This allows you to override it an set `immutable_attribute: false`. I doubt that's ever very useful (or that you should do that) but hey, this is ruby: we give you the flexibility to shoot yourself in the foot.
|
diff --git a/lib/hydra_attribute/active_record/scoping.rb b/lib/hydra_attribute/active_record/scoping.rb
index abc1234..def5678 100644
--- a/lib/hydra_attribute/active_record/scoping.rb
+++ b/lib/hydra_attribute/active_record/scoping.rb
@@ -6,7 +6,7 @@ module ClassMethods
def scoped(options = nil)
... | Include HydraAttribute::ActiveRecord::Relation once per each relation object
|
diff --git a/acceptance/config/aio/options.rb b/acceptance/config/aio/options.rb
index abc1234..def5678 100644
--- a/acceptance/config/aio/options.rb
+++ b/acceptance/config/aio/options.rb
@@ -3,6 +3,5 @@ :pre_suite => [
'setup/common/pre-suite/000-delete-puppet-when-none.rb',
'setup/aio/pre-suite/010_Insta... | Revert "(HI-489) Add Cumulus Support"
This reverts commit d9aaa573db4a2ed70fc526299b3417d3a827885b.
|
diff --git a/Snail.podspec b/Snail.podspec
index abc1234..def5678 100644
--- a/Snail.podspec
+++ b/Snail.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |s|
s.name = "Snail"
- s.version = "0.2.11"
+ s.version = "0.3.0"
s.summary = "An observables framework for Swift"
s.homepage = "https:/... | Update podspec to point to most recent tag
|
diff --git a/vcs/local.rb b/vcs/local.rb
index abc1234..def5678 100644
--- a/vcs/local.rb
+++ b/vcs/local.rb
@@ -7,7 +7,7 @@
def local_commit! ( *args )
common_commit!("k2.0 <%= rev %>: <%= title %>", *args) do |subject|
- mail!(:to => %w[kernelteam@gostai.com],
+ mail!(:to => %w[kernel-patches@lists... | Send the patches to the mailing list.
git-svn-id: 47ecf0eee40ae8baa1bb5e98a22c0bda2f631ce9@1530 1e37f2df-8004-0410-ba96-adcf012cb36e
|
diff --git a/overlord.gemspec b/overlord.gemspec
index abc1234..def5678 100644
--- a/overlord.gemspec
+++ b/overlord.gemspec
@@ -4,7 +4,7 @@ require 'overlord/version'
Gem::Specification.new do |spec|
- spec.name = "overlord"
+ spec.name = "daemon-overlord"
spec.version = Overlord::VERSI... | Rename to avoid conflict in rubygems.org
|
diff --git a/test/controllers/commits_controller_test.rb b/test/controllers/commits_controller_test.rb
index abc1234..def5678 100644
--- a/test/controllers/commits_controller_test.rb
+++ b/test/controllers/commits_controller_test.rb
@@ -2,9 +2,7 @@
class CommitsControllerTest < ActionController::TestCase
before do... | Fix test cases of commits controller
|
diff --git a/lib/presenters/series_presenter.rb b/lib/presenters/series_presenter.rb
index abc1234..def5678 100644
--- a/lib/presenters/series_presenter.rb
+++ b/lib/presenters/series_presenter.rb
@@ -4,11 +4,14 @@ presented = default
presented["contact"] = ContactPresenter.new( @model.contact ).present if @mo... | Add next_release and filter list of releases
|
diff --git a/lib/tytus/controller_extensions.rb b/lib/tytus/controller_extensions.rb
index abc1234..def5678 100644
--- a/lib/tytus/controller_extensions.rb
+++ b/lib/tytus/controller_extensions.rb
@@ -7,6 +7,8 @@ base.extend ClassMethods
if base.respond_to? :class_inheritable_accessor
base.class_i... | Add extra fallback as guided by specs.
|
diff --git a/app/helpers/blockchain_helper.rb b/app/helpers/blockchain_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/blockchain_helper.rb
+++ b/app/helpers/blockchain_helper.rb
@@ -1,12 +1,21 @@ module BlockChainHelper
require 'blockchain'
+
# Add shit from the gem here
def send(user, amount)
+... | Add send and recieve helpers
|
diff --git a/test/helpers/test_file_helper.rb b/test/helpers/test_file_helper.rb
index abc1234..def5678 100644
--- a/test/helpers/test_file_helper.rb
+++ b/test/helpers/test_file_helper.rb
@@ -17,5 +17,14 @@ def with_file(path, type, hash)
with_files( [ {path: path, type: type} ], hash)
end
+
+ def u... | NEW: Add a helper to get file path from root
|
diff --git a/lib/spreedly/payment_methods/credit_card.rb b/lib/spreedly/payment_methods/credit_card.rb
index abc1234..def5678 100644
--- a/lib/spreedly/payment_methods/credit_card.rb
+++ b/lib/spreedly/payment_methods/credit_card.rb
@@ -2,7 +2,7 @@
class CreditCard < PaymentMethod
field :first_name, :last_name... | Support full_name in credit card
|
diff --git a/lib/tritium/engines/standard/scopes/node.rb b/lib/tritium/engines/standard/scopes/node.rb
index abc1234..def5678 100644
--- a/lib/tritium/engines/standard/scopes/node.rb
+++ b/lib/tritium/engines/standard/scopes/node.rb
@@ -5,8 +5,34 @@ def node_invocation(ins, ctx, pos_args, kwd_args)
c... | Implement a whole bunch of Node methods |
diff --git a/test.rb b/test.rb
index abc1234..def5678 100644
--- a/test.rb
+++ b/test.rb
@@ -0,0 +1,30 @@+require 'target/wunderboss-all.jar'
+
+# Setup logging to stdout with simple format
+logger = java.util.logging.Logger.getLogger("")
+logger.level = java.util.logging.Level::INFO
+class WunderBossFormatter < java.u... | Add Ruby script for example of embedding WunderBoss
|
diff --git a/manageiq-appliance-dependencies.rb b/manageiq-appliance-dependencies.rb
index abc1234..def5678 100644
--- a/manageiq-appliance-dependencies.rb
+++ b/manageiq-appliance-dependencies.rb
@@ -1,3 +1,3 @@ # Add gems here, in Gemfile syntax, which are dependencies of the appliance itself rather than a part of th... | Use version 2 of appliance console
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1540686
|
diff --git a/manageiq-automation_engine.gemspec b/manageiq-automation_engine.gemspec
index abc1234..def5678 100644
--- a/manageiq-automation_engine.gemspec
+++ b/manageiq-automation_engine.gemspec
@@ -15,6 +15,8 @@
s.files = Dir["{app,lib}/**/*", "LICENSE.txt", "Rakefile", "README.md"]
+ s.add_dependency "rubyzi... | Add dependency on rubyzip gem
|
diff --git a/tasks/write-buildpack-pivnet-metadata/run.rb b/tasks/write-buildpack-pivnet-metadata/run.rb
index abc1234..def5678 100644
--- a/tasks/write-buildpack-pivnet-metadata/run.rb
+++ b/tasks/write-buildpack-pivnet-metadata/run.rb
@@ -13,7 +13,7 @@ buildpack_files = ''
Dir.chdir('pivotal-buildpacks-cached') do... | Fix glob match for cached bp in write pivnet metadata
[#157745313]
Signed-off-by: Tyler Phelan <5713437ebd3bcae14564c2baaa7816b900ed174c@pivotal.io>
|
diff --git a/app/controllers/sessions.rb b/app/controllers/sessions.rb
index abc1234..def5678 100644
--- a/app/controllers/sessions.rb
+++ b/app/controllers/sessions.rb
@@ -4,9 +4,9 @@ end
post '/login' do
- if user = User.authenticate(params[:sessions])
+ if @user = User.authenticate(params[:sessions])
sessi... | Make user instance variable in controller
|
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
@@ -19,6 +19,8 @@ end
def teardown_worker?
+ # For some reason, jobs might be left stranded with Heroku causing this
+ # condition to fail... | Document problems with Delayed::Job on Heroku.
|
diff --git a/app/helpers/items_helper.rb b/app/helpers/items_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/items_helper.rb
+++ b/app/helpers/items_helper.rb
@@ -7,5 +7,4 @@ def item_params
params.require(:item).permit(:name, :description, :image, :price, :quantity )
end
-
end
| Remove white space from ItemsHelper module
|
diff --git a/app/helpers/sufia_helper.rb b/app/helpers/sufia_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/sufia_helper.rb
+++ b/app/helpers/sufia_helper.rb
@@ -2,20 +2,4 @@ include ::BlacklightHelper
include Sufia::BlacklightOverride
include Sufia::SufiaHelperBehavior
-
- # *Sometimes* a Blackligh... | Remove profile path helper override. Breaking import jobs.
|
diff --git a/app/models/post_observer.rb b/app/models/post_observer.rb
index abc1234..def5678 100644
--- a/app/models/post_observer.rb
+++ b/app/models/post_observer.rb
@@ -3,7 +3,7 @@
def clean_cache_for(record)
# Clean posts count cache
- cache_file = File.join(File.dirname(__FILE__), "../../public/cache/discu... | Use Rails.root for cache observer
|
diff --git a/app/models/fact_register.rb b/app/models/fact_register.rb
index abc1234..def5678 100644
--- a/app/models/fact_register.rb
+++ b/app/models/fact_register.rb
@@ -5,7 +5,7 @@ field :place_id, type: BSON::ObjectId
field :date_id, type: BSON::ObjectId
field :action_ids, type: Array
- field :passiv... | Set :passive field as false by default
|
diff --git a/app/models/spree/digital.rb b/app/models/spree/digital.rb
index abc1234..def5678 100644
--- a/app/models/spree/digital.rb
+++ b/app/models/spree/digital.rb
@@ -4,10 +4,11 @@ has_many :digital_links, :dependent => :destroy
has_attached_file :attachment, :path => ":rails_root/private/digitals/:id/... | Validate attachment content type in accordance with Paperclip 4 security rules
|
diff --git a/lib/fog/vcloud_director/requests/compute/post_task_cancel.rb b/lib/fog/vcloud_director/requests/compute/post_task_cancel.rb
index abc1234..def5678 100644
--- a/lib/fog/vcloud_director/requests/compute/post_task_cancel.rb
+++ b/lib/fog/vcloud_director/requests/compute/post_task_cancel.rb
@@ -10,7 +10,7 @@ ... | [vcloud_director] Fix copy & paste fail.
|
diff --git a/test/configuration_test.rb b/test/configuration_test.rb
index abc1234..def5678 100644
--- a/test/configuration_test.rb
+++ b/test/configuration_test.rb
@@ -11,6 +11,11 @@ # config.routes
# config.hostname
# config.mail.server
+
+ def initialize(*args)
+ config.load!(Pathname(__FILE__).dirname... | Fix failing tests by ensuring default environment is loaded.
|
diff --git a/config/initializers/kaminari_config.rb b/config/initializers/kaminari_config.rb
index abc1234..def5678 100644
--- a/config/initializers/kaminari_config.rb
+++ b/config/initializers/kaminari_config.rb
@@ -1,6 +1,6 @@ # frozen_string_literal: true
Kaminari.configure do |config|
- # config.default_per_page ... | Change the kaminari perpage config
|
diff --git a/vcs/local.rb b/vcs/local.rb
index abc1234..def5678 100644
--- a/vcs/local.rb
+++ b/vcs/local.rb
@@ -7,7 +7,7 @@
def local_commit! ( *args )
common_commit!("k1 <%= rev %>: <%= title %>", *args) do |subject|
- mail!(:to => %w[kernel1@gostai.com],
+ mail!(:to => %w[kernel-patches@lists.gost... | Send patches to the right ML.
git-svn-id: 0d81cc62928a1fc523c5fabcfc9861aafd21798d@1532 1e37f2df-8004-0410-ba96-adcf012cb36e
|
diff --git a/async.podspec b/async.podspec
index abc1234..def5678 100644
--- a/async.podspec
+++ b/async.podspec
@@ -1,5 +1,5 @@ Pod::Spec.new do |s|
- s.name = "async"
+ s.name = "async_utility"
s.version = "1.0.0"
s.summary = "Utility framework which provides asyn... | Rename pod, name is already taken
|
diff --git a/fission.gemspec b/fission.gemspec
index abc1234..def5678 100644
--- a/fission.gemspec
+++ b/fission.gemspec
@@ -20,6 +20,6 @@ s.require_paths = ["lib"]
s.add_dependency 'CFPropertyList', '~> 2.1.1'
s.add_development_dependency 'rake'
- s.add_development_dependency 'rspec', '~> 2.8.0'
+ s.add_deve... | Update rspec dependency to ~> 2.14
|
diff --git a/core/app/models/spree/shipping_rate.rb b/core/app/models/spree/shipping_rate.rb
index abc1234..def5678 100644
--- a/core/app/models/spree/shipping_rate.rb
+++ b/core/app/models/spree/shipping_rate.rb
@@ -4,9 +4,15 @@ belongs_to :shipping_method, class_name: 'Spree::ShippingMethod'
scope :fronten... | Order shipping rates by cost ascending
This fixes a problem on the frontend that I saw where they were displaying in indeterminate ordering
|
diff --git a/app/controllers/event_receipt_controller.rb b/app/controllers/event_receipt_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/event_receipt_controller.rb
+++ b/app/controllers/event_receipt_controller.rb
@@ -5,4 +5,8 @@ def index
render layout: "table-assignment"
end
+
+ def show... | Use table-assignment layout for receipts.
|
diff --git a/app/controllers/site/comments_controller.rb b/app/controllers/site/comments_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/site/comments_controller.rb
+++ b/app/controllers/site/comments_controller.rb
@@ -14,7 +14,7 @@
if @site_comment.save
set_flash_message(:success)
- ... | Fix redirect to nil on comment creation
|
diff --git a/db/migrate/001_create_phone_numbers.rb b/db/migrate/001_create_phone_numbers.rb
index abc1234..def5678 100644
--- a/db/migrate/001_create_phone_numbers.rb
+++ b/db/migrate/001_create_phone_numbers.rb
@@ -1,14 +1,14 @@ class CreatePhoneNumbers < ActiveRecord::Migration
def self.up
create_table :phon... | Update migration formats so that they're more maintainable.
|
diff --git a/lib/acts_as_archive/base/adapters/mysql.rb b/lib/acts_as_archive/base/adapters/mysql.rb
index abc1234..def5678 100644
--- a/lib/acts_as_archive/base/adapters/mysql.rb
+++ b/lib/acts_as_archive/base/adapters/mysql.rb
@@ -7,11 +7,20 @@
def archive_table_indexed_columns
index_query = "SHO... | Add multi-columns indexes support for MySQL
refs #6
Acts_as_archive now fully supports the following syntax :
acts_as_archive :indexes => [ :id, [:subject_id, :subject_type],
:created_at, :deleted_at ]
for MySQL and Postgresql
|
diff --git a/contrib/homebrew/passgen.rb b/contrib/homebrew/passgen.rb
index abc1234..def5678 100644
--- a/contrib/homebrew/passgen.rb
+++ b/contrib/homebrew/passgen.rb
@@ -1,8 +1,8 @@ class Passgen < Formula
desc "A password generator"
homepage "https://github.com/nicolas-brousse/passgen"
- url "https://github.... | Update Homebrew formulae with version 1.0.2
|
diff --git a/app/controllers/admin/metrics_controller.rb b/app/controllers/admin/metrics_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/admin/metrics_controller.rb
+++ b/app/controllers/admin/metrics_controller.rb
@@ -8,11 +8,11 @@
def schedule
worker = MetricWorker.worker_class(@metric)
- ... | Rollback job document check at schedule command
I was mistaken: find_by is not exactly the best choice to optimistically
retrieve a document. If it cannot be found, an error will be raised.
Thus, I am back at using where.
Signed-off-by: Konrad Reiche <4ff0213f56e2082fcd8c882d04c546881c579ce4@gmail.com>
|
diff --git a/lib/expgen.rb b/lib/expgen.rb
index abc1234..def5678 100644
--- a/lib/expgen.rb
+++ b/lib/expgen.rb
@@ -5,7 +5,16 @@ require "expgen/randomizer"
module Expgen
+ def self.cache
+ @cache ||= {}
+ end
+
+ def self.clear_cache
+ @cache = nil
+ end
+
def self.gen(exp)
- Randomizer.randomize(T... | Add cache for crazy speed boost |
diff --git a/app/controllers/subscriptions_controller.rb b/app/controllers/subscriptions_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/subscriptions_controller.rb
+++ b/app/controllers/subscriptions_controller.rb
@@ -25,7 +25,7 @@ body = request.raw_post
signature = request.env['HTTP_X_... | Fix missing notification for pushed articles.
|
diff --git a/lib/email_events/railtie.rb b/lib/email_events/railtie.rb
index abc1234..def5678 100644
--- a/lib/email_events/railtie.rb
+++ b/lib/email_events/railtie.rb
@@ -13,6 +13,7 @@ # (even for non-sendgrid)
# TODO: especially if there ever gets to be > 2 adapters, each adapters should ideally be brok... | Add better error message when Gridhook fires but sengrid adapter is not loaded.
|
diff --git a/lib/hydra_attribute/association_builder.rb b/lib/hydra_attribute/association_builder.rb
index abc1234..def5678 100644
--- a/lib/hydra_attribute/association_builder.rb
+++ b/lib/hydra_attribute/association_builder.rb
@@ -40,7 +40,7 @@ end
def association_name
- table_name.to_sym
+ "hydr... | Rename association name to hydra values
|
diff --git a/railties/test/application/initializers/notifications_test.rb b/railties/test/application/initializers/notifications_test.rb
index abc1234..def5678 100644
--- a/railties/test/application/initializers/notifications_test.rb
+++ b/railties/test/application/initializers/notifications_test.rb
@@ -44,7 +44,7 @@ ... | Build fix for ruby 1.9.3 syntax
|
diff --git a/lib/travis/services/github/fetch_config.rb b/lib/travis/services/github/fetch_config.rb
index abc1234..def5678 100644
--- a/lib/travis/services/github/fetch_config.rb
+++ b/lib/travis/services/github/fetch_config.rb
@@ -15,7 +15,14 @@ end
def run
- parse(fetch) || { '.result' =>... | Add retries for fetching the config.
Also, some more debugging to see what the data we receive looks like.
|
diff --git a/CCKit.podspec b/CCKit.podspec
index abc1234..def5678 100644
--- a/CCKit.podspec
+++ b/CCKit.podspec
@@ -1,13 +1,13 @@ Pod::Spec.new do |s|
s.name = "CCKit"
- s.version = "0.0.1"
+ s.version = "0.0.2"
s.summary = "Cliq Consulting reusable components for iOS."
s.descriptio... | Update Podspec to version 0.0.2
- CCKit.podspec update s.version to 0.0.2
|
diff --git a/lib/arsi/relation.rb b/lib/arsi/relation.rb
index abc1234..def5678 100644
--- a/lib/arsi/relation.rb
+++ b/lib/arsi/relation.rb
@@ -22,13 +22,8 @@ with_relation_in_connection { super }
end
- def self.prepended(base)
- base.class_eval do
- alias_method :update_all_without_arsi, :... | Remove alias-chain necessary for Rails 4.0
The `self.prepended` / alias_method wrapper was added in
48e14c2930e4454093c6f0e31c84808929a7c63e when Rails 4.0 compatibility
was added. A PR comment (https://github.com/zendesk/arsi/pull/8)
clarifies that we cannot simply call `super` because
ends up in an infinite loop ... |
diff --git a/lib/gem-search/executor.rb b/lib/gem-search/executor.rb
index abc1234..def5678 100644
--- a/lib/gem-search/executor.rb
+++ b/lib/gem-search/executor.rb
@@ -31,8 +31,12 @@ def search_rubygems(url)
option = {}
proxy = URI.parse(url).find_proxy
- if proxy && proxy.user && proxy.... | Fix proxy doesn't work by not using authentication
認証プロキシにしか対応していなかったのを修正
|
diff --git a/lib/grape/cache/patches.rb b/lib/grape/cache/patches.rb
index abc1234..def5678 100644
--- a/lib/grape/cache/patches.rb
+++ b/lib/grape/cache/patches.rb
@@ -18,7 +18,7 @@ run_filters befores
# Inject our cache check
- options[:route_options][:cache].validate_cache(self, env['grape.cache'... | Check if cache configured for endpoint
|
diff --git a/test/integration/environment/cucumber/features/step_definitions/hem_is_ruby_environment_steps.rb b/test/integration/environment/cucumber/features/step_definitions/hem_is_ruby_environment_steps.rb
index abc1234..def5678 100644
--- a/test/integration/environment/cucumber/features/step_definitions/hem_is_ruby... | Fix up rubocop issues in cucumber steps.
|
diff --git a/lib/loady/memory_logger.rb b/lib/loady/memory_logger.rb
index abc1234..def5678 100644
--- a/lib/loady/memory_logger.rb
+++ b/lib/loady/memory_logger.rb
@@ -10,7 +10,7 @@ @messages << message
end
- alias_method :warn, :info
- alias_method :error, :info
+ alias warn info
+ alias erro... | Use alias instead of alias_method
|
diff --git a/blimp.gemspec b/blimp.gemspec
index abc1234..def5678 100644
--- a/blimp.gemspec
+++ b/blimp.gemspec
@@ -17,5 +17,5 @@ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ['lib']
- gem.add_devel... | Fix incorrect dependency type in gemspec for httparty
|
diff --git a/modis.gemspec b/modis.gemspec
index abc1234..def5678 100644
--- a/modis.gemspec
+++ b/modis.gemspec
@@ -10,7 +10,8 @@ gem.email = ["port001@gmail.com"]
gem.description = "ActiveModel + Redis"
gem.summary = "ActiveModel + Redis"
- gem.homepage = ""
+ gem.homepage = "https... | Add gem homepage and license on gemspec
|
diff --git a/knife-server.gemspec b/knife-server.gemspec
index abc1234..def5678 100644
--- a/knife-server.gemspec
+++ b/knife-server.gemspec
@@ -22,4 +22,5 @@
gem.add_development_dependency "rspec", "~> 2.10"
gem.add_development_dependency "fakefs", "~> 0.4.0"
+ gem.add_development_dependency "timecop", "~> 0.3... | Add timecop as development gem.
|
diff --git a/lib/librato/rails.rb b/lib/librato/rails.rb
index abc1234..def5678 100644
--- a/lib/librato/rails.rb
+++ b/lib/librato/rails.rb
@@ -25,20 +25,6 @@ start_worker unless forking_server?
end
- private
-
- def ruby_engine
- return RUBY_ENGINE if Object.constants.include?(:RUBY_EN... | Remove old user agent code
|
diff --git a/lib/plugins/fresh.rb b/lib/plugins/fresh.rb
index abc1234..def5678 100644
--- a/lib/plugins/fresh.rb
+++ b/lib/plugins/fresh.rb
@@ -8,7 +8,7 @@ match /(help fresh)$/, method: :help, prefix: /^(\.)/
def execute(m)
- response = HTTParty.get("http://www.reddit.com/r/hiphopheads/new/.json")
+ resp... | Return post from / instead of /new
|
diff --git a/spec/features/students/view_a_student_spec.rb b/spec/features/students/view_a_student_spec.rb
index abc1234..def5678 100644
--- a/spec/features/students/view_a_student_spec.rb
+++ b/spec/features/students/view_a_student_spec.rb
@@ -0,0 +1,31 @@+require 'rails_helper'
+
+RSpec.feature 'Student progress', ty... | Add feature spec for setting progress on student
|
diff --git a/spec/scanny/checks/http_request_check_spec.rb b/spec/scanny/checks/http_request_check_spec.rb
index abc1234..def5678 100644
--- a/spec/scanny/checks/http_request_check_spec.rb
+++ b/spec/scanny/checks/http_request_check_spec.rb
@@ -14,6 +14,21 @@ with_issue(@issue)
end
+ it ... | Add specs for another Net::HTTP classes
|
diff --git a/ci_environment/docker/recipes/default.rb b/ci_environment/docker/recipes/default.rb
index abc1234..def5678 100644
--- a/ci_environment/docker/recipes/default.rb
+++ b/ci_environment/docker/recipes/default.rb
@@ -41,7 +41,7 @@ fe = Chef::Util::FileEdit.new('/etc/default/grub')
fe.search_file_replac... | Disable apparmor via grub args
|
diff --git a/core_gem/lib/deep_cover/builtin_takeover.rb b/core_gem/lib/deep_cover/builtin_takeover.rb
index abc1234..def5678 100644
--- a/core_gem/lib/deep_cover/builtin_takeover.rb
+++ b/core_gem/lib/deep_cover/builtin_takeover.rb
@@ -5,6 +5,8 @@ require_relative 'core_ext/coverage_replacement'
require 'coverage'
... | Raise when taking over if the builtin coverage is running
|
diff --git a/app/models/manager_refresh/application_record_lite.rb b/app/models/manager_refresh/application_record_lite.rb
index abc1234..def5678 100644
--- a/app/models/manager_refresh/application_record_lite.rb
+++ b/app/models/manager_refresh/application_record_lite.rb
@@ -0,0 +1,12 @@+module ManagerRefresh
+ class... | Add ApplicationRecordLite that is for holding is and class of AR
Add ApplicationRecordLite that is for holding is and class of AR.
ActiveRecord object are to huge and we need a query to obtain them,
in most cases we have a class and id, which is just enough
to fil la relation. No need to go to db.
|
diff --git a/config/deploy/production.rb b/config/deploy/production.rb
index abc1234..def5678 100644
--- a/config/deploy/production.rb
+++ b/config/deploy/production.rb
@@ -1,5 +1,5 @@ server 'app-01', roles: %w{app web db}, user: 'handy'
set :ssh_options,
- proxy: Net::SSH::Proxy::Command.new('ssh gateway.do-nyc3.... | Use special port for gateway SSH
|
diff --git a/test/integration/relp/serverspec/relp_spec.rb b/test/integration/relp/serverspec/relp_spec.rb
index abc1234..def5678 100644
--- a/test/integration/relp/serverspec/relp_spec.rb
+++ b/test/integration/relp/serverspec/relp_spec.rb
@@ -7,3 +7,7 @@ describe package('rsyslog-relp') do
it { should be_installed... | Test relp so we don't break break it again
|
diff --git a/lib/tasks/islay_tasks.rake b/lib/tasks/islay_tasks.rake
index abc1234..def5678 100644
--- a/lib/tasks/islay_tasks.rake
+++ b/lib/tasks/islay_tasks.rake
@@ -7,6 +7,14 @@
desc "Drop and recreates the DB and seeds it with data"
task :bootstrap => :environment do
+ FileUtils.rm_rf(Rails.root + ... | Tweak bootstrap task to copy migrations and seed data.
|
diff --git a/app/controllers/checkin/groups_controller.rb b/app/controllers/checkin/groups_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/checkin/groups_controller.rb
+++ b/app/controllers/checkin/groups_controller.rb
@@ -13,7 +13,7 @@ format.json do
render :text => {
'group... | Fix another old style AR query.
|
diff --git a/app/models/groups/mailman/list_membership.rb b/app/models/groups/mailman/list_membership.rb
index abc1234..def5678 100644
--- a/app/models/groups/mailman/list_membership.rb
+++ b/app/models/groups/mailman/list_membership.rb
@@ -8,14 +8,20 @@ include ActiveModel::Model
attr_accessor :id, :mai... | 717: Change ListMembership to compare on email instead of mm_user
|
diff --git a/activejob/test/support/integration/helper.rb b/activejob/test/support/integration/helper.rb
index abc1234..def5678 100644
--- a/activejob/test/support/integration/helper.rb
+++ b/activejob/test/support/integration/helper.rb
@@ -1,6 +1,6 @@ # frozen_string_literal: true
-puts "\n\n*** rake aj:integration:... | Print correct rake command on running AJ integration tests
Currently when executing `bundle exec rake test:integration` under `activejob/`
derectory, it prints helpful info like:
```
(snip)
*** rake aj:integration:async ***
(snip)
*** rake aj:integration:delayed_job ***
(snip)
```
but there is no defined `:aj` scope... |
diff --git a/lib/flappi/config.rb b/lib/flappi/config.rb
index abc1234..def5678 100644
--- a/lib/flappi/config.rb
+++ b/lib/flappi/config.rb
@@ -3,16 +3,12 @@ module Flappi
class Config
- attr_reader :definition_paths
+ attr_accessor :definition_paths
attr_accessor :version_plan
attr_accessor :doc_... | Remove auto array from definition_paths setter
|
diff --git a/lib/rails-add_ons.rb b/lib/rails-add_ons.rb
index abc1234..def5678 100644
--- a/lib/rails-add_ons.rb
+++ b/lib/rails-add_ons.rb
@@ -1,9 +1,13 @@ require 'haml-rails'
require 'font-awesome-rails'
-require 'twitter_bootstrap_components_rails'
+begin
+ require 'twitter_bootstrap_components_rails'
+rescue Lo... | Make requirement for twitter_bootstrap_components_rails optional.
|
diff --git a/lib/tasks/polls.rake b/lib/tasks/polls.rake
index abc1234..def5678 100644
--- a/lib/tasks/polls.rake
+++ b/lib/tasks/polls.rake
@@ -0,0 +1,8 @@+namespace :poll do
+ desc "Generate slugs polls"
+ task generate_slugs: :environment do
+ Poll.find_each do |poll|
+ poll.update_columns(slug: poll.gener... | Add task to generate poll slugs
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.