diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/shared/rakefiles/xk.rake b/shared/rakefiles/xk.rake
index abc1234..def5678 100644
--- a/shared/rakefiles/xk.rake
+++ b/shared/rakefiles/xk.rake
@@ -19,6 +19,20 @@
Secrets.set_secrets(@secrets)
+ # This is temporary task to handle updates of existing clusters to Istio (GPII-3671)
+ sh_filter "sh -c ... | GPII-3671: Add Istio namespace migration code
|
diff --git a/lib/grafana/user.rb b/lib/grafana/user.rb
index abc1234..def5678 100644
--- a/lib/grafana/user.rb
+++ b/lib/grafana/user.rb
@@ -17,7 +17,7 @@
def switch_current_user_org(org_id)
endpoint = "/api/user/using/#{org_id}"
- @logger.info("Switching current user to Org ID #{id} (GET #{endpoint})... | Fix setting current org with debugging on
|
diff --git a/lib/generators/translation_for_generator.rb b/lib/generators/translation_for_generator.rb
index abc1234..def5678 100644
--- a/lib/generators/translation_for_generator.rb
+++ b/lib/generators/translation_for_generator.rb
@@ -19,7 +19,7 @@ template 'model.rb.erb', File.join('app/models', class_path, "#{f... | Fix migration generator for >= 4.1
`create_migration` method is reserved
More details is here: https://github.com/muratguzel/letsrate/issues/76#issuecomment-76588483 |
diff --git a/lib/rubocop/cop/performance/reverse_each.rb b/lib/rubocop/cop/performance/reverse_each.rb
index abc1234..def5678 100644
--- a/lib/rubocop/cop/performance/reverse_each.rb
+++ b/lib/rubocop/cop/performance/reverse_each.rb
@@ -15,26 +15,27 @@ # [].reverse_each
class ReverseEach < Cop
M... | Modify ReverseEach to use NodePattern
|
diff --git a/spec/lib/everything/blog/output/media_spec.rb b/spec/lib/everything/blog/output/media_spec.rb
index abc1234..def5678 100644
--- a/spec/lib/everything/blog/output/media_spec.rb
+++ b/spec/lib/everything/blog/output/media_spec.rb
@@ -0,0 +1,35 @@+require 'pp' # Helps prevent an error like: 'superclass mismat... | Add the start of a Output::Media spec
|
diff --git a/lib/roger_themes.rb b/lib/roger_themes.rb
index abc1234..def5678 100644
--- a/lib/roger_themes.rb
+++ b/lib/roger_themes.rb
@@ -3,3 +3,7 @@ module RogerThemes
# Your code goes here...
end
+
+require "roger_themes/middleware"
+require "roger_themes/processor"
+require "roger_themes/xc_finalizer"
| Load middleware, processor and finalizers from lib root
|
diff --git a/lib/signore/repo.rb b/lib/signore/repo.rb
index abc1234..def5678 100644
--- a/lib/signore/repo.rb
+++ b/lib/signore/repo.rb
@@ -6,12 +6,14 @@
module Signore
class Repo
+ class << self
+ def default_path
+ dir = ENV.fetch('XDG_DATA_HOME') { File.expand_path('~/.local/share') }
+ P... | Switch Repo to class << self
|
diff --git a/lib/stripe/order.rb b/lib/stripe/order.rb
index abc1234..def5678 100644
--- a/lib/stripe/order.rb
+++ b/lib/stripe/order.rb
@@ -13,12 +13,20 @@
def pay(params = {}, opts = {})
resp, opts = request(:post, resource_url + "/pay", params, opts)
- initialize_from(resp.data, opts)
+ Util.c... | Add some private methods back to Order
|
diff --git a/test/lat_lng_test.rb b/test/lat_lng_test.rb
index abc1234..def5678 100644
--- a/test/lat_lng_test.rb
+++ b/test/lat_lng_test.rb
@@ -23,11 +23,11 @@ end
it 'returns x offset' do
- slippy_map_tile_number[:offset][:x].must_equal 0.3400497777777787
+ slippy_map_tile_number[:offset][:x].rou... | Make lat_lng test machine precision safe
|
diff --git a/spec/sinatra/activerecord/rake_spec.rb b/spec/sinatra/activerecord/rake_spec.rb
index abc1234..def5678 100644
--- a/spec/sinatra/activerecord/rake_spec.rb
+++ b/spec/sinatra/activerecord/rake_spec.rb
@@ -1,14 +1,15 @@ require 'spec_helper'
require 'fileutils'
-class ActiveRecord::Migration
- def migrat... | Replace removed method alias_method_chain with Module prepend
Replace removed method alias_method_chain (removed in Rails 6) with Module prepend
|
diff --git a/mini_magick.gemspec b/mini_magick.gemspec
index abc1234..def5678 100644
--- a/mini_magick.gemspec
+++ b/mini_magick.gemspec
@@ -9,6 +9,7 @@ s.platform = Gem::Platform::RUBY
s.summary = "Manipulate images with minimal use of memory via ImageMagick / GraphicsMagick"
s.description = ""
+ s.req... | Add external requirements to gemspec.
|
diff --git a/0_code_wars/grasshopper_debug_say_hello.rb b/0_code_wars/grasshopper_debug_say_hello.rb
index abc1234..def5678 100644
--- a/0_code_wars/grasshopper_debug_say_hello.rb
+++ b/0_code_wars/grasshopper_debug_say_hello.rb
@@ -0,0 +1,5 @@+# http://www.codewars.com/kata/grasshopper-debug-sayhello/
+# --- iteration... | Add code wars (8) - say hello
|
diff --git a/BHCDatabase/test/models/attendance_test.rb b/BHCDatabase/test/models/attendance_test.rb
index abc1234..def5678 100644
--- a/BHCDatabase/test/models/attendance_test.rb
+++ b/BHCDatabase/test/models/attendance_test.rb
@@ -20,4 +20,11 @@ assert_not @attendance.valid?
end
+ test 'index on user_id and... | Add test for index on user_id and meeting_id for an attendance.
|
diff --git a/config/initializers/secure_headers.rb b/config/initializers/secure_headers.rb
index abc1234..def5678 100644
--- a/config/initializers/secure_headers.rb
+++ b/config/initializers/secure_headers.rb
@@ -1,5 +1,5 @@ ::SecureHeaders::Configuration.configure do |config|
- config.hsts = {:max_age => 1.month.to_i... | Set HSTS to 1 year
|
diff --git a/config.ru b/config.ru
index abc1234..def5678 100644
--- a/config.ru
+++ b/config.ru
@@ -1,8 +1,4 @@ # This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
-
-# Let rack know if we're running relative to a subdirectory
-Rails.app... | Revert "Let rack know if we're running relative to a subdirectory"
This reverts commit 2c03f05bb3d48f02472cf096fbdf0d069bc21583.
|
diff --git a/app/controllers/admin/admin_controller.rb b/app/controllers/admin/admin_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/admin/admin_controller.rb
+++ b/app/controllers/admin/admin_controller.rb
@@ -9,7 +9,6 @@
before_action :set_appsignal_namespace
before_action :do_not_cache
-... | Remove ip restriction on admin page
|
diff --git a/app/controllers/admin/cards_controller.rb b/app/controllers/admin/cards_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/admin/cards_controller.rb
+++ b/app/controllers/admin/cards_controller.rb
@@ -9,7 +9,11 @@ end
def update
-
+ if @card.update(card_params)
+ redirect_to a... | Allow card to be updated
|
diff --git a/app/controllers/communities_controller.rb b/app/controllers/communities_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/communities_controller.rb
+++ b/app/controllers/communities_controller.rb
@@ -1,8 +1,6 @@ class CommunitiesController < ApplicationController
- TOPIC_ORDERS = %w[newest... | Remove redundant method to set order
It was being incorrectly detected as used in a dangerous send. We can
get rid of the warning by taking advantage of the `has_orders` method
and getting rid of this code.
|
diff --git a/lib/merb-settings/adapters/datamapper/model.rb b/lib/merb-settings/adapters/datamapper/model.rb
index abc1234..def5678 100644
--- a/lib/merb-settings/adapters/datamapper/model.rb
+++ b/lib/merb-settings/adapters/datamapper/model.rb
@@ -22,7 +22,7 @@ base.class_eval do
property :id, I... | Allow for longer Setting values. |
diff --git a/app/models/placement.rb b/app/models/placement.rb
index abc1234..def5678 100644
--- a/app/models/placement.rb
+++ b/app/models/placement.rb
@@ -1,10 +1,4 @@ class Placement < ActiveRecord::Base
belongs_to :couple
belongs_to :event
-
- # Returns a string representation of the rank suitable for displa... | Remove unused `rank_to_s` from `Placement`
This was from when I was still figuring out the appropriate interface
for converting the rank.
|
diff --git a/spec/capi/spec_helper.rb b/spec/capi/spec_helper.rb
index abc1234..def5678 100644
--- a/spec/capi/spec_helper.rb
+++ b/spec/capi/spec_helper.rb
@@ -12,8 +12,23 @@ # TODO use Tap; write a common ext build task
if RUBY_NAME == 'rbx'
`./bin/rbx compile -I#{Rubinius::HDR_PATH} #{ext_source}`
+ elsif... | Fix building C-API spec extensions with MRI.
|
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
@@ -4,6 +4,12 @@ before_save :set_refreshed_at
def set_refreshed_at
- self.new_record? ? self.refreshed_at = self.created_at.to_i : self
+ if self.new_record?
+ self... | Set refreshed_at to current time upon record creation
|
diff --git a/plugins/provisioners/ansible/provisioner.rb b/plugins/provisioners/ansible/provisioner.rb
index abc1234..def5678 100644
--- a/plugins/provisioners/ansible/provisioner.rb
+++ b/plugins/provisioners/ansible/provisioner.rb
@@ -19,9 +19,15 @@ options << "--sudo-user=#{config.sudo_user}" if config.sudo_... | Use Vagrant::Util::Subprocess.execute instead of SafeExec
|
diff --git a/features/support/matchers/expect_uploaded_csv_to_include.rb b/features/support/matchers/expect_uploaded_csv_to_include.rb
index abc1234..def5678 100644
--- a/features/support/matchers/expect_uploaded_csv_to_include.rb
+++ b/features/support/matchers/expect_uploaded_csv_to_include.rb
@@ -13,7 +13,7 @@ p... | Remove number parsing from FakeCSV reader
An appointment type of `50_54` was being coerced as a number
and resulting in `5054`. As we no longer have any numbers in the
CSV, we it is no longer required.
|
diff --git a/Casks/istat-menus4.rb b/Casks/istat-menus4.rb
index abc1234..def5678 100644
--- a/Casks/istat-menus4.rb
+++ b/Casks/istat-menus4.rb
@@ -2,7 +2,7 @@ version '4.22'
sha256 '4e6873b24d18578e359b9363f02b9c98bdeda999afab1aaa8802af254ecb35b6'
- url "http://s3.amazonaws.com/bjango/files/istatmenus4/istatm... | Update istat menus 4 download link to https |
diff --git a/app/controllers/export_controller.rb b/app/controllers/export_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/export_controller.rb
+++ b/app/controllers/export_controller.rb
@@ -0,0 +1,8 @@+class ExportController < ApplicationController
+ def start
+ render :update do |page|
+ pa... | Use named constants for HTTP response codes.
|
diff --git a/app/controllers/uptime_controller.rb b/app/controllers/uptime_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/uptime_controller.rb
+++ b/app/controllers/uptime_controller.rb
@@ -31,7 +31,7 @@ render json: {status: "success"}, status: 200
else
easy.body_str.force_encoding... | Fix encoding problem where uptime check on keyword fails
|
diff --git a/app/helpers/admin/editions_helper.rb b/app/helpers/admin/editions_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/admin/editions_helper.rb
+++ b/app/helpers/admin/editions_helper.rb
@@ -1,2 +1,15 @@ module Admin::EditionsHelper
+ def setup_association(object, associated, opts)
+ associated = ... | Add a helper that will make sure that we have a given number of associated objects. We use this to build relationships for our nested model forms
|
diff --git a/app/controllers/reservations_controller.rb b/app/controllers/reservations_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/reservations_controller.rb
+++ b/app/controllers/reservations_controller.rb
@@ -13,7 +13,7 @@ data_for_dropdowns
if @reservation.save
- flash.notice = ... | Change flash type for success message
|
diff --git a/app/lib/contacts/distributed_lock.rb b/app/lib/contacts/distributed_lock.rb
index abc1234..def5678 100644
--- a/app/lib/contacts/distributed_lock.rb
+++ b/app/lib/contacts/distributed_lock.rb
@@ -10,25 +10,12 @@ end
def lock
- redis.lock("contacts-admin:#{Rails.env}:#{@lock_name}", life: LI... | Remove need for REDIS_HOST and REDIS_PORT env vars
This is one of the few GOV.UK projects that uses this old approach to
configuring Redis - whereas most of the other ones use the approach
supported natively by the Redis gem [1] of using REDIS_URL. Removing
this will allow us to remove the need for REDIS_HOST and REDI... |
diff --git a/app/models/bookyt_salary/employee.rb b/app/models/bookyt_salary/employee.rb
index abc1234..def5678 100644
--- a/app/models/bookyt_salary/employee.rb
+++ b/app/models/bookyt_salary/employee.rb
@@ -3,6 +3,9 @@ extend ActiveSupport::Concern
included do
+ # Associations
+ has_many :salarie... | Include Employee.salaries association definition in BookytSalary::Employee.
|
diff --git a/opal-jquery.gemspec b/opal-jquery.gemspec
index abc1234..def5678 100644
--- a/opal-jquery.gemspec
+++ b/opal-jquery.gemspec
@@ -15,6 +15,6 @@ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.require_paths = ['lib']
- s.add_runtime_dependency 'opal', '>= 0.3.43'
+ s.add_ru... | Fix the required opal version
Previous version was lacking #to_n and still using
#to_native. |
diff --git a/app/presenters/redirect_presenter.rb b/app/presenters/redirect_presenter.rb
index abc1234..def5678 100644
--- a/app/presenters/redirect_presenter.rb
+++ b/app/presenters/redirect_presenter.rb
@@ -8,6 +8,7 @@ def render_for_publishing_api
{
content_id: redirect.content_id,
+ base_path: ba... | Add base path to redirects. |
diff --git a/app/models/event.rb b/app/models/event.rb
index abc1234..def5678 100644
--- a/app/models/event.rb
+++ b/app/models/event.rb
@@ -1,18 +1,22 @@ class Event < ActiveRecord::Base
- def self.find_lat_lon
+ def self.find_lat_lon max
self.find_by_sql <<-SQL
select st_x(point) as longitude, st_y(poin... | Fix for bad point math; probably picked the right side of begm/endm to exclude; don't use roads in decreasing direction
|
diff --git a/app/models/event.rb b/app/models/event.rb
index abc1234..def5678 100644
--- a/app/models/event.rb
+++ b/app/models/event.rb
@@ -1,7 +1,6 @@ class Event < ApplicationRecord
has_many :shifts, dependent: :destroy
- validates :volunteers_needed, :starts_at, :ends_at, presence: true
validates :shift_le... | Remove validations from Event model
|
diff --git a/app/models/field.rb b/app/models/field.rb
index abc1234..def5678 100644
--- a/app/models/field.rb
+++ b/app/models/field.rb
@@ -4,4 +4,41 @@ belongs_to :field_unit
has_many :parameter_group_fields
has_many :parameter_groups, through: :parameter_group_fields
+
+ default_scope { order 'name, length'... | Add formatted values and default scope
|
diff --git a/attributes/pagespeed.rb b/attributes/pagespeed.rb
index abc1234..def5678 100644
--- a/attributes/pagespeed.rb
+++ b/attributes/pagespeed.rb
@@ -5,5 +5,5 @@ default['nginx']['pagespeed']['version'] = '1.11.33.2'
default['nginx']['pagespeed']['url'] = "https://github.com/pagespeed/ngx_pagespeed/archive/... | Remove duplicate packages from the page speed module attributes
We're already installing these all in build-essential which comes in via the source recipe
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
|
diff --git a/lib/deployable.rb b/lib/deployable.rb
index abc1234..def5678 100644
--- a/lib/deployable.rb
+++ b/lib/deployable.rb
@@ -1,5 +1,8 @@ require "deployable/version"
+unless Capistrano::Configuration.respond_to?(:instance)
+ abort "This extension requires Capistrano 2"
+end
+
module Deployable
- # Your cod... | Make sure we have capistrano 2.x
|
diff --git a/periodicity.gemspec b/periodicity.gemspec
index abc1234..def5678 100644
--- a/periodicity.gemspec
+++ b/periodicity.gemspec
@@ -1,14 +1,22 @@ # -*- encoding: utf-8 -*-
require File.expand_path('../lib/periodicity/version', __FILE__)
-Gem::Specification.new do |gem|
- gem.name = 'periodicity'
- ... | Update gemspec according to Bundler scaffold
|
diff --git a/app/models/competitions/blind_date_at_the_dairy_overall.rb b/app/models/competitions/blind_date_at_the_dairy_overall.rb
index abc1234..def5678 100644
--- a/app/models/competitions/blind_date_at_the_dairy_overall.rb
+++ b/app/models/competitions/blind_date_at_the_dairy_overall.rb
@@ -0,0 +1,36 @@+class Blin... | Add Blind Date series calculations
|
diff --git a/growl_windows.gemspec b/growl_windows.gemspec
index abc1234..def5678 100644
--- a/growl_windows.gemspec
+++ b/growl_windows.gemspec
@@ -1,6 +1,6 @@ Gem::Specification.new do |s|
s.name = "growl_windows"
- s.version = "0.1.0"
+ s.version = "0.1.1"
s.authors = "debbbbie"
... | Add gem dependencis to gemspec
|
diff --git a/helpers/photoswipe_helpers.rb b/helpers/photoswipe_helpers.rb
index abc1234..def5678 100644
--- a/helpers/photoswipe_helpers.rb
+++ b/helpers/photoswipe_helpers.rb
@@ -3,7 +3,7 @@ size = image_size(image.url)
w = size.w
h = size.h
- link = link_to thumbnail(image, w: 200), image.url,... | Make thumbnail a little bigger
|
diff --git a/app/models/asset.rb b/app/models/asset.rb
index abc1234..def5678 100644
--- a/app/models/asset.rb
+++ b/app/models/asset.rb
@@ -26,8 +26,11 @@
has_attached_file :file
validates_presence_of :asset_type
- validates_attachment_content_type :file, content_type: %w(application/vnd.ms-excel
+ validates_... | Support a arquivos pptx e xlsx
|
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
@@ -7,8 +7,8 @@
paginates_per 100
- validates :md5, uniqueness: { scope: :album_id },
- on: :create, message: 'This image already exists in the album'
+ valid... | Fix issue with md5 validation. |
diff --git a/axiom-types.gemspec b/axiom-types.gemspec
index abc1234..def5678 100644
--- a/axiom-types.gemspec
+++ b/axiom-types.gemspec
@@ -14,7 +14,7 @@
gem.require_paths = %w[lib]
gem.files = `git ls-files`.split($/)
- gem.test_files = `git ls-files spec/{unit,integration}`.split($/)
+ g... | Fix path to test files
|
diff --git a/lib/heroku/command/json.rb b/lib/heroku/command/json.rb
index abc1234..def5678 100644
--- a/lib/heroku/command/json.rb
+++ b/lib/heroku/command/json.rb
@@ -13,7 +13,7 @@ json = File.read('heroku.json')
json = JSON.parse(json)
bootstrapper = Bootstrapper.new(api, app, json)
- Heroku::Helper... | Switch to the standard heroku billing message
|
diff --git a/test/unit/csv_parser_test.rb b/test/unit/csv_parser_test.rb
index abc1234..def5678 100644
--- a/test/unit/csv_parser_test.rb
+++ b/test/unit/csv_parser_test.rb
@@ -8,10 +8,10 @@ end
test "can convert a CSV into an Array of Hash objects" do
- csv_string = <<~EOS
+ csv_string = <<~CSV
slu... | Use CSV rather than EOS for the heredoc
As this is more informative.
|
diff --git a/lib/exception_notification/resque.rb b/lib/exception_notification/resque.rb
index abc1234..def5678 100644
--- a/lib/exception_notification/resque.rb
+++ b/lib/exception_notification/resque.rb
@@ -13,7 +13,7 @@ failed_at: Time.now.to_s,
payload: payload,
queue: queue,
- work... | Fix syntax error and Style/TrailingCommaInLiteral offense
|
diff --git a/lib/generators/delayed/web/install_generator.rb b/lib/generators/delayed/web/install_generator.rb
index abc1234..def5678 100644
--- a/lib/generators/delayed/web/install_generator.rb
+++ b/lib/generators/delayed/web/install_generator.rb
@@ -4,7 +4,7 @@ source_root File.expand_path('../templates', __FI... | Fix typo in method name.
|
diff --git a/lib/generators/paper_trail/install_generator.rb b/lib/generators/paper_trail/install_generator.rb
index abc1234..def5678 100644
--- a/lib/generators/paper_trail/install_generator.rb
+++ b/lib/generators/paper_trail/install_generator.rb
@@ -8,7 +8,7 @@ extend ActiveRecord::Generators::Migration
s... | Fix description option and update text.
|
diff --git a/lib/pry/commands/watch_expression/expression.rb b/lib/pry/commands/watch_expression/expression.rb
index abc1234..def5678 100644
--- a/lib/pry/commands/watch_expression/expression.rb
+++ b/lib/pry/commands/watch_expression/expression.rb
@@ -1,34 +1,28 @@ class Pry
class Command::WatchExpression
clas... | Use string difference in watch
|
diff --git a/lib/anaconda/form_builder_helpers.rb b/lib/anaconda/form_builder_helpers.rb
index abc1234..def5678 100644
--- a/lib/anaconda/form_builder_helpers.rb
+++ b/lib/anaconda/form_builder_helpers.rb
@@ -1,7 +1,7 @@ module Anaconda
module FormBuilderHelpers
- def anaconda_form_fields( anaconda_field_name )... | Rename form builder helper to just 'anaconda'
|
diff --git a/cookbooks/ondemand_base/recipes/ubuntu.rb b/cookbooks/ondemand_base/recipes/ubuntu.rb
index abc1234..def5678 100644
--- a/cookbooks/ondemand_base/recipes/ubuntu.rb
+++ b/cookbooks/ondemand_base/recipes/ubuntu.rb
@@ -9,9 +9,10 @@ include_recipe "openssh"
include_recipe "ntp"
-#Use experience recipes
+#Us... | Add networking_basic cookbook to Ubuntu
|
diff --git a/schema.gemspec b/schema.gemspec
index abc1234..def5678 100644
--- a/schema.gemspec
+++ b/schema.gemspec
@@ -2,7 +2,7 @@ Gem::Specification.new do |s|
s.name = 'evt-schema'
s.summary = "Primitives for schema and data structure"
- s.version = '2.3.1.1'
+ s.version = '2.3.1.3'
s.description = ' '
... | Package version increased from 2.3.1.2 to 2.3.1.3
|
diff --git a/lib/puppet/indirector/node/stacks.rb b/lib/puppet/indirector/node/stacks.rb
index abc1234..def5678 100644
--- a/lib/puppet/indirector/node/stacks.rb
+++ b/lib/puppet/indirector/node/stacks.rb
@@ -22,7 +22,7 @@ node = super
classes = find_stack_classes(node.parameters['fqdn'])
if classes
- ... | Fix blowing up gary found. Why do we have no tests for this???
|
diff --git a/lib/submit_once/controller_helper.rb b/lib/submit_once/controller_helper.rb
index abc1234..def5678 100644
--- a/lib/submit_once/controller_helper.rb
+++ b/lib/submit_once/controller_helper.rb
@@ -42,11 +42,15 @@ [@__form_token_key, @__form_token]
end
+ def clean_expired_token_probably
+ ... | Add random clean expired token method; set expired time to 10 minutes
|
diff --git a/http-commands.gemspec b/http-commands.gemspec
index abc1234..def5678 100644
--- a/http-commands.gemspec
+++ b/http-commands.gemspec
@@ -1,6 +1,6 @@ Gem::Specification.new do |s|
s.name = 'http-commands'
- s.version = '0.0.2.2'
+ s.version = '0.0.2.3'
s.summary = 'Convenience abstractions for common... | Package version is increased from 0.0.2.2 to 0.0.2.3
|
diff --git a/Formula/kde-phonon.rb b/Formula/kde-phonon.rb
index abc1234..def5678 100644
--- a/Formula/kde-phonon.rb
+++ b/Formula/kde-phonon.rb
@@ -13,6 +13,8 @@ keg_only "This package is already supplied by Qt and is only needed by KDE packages."
def install
+ inreplace 'cmake/FindPhononInternal.cmake',
+ ... | Patch phonon-kde to avoid incorrect error.
Fixes Homebrew/homebrew#5480.
|
diff --git a/sample/spec/lib/load_sample_spec.rb b/sample/spec/lib/load_sample_spec.rb
index abc1234..def5678 100644
--- a/sample/spec/lib/load_sample_spec.rb
+++ b/sample/spec/lib/load_sample_spec.rb
@@ -1,6 +1,15 @@ require 'spec_helper'
describe "Load samples" do
+ before do
+ # Seeds are only run for rake te... | Fix rerunning sample specs without new dummy app.
|
diff --git a/rb/spec/unit/selenium/webdriver/remote/http/default_spec.rb b/rb/spec/unit/selenium/webdriver/remote/http/default_spec.rb
index abc1234..def5678 100644
--- a/rb/spec/unit/selenium/webdriver/remote/http/default_spec.rb
+++ b/rb/spec/unit/selenium/webdriver/remote/http/default_spec.rb
@@ -29,6 +29,8 @@ ... | JariBakken: Update spec to check host of proxied HTTP client.
r10680
|
diff --git a/bin/git_gem_diff.rb b/bin/git_gem_diff.rb
index abc1234..def5678 100644
--- a/bin/git_gem_diff.rb
+++ b/bin/git_gem_diff.rb
@@ -0,0 +1,48 @@+#!/usr/bin/ruby
+# Diff a Git Gem Against its Rubygems equivalent
+#
+# ./git_gem_diff.rb
+#
+# Licensed under the MIT license
+# Copyright (C) 2014 Red Hat, Inc.
+#... | Add cmd-line utility to diff a git repo against a rubygem
|
diff --git a/lib/sequent/test/database_helpers.rb b/lib/sequent/test/database_helpers.rb
index abc1234..def5678 100644
--- a/lib/sequent/test/database_helpers.rb
+++ b/lib/sequent/test/database_helpers.rb
@@ -3,11 +3,13 @@ module Sequent
module Test
module DatabaseHelpers
+ ALLOWED_ENS = %w[development tes... | Allow maintain_test_database_schema usage for development as well
Handy if you programmatically want to create the database schema in development.
|
diff --git a/lib/uri/query_params/query_params.rb b/lib/uri/query_params/query_params.rb
index abc1234..def5678 100644
--- a/lib/uri/query_params/query_params.rb
+++ b/lib/uri/query_params/query_params.rb
@@ -44,16 +44,15 @@ query = []
query_params.each do |name,value|
- param = if value == true
+... | Use a case/when statement in QueryParams.dump.
|
diff --git a/test/application/config/environment.rb b/test/application/config/environment.rb
index abc1234..def5678 100644
--- a/test/application/config/environment.rb
+++ b/test/application/config/environment.rb
@@ -1,4 +1,4 @@-RAILS_GEM_VERSION = '2.3.2' unless defined? RAILS_GEM_VERSION
+RAILS_GEM_VERSION = '2.3.5' ... | Update baseline Rails version to 2.3.5 |
diff --git a/test/support/model_stubbing_helpers.rb b/test/support/model_stubbing_helpers.rb
index abc1234..def5678 100644
--- a/test/support/model_stubbing_helpers.rb
+++ b/test/support/model_stubbing_helpers.rb
@@ -1,11 +1,6 @@ module ModelStubbingHelpers
def stub_record(type, options = {})
- result = build(typ... | Use FactoryGirl.build_stubbed instead of a hand-rolled solution.
`FactoryGirl.build_stubbed` takes care of all this (and more).
I had run into problems with the previous implementation where, because
the "stub record" was still an instance of the `ActiveRecord::Base`
subclass (albeit with lots of stubbed method), and... |
diff --git a/section02/lesson02/straight_eight_boogie.rb b/section02/lesson02/straight_eight_boogie.rb
index abc1234..def5678 100644
--- a/section02/lesson02/straight_eight_boogie.rb
+++ b/section02/lesson02/straight_eight_boogie.rb
@@ -3,7 +3,7 @@
def straight_eight_boogie_alternating_treble(note, quality = :major, ... | Allow straight eight boogie alternating to support a regression
|
diff --git a/spec/factories/janus_instance.rb b/spec/factories/janus_instance.rb
index abc1234..def5678 100644
--- a/spec/factories/janus_instance.rb
+++ b/spec/factories/janus_instance.rb
@@ -1,7 +1,7 @@ # frozen_string_literal: true
FactoryBot.define do
- factory :janus_instance, class: RubyRabbitmqJanus::Models:... | Fix rule factory class name
|
diff --git a/spec/models/coronavirus/live_stream_spec.rb b/spec/models/coronavirus/live_stream_spec.rb
index abc1234..def5678 100644
--- a/spec/models/coronavirus/live_stream_spec.rb
+++ b/spec/models/coronavirus/live_stream_spec.rb
@@ -10,17 +10,12 @@ end
it "is invalid without a url" do
- expect(descr... | Use FactoryBot for validating Coronavirus::LiveStream
This is a more conventional approach for setting the model up
validation. It also using build rather than create which saves having to
hit the DB for a test.
This removes the tests for formatted_stream_date as it seems rather
unconventional to have tests that it's... |
diff --git a/db/migrate/1_create_retailers_retailers.rb b/db/migrate/1_create_retailers_retailers.rb
index abc1234..def5678 100644
--- a/db/migrate/1_create_retailers_retailers.rb
+++ b/db/migrate/1_create_retailers_retailers.rb
@@ -10,7 +10,7 @@ t.string :fax
t.string :email
t.string :website
- ... | Add default true to draft
|
diff --git a/lib/asciidoctor/latex/inject_html.rb b/lib/asciidoctor/latex/inject_html.rb
index abc1234..def5678 100644
--- a/lib/asciidoctor/latex/inject_html.rb
+++ b/lib/asciidoctor/latex/inject_html.rb
@@ -27,20 +27,32 @@
<script>
- $(document).ready(function(){
- $('.openblock.click').click( function() { $... | Fix error in js code so that click blocks now function properly (hide/unhide)
|
diff --git a/lib/cinch/plugins/pax-timer/paxes.rb b/lib/cinch/plugins/pax-timer/paxes.rb
index abc1234..def5678 100644
--- a/lib/cinch/plugins/pax-timer/paxes.rb
+++ b/lib/cinch/plugins/pax-timer/paxes.rb
@@ -22,8 +22,8 @@ estimated: true },
{ type: 'east',
name: 'PAX East',
- ... | Add expected East 2017 date
From https://web.archive.org/web/20150406071050/http://massconvention.com/events/2017/02 |
diff --git a/lib/solidus_cmd/templates/extension/extension.gemspec b/lib/solidus_cmd/templates/extension/extension.gemspec
index abc1234..def5678 100644
--- a/lib/solidus_cmd/templates/extension/extension.gemspec
+++ b/lib/solidus_cmd/templates/extension/extension.gemspec
@@ -11,7 +11,7 @@
# s.author = 'You'
... | Use example.com in sample gemspec
|
diff --git a/spec/controllers/gestionnaires/passwords_controller_spec.rb b/spec/controllers/gestionnaires/passwords_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/gestionnaires/passwords_controller_spec.rb
+++ b/spec/controllers/gestionnaires/passwords_controller_spec.rb
@@ -17,11 +17,11 @@ ... | Fix DEPRECATION WARNING for spec/controllers/gestionnaires/*.rb
|
diff --git a/acceptance/output/plugin_output.rb b/acceptance/output/plugin_output.rb
index abc1234..def5678 100644
--- a/acceptance/output/plugin_output.rb
+++ b/acceptance/output/plugin_output.rb
@@ -13,7 +13,7 @@
# Tests that plugin list shows a plugin
OutputTester[:plugin_list_plugin] = lambda do |text, n... | Update plugin output pattern to include global context
|
diff --git a/bin/transmission.rb b/bin/transmission.rb
index abc1234..def5678 100644
--- a/bin/transmission.rb
+++ b/bin/transmission.rb
@@ -6,9 +6,19 @@ require 'lib/transmission-connect'
CONFIG = "config/transmission.yml"
-result = []
+@exit = false
-while true
+trap("INT") do
+ EventMachine::stop_event_loop
+ ... | Handle system signals and correct exit from app
|
diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb
index abc1234..def5678 100644
--- a/config/initializers/session_store.rb
+++ b/config/initializers/session_store.rb
@@ -3,6 +3,7 @@ # Cloudsdale::Application.config.session_store :mongo_store, key: '_cloudsdale_session', collection... | Expire the redis session in 72 hours.
|
diff --git a/lib/mios/services/dimmable_light1.rb b/lib/mios/services/dimmable_light1.rb
index abc1234..def5678 100644
--- a/lib/mios/services/dimmable_light1.rb
+++ b/lib/mios/services/dimmable_light1.rb
@@ -9,9 +9,9 @@ end
def set_level!(new_level, async=false, &block)
- new_level = new_load_lev... | Fix variable reference with dimmer control
|
diff --git a/knife-windows.gemspec b/knife-windows.gemspec
index abc1234..def5678 100644
--- a/knife-windows.gemspec
+++ b/knife-windows.gemspec
@@ -15,7 +15,7 @@ s.description = s.summary
s.required_ruby_version = ">= 1.9.1"
- s.add_dependency "em-winrm", "= 0.5.4.rc.1"
+ s.add_dependency "em-winrm", "= 0.5.4... | Remove RC dependency on em-winrm, bump to release
|
diff --git a/rblib/url_mapper.rb b/rblib/url_mapper.rb
index abc1234..def5678 100644
--- a/rblib/url_mapper.rb
+++ b/rblib/url_mapper.rb
@@ -34,8 +34,13 @@ end
# Prefixes a relative URL with the domain definted in DOMAIN in the config
- def main_url(relative_path)
- url_prefix = "http://" + M... | Allow for an option to skip the protocol part of the url - useful in rails caching.
|
diff --git a/recipes/textmate.rb b/recipes/textmate.rb
index abc1234..def5678 100644
--- a/recipes/textmate.rb
+++ b/recipes/textmate.rb
@@ -2,7 +2,7 @@
unless File.exists?("/Applications/TextMate.app")
execute "download text mate to temp dir" do
- command "curl -o /tmp/textmate.zip http://download.macromates.c... | Make sure to follow any redirects for Textmate download
|
diff --git a/test/models/draw_test.rb b/test/models/draw_test.rb
index abc1234..def5678 100644
--- a/test/models/draw_test.rb
+++ b/test/models/draw_test.rb
@@ -7,8 +7,11 @@ santaswife = participants :santas_wife
draw = Draw.new(event: secretsanta, giver: santa, receiver: santaswife)
assert_nil draw.sent_... | Use travel_to to mock Time.now
|
diff --git a/app/controllers/logs_controller.rb b/app/controllers/logs_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/logs_controller.rb
+++ b/app/controllers/logs_controller.rb
@@ -1,7 +1,7 @@ class LogsController < ApplicationController
def new
@project = Project.find(params[:project_id])
-... | Use Time.zone.today instead of Date.today
|
diff --git a/app/models/spree/gateway/affirm.rb b/app/models/spree/gateway/affirm.rb
index abc1234..def5678 100644
--- a/app/models/spree/gateway/affirm.rb
+++ b/app/models/spree/gateway/affirm.rb
@@ -36,7 +36,7 @@ def cancel(charge_ari)
_payment = Spree::Payment.valid.where(
response_code: charge_a... | Update to new spree method of canceling
|
diff --git a/app/uploaders/document_uploader.rb b/app/uploaders/document_uploader.rb
index abc1234..def5678 100644
--- a/app/uploaders/document_uploader.rb
+++ b/app/uploaders/document_uploader.rb
@@ -6,7 +6,7 @@
# A white list of extensions which are allowed to be uploaded.
def extension_white_list
- %w( pdf... | Enable upload of Powerpoint files
|
diff --git a/chargehound.gemspec b/chargehound.gemspec
index abc1234..def5678 100644
--- a/chargehound.gemspec
+++ b/chargehound.gemspec
@@ -20,7 +20,7 @@ spec.add_development_dependency 'minitest', '~> 5.8'
spec.add_development_dependency 'rake', '~> 11.1'
spec.add_development_dependency 'rubocop', '~> 0.39'
-... | Upgrade Webmock to official 2.0 release
|
diff --git a/spec/models/bus_stops_route_spec.rb b/spec/models/bus_stops_route_spec.rb
index abc1234..def5678 100644
--- a/spec/models/bus_stops_route_spec.rb
+++ b/spec/models/bus_stops_route_spec.rb
@@ -8,20 +8,16 @@ let!(:route) { create :route }
let!(:direction) { 'West' }
let!(:stop_1) { create... | Make the scenario even clearer with accessing valid bsr
|
diff --git a/lib/exercism/curriculum/javascript.rb b/lib/exercism/curriculum/javascript.rb
index abc1234..def5678 100644
--- a/lib/exercism/curriculum/javascript.rb
+++ b/lib/exercism/curriculum/javascript.rb
@@ -8,7 +8,7 @@ gigasecond triangle scrabble-score roman-numerals
binary prime-factors raindro... | Remove missing assignment from JS curriculum
|
diff --git a/lib/serverkit/resources/go_package.rb b/lib/serverkit/resources/go_package.rb
index abc1234..def5678 100644
--- a/lib/serverkit/resources/go_package.rb
+++ b/lib/serverkit/resources/go_package.rb
@@ -3,18 +3,18 @@ module Serverkit
module Resources
class GoPackage < Base
- attribute :url, requi... | Use `path` instead of `url`
|
diff --git a/lib/tasks/clear_expired_sessions.rake b/lib/tasks/clear_expired_sessions.rake
index abc1234..def5678 100644
--- a/lib/tasks/clear_expired_sessions.rake
+++ b/lib/tasks/clear_expired_sessions.rake
@@ -0,0 +1,5 @@+desc "Clear the sessions table of records that are over 25 hours old."
+task :clear_expired_ses... | Add a rake task to clear out sessions records over 25 hours old
|
diff --git a/lib/tasks/export_alternate_title.rake b/lib/tasks/export_alternate_title.rake
index abc1234..def5678 100644
--- a/lib/tasks/export_alternate_title.rake
+++ b/lib/tasks/export_alternate_title.rake
@@ -0,0 +1,24 @@+desc "Export all Editions that have an alternate title as a CSV"
+
+task :export_alternate_tit... | Add task to export editions that have an alternative title
|
diff --git a/test/remote/gateways/remote_cashnet_test.rb b/test/remote/gateways/remote_cashnet_test.rb
index abc1234..def5678 100644
--- a/test/remote/gateways/remote_cashnet_test.rb
+++ b/test/remote/gateways/remote_cashnet_test.rb
@@ -27,4 +27,21 @@ assert refund.test?
assert_equal 'Success', refund.message
... | Cashnet: Add a few remote tests
We now test that failures are working as expected.
Closes #1203.
|
diff --git a/postkode.gemspec b/postkode.gemspec
index abc1234..def5678 100644
--- a/postkode.gemspec
+++ b/postkode.gemspec
@@ -1,8 +1,8 @@ # encoding: utf-8
Gem::Specification.new do |s|
s.name = 'postkode'
- s.version = '0.3.1'
- s.date = '2015-02-17'
+ s.version = '0.3.2'
+ s.date ... | Update Gemspec to version 0.3.2 |
diff --git a/spec/integration/axiom/relation/mutable_enumerator_spec.rb b/spec/integration/axiom/relation/mutable_enumerator_spec.rb
index abc1234..def5678 100644
--- a/spec/integration/axiom/relation/mutable_enumerator_spec.rb
+++ b/spec/integration/axiom/relation/mutable_enumerator_spec.rb
@@ -0,0 +1,45 @@+# encoding... | Add spec for mutable enumerator
|
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
@@ -2,27 +2,73 @@ require 'rubygems'
require 'nokogiri'
require 'open-uri'
+require '... | Improve ruby script to also get the number of downloads from npmjs.com
And now we also get top depended (and not only top starred). Kehelian
uses top depended
|
diff --git a/test/functional/sitemaps_controller_test.rb b/test/functional/sitemaps_controller_test.rb
index abc1234..def5678 100644
--- a/test/functional/sitemaps_controller_test.rb
+++ b/test/functional/sitemaps_controller_test.rb
@@ -0,0 +1,8 @@+require 'test_helper'
+
+class SitemapsControllerTest < ActionControlle... | Add tests for sitemaps controller
|
diff --git a/cookbooks/chef/attributes/default.rb b/cookbooks/chef/attributes/default.rb
index abc1234..def5678 100644
--- a/cookbooks/chef/attributes/default.rb
+++ b/cookbooks/chef/attributes/default.rb
@@ -5,4 +5,4 @@ default[:chef][:server][:version] = "12.17.33"
# Set the default client version
-default[:chef][... | Update chef client to 17.10.3
|
diff --git a/lib/konacha/engine.rb b/lib/konacha/engine.rb
index abc1234..def5678 100644
--- a/lib/konacha/engine.rb
+++ b/lib/konacha/engine.rb
@@ -8,7 +8,9 @@ run app.assets
end
- run Konacha::Engine
+ map "/" do
+ run Konacha::Engine
+ end
end
end
| Add support for older versions of Rack.
|
diff --git a/core/app/models/spree/zone_member.rb b/core/app/models/spree/zone_member.rb
index abc1234..def5678 100644
--- a/core/app/models/spree/zone_member.rb
+++ b/core/app/models/spree/zone_member.rb
@@ -2,10 +2,5 @@ class ZoneMember < Spree::Base
belongs_to :zone, class_name: 'Spree::Zone', counter_cache: ... | Remove unused & unspec'd method.
|
diff --git a/lib/call_sheet/dsl.rb b/lib/call_sheet/dsl.rb
index abc1234..def5678 100644
--- a/lib/call_sheet/dsl.rb
+++ b/lib/call_sheet/dsl.rb
@@ -1,8 +1,8 @@ require "call_sheet/step"
require "call_sheet/step_adapters"
require "call_sheet/step_adapters/base"
+require "call_sheet/step_adapters/map"
require "call_s... | Order step adapter requires alphabetically |
diff --git a/lib/chefspec/rspec.rb b/lib/chefspec/rspec.rb
index abc1234..def5678 100644
--- a/lib/chefspec/rspec.rb
+++ b/lib/chefspec/rspec.rb
@@ -1,6 +1,8 @@ RSpec.configure do |config|
- config.include(ChefSpec::API)
- config.include(ChefSpec::Macros)
+ unless ENV['CHEFSPEC_NO_INCLUDE']
+ config.include(ChefS... | Set up an environment variable to disable the automatic RSpec injection. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.