diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/config.ru b/config.ru index abc1234..def5678 100644 --- a/config.ru +++ b/config.ru @@ -1,4 +1,8 @@ # coding: utf-8 +if RUBY_VERSION.split('.')[1].to_i > 8 + Encoding.default_external = 'UTF-8' +end + require 'rubygems' require 'rack' require 'lib/jibjob'
Handle external encoding default for Ruby 1.9
diff --git a/week-8/ruby/ruby-review.rb b/week-8/ruby/ruby-review.rb index abc1234..def5678 100644 --- a/week-8/ruby/ruby-review.rb +++ b/week-8/ruby/ruby-review.rb @@ -36,4 +36,10 @@ # Reflection # I am happy I did my cheat sheet code first! -# It was easier than I thought? +# # It was easier than I thought? +# Wha...
Update ruby challenge week-8 with reflection
diff --git a/TEQuickPageViewController.podspec b/TEQuickPageViewController.podspec index abc1234..def5678 100644 --- a/TEQuickPageViewController.podspec +++ b/TEQuickPageViewController.podspec @@ -0,0 +1,41 @@+Pod::Spec.new do |s| + + # ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # +...
Add podspec (not linted, need to branch first).
diff --git a/actionpack/lib/action_dispatch/journey/nfa/simulator.rb b/actionpack/lib/action_dispatch/journey/nfa/simulator.rb index abc1234..def5678 100644 --- a/actionpack/lib/action_dispatch/journey/nfa/simulator.rb +++ b/actionpack/lib/action_dispatch/journey/nfa/simulator.rb @@ -25,8 +25,6 @@ state = tt....
Remove 7 years old note-to-self by tenderlove Introduced in rails/journey@a806beb [ci skip]
diff --git a/wkhtmltopdf-heroku.gemspec b/wkhtmltopdf-heroku.gemspec index abc1234..def5678 100644 --- a/wkhtmltopdf-heroku.gemspec +++ b/wkhtmltopdf-heroku.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = "wkhtmltopdf-heroku" - s.version = "2.12.2.1" + s.version = "2.12.2.4" s.required_rubygems...
Update gemspec with new version number
diff --git a/spec/support/examples_group/shared_examples_for_new_or_discover_button.rb b/spec/support/examples_group/shared_examples_for_new_or_discover_button.rb index abc1234..def5678 100644 --- a/spec/support/examples_group/shared_examples_for_new_or_discover_button.rb +++ b/spec/support/examples_group/shared_exampl...
Create shared_examples for *_new and *_discover buttons
diff --git a/core/spec/models/spree/calculator_spec.rb b/core/spec/models/spree/calculator_spec.rb index abc1234..def5678 100644 --- a/core/spec/models/spree/calculator_spec.rb +++ b/core/spec/models/spree/calculator_spec.rb @@ -1,69 +1,36 @@ require 'spec_helper' + describe Spree::Calculator, :type => :model do -...
Remove all the stubbing in the calculator spec From the previous spec it was very unclear how a calculator should work. By providing simple classes to do the calc/calculable job it removes the stubs while being more clear what is happening. Kills all db access as well.
diff --git a/UPnAtom.podspec b/UPnAtom.podspec index abc1234..def5678 100644 --- a/UPnAtom.podspec +++ b/UPnAtom.podspec @@ -9,7 +9,6 @@ s.source_files = 'Source/**/*.{swift}' s.exclude_files = 'Source/CocoaSSDP Support/CocoaSSDPDiscoveryAdapter.swift' # Available in case CocoaSSDP library is preferred for UPnP di...
Update pod spec to show availability on all platforms.
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 @@ -9,6 +9,13 @@ Aruba.configure do |config| config.before_cmd do |cmd| set_env('JRUBY_OPTS', "-X-C #{ENV['JRUBY_OPTS']}") # disable JIT since these processes ...
Optimize for JRuby 32/64 bit differences
diff --git a/app/mailers/newsletter_mailer.rb b/app/mailers/newsletter_mailer.rb index abc1234..def5678 100644 --- a/app/mailers/newsletter_mailer.rb +++ b/app/mailers/newsletter_mailer.rb @@ -1,9 +1,11 @@-class NewsletterMailer +class NewsletterMailer < ActionMailer::Base default :from => "noresponder@dealhunter.co...
Set newsletter mailer as action mailer
diff --git a/app/overrides/admin_decorator.rb b/app/overrides/admin_decorator.rb index abc1234..def5678 100644 --- a/app/overrides/admin_decorator.rb +++ b/app/overrides/admin_decorator.rb @@ -1,4 +1,5 @@ Deface::Override.new( + original: "0faac568db7e03f5705d3f86553d21a58bda03aa", virtual_path: "spree/admin/shared...
Fix deprecation warning by specifying the hash of the parent
diff --git a/db/migrate/20140428132137_delete_rpa_specialist_sector.rb b/db/migrate/20140428132137_delete_rpa_specialist_sector.rb index abc1234..def5678 100644 --- a/db/migrate/20140428132137_delete_rpa_specialist_sector.rb +++ b/db/migrate/20140428132137_delete_rpa_specialist_sector.rb @@ -0,0 +1,32 @@+class DeleteRp...
Delete the 'Farming and food inspections' sector The 'Farming and food inspections' specialist sector tags was created for the Rural Payments Agency, but it's no longer needed. This deletes the parent tag and its children. The 'down' method creates the tags again. It never went live and nothing was ever tagged wit...
diff --git a/Casks/devonthink-pro-office.rb b/Casks/devonthink-pro-office.rb index abc1234..def5678 100644 --- a/Casks/devonthink-pro-office.rb +++ b/Casks/devonthink-pro-office.rb @@ -0,0 +1,8 @@+class DevonthinkProOffice < Cask + url 'https://s3.amazonaws.com/DTWebsiteSupport/download/devonthink/2.7.4/DEVONthink_Pro...
Add Devonthink Pro Office v2.7.4
diff --git a/code_climate_check.gemspec b/code_climate_check.gemspec index abc1234..def5678 100644 --- a/code_climate_check.gemspec +++ b/code_climate_check.gemspec @@ -11,7 +11,7 @@ spec.license = "MIT" spec.files = `git ls-files -z`.split("\x0") - spec.executables = `git ls-files -- bin/*`.spl...
Fix endless cycle problem when using script
diff --git a/app/controllers/kuhsaft/pages_controller.rb b/app/controllers/kuhsaft/pages_controller.rb index abc1234..def5678 100644 --- a/app/controllers/kuhsaft/pages_controller.rb +++ b/app/controllers/kuhsaft/pages_controller.rb @@ -2,7 +2,6 @@ class PagesController < ::ApplicationController respond_to :html...
Revert "add helper method to check if on a kuhsaft cotnrolled page"
diff --git a/app/controllers/presentations_controller.rb b/app/controllers/presentations_controller.rb index abc1234..def5678 100644 --- a/app/controllers/presentations_controller.rb +++ b/app/controllers/presentations_controller.rb @@ -2,7 +2,7 @@ before_action :login!, :except => [:index] def index - @prese...
Return presentations in a random order
diff --git a/lib/carrierwave/base64/mounting_helper.rb b/lib/carrierwave/base64/mounting_helper.rb index abc1234..def5678 100644 --- a/lib/carrierwave/base64/mounting_helper.rb +++ b/lib/carrierwave/base64/mounting_helper.rb @@ -22,8 +22,10 @@ end def define_writer(klass, attr, options) - klass.de...
Fix writer definition for older ruby versions
diff --git a/lib/search_and_resque/chewy_extensions.rb b/lib/search_and_resque/chewy_extensions.rb index abc1234..def5678 100644 --- a/lib/search_and_resque/chewy_extensions.rb +++ b/lib/search_and_resque/chewy_extensions.rb @@ -5,7 +5,7 @@ module ClassMethods def delete!(ids) - filter(:term =...
Use ids filter instead of :term => {:_id =>
diff --git a/lib/shrine/plugins/metadata_attributes.rb b/lib/shrine/plugins/metadata_attributes.rb index abc1234..def5678 100644 --- a/lib/shrine/plugins/metadata_attributes.rb +++ b/lib/shrine/plugins/metadata_attributes.rb @@ -10,14 +10,18 @@ uploader.plugin :entity end - def self.configure(uplo...
Move retrieving metadata attributes to Attacher class
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index abc1234..def5678 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -13,6 +13,6 @@ end def external_resource_linked_image(asset) - link_to image_tag('/image-service' + asset.id + '/f...
Add slash, though it does route without
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index abc1234..def5678 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -5,6 +5,8 @@ "progress-danger" elsif percentage.to_i > 10 && percentage.to_i < 40 "progress-warning" + ...
Add a progress for 100 percent
diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb index abc1234..def5678 100644 --- a/app/mailers/application_mailer.rb +++ b/app/mailers/application_mailer.rb @@ -3,7 +3,7 @@ class ApplicationMailer < ActionMailer::Base include MailgunHeaders - default from: 'appointments@pension...
Include the sender's name in mailings
diff --git a/examples/echo.rb b/examples/echo.rb index abc1234..def5678 100644 --- a/examples/echo.rb +++ b/examples/echo.rb @@ -8,4 +8,4 @@ q.validate(/^[^\.]+\.[^\.]+/) end -#puts answer +puts "Password: #{answer}"
Change to show returend value
diff --git a/solidus_cmd.gemspec b/solidus_cmd.gemspec index abc1234..def5678 100644 --- a/solidus_cmd.gemspec +++ b/solidus_cmd.gemspec @@ -1,10 +1,10 @@ # -*- encoding: utf-8 -*- -# $:.push File.expand_path("../lib", __FILE__) -# require "solidus_cmd/version" +$:.push File.expand_path("../lib", __FILE__) +require 'so...
Revert hardcoding of version number
diff --git a/app/helpers/uploads_helper.rb b/app/helpers/uploads_helper.rb index abc1234..def5678 100644 --- a/app/helpers/uploads_helper.rb +++ b/app/helpers/uploads_helper.rb @@ -5,7 +5,7 @@ end def link_to_upload(upload, text, attributes = {}) - link_to(h(text), upload.url, {:rel => (upload.image? ? 'fac...
Revert "Open upload that are not an image in a new window" This reverts commit a0648eb99f22df49c2219f2a2468083a39c4c921.
diff --git a/app/models/retirement_plan.rb b/app/models/retirement_plan.rb index abc1234..def5678 100644 --- a/app/models/retirement_plan.rb +++ b/app/models/retirement_plan.rb @@ -18,7 +18,7 @@ allow_existing :company belongs_to :periodic_payment - accepts_nested_attributes_for :periodic_payment, reject_if: :a...
Fix retirement plan bug creating a plan without a payment
diff --git a/ruby-gem/lib/crudecumber/support/crudecumber_formatter.rb b/ruby-gem/lib/crudecumber/support/crudecumber_formatter.rb index abc1234..def5678 100644 --- a/ruby-gem/lib/crudecumber/support/crudecumber_formatter.rb +++ b/ruby-gem/lib/crudecumber/support/crudecumber_formatter.rb @@ -10,7 +10,7 @@ # SlowHandC...
Fix step indentation when step is first displayed for testing
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -11,7 +11,7 @@ RSpec.configure do |config| config.before(:suite) do - Authy.api_key = 'bf12974d70818a08199d17d5e2bae630' + Authy.api_key = 'valid_api_key' end de...
Use a dummy API key in the test suite
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -18,8 +18,8 @@ Docker.url = docker_host end -# Workaround needed for Travis -if ENV['TRAVIS'] +# Workaround needed for Circle CI. +if ENV['CIRCLECI'] class Docker::Containe...
Adjust for switch to Circle CI.
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,5 +1,7 @@-require "coveralls" -Coveralls.wear! +if ENV["TRAVIS"] + require "coveralls" + Coveralls.wear! +end require "interactor"
Make sure only Travis wears Coveralls [ci skip]
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -9,3 +9,10 @@ add_filter "/vendor/" add_filter "/spec/" end + +# テスト用にロガーを差し込む +module Chatwork + class Base + self.logger = Logger.new(STDERR) + end +end
chore: Add logger only while test
diff --git a/app/models/sku.rb b/app/models/sku.rb index abc1234..def5678 100644 --- a/app/models/sku.rb +++ b/app/models/sku.rb @@ -3,8 +3,8 @@ include IslayShop::Statuses belongs_to :product - has_many :sku_assets, :order => 'position ASC' - has_many :assets, :through => :sku_assets, :...
Remove the test meta-data from the SKU model.
diff --git a/jobs_view.gemspec b/jobs_view.gemspec index abc1234..def5678 100644 --- a/jobs_view.gemspec +++ b/jobs_view.gemspec @@ -9,7 +9,7 @@ s.version = JobsView::VERSION s.authors = ["Guille Carlos"] s.email = ["guille@bitpop.in"] - s.homepage = "A lot" + s.homepage = "https://github....
Add url to github page Other apps complaining about configuration
diff --git a/db/migrate/20140602152302_remove_rpa_specialist_sectors.rb b/db/migrate/20140602152302_remove_rpa_specialist_sectors.rb index abc1234..def5678 100644 --- a/db/migrate/20140602152302_remove_rpa_specialist_sectors.rb +++ b/db/migrate/20140602152302_remove_rpa_specialist_sectors.rb @@ -1,5 +1,5 @@ class Remov...
Correct the slugs and type in the RPA migration The migration was intended to remove some unused tags, but had an incorrect tag type and an incorrect slug, so failed to work in production. This migration was run on staging, but not on production, and the database has been synced from production to staging since then....
diff --git a/db/migrate/20160421084217_add_output_elements_for_merit.rb b/db/migrate/20160421084217_add_output_elements_for_merit.rb index abc1234..def5678 100644 --- a/db/migrate/20160421084217_add_output_elements_for_merit.rb +++ b/db/migrate/20160421084217_add_output_elements_for_merit.rb @@ -4,15 +4,15 @@ gro...
Fix M/O price chart migration to set unit
diff --git a/scraper.rb b/scraper.rb index abc1234..def5678 100644 --- a/scraper.rb +++ b/scraper.rb @@ -6,7 +6,7 @@ Turbotlib.log("Starting run...") -if ENV['COMPLETE_RUN'] +if ENV['COMPLETE_RUN'] == "true" last_run = DateTime.parse("2014-01-01") elsif ENV['FIRST_RUN'] last_run = (Time.now - 259200)
Check if complete run is true
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 @@ -3,6 +3,10 @@ CodeClimate::TestReporter.start ENV['RACK_ENV'] = 'test' +ENV['CHRUBY_VERSION'] = '0.3.9' +ENV['RUBY_INSTALL_VERSION'] = '0.5.0' +ENV['RBENV_VERSIO...
Add expected versions as ENV params to cucumber specs
diff --git a/features/support/ssh.rb b/features/support/ssh.rb index abc1234..def5678 100644 --- a/features/support/ssh.rb +++ b/features/support/ssh.rb @@ -15,9 +15,10 @@ # smdba print this warning on stderr. Ignore it. It is not an error errstring = err.string.gsub("WARNING: Reserved space for the backup is smal...
C: Use a guard clause instead of wrapping the code inside a conditional expression
diff --git a/lib/fog/hp/models/storage/shared_files.rb b/lib/fog/hp/models/storage/shared_files.rb index abc1234..def5678 100644 --- a/lib/fog/hp/models/storage/shared_files.rb +++ b/lib/fog/hp/models/storage/shared_files.rb @@ -41,6 +41,7 @@ shared_object_url = "#{shared_directory.url}/#{key}" dat...
Fix head call to return an empty body.
diff --git a/lib/generators/errdo/install_generator.rb b/lib/generators/errdo/install_generator.rb index abc1234..def5678 100644 --- a/lib/generators/errdo/install_generator.rb +++ b/lib/generators/errdo/install_generator.rb @@ -0,0 +1,21 @@+require 'rails/generators/base' + +module Errdo + + module Generators + + ...
Add command to inject changing the exception app
diff --git a/capistrano-ext-puppetize.gemspec b/capistrano-ext-puppetize.gemspec index abc1234..def5678 100644 --- a/capistrano-ext-puppetize.gemspec +++ b/capistrano-ext-puppetize.gemspec @@ -10,13 +10,11 @@ spec.email = ['daniel.barlow@simplybusiness.co.uk'] spec.summary = 'Run Puppet manifests in a Capistrano d...
Remove additioanl licence in gemspec
diff --git a/spec/views/assets/_transit_facility_fta.html.haml_spec.rb b/spec/views/assets/_transit_facility_fta.html.haml_spec.rb index abc1234..def5678 100644 --- a/spec/views/assets/_transit_facility_fta.html.haml_spec.rb +++ b/spec/views/assets/_transit_facility_fta.html.haml_spec.rb @@ -5,7 +5,6 @@ it 'fta info'...
Update transit_facility_fta tests because of changes in e4fadaf
diff --git a/app/models/components/course/conditions_ability_component.rb b/app/models/components/course/conditions_ability_component.rb index abc1234..def5678 100644 --- a/app/models/components/course/conditions_ability_component.rb +++ b/app/models/components/course/conditions_ability_component.rb @@ -15,5 +15,6 @@ ...
Allow teaching staff to manage survey conditions
diff --git a/BSSegmentPagingView.podspec b/BSSegmentPagingView.podspec index abc1234..def5678 100644 --- a/BSSegmentPagingView.podspec +++ b/BSSegmentPagingView.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'BSSegmentPagingView' - s.version = '0.0.2' + s.version = '0.0.3' s.summary = 'An paging vi...
Update spec file for version 0.0.3
diff --git a/spec/support/examples_group/shared_examples_for_generic_feature_buttons.rb b/spec/support/examples_group/shared_examples_for_generic_feature_buttons.rb index abc1234..def5678 100644 --- a/spec/support/examples_group/shared_examples_for_generic_feature_buttons.rb +++ b/spec/support/examples_group/shared_exa...
Create shared examples for generic feature buttons with disabled
diff --git a/example/example.rb b/example/example.rb index abc1234..def5678 100644 --- a/example/example.rb +++ b/example/example.rb @@ -0,0 +1,62 @@+#Album class +class Album # Albums have an artist, title and tracks + attr_reader :artist, :title + attr_accessor :tracks + + @@collection = [] + + def initialize(art...
Add ruby object code for albums and songs
diff --git a/cookbooks/travis_build_environment/recipes/neo4j.rb b/cookbooks/travis_build_environment/recipes/neo4j.rb index abc1234..def5678 100644 --- a/cookbooks/travis_build_environment/recipes/neo4j.rb +++ b/cookbooks/travis_build_environment/recipes/neo4j.rb @@ -1,10 +1,11 @@ ark 'neo4j' do url node['travis_bu...
Use correct resource attributes for ark
diff --git a/gitlab-runner.rb b/gitlab-runner.rb index abc1234..def5678 100644 --- a/gitlab-runner.rb +++ b/gitlab-runner.rb @@ -1,7 +1,9 @@ class GitlabRunner < Formula desc "The official GitLab CI runner written in Go" homepage "https://gitlab.com/gitlab-org/gitlab-ci-multi-runner" - url "https://gitlab.com/gi...
Break the `tag` and `revision` onto their own lines
diff --git a/db/migrate/20210929220050_create_github_integrations.rb b/db/migrate/20210929220050_create_github_integrations.rb index abc1234..def5678 100644 --- a/db/migrate/20210929220050_create_github_integrations.rb +++ b/db/migrate/20210929220050_create_github_integrations.rb @@ -1,12 +1,16 @@-class CreateGithubInt...
Use an oldstyle migration so integer keys work Change the version of the github_integrations migration to 5.0 so that the users_id column is an int and is compatible with extant user tables
diff --git a/config/software/loom-ui.rb b/config/software/loom-ui.rb index abc1234..def5678 100644 --- a/config/software/loom-ui.rb +++ b/config/software/loom-ui.rb @@ -7,15 +7,15 @@ relative_path 'ui' build do - command "mkdir -p #{install_dir}/ui/bin" + mkdir "#{install_dir}/ui/bin" command "sed -e 's:ui/embe...
Use copy/delete/mkdir builtin Builder methods
diff --git a/db/migrate/20130802012458_add_slug_to_photos.rb b/db/migrate/20130802012458_add_slug_to_photos.rb index abc1234..def5678 100644 --- a/db/migrate/20130802012458_add_slug_to_photos.rb +++ b/db/migrate/20130802012458_add_slug_to_photos.rb @@ -2,7 +2,5 @@ def change add_column :photos, :slug, :string ...
Fix db:migrate after removing photo slugs
diff --git a/app/mutations/users/create.rb b/app/mutations/users/create.rb index abc1234..def5678 100644 --- a/app/mutations/users/create.rb +++ b/app/mutations/users/create.rb @@ -8,6 +8,7 @@ end def validate + add_error :email, :*, 'Already registered' if User.find_by(email: email) if password ...
Fix 500 error when registering pre-existing accounts on accident
diff --git a/lib/generators/templates/app/initializers/link_renderer.rb b/lib/generators/templates/app/initializers/link_renderer.rb index abc1234..def5678 100644 --- a/lib/generators/templates/app/initializers/link_renderer.rb +++ b/lib/generators/templates/app/initializers/link_renderer.rb @@ -1,3 +1,5 @@+require 'wi...
Fix for latest WillPaginate version.
diff --git a/lib/authem/base_user.rb b/lib/authem/base_user.rb index abc1234..def5678 100644 --- a/lib/authem/base_user.rb +++ b/lib/authem/base_user.rb @@ -5,7 +5,7 @@ included do validates_uniqueness_of :email - validates_format_of :email, with: /^\S+@\S+$/ + validates_format_of :email, with: /\A\S+@\S...
Change email format regex anchors
diff --git a/benchmarks/parameter_calls.rb b/benchmarks/parameter_calls.rb index abc1234..def5678 100644 --- a/benchmarks/parameter_calls.rb +++ b/benchmarks/parameter_calls.rb @@ -4,16 +4,16 @@ include Typedeaf def method_with_params(buffer) - buffer.size + buffer.size + rand + rand end define :ty...
Make the parameter call benchmark more computationally intensive Still kind of lame though
diff --git a/features/step_definitions/knife_encryption_steps.rb b/features/step_definitions/knife_encryption_steps.rb index abc1234..def5678 100644 --- a/features/step_definitions/knife_encryption_steps.rb +++ b/features/step_definitions/knife_encryption_steps.rb @@ -1,10 +1,10 @@ Then(/^the stdout should be one of:$/...
Fix warnings from redefined constant in tests
diff --git a/lib/buoys/link.rb b/lib/buoys/link.rb index abc1234..def5678 100644 --- a/lib/buoys/link.rb +++ b/lib/buoys/link.rb @@ -5,7 +5,7 @@ CONFIG = { current_class: (Buoys::Config.current_class || 'active'), - link_current: (Buoys::Config.link_current || false), + link_current: (Buoys::Conf...
Fix ` Avoid comma after the last item of a hash.`
diff --git a/docs/cleanup_scripts/fix_crosswiki_revisions.rb b/docs/cleanup_scripts/fix_crosswiki_revisions.rb index abc1234..def5678 100644 --- a/docs/cleanup_scripts/fix_crosswiki_revisions.rb +++ b/docs/cleanup_scripts/fix_crosswiki_revisions.rb @@ -0,0 +1,12 @@+course = Course.find(18956) + +course.revisions.includ...
Add cleanup script for fixing revisions that point to wrong wiki I've run this for the two courses that reported problems with revisions pointing to the wrong wiki.
diff --git a/lib/mournmail/config.rb b/lib/mournmail/config.rb index abc1234..def5678 100644 --- a/lib/mournmail/config.rb +++ b/lib/mournmail/config.rb @@ -18,7 +18,16 @@ ] CONFIG[:mournmail_imap_connect_timeout] = 10 CONFIG[:mournmail_keep_alive_interval] = 60 - CONFIG[:mournmail_file_open_comamnd] = "xdg-op...
Change default commands for Windows and macOS
diff --git a/lib/cuke_salad.rb b/lib/cuke_salad.rb index abc1234..def5678 100644 --- a/lib/cuke_salad.rb +++ b/lib/cuke_salad.rb @@ -10,7 +10,7 @@ define_method :perform_task, &block end - Kernel.const_get(name) = m + Kernel.const_set(name, m) end
Allow tasks to be defined dynamically in 1.8 and 1.9
diff --git a/lib/henson/cli.rb b/lib/henson/cli.rb index abc1234..def5678 100644 --- a/lib/henson/cli.rb +++ b/lib/henson/cli.rb @@ -6,5 +6,24 @@ include Thor::Actions check_unknown_options! + + default_task :install + + desc "install", "Install the current Puppet module environment" + long_desc <<-...
Add skeleton henson install command Currently just contains docs on expected behavior, doesn't include any implementation of that behavior.
diff --git a/ddplugin.gemspec b/ddplugin.gemspec index abc1234..def5678 100644 --- a/ddplugin.gemspec +++ b/ddplugin.gemspec @@ -23,5 +23,5 @@ s.rdoc_options = [ '--main', 'README.md' ] s.extra_rdoc_files = [ 'LICENSE', 'README.md', 'NEWS.md' ] - s.add_development_dependency('bundler') + s.add_development_...
Add version to Bundler dependency
diff --git a/config/environments/production.rb b/config/environments/production.rb index abc1234..def5678 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -25,4 +25,4 @@ # Enable threaded mode # config.threadsafe! -config.cache_store = :compressed_mem_cache_store, [ ENV['MEMC...
Remove Memcached setting until it is enabled in Heroku admin.
diff --git a/config/initializers/rails_zero.rb b/config/initializers/rails_zero.rb index abc1234..def5678 100644 --- a/config/initializers/rails_zero.rb +++ b/config/initializers/rails_zero.rb @@ -1,7 +1,8 @@ require 'rails_zero/drivers/poltergeist' RailsZero.configure do |c| + c.backend.url = 'http://cocoa-tree.he...
Fix rails zero config for heroku.
diff --git a/config/initializers/udp_logger.rb b/config/initializers/udp_logger.rb index abc1234..def5678 100644 --- a/config/initializers/udp_logger.rb +++ b/config/initializers/udp_logger.rb @@ -1,5 +1,5 @@ if Rails.env.test? && Rails.logger.level == 0 - ActiveSupport::Notifications.subscribe(/fragment|process_actio...
Add TTL to logged events so that (hopefully) Elasticsearch will auto-delete them. Stop logging caching events as that has never been useful.
diff --git a/lib/subjoin/linkable.rb b/lib/subjoin/linkable.rb index abc1234..def5678 100644 --- a/lib/subjoin/linkable.rb +++ b/lib/subjoin/linkable.rb @@ -1,16 +1,16 @@ module Subjoin # Generically construct and handle {Links} objects module Linkable - @links = nil - - def links - @links ||= {} - ...
Allow for nil links attribute
diff --git a/lib/turbo_dev_assets.rb b/lib/turbo_dev_assets.rb index abc1234..def5678 100644 --- a/lib/turbo_dev_assets.rb +++ b/lib/turbo_dev_assets.rb @@ -7,8 +7,11 @@ @app = app end def call(env) + + is_asset = (env['REQUEST_PATH'] =~ /^\/assets\//) + # hack to bypass all middleware if serving asse...
Use `no-cache` in development mode for assets. Using `must-revalidate`, which is Rails' default, seems to have Chrome sometimes not request assets in development mode even though it's supposed to revalidate every time.
diff --git a/lib/preparermd.rb b/lib/preparermd.rb index abc1234..def5678 100644 --- a/lib/preparermd.rb +++ b/lib/preparermd.rb @@ -17,8 +17,9 @@ def self.build(source = Dir.pwd, destination = File.join(Dir.pwd, '_site')) @config = Config.new - if File.exist?("_deconst.json") - File.open("_deconst.jso...
Read _deconst.json from source, not always pwd
diff --git a/lib/rjiffy/cli.rb b/lib/rjiffy/cli.rb index abc1234..def5678 100644 --- a/lib/rjiffy/cli.rb +++ b/lib/rjiffy/cli.rb @@ -8,11 +8,43 @@ module Rjiffy module CLI + SPINNER_CHARS = [].tap do |chars| + chars << '⠈⠑' + chars << ' ⠱' + chars << ' ⡰' + chars << '⢀⡠' + chars << '⢄⡀'...
Implement a cute spinner to enhance your patience while waiting for box transitions. Show how much time it really took afterwards.
diff --git a/libraries/chef-sugar.rb b/libraries/chef-sugar.rb index abc1234..def5678 100644 --- a/libraries/chef-sugar.rb +++ b/libraries/chef-sugar.rb @@ -1 +1 @@-require "chef-sugar" if Gem::Requirement.new(">= 12.10.48").satisfied_by?(Gem::Version.new(Chef::VERSION)) +require "chef/sugar" if Gem::Requirement.new(">...
Fix bad require in the recipe Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
diff --git a/lib/tasks/db.rake b/lib/tasks/db.rake index abc1234..def5678 100644 --- a/lib/tasks/db.rake +++ b/lib/tasks/db.rake @@ -1,8 +1,18 @@ require 'fileutils' -desc "Clear all magazines from resource db/magazines" namespace :db do - task :clear do - FileUtils.rm Dir['db/magazines/*.yml'] + + desc "Clear ...
Add rake seed and ressed methods.
diff --git a/db/data_migration/20130510134629_add_summary_to_doc_series.rb b/db/data_migration/20130510134629_add_summary_to_doc_series.rb index abc1234..def5678 100644 --- a/db/data_migration/20130510134629_add_summary_to_doc_series.rb +++ b/db/data_migration/20130510134629_add_summary_to_doc_series.rb @@ -0,0 +1,11 @...
Add in data migration to populate doc series summary Expect ~ 986 to be updated https://www.pivotaltracker.com/story/show/49582421 https://www.pivotaltracker.com/story/show/49119183
diff --git a/lib/rails_email_preview/main_app_route_delegator.rb b/lib/rails_email_preview/main_app_route_delegator.rb index abc1234..def5678 100644 --- a/lib/rails_email_preview/main_app_route_delegator.rb +++ b/lib/rails_email_preview/main_app_route_delegator.rb @@ -8,7 +8,7 @@ end end - def respond_to?(met...
Rename respond_to? method to respond_to_missing? to fix warning
diff --git a/lib/ruby_installer/build/components/03_dev_tools.rb b/lib/ruby_installer/build/components/03_dev_tools.rb index abc1234..def5678 100644 --- a/lib/ruby_installer/build/components/03_dev_tools.rb +++ b/lib/ruby_installer/build/components/03_dev_tools.rb @@ -22,7 +22,7 @@ m4 make patch - pkg-...
Install pkgconf instead of pkg-config MSYS2 replaced pkg-config by pkgconf in https://github.com/msys2/MINGW-packages/issues/7263 . We follow this move. Fixes #222
diff --git a/lib/smartsheet/endpoints/server_info/server_info.rb b/lib/smartsheet/endpoints/server_info/server_info.rb index abc1234..def5678 100644 --- a/lib/smartsheet/endpoints/server_info/server_info.rb +++ b/lib/smartsheet/endpoints/server_info/server_info.rb @@ -7,9 +7,8 @@ @client = client end - ...
Allow server info without auth
diff --git a/core/db/migrate/20150216173445_add_index_to_spree_stock_items_variant_id.rb b/core/db/migrate/20150216173445_add_index_to_spree_stock_items_variant_id.rb index abc1234..def5678 100644 --- a/core/db/migrate/20150216173445_add_index_to_spree_stock_items_variant_id.rb +++ b/core/db/migrate/20150216173445_add_...
Add index to SpreeStockItem variant_id Fixes #6050
diff --git a/config/initializers/rp_config.rb b/config/initializers/rp_config.rb index abc1234..def5678 100644 --- a/config/initializers/rp_config.rb +++ b/config/initializers/rp_config.rb @@ -1 +1 @@-CONTINUE_ON_FAILED_REGISTRATION_RPS = RP_CONFIG.fetch('allow_continue_on_failed_registration') +CONTINUE_ON_FAILED_REGI...
3712: Allow flag to not be in config Build is failing because 'allow_continue_on_failed_registration' is not set in the verify-frontend-federation-config configuration. This change allows for the flag not being set, returning empty array instead of nil.
diff --git a/config/deploy.rb b/config/deploy.rb index abc1234..def5678 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -1,6 +1,6 @@ set :application, "omnominator" set :repository, "git@github.com:railsrumble/rr09-team-174.git" -set :branch, "release" +set :branch, ...
Deploy from the final tag.
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,5 @@ KomachiHeartbeat::Engine.routes.draw do - get "heartbeat", :to => "heartbeat#index" + get "heartbeat", :to => "heartbeat#index", defaults: { format: "txt" } get "version", :t...
Fix /ops/heartbeat returns svg format with curl
diff --git a/lib/ember_secure_builder/workers/cross_browser_test_batch_results_worker.rb b/lib/ember_secure_builder/workers/cross_browser_test_batch_results_worker.rb index abc1234..def5678 100644 --- a/lib/ember_secure_builder/workers/cross_browser_test_batch_results_worker.rb +++ b/lib/ember_secure_builder/workers/cr...
Add more retries for collecting test results.
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,6 @@ Rails.application.routes.draw do get '/items', to: 'items#index' + get '/items/new', to: 'items#new' get '/items/:id', to: 'items#show', as: 'item' # For details on the ...
Create new route for new items
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -4,6 +4,10 @@ end else Rails.application.routes.draw do - match 'window_rails/open_window' => 'window_rails#open_window', :as => :open_window + if(Rails.version.split('.').first.to...
Update routing so rails 4 doesn't get crabby
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -8,7 +8,9 @@ match '/about' => 'home#about', via: 'get', :as => :home_about match '/contact' => 'home#contact', via: 'get', :as => :home_contact - resources :ideas + resou...
Add comments as a child resource of ideas.
diff --git a/features/steps/reporting/display_run_summary.rb b/features/steps/reporting/display_run_summary.rb index abc1234..def5678 100644 --- a/features/steps/reporting/display_run_summary.rb +++ b/features/steps/reporting/display_run_summary.rb @@ -11,6 +11,17 @@ Given I am a fool When I jump from ...
Update spinach to take care of some other edge cases. Finalize when undefined step bug is solved
diff --git a/spec/views/layouts/listnav/_cloud_tenant.html.haml_spec.rb b/spec/views/layouts/listnav/_cloud_tenant.html.haml_spec.rb index abc1234..def5678 100644 --- a/spec/views/layouts/listnav/_cloud_tenant.html.haml_spec.rb +++ b/spec/views/layouts/listnav/_cloud_tenant.html.haml_spec.rb @@ -1,4 +1,6 @@ describe "l...
Fix test that used to pass due to test contamination Failure: 1) layouts/listnav/_cloud_tenant.html.haml link to parent cloud provider uses restful path Failure/Error: = render_quadicon(@record, :mode => :icon, :size => 72, :typ => :listnav) ActionView::Template::Error: undefined method `render_qu...
diff --git a/core/exception/interrupt_spec.rb b/core/exception/interrupt_spec.rb index abc1234..def5678 100644 --- a/core/exception/interrupt_spec.rb +++ b/core/exception/interrupt_spec.rb @@ -1,4 +1,10 @@ require File.expand_path('../../../spec_helper', __FILE__) + +describe "Interrupt" do + it "is a subclass of Sign...
Add spec for inheritance of Interrupt See also https://github.com/ruby/spec/pull/298#discussion_r81414942
diff --git a/gui/event_queue.rb b/gui/event_queue.rb index abc1234..def5678 100644 --- a/gui/event_queue.rb +++ b/gui/event_queue.rb @@ -14,7 +14,10 @@ else Timer.new(seconds * 1000, lambda { |e| yield - }).start() + }).tap do |timer| + timer.setRepeats(false) + timer.start()...
Fix bug - Swing Timer defaults to repeating.
diff --git a/itamae-node_env.gemspec b/itamae-node_env.gemspec index abc1234..def5678 100644 --- a/itamae-node_env.gemspec +++ b/itamae-node_env.gemspec @@ -20,5 +20,5 @@ spec.add_dependency "itamae", '>= 1.1.1' spec.add_development_dependency "bundler", "~> 1.7" - spec.add_development_dependency "rake", "~> 10...
Update rake requirement from ~> 10.0 to ~> 13.0 Updates the requirements on [rake](https://github.com/ruby/rake) to permit the latest version. - [Release notes](https://github.com/ruby/rake/releases) - [Changelog](https://github.com/ruby/rake/blob/master/History.rdoc) - [Commits](https://github.com/ruby/rake/compare/r...
diff --git a/Casks/better-window-manager.rb b/Casks/better-window-manager.rb index abc1234..def5678 100644 --- a/Casks/better-window-manager.rb +++ b/Casks/better-window-manager.rb @@ -1,11 +1,11 @@ cask :v1 => 'better-window-manager' do - version '1.11.12' - sha256 '6cf65ca37259a3702001b62e677052c2f69b0a35ebfb50d215...
Update Better Window Manager to 1.11.12
diff --git a/Casks/little-snitch-nightly.rb b/Casks/little-snitch-nightly.rb index abc1234..def5678 100644 --- a/Casks/little-snitch-nightly.rb +++ b/Casks/little-snitch-nightly.rb @@ -1,6 +1,6 @@ class LittleSnitchNightly < Cask - version '3.4-nightly-(4205)' - sha256 '2ee5eb87cdb548d4dce67c27dcc03e3560e2efc67210d1c...
Upgrade Little Snitch Nightly to 3.4 4208
diff --git a/app/helpers/geocoder_helper.rb b/app/helpers/geocoder_helper.rb index abc1234..def5678 100644 --- a/app/helpers/geocoder_helper.rb +++ b/app/helpers/geocoder_helper.rb @@ -2,7 +2,7 @@ def result_to_html(result) html_options = {} #html_options[:title] = strip_tags(result[:description]) if result...
Make the search URLs include a marker.
diff --git a/app/mailers/pay/user_mailer.rb b/app/mailers/pay/user_mailer.rb index abc1234..def5678 100644 --- a/app/mailers/pay/user_mailer.rb +++ b/app/mailers/pay/user_mailer.rb @@ -3,7 +3,10 @@ def receipt(user, charge) @user, @charge = user, charge - attachments[charge.filename] = charge.receipt....
Check for charge.receipt in mailer
diff --git a/app/models/path_reservation.rb b/app/models/path_reservation.rb index abc1234..def5678 100644 --- a/app/models/path_reservation.rb +++ b/app/models/path_reservation.rb @@ -12,7 +12,7 @@ end def self.create_path_reservation(base_path, publishing_app) - ActiveRecord::Base.transaction do + Active...
Add requires_new to ActiveRecord to use savepoints
diff --git a/app/models/permitted_params.rb b/app/models/permitted_params.rb index abc1234..def5678 100644 --- a/app/models/permitted_params.rb +++ b/app/models/permitted_params.rb @@ -4,6 +4,12 @@ # Returns an instance of strong parameters. def session PermittedSessionParams.new(self.params, self.user) + en...
Add Permitted params for Doorkeeper::Application
diff --git a/lib/chronicle/resource_controller_extensions.rb b/lib/chronicle/resource_controller_extensions.rb index abc1234..def5678 100644 --- a/lib/chronicle/resource_controller_extensions.rb +++ b/lib/chronicle/resource_controller_extensions.rb @@ -24,7 +24,7 @@ def clear_model_cache_with_draft_awareness ...
Fix an error when adding page parts.
diff --git a/roles/ucl.rb b/roles/ucl.rb index abc1234..def5678 100644 --- a/roles/ucl.rb +++ b/roles/ucl.rb @@ -19,15 +19,6 @@ } } } - }, - :sysctl => { - :blackhole => { - :comment => "Force TCP level MTU probing because of known ICMP blackhole at UCL", - :parameters => { - "...
Revert "Force Enable TCP MTU probing @ UCL" This reverts commit b1ced9fbdbe88a53f3b96236ea82cb85f85262cc.
diff --git a/lib/travis/build/appliances/fix_hhvm_source.rb b/lib/travis/build/appliances/fix_hhvm_source.rb index abc1234..def5678 100644 --- a/lib/travis/build/appliances/fix_hhvm_source.rb +++ b/lib/travis/build/appliances/fix_hhvm_source.rb @@ -1,4 +1,3 @@- require 'travis/build/appliances/base' module Travis @...
Remove hhvm repo for images used by enterprise
diff --git a/ruby/main.rb b/ruby/main.rb index abc1234..def5678 100644 --- a/ruby/main.rb +++ b/ruby/main.rb @@ -1,3 +1,5 @@+# encoding: utf-8 +# require 'ffi' module StringTools
Add encoding comment for Ruby.
diff --git a/lib/likes/set.rb b/lib/likes/set.rb index abc1234..def5678 100644 --- a/lib/likes/set.rb +++ b/lib/likes/set.rb @@ -3,8 +3,8 @@ class Set # Default engine - simplest one # - # @see Engines::BestIntersectionSize - DEFAULT_ENGINE = Engines::BestIntersectionSize + # @see Engines::FastJacc...
Make Engines::FastJaccardSimilarity a default engine
diff --git a/lib/priceable.rb b/lib/priceable.rb index abc1234..def5678 100644 --- a/lib/priceable.rb +++ b/lib/priceable.rb @@ -17,9 +17,13 @@ send("#{price_field}#{suffix}=".to_sym, (new_price.to_f * 100).round) end end - if self._accessible_attributes? - attr_accessible *price_fields + + ...
Make compatible with Rails 4