diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/app/commands/v2/put_link_set.rb b/app/commands/v2/put_link_set.rb index abc1234..def5678 100644 --- a/app/commands/v2/put_link_set.rb +++ b/app/commands/v2/put_link_set.rb @@ -6,10 +6,7 @@ link_set = LinkSet.create_or_replace(link_params.except(:links)) do |link_set| link_set.version +...
Refactor link merging into a private method.
diff --git a/examples/view_profile_item.rb b/examples/view_profile_item.rb index abc1234..def5678 100644 --- a/examples/view_profile_item.rb +++ b/examples/view_profile_item.rb @@ -0,0 +1,32 @@+dir = File.dirname(__FILE__) + '/../lib' +$LOAD_PATH << dir unless $LOAD_PATH.include?(dir) + +#require 'rubygems' +require 'a...
Add example for viewing profile items
diff --git a/activerecord/lib/active_record/identity_map.rb b/activerecord/lib/active_record/identity_map.rb index abc1234..def5678 100644 --- a/activerecord/lib/active_record/identity_map.rb +++ b/activerecord/lib/active_record/identity_map.rb @@ -11,19 +11,19 @@ repositories[current_repository_name] ||= Weakl...
Use yield instead block argument.
diff --git a/gem-compiler.gemspec b/gem-compiler.gemspec index abc1234..def5678 100644 --- a/gem-compiler.gemspec +++ b/gem-compiler.gemspec @@ -35,5 +35,7 @@ # development dependencies spec.add_development_dependency "rake", "~> 12.0", ">= 12.0.0" - spec.add_development_dependency "minitest", "~> 4.7" + + # m...
Update Minitest to support Ruby 3
diff --git a/app/helpers/versions_helper.rb b/app/helpers/versions_helper.rb index abc1234..def5678 100644 --- a/app/helpers/versions_helper.rb +++ b/app/helpers/versions_helper.rb @@ -11,9 +11,9 @@ "Mapping created" elsif version.changeset['http_status'] if version.changeset['http_status'][0] == '410...
Make mapping type switches more friendly
diff --git a/Swinject.podspec b/Swinject.podspec index abc1234..def5678 100644 --- a/Swinject.podspec +++ b/Swinject.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "Swinject" - s.version = "1.0.0-beta.1" + s.version = "1.0.0-beta.2" s.summary = "Dependency injection...
Set the version number to 1.0.0-beta.2.
diff --git a/app/lib/test_pals_mock_ldap.rb b/app/lib/test_pals_mock_ldap.rb index abc1234..def5678 100644 --- a/app/lib/test_pals_mock_ldap.rb +++ b/app/lib/test_pals_mock_ldap.rb @@ -1,3 +1,15 @@+# This code mocks the LDAP services that provide authentication to Student Insights +# by implementing the `bind` method. ...
Add code comments to test pals mock ldap
diff --git a/app/controllers/session_reminder_controller.rb b/app/controllers/session_reminder_controller.rb index abc1234..def5678 100644 --- a/app/controllers/session_reminder_controller.rb +++ b/app/controllers/session_reminder_controller.rb @@ -3,7 +3,14 @@ before_action :get_users def get_users - @users ...
Use all users registered for event 3 (SkalCon)
diff --git a/app/models/esa/associations/flags_extension.rb b/app/models/esa/associations/flags_extension.rb index abc1234..def5678 100644 --- a/app/models/esa/associations/flags_extension.rb +++ b/app/models/esa/associations/flags_extension.rb @@ -3,13 +3,13 @@ module FlagsExtension def most_recent(nature, ...
Remove ambiguity from column names
diff --git a/lib/barcelona/network/bastion_server.rb b/lib/barcelona/network/bastion_server.rb index abc1234..def5678 100644 --- a/lib/barcelona/network/bastion_server.rb +++ b/lib/barcelona/network/bastion_server.rb @@ -7,7 +7,7 @@ def define_resource(json) super do |j| - j.InstanceType "t2.m...
Change bastion instance type to t2.nano
diff --git a/RxAlamofire.podspec b/RxAlamofire.podspec index abc1234..def5678 100644 --- a/RxAlamofire.podspec +++ b/RxAlamofire.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'RxAlamofire' - s.version = '0.3' + s.version = '0.3.1' s.license = 'MIT' s.summary = 'RxSwift wrapper around the elegant HTTP...
Update spec for 0.3.1 with core and RxCocoa subpod
diff --git a/fund_id_reference.rb b/fund_id_reference.rb index abc1234..def5678 100644 --- a/fund_id_reference.rb +++ b/fund_id_reference.rb @@ -0,0 +1,24 @@+# Generates Fund ID Reference page for the wiki at +# http://code.google.com/p/sgmf-uwa/wiki/FundIdReference + +require 'rubygems' +require 'open-uri' +require 'n...
Add script to generate fund ID reference wiki.
diff --git a/lib/spec/runner/example_group_runner.rb b/lib/spec/runner/example_group_runner.rb index abc1234..def5678 100644 --- a/lib/spec/runner/example_group_runner.rb +++ b/lib/spec/runner/example_group_runner.rb @@ -10,6 +10,7 @@ # responsibility of the ExampleGroupRunner. Some implementations (like) ...
Use UTF-8 while loading files to be compatible with rails default. [#643 state:resolved]
diff --git a/lib/tariff_synchronizer/file_service.rb b/lib/tariff_synchronizer/file_service.rb index abc1234..def5678 100644 --- a/lib/tariff_synchronizer/file_service.rb +++ b/lib/tariff_synchronizer/file_service.rb @@ -11,7 +11,7 @@ def write_file(path, body) data_file = File.new(path, "w") - data_f...
Fix tariff synchronizer and encoding issue.
diff --git a/app/models/service_type.rb b/app/models/service_type.rb index abc1234..def5678 100644 --- a/app/models/service_type.rb +++ b/app/models/service_type.rb @@ -1,4 +1,6 @@ class ServiceType < ActiveRecord::Base + has_many :services + def self.seed_somerville_service_types ServiceType.destroy_all ...
Add has_many :services to ServiceType
diff --git a/spec/lib/rubolite/admin_spec.rb b/spec/lib/rubolite/admin_spec.rb index abc1234..def5678 100644 --- a/spec/lib/rubolite/admin_spec.rb +++ b/spec/lib/rubolite/admin_spec.rb @@ -17,5 +17,9 @@ it "raises an error when the path given isn't a git repository" do expect { subject.path = "./spec/support...
Check inverse of bad repo spec.
diff --git a/spec/models/performance_spec.rb b/spec/models/performance_spec.rb index abc1234..def5678 100644 --- a/spec/models/performance_spec.rb +++ b/spec/models/performance_spec.rb @@ -19,7 +19,7 @@ @space.users.size.should == 1 - pending "bug #419" + #pending "bug #419" assert_no_difference @spa...
Test Hudson with failing test
diff --git a/spec/mongoid/report/out_spec.rb b/spec/mongoid/report/out_spec.rb index abc1234..def5678 100644 --- a/spec/mongoid/report/out_spec.rb +++ b/spec/mongoid/report/out_spec.rb @@ -0,0 +1,46 @@+require 'spec_helper' + +describe Mongoid::Report do + let(:klass) { Model } + + it 'should merge properly results o...
Add test spec for testing custom method
diff --git a/app/routes/unsubscribes.rb b/app/routes/unsubscribes.rb index abc1234..def5678 100644 --- a/app/routes/unsubscribes.rb +++ b/app/routes/unsubscribes.rb @@ -12,7 +12,7 @@ post '/unsubscribes' do if FILTER_WORD_REGEXP === params['Body'] phone_number = Phoner::Phone.parse(params['From']).t...
Use dataset method for clarity
diff --git a/toolsmith.gemspec b/toolsmith.gemspec index abc1234..def5678 100644 --- a/toolsmith.gemspec +++ b/toolsmith.gemspec @@ -7,15 +7,15 @@ Gem::Specification.new do |s| s.name = "toolsmith" s.version = Toolsmith::VERSION - s.authors = ["Robert Ross"] - s.email = ["bobby@gophilosophi...
Add Brendan Loudermilk as an author. Allow usage with Rails 4.
diff --git a/ibge.gemspec b/ibge.gemspec index abc1234..def5678 100644 --- a/ibge.gemspec +++ b/ibge.gemspec @@ -21,5 +21,5 @@ spec.add_dependency "spreadsheet", "~> 1.0" spec.add_development_dependency "rake", "~> 13.0" - spec.add_development_dependency "rspec", "= 3.11.0" + spec.add_development_dependency "r...
Update rspec requirement from = 3.11.0 to = 3.12.0 Updates the requirements on [rspec](https://github.com/rspec/rspec-metagem) to permit the latest version. - [Release notes](https://github.com/rspec/rspec-metagem/releases) - [Commits](https://github.com/rspec/rspec-metagem/compare/v3.11.0...v3.12.0) --- updated-depe...
diff --git a/services/relocator/environment.rb b/services/relocator/environment.rb index abc1234..def5678 100644 --- a/services/relocator/environment.rb +++ b/services/relocator/environment.rb @@ -9,11 +9,13 @@ end #initialize def database_username + return "cartodb_user_#{user_id}" if environment...
Fix pg db/user names in relocator prod env
diff --git a/Casks/widelands.rb b/Casks/widelands.rb index abc1234..def5678 100644 --- a/Casks/widelands.rb +++ b/Casks/widelands.rb @@ -1,7 +1,7 @@ class Widelands < Cask - url 'https://launchpad.net/widelands/build17/build-17/+download/widelands-build17-mac.dmg' + url 'https://launchpad.net/widelands/build18/build-...
Update Widelands to Build 18
diff --git a/lib/acknowledgements/resources.rb b/lib/acknowledgements/resources.rb index abc1234..def5678 100644 --- a/lib/acknowledgements/resources.rb +++ b/lib/acknowledgements/resources.rb @@ -19,13 +19,18 @@ # Now the app is built, but not codesigned yet. destination = File.join(config.app_bundle(pl...
Check old & new location for Acknowledgement file Recent versions of CocoaPods put the acknowledgements.plist into vendor/Pods/Target Support Files/Pods/. Support looking for the file in the old and new location.
diff --git a/lib/api-umbrella-gatekeeper.rb b/lib/api-umbrella-gatekeeper.rb index abc1234..def5678 100644 --- a/lib/api-umbrella-gatekeeper.rb +++ b/lib/api-umbrella-gatekeeper.rb @@ -5,7 +5,9 @@ mattr_accessor :redis mattr_accessor :logger - self.logger = Logger.new(STDOUT) + + $stdout.sync = true + ...
Disable buffering on stdout logger.
diff --git a/Formotion.gemspec b/Formotion.gemspec index abc1234..def5678 100644 --- a/Formotion.gemspec +++ b/Formotion.gemspec @@ -15,7 +15,7 @@ s.require_paths = ["lib"] s.license = 'MIT' - s.add_dependency "bubble-wrap", "~> 1.4.0" - s.add_dependency "motion-require", "~> 0.0.3" + s.add_dependency "bubble...
Make bubblewrap dep >= 1.4.0 and motion-require ~> 0.1.0
diff --git a/lib/bugsnag/tasks/bugsnag.rake b/lib/bugsnag/tasks/bugsnag.rake index abc1234..def5678 100644 --- a/lib/bugsnag/tasks/bugsnag.rake +++ b/lib/bugsnag/tasks/bugsnag.rake @@ -2,7 +2,7 @@ namespace :bugsnag do desc "Notify Bugsnag of a new deploy." - task :deploy do + task :deploy => :load do api_k...
Load environment for deploy task This provides an alternative mechanism to the currently supported environment variables to set options such as API key, and also allows setting other options through the standard `config/bugsnag.yml` file that were not previously available, i.e. endpoint and proxy.
diff --git a/lib/desktop/simple_desktops.rb b/lib/desktop/simple_desktops.rb index abc1234..def5678 100644 --- a/lib/desktop/simple_desktops.rb +++ b/lib/desktop/simple_desktops.rb @@ -4,7 +4,7 @@ module Desktop class SimpleDesktops def latest_image_url - thumbnail.match(/http.*?png/).to_s + thumbnail...
Move full_image_regex to own method with link
diff --git a/lib/dino/components/rgb_led.rb b/lib/dino/components/rgb_led.rb index abc1234..def5678 100644 --- a/lib/dino/components/rgb_led.rb +++ b/lib/dino/components/rgb_led.rb @@ -16,15 +16,21 @@ end def blue + analog_write(Board::LOW, pins[:red]) + analog_write(Board::LOW, pins[:green...
Fix RGB LED component to turn on the right colors
diff --git a/lib/event_bus/broker/rabbit.rb b/lib/event_bus/broker/rabbit.rb index abc1234..def5678 100644 --- a/lib/event_bus/broker/rabbit.rb +++ b/lib/event_bus/broker/rabbit.rb @@ -22,7 +22,7 @@ private def channel - @channel ||= connection.create_channel + @@channel ||= connection.crea...
Define class variable instead instance variable for channel
diff --git a/lib/podio/models/item_field.rb b/lib/podio/models/item_field.rb index abc1234..def5678 100644 --- a/lib/podio/models/item_field.rb +++ b/lib/podio/models/item_field.rb @@ -10,6 +10,12 @@ alias_method :id, :field_id class << self + + # @see https://developers.podio.com/doc/items/get-item-field-val...
Add method for getting field values
diff --git a/lib/pronto/rugged/diff/line.rb b/lib/pronto/rugged/diff/line.rb index abc1234..def5678 100644 --- a/lib/pronto/rugged/diff/line.rb +++ b/lib/pronto/rugged/diff/line.rb @@ -52,7 +52,9 @@ def blame @blame ||= Blame.new(repo, patch.delta.new_file[:path], - min_line...
Use additional tracking options for more accurate blaming
diff --git a/lib/cerberus/publisher/gmailer.rb b/lib/cerberus/publisher/gmailer.rb index abc1234..def5678 100644 --- a/lib/cerberus/publisher/gmailer.rb +++ b/lib/cerberus/publisher/gmailer.rb @@ -7,9 +7,9 @@ subject, body = Cerberus::Publisher::Base.formatted_message(state, manager, options) gopts = optio...
Use from option from configuration git-svn-id: 6b26ca77393dff49db3326cae3426b51e4e94954@166 65aa75ef-ce15-0410-bc34-cdc86d5f77e6
diff --git a/lib/couchrest/model/migrations.rb b/lib/couchrest/model/migrations.rb index abc1234..def5678 100644 --- a/lib/couchrest/model/migrations.rb +++ b/lib/couchrest/model/migrations.rb @@ -50,9 +50,10 @@ puts " created (#{document['version']})" elsif should_upgrade current, document + ...
Print the correct old version of the design document being upgraded
diff --git a/isbm_adaptor.gemspec b/isbm_adaptor.gemspec index abc1234..def5678 100644 --- a/isbm_adaptor.gemspec +++ b/isbm_adaptor.gemspec @@ -14,10 +14,11 @@ s.add_development_dependency 'rake', '~> 10.1.0' s.add_development_dependency 'rspec', '~> 2.14.0' - s.add_development_dependency 'vcr', '~> 2.5.0' - ...
Update gem dependencies and versions Nokogiri is added since it is called directly ActiveSupport version is relaxed since called methods were introduced in 1.0.0 Builder and Nokogiri versions are relaxed to the minimum of what Savon requires
diff --git a/lib/rspec/contracts/mock_proxy.rb b/lib/rspec/contracts/mock_proxy.rb index abc1234..def5678 100644 --- a/lib/rspec/contracts/mock_proxy.rb +++ b/lib/rspec/contracts/mock_proxy.rb @@ -22,8 +22,16 @@ super(object, method_name, proxy) end + def set_arguments(arguments) + @message...
Move more responsibility for building messages into MockProxy
diff --git a/lib/rubocopfmt/rubocop_version.rb b/lib/rubocopfmt/rubocop_version.rb index abc1234..def5678 100644 --- a/lib/rubocopfmt/rubocop_version.rb +++ b/lib/rubocopfmt/rubocop_version.rb @@ -10,6 +10,6 @@ '!= 0.44.0', # Restrict to latest version tested. - '< 0.48' + '< 0.53' ].freeze end
Bump max supported rubocop version from 0.51 to 0.52
diff --git a/lib/elasticsearch_relation.rb b/lib/elasticsearch_relation.rb index abc1234..def5678 100644 --- a/lib/elasticsearch_relation.rb +++ b/lib/elasticsearch_relation.rb @@ -1,7 +1,7 @@ # This class tries to reproduce an ActiveRecord relation class ElasticsearchRelation def initialize(params = {}) - @para...
Fix ES search results size to 10000, fix defaults
diff --git a/lib/faker/default/business.rb b/lib/faker/default/business.rb index abc1234..def5678 100644 --- a/lib/faker/default/business.rb +++ b/lib/faker/default/business.rb @@ -26,7 +26,7 @@ # @return [Date] # # @example - # Faker::Business.credit_card_number #=> <Date: 2015-11-11 ((24573...
Fix a typo for `Faker::Business.credit_card_expiry_date`
diff --git a/lib/lyricfy/lyric_provider.rb b/lib/lyricfy/lyric_provider.rb index abc1234..def5678 100644 --- a/lib/lyricfy/lyric_provider.rb +++ b/lib/lyricfy/lyric_provider.rb @@ -5,5 +5,13 @@ def initialize(parameters = {}) self.parameters = parameters end + + def search + begin + data ...
Add base search method to handles HTTP exceptions
diff --git a/config/application.rb b/config/application.rb index abc1234..def5678 100644 --- a/config/application.rb +++ b/config/application.rb @@ -15,6 +15,8 @@ config.cache_max_age = ENV['CACHE_MAX_AGE'] || 10.seconds config.middleware.use Rack::BounceFavicon + require 'bounce_browserconfig' + confi...
Use middleware to 404 requests to `/browserconfig.xml`
diff --git a/config/application.rb b/config/application.rb index abc1234..def5678 100644 --- a/config/application.rb +++ b/config/application.rb @@ -10,6 +10,8 @@ # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(:default, Rails.env) +Bun...
Use asset group in development
diff --git a/config/application.rb b/config/application.rb index abc1234..def5678 100644 --- a/config/application.rb +++ b/config/application.rb @@ -23,5 +23,8 @@ # Autoload lib/ config.autoload_paths += Dir["#{config.root}/lib", "#{config.root}/lib/**/"] + + # Compile the correct assets + config.asset...
Add master.css to compiled assets
diff --git a/WNGLogger.podspec b/WNGLogger.podspec index abc1234..def5678 100644 --- a/WNGLogger.podspec +++ b/WNGLogger.podspec @@ -0,0 +1,26 @@+Pod::Spec.new do |s| + + s.name = "WNGLogger" + s.version = "0.1.0" + s.summary = "WNGLogger is an iOS client library to record and log metric data to We...
Create a CocoaPod spec for Weblog-NG. Specifies Weblog-NG version 0.1.0.
diff --git a/publify_textfilter_code.gemspec b/publify_textfilter_code.gemspec index abc1234..def5678 100644 --- a/publify_textfilter_code.gemspec +++ b/publify_textfilter_code.gemspec @@ -16,8 +16,8 @@ s.files = Dir['{app,config,db,lib}/**/*', 'MIT-LICENSE', 'Rakefile', 'README.rdoc'] - s.add_dependency 'rails'...
Update dependencies for Rails 5
diff --git a/db/schema.rb b/db/schema.rb index abc1234..def5678 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -17,9 +17,10 @@ enable_extension "plpgsql" create_table "skills", force: :cascade do |t| - t.string "title" + t.string "title", null: false t.integer "current_strea...
Add db constraints for title on skill table
diff --git a/spec/classes/mysql_backup_spec.rb b/spec/classes/mysql_backup_spec.rb index abc1234..def5678 100644 --- a/spec/classes/mysql_backup_spec.rb +++ b/spec/classes/mysql_backup_spec.rb @@ -2,32 +2,57 @@ describe 'mysql::backup' do - let(:params) { + let(:default_params) { { 'backupuser' => 'testu...
Add spec tests for backup compression enabled/disabled
diff --git a/lib/guide.rb b/lib/guide.rb index abc1234..def5678 100644 --- a/lib/guide.rb +++ b/lib/guide.rb @@ -4,7 +4,7 @@ def initialize(path = nil) # locate the restaurant text file at path Restaurant.filepath = path - if Restaurant.file_exists? + if Restaurant.file_usable? puts "Found rest...
Update to use new method from Restaurant class
diff --git a/config/initializers/settings.rb b/config/initializers/settings.rb index abc1234..def5678 100644 --- a/config/initializers/settings.rb +++ b/config/initializers/settings.rb @@ -1,3 +1,6 @@+# A Struct for conveniently storing individual shelves for the shelves setting. +Shelf = Struct.new(:begin, :end) + Al...
Set up a Struct for storing shelf information
diff --git a/config/initializers/zangetsu.rb b/config/initializers/zangetsu.rb index abc1234..def5678 100644 --- a/config/initializers/zangetsu.rb +++ b/config/initializers/zangetsu.rb @@ -17,17 +17,36 @@ g.scaffold_controller = 'scaffold_controller' end -require "devise_controller" +module Zangetsu + module Devi...
Use a mixin/concern for configuring parameters for DeviseController
diff --git a/spec/xml/schema_generator_spec.rb b/spec/xml/schema_generator_spec.rb index abc1234..def5678 100644 --- a/spec/xml/schema_generator_spec.rb +++ b/spec/xml/schema_generator_spec.rb @@ -10,23 +10,31 @@ fields: - name: author_first_name xpath: "/book/author/firstName" + type: string - name: author_last_...
Fix spec for recent change
diff --git a/lib/ffaker/utils/array_utils.rb b/lib/ffaker/utils/array_utils.rb index abc1234..def5678 100644 --- a/lib/ffaker/utils/array_utils.rb +++ b/lib/ffaker/utils/array_utils.rb @@ -9,6 +9,11 @@ def self.random_pick(array, n) indexes = (0...array.length).sort_by{Kernel.rand}[0...n] indexes.map ...
Revert rand methods with deprecate warning
diff --git a/lib/refinery/redactor/engine.rb b/lib/refinery/redactor/engine.rb index abc1234..def5678 100644 --- a/lib/refinery/redactor/engine.rb +++ b/lib/refinery/redactor/engine.rb @@ -10,6 +10,7 @@ config.to_prepare do Rails.application.config.assets.precompile += %w( refinery-redactor/in...
Load all plugins by default
diff --git a/lib/rspec/rake/example_group.rb b/lib/rspec/rake/example_group.rb index abc1234..def5678 100644 --- a/lib/rspec/rake/example_group.rb +++ b/lib/rspec/rake/example_group.rb @@ -8,7 +8,7 @@ base.instance_eval do metadata[:type] = :task - metadata[:tasks_path] ||= File.join('..', 'lib'...
Allow 'tasks_path' context parameter to specify subdirectories
diff --git a/test/test_action_add_node.rb b/test/test_action_add_node.rb index abc1234..def5678 100644 --- a/test/test_action_add_node.rb +++ b/test/test_action_add_node.rb @@ -8,7 +8,8 @@ should "properly create a new node entry when called" do require 'yaml' - %x(#{RUTTY_BIN} add_node -c #{TES...
Add assert to 'rutty add_node' tests to check for command output
diff --git a/test/test_api_postcode_nl.rb b/test/test_api_postcode_nl.rb index abc1234..def5678 100644 --- a/test/test_api_postcode_nl.rb +++ b/test/test_api_postcode_nl.rb @@ -1,8 +1,16 @@ require 'helper' class TestApiPostcodeNl < Test::Unit::TestCase + class DummyFetcher + def fetch(*_) + OpenStruct.new(...
Make tests not access the live API
diff --git a/config/environment.rb b/config/environment.rb index abc1234..def5678 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -1,5 +1,9 @@ # Load the Rails application. require File.expand_path('../application', __FILE__) +Paperclip.options[:content_type_mappings] = { + :cfg => "application/oc...
Allow .cfg file types to be uplodated as application/octet-stream mime type
diff --git a/config/initializers/flipper.rb b/config/initializers/flipper.rb index abc1234..def5678 100644 --- a/config/initializers/flipper.rb +++ b/config/initializers/flipper.rb @@ -6,6 +6,14 @@ Flipper.new(Flipper::Adapters::ActiveRecord.new) end end + +if Rails.env.production? + Flipper::UI.configure do |...
Add banner to Flipper UI to warn the admin users Add a link (escaped...) to the wiki page Co-authored-by: Pau Pérez Fabregat <c22b1f60e5873e20e0d9728f2418c5f1ac919f72@gmail.com>
diff --git a/human_digest.gemspec b/human_digest.gemspec index abc1234..def5678 100644 --- a/human_digest.gemspec +++ b/human_digest.gemspec @@ -5,7 +5,6 @@ Gem::Specification.new do |s| s.name = 'human_digest' s.version = HumanDigest::VERSION - s.date = '2012-05-11' s.summary = "HumanDi...
Remove date to prevent future stale date releases.
diff --git a/spec/geometry/comparison_spec.rb b/spec/geometry/comparison_spec.rb index abc1234..def5678 100644 --- a/spec/geometry/comparison_spec.rb +++ b/spec/geometry/comparison_spec.rb @@ -21,7 +21,13 @@ it 'should return true when both the abscissas and ordinates are same point(Reflexive property)'do ...
Add Test spec for symmetric property for give two points
diff --git a/spec/models/generic_work_spec.rb b/spec/models/generic_work_spec.rb index abc1234..def5678 100644 --- a/spec/models/generic_work_spec.rb +++ b/spec/models/generic_work_spec.rb @@ -14,4 +14,11 @@ expect(subject.generic_files.first).to be_kind_of Worthwhile::GenericFile end end + + describe "t...
Test for to_solr on generic_work
diff --git a/spec/react/refs_callback_spec.rb b/spec/react/refs_callback_spec.rb index abc1234..def5678 100644 --- a/spec/react/refs_callback_spec.rb +++ b/spec/react/refs_callback_spec.rb @@ -20,7 +20,9 @@ end Foo.class_eval do - attr_accessor :my_bar + def my_bar=(bar) + $bar = bar + ...
Fix test for opal 0.8
diff --git a/workflows.gemspec b/workflows.gemspec index abc1234..def5678 100644 --- a/workflows.gemspec +++ b/workflows.gemspec @@ -17,7 +17,5 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] - spec.add_development_dependency "bundler", "~> 1.7" - spec.add_devel...
Remove explicit dependencies on bundler/rake
diff --git a/PusherSwift.podspec b/PusherSwift.podspec index abc1234..def5678 100644 --- a/PusherSwift.podspec +++ b/PusherSwift.podspec @@ -12,6 +12,6 @@ s.source_files = 'Source/*.swift' s.ios.deployment_target = '8.0' - s.osx.deployment_target = '10.9' + s.osx.deployment_target = '10.10' s.tvos.deploymen...
Update osx deployment target to 10.10 in podspec
diff --git a/arm-eabi-gdb78.rb b/arm-eabi-gdb78.rb index abc1234..def5678 100644 --- a/arm-eabi-gdb78.rb +++ b/arm-eabi-gdb78.rb @@ -0,0 +1,22 @@+require 'formula' + +class ArmEabiGdb78 <Formula + url 'http://ftp.gnu.org/gnu/gdb/gdb-7.8.tar.xz' + homepage 'http://www.gnu.org/software/gdb/' + sha1 'fc43f1f2e651df1c69...
Add GDB 7.8 for ARM EABI
diff --git a/test/test_helper.rb b/test/test_helper.rb index abc1234..def5678 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -4,6 +4,8 @@ require 'tmpdir' class Test::Unit::TestCase + DTD_PATH = File.dirname(__FILE__) + '/examples/' + alias_method :old_setup, :setup def setup @ead = EADCod...
Move to xmllint and fix whitespace problems in comparisons
diff --git a/translate.rb b/translate.rb index abc1234..def5678 100644 --- a/translate.rb +++ b/translate.rb @@ -14,7 +14,7 @@ match /t(?:r(?:anslate)?)? ([a-zA-Z-]{2,5}) ([a-zA-Z-]{2,5}) (.*)/u def execute(m, from, to, message) - url = "https://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=" +...
Switch from https to http
diff --git a/github-pages.gemspec b/github-pages.gemspec index abc1234..def5678 100644 --- a/github-pages.gemspec +++ b/github-pages.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.rubygems_version = "1.8.0" - s.required_ruby_version = "~> 2.0.0" + s.required_ruby_version = ">= 1.9.3" s.name ...
Drop the Ruby 2.0 requirement in the Gemspec. This brings back support for running this gem on Ruby 1.9. The gem works fine on both 1.9 and 2.0. Unfortunatly with the ~> constraint operator it is not possible to specify both ~> 1.9.3 and ~> 2.0, so the >= 1.9.3 constraint is used instead.
diff --git a/kit/rails/_deploy.rb b/kit/rails/_deploy.rb index abc1234..def5678 100644 --- a/kit/rails/_deploy.rb +++ b/kit/rails/_deploy.rb @@ -46,13 +46,12 @@ ts_restart cron_restart + app_release_info app_server_restart nginx_restart release_cleanup letsencript_info - sidekiq...
Change an order of commands
diff --git a/app/routes/posts.rb b/app/routes/posts.rb index abc1234..def5678 100644 --- a/app/routes/posts.rb +++ b/app/routes/posts.rb @@ -43,11 +43,19 @@ request.host_with_port end - @host_string = if request.secure? - 'https://' + @ho...
Change link generation logic in uploaded view
diff --git a/lib/utils.rb b/lib/utils.rb index abc1234..def5678 100644 --- a/lib/utils.rb +++ b/lib/utils.rb @@ -1,7 +1,7 @@ module FunkyWorldCup def self.finalized? match = last_match - !match.result.nil? && match.result.status == 'final' + match && !match.result.nil? && match.result.status == 'final' ...
Add safety check for match
diff --git a/spec/unit/dialect/test_tags.rb b/spec/unit/dialect/test_tags.rb index abc1234..def5678 100644 --- a/spec/unit/dialect/test_tags.rb +++ b/spec/unit/dialect/test_tags.rb @@ -0,0 +1,32 @@+require 'spec_helper' +module WLang + describe Dialect::Tags do + + describe 'tag' do + include Dialect::Tags::Cl...
Add missing test about previous feature
diff --git a/lib/danica/format.rb b/lib/danica/format.rb index abc1234..def5678 100644 --- a/lib/danica/format.rb +++ b/lib/danica/format.rb @@ -10,11 +10,10 @@ content.to(format) end - def +(other) - self.class.new(content + other, format) - end - - def *(other) - self.class.new(content * other, form...
Use method missing for operators
diff --git a/guard-jammit.gemspec b/guard-jammit.gemspec index abc1234..def5678 100644 --- a/guard-jammit.gemspec +++ b/guard-jammit.gemspec @@ -23,6 +23,7 @@ s.add_development_dependency 'yard' s.add_development_dependency 'redcarpet' s.add_development_dependency 'pry' + s.add_development_dependency 'rake' ...
Add rake to dev deps.
diff --git a/init.rb b/init.rb index abc1234..def5678 100644 --- a/init.rb +++ b/init.rb @@ -1,4 +1,4 @@-require 'ardes/inherit_views' +#require 'ardes/inherit_views' -ActionController::Base.send :extend, Ardes::InheritViews::ActionController -ActionView::Base.send :include, Ardes::InheritViews::ActionView+#ActionCon...
Disable inherit_views in experimental rails 2.3 branch [temporarily]
diff --git a/lib/itunes_parser.rb b/lib/itunes_parser.rb index abc1234..def5678 100644 --- a/lib/itunes_parser.rb +++ b/lib/itunes_parser.rb @@ -5,24 +5,26 @@ @lib = ItunesParser::Library.new - # @result is a hash - @result = @lib.parse(File.read(File.dirname(__FILE__) + './test/test_library.xml')) - puts @res...
Refactor rename @result to @parsed_lib.
diff --git a/lib/simpre/helper.rb b/lib/simpre/helper.rb index abc1234..def5678 100644 --- a/lib/simpre/helper.rb +++ b/lib/simpre/helper.rb @@ -15,6 +15,9 @@ private def current_view_context + # if calling `decorate` from another presenter return the existing + # view_context + return h if is...
Support calling `decorate` from another presenter
diff --git a/vec3.rb b/vec3.rb index abc1234..def5678 100644 --- a/vec3.rb +++ b/vec3.rb @@ -54,7 +54,7 @@ return self.+(-rhs) end - def ==(rhs) + def <=>(rhs) dx = @x - rhs.x if dx != 0 then return dx end dy = @y - rhs.y
Use correct operator in definition Define the spaceship operator, not comparison/equality
diff --git a/transitions.gemspec b/transitions.gemspec index abc1234..def5678 100644 --- a/transitions.gemspec +++ b/transitions.gemspec @@ -5,7 +5,7 @@ s.name = "transitions" s.version = Transitions::VERSION s.platform = Gem::Platform::RUBY - s.authors = ["Jakub Kuźma", "Timo Rößner"] + s.a...
Remove utf8 to see if that will fix bundle issue
diff --git a/lib/affirm/client.rb b/lib/affirm/client.rb index abc1234..def5678 100644 --- a/lib/affirm/client.rb +++ b/lib/affirm/client.rb @@ -6,7 +6,7 @@ private :url_prefix class << self - def request(method, path, **data) + def request(method, path, data={}) new.public_send(method, pa...
Fix error on Ruby 3 In Ruby 3, the double splat operator behavior has changed This causes a "too many arguments" error. Specifying an optional array instead
diff --git a/lib/jekyll/assets.rb b/lib/jekyll/assets.rb index abc1234..def5678 100644 --- a/lib/jekyll/assets.rb +++ b/lib/jekyll/assets.rb @@ -19,6 +19,6 @@ require_relative "assets/env" Jekyll::Hooks.register(:site, :post_read) { |o| Jekyll::Assets::Env.new(o) } -Jekyll::Hooks.register :site, :post_write do |o| ...
Move to `post_render` because Jekyll doesn't do logging very well.
diff --git a/twingly-url.gemspec b/twingly-url.gemspec index abc1234..def5678 100644 --- a/twingly-url.gemspec +++ b/twingly-url.gemspec @@ -15,7 +15,7 @@ s.required_ruby_version = ">= 2.5" s.add_dependency "addressable", "~> 2.6" - s.add_dependency "public_suffix", ">= 3.0.1", "< 5.0" + s.add_dependency "publ...
Allow use of `public_suffix` 5 Changes in public_suffix looks fine to me, no breaking API changes what I can see: * https://github.com/weppos/publicsuffix-ruby/blob/v5.0.0/CHANGELOG.md#500 * https://github.com/weppos/publicsuffix-ruby/compare/v4.0.7...v5.0.0 Addressable 2.8.1 was just released to allow use of public...
diff --git a/lib/clash/helpers.rb b/lib/clash/helpers.rb index abc1234..def5678 100644 --- a/lib/clash/helpers.rb +++ b/lib/clash/helpers.rb @@ -1,5 +1,26 @@ module Clash module Helpers + extend self + + def expand_list_of_numbers(only) + # Used in options[:only] to expand all possibilities. + if onl...
Create a function which expands the CLI args.
diff --git a/lib/config/nested.rb b/lib/config/nested.rb index abc1234..def5678 100644 --- a/lib/config/nested.rb +++ b/lib/config/nested.rb @@ -16,8 +16,15 @@ attr_accessor :shallow_delete # Add a nested ActionLink - def add_link(label, models) - @core.action_links.add('nested', :label => label, :ty...
Allow pass through options in add_link
diff --git a/lib/dry/view/path.rb b/lib/dry/view/path.rb index abc1234..def5678 100644 --- a/lib/dry/view/path.rb +++ b/lib/dry/view/path.rb @@ -22,7 +22,7 @@ def initialize(dir, root: dir) @dir = Pathname(dir) - @root = root + @root = Pathname(root) end def lookup(name, f...
Stop infinitely looking for missing template and avoid SystemStackError
diff --git a/lib/extlib/module.rb b/lib/extlib/module.rb index abc1234..def5678 100644 --- a/lib/extlib/module.rb +++ b/lib/extlib/module.rb @@ -31,7 +31,7 @@ end # if we get this far then the nested constant was not found - raise NameError + raise NameError, "uninitialized constant #{const_name}" e...
Raise an exception with a useful message to prevent hair-loss
diff --git a/lib/findrepos/cli.rb b/lib/findrepos/cli.rb index abc1234..def5678 100644 --- a/lib/findrepos/cli.rb +++ b/lib/findrepos/cli.rb @@ -9,12 +9,18 @@ desc: 'finds Git repositories in subdirectories recursively', type: :boolean, aliases: :'-r' + option :clean, + d...
Add --clean and --dirty options for filtering the list of repos
diff --git a/lib/model_patches.rb b/lib/model_patches.rb index abc1234..def5678 100644 --- a/lib/model_patches.rb +++ b/lib/model_patches.rb @@ -29,4 +29,13 @@ def ntcouncil? return self.has_tag?('NT_council') end + #QLD + # QLD State + def qldstate? + ...
Define QLD in the PublicBody Module
diff --git a/lib/monkey-mailer.rb b/lib/monkey-mailer.rb index abc1234..def5678 100644 --- a/lib/monkey-mailer.rb +++ b/lib/monkey-mailer.rb @@ -9,7 +9,10 @@ module MonkeyMailer extend Fallen - extend Fallen::CLI + + def self.extended(base) + base.extend(Fallen) + end @@normal_sleep = 0 @@low_sleep =...
Remove CLI (it should be implemented by projects that uses the gem), Convert run into an instance method so it can be called from extending modules
diff --git a/lib/noir/executer.rb b/lib/noir/executer.rb index abc1234..def5678 100644 --- a/lib/noir/executer.rb +++ b/lib/noir/executer.rb @@ -9,27 +9,28 @@ # finish find by terminal command return nil if command.superclass == Noir::Base::TerminalCommand - commands = command.constants(true).map(&:...
Move check command inherited into find_command
diff --git a/lib/pix_scale/pic.rb b/lib/pix_scale/pic.rb index abc1234..def5678 100644 --- a/lib/pix_scale/pic.rb +++ b/lib/pix_scale/pic.rb @@ -17,19 +17,19 @@ scaled_pic = @pic.scale(@pic.width * scale, @pic.height * scale) output_path = "#{dirname}/#{basename}-#{scale.to_s}#{extname}" - scaled_pi...
Use instance variable for use in local
diff --git a/lib/quizzy/engine.rb b/lib/quizzy/engine.rb index abc1234..def5678 100644 --- a/lib/quizzy/engine.rb +++ b/lib/quizzy/engine.rb @@ -1,6 +1,6 @@ module Quizzy class Engine < ::Rails::Engine isolate_namespace Quizzy - require "CarrierWave" + require "carrierwave" end end
Change le require de carrierwave
diff --git a/test/helpers/geo_helper_test.rb b/test/helpers/geo_helper_test.rb index abc1234..def5678 100644 --- a/test/helpers/geo_helper_test.rb +++ b/test/helpers/geo_helper_test.rb @@ -4,8 +4,9 @@ include GeoHelper test "should get ip address" do - ip = "87.223.138.147" - @request.headers["REMOTE_ADDR"...
Make ip extractor test actually test something
diff --git a/core/dir/home_spec.rb b/core/dir/home_spec.rb index abc1234..def5678 100644 --- a/core/dir/home_spec.rb +++ b/core/dir/home_spec.rb @@ -14,9 +14,15 @@ Dir.home.should == home_directory end - platform_is_not :windows do + platform_is :solaris do it "returns the named user's home directory, f...
Use getent and cut on Solaris to get home directory git-svn-id: ab86ecd26fe50a6a239cacb71380e346f71cee7d@66177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
diff --git a/cricos_scrape.gemspec b/cricos_scrape.gemspec index abc1234..def5678 100644 --- a/cricos_scrape.gemspec +++ b/cricos_scrape.gemspec @@ -22,9 +22,9 @@ spec.require_paths = ['lib'] - spec.add_development_dependency 'rspec' - spec.add_development_dependency 'rspec-its' + spec.add_development_dependen...
Add semantic version to deps
diff --git a/lib/endeavour/core_ext.rb b/lib/endeavour/core_ext.rb index abc1234..def5678 100644 --- a/lib/endeavour/core_ext.rb +++ b/lib/endeavour/core_ext.rb @@ -4,8 +4,8 @@ class Endeavour def self.hook! return if defined?(@try_removed) - Object.include CoreExt::Object::Try - NilClass.include CoreExt:...
Use prepend instead of include
diff --git a/lib/free_cite/citation.rb b/lib/free_cite/citation.rb index abc1234..def5678 100644 --- a/lib/free_cite/citation.rb +++ b/lib/free_cite/citation.rb @@ -48,7 +48,8 @@ alias_method :replace!, :replace def has_field?(field) - self[field].present? && self[field] != self[:raw_string] && self[field].to...
Fix invalidity based on stray double quote
diff --git a/lib/ghtorrent/settings.rb b/lib/ghtorrent/settings.rb index abc1234..def5678 100644 --- a/lib/ghtorrent/settings.rb +++ b/lib/ghtorrent/settings.rb @@ -21,7 +21,7 @@ :mirror_persister => "mirror.persister", :mirror_commit_pages_new_repo => "mirror.commit_pages_new_repo", - :uniq_i...
Fix retrieval of uniq_id field
diff --git a/lib/json_resume/reader.rb b/lib/json_resume/reader.rb index abc1234..def5678 100644 --- a/lib/json_resume/reader.rb +++ b/lib/json_resume/reader.rb @@ -1,6 +1,7 @@ require_relative 'formatter_html' require_relative 'formatter_latex' require_relative 'formatter_md' +require 'rest-client' require 'json' ...
Add option to enter json url
diff --git a/lib/stormtroopers/army.rb b/lib/stormtroopers/army.rb index abc1234..def5678 100644 --- a/lib/stormtroopers/army.rb +++ b/lib/stormtroopers/army.rb @@ -3,9 +3,16 @@ attr_reader :factory, :threads, :max_threads def initialize(config) - @factory = "stormtroopers/#{config[:factory].delete(:typ...
Allow us to specify the class directly too