diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/app/presenters/announcements_presenter.rb b/app/presenters/announcements_presenter.rb index abc1234..def5678 100644 --- a/app/presenters/announcements_presenter.rb +++ b/app/presenters/announcements_presenter.rb @@ -34,9 +34,13 @@ @announcements ||= Services.cached_search( count: 10, orde...
Support showing announcements for all locales Search API only supports documents written in English so we should remove the locale from the slug when querying for documents.
diff --git a/lib/whatsapp/protocol/nodes/sync_node.rb b/lib/whatsapp/protocol/nodes/sync_node.rb index abc1234..def5678 100644 --- a/lib/whatsapp/protocol/nodes/sync_node.rb +++ b/lib/whatsapp/protocol/nodes/sync_node.rb @@ -27,7 +27,8 @@ private def generate_sid - ((Time.new.to_f + 11644477200) *...
Change sid to match the php implementation
diff --git a/rails-dom-testing.gemspec b/rails-dom-testing.gemspec index abc1234..def5678 100644 --- a/rails-dom-testing.gemspec +++ b/rails-dom-testing.gemspec @@ -18,7 +18,7 @@ spec.test_files = Dir["test/**/*"] spec.require_paths = ["lib"] - spec.add_dependency "nokogiri", "~> 1.5.9" + spec.add_dependenc...
Update Nokogiri version to 1.6.0.
diff --git a/spec/lib/task_helpers/exports/alerts_spec.rb b/spec/lib/task_helpers/exports/alerts_spec.rb index abc1234..def5678 100644 --- a/spec/lib/task_helpers/exports/alerts_spec.rb +++ b/spec/lib/task_helpers/exports/alerts_spec.rb @@ -1,21 +1,43 @@-describe 'TaskHelpers::Exports::Alerts' do - let(:data_dir) { Fi...
Use FactoryGirl to create alerts to test exports
diff --git a/libraries/docker_installation_tarball.rb b/libraries/docker_installation_tarball.rb index abc1234..def5678 100644 --- a/libraries/docker_installation_tarball.rb +++ b/libraries/docker_installation_tarball.rb @@ -20,6 +20,8 @@ ######### action :create do + package 'tar' + # Pull a pre...
Make sure tar is installed to decompress the tarball It won't always be there on RHEL Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
diff --git a/filmbuff.gemspec b/filmbuff.gemspec index abc1234..def5678 100644 --- a/filmbuff.gemspec +++ b/filmbuff.gemspec @@ -1,25 +1,27 @@ # -*- encoding: utf-8 -*- -$:.push File.expand_path("../lib", __FILE__) -require "filmbuff/version" +$:.push File.expand_path('../lib', __FILE__) +require 'filmbuff/version' ...
Change double quotes to single quotes
diff --git a/engines/standard_tasks/spec/features/reviewer_report_task_spec.rb b/engines/standard_tasks/spec/features/reviewer_report_task_spec.rb index abc1234..def5678 100644 --- a/engines/standard_tasks/spec/features/reviewer_report_task_spec.rb +++ b/engines/standard_tasks/spec/features/reviewer_report_task_spec.rb...
Simplify reviewer report task spec
diff --git a/breezy_rails/lib/tasks/install.rake b/breezy_rails/lib/tasks/install.rake index abc1234..def5678 100644 --- a/breezy_rails/lib/tasks/install.rake +++ b/breezy_rails/lib/tasks/install.rake @@ -27,12 +27,6 @@ template = File.expand_path("../install/web.rb", __dir__) exec "#{RbConfig.ruby} ./bin/...
Remove old react native task
diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb index abc1234..def5678 100644 --- a/config/initializers/assets.rb +++ b/config/initializers/assets.rb @@ -8,7 +8,8 @@ # Precompile additional assets. # application.js, application.css, and all non-JS/CSS in app/assets folder are already added...
Add new stylesheets to be precompiled
diff --git a/config/software/libsqlite3.rb b/config/software/libsqlite3.rb index abc1234..def5678 100644 --- a/config/software/libsqlite3.rb +++ b/config/software/libsqlite3.rb @@ -1,7 +1,7 @@ name "libsqlite3" default_version "3.7.7.1" -source :git => 'git@github.com:LuaDist/libsqlite3.git' +source :git => 'git://g...
Fix git url for libsqlite
diff --git a/flotilla-rails.gemspec b/flotilla-rails.gemspec index abc1234..def5678 100644 --- a/flotilla-rails.gemspec +++ b/flotilla-rails.gemspec @@ -12,7 +12,7 @@ s.description = s.summary s.authors = ["Hannes Gustafsson", "Joshua Miller", "Mathias Sulser", "Jerry Cheung", "Logan Leger"] - s.files = Dir...
Change included file to reflect extension change
diff --git a/lib/example_group_timer/timed_group.rb b/lib/example_group_timer/timed_group.rb index abc1234..def5678 100644 --- a/lib/example_group_timer/timed_group.rb +++ b/lib/example_group_timer/timed_group.rb @@ -26,8 +26,7 @@ def report super puts "<ol>" - examples.sort_by { |o| o.duration }...
Sort examples and groups combined
diff --git a/app/channels/handshakes_channel.rb b/app/channels/handshakes_channel.rb index abc1234..def5678 100644 --- a/app/channels/handshakes_channel.rb +++ b/app/channels/handshakes_channel.rb @@ -4,6 +4,6 @@ end def receive(payload) - handshake = Handshakes.create(challenge_id: payload["challenge_id"] us...
Add comma to handshake channel
diff --git a/app/controllers/cart_controller.rb b/app/controllers/cart_controller.rb index abc1234..def5678 100644 --- a/app/controllers/cart_controller.rb +++ b/app/controllers/cart_controller.rb @@ -11,11 +11,7 @@ order.cap_quantity_at_stock! order.recreate_all_fees! - variant_ids = order.line_ite...
Refactor stock levels check in CartController
diff --git a/app/controllers/tags_controller.rb b/app/controllers/tags_controller.rb index abc1234..def5678 100644 --- a/app/controllers/tags_controller.rb +++ b/app/controllers/tags_controller.rb @@ -1,6 +1,6 @@ class TagsController < ApplicationController def index - @tags = ActsAsTaggableOn::Tag.all + @tags...
Sort tags by most used.
diff --git a/spec/helper.rb b/spec/helper.rb index abc1234..def5678 100644 --- a/spec/helper.rb +++ b/spec/helper.rb @@ -17,7 +17,7 @@ LogBuddy.init :logger => Log -connection = Mongo::Connection.new('127.0.0.1', 27017, :logger => Log) +connection = Mongo::MongoClient.new('127.0.0.1', 27017, :logger => Log) DB = c...
Use mongo client and don't attempt to fudge with system collections.
diff --git a/gemspecs/m4dbi.gemspec b/gemspecs/m4dbi.gemspec index abc1234..def5678 100644 --- a/gemspecs/m4dbi.gemspec +++ b/gemspecs/m4dbi.gemspec @@ -16,13 +16,13 @@ #s.platform = Gem::Platform::RUBY s.files = [ - 'README.rdoc', - 'CHANGELOG', - 'LICENCE', + # 'README.rdoc', + ...
Remove doc files from gemspec, since Bundler or Rubygems seems to get confused.
diff --git a/ruby/triangle/triangle.rb b/ruby/triangle/triangle.rb index abc1234..def5678 100644 --- a/ruby/triangle/triangle.rb +++ b/ruby/triangle/triangle.rb @@ -10,19 +10,11 @@ end def equilateral? - true if equialateral - end - - def equialateral return false if invalid_lengths? true if sorte...
Remove methods that simply call other methods
diff --git a/features/step_definitions/analyics_steps.rb b/features/step_definitions/analyics_steps.rb index abc1234..def5678 100644 --- a/features/step_definitions/analyics_steps.rb +++ b/features/step_definitions/analyics_steps.rb @@ -4,7 +4,7 @@ expect(page).to have_selector('ul[data-module="track-click"]') d...
Change .to be > 0 to be_positive
diff --git a/features/step_definitions/feedback_steps.rb b/features/step_definitions/feedback_steps.rb index abc1234..def5678 100644 --- a/features/step_definitions/feedback_steps.rb +++ b/features/step_definitions/feedback_steps.rb @@ -1,11 +1,13 @@ Given(/^I visit the feedback tool$/) do - pending # express the rege...
Add cuke test for feedback feature
diff --git a/config/environments/test.rb b/config/environments/test.rb index abc1234..def5678 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -13,7 +13,7 @@ config.eager_load = false # Configure static asset server for tests with Cache-Control for performance. - config.serve_static...
Change config since variable name got deprecated
diff --git a/app/controllers/facebooked/api_controller.rb b/app/controllers/facebooked/api_controller.rb index abc1234..def5678 100644 --- a/app/controllers/facebooked/api_controller.rb +++ b/app/controllers/facebooked/api_controller.rb @@ -3,26 +3,32 @@ def albums return render :inline => 'false' unless self.pr...
Make sure token is valid.
diff --git a/plugins/commands/plugin/gem_helper.rb b/plugins/commands/plugin/gem_helper.rb index abc1234..def5678 100644 --- a/plugins/commands/plugin/gem_helper.rb +++ b/plugins/commands/plugin/gem_helper.rb @@ -26,6 +26,11 @@ # Clear paths so that it reads the new GEM_HOME setting Gem.paths = ENV +...
Use the HashiCorp gem source for plugin installs
diff --git a/test/functional/roadmap_controller_test.rb b/test/functional/roadmap_controller_test.rb index abc1234..def5678 100644 --- a/test/functional/roadmap_controller_test.rb +++ b/test/functional/roadmap_controller_test.rb @@ -0,0 +1,15 @@+require "test_helper" + +class RoadmapControllerTest < ActionController::T...
Add missing test for Roadmap controller This covers a lot of the allegedly 'unused' i18n keys.
diff --git a/benchmarks.rb b/benchmarks.rb index abc1234..def5678 100644 --- a/benchmarks.rb +++ b/benchmarks.rb @@ -5,7 +5,7 @@ HtmlSource.new( 'overnight', 'Target Overnight Lending Rate', - 'http://www.bankofcanada.ca/rates/daily-digest/', + 'http://bankofcanada.ca/en/rates/digest.html', nil, ...
Fix Bank of Canada URLs
diff --git a/src/command.rb b/src/command.rb index abc1234..def5678 100644 --- a/src/command.rb +++ b/src/command.rb @@ -3,6 +3,17 @@ # Class to store user commands class Command + class Token + def initialize value, types=[:unknown] + @value = value + @type = types + end + + def to_s + @val...
Use tokens in Command to add extra information to words
diff --git a/config/initializers/secret_token.rb b/config/initializers/secret_token.rb index abc1234..def5678 100644 --- a/config/initializers/secret_token.rb +++ b/config/initializers/secret_token.rb @@ -10,9 +10,7 @@ # Make sure your secret_key_base is kept private # if you're sharing your code publicly. if Rails.e...
Remove spaces from secret token error message
diff --git a/src/passage.rb b/src/passage.rb index abc1234..def5678 100644 --- a/src/passage.rb +++ b/src/passage.rb @@ -2,6 +2,9 @@ # A passage's condition must return a truthy value, or the passage is # inaccessible. + + #FIXME: some_passage.description + # some_passage.descriptions attr_accessor ...
Add FIXME for poor Passage property/method names
diff --git a/spec/tic_tac_toe_spec.rb b/spec/tic_tac_toe_spec.rb index abc1234..def5678 100644 --- a/spec/tic_tac_toe_spec.rb +++ b/spec/tic_tac_toe_spec.rb @@ -1,10 +1,12 @@ require_relative '../lib/tic_tac_toe.rb' describe TicTacToe do + let(:ttt){TicTacToe.new} + describe '#initialize' do it 'creates a e...
Refactor test to reduce instantitiating a new TicTacToe for each test
diff --git a/handlers/other/graceful-shutdown.rb b/handlers/other/graceful-shutdown.rb index abc1234..def5678 100644 --- a/handlers/other/graceful-shutdown.rb +++ b/handlers/other/graceful-shutdown.rb @@ -0,0 +1,67 @@+#! /usr/bin/env ruby +# +# Graceful Shutdown Handler +# === +# +# DESCRIPTION: +# This handler is re...
Add a graceful shutdown handler. This handler creates a stash to be used as metadata to other handlers/processes.
diff --git a/spec/geezeo_spec.rb b/spec/geezeo_spec.rb index abc1234..def5678 100644 --- a/spec/geezeo_spec.rb +++ b/spec/geezeo_spec.rb @@ -5,7 +5,7 @@ @geezeo = Geezeo.client(credentials["api_key"], credentials["user_id"]) end - it "gets a list of accounts" do + it "gets a list of all accounts" do acc...
Add third test 'it gets a list of all transactions'
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 @@ -2,11 +2,10 @@ require "coveralls" Coveralls.wear! -require "active_record" - case ENV["DB"] when "postgres" require "pg" + require "active_record" ActiveRecord::Base.e...
Load database driver before load activerecord
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 @@ -14,18 +14,5 @@ config.include DataMapper::Matchers config.include FactoryGirl::Syntax::Methods config.include Rack::Test::Methods - - config.before(:suite) do - Databa...
Remove database cleaner initialization for specs
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 @@ -35,7 +35,7 @@ RSpec::Matchers.define :be_well_formed do match do |doc| begin - Nokogiri::XML(doc) { |config| config.strict } + Nokogiri::XML(doc, &:strict) ...
Use unary ampersand for trivial block. Signed-off-by: brian m. carlson <738bdd359be778fee9f0fc4e2934ad72f436ceda@crustytoothpaste.net>
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,4 +1,10 @@ require 'overcommit' + +RSpec.configure do |config| + config.color_enabled = true + config.tty = true + config.formatter = :documentation +end def exit(*args) ;...
Configure rspec for documentation + color This provides nicer output in e.g. jenkins. Change-Id: I422249b7e227c3e2064eaf1ad7186a271ada5597 Reviewed-on: https://gerrit.causes.com/23045 Tested-by: jenkins <d95b56ce41a2e1ac4cecdd398defd7414407cc08@causes.com> Reviewed-by: Shane da Silva <6f6e68d1df92f30cb4b3ce35260ddf94...
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 @@ -23,3 +23,24 @@ PuppetlabsSpec::Files.cleanup end end + +require 'pathname' +dir = Pathname.new(__FILE__).parent +Puppet[:modulepath] = File.join(dir, 'fixtures', 'modules'...
Use modulesync to manage meta files
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 @@ -7,7 +7,7 @@ WebMock.disable_net_connect!(allow: 'codeclimate.com') -CodeClimate::TestReporter.start +CodeClimate::TestReporter.start if RUBY_ENGINE == 'ruby' SimpleCov.star...
Send test coverage to codeclimate only for cruby
diff --git a/lib/cloud_conductor/adapters/abstract_adapter.rb b/lib/cloud_conductor/adapters/abstract_adapter.rb index abc1234..def5678 100644 --- a/lib/cloud_conductor/adapters/abstract_adapter.rb +++ b/lib/cloud_conductor/adapters/abstract_adapter.rb @@ -19,7 +19,7 @@ fail "Can't instantiate abstract adapter"...
Add arguments to abstract method
diff --git a/lib/cocoapods/external_sources/podspec_source.rb b/lib/cocoapods/external_sources/podspec_source.rb index abc1234..def5678 100644 --- a/lib/cocoapods/external_sources/podspec_source.rb +++ b/lib/cocoapods/external_sources/podspec_source.rb @@ -15,7 +15,7 @@ open(podspec_uri) { |io| store_podspe...
[PodspecSource] Update message for informative error if fetch fails
diff --git a/sparkle_formation.gemspec b/sparkle_formation.gemspec index abc1234..def5678 100644 --- a/sparkle_formation.gemspec +++ b/sparkle_formation.gemspec @@ -10,7 +10,7 @@ s.description = 'Ruby DSL for programmatic orchestration API template generation' s.license = 'Apache-2.0' s.require_path = 'lib' - ...
Update attribute_struct constraint to require traversal fixed version
diff --git a/lib/_grid_one.rb b/lib/_grid_one.rb index abc1234..def5678 100644 --- a/lib/_grid_one.rb +++ b/lib/_grid_one.rb @@ -9,7 +9,8 @@ {'V'=>0, 'g'=>1, '.'=>nil}, 'media/background.png') - @program_1 = Program.new(@window, 416, 160, 'media/grid_one_program_1.txt') + @program_1 = Program....
Update parameter to reflect new filename
diff --git a/lib/crono/job.rb b/lib/crono/job.rb index abc1234..def5678 100644 --- a/lib/crono/job.rb +++ b/lib/crono/job.rb @@ -19,7 +19,10 @@ def perform Crono.logger.info "Perform #{performer}" self.last_performed_at = Time.now - Thread.new { performer.new.perform } + Thread.new do + ...
Add to log information about performing time
diff --git a/lib/discordrb.rb b/lib/discordrb.rb index abc1234..def5678 100644 --- a/lib/discordrb.rb +++ b/lib/discordrb.rb @@ -4,5 +4,13 @@ # All discordrb functionality, to be extended by other files module Discordrb - # Your code goes here... + # Simple Levenshtein distance (slow) + def levenshtein(one, two) ...
Implement a Levenshtein distance for the fuzzy finder
diff --git a/lib/chelsy/ast.rb b/lib/chelsy/ast.rb index abc1234..def5678 100644 --- a/lib/chelsy/ast.rb +++ b/lib/chelsy/ast.rb @@ -6,6 +6,7 @@ class Element < Node end + # 6.4.4.1 Integer constants module Constant class Integral < Element @@ -13,12 +14,12 @@ def initialize(value, unsigned: f...
Convert boolean value on initialization
diff --git a/lib/sumo_seed.rb b/lib/sumo_seed.rb index abc1234..def5678 100644 --- a/lib/sumo_seed.rb +++ b/lib/sumo_seed.rb @@ -6,7 +6,10 @@ end def self.run_task - seed_path = [Rails.root, ENV['seed_path'].split('/')].flatten || self.seed_path + seed_path = ENV['seed_path'] ? + [Rails.root, ENV['see...
:bug: Fix accessing nil seed path env variable
diff --git a/lib/app/controllers/nodefiles_controller.rb b/lib/app/controllers/nodefiles_controller.rb index abc1234..def5678 100644 --- a/lib/app/controllers/nodefiles_controller.rb +++ b/lib/app/controllers/nodefiles_controller.rb @@ -1,6 +1,6 @@ class NodefilesController < InheritedResources::Base - self.append_v...
Fix views path for production
diff --git a/lib/joker-api/operations/result_retrieve.rb b/lib/joker-api/operations/result_retrieve.rb index abc1234..def5678 100644 --- a/lib/joker-api/operations/result_retrieve.rb +++ b/lib/joker-api/operations/result_retrieve.rb @@ -6,9 +6,9 @@ proc_id = proc_id.proc_id if proc_id.kind_of?(Response) ...
Include "body" in results-retrieve return val.
diff --git a/lib/memory_analyzer/heap_analyzer/parser.rb b/lib/memory_analyzer/heap_analyzer/parser.rb index abc1234..def5678 100644 --- a/lib/memory_analyzer/heap_analyzer/parser.rb +++ b/lib/memory_analyzer/heap_analyzer/parser.rb @@ -39,6 +39,7 @@ node.tap do |n| n.deep_symbolize_keys! ...
Save a little more memory by symbolizing more common strings.
diff --git a/test/unit/round_test.rb b/test/unit/round_test.rb index abc1234..def5678 100644 --- a/test/unit/round_test.rb +++ b/test/unit/round_test.rb @@ -15,4 +15,15 @@ assert_not_nil r.expire_time assert Time.now + 1.hours - r.expire_time < 1 # fuzzy time comparison end + + test "url and expire_time pe...
Test Round url and expire_time persist on save
diff --git a/db/migrate/20210227144926_migrate_payment_fees_to_payments.rb b/db/migrate/20210227144926_migrate_payment_fees_to_payments.rb index abc1234..def5678 100644 --- a/db/migrate/20210227144926_migrate_payment_fees_to_payments.rb +++ b/db/migrate/20210227144926_migrate_payment_fees_to_payments.rb @@ -0,0 +1,22 @...
Migrate payment fee adjustments to payment objects
diff --git a/lib/cc/engine/analyzers/php/main.rb b/lib/cc/engine/analyzers/php/main.rb index abc1234..def5678 100644 --- a/lib/cc/engine/analyzers/php/main.rb +++ b/lib/cc/engine/analyzers/php/main.rb @@ -24,10 +24,6 @@ sexp.flatter end - def use_sexp_lines? - false - ...
Use `SexpLines` for PHP parser Since we're reverting back to the old PHP parser, we need to restore the use of `SexpLines`.
diff --git a/lib/hanzo/modules/install.rb b/lib/hanzo/modules/install.rb index abc1234..def5678 100644 --- a/lib/hanzo/modules/install.rb +++ b/lib/hanzo/modules/install.rb @@ -18,7 +18,7 @@ method = "install_#{@type}" if self.respond_to?(method) - send "install_#{@type}" + send(method) ...
Use 'method' variable instead of String
diff --git a/lib/rack/dev-mark/railtie.rb b/lib/rack/dev-mark/railtie.rb index abc1234..def5678 100644 --- a/lib/rack/dev-mark/railtie.rb +++ b/lib/rack/dev-mark/railtie.rb @@ -20,7 +20,7 @@ racks << theme end - app.config.app_middleware.send(insert_method, *racks) + app.confi...
Insert into the correct middleware in spec
diff --git a/lib/tasks/organisations.rake b/lib/tasks/organisations.rake index abc1234..def5678 100644 --- a/lib/tasks/organisations.rake +++ b/lib/tasks/organisations.rake @@ -2,6 +2,13 @@ namespace :organisations do + #work around that heroku schedule only allows up to daily + task :weekly_import => :environmen...
Add rake task to be called by heroku scheduler
diff --git a/lib/tootsie/configuration.rb b/lib/tootsie/configuration.rb index abc1234..def5678 100644 --- a/lib/tootsie/configuration.rb +++ b/lib/tootsie/configuration.rb @@ -20,10 +20,6 @@ end end @queue_options = (config[:queue] ||= {}).symbolize_keys - - # Backwards compatibility with ol...
Remove some old SQS backward compatibility stuff.
diff --git a/lib/facter/freeradius_version.rb b/lib/facter/freeradius_version.rb index abc1234..def5678 100644 --- a/lib/facter/freeradius_version.rb +++ b/lib/facter/freeradius_version.rb @@ -1,7 +1,9 @@ # Grab the FreeRADIUS version from the output of radiusd -v -Facter.add(:freeradius_version) do - setcode do - ...
Make the fact work gracefully on systems that don't have FreeRADIUS installed
diff --git a/lib/subdomain_fu/url_rewriter.rb b/lib/subdomain_fu/url_rewriter.rb index abc1234..def5678 100644 --- a/lib/subdomain_fu/url_rewriter.rb +++ b/lib/subdomain_fu/url_rewriter.rb @@ -6,8 +6,7 @@ def url_for_with_subdomains(options, path_segments=nil) if SubdomainFu.needs_rewrite?(options[:subdo...
Remove reference to host/ port
diff --git a/test/mail_form_test.rb b/test/mail_form_test.rb index abc1234..def5678 100644 --- a/test/mail_form_test.rb +++ b/test/mail_form_test.rb @@ -9,4 +9,16 @@ sample.email = "user@example.com" assert_equal "user@example.com", sample.email end + test "sample mail can clear attributes using clear_pref...
Add test 'sample mail can clear attributes using clear_prefix'
diff --git a/lib/generators/rails_admin/utils.rb b/lib/generators/rails_admin/utils.rb index abc1234..def5678 100644 --- a/lib/generators/rails_admin/utils.rb +++ b/lib/generators/rails_admin/utils.rb @@ -9,7 +9,7 @@ def ask_for(wording, default_value = nil, override_if_present_value = nil) override_...
Fix for SuperUser => superuser closes #720
diff --git a/lib/rip/parsers/block_expression.rb b/lib/rip/parsers/block_expression.rb index abc1234..def5678 100644 --- a/lib/rip/parsers/block_expression.rb +++ b/lib/rip/parsers/block_expression.rb @@ -10,6 +10,8 @@ rule(:block_expression) { condition | loop_block | exception_handling } - rule(:block) { s...
Refactor block rule to allow custom body
diff --git a/lib/sass/globbing/monkey_patches.rb b/lib/sass/globbing/monkey_patches.rb index abc1234..def5678 100644 --- a/lib/sass/globbing/monkey_patches.rb +++ b/lib/sass/globbing/monkey_patches.rb @@ -6,7 +6,7 @@ def initialize(template, options={}) old_initialize(template, options) unless self.options[...
Change the globbing importer to be at the end of the load paths instead of the front. This prevents the globbing from picking up compass sprite imports.
diff --git a/lib/geojson_model/base.rb b/lib/geojson_model/base.rb index abc1234..def5678 100644 --- a/lib/geojson_model/base.rb +++ b/lib/geojson_model/base.rb @@ -9,6 +9,8 @@ included do include Virtus.model include ActiveModel::Serializers::JSON + + alias_method :to_geojson, :to_json end ...
Move alias_method into included block
diff --git a/JSONRequest.podspec b/JSONRequest.podspec index abc1234..def5678 100644 --- a/JSONRequest.podspec +++ b/JSONRequest.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "JSONRequest" - s.version = "0.6.0" + s.version = "0.7.0" s.summary = "JSONRequest is a tiny Swift libra...
Set swift version in podspec file
diff --git a/lib/kosmos/git_adapter.rb b/lib/kosmos/git_adapter.rb index abc1234..def5678 100644 --- a/lib/kosmos/git_adapter.rb +++ b/lib/kosmos/git_adapter.rb @@ -6,6 +6,10 @@ def init_repo(path) Dir.chdir(path) do `git init` + + File.open('.gitignore', 'w') do |file| + f...
Make sure git ignores nothing.
diff --git a/lib/locations_ng/state.rb b/lib/locations_ng/state.rb index abc1234..def5678 100644 --- a/lib/locations_ng/state.rb +++ b/lib/locations_ng/state.rb @@ -1,46 +1,52 @@ module LocationsNg class State - def self.all - load_states.map{ |s| {name: s['name'], capital: s['capital']} } - end + clas...
Refactor State class methods definition.
diff --git a/db/data_migration/20190507120922_add_tags_to_specialist_sectors.rb b/db/data_migration/20190507120922_add_tags_to_specialist_sectors.rb index abc1234..def5678 100644 --- a/db/data_migration/20190507120922_add_tags_to_specialist_sectors.rb +++ b/db/data_migration/20190507120922_add_tags_to_specialist_sector...
Add tag to specialist sectors missing it There are 19779 specialist sectors which correctly link to a topic but their tag field is empty. A user wanted to use specialist sector tags in a CSV file to help find content but cannot as so many have their tags missing. This adds the tag field in to all but 35 of those items....
diff --git a/core/lib/spree/core/controller_helpers/strong_parameters.rb b/core/lib/spree/core/controller_helpers/strong_parameters.rb index abc1234..def5678 100644 --- a/core/lib/spree/core/controller_helpers/strong_parameters.rb +++ b/core/lib/spree/core/controller_helpers/strong_parameters.rb @@ -27,7 +27,8 @@ ...
Add gift_message to the parameter whitelist
diff --git a/lib/mina/unicorn/tasks.rb b/lib/mina/unicorn/tasks.rb index abc1234..def5678 100644 --- a/lib/mina/unicorn/tasks.rb +++ b/lib/mina/unicorn/tasks.rb @@ -9,7 +9,7 @@ set :unicorn_env, -> { fetch(:rails_env) == "development" ? "development" : "deployment" } set :unicorn_config, -> { "#{fetch(:cu...
Use bundle_prefix for unicorn_cmd if available Commit 7cc5272 removed mina/rails dependency, so 'bundle_prefix' could not be set. Use it if available, otherwise default to 'bundle exec'.
diff --git a/lib/miniphonic/helpers.rb b/lib/miniphonic/helpers.rb index abc1234..def5678 100644 --- a/lib/miniphonic/helpers.rb +++ b/lib/miniphonic/helpers.rb @@ -1,15 +1,30 @@ require 'mime/types' module Miniphonic::Helpers + + # TODO: abstract to and from server into something like "request(verb, url, payload)"...
Add from_server (not very dry, sry)
diff --git a/lib/react/jsx/template.rb b/lib/react/jsx/template.rb index abc1234..def5678 100644 --- a/lib/react/jsx/template.rb +++ b/lib/react/jsx/template.rb @@ -1,3 +1,5 @@+require 'tilt' + module React module JSX
Fix uninitialized constant React::JSX::Tilt in 3.2.x
diff --git a/lib/rubella/input/base.rb b/lib/rubella/input/base.rb index abc1234..def5678 100644 --- a/lib/rubella/input/base.rb +++ b/lib/rubella/input/base.rb @@ -1,41 +1,13 @@ module Rubella module Input - # Gets the rwa data and translate it into a by the Rubella::Weighting::Base - # class readable forma...
Remove not needed abstract classes The constructor classes are not needed for making the library work. So I removed them.
diff --git a/moodle2cc.gemspec b/moodle2cc.gemspec index abc1234..def5678 100644 --- a/moodle2cc.gemspec +++ b/moodle2cc.gemspec @@ -2,10 +2,10 @@ require File.expand_path('../lib/moodle2cc/version', __FILE__) Gem::Specification.new do |gem| - gem.authors = ["Christopher Durtschi"] - gem.email = ["ch...
Add Kevin to authors, add summary and description
diff --git a/Casks/android-studio.rb b/Casks/android-studio.rb index abc1234..def5678 100644 --- a/Casks/android-studio.rb +++ b/Casks/android-studio.rb @@ -1,7 +1,7 @@ class AndroidStudio < Cask - url 'http://dl.google.com/dl/android/studio/ide-zips/0.5.3/android-studio-ide-135.1092050-mac.zip' + url 'http://dl.goog...
Upgrade Android Studio.app to v0.5.4 build-135.1101912
diff --git a/Casks/omnifocus-beta.rb b/Casks/omnifocus-beta.rb index abc1234..def5678 100644 --- a/Casks/omnifocus-beta.rb +++ b/Casks/omnifocus-beta.rb @@ -1,6 +1,6 @@ cask :v1 => 'omnifocus-beta' do - version '2.2.x-r235511' - sha256 '5f11983b2d4ec9e447a5b69dd3c09e70a100f9434fd6bcb8ad98f4bfe82f071c' + version '2.2...
Update OmniFocus beta to 2.2.3 This commit freshens up the OmniFocus beta by changing the version to include a more recent build number, and updates the sha256 stanza as well.
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 @@ -19,6 +19,16 @@ require 'minitest/spec' require File.expand_path('../support/he...
Add integration tests to check for the registry endpoints.
diff --git a/test/generators/install_generator_test.rb b/test/generators/install_generator_test.rb index abc1234..def5678 100644 --- a/test/generators/install_generator_test.rb +++ b/test/generators/install_generator_test.rb @@ -8,16 +8,18 @@ test "install generator insert require underscore into application.js" do...
Make sure that the assets are being loaded in the right order: first underscore then backbone
diff --git a/app.rb b/app.rb index abc1234..def5678 100644 --- a/app.rb +++ b/app.rb @@ -22,6 +22,11 @@ @barber = params[:barber] @color = params[:color] + if @username == '' + @error = 'Введите имя' + return erb :visit + end + erb "OK, username is #{@username}, #{@phone}, #{@datetime}, #{@barber}, #{@color}" ...
Add simple name parameter validation
diff --git a/test/spec/spec_helper.rb b/test/spec/spec_helper.rb index abc1234..def5678 100644 --- a/test/spec/spec_helper.rb +++ b/test/spec/spec_helper.rb @@ -16,3 +16,5 @@ require 'poise_boiler/spec_helper' require 'poise_application_ruby' +require 'poise_application/cheftie' +require 'poise_ruby/cheftie'
Load dependent resources, normally handled by Chef.
diff --git a/compo.gemspec b/compo.gemspec index abc1234..def5678 100644 --- a/compo.gemspec +++ b/compo.gemspec @@ -22,9 +22,12 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ['lib'] + spec.add_development_dependency 'backports' spec.add_development_dependency 'bund...
Include fuubar and simplecov in gemspec.
diff --git a/lib/geoscript/geom/multipolygon.rb b/lib/geoscript/geom/multipolygon.rb index abc1234..def5678 100644 --- a/lib/geoscript/geom/multipolygon.rb +++ b/lib/geoscript/geom/multipolygon.rb @@ -27,6 +27,18 @@ super(polys.to_java(com.vividsolutions.jts.geom.Polygon), GEOM_FACTORY) end + def ...
Add n polygons to MultiPolygon with << operator
diff --git a/services/QuillLMS/app/graphql/types/user_type.rb b/services/QuillLMS/app/graphql/types/user_type.rb index abc1234..def5678 100644 --- a/services/QuillLMS/app/graphql/types/user_type.rb +++ b/services/QuillLMS/app/graphql/types/user_type.rb @@ -11,6 +11,8 @@ field :notifications, [Types::NotificationType]...
Support checking if a user has completed the diagnositic.
diff --git a/week-4/simple-string.rb b/week-4/simple-string.rb index abc1234..def5678 100644 --- a/week-4/simple-string.rb +++ b/week-4/simple-string.rb @@ -0,0 +1,31 @@+# Solution Below + +old_string = "Ruby is cool" +new_string = old_string.reverse +new_string.upcase! +puts "old string: " + old_string +puts "new stri...
Add complete 4.2.2 simple string
diff --git a/RPJSContext.podspec b/RPJSContext.podspec index abc1234..def5678 100644 --- a/RPJSContext.podspec +++ b/RPJSContext.podspec @@ -5,7 +5,7 @@ s.homepage = "http://github.com/RobotsAndPencils/RPJSContext" s.license = 'MIT' s.author = { "Brandon Evans" => "brandon.evans@robot...
Put a real source URL in the podspec
diff --git a/test/test_get_feature.rb b/test/test_get_feature.rb index abc1234..def5678 100644 --- a/test/test_get_feature.rb +++ b/test/test_get_feature.rb @@ -1,8 +1,8 @@ require File.join(File.dirname(__FILE__), 'helper') -class Get_bug_test < Test::Unit::TestCase +class Get_feature_test < Test::Unit::TestCase -...
Fix name (bug -> feature)
diff --git a/samples/sample_simple.rb b/samples/sample_simple.rb index abc1234..def5678 100644 --- a/samples/sample_simple.rb +++ b/samples/sample_simple.rb @@ -13,11 +13,13 @@ a sample command to show off Cri! EOS - option :a, :aaa, 'opt a', :argument => :optional - required :b, :bbb, 'opt b' - optional :c,...
Add optional options to simple example
diff --git a/Library/Contributions/examples/brew-bottle.rb b/Library/Contributions/examples/brew-bottle.rb index abc1234..def5678 100644 --- a/Library/Contributions/examples/brew-bottle.rb +++ b/Library/Contributions/examples/brew-bottle.rb @@ -3,19 +3,19 @@ destination = HOMEBREW_PREFIX + "Bottles" if not File.dire...
Change tabs to spaces in brew bottle.
diff --git a/lib/puppet/provider/chronos_job.rb b/lib/puppet/provider/chronos_job.rb index abc1234..def5678 100644 --- a/lib/puppet/provider/chronos_job.rb +++ b/lib/puppet/provider/chronos_job.rb @@ -26,6 +26,8 @@ response = HTTParty.post("#{resource[:host]}/#{job_type}", job) rescue HTTParty::Error ...
Add http specific error handling.
diff --git a/lib/buckaruby/ideal.rb b/lib/buckaruby/ideal.rb index abc1234..def5678 100644 --- a/lib/buckaruby/ideal.rb +++ b/lib/buckaruby/ideal.rb @@ -8,6 +8,7 @@ "BUNQNL2A" => "bunq", "INGBNL2A" => "ING", "KNABNL2H" => "Knab bank", + "MOYONL21" => "Moneyou", "RABONL2U" => "Rabobank", ...
Add Moneyou to the list of iDEAL issuers.
diff --git a/lib/bugsnag/helpers.rb b/lib/bugsnag/helpers.rb index abc1234..def5678 100644 --- a/lib/bugsnag/helpers.rb +++ b/lib/bugsnag/helpers.rb @@ -31,7 +31,7 @@ "#{request.request_method} #{request.path}" if request end - # Helper function to work around MultiJson changes in 1.3+ + # Helper fun...
Add MultiJson load_json helper for future use
diff --git a/script/convert-smart-answer-landing-pages-from-yaml-to-erb.rb b/script/convert-smart-answer-landing-pages-from-yaml-to-erb.rb index abc1234..def5678 100644 --- a/script/convert-smart-answer-landing-pages-from-yaml-to-erb.rb +++ b/script/convert-smart-answer-landing-pages-from-yaml-to-erb.rb @@ -0,0 +1,26 @...
Add script to build ERB templates for landing pages from YAML * I've used the NodePresenter methods to access the content from the locale YAML files. * If any landing page content uses interpolation this script will fail fast with a `I18n::MissingInterpolationArgument` exception. * Currently none of them do use inte...
diff --git a/dsd.rb b/dsd.rb index abc1234..def5678 100644 --- a/dsd.rb +++ b/dsd.rb @@ -2,6 +2,13 @@ require 'eventmachine' require 'date' +require 'ffi' + +module Xname + extend FFI::Library + ffi_lib 'xname' + attach_function :xname, [ :string ], :int +end $a = [] @@ -9,5 +16,5 @@ EM.add_periodi...
Make it actually do something.
diff --git a/lib/tasks/active_record_views.rake b/lib/tasks/active_record_views.rake index abc1234..def5678 100644 --- a/lib/tasks/active_record_views.rake +++ b/lib/tasks/active_record_views.rake @@ -1,8 +1,18 @@ Rake::Task['db:structure:dump'].enhance do if ActiveRecord::Base.connection.table_exists?('active_recor...
Fix structure dumping on Rails 4.2
diff --git a/scratch/read_activity.rb b/scratch/read_activity.rb index abc1234..def5678 100644 --- a/scratch/read_activity.rb +++ b/scratch/read_activity.rb @@ -15,6 +15,23 @@ $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'githubarchive' +# e.g. +# @github_auth = ['username', 'password'] +class ...
Use config file for user authentication
diff --git a/spec/helpers/configuration_job_helper/textual_summary_spec.rb b/spec/helpers/configuration_job_helper/textual_summary_spec.rb index abc1234..def5678 100644 --- a/spec/helpers/configuration_job_helper/textual_summary_spec.rb +++ b/spec/helpers/configuration_job_helper/textual_summary_spec.rb @@ -0,0 +1,14 @...
Add specs for configuration job textual_provider
diff --git a/lib/fpm/package/zip.rb b/lib/fpm/package/zip.rb index abc1234..def5678 100644 --- a/lib/fpm/package/zip.rb +++ b/lib/fpm/package/zip.rb @@ -0,0 +1,63 @@+require "backports" # gem backports +require "fpm/package" +require "fpm/util" +require "fileutils" +require "fpm/package/dir" + +# Use a zip as a package...
Use ::Dir so we get ruby core's Dir, not FPM::Package::Dir
diff --git a/lib/formtastic/i18n.rb b/lib/formtastic/i18n.rb index abc1234..def5678 100644 --- a/lib/formtastic/i18n.rb +++ b/lib/formtastic/i18n.rb @@ -1,3 +1,4 @@+# coding: utf-8 module Formtastic module I18n
Fix another coding issue with HAML + Rails 3 + Ruby 1.9.1
diff --git a/lib/github_uploader.rb b/lib/github_uploader.rb index abc1234..def5678 100644 --- a/lib/github_uploader.rb +++ b/lib/github_uploader.rb @@ -0,0 +1,89 @@+require "rest-client" +require "github_api" +# We can stop requiring nokogiri when github_api is updated +require "nokogiri" + +class GithubUploader + + ...
Include lib files for uploader
diff --git a/lib/haml_lint/utils.rb b/lib/haml_lint/utils.rb index abc1234..def5678 100644 --- a/lib/haml_lint/utils.rb +++ b/lib/haml_lint/utils.rb @@ -3,33 +3,33 @@ module HamlLint # A miscellaneous set of utility functions. module Utils - class << self - def extract_files_from(list) - files = []...
Use module_function instead of class << self The `Utils` module had an unnecessary extra level of indention due to its use of `class << self` to make its helpers all class-level functions. Fix this by using the `module_function` helper, which accomplishes the same thing. Change-Id: I6194f394e111a6e7dac2672189472eb53...
diff --git a/app/controllers/users/questions_controller.rb b/app/controllers/users/questions_controller.rb index abc1234..def5678 100644 --- a/app/controllers/users/questions_controller.rb +++ b/app/controllers/users/questions_controller.rb @@ -1,7 +1,4 @@ class Users::QuestionsController < ApplicationController - inh...
Remove inherit_resources from user questions controller
diff --git a/test/helper.rb b/test/helper.rb index abc1234..def5678 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -1,6 +1,6 @@ require 'bundler/setup' +require 'minitest/autorun' require 'minitest/spec' -require 'minitest/autorun' require 'active_record/like' ActiveRecord::Base.establish_connection(adapter: ...
Fix warning for loading order in MiniTest