diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/lib/usesthis/interview.rb b/lib/usesthis/interview.rb index abc1234..def5678 100644 --- a/lib/usesthis/interview.rb +++ b/lib/usesthis/interview.rb @@ -40,24 +40,8 @@ end end - def to_h - @interview_hash ||= { - slug: @slug, - name: @title, - url: "https://usesthis...
Remove the to_h method, add the inspect method.
diff --git a/lib/xeroid/serialisers.rb b/lib/xeroid/serialisers.rb index abc1234..def5678 100644 --- a/lib/xeroid/serialisers.rb +++ b/lib/xeroid/serialisers.rb @@ -1,5 +1,6 @@ module Xeroid module Serialisers autoload :Invoice, 'xeroid/serialisers/invoice' + autoload :Payment, 'xeroid/serialisers/payment' ...
Add the Payment serialiser to the Serialiser autoloaded-modules
diff --git a/app/classes/download_button.rb b/app/classes/download_button.rb index abc1234..def5678 100644 --- a/app/classes/download_button.rb +++ b/app/classes/download_button.rb @@ -23,7 +23,7 @@ def plain_link return nil if @path.blank? - return %Q(#{link_to(URI.decode(File.basename(@path)), @path)} (...
Remove html_safe from DownloadButton class
diff --git a/app/models/application_form.rb b/app/models/application_form.rb index abc1234..def5678 100644 --- a/app/models/application_form.rb +++ b/app/models/application_form.rb @@ -38,6 +38,12 @@ application.present? end + Role::TEAM_ROLES.each do |role| + define_method "as_#{role}?" do ...
Determine the role of the currently editing user
diff --git a/app/models/channel_observer.rb b/app/models/channel_observer.rb index abc1234..def5678 100644 --- a/app/models/channel_observer.rb +++ b/app/models/channel_observer.rb @@ -1,11 +1,19 @@ class ChannelObserver < ActiveRecord::Observer def after_destroy(channel) - broadcast_data = { - :event => "c...
Send application activity for channel creation as well as deletion.
diff --git a/functions/github-slack-announce-pull-requests-in-channel/app.rb b/functions/github-slack-announce-pull-requests-in-channel/app.rb index abc1234..def5678 100644 --- a/functions/github-slack-announce-pull-requests-in-channel/app.rb +++ b/functions/github-slack-announce-pull-requests-in-channel/app.rb @@ -0,0...
Add the function for announcing PRs.
diff --git a/test/models/instantiate_and_save_annotations_collection_test.rb b/test/models/instantiate_and_save_annotations_collection_test.rb index abc1234..def5678 100644 --- a/test/models/instantiate_and_save_annotations_collection_test.rb +++ b/test/models/instantiate_and_save_annotations_collection_test.rb @@ -6,6...
Add assertions into the InstantiateAndSaveAnnotationsCollectionTest
diff --git a/app/controllers/pages_core/frontend/page_files_controller.rb b/app/controllers/pages_core/frontend/page_files_controller.rb index abc1234..def5678 100644 --- a/app/controllers/pages_core/frontend/page_files_controller.rb +++ b/app/controllers/pages_core/frontend/page_files_controller.rb @@ -4,31 +4,15 @@ ...
Use stale checking for page files
diff --git a/app/controllers/spree/admin/products_controller_decorator.rb b/app/controllers/spree/admin/products_controller_decorator.rb index abc1234..def5678 100644 --- a/app/controllers/spree/admin/products_controller_decorator.rb +++ b/app/controllers/spree/admin/products_controller_decorator.rb @@ -2,19 +2,11 @@ ...
Remove setting supplier which is done by marketplace now.
diff --git a/examples/Testkitchen/veos.rb b/examples/Testkitchen/veos.rb index abc1234..def5678 100644 --- a/examples/Testkitchen/veos.rb +++ b/examples/Testkitchen/veos.rb @@ -0,0 +1,49 @@+# -*- mode: ruby -*- +# # vi: set ft=ruby : +# +# This file can be used to modify the behavior of a vagrant box deployed by +# Tes...
Add example vagrantfile override for TestKitchen
diff --git a/splatter.gemspec b/splatter.gemspec index abc1234..def5678 100644 --- a/splatter.gemspec +++ b/splatter.gemspec @@ -9,7 +9,7 @@ spec.authors = ["Vincent Roy"] spec.email = ["vincentroy8@gmail.com"] spec.summary = %q{Expand constructor arguments to instance variables base on `spl...
Add link to GitHub as homepage.
diff --git a/app/models/concerns/wp_post.rb b/app/models/concerns/wp_post.rb index abc1234..def5678 100644 --- a/app/models/concerns/wp_post.rb +++ b/app/models/concerns/wp_post.rb @@ -11,7 +11,7 @@ end self.wp_id = json['ID'] - self.author_id = json['author'] + self.author_id = json['auth...
Fix parsing of author id
diff --git a/config/initializers/sentry.rb b/config/initializers/sentry.rb index abc1234..def5678 100644 --- a/config/initializers/sentry.rb +++ b/config/initializers/sentry.rb @@ -5,10 +5,8 @@ config.release = "nemo@#{configatron.system_version}" config.current_environment = Rails.env.to_s - if Rails.env.produ...
11106: Use DJ in development too
diff --git a/envb-rails.gemspec b/envb-rails.gemspec index abc1234..def5678 100644 --- a/envb-rails.gemspec +++ b/envb-rails.gemspec @@ -8,7 +8,7 @@ g.homepage = 'http://github.com/joedynamite/envb-rails' g.summary = 'A simple way to display your Rails environment name.' g.description = 'A banner t...
Exclude gitignore from packaged gem
diff --git a/application/recipes/default.rb b/application/recipes/default.rb index abc1234..def5678 100644 --- a/application/recipes/default.rb +++ b/application/recipes/default.rb @@ -21,6 +21,8 @@ (app["server_roles"] & node.run_list.roles).each do |app_role| app["type"][app_role].each do |thing| node.r...
Make application recipe deploy more than one application.
diff --git a/lib/s3direct.rb b/lib/s3direct.rb index abc1234..def5678 100644 --- a/lib/s3direct.rb +++ b/lib/s3direct.rb @@ -1,5 +1,4 @@ require "active_support/all" -require "ejs" require "s3direct/version" require "s3direct/file"
Allow Sprockets to autoload EJS instead of adding it as a dependency This should only happen if the default template is actually used.
diff --git a/test/test_lua.rb b/test/test_lua.rb index abc1234..def5678 100644 --- a/test/test_lua.rb +++ b/test/test_lua.rb @@ -15,6 +15,20 @@ s.close end + def test_pluto_persist_uids_are_not_picky + s = Rufus::Lua::State.new() + assert_equal(1.0, s.eval(%{ + require "pluto" + + pp = {["a"]=...
Test how pluto (un)persists unpersistables, and if simple 'unique' values like 1,2,3 can lead to data corruption if they exist elsewhere.
diff --git a/lib/betty_resource/api.rb b/lib/betty_resource/api.rb index abc1234..def5678 100644 --- a/lib/betty_resource/api.rb +++ b/lib/betty_resource/api.rb @@ -5,6 +5,8 @@ base_uri "#{BettyResource.config.host}/api" format :json basic_auth BettyResource.config.user, BettyResource.config.password - + ...
Normalize query strings as json
diff --git a/lib/byebug/subcommands.rb b/lib/byebug/subcommands.rb index abc1234..def5678 100644 --- a/lib/byebug/subcommands.rb +++ b/lib/byebug/subcommands.rb @@ -19,10 +19,11 @@ # Delegates to subcommands or prints help if no subcommand specified. # def execute - return puts(help) unless @match[1]...
Fix AbcSize RuboCop offense recently introduced
diff --git a/lib/ffi-glib/ptr_array.rb b/lib/ffi-glib/ptr_array.rb index abc1234..def5678 100644 --- a/lib/ffi-glib/ptr_array.rb +++ b/lib/ffi-glib/ptr_array.rb @@ -10,17 +10,17 @@ class << self undef :new - def new type - wrap(Lib.g_ptr_array_new).tap {|it| - it.element_type = type} -...
Make Reek understand that self.add is a class method.
diff --git a/recipes/sourcetree.rb b/recipes/sourcetree.rb index abc1234..def5678 100644 --- a/recipes/sourcetree.rb +++ b/recipes/sourcetree.rb @@ -0,0 +1,7 @@+dmg_package "SourceTree" do + volumes_dir "SourceTree" + source "http://downloads.atlassian.com/software/sourcetree/SourceTree_1.5.7.dmg" + checksum "3ee601...
Add Sourcetree git client for mac.
diff --git a/recommendable.gemspec b/recommendable.gemspec index abc1234..def5678 100644 --- a/recommendable.gemspec +++ b/recommendable.gemspec @@ -25,7 +25,7 @@ s.add_dependency 'hooks', '>= 0.2.1' s.add_development_dependency 'minitest', '~> 4.2' - s.add_development_dependency 'miniskirt' + s.add_de...
Update miniskirt dependency to minifacture The project was renamed, see https://github.com/stephencelis/minifacture/issues/20 There should not be any code changes since it's already aliased to `Factory`. Cheers!
diff --git a/word_in_string_spec.rb b/word_in_string_spec.rb index abc1234..def5678 100644 --- a/word_in_string_spec.rb +++ b/word_in_string_spec.rb @@ -15,6 +15,7 @@ context "should detect whole words; e.g.:" do [ + ['book', 'book'], ['book', 'book_shelf'], ['book', 'note_book_shelf'], ...
Add test for case where word == string
diff --git a/app/helpers/orders_helper.rb b/app/helpers/orders_helper.rb index abc1234..def5678 100644 --- a/app/helpers/orders_helper.rb +++ b/app/helpers/orders_helper.rb @@ -1,2 +1,36 @@ module OrdersHelper + + def past_cuttoff_time? + # TODO: change to set endtime variable + Date.current.today? && Time.curre...
Add helpers to set and display time, date, and service
diff --git a/lib/wanikani.rb b/lib/wanikani.rb index abc1234..def5678 100644 --- a/lib/wanikani.rb +++ b/lib/wanikani.rb @@ -17,10 +17,10 @@ @@api_key end - def self.api_response(resource) + def self.api_response(resource, optional_arg = nil) raise ArgumentError, "You must define a resource to query Wan...
Add support for optional argument
diff --git a/lib/madvertise-logging.rb b/lib/madvertise-logging.rb index abc1234..def5678 100644 --- a/lib/madvertise-logging.rb +++ b/lib/madvertise-logging.rb @@ -1,18 +1,3 @@ require 'madvertise/logging/version' require 'madvertise/logging/improved_logger' require 'madvertise/logging/multi_logger' - -module Madver...
Revert "add global logger attribute" This reverts commit 458eb3061838115e63ce501421732cc437bb8a2c. Conflicts: lib/madvertise-logging.rb lib/madvertise/logging/version.rb
diff --git a/buildserver/cookbooks/fdroidbuild-general/recipes/default.rb b/buildserver/cookbooks/fdroidbuild-general/recipes/default.rb index abc1234..def5678 100644 --- a/buildserver/cookbooks/fdroidbuild-general/recipes/default.rb +++ b/buildserver/cookbooks/fdroidbuild-general/recipes/default.rb @@ -5,7 +5,7 @@ c...
Add dependencies needed by "LibreOffice Viewer Beta"
diff --git a/lib/perpetuity.rb b/lib/perpetuity.rb index abc1234..def5678 100644 --- a/lib/perpetuity.rb +++ b/lib/perpetuity.rb @@ -10,7 +10,7 @@ end def self.configuration - @@configuration ||= Configuration.new + @configuration ||= Configuration.new end def self.generate_mapper_for klass, &blo...
Move Perpetuity config to module instance It was incorrectly set as a cvar, which put it on the Module class. Oops.
diff --git a/db/data_migrations/20190813182041_update_core_role_labels.rb b/db/data_migrations/20190813182041_update_core_role_labels.rb index abc1234..def5678 100644 --- a/db/data_migrations/20190813182041_update_core_role_labels.rb +++ b/db/data_migrations/20190813182041_update_core_role_labels.rb @@ -1,7 +1,7 @@ cla...
[TTPLAT-1044] Create super manager role if it doesn't exist.
diff --git a/NDPhraseParser.podspec b/NDPhraseParser.podspec index abc1234..def5678 100644 --- a/NDPhraseParser.podspec +++ b/NDPhraseParser.podspec @@ -1,10 +1,3 @@-# -# Be sure to run `pod lib lint NDPhraseParser.podspec' to ensure this is a -# valid spec before submitting. -# -# Any lines starting with a # are optio...
Update podspec so it passes validation
diff --git a/test/factory.rb b/test/factory.rb index abc1234..def5678 100644 --- a/test/factory.rb +++ b/test/factory.rb @@ -13,12 +13,16 @@ def valid_attributes_for(model, attributes = {}) name = model.to_s.underscore send("#{name}_attributes", attributes) + attributes.stringify_keys! attributes ...
Update Factory helpers to handle protected attributes
diff --git a/test/functional/admin/policies_controller_test/national_applicability_test.rb b/test/functional/admin/policies_controller_test/national_applicability_test.rb index abc1234..def5678 100644 --- a/test/functional/admin/policies_controller_test/national_applicability_test.rb +++ b/test/functional/admin/policie...
Fix PoliciesControllerTest::NationalApplicabilityTest to use the super behaviour for attributes_for_edition.
diff --git a/messaging.gemspec b/messaging.gemspec index abc1234..def5678 100644 --- a/messaging.gemspec +++ b/messaging.gemspec @@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = 'evt-messaging' - s.version = '2.5.1.1' + s.version = '2.5.1.2' s.summary = 'Common primitives for pl...
Package version is increased from 2.5.1.1 to 2.5.1.2
diff --git a/messaging.gemspec b/messaging.gemspec index abc1234..def5678 100644 --- a/messaging.gemspec +++ b/messaging.gemspec @@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = 'evt-messaging' - s.version = '0.12.1.0' + s.version = '0.12.1.1' s.summary = 'Messaging primitives f...
Package version is increased from 0.12.1.0 to 0.12.1.1
diff --git a/lib/betterdocs/tasks/doc.rake b/lib/betterdocs/tasks/doc.rake index abc1234..def5678 100644 --- a/lib/betterdocs/tasks/doc.rake +++ b/lib/betterdocs/tasks/doc.rake @@ -27,5 +27,16 @@ desc "Publish the newly created API documentation" task :publish => [ :push ] + + desc "Publish and view the n...
Add view task, beware this publishes first!
diff --git a/lib/bitbucket/hooks/server.rb b/lib/bitbucket/hooks/server.rb index abc1234..def5678 100644 --- a/lib/bitbucket/hooks/server.rb +++ b/lib/bitbucket/hooks/server.rb @@ -15,16 +15,22 @@ begin payload = req.params["payload"] rescue => e + info "#{e} - #{e.backtrace}" ...
Add logger metods and delete json parse
diff --git a/Casks/opera-developer.rb b/Casks/opera-developer.rb index abc1234..def5678 100644 --- a/Casks/opera-developer.rb +++ b/Casks/opera-developer.rb @@ -1,6 +1,6 @@ cask :v1 => 'opera-developer' do - version '28.0.1750.5' - sha256 '323d8a24b6afd63fba8c0d17a6e810cc4cfd454df488499a395bf0ff70421335' + version '...
Update Opera developer to 29.0.1781.0
diff --git a/app/models/attachment.rb b/app/models/attachment.rb index abc1234..def5678 100644 --- a/app/models/attachment.rb +++ b/app/models/attachment.rb @@ -9,6 +9,8 @@ field :filename attaches :file + validates_with SafeHtml + def snippet "[InlineAttachment:#{filename}]" end
Validate Attachments with SafeHtml validator
diff --git a/lib/justdial/search.rb b/lib/justdial/search.rb index abc1234..def5678 100644 --- a/lib/justdial/search.rb +++ b/lib/justdial/search.rb @@ -15,7 +15,7 @@ geolocation_params[:geolocation] = "#{latitude},#{longitude}" if !latitude.nil? && !longitude.nil? page_size = params[:num_res] || 100 ...
Fix failing spec and logging. to_param is ActiveModel feature which is not available here.
diff --git a/lib/foodcritic/rules/fc113.rb b/lib/foodcritic/rules/fc113.rb index abc1234..def5678 100644 --- a/lib/foodcritic/rules/fc113.rb +++ b/lib/foodcritic/rules/fc113.rb @@ -1,5 +1,5 @@ rule "FC113", "Resource declares deprecated use_inline_resources" do - tags %w{deprecation lwrp} + tags %w{deprecation chef15...
Update the tag for FC113 to include chef15 Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
diff --git a/db/migrate/20141028203632_populate_aleph_id_from_user_attributes.rb b/db/migrate/20141028203632_populate_aleph_id_from_user_attributes.rb index abc1234..def5678 100644 --- a/db/migrate/20141028203632_populate_aleph_id_from_user_attributes.rb +++ b/db/migrate/20141028203632_populate_aleph_id_from_user_attri...
Migrate aleph id into user using a hash, not string
diff --git a/db/migrate/20170220144517_remove_steps_short_description.decidim.rb b/db/migrate/20170220144517_remove_steps_short_description.decidim.rb index abc1234..def5678 100644 --- a/db/migrate/20170220144517_remove_steps_short_description.decidim.rb +++ b/db/migrate/20170220144517_remove_steps_short_description.de...
Simplify migration as the descriptions used are always `description`
diff --git a/lib/print_processor/a2_raw.rb b/lib/print_processor/a2_raw.rb index abc1234..def5678 100644 --- a/lib/print_processor/a2_raw.rb +++ b/lib/print_processor/a2_raw.rb @@ -11,7 +11,7 @@ printer_commands = StringIO.new printer = A2Printer.new(printer_commands) - printer.begin + printer.begi...
Use a heat time that's better for v4 printers.
diff --git a/lib/rails-default-database.rb b/lib/rails-default-database.rb index abc1234..def5678 100644 --- a/lib/rails-default-database.rb +++ b/lib/rails-default-database.rb @@ -26,23 +26,15 @@ 'adapter' => 'postgresql', 'min_messages' => 'warning' } - when 'mysql' - { - ...
Drop unnecessary mysql user default
diff --git a/lib/related_word/configure.rb b/lib/related_word/configure.rb index abc1234..def5678 100644 --- a/lib/related_word/configure.rb +++ b/lib/related_word/configure.rb @@ -4,10 +4,10 @@ end class Configure - # The service used for find related words + # The default service used for find related wo...
Update the comments in the Configure class
diff --git a/lib/tasks/license_finder.rake b/lib/tasks/license_finder.rake index abc1234..def5678 100644 --- a/lib/tasks/license_finder.rake +++ b/lib/tasks/license_finder.rake @@ -14,4 +14,9 @@ puts "Dependencies that need approval:" puts LicenseFinder::Finder.new.action_items end + + desc 'All gems app...
Add rake target for CI
diff --git a/modules/auxiliary/scanner/http/wordpress/wp_business_intelligent_sqli_scanner.rb b/modules/auxiliary/scanner/http/wordpress/wp_business_intelligent_sqli_scanner.rb index abc1234..def5678 100644 --- a/modules/auxiliary/scanner/http/wordpress/wp_business_intelligent_sqli_scanner.rb +++ b/modules/auxiliary/sc...
Add WordPress Business Intelligence Lite SQLi Scanner
diff --git a/lib/mojsso.rb b/lib/mojsso.rb index abc1234..def5678 100644 --- a/lib/mojsso.rb +++ b/lib/mojsso.rb @@ -27,6 +27,29 @@ def raw_info @raw_info ||= access_token.get('/api/user_details').parsed end + + # HACK: tl;dr + # Don't happen query fragment to the callback_url (i.e bypas...
Revert back to use fix. Actually won't remove this hack but update the comment to reflect the actual problem.
diff --git a/musique.gemspec b/musique.gemspec index abc1234..def5678 100644 --- a/musique.gemspec +++ b/musique.gemspec @@ -1,6 +1,3 @@-lib = File.expand_path("../lib", __FILE__) -$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) - Gem::Specification.new do |gem| gem.name = "musique" gem.version ...
Remove the load path mambo-jambo from the gemspec
diff --git a/backend/spec/controllers/spree/admin/adjustments_controller_controller_spec.rb b/backend/spec/controllers/spree/admin/adjustments_controller_controller_spec.rb index abc1234..def5678 100644 --- a/backend/spec/controllers/spree/admin/adjustments_controller_controller_spec.rb +++ b/backend/spec/controllers/s...
Add rspecs to displaying eligible adjustments in Admin
diff --git a/omnibus/files/private-chef-cookbooks/private-chef/libraries/elasticsearch_index_provider.rb b/omnibus/files/private-chef-cookbooks/private-chef/libraries/elasticsearch_index_provider.rb index abc1234..def5678 100644 --- a/omnibus/files/private-chef-cookbooks/private-chef/libraries/elasticsearch_index_provi...
Update deprecated Net::HTTPServerException with Net::HttpClientException Signed-off-by: Prajakta Purohit <e0b6074fb36005ab38b637036277c00627bb386c@chef.io>
diff --git a/dirby.gemspec b/dirby.gemspec index abc1234..def5678 100644 --- a/dirby.gemspec +++ b/dirby.gemspec @@ -12,7 +12,7 @@ spec.summary = %q{Distributed Ruby} spec.homepage = 'https://gem.rideliner.net' - spec.files = `git ls-files -z`.split($/) + spec.files = `git ls-files -...
Fix issues with building the gem.
diff --git a/log16.gemspec b/log16.gemspec index abc1234..def5678 100644 --- a/log16.gemspec +++ b/log16.gemspec @@ -6,7 +6,7 @@ spec.name = "log16" spec.version = "1.0.0" spec.authors = ["Jack Chen (chendo)"] - spec.email = ["github@chen.do"] + spec.email = ["chendo@users...
Remove JSON version dependency cause we don't depend on any special behaviour
diff --git a/lib/cloudstrap/amazon/elb.rb b/lib/cloudstrap/amazon/elb.rb index abc1234..def5678 100644 --- a/lib/cloudstrap/amazon/elb.rb +++ b/lib/cloudstrap/amazon/elb.rb @@ -18,6 +18,8 @@ @list = call_api(:describe_load_balancers).load_balancer_descriptions end + Tags = HashOf[String, String] +...
Add Tags contract for ELB
diff --git a/spec/features/invalid_oauth_spec.rb b/spec/features/invalid_oauth_spec.rb index abc1234..def5678 100644 --- a/spec/features/invalid_oauth_spec.rb +++ b/spec/features/invalid_oauth_spec.rb @@ -0,0 +1,24 @@+require 'rails_helper' + +describe 'a user with invalid oauth credentials', type: :feature do + befor...
Add spec for frontend handling of users with invalid oauth token
diff --git a/http-server.gemspec b/http-server.gemspec index abc1234..def5678 100644 --- a/http-server.gemspec +++ b/http-server.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'http-server' - s.version = '0.2.1' + s.version = '0.0.2.2' s.summary = 'Simple HTTP Server using htt...
Package version is increased from 0.2.1 to 0.0.2.2
diff --git a/app/controllers/statistics_controller.rb b/app/controllers/statistics_controller.rb index abc1234..def5678 100644 --- a/app/controllers/statistics_controller.rb +++ b/app/controllers/statistics_controller.rb @@ -38,8 +38,8 @@ format.html { render 'rfc_activity_history' } format.json do ...
Allow more fine-grained filtering on date
diff --git a/lib/braspag-rest/response.rb b/lib/braspag-rest/response.rb index abc1234..def5678 100644 --- a/lib/braspag-rest/response.rb +++ b/lib/braspag-rest/response.rb @@ -7,7 +7,7 @@ end def success? - (200..207).include?(@gateway_response.code) + (200..207).include?(@gateway_response.code) r...
Fix success method to return false when an error happens
diff --git a/spec/migrations/20160713130940_remove_type_template_and_vms_filters_from_miq_search_spec.rb b/spec/migrations/20160713130940_remove_type_template_and_vms_filters_from_miq_search_spec.rb index abc1234..def5678 100644 --- a/spec/migrations/20160713130940_remove_type_template_and_vms_filters_from_miq_search_s...
Create migration test for removing Type / Template/VMs filters https://bugzilla.redhat.com/show_bug.cgi?id=1351210 Create migration test for removing filters from MiqSearch to fix the bug.
diff --git a/lib/jshint/tasks/jshint.rake b/lib/jshint/tasks/jshint.rake index abc1234..def5678 100644 --- a/lib/jshint/tasks/jshint.rake +++ b/lib/jshint/tasks/jshint.rake @@ -3,14 +3,27 @@ namespace :jshint do desc "Runs JSHint, the JavaScript lint tool over this project's JavaScript assets" - task :lint, [:rep...
Allow us to specify a file name to output to.
diff --git a/lib/project/rows/base_row.rb b/lib/project/rows/base_row.rb index abc1234..def5678 100644 --- a/lib/project/rows/base_row.rb +++ b/lib/project/rows/base_row.rb @@ -1,11 +1,12 @@ class BaseRow - attr_reader :icon, :key, :options + attr_reader :icon, :key, :label, :options def initialize(key, options)...
Add label option to rows
diff --git a/lib/schema/data_structure.rb b/lib/schema/data_structure.rb index abc1234..def5678 100644 --- a/lib/schema/data_structure.rb +++ b/lib/schema/data_structure.rb @@ -4,7 +4,8 @@ cls.class_exec do include Schema extend Build - extend Virtual::Macro + + Virtual.activate(se...
Use of extend Virtual::Macro is replaced with Virtual.activate
diff --git a/lib/vagrant-ca-certificates/cap/redhat/update_certificate_bundle.rb b/lib/vagrant-ca-certificates/cap/redhat/update_certificate_bundle.rb index abc1234..def5678 100644 --- a/lib/vagrant-ca-certificates/cap/redhat/update_certificate_bundle.rb +++ b/lib/vagrant-ca-certificates/cap/redhat/update_certificate_b...
Return successful even if java is not installed
diff --git a/lib/tasks/data_scrubber.rake b/lib/tasks/data_scrubber.rake index abc1234..def5678 100644 --- a/lib/tasks/data_scrubber.rake +++ b/lib/tasks/data_scrubber.rake @@ -1,5 +1,10 @@ namespace :data do - desc "TODO" + desc <<-HEREDOC + This task scrubs the building data by: + 1) adding a city & state t...
Update description of data scrubber rake task
diff --git a/taperole.gemspec b/taperole.gemspec index abc1234..def5678 100644 --- a/taperole.gemspec +++ b/taperole.gemspec @@ -4,9 +4,9 @@ Gem::Specification.new do |spec| spec.name = "taperole" spec.version = Taperole::VERSION.dup - spec.authors = ['Jack Forrest', 'Smashing Boxes', 'Brandon Mathis'] + spec.a...
Update authors and emails for gem
diff --git a/lib/ubuntu_unused_kernels.rb b/lib/ubuntu_unused_kernels.rb index abc1234..def5678 100644 --- a/lib/ubuntu_unused_kernels.rb +++ b/lib/ubuntu_unused_kernels.rb @@ -33,7 +33,16 @@ end def get_installed(suffix) - return [] + args = PACKAGE_PREFIXES.collect { |prefix| + "#{prefix}-...
Implement happy path for get_installed.
diff --git a/config/initializers/ohanapi.rb b/config/initializers/ohanapi.rb index abc1234..def5678 100644 --- a/config/initializers/ohanapi.rb +++ b/config/initializers/ohanapi.rb @@ -4,8 +4,8 @@ builder.adapter Faraday.default_adapter end Ohanakapa.configure do |config| - config.api_token = ENV["OHANA_API_TOKEN"...
Use single-quotes per Ruby style guide.
diff --git a/phonetic_alphabet.gemspec b/phonetic_alphabet.gemspec index abc1234..def5678 100644 --- a/phonetic_alphabet.gemspec +++ b/phonetic_alphabet.gemspec @@ -8,8 +8,8 @@ spec.version = PhoneticAlphabet::VERSION spec.authors = ["Dennis Hall"] spec.email = ["dennis@dennishall.de"] - sp...
Add summary and description to gemspec
diff --git a/app/mailers/mail_receiver.rb b/app/mailers/mail_receiver.rb index abc1234..def5678 100644 --- a/app/mailers/mail_receiver.rb +++ b/app/mailers/mail_receiver.rb @@ -4,6 +4,10 @@ user = User.find_by_email(message.from) return if ticket.nil? || user.nil? + + unless user.role?(:admin) + retu...
Check to make sure a reply email is sent by either the ticket's user, the ticket's agent, or an admin.
diff --git a/mouth.gemspec b/mouth.gemspec index abc1234..def5678 100644 --- a/mouth.gemspec +++ b/mouth.gemspec @@ -15,8 +15,8 @@ s.bindir = 'bin' s.executables << 'mouth' << 'mouth-endoscope' - s.add_runtime_dependency 'em-mongo', '~> 0.4.1' # For the EM collector - s.add_runtime_dependency 'mongo', '~...
Update gemspec to allow for newer versions of mongo
diff --git a/lib/devise_ldap_authenticatable/strategy.rb b/lib/devise_ldap_authenticatable/strategy.rb index abc1234..def5678 100644 --- a/lib/devise_ldap_authenticatable/strategy.rb +++ b/lib/devise_ldap_authenticatable/strategy.rb @@ -2,11 +2,16 @@ module Devise module Strategies - class LdapAuthenticatable <...
Write more detailed method documentation
diff --git a/spec/dynamoid_spec.rb b/spec/dynamoid_spec.rb index abc1234..def5678 100644 --- a/spec/dynamoid_spec.rb +++ b/spec/dynamoid_spec.rb @@ -6,4 +6,9 @@ User.new.books.should == [] end + it "doesn't connect automatically when configured" do + Dynamoid::Adapter.expects(:reconnect!).never + Dynamo...
Add spec for last commit
diff --git a/lib/perforated/compatibility/fetch_multi.rb b/lib/perforated/compatibility/fetch_multi.rb index abc1234..def5678 100644 --- a/lib/perforated/compatibility/fetch_multi.rb +++ b/lib/perforated/compatibility/fetch_multi.rb @@ -1,3 +1,5 @@+require 'active_support/core_ext/array/extract_options' + module Perfo...
Use array extract option support in custom fetch
diff --git a/lib/puppet/provider/wildfly_cli/http_api.rb b/lib/puppet/provider/wildfly_cli/http_api.rb index abc1234..def5678 100644 --- a/lib/puppet/provider/wildfly_cli/http_api.rb +++ b/lib/puppet/provider/wildfly_cli/http_api.rb @@ -31,12 +31,15 @@ def evaluate_command(command) condition, command = command.s...
Support for 'has' operator to check if item is in array
diff --git a/app/mailers/test_mailers.rb b/app/mailers/test_mailers.rb index abc1234..def5678 100644 --- a/app/mailers/test_mailers.rb +++ b/app/mailers/test_mailers.rb @@ -1,6 +1,6 @@ class TestMailers < ActionMailer::Base def email() - mail(to: EXCEPTION_RECIPIENTS, from: EXCEPTION_SENDER, subject: "Libra2 Test ...
Make test email come from the default email sender, not the error sender
diff --git a/app/models/alumni_status.rb b/app/models/alumni_status.rb index abc1234..def5678 100644 --- a/app/models/alumni_status.rb +++ b/app/models/alumni_status.rb @@ -1,7 +1,7 @@ class AlumniStatus < ActiveRecord::Base belongs_to :Alumni enum search: [:ready, :found, :tobesearched, :dumped] - enum response: [...
Add the verified status in the response enum Signed-off-by: Siddharth Kannan <805f056820c7a1cecc4ab591b8a0a604b501a0b7@gmail.com>
diff --git a/common_spree_dependencies.rb b/common_spree_dependencies.rb index abc1234..def5678 100644 --- a/common_spree_dependencies.rb +++ b/common_spree_dependencies.rb @@ -16,7 +16,7 @@ end group :test do - gem 'rspec-rails', '2.12.0' + gem 'rspec-rails', '~> 2.12.0' gem 'factory_girl_rails', '~> 1.7.0' ...
Remove guard dependencies from test group
diff --git a/app/models/oauth_account.rb b/app/models/oauth_account.rb index abc1234..def5678 100644 --- a/app/models/oauth_account.rb +++ b/app/models/oauth_account.rb @@ -25,19 +25,20 @@ end def oauth_token=(token) - self[:oauth_token] = self.class.crypt.encrypt_and_sign(token) + self[:oauth_token] = cry...
Use private instance method instead
diff --git a/lib/metasploit/credential.rb b/lib/metasploit/credential.rb index abc1234..def5678 100644 --- a/lib/metasploit/credential.rb +++ b/lib/metasploit/credential.rb @@ -34,10 +34,12 @@ autoload :Origin autoload :Text + # The prefix for all `ActiveRecord::Base#table_name`s for `ActiveRecord::Base` ...
Add missing docs for Metasploit::Credential MSP-10130
diff --git a/lib/oembed/response/photo.rb b/lib/oembed/response/photo.rb index abc1234..def5678 100644 --- a/lib/oembed/response/photo.rb +++ b/lib/oembed/response/photo.rb @@ -4,7 +4,7 @@ class Photo < self # Returns an <img> tag pointing at the appropraite URL. def html - "<img src='" + self....
Add the alt attribute on img with the title. Signed-off-by: François de Metz <5187da0b934cc25eb2201a3ec9206c24b13cb23b@stormz.me>
diff --git a/lib/open_flash_chart/tags.rb b/lib/open_flash_chart/tags.rb index abc1234..def5678 100644 --- a/lib/open_flash_chart/tags.rb +++ b/lib/open_flash_chart/tags.rb @@ -52,8 +52,8 @@ end end - class OFCTag < OFCTags - def initialize(x,y) + class OFCTag < Base + def initialize(x,y, args={}) ...
Allow Tag to include base args
diff --git a/core/app/ohm-models/channel.rb b/core/app/ohm-models/channel.rb index abc1234..def5678 100644 --- a/core/app/ohm-models/channel.rb +++ b/core/app/ohm-models/channel.rb @@ -3,8 +3,13 @@ attribute :title attribute :description - collection :facts, Fact + set :facts, Fact reference :user, Gr...
Set of facts. Don't allow empty :title
diff --git a/libraries/template_header.rb b/libraries/template_header.rb index abc1234..def5678 100644 --- a/libraries/template_header.rb +++ b/libraries/template_header.rb @@ -4,7 +4,7 @@ DO NOT CHANGE THIS FILE MANUALLY! This file is managed by chef. - Check #{@cookbook_name}::#{@recipe_name} line #{@re...
Create a better message in the header
diff --git a/config/initializers/carrierwave_encoding_fix.rb b/config/initializers/carrierwave_encoding_fix.rb index abc1234..def5678 100644 --- a/config/initializers/carrierwave_encoding_fix.rb +++ b/config/initializers/carrierwave_encoding_fix.rb @@ -0,0 +1,15 @@+# encoding: utf-8 + +module CarrierWave + module Uplo...
Add monkey patch for carrierwave to fix encoding issue
diff --git a/db/migrate/20150424092725_update_old_organisation_type_values.rb b/db/migrate/20150424092725_update_old_organisation_type_values.rb index abc1234..def5678 100644 --- a/db/migrate/20150424092725_update_old_organisation_type_values.rb +++ b/db/migrate/20150424092725_update_old_organisation_type_values.rb @@ ...
Update migration to work with newer constant value
diff --git a/lib/certman/cli.rb b/lib/certman/cli.rb index abc1234..def5678 100644 --- a/lib/certman/cli.rb +++ b/lib/certman/cli.rb @@ -26,7 +26,7 @@ desc 'delete [DOMAIN]', 'Delete ACM Certificate' def delete(domain) - Certman::Client.new(domain).delete + Certman::Client.new(domain, options).dele...
Fix `ArgumentError: wrong number of arguments (given 1, expected 2)`
diff --git a/cs_curriculum/cs_curriculum.rb b/cs_curriculum/cs_curriculum.rb index abc1234..def5678 100644 --- a/cs_curriculum/cs_curriculum.rb +++ b/cs_curriculum/cs_curriculum.rb @@ -43,8 +43,8 @@ end end - # orphans = nodes.map { |_, n| n.orphan? ? n.name : nil} - # orphans.each { |name| remove_node(name)...
Use delete_node in latest graph
diff --git a/lib/cpp_samples.rb b/lib/cpp_samples.rb index abc1234..def5678 100644 --- a/lib/cpp_samples.rb +++ b/lib/cpp_samples.rb @@ -21,6 +21,8 @@ tree_section[category] = [] tree_section end + + tree end end
Fix return expression of inject block
diff --git a/lib/dest/parser.rb b/lib/dest/parser.rb index abc1234..def5678 100644 --- a/lib/dest/parser.rb +++ b/lib/dest/parser.rb @@ -0,0 +1,38 @@+module Dest + + class Parser + + EXPRESSION = /\s*#\s*>>\s*(?<expression>.*)/ # Matches the beginning of an expression + RESULT = /\s*#\s*=>\s*(?<result>.*)/ #...
Add Parser which extracts all doctests from a file
diff --git a/lib/danger/commands/systems.rb b/lib/danger/commands/systems.rb index abc1234..def5678 100644 --- a/lib/danger/commands/systems.rb +++ b/lib/danger/commands/systems.rb @@ -19,6 +19,7 @@ ci_sources = registry.all(:class) .select { |klass| klass.inheritance_tree.map(&:name)....
Remove the LocalGitRepo from the DAnger Ssytems report on CI sources
diff --git a/lib/gnurr/linters/es_linter.rb b/lib/gnurr/linters/es_linter.rb index abc1234..def5678 100644 --- a/lib/gnurr/linters/es_linter.rb +++ b/lib/gnurr/linters/es_linter.rb @@ -31,7 +31,7 @@ end def relative_filename(filename) - filename.sub(%r{^#{pwd}/}, '') + filename.sub(%r{^#{pw...
Fix relative_filename for eslint linter
diff --git a/lib/gotgastro/models/import.rb b/lib/gotgastro/models/import.rb index abc1234..def5678 100644 --- a/lib/gotgastro/models/import.rb +++ b/lib/gotgastro/models/import.rb @@ -1,5 +1,4 @@-class Import < Sequel::Model - set_dataset :resets +class Import < Sequel::Model(:resets) one_to_many :alerts_offences ...
Upgrade syntax for using Sequel
diff --git a/lib/net/ssh/gateway/version.rb b/lib/net/ssh/gateway/version.rb index abc1234..def5678 100644 --- a/lib/net/ssh/gateway/version.rb +++ b/lib/net/ssh/gateway/version.rb @@ -1,6 +1,6 @@ module Net module SSH - module Gateway + class Gateway VERSION = "2.0.0" end end
Fix Gateway as a class
diff --git a/activerecord/lib/active_record/associations/builder/singular_association.rb b/activerecord/lib/active_record/associations/builder/singular_association.rb index abc1234..def5678 100644 --- a/activerecord/lib/active_record/associations/builder/singular_association.rb +++ b/activerecord/lib/active_record/asso...
Remove unused 1:1 association :remote option This option is unused, left over from pre-1.0 Rails to internally distinguish the location of the foreign key.
diff --git a/Casks/intellij-idea-ultimate-eap.rb b/Casks/intellij-idea-ultimate-eap.rb index abc1234..def5678 100644 --- a/Casks/intellij-idea-ultimate-eap.rb +++ b/Casks/intellij-idea-ultimate-eap.rb @@ -1,9 +1,9 @@ class IntellijIdeaUltimateEap < Cask - version '14-PublicPreview' - sha256 '4995c98608506c02348b4dfc0...
Upgrade IntelliJ ultimate eap to v139.144.2
diff --git a/boot/fancy_ext/block_env.rb b/boot/fancy_ext/block_env.rb index abc1234..def5678 100644 --- a/boot/fancy_ext/block_env.rb +++ b/boot/fancy_ext/block_env.rb @@ -13,7 +13,7 @@ define_method("call:") do |args| if args.size < self.arity - raise ArgumentError, "Too few arguments for block: #{args....
Remove argument inspection from ArgumentError.
diff --git a/pipio.gemspec b/pipio.gemspec index abc1234..def5678 100644 --- a/pipio.gemspec +++ b/pipio.gemspec @@ -7,7 +7,7 @@ spec.name = "pipio" spec.version = Pipio::VERSION spec.authors = ["Gabe Berke-Williams"] - spec.email = "gabe@thoughtbot.com" + spec.email = "ga...
Use my personal email in the gemspec
diff --git a/lib/mgraph/graph.rb b/lib/mgraph/graph.rb index abc1234..def5678 100644 --- a/lib/mgraph/graph.rb +++ b/lib/mgraph/graph.rb @@ -1,5 +1,4 @@ require 'mgraph/edge' -require 'mgraph/node' require 'mgraph/vertex_edge_table' require 'set'
Remove unused require for non-existent MGraph::Node
diff --git a/lib/pieces/rails.rb b/lib/pieces/rails.rb index abc1234..def5678 100644 --- a/lib/pieces/rails.rb +++ b/lib/pieces/rails.rb @@ -6,7 +6,7 @@ attr_reader :path, :force_polling def initialize(options = {}) - @path = path || Dir.pwd + @path = path || ::Rails.root || Dir.pwd @force_p...
Use ::Rails.root instead of Dir.pwd
diff --git a/freeb.gemspec b/freeb.gemspec index abc1234..def5678 100644 --- a/freeb.gemspec +++ b/freeb.gemspec @@ -10,7 +10,7 @@ s.summary = "Store the world's knowledge in Rails models (via Freebase)" s.description = "Store the world's knowledge in Rails models (via Freebase)" - s.files = Dir["{app,confi...
Remove config from included files in gemspec