diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/lib/rails_i18n_updater.rb b/lib/rails_i18n_updater.rb
index abc1234..def5678 100644
--- a/lib/rails_i18n_updater.rb
+++ b/lib/rails_i18n_updater.rb
@@ -14,10 +14,7 @@
# Prepare new load path in after_initialize as the I18n.load_path might
# be modified in Rails initializers.
-class Rails::Initializer
- ... | Use an after_initialize configuration block instead of redefining a Rails method |
diff --git a/Formula/oxygen-icons.rb b/Formula/oxygen-icons.rb
index abc1234..def5678 100644
--- a/Formula/oxygen-icons.rb
+++ b/Formula/oxygen-icons.rb
@@ -1,9 +1,9 @@ require 'formula'
class OxygenIcons <Formula
- url 'ftp://ftp.kde.org/pub/kde/stable/4.4.2/src/oxygen-icons-4.4.2.tar.bz2'
+ url 'ftp://ftp.kde.or... | Update Oxygen icons to 4.5.2.
|
diff --git a/lib/tasks/log_parser.rake b/lib/tasks/log_parser.rake
index abc1234..def5678 100644
--- a/lib/tasks/log_parser.rake
+++ b/lib/tasks/log_parser.rake
@@ -0,0 +1,27 @@+namespace :log do
+
+ desc 'parses the logfile'
+ task :parse => :environment do
+ count = 0
+ IP_REGEXP = /(?:[0-9]{1,3}\.){3}[0-9]{1... | Add task for parsing log files.
|
diff --git a/laravel/recipes/storage_permissions.rb b/laravel/recipes/storage_permissions.rb
index abc1234..def5678 100644
--- a/laravel/recipes/storage_permissions.rb
+++ b/laravel/recipes/storage_permissions.rb
@@ -4,7 +4,7 @@ user "root"
cwd "#{deploy[:deploy_to]}/current"
code <<-EOH
- chdmod -R 77... | Change the permissions of the Laravel storage directories
|
diff --git a/lib/sms_sender.rb b/lib/sms_sender.rb
index abc1234..def5678 100644
--- a/lib/sms_sender.rb
+++ b/lib/sms_sender.rb
@@ -14,6 +14,10 @@ message: message
}).response
+ if response.code != "200"
+ logger.error "Unable to send SMS to #{mobile_no}"
+ end
+
... | Add print to log when message cannot be sent
|
diff --git a/lib/text2voice.rb b/lib/text2voice.rb
index abc1234..def5678 100644
--- a/lib/text2voice.rb
+++ b/lib/text2voice.rb
@@ -1,5 +1,39 @@ require "text2voice/version"
module Text2voice
- # Your code goes here...
+ def initialize(api_key)
+ @api_key = api_key
+ end
+
+ def speaker(speaker_name)
+
+ en... | Add method to create request
|
diff --git a/app/controllers/answers_controller.rb b/app/controllers/answers_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/answers_controller.rb
+++ b/app/controllers/answers_controller.rb
@@ -9,6 +9,10 @@ flash[:alert] = "#{@answer.errors.full_messages.join("--")}"
end
redirect_to q... | Add show action for answers
|
diff --git a/app/controllers/budgets_controller.rb b/app/controllers/budgets_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/budgets_controller.rb
+++ b/app/controllers/budgets_controller.rb
@@ -1,5 +1,6 @@ class BudgetsController < ApplicationController
include FeatureFlags
+ include BudgetsHelpe... | Return 404 status for non-published Budget access
Why:
Non-admin users shouldn't be able to access, or know of the existence
of a non-published Budget.
How:
Raising an ActionController::RoutingError (404 error) to simulate the
same behaviour as accesing a non-existing Budget.
We could have used CanCanCan abilities... |
diff --git a/app/models/builders/manual_builder.rb b/app/models/builders/manual_builder.rb
index abc1234..def5678 100644
--- a/app/models/builders/manual_builder.rb
+++ b/app/models/builders/manual_builder.rb
@@ -1,9 +1,9 @@ require "securerandom"
class ManualBuilder
- def initialize(dependencies)
- @slug_genera... | Use Ruby keyword args in ManualBuilder
I think that using language features instead of custom code makes this
easier to understand.
|
diff --git a/lib/engineyard-cloud-client/version.rb b/lib/engineyard-cloud-client/version.rb
index abc1234..def5678 100644
--- a/lib/engineyard-cloud-client/version.rb
+++ b/lib/engineyard-cloud-client/version.rb
@@ -1,7 +1,7 @@ # This file is maintained by a herd of rabid monkeys with Rakes.
module EY
class CloudC... | Add .pre for next release
|
diff --git a/spree_sort_payment_methods.gemspec b/spree_sort_payment_methods.gemspec
index abc1234..def5678 100644
--- a/spree_sort_payment_methods.gemspec
+++ b/spree_sort_payment_methods.gemspec
@@ -2,16 +2,16 @@ Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = 'spree_sort_payme... | Add missing files in gemspec
* Update version
* Add home page
|
diff --git a/week-4/longest-string/my_solution.rb b/week-4/longest-string/my_solution.rb
index abc1234..def5678 100644
--- a/week-4/longest-string/my_solution.rb
+++ b/week-4/longest-string/my_solution.rb
@@ -12,6 +12,7 @@
# Your Solution Below
+=begin Initial Solution
def longest_string(list_of_words)
# Your c... | Add refactored longest string solution
|
diff --git a/features/support/env.rb b/features/support/env.rb
index abc1234..def5678 100644
--- a/features/support/env.rb
+++ b/features/support/env.rb
@@ -1,6 +1,8 @@ # Generated by cucumber-sinatra. (2013-12-03 12:11:29 +0000)
ENV['RACK_ENV'] = 'test'
+ENV['METRICS_API_USERNAME'] = 'foo'
+ENV['METRICS_API_PASSWOR... | Load in fake auth details for test
|
diff --git a/lib/octokit/enterprise_admin_client.rb b/lib/octokit/enterprise_admin_client.rb
index abc1234..def5678 100644
--- a/lib/octokit/enterprise_admin_client.rb
+++ b/lib/octokit/enterprise_admin_client.rb
@@ -32,6 +32,8 @@ Octokit::Configurable.keys.each do |key|
instance_variable_set(:"@#{key}",... | Add .netrc login support to Octokit::EnterpriseAdminClient
|
diff --git a/carrierwave-aws.gemspec b/carrierwave-aws.gemspec
index abc1234..def5678 100644
--- a/carrierwave-aws.gemspec
+++ b/carrierwave-aws.gemspec
@@ -19,5 +19,6 @@ gem.add_dependency 'carrierwave', '~> 0.7'
gem.add_dependency 'aws-sdk', '~> 2.0'
+ gem.add_development_dependency 'rake', '~> 10.0'
g... | Add rake as dev dependencies
|
diff --git a/lib/picolena/templates/db/migrate/20090213234937_create_documents.rb b/lib/picolena/templates/db/migrate/20090213234937_create_documents.rb
index abc1234..def5678 100644
--- a/lib/picolena/templates/db/migrate/20090213234937_create_documents.rb
+++ b/lib/picolena/templates/db/migrate/20090213234937_create_... | Add index to documents table
|
diff --git a/spec/factories/working_group_roles.rb b/spec/factories/working_group_roles.rb
index abc1234..def5678 100644
--- a/spec/factories/working_group_roles.rb
+++ b/spec/factories/working_group_roles.rb
@@ -3,6 +3,15 @@ factory :working_group_role, class: WorkingGroup::Role do
user
working_group
+
+ ... | Create circle volunteer roles when creating working group role. |
diff --git a/recipes/server.rb b/recipes/server.rb
index abc1234..def5678 100644
--- a/recipes/server.rb
+++ b/recipes/server.rb
@@ -7,10 +7,10 @@ # Apache 2.0
#
-if "#{node.zabbix.server.install}"
+if node.zabbix.server.install
include_recipe "zabbix::server_#{node.zabbix.server.install_method}"
end
-if "#{no... | Fix warning string literal in condition
zabbix/recipes/server.rb:12: warning: string literal in condition
zabbix/recipes/server.rb:16: warning: string literal in condition
|
diff --git a/streamio-ffmpeg.gemspec b/streamio-ffmpeg.gemspec
index abc1234..def5678 100644
--- a/streamio-ffmpeg.gemspec
+++ b/streamio-ffmpeg.gemspec
@@ -13,7 +13,8 @@ s.summary = "Reads metadata and transcodes movies."
s.description = "Simple yet powerful wrapper around ffmpeg to get metadata from movies a... | Add rake to development dependencies so that we can bundle exec it. |
diff --git a/lib/dizby/server/abstract.rb b/lib/dizby/server/abstract.rb
index abc1234..def5678 100644
--- a/lib/dizby/server/abstract.rb
+++ b/lib/dizby/server/abstract.rb
@@ -21,7 +21,7 @@ @log = Dizby::Logger.new(config[:log] || {}, &log_transform)
end
- attr_reader :log
+ attr_reader :log, :confi... | Allow all server configuration to be accessed besides config_reader
|
diff --git a/spec/classes/example_spec.rb b/spec/classes/example_spec.rb
index abc1234..def5678 100644
--- a/spec/classes/example_spec.rb
+++ b/spec/classes/example_spec.rb
@@ -18,6 +18,9 @@
it { is_expected.to contain_service('uwsgi') }
it { is_expected.to contain_package('uwsgi').with_ensure('p... | Test to add uwsgi user and contain ini file
|
diff --git a/spec/classes/makeall_spec.rb b/spec/classes/makeall_spec.rb
index abc1234..def5678 100644
--- a/spec/classes/makeall_spec.rb
+++ b/spec/classes/makeall_spec.rb
@@ -4,16 +4,24 @@
it { should contain_class('sendmail::makeall') }
- [ 'Debian', 'RedHat' ].each do |operatingsystem|
- context "On #{ope... | Use rspec-puppet-facts for makeall class
|
diff --git a/lib/gitlab/reply_by_email.rb b/lib/gitlab/reply_by_email.rb
index abc1234..def5678 100644
--- a/lib/gitlab/reply_by_email.rb
+++ b/lib/gitlab/reply_by_email.rb
@@ -36,14 +36,12 @@ end
def address_regex
- @address_regex ||= begin
- wildcard_address = config.address
- ... | Fix spec by removing global state.
|
diff --git a/lib/rack/handler/fishwife.rb b/lib/rack/handler/fishwife.rb
index abc1234..def5678 100644
--- a/lib/rack/handler/fishwife.rb
+++ b/lib/rack/handler/fishwife.rb
@@ -15,8 +15,33 @@ #++
require 'fishwife'
+require 'rack/server'
+require 'rack/chunked'
module Rack
+
+ class Server
+ alias orig_middle... | Add Rack::Server.middleware override to drop default Rack::Chunked
|
diff --git a/lib/solidus_affirm/engine.rb b/lib/solidus_affirm/engine.rb
index abc1234..def5678 100644
--- a/lib/solidus_affirm/engine.rb
+++ b/lib/solidus_affirm/engine.rb
@@ -8,8 +8,6 @@ config.generators do |g|
g.test_framework :rspec
end
-
- config.autoload_paths += %W(#{config.root}/lib)
... | Remove lib from the autoload_paths
We already require what we need from lib manually.
Furthermore, Zeitwerk complains about lib/factories* not defining
the expected modules, so we need to stop autoloading it in order
to support Rails 6.
|
diff --git a/lib/super_settings/config.rb b/lib/super_settings/config.rb
index abc1234..def5678 100644
--- a/lib/super_settings/config.rb
+++ b/lib/super_settings/config.rb
@@ -7,7 +7,7 @@ # fetch! returns the value of they key if it exists. If it does not,
# it then either yields to a block if given, or throw... | Add openstruct [] support for ruby 1.9.3
|
diff --git a/lib/tracksperanto/tracker.rb b/lib/tracksperanto/tracker.rb
index abc1234..def5678 100644
--- a/lib/tracksperanto/tracker.rb
+++ b/lib/tracksperanto/tracker.rb
@@ -1,6 +1,7 @@ # Internal representation of a tracker point with keyframes. A Tracker is an array of Keyframe objects and should act and work like... | Simplify the Tracker code some
|
diff --git a/lib/versions/configurable.rb b/lib/versions/configurable.rb
index abc1234..def5678 100644
--- a/lib/versions/configurable.rb
+++ b/lib/versions/configurable.rb
@@ -3,12 +3,12 @@
# A simple configuration wrapper
class Config
- attr_accessor :base_dir, :filename_pattern, :class_prefix
+ ... | Update constant name to reflect use
|
diff --git a/app/controllers/vouchers_controller.rb b/app/controllers/vouchers_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/vouchers_controller.rb
+++ b/app/controllers/vouchers_controller.rb
@@ -1,6 +1,8 @@ # frozen_string_literal: true
class VouchersController < ApplicationController
+ skip_b... | Allow players from banned countries to claim vouchers
|
diff --git a/mrblib/virtual.rb b/mrblib/virtual.rb
index abc1234..def5678 100644
--- a/mrblib/virtual.rb
+++ b/mrblib/virtual.rb
@@ -27,7 +27,7 @@ path = config[:path] ? config[:path] : "jailing"
bind_cmd = config[:bind].map {|dir| "--bind #{dir}" }.join(" ") if config[:bind]
run_cmd = "#{path} --root=#{c... | Fix bug; raise error if jailing was failed
|
diff --git a/lib/spotify/api/artist.rb b/lib/spotify/api/artist.rb
index abc1234..def5678 100644
--- a/lib/spotify/api/artist.rb
+++ b/lib/spotify/api/artist.rb
@@ -1,9 +1,25 @@ module Spotify
class API
# @!group Artist
+
+ # @see #artist_is_loaded
+ # @note the artist must be loaded, or this function alw... | Add documentation to Artist subsystem |
diff --git a/lib/sycsvpro/allocator.rb b/lib/sycsvpro/allocator.rb
index abc1234..def5678 100644
--- a/lib/sycsvpro/allocator.rb
+++ b/lib/sycsvpro/allocator.rb
@@ -29,8 +29,9 @@ allocation = {}
File.open(infile).each_with_index do |line, index|
row = row_filter.process(line, row: index)
- ... | Fix Allocator when processing empty rows
|
diff --git a/opscommander.gemspec b/opscommander.gemspec
index abc1234..def5678 100644
--- a/opscommander.gemspec
+++ b/opscommander.gemspec
@@ -13,7 +13,7 @@ s.description = %q{Scripting for AWS OpsWorks}
s.add_runtime_dependency "commander", "~>4.2"
- s.add_runtime_dependency "aws-sdk", "~>1.0"
+ s.add_runti... | Update aws sdk version in gemspec too
|
diff --git a/config/puma.rb b/config/puma.rb
index abc1234..def5678 100644
--- a/config/puma.rb
+++ b/config/puma.rb
@@ -11,4 +11,3 @@ stdout_redirect root + 'log/puma.log', root + 'log/puma.err.log', true
threads 8, 32
workers 3
-prune_bundler
| Remove prune bundler line (causes issues in Ruby 2.3) |
diff --git a/config/initializers/task_scheduler.rb b/config/initializers/task_scheduler.rb
index abc1234..def5678 100644
--- a/config/initializers/task_scheduler.rb
+++ b/config/initializers/task_scheduler.rb
@@ -5,4 +5,6 @@ scheduler.every "20m" do
FeedFetcher.fetch_and_save_torrents_from_tpb
Torrent.process_ar... | Add similar artists processing to task scheduler.
|
diff --git a/app/controllers/bookings_controller.rb b/app/controllers/bookings_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/bookings_controller.rb
+++ b/app/controllers/bookings_controller.rb
@@ -1,4 +1,7 @@ class BookingsController < AuthorizedController
+ # Scopes
+ has_scope :by_value_period, ... | Drop special index handling for bookings, add by_value_period scoping.
|
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
@@ -48,6 +48,13 @@ redirect_to comments_path
end
+ def downvote
+ @comment = Comment.find(param... | Add downvote method on comments controller
|
diff --git a/app/controllers/contacts_controller.rb b/app/controllers/contacts_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/contacts_controller.rb
+++ b/app/controllers/contacts_controller.rb
@@ -1,6 +1,5 @@ class ContactsController < ApplicationController
before_filter :authenticate_user!
- in... | Change helper including with helpers method
|
diff --git a/app/controllers/products_controller.rb b/app/controllers/products_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/products_controller.rb
+++ b/app/controllers/products_controller.rb
@@ -1,6 +1,14 @@ class ProductsController < ApplicationController
def index
- @products = Product.whe... | Order products by how often we buy them
|
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
@@ -5,6 +5,7 @@ end
def create
+ reset_session # Counter session fixation
if request.env['om... | Reset session on creation (counter session fixation)
See issue #163
Signed-off-by: David A. Wheeler <9ae72d22d8b894b865a7a496af4fab6320e6abb2@dwheeler.com>
|
diff --git a/lib/alavetelitheme.rb b/lib/alavetelitheme.rb
index abc1234..def5678 100644
--- a/lib/alavetelitheme.rb
+++ b/lib/alavetelitheme.rb
@@ -22,8 +22,5 @@ # Plug theme-specific locale strings
require 'gettext_setup.rb'
-# Include classes handling connections to external platforms
-require 'irekia_bridge.rb'
... | Remove reference to obsolete Irekia file
|
diff --git a/app/controllers/api/committees_controller.rb b/app/controllers/api/committees_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/committees_controller.rb
+++ b/app/controllers/api/committees_controller.rb
@@ -1,10 +1,10 @@ class Api::CommitteesController < ApiController
def index
- @c... | Change API Committees Query To Multiple Criteria
|
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
@@ -42,10 +42,16 @@ redirect_to root_path
end
+ def upvote
+ @comment = Comment.find(params[:i... | Add method upvote on comments controller
|
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
@@ -1,4 +1,5 @@ class SessionsController < ApplicationController
+ include SessionsHelper
def new
... | Add SessionsHelper module to SessionsController
|
diff --git a/app/controllers/messages_controller.rb b/app/controllers/messages_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/messages_controller.rb
+++ b/app/controllers/messages_controller.rb
@@ -1,32 +1,32 @@-class MessagesController < ApplicationController
-
- def create
- message = Message.n... | Comment out controller for message.
|
diff --git a/app/controllers/rubygems_controller.rb b/app/controllers/rubygems_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/rubygems_controller.rb
+++ b/app/controllers/rubygems_controller.rb
@@ -3,7 +3,7 @@ before_filter :unauthorize_if_ready, only: [:edit, :update]
def index
- paginate ... | Reduce number of gems displayed per page
|
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
@@ -18,7 +18,7 @@ def destroy
user = User.find_by(id: session[:user_id])
session[:user_id] = ni... | Add conditional to check if there is a user for signout flash message
|
diff --git a/db/migrate/20120510224704_add_timestamps_to_instance_accounts_and_memberships.rb b/db/migrate/20120510224704_add_timestamps_to_instance_accounts_and_memberships.rb
index abc1234..def5678 100644
--- a/db/migrate/20120510224704_add_timestamps_to_instance_accounts_and_memberships.rb
+++ b/db/migrate/201205102... | Add timestamps to membership and instance account tables
|
diff --git a/bosh-director/spec/unit/worker_spec.rb b/bosh-director/spec/unit/worker_spec.rb
index abc1234..def5678 100644
--- a/bosh-director/spec/unit/worker_spec.rb
+++ b/bosh-director/spec/unit/worker_spec.rb
@@ -23,6 +23,7 @@ worker.prep
expect(worker.queues).to eq(['normal'])
Process.kill('USR... | Fix unit spec for ruby 1.9
Signed-off-by: Shatarupa Nandi <3efeaa499e3e1d586e0cf648346ba222fe46816b@pivotal.io>
|
diff --git a/bookingsync_application_engine.gemspec b/bookingsync_application_engine.gemspec
index abc1234..def5678 100644
--- a/bookingsync_application_engine.gemspec
+++ b/bookingsync_application_engine.gemspec
@@ -7,11 +7,11 @@ Gem::Specification.new do |s|
s.name = "bookingsync_application_engine"
s.ve... | Adjust gemspec to allow run `rake build`.
|
diff --git a/app/controllers/discounts_controller.rb b/app/controllers/discounts_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/discounts_controller.rb
+++ b/app/controllers/discounts_controller.rb
@@ -1,5 +1,5 @@ class DiscountsController < ApplicationController
- before_filter :admin_required
+ b... | Allow managers to manage discounts
|
diff --git a/app/controllers/team_name_controller.rb b/app/controllers/team_name_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/team_name_controller.rb
+++ b/app/controllers/team_name_controller.rb
@@ -1,5 +1,6 @@ class TeamNameController < ApplicationController
skip_before_action :verify_authenti... | Allow the widget to be loaded in an iframe
- This is so it can be embedded in a dashboard.
|
diff --git a/lib/instana/logger.rb b/lib/instana/logger.rb
index abc1234..def5678 100644
--- a/lib/instana/logger.rb
+++ b/lib/instana/logger.rb
@@ -10,6 +10,8 @@ self.level = Logger::DEBUG
elsif ENV.key?('INSTANA_GEM_DEV')
self.level = Logger::DEBUG
+ elsif ENV.key?('INSTANA_QUIET')
+ ... | Add support for an INSTANA_QUIET env var
|
diff --git a/app/services/asset_manager/attachment_updater/draft_status_updates.rb b/app/services/asset_manager/attachment_updater/draft_status_updates.rb
index abc1234..def5678 100644
--- a/app/services/asset_manager/attachment_updater/draft_status_updates.rb
+++ b/app/services/asset_manager/attachment_updater/draft_s... | Format a line in DraftStatusUpdates so the logic can be seen
Rather than having to read along the line, and try and work out the
nesting.
|
diff --git a/dpl-puppet_forge.gemspec b/dpl-puppet_forge.gemspec
index abc1234..def5678 100644
--- a/dpl-puppet_forge.gemspec
+++ b/dpl-puppet_forge.gemspec
@@ -1,3 +1,3 @@ require './gemspec_helper'
-gemspec_for 'puppet_forge', [['puppet'], ['puppet-blacksmith']]
+gemspec_for 'puppet_forge', [['puppet'], ['puppet-bl... | Add json_pure to puppet_forge runtime dependency
|
diff --git a/lib/quickstart/cli.rb b/lib/quickstart/cli.rb
index abc1234..def5678 100644
--- a/lib/quickstart/cli.rb
+++ b/lib/quickstart/cli.rb
@@ -5,7 +5,8 @@ module QuickStart
# CommandLine Interface for QuickStart
class CLI < ::Escort::ActionCommand::Base
- include Contracts
+ include ::Contracts::Core
... | Update contracts syntax in QuickStart::CLI
|
diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake
index abc1234..def5678 100644
--- a/lib/tasks/assets.rake
+++ b/lib/tasks/assets.rake
@@ -1,4 +1,9 @@ namespace :assets do
+ desc "Mark an asset as deleted"
+ task :delete, [:id] => :environment do |_t, args|
+ Asset.find(args.fetch(:id)).delete
+ end
+
... | Add a Rake task to mark an asset as deleted
This doesn't delete the file from S3.
|
diff --git a/app/controllers/parties_controller.rb b/app/controllers/parties_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/parties_controller.rb
+++ b/app/controllers/parties_controller.rb
@@ -1,6 +1,21 @@ class PartiesController < ApplicationController
caches_page :index
- # hmm, no caching of ... | Add comment about caching challenges.
|
diff --git a/app/controllers/sidebar_controller.rb b/app/controllers/sidebar_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/sidebar_controller.rb
+++ b/app/controllers/sidebar_controller.rb
@@ -1,6 +1,4 @@ class SidebarController < ApplicationController
-
-
def index
if flash[:sidebars]
... | Remove some whitespace that bugs me
git-svn-id: 70ab0960c3db1cbf656efd6df54a8f3de72dc710@1039 820eb932-12ee-0310-9ca8-eeb645f39767
|
diff --git a/app/graphql/types/team_member_type.rb b/app/graphql/types/team_member_type.rb
index abc1234..def5678 100644
--- a/app/graphql/types/team_member_type.rb
+++ b/app/graphql/types/team_member_type.rb
@@ -3,7 +3,10 @@ authorize_record
field :id, Int, null: false
- field :display, Boolean, null: false, d... | Fix deprecation warning from graphql-ruby
|
diff --git a/app/overrides/admin/products/_form.rb b/app/overrides/admin/products/_form.rb
index abc1234..def5678 100644
--- a/app/overrides/admin/products/_form.rb
+++ b/app/overrides/admin/products/_form.rb
@@ -10,3 +10,14 @@ eos
)
+Deface::Override.new(:virtual_path => "spree/admin/products/_form",
+ ... | Add short description to product backend
|
diff --git a/app/serializers/service_serializer.rb b/app/serializers/service_serializer.rb
index abc1234..def5678 100644
--- a/app/serializers/service_serializer.rb
+++ b/app/serializers/service_serializer.rb
@@ -16,7 +16,7 @@ end
def discontinued
- service.discontinued_services.order(:discontinued_at).last
+... | Make sure we don't query twice
|
diff --git a/test/decorators/optional_modules/newsletters/newsletter_setting_decorator_test.rb b/test/decorators/optional_modules/newsletters/newsletter_setting_decorator_test.rb
index abc1234..def5678 100644
--- a/test/decorators/optional_modules/newsletters/newsletter_setting_decorator_test.rb
+++ b/test/decorators/o... | Rewrite to test to make it pass with PostgreSQL
|
diff --git a/app/controllers/carto/builder/builder_users_module.rb b/app/controllers/carto/builder/builder_users_module.rb
index abc1234..def5678 100644
--- a/app/controllers/carto/builder/builder_users_module.rb
+++ b/app/controllers/carto/builder/builder_users_module.rb
@@ -8,7 +8,12 @@ end
def builder... | Check editor-3 feature flag in organization owner if applicable
|
diff --git a/app/controllers/concerns/users_controller_template.rb b/app/controllers/concerns/users_controller_template.rb
index abc1234..def5678 100644
--- a/app/controllers/concerns/users_controller_template.rb
+++ b/app/controllers/concerns/users_controller_template.rb
@@ -6,7 +6,7 @@ before_action :set_user!, o... | Verify names only on creation
|
diff --git a/files/default/tests/minitest/default_test.rb b/files/default/tests/minitest/default_test.rb
index abc1234..def5678 100644
--- a/files/default/tests/minitest/default_test.rb
+++ b/files/default/tests/minitest/default_test.rb
@@ -1,9 +1,10 @@-require File.expand_path('../support/helpers.rb', __FILE__)
-
-des... | Switch to use minitest-chef's package support
|
diff --git a/api/solidus_api.gemspec b/api/solidus_api.gemspec
index abc1234..def5678 100644
--- a/api/solidus_api.gemspec
+++ b/api/solidus_api.gemspec
@@ -16,6 +16,6 @@ gem.version = version
gem.add_dependency 'solidus_core', version
- gem.add_dependency 'rabl', '~> 0.9.4.pre1'
+ gem.add_dependency 'ra... | Allow rabl versions up to 0.11
|
diff --git a/test/integration/examples_test.rb b/test/integration/examples_test.rb
index abc1234..def5678 100644
--- a/test/integration/examples_test.rb
+++ b/test/integration/examples_test.rb
@@ -0,0 +1,17 @@+require 'test/unit'
+require 'stamina'
+require 'stamina/gui/examples'
+module Stamina
+ class ExamplesTest <... | Add integration tests on examples
|
diff --git a/mongoid-arraylist.gemspec b/mongoid-arraylist.gemspec
index abc1234..def5678 100644
--- a/mongoid-arraylist.gemspec
+++ b/mongoid-arraylist.gemspec
@@ -17,6 +17,6 @@ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ["lib"]
- gem.add_dependency "mongoid", "~> 3.0"
+... | Change gemspec to support mongoid2
|
diff --git a/lib/serverspec/matcher/be_installed.rb b/lib/serverspec/matcher/be_installed.rb
index abc1234..def5678 100644
--- a/lib/serverspec/matcher/be_installed.rb
+++ b/lib/serverspec/matcher/be_installed.rb
@@ -1,9 +1,9 @@ RSpec::Matchers.define :be_installed do
- match do |name|
- if name.class.name == 'Serv... | Rename parameter name -> subject
As discussed in #598 we change the parameter name from
match do |name|
to
match do |subject|
|
diff --git a/lib/wings/valkyrie/resource_factory.rb b/lib/wings/valkyrie/resource_factory.rb
index abc1234..def5678 100644
--- a/lib/wings/valkyrie/resource_factory.rb
+++ b/lib/wings/valkyrie/resource_factory.rb
@@ -0,0 +1,64 @@+# frozen_string_literal: true
+
+module Wings
+ module Valkyrie
+ class ResourceFactor... | Add an initial Valkyrie `ResourceFactory` to Wings
Incorporates an initial `Valkyrie::RescourceFactory` to unblock further work on
the Valkyrie adapter for `ActiveFedora` compatibility.
|
diff --git a/app/controllers/admin/impersonations_controller.rb b/app/controllers/admin/impersonations_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/admin/impersonations_controller.rb
+++ b/app/controllers/admin/impersonations_controller.rb
@@ -3,13 +3,13 @@ before_action :authenticate_impersonato... | Store original user in variable |
diff --git a/frontend/app/controllers/spree/store_controller.rb b/frontend/app/controllers/spree/store_controller.rb
index abc1234..def5678 100644
--- a/frontend/app/controllers/spree/store_controller.rb
+++ b/frontend/app/controllers/spree/store_controller.rb
@@ -43,7 +43,7 @@ [
current_store,
... | Use currently used locale for Etag cache keys rather then static default value |
diff --git a/test/hamlit/cli_test.rb b/test/hamlit/cli_test.rb
index abc1234..def5678 100644
--- a/test/hamlit/cli_test.rb
+++ b/test/hamlit/cli_test.rb
@@ -0,0 +1,22 @@+require 'hamlit/cli'
+
+describe Hamlit::CLI do
+ describe '#temple' do
+ def redirect_output
+ out, $stdout = $stdout, StringIO.new
+ y... | Add a test case for compiling a tag in CLI
|
diff --git a/app/controllers/questions_controller.rb b/app/controllers/questions_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/questions_controller.rb
+++ b/app/controllers/questions_controller.rb
@@ -0,0 +1,25 @@+class QuestionsController < ApplicationController
+ def index
+ end
+
+ def new
+ ... | Add controller methods for question creation
|
diff --git a/spec/datastax_rails/base_spec.rb b/spec/datastax_rails/base_spec.rb
index abc1234..def5678 100644
--- a/spec/datastax_rails/base_spec.rb
+++ b/spec/datastax_rails/base_spec.rb
@@ -12,4 +12,10 @@ p.save!
p.instance_variable_get(:@after_save_ran).should == "yup"
end
+
+ it "should raise Record... | Add pending test to highlight once finding non-existant IDs is fixed.
|
diff --git a/spec/unit/softlayer_base_spec.rb b/spec/unit/softlayer_base_spec.rb
index abc1234..def5678 100644
--- a/spec/unit/softlayer_base_spec.rb
+++ b/spec/unit/softlayer_base_spec.rb
@@ -0,0 +1,25 @@+#
+# Author:: Matt Eldridge (<matt.eldridge@us.ibm.com>)
+# © Copyright IBM Corporation 2014.
+#
+# LICENSE: Apach... | Add spec file for Chef::Knife::SoftlayerBase. Add user agent string test.
|
diff --git a/app/models/concerns/pg_search_common.rb b/app/models/concerns/pg_search_common.rb
index abc1234..def5678 100644
--- a/app/models/concerns/pg_search_common.rb
+++ b/app/models/concerns/pg_search_common.rb
@@ -4,10 +4,10 @@
module ClassMethods
def pg_search_common_scope(config = {})
- pg_search... | Change pg_search config's name to sth less generic
|
diff --git a/spec/dummy/config/initializers/new_framework_defaults.rb b/spec/dummy/config/initializers/new_framework_defaults.rb
index abc1234..def5678 100644
--- a/spec/dummy/config/initializers/new_framework_defaults.rb
+++ b/spec/dummy/config/initializers/new_framework_defaults.rb
@@ -22,3 +22,6 @@
# Configure SSL... | Add :time to timezone aware type for time columns
The Event model of the dummy app has a time column. Time columns will become time zone aware in Rails 5.1 so we need to add :time to the time zone aware types.
|
diff --git a/frontend/app/controllers/spree/products_controller.rb b/frontend/app/controllers/spree/products_controller.rb
index abc1234..def5678 100644
--- a/frontend/app/controllers/spree/products_controller.rb
+++ b/frontend/app/controllers/spree/products_controller.rb
@@ -31,6 +31,8 @@ end
end
... | Add Cache-Control headers for product show action using fresh_when
|
diff --git a/test/unit/services/service_listeners/attachment_redirect_url_updater_test.rb b/test/unit/services/service_listeners/attachment_redirect_url_updater_test.rb
index abc1234..def5678 100644
--- a/test/unit/services/service_listeners/attachment_redirect_url_updater_test.rb
+++ b/test/unit/services/service_liste... | Add test to ensure worker is called
We were missing a test case to ensure that the worker is called with
an attachment data instance is available.
|
diff --git a/config/initializers/search_callback.rb b/config/initializers/search_callback.rb
index abc1234..def5678 100644
--- a/config/initializers/search_callback.rb
+++ b/config/initializers/search_callback.rb
@@ -1,6 +1,6 @@ # In development environments we don't want to depend on Rummager unless
# explicitly told... | Update search in test too
|
diff --git a/app/models/analytics.rb b/app/models/analytics.rb
index abc1234..def5678 100644
--- a/app/models/analytics.rb
+++ b/app/models/analytics.rb
@@ -8,49 +8,24 @@
def track_user_creation
identify
- track(
- {
- user_id: user.id,
- event: 'Create User'
- }
- )
+ track(ev... | Refactor use of user id in Analytics model
|
diff --git a/transam_spatial.gemspec b/transam_spatial.gemspec
index abc1234..def5678 100644
--- a/transam_spatial.gemspec
+++ b/transam_spatial.gemspec
@@ -18,7 +18,7 @@
s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.rdoc"]
- s.add_dependency 'rails', '>=4.0.9'
+ s.add_dependency ... | Make the rails version in the gemspec more restrictive
|
diff --git a/config/initializers/events_observer.rb b/config/initializers/events_observer.rb
index abc1234..def5678 100644
--- a/config/initializers/events_observer.rb
+++ b/config/initializers/events_observer.rb
@@ -0,0 +1,2 @@+events_observer_debit_canceled = Neighborly::Balanced::EventsObserver::DebitCanceled.new
+N... | Add initializer to add the observer to event
|
diff --git a/db/fixtures/development/13_comments.rb b/db/fixtures/development/13_comments.rb
index abc1234..def5678 100644
--- a/db/fixtures/development/13_comments.rb
+++ b/db/fixtures/development/13_comments.rb
@@ -0,0 +1,13 @@+ActiveRecord::Base.observers.disable :all
+
+Issue.all.limit(10).each_with_index do |issue... | Add comments fixtures for development
Signed-off-by: Dmitriy Zaporozhets <be23d75b156792e5acab51b196a2deb155d35d6a@gmail.com>
|
diff --git a/spec/support/setup_database.rb b/spec/support/setup_database.rb
index abc1234..def5678 100644
--- a/spec/support/setup_database.rb
+++ b/spec/support/setup_database.rb
@@ -1,7 +1,6 @@-ActiveRecord::Base.configurations = {'test' => {adapter: 'sqlite3', database: ':memory:'}}
-ActiveRecord::Base.establish_co... | Extend ActiveRecord::Migration[5.0] if ActiveRecord::VERSION::MAJOR >= 5
|
diff --git a/db/migrate/20200312161329_add_root_account_id_to_master_courses_migration_results.rb b/db/migrate/20200312161329_add_root_account_id_to_master_courses_migration_results.rb
index abc1234..def5678 100644
--- a/db/migrate/20200312161329_add_root_account_id_to_master_courses_migration_results.rb
+++ b/db/migra... | Add root account id to course migration results
Closes PLAT-55573
Test Plan
- Verify migrations run
- Verify a root_account_id may bet set on a
MasterCourses::MigrationResult
- Verify MasterCourses::MigrationResult alwayslives
on the same shard as its root account
Change-Id: I0d73f4f8445773891b0acc00368aa6983a2f... |
diff --git a/lib/full_text_search/hooks/controller_search_index.rb b/lib/full_text_search/hooks/controller_search_index.rb
index abc1234..def5678 100644
--- a/lib/full_text_search/hooks/controller_search_index.rb
+++ b/lib/full_text_search/hooks/controller_search_index.rb
@@ -0,0 +1,11 @@+module FullTextSearch
+ modul... | Set default values for sorting
|
diff --git a/cookbooks/wordpress/recipes/default.rb b/cookbooks/wordpress/recipes/default.rb
index abc1234..def5678 100644
--- a/cookbooks/wordpress/recipes/default.rb
+++ b/cookbooks/wordpress/recipes/default.rb
@@ -26,7 +26,7 @@ php-mysql
]
-apache_module "php7.0"
+apache_module "php7.2"
apache_module "rewrite"... | Use PHP 7.2 for wordpress
|
diff --git a/cookbooks/wt_heatmap/recipes/import.rb b/cookbooks/wt_heatmap/recipes/import.rb
index abc1234..def5678 100644
--- a/cookbooks/wt_heatmap/recipes/import.rb
+++ b/cookbooks/wt_heatmap/recipes/import.rb
@@ -3,7 +3,7 @@ directory "/home/hadoop/log-drop" do
owner "hadoop"
group "hadoop"
- mode "0744"
+ ... | Modify the permissions on the data-drop directory from 744 to 755 so Nagios can monitor this dir
|
diff --git a/spot_rate.gemspec b/spot_rate.gemspec
index abc1234..def5678 100644
--- a/spot_rate.gemspec
+++ b/spot_rate.gemspec
@@ -6,7 +6,7 @@ gem.email = ["jeff.iacono@gmail.com"]
gem.description = %q{get current currency spot rates with ruby}
gem.summary = %q{current currency spot rates}
- ... | Add github as homepage to gemspec
|
diff --git a/lib/autodiscover_plus/pox_response.rb b/lib/autodiscover_plus/pox_response.rb
index abc1234..def5678 100644
--- a/lib/autodiscover_plus/pox_response.rb
+++ b/lib/autodiscover_plus/pox_response.rb
@@ -20,6 +20,8 @@ }
}
+ RESPONSE_SCHEMA = "http://schemas.microsoft.com/exchange/autodiscover/o... | Add support for EWS Url
|
diff --git a/lib/elastictastic/patron_transport.rb b/lib/elastictastic/patron_transport.rb
index abc1234..def5678 100644
--- a/lib/elastictastic/patron_transport.rb
+++ b/lib/elastictastic/patron_transport.rb
@@ -1,8 +1,8 @@ module Elastictastic
class PatronTransport
- def initialize(options = {})
+ def initia... | Make patron transport work with correct arguments
|
diff --git a/lib/vault/api/auth_token.rb b/lib/vault/api/auth_token.rb
index abc1234..def5678 100644
--- a/lib/vault/api/auth_token.rb
+++ b/lib/vault/api/auth_token.rb
@@ -0,0 +1,88 @@+require "json"
+
+require_relative "secret"
+require_relative "../client"
+require_relative "../request"
+require_relative "../respons... | Add endpoint for auth tokens |
diff --git a/lib/identificamex/mayusculas.rb b/lib/identificamex/mayusculas.rb
index abc1234..def5678 100644
--- a/lib/identificamex/mayusculas.rb
+++ b/lib/identificamex/mayusculas.rb
@@ -7,6 +7,7 @@ .upcase
.gsub(/ñ/, 'Ñ')
.gsub(/,/, '')
+ .gsub(/\./, '')
end
def hash_vocales
| Remove the dot (.) from string.
|
diff --git a/cookbooks/ms_dotnet4/recipes/default.rb b/cookbooks/ms_dotnet4/recipes/default.rb
index abc1234..def5678 100644
--- a/cookbooks/ms_dotnet4/recipes/default.rb
+++ b/cookbooks/ms_dotnet4/recipes/default.rb
@@ -9,7 +9,7 @@ # Code based off the PowerShell cookbook by Seth Chisamore
if platform?("windows")
-... | Add support for Windows Vista to the .NET 4.0 cookbook (best commit EVER)
|
diff --git a/features/support/env.rb b/features/support/env.rb
index abc1234..def5678 100644
--- a/features/support/env.rb
+++ b/features/support/env.rb
@@ -1,8 +1,10 @@ # encoding: utf-8
+require 'simplecov'
require 'codeclimate-test-reporter'
-CodeClimate::TestReporter.start
-
-require 'simplecov'
+SimpleCov.formatt... | Use MultiFormatter for CodeClimate test reporter
|
diff --git a/frontend-helpers.gemspec b/frontend-helpers.gemspec
index abc1234..def5678 100644
--- a/frontend-helpers.gemspec
+++ b/frontend-helpers.gemspec
@@ -17,7 +17,7 @@ spec.test_files = spec.files.grep(%r{^(spec)/})
spec.require_paths = ['lib']
- spec.add_development_dependency 'activemodel'
+ spec.a... | Add >= 3.2.1 version contraint on activemodel
|
diff --git a/domgen.gemspec b/domgen.gemspec
index abc1234..def5678 100644
--- a/domgen.gemspec
+++ b/domgen.gemspec
@@ -25,7 +25,7 @@ s.has_rdoc = false
s.rdoc_options = %w(--line-numbers --inline-source --title domgen)
- s.add_dependency 'reality-core', '= 1.2.0'
+ s.add_dependency 'reality-c... | Update to the latest reality-core
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.