diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/problem_2.rb b/problem_2.rb index abc1234..def5678 100644 --- a/problem_2.rb +++ b/problem_2.rb @@ -6,7 +6,7 @@ c = a + b a = b b = c - sum += a if a % 2 == 0 + sum += a if a.even? end p sum
Change in checking whether a number is even -> a % 2 == 0 to a.even?
diff --git a/attributes/default.rb b/attributes/default.rb index abc1234..def5678 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -0,0 +1,27 @@+default[:jenkins][:server][:plugins] = %w( + ant + nant + mailer + javadoc + token-macro + maven-plugin + run-condition + conditional-buildstep + mat...
Add git and all its dependencies and a few others like ant
diff --git a/roles/web.rb b/roles/web.rb index abc1234..def5678 100644 --- a/roles/web.rb +++ b/roles/web.rb @@ -19,7 +19,7 @@ :web => { :status => "online", :database_host => "db", - :readonly_database_host => "db-slave" + :readonly_database_host => "db" } )
Move readonly load to katla
diff --git a/Start.rb b/Start.rb index abc1234..def5678 100644 --- a/Start.rb +++ b/Start.rb @@ -5,18 +5,11 @@ Dir[File.dirname(__FILE__) + '/vue/*.rb'].each {|file| require file } require_relative './class/generator_class.rb' - window= Gtk::Window.new window.set_title "Sudoku" window.set_default_size 300, 300 ...
Fix core dump (overlay close app)
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 = '1.1.1' + s.version = '1.2' s.license = 'MIT' s.summary = 'RxSwift wrapper around the elegant HTTP...
Update podspec to add tvOS support
diff --git a/rom-mongo.gemspec b/rom-mongo.gemspec index abc1234..def5678 100644 --- a/rom-mongo.gemspec +++ b/rom-mongo.gemspec @@ -17,7 +17,7 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] - spec.add_runtime_dependency "rom-core", "~> 4.0.0.beta1" + spec.add_...
Update gemspec to allow ROM 4.0.x
diff --git a/chain-cli.rb b/chain-cli.rb index abc1234..def5678 100644 --- a/chain-cli.rb +++ b/chain-cli.rb @@ -16,7 +16,7 @@ def install venv = virtualenv_create(libexec, "python3") venv.pip_install resources - venv.link_scripts(bin) { venv.pip_install buildpath } + venv.pip_install_and_link buildpa...
Fix for out of date docs.
diff --git a/ruby_enum.gemspec b/ruby_enum.gemspec index abc1234..def5678 100644 --- a/ruby_enum.gemspec +++ b/ruby_enum.gemspec @@ -11,7 +11,7 @@ spec.summary = %q{Simple enumeration type for ruby} spec.description = %q{Implementation of a simple enumeration type for ruby} - spec.homepage = "http:...
Fix incorrect homepage in gemspec
diff --git a/frontend/app/controllers/spree/store_controller.rb b/frontend/app/controllers/spree/store_controller.rb index abc1234..def5678 100644 --- a/frontend/app/controllers/spree/store_controller.rb +++ b/frontend/app/controllers/spree/store_controller.rb @@ -17,7 +17,7 @@ handler = PromotionHandler::Cou...
[frontend] Use flash.now for coupon application error in OrdersController Otherwise this will carry over to the next request, which is not fun. Fixes #4034
diff --git a/lib/smart_answer_flows/calculate-your-redundancy-pay.rb b/lib/smart_answer_flows/calculate-your-redundancy-pay.rb index abc1234..def5678 100644 --- a/lib/smart_answer_flows/calculate-your-redundancy-pay.rb +++ b/lib/smart_answer_flows/calculate-your-redundancy-pay.rb @@ -6,98 +6,7 @@ status :publishe...
Revert "TEMP: Inline redundancy_pay shared logic" This is no longer required now that I've used the coverage data to generate a set of responses that allow me to add regression tests.
diff --git a/serialize.gemspec b/serialize.gemspec index abc1234..def5678 100644 --- a/serialize.gemspec +++ b/serialize.gemspec @@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = 'serialize' - s.version = '0.1.5' + s.version = '0.2.0' s.summary = 'Common interface for serializati...
Package version is increased from 0.1.5 to 0.2.0
diff --git a/peat.gemspec b/peat.gemspec index abc1234..def5678 100644 --- a/peat.gemspec +++ b/peat.gemspec @@ -8,8 +8,8 @@ spec.version = Peat::VERSION spec.authors = ["Hubert Huang"] spec.email = ["hhuang@practicefusion.com"] - spec.summary = %q{TODO: Write a short summary. Require...
Add basic summary and description to gemspec
diff --git a/spec/controllers/organizations_controller_spec.rb b/spec/controllers/organizations_controller_spec.rb index abc1234..def5678 100644 --- a/spec/controllers/organizations_controller_spec.rb +++ b/spec/controllers/organizations_controller_spec.rb @@ -15,4 +15,11 @@ Organization.last.stripe_publishable_k...
Test rendering of new organization form
diff --git a/rails/benchmarks/bm_activerecord_create_string_columns.rb b/rails/benchmarks/bm_activerecord_create_string_columns.rb index abc1234..def5678 100644 --- a/rails/benchmarks/bm_activerecord_create_string_columns.rb +++ b/rails/benchmarks/bm_activerecord_create_string_columns.rb @@ -0,0 +1,31 @@+require 'bundl...
FEATURE: Add new benchmark for Active Record. * Creating a record with many string columns.
diff --git a/test/cookbooks/lxctests/recipes/install_lxc.rb b/test/cookbooks/lxctests/recipes/install_lxc.rb index abc1234..def5678 100644 --- a/test/cookbooks/lxctests/recipes/install_lxc.rb +++ b/test/cookbooks/lxctests/recipes/install_lxc.rb @@ -1,6 +1,14 @@ # Ubuntu 12, not Ubuntu 14 if node['platform'] == 'ubuntu...
Fix LXC install on Ubuntu 12
diff --git a/spec/fabricators/user_fabricator.rb b/spec/fabricators/user_fabricator.rb index abc1234..def5678 100644 --- a/spec/fabricators/user_fabricator.rb +++ b/spec/fabricators/user_fabricator.rb @@ -1,6 +1,6 @@ Fabricator(:user) do - first_name{ sequence(:first_name) { |i| "user_first_name{i}" } } - last_name {...
Update User Fabricator to include new table columns: First name and Last name
diff --git a/lib/miq_tools_services/sidekiq_worker_mixin.rb b/lib/miq_tools_services/sidekiq_worker_mixin.rb index abc1234..def5678 100644 --- a/lib/miq_tools_services/sidekiq_worker_mixin.rb +++ b/lib/miq_tools_services/sidekiq_worker_mixin.rb @@ -6,7 +6,7 @@ extend ActiveSupport::Concern included do - ...
Fix issue when Sidekiq is not running
diff --git a/SSPPullToRefresh.podspec b/SSPPullToRefresh.podspec index abc1234..def5678 100644 --- a/SSPPullToRefresh.podspec +++ b/SSPPullToRefresh.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'SSPPullToRefresh' - s.version = '0.1.12' + s.version = '0.1.13' s.summary ...
Update pod spec to 0.1.13
diff --git a/lib/openc_bot/templates/lib/company_fetcher_bot.rb b/lib/openc_bot/templates/lib/company_fetcher_bot.rb index abc1234..def5678 100644 --- a/lib/openc_bot/templates/lib/company_fetcher_bot.rb +++ b/lib/openc_bot/templates/lib/company_fetcher_bot.rb @@ -1,14 +1,54 @@ # encoding: UTF-8 -require 'company_fetch...
Add documentation, stub methods to CompanyFetcherBot template
diff --git a/db/migrate/20160830110050_change_cloud_subnets_network_ports_unique_index.rb b/db/migrate/20160830110050_change_cloud_subnets_network_ports_unique_index.rb index abc1234..def5678 100644 --- a/db/migrate/20160830110050_change_cloud_subnets_network_ports_unique_index.rb +++ b/db/migrate/20160830110050_change...
Allow network port to have multiple fixed ips Allow network port to have multiple fixed ips, by extending unique index to contain address.
diff --git a/config/initializers/devise_permitted_parameters.rb b/config/initializers/devise_permitted_parameters.rb index abc1234..def5678 100644 --- a/config/initializers/devise_permitted_parameters.rb +++ b/config/initializers/devise_permitted_parameters.rb @@ -0,0 +1,17 @@+module DevisePermittedParameters + extend...
Create initializer file to permit first and last name
diff --git a/Cosmos.podspec b/Cosmos.podspec index abc1234..def5678 100644 --- a/Cosmos.podspec +++ b/Cosmos.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "Cosmos" - s.version = "8.0.1" + s.version = "8.0.2" s.license = { :type => "MIT" } s.homepage = "https://github.com/marketp...
Remove UIApplication.shared since it does not compile for app extensions
diff --git a/config/environment.rb b/config/environment.rb index abc1234..def5678 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -3,3 +3,5 @@ # Initialize the rails application Acubens::Application.initialize! + +ENV['RAILS_ASSET_ID'] = `git log -1 --pretty=format:"%h"`
Set RAILS_ASSET_ID to expire the assets
diff --git a/rets.gemspec b/rets.gemspec index abc1234..def5678 100644 --- a/rets.gemspec +++ b/rets.gemspec @@ -0,0 +1,22 @@+$LOAD_PATH.unshift File.expand_path("../lib", __FILE__) +require "rets/version" + +Gem::Specification.new do |s| + s.name = "rets" + s.version = RETS::Version + s.platform = Gem...
Add the gemspec file, still need to publish it after further testing
diff --git a/lib/capistrano/mailer_recipes.rb b/lib/capistrano/mailer_recipes.rb index abc1234..def5678 100644 --- a/lib/capistrano/mailer_recipes.rb +++ b/lib/capistrano/mailer_recipes.rb @@ -12,7 +12,7 @@ # Set the release notes git_commits_range = "#{latest_revision.strip}..#{current_revision.strip}" g...
Add initial break for any release notes based on git log
diff --git a/lib/robin/sidekiq/queue_stats.rb b/lib/robin/sidekiq/queue_stats.rb index abc1234..def5678 100644 --- a/lib/robin/sidekiq/queue_stats.rb +++ b/lib/robin/sidekiq/queue_stats.rb @@ -29,18 +29,23 @@ # queue specific sidekiq_queue = ::Sidekiq::Queue.new(queue) - Librato.measure "#{nam...
Use new Metric class to generate metric names
diff --git a/lib/vue-form-for/form_builder.rb b/lib/vue-form-for/form_builder.rb index abc1234..def5678 100644 --- a/lib/vue-form-for/form_builder.rb +++ b/lib/vue-form-for/form_builder.rb @@ -4,7 +4,8 @@ class FormBuilder < ActionView::Helpers::FormBuilder include VueFormFor::VueOptionsResolver - (field_he...
Fix check_box and radio_button helper methods These methods have difference signature.
diff --git a/config/deploy/production.rb b/config/deploy/production.rb index abc1234..def5678 100644 --- a/config/deploy/production.rb +++ b/config/deploy/production.rb @@ -14,8 +14,8 @@ set :ssh_options, {:forward_agent => true} -set :wpcli_remote_url, "https://lamosty.com" -set :wpcli_local_url, "http://dev.lamos...
Fix wpcli local and remote urls
diff --git a/app/controllers/devise/registration_custom_controller.rb b/app/controllers/devise/registration_custom_controller.rb index abc1234..def5678 100644 --- a/app/controllers/devise/registration_custom_controller.rb +++ b/app/controllers/devise/registration_custom_controller.rb @@ -14,4 +14,12 @@ def sign_up_par...
Update render for create success
diff --git a/app/controllers/refinery/products/products_controller.rb b/app/controllers/refinery/products/products_controller.rb index abc1234..def5678 100644 --- a/app/controllers/refinery/products/products_controller.rb +++ b/app/controllers/refinery/products/products_controller.rb @@ -1,7 +1,7 @@ module Refinery ...
Update controller helper path of Products
diff --git a/Nimble.podspec b/Nimble.podspec index abc1234..def5678 100644 --- a/Nimble.podspec +++ b/Nimble.podspec @@ -13,7 +13,8 @@ s.source = { :git => "https://github.com/Quick/Nimble.git", :tag => "v#{s.version}" } s.source_files = "Nimble", "Nimble/**/*.{swift,h,m}" - s.framework = "XCTest" + s...
Update the podspec to weakly link XCTest When strongly linking XCTest, Cocoapods automatically adds a framework search path to allow the framework to be found. When weakly linking, it must be manually specified.
diff --git a/spec/models/print_spec.rb b/spec/models/print_spec.rb index abc1234..def5678 100644 --- a/spec/models/print_spec.rb +++ b/spec/models/print_spec.rb @@ -6,7 +6,7 @@ expect(print_str).to include(' -# 100 ') expect(print_str).to include(" -o duplex='two-sided-long-edge'") expect(print_str).to in...
Change ranges to page-ranges in spec
diff --git a/spec/models/route_spec.rb b/spec/models/route_spec.rb index abc1234..def5678 100644 --- a/spec/models/route_spec.rb +++ b/spec/models/route_spec.rb @@ -27,7 +27,7 @@ describe 'when finding existing routes' do - fixtures :stops, :routes, :route_stops + fixtures :stops, :routes, :route_sto...
Use transport_mode fixtures - wonder if we should be seeding the test db?
diff --git a/spec/models/video_spec.rb b/spec/models/video_spec.rb index abc1234..def5678 100644 --- a/spec/models/video_spec.rb +++ b/spec/models/video_spec.rb @@ -32,4 +32,13 @@ expect(bad_video.valid?).to be false end end + + describe "#search_by_title" do + it "returns a list of videos containing ...
Correct some irregularities in testing suite
diff --git a/features/step_definitions/homepage_steps.rb b/features/step_definitions/homepage_steps.rb index abc1234..def5678 100644 --- a/features/step_definitions/homepage_steps.rb +++ b/features/step_definitions/homepage_steps.rb @@ -14,6 +14,10 @@ expect(page).to have_content text end +Then(/^I should not see ...
Define step for page not having certain text
diff --git a/_scripts/mod_img.rb b/_scripts/mod_img.rb index abc1234..def5678 100644 --- a/_scripts/mod_img.rb +++ b/_scripts/mod_img.rb @@ -9,9 +9,9 @@ FileUtils.mkdir_p(new_dir) end - if File.file?(new_name) + if File.file?(new_name) puts "Skipping #{original}, #{new_name} already exists" - else + else ...
Remove unneeded parentheses (Ruby style :D)
diff --git a/app/models/channels/twitter_channel.rb b/app/models/channels/twitter_channel.rb index abc1234..def5678 100644 --- a/app/models/channels/twitter_channel.rb +++ b/app/models/channels/twitter_channel.rb @@ -27,12 +27,12 @@ #Check tweet identifiers against tweets.each do |tweet| unless items.w...
Set tags in the new way
diff --git a/app/observers/contribution_observer.rb b/app/observers/contribution_observer.rb index abc1234..def5678 100644 --- a/app/observers/contribution_observer.rb +++ b/app/observers/contribution_observer.rb @@ -31,7 +31,7 @@ { }, { bcc: ::Configuration[...
Improve if statement readability on contribution observer
diff --git a/KWTextStyleLabel.podspec b/KWTextStyleLabel.podspec index abc1234..def5678 100644 --- a/KWTextStyleLabel.podspec +++ b/KWTextStyleLabel.podspec @@ -7,10 +7,10 @@ Helps in modifying character spacing and line spacing to your label. You can modify using storyboard (Text Style Label) or programmatically. ...
Update of source repository location
diff --git a/coin_market_cap.gemspec b/coin_market_cap.gemspec index abc1234..def5678 100644 --- a/coin_market_cap.gemspec +++ b/coin_market_cap.gemspec @@ -11,7 +11,7 @@ spec.email = ["vinaysolanki2005@gmail.com"] spec.summary = %q{Coin Market Cap gem} spec.description = %q{Ruby gem to fetch Cr...
Add homepage and update dependecies to gemspec
diff --git a/app/workers/scraper_auto_run_worker.rb b/app/workers/scraper_auto_run_worker.rb index abc1234..def5678 100644 --- a/app/workers/scraper_auto_run_worker.rb +++ b/app/workers/scraper_auto_run_worker.rb @@ -3,11 +3,13 @@ sidekiq_options backtrace: true def perform(scraper_id) - scraper = Scraper.fin...
Deal with scraper deleted after ScraperAutoRunWorker job created
diff --git a/vp_to_ki.rb b/vp_to_ki.rb index abc1234..def5678 100644 --- a/vp_to_ki.rb +++ b/vp_to_ki.rb @@ -11,9 +11,9 @@ require 'nokogiri' require 'erubis' -require 'lib/state' -require 'lib/transition' -require 'lib/printer' +require_relative 'lib/state' +require_relative 'lib/transition' +require_relative 'lib/...
Use require_relative for Ruby 1.9 (no more 1.8!)
diff --git a/templater.rb b/templater.rb index abc1234..def5678 100644 --- a/templater.rb +++ b/templater.rb @@ -2,7 +2,7 @@ initialize_templater -required_recipes = %w(default jquery mongoid haml rspec factory_girl remarkable) +required_recipes = %w(default mongoid jquery haml rspec factory_girl remarkable) requi...
Change up the order of recipes
diff --git a/app/controllers/omniauth_callbacks_controller.rb b/app/controllers/omniauth_callbacks_controller.rb index abc1234..def5678 100644 --- a/app/controllers/omniauth_callbacks_controller.rb +++ b/app/controllers/omniauth_callbacks_controller.rb @@ -20,7 +20,8 @@ protected def handle_jwt_error - Raven....
Fix format of Raven capture for JWT debugging
diff --git a/app/serializers/paper_event_stream_serializer.rb b/app/serializers/paper_event_stream_serializer.rb index abc1234..def5678 100644 --- a/app/serializers/paper_event_stream_serializer.rb +++ b/app/serializers/paper_event_stream_serializer.rb @@ -1,5 +1,5 @@ class PaperEventStreamSerializer < ActiveModel::Ser...
Remove unneeded event stream name because of user channel addition
diff --git a/app/services/hyrax/iiif_authorization_service.rb b/app/services/hyrax/iiif_authorization_service.rb index abc1234..def5678 100644 --- a/app/services/hyrax/iiif_authorization_service.rb +++ b/app/services/hyrax/iiif_authorization_service.rb @@ -5,6 +5,7 @@ @controller = controller end + # @n...
Clarify ignored parameter in Hyrax::IIIFAuthorizationService Thanks, @jeremyf!
diff --git a/rails/benchmarks/bm_activerecord_scope_all.rb b/rails/benchmarks/bm_activerecord_scope_all.rb index abc1234..def5678 100644 --- a/rails/benchmarks/bm_activerecord_scope_all.rb +++ b/rails/benchmarks/bm_activerecord_scope_all.rb @@ -12,7 +12,7 @@ Benchmark.rails("activerecord/#{db_adapter}_scope_all", tim...
Replace pluck with select in activerecord/scope_all
diff --git a/app/models/to_do.rb b/app/models/to_do.rb index abc1234..def5678 100644 --- a/app/models/to_do.rb +++ b/app/models/to_do.rb @@ -7,12 +7,6 @@ short_description end - def self.build(params = nil) - result = self.dobuild(params) - result.due_time = DateTime.now - result - end - afte...
Remove default due time from TODOs
diff --git a/lib/concur_connect/session.rb b/lib/concur_connect/session.rb index abc1234..def5678 100644 --- a/lib/concur_connect/session.rb +++ b/lib/concur_connect/session.rb @@ -37,8 +37,8 @@ @user ||= @user_finder.find id end - def expense_reports(date, status = 'APPROVED') - @expense_reports |...
Allow user to be specified when fetching expenses
diff --git a/lib/geogit/commands/commit.rb b/lib/geogit/commands/commit.rb index abc1234..def5678 100644 --- a/lib/geogit/commands/commit.rb +++ b/lib/geogit/commands/commit.rb @@ -6,10 +6,12 @@ module GeoGit module Command class Commit < GenericCommand - def initialize(repo_path, message) - # trans...
Fix variable names in Commit command
diff --git a/lib/github_api/api/actions.rb b/lib/github_api/api/actions.rb index abc1234..def5678 100644 --- a/lib/github_api/api/actions.rb +++ b/lib/github_api/api/actions.rb @@ -1,19 +1,18 @@ # encoding: utf-8 module Github + # Core class responsible for api interface operations class API - # Returns all...
Change to expose as method call.
diff --git a/lib/llt/diff/parser/postag.rb b/lib/llt/diff/parser/postag.rb index abc1234..def5678 100644 --- a/lib/llt/diff/parser/postag.rb +++ b/lib/llt/diff/parser/postag.rb @@ -44,8 +44,10 @@ parts_of_speech persons numbers tenses moods voices genders cases degrees } + + CONTAINER_TABLE...
Use a constant to get the datapoint containers No need to recompute it all the time
diff --git a/lib/spatial_features/unzip.rb b/lib/spatial_features/unzip.rb index abc1234..def5678 100644 --- a/lib/spatial_features/unzip.rb +++ b/lib/spatial_features/unzip.rb @@ -1,14 +1,9 @@+require 'fileutils' + module SpatialFeatures module Unzip def self.paths(file_path, find: nil) - dir = Dir.mktmp...
Fix bug that prevented import of KMZs with folders When unzipping, we are tasked with creating folders for all zipfile entries. If there is a subfoldered entry, we need to also create that folder too.
diff --git a/test/core/test_unicode.rb b/test/core/test_unicode.rb index abc1234..def5678 100644 --- a/test/core/test_unicode.rb +++ b/test/core/test_unicode.rb @@ -4,14 +4,14 @@ class TestSlimUnicode < TestSlim def test_unicode_tags - source = "Статья года" - result = "<Статья>года</Статья>" + ...
Make the unicode text work regardless of smart_text option.
diff --git a/spec/features/merge_requests/closes_issues_spec.rb b/spec/features/merge_requests/closes_issues_spec.rb index abc1234..def5678 100644 --- a/spec/features/merge_requests/closes_issues_spec.rb +++ b/spec/features/merge_requests/closes_issues_spec.rb @@ -0,0 +1,57 @@+require 'spec_helper' + +feature 'Merge Co...
Add feature spec to verify all 4 different states of closing issues message on Merge Request show page.
diff --git a/spec/controllers/admin/cfps_controller_spec.rb b/spec/controllers/admin/cfps_controller_spec.rb index abc1234..def5678 100644 --- a/spec/controllers/admin/cfps_controller_spec.rb +++ b/spec/controllers/admin/cfps_controller_spec.rb @@ -1,5 +1,3 @@-require 'pry' - # frozen_string_literal: true require '...
Remove pry requires from spec
diff --git a/casing.gemspec b/casing.gemspec index abc1234..def5678 100644 --- a/casing.gemspec +++ b/casing.gemspec @@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = 'casing' - s.version = '0.1.3' + s.version = '0.2.0' s.summary = 'Convert the case of strings, symbols, and hash ...
Package version is increased from 0.1.3 to 0.2.0
diff --git a/lib/puppet/parser/functions/write_package_names.rb b/lib/puppet/parser/functions/write_package_names.rb index abc1234..def5678 100644 --- a/lib/puppet/parser/functions/write_package_names.rb +++ b/lib/puppet/parser/functions/write_package_names.rb @@ -0,0 +1,22 @@+require 'fileutils' + +module Puppet::Pars...
Add a function to write package names This function writes out package names that have been defined in a given puppet catalog. In order to work this should be place last (or very late) in a manifest to ensure it picks up packages. Change-Id: Ie21b5bf7df71337da02ea43915dc4e70d3052bb7
diff --git a/ruby/subscription-card-update.rb b/ruby/subscription-card-update.rb index abc1234..def5678 100644 --- a/ruby/subscription-card-update.rb +++ b/ruby/subscription-card-update.rb @@ -0,0 +1,17 @@+ +gem 'chargify_api_ares', '=1.3.5' +require 'chargify_api_ares' + +Chargify.configure do |c| + c.subdomain = ENV...
Add example of updating with invalid card
diff --git a/chef/cookbooks/ohai/recipes/default.rb b/chef/cookbooks/ohai/recipes/default.rb index abc1234..def5678 100644 --- a/chef/cookbooks/ohai/recipes/default.rb +++ b/chef/cookbooks/ohai/recipes/default.rb @@ -20,10 +20,12 @@ Ohai::Config[:plugin_path] << node.ohai.plugin_path Chef::Log.info("ohai plugins will ...
Make the installation of lshw and ipmitool based upon where the file it contains is already there. THis allows the system not call yum in the centos discovery image. This explodes.
diff --git a/lib/metamodel/model/property_constructor.rb b/lib/metamodel/model/property_constructor.rb index abc1234..def5678 100644 --- a/lib/metamodel/model/property_constructor.rb +++ b/lib/metamodel/model/property_constructor.rb @@ -4,12 +4,19 @@ attr_reader :model + define_method :string do |json_key, p...
Use method missing to generate model
diff --git a/lib/optimus_prime/transformers/validator.rb b/lib/optimus_prime/transformers/validator.rb index abc1234..def5678 100644 --- a/lib/optimus_prime/transformers/validator.rb +++ b/lib/optimus_prime/transformers/validator.rb @@ -26,23 +26,23 @@ end def range_validator(value, specifieres) - ...
Check for value before doing the actual check except for set which can be nil
diff --git a/lib/rails/controller/testing/integration.rb b/lib/rails/controller/testing/integration.rb index abc1234..def5678 100644 --- a/lib/rails/controller/testing/integration.rb +++ b/lib/rails/controller/testing/integration.rb @@ -3,7 +3,7 @@ module Testing module Integration http_verbs = %w(g...
Use the right framework to check the version
diff --git a/lib/schema2plantuml/active_record/schema.rb b/lib/schema2plantuml/active_record/schema.rb index abc1234..def5678 100644 --- a/lib/schema2plantuml/active_record/schema.rb +++ b/lib/schema2plantuml/active_record/schema.rb @@ -9,11 +9,9 @@ end def create_table(table_name, _options, &block) - p...
Fix bug display only latest column
diff --git a/lib/vagrant-phpstorm-tunnel/configurator.rb b/lib/vagrant-phpstorm-tunnel/configurator.rb index abc1234..def5678 100644 --- a/lib/vagrant-phpstorm-tunnel/configurator.rb +++ b/lib/vagrant-phpstorm-tunnel/configurator.rb @@ -13,13 +13,14 @@ File.exist? @root_path + '/.idea' end - def link_ph...
Change permission of shipped file to 0755
diff --git a/DFImageManager.podspec b/DFImageManager.podspec index abc1234..def5678 100644 --- a/DFImageManager.podspec +++ b/DFImageManager.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "DFImageManager" - s.version = "0.0.7" + s.version = "0.0.8" s.summary = "Complete solutio...
Update podspec to version 0.0.8
diff --git a/spec/application_spec.rb b/spec/application_spec.rb index abc1234..def5678 100644 --- a/spec/application_spec.rb +++ b/spec/application_spec.rb @@ -1,6 +1,6 @@ require "spec_helper" -module NessusDB +module Risu module CLI describe Application do before(:all) do
Rename from NessusDB to Risu
diff --git a/spec/git_tracker_spec.rb b/spec/git_tracker_spec.rb index abc1234..def5678 100644 --- a/spec/git_tracker_spec.rb +++ b/spec/git_tracker_spec.rb @@ -1,17 +1,22 @@ require 'git_tracker' describe GitTracker do + subject { described_class } let(:args) { ["a_file", "the_source", "sha1234"] } describ...
Refactor to more idiomatic Rspec [#26437795]
diff --git a/spec/hash_object_spec.rb b/spec/hash_object_spec.rb index abc1234..def5678 100644 --- a/spec/hash_object_spec.rb +++ b/spec/hash_object_spec.rb @@ -0,0 +1,25 @@+require 'spec_helper' + +# Test support object +describe HashObject do + + subject { HashObject.new(hash) } + let(:hash) do + { + :n...
Add spec for nesting capabilities of HashObject
diff --git a/site-cookbooks/backup_restore/spec/recipes/setup_spec.rb b/site-cookbooks/backup_restore/spec/recipes/setup_spec.rb index abc1234..def5678 100644 --- a/site-cookbooks/backup_restore/spec/recipes/setup_spec.rb +++ b/site-cookbooks/backup_restore/spec/recipes/setup_spec.rb @@ -0,0 +1,70 @@+require_relative '...
Add chef-spec for setup recipe
diff --git a/spec/kaspersky_runner/linux_executor_spec.rb b/spec/kaspersky_runner/linux_executor_spec.rb index abc1234..def5678 100644 --- a/spec/kaspersky_runner/linux_executor_spec.rb +++ b/spec/kaspersky_runner/linux_executor_spec.rb @@ -6,14 +6,14 @@ let(:desired_cmd) { 'sudo ' + '/opt/kaspersky/kes4lwk...
Update spec -- linux command usage
diff --git a/spec/rails_locale_detection/controller_methods_spec.rb b/spec/rails_locale_detection/controller_methods_spec.rb index abc1234..def5678 100644 --- a/spec/rails_locale_detection/controller_methods_spec.rb +++ b/spec/rails_locale_detection/controller_methods_spec.rb @@ -2,17 +2,18 @@ describe RailsLocaleDet...
Add proper controller methods spec
diff --git a/rails_components.gemspec b/rails_components.gemspec index abc1234..def5678 100644 --- a/rails_components.gemspec +++ b/rails_components.gemspec @@ -1,8 +1,8 @@ Gem::Specification.new do |s| s.name = 'rails_components' - s.version = '0.0.1' + s.version = '0.0.2' s.date = '2...
Update gem version, add a description
diff --git a/anyway_config.gemspec b/anyway_config.gemspec index abc1234..def5678 100644 --- a/anyway_config.gemspec +++ b/anyway_config.gemspec @@ -23,6 +23,6 @@ s.required_ruby_version = '>= 2.3' s.add_development_dependency "rspec", "~> 3.5" - s.add_development_dependency "rubocop", "~> 0.57.2" + s.add_deve...
Update rubocop to version 0.58.0
diff --git a/test/song_test.rb b/test/song_test.rb index abc1234..def5678 100644 --- a/test/song_test.rb +++ b/test/song_test.rb @@ -0,0 +1,31 @@+require 'test_helper' + +describe Lyricfy::Song do + before do + @song = Lyricfy::Song.new 'Yellow', 'Coldplay', ['Look at the stars', 'Look how they shine for you'] + e...
Add tests for the Lyricfy::Song class
diff --git a/app/controllers/georgia/concerns/revisioning.rb b/app/controllers/georgia/concerns/revisioning.rb index abc1234..def5678 100644 --- a/app/controllers/georgia/concerns/revisioning.rb +++ b/app/controllers/georgia/concerns/revisioning.rb @@ -12,27 +12,27 @@ def review @revision.review - ...
Use @revision.title instead of @page
diff --git a/app/models/account.rb b/app/models/account.rb index abc1234..def5678 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -33,8 +33,8 @@ def organizations { - divisions: self.divisions, - projects: self.projects + my_divisions: self.divisions, + my_projects: self.p...
Fix symbol at default data
diff --git a/app/models/country.rb b/app/models/country.rb index abc1234..def5678 100644 --- a/app/models/country.rb +++ b/app/models/country.rb @@ -11,10 +11,15 @@ end def find_all - url = base_path + sql = <<-SQL + SELECT DISTINCT iso, admin0_name AS name, true as enabled + FROM ind...
Use the indicators-values table on cartoDB to get the list of available countries
diff --git a/app/models/concerns/can_be_serialized_to_csv.rb b/app/models/concerns/can_be_serialized_to_csv.rb index abc1234..def5678 100644 --- a/app/models/concerns/can_be_serialized_to_csv.rb +++ b/app/models/concerns/can_be_serialized_to_csv.rb @@ -1,3 +1,5 @@+require 'csv' + module CanBeSerializedToCsv extend ...
Add require csv to CanBeSerializedToCSV.
diff --git a/app/models/renalware/feeds/message_processor.rb b/app/models/renalware/feeds/message_processor.rb index abc1234..def5678 100644 --- a/app/models/renalware/feeds/message_processor.rb +++ b/app/models/renalware/feeds/message_processor.rb @@ -9,10 +9,11 @@ include Wisper::Publisher def call(raw...
Add a transation around HL7 processing This prevents a feed_message row being created if we could not parse the OBR/Xs and prevents duplicate content for is a message was only partially saved.
diff --git a/spec/afip_bill/generator_spec.rb b/spec/afip_bill/generator_spec.rb index abc1234..def5678 100644 --- a/spec/afip_bill/generator_spec.rb +++ b/spec/afip_bill/generator_spec.rb @@ -0,0 +1,51 @@+require "spec_helper" +require "afip_bill/generator" +require "afip_bill/line_item" +require "afip_bill/user" + +d...
Test coverage for Generator class
diff --git a/spec/features/user_index_spec.rb b/spec/features/user_index_spec.rb index abc1234..def5678 100644 --- a/spec/features/user_index_spec.rb +++ b/spec/features/user_index_spec.rb @@ -0,0 +1,14 @@+require 'spec_helper' + +require 'carrierwave/test/matchers' +feature 'As a user' do + before do + sign_in + ...
Add spec for admin users index
diff --git a/workers/command_runner.rb b/workers/command_runner.rb index abc1234..def5678 100644 --- a/workers/command_runner.rb +++ b/workers/command_runner.rb @@ -10,8 +10,9 @@ include Sidekiq::Worker def perform(command_id, command) logger.info "Things are happening." + logger.info ENV["REDIS_URL"] -...
Fix Redis initialization bug on worker
diff --git a/lib/faraday_bang/bang.rb b/lib/faraday_bang/bang.rb index abc1234..def5678 100644 --- a/lib/faraday_bang/bang.rb +++ b/lib/faraday_bang/bang.rb @@ -1,22 +1,33 @@ module Faraday::Bang ERROR_CODES = [(400..417).to_a, (500..505).to_a].flatten + SUPPORTED_HTTP_METHODS = Faraday::Connection::METHODS - Set.n...
Add support for `options!` method. Since Faraday doesn't support the `options` request as a first class HTTP method (see lostisland/faraday#305) we need to use the `run_request` method instead of the `options` one.
diff --git a/apps/redirects/app.rb b/apps/redirects/app.rb index abc1234..def5678 100644 --- a/apps/redirects/app.rb +++ b/apps/redirects/app.rb @@ -11,7 +11,7 @@ # redirect initials to homepage for tracking business cards # we may want to create personal pages thanking people for chatting with us ...
Add a couple more business cards redirects.
diff --git a/lib/active_record/turntable/util.rb b/lib/active_record/turntable/util.rb index abc1234..def5678 100644 --- a/lib/active_record/turntable/util.rb +++ b/lib/active_record/turntable/util.rb @@ -35,6 +35,10 @@ ar_version_equals_or_later?("5.2") end + def ar60_or_later? + ar_version_equals...
Add ar60_or_later? method to Util
diff --git a/test/integration/default/serverspec/spec_helper.rb b/test/integration/default/serverspec/spec_helper.rb index abc1234..def5678 100644 --- a/test/integration/default/serverspec/spec_helper.rb +++ b/test/integration/default/serverspec/spec_helper.rb @@ -1,8 +1,8 @@ # Encoding: utf-8 + require 'serverspec' ...
Remove Serverspec::Helper for latest major version of serverspec.
diff --git a/lib/llt/segmenter/api.rb b/lib/llt/segmenter/api.rb index abc1234..def5678 100644 --- a/lib/llt/segmenter/api.rb +++ b/lib/llt/segmenter/api.rb @@ -5,6 +5,7 @@ class Api < Sinatra::Base register Sinatra::RespondWith + register LLT::Core::Api::VersionRoutes helpers LLT::Core::Api::Helpers get ...
Add version route for segment
diff --git a/lib/podio/models/live.rb b/lib/podio/models/live.rb index abc1234..def5678 100644 --- a/lib/podio/models/live.rb +++ b/lib/podio/models/live.rb @@ -31,10 +31,10 @@ Podio.connection.delete("/live/#{id}").body end - def authorize(scope) + def authorize(attributes) response = Podio.c...
Make the auth method better
diff --git a/lib/punchlist/options.rb b/lib/punchlist/options.rb index abc1234..def5678 100644 --- a/lib/punchlist/options.rb +++ b/lib/punchlist/options.rb @@ -0,0 +1,33 @@+require 'optparse' + +module Punchlist + class Options + attr_reader :default_punchlist_line_regexp + + def initialize(default_punchlist_li...
Add Options class for option parsing
diff --git a/lib/ellen/handlers/japan_weather.rb b/lib/ellen/handlers/japan_weather.rb index abc1234..def5678 100644 --- a/lib/ellen/handlers/japan_weather.rb +++ b/lib/ellen/handlers/japan_weather.rb @@ -1,7 +1,7 @@ module Ellen module Handlers class JapanWeather < Base - on /の天気/, name: "japan_weather", ...
Fix regexp to match better in ellen's convention
diff --git a/lib/faraday_api_cache/middleware.rb b/lib/faraday_api_cache/middleware.rb index abc1234..def5678 100644 --- a/lib/faraday_api_cache/middleware.rb +++ b/lib/faraday_api_cache/middleware.rb @@ -5,7 +5,7 @@ class Middleware < Faraday::Middleware def initialize(app, options = {}) super(app) - ...
Set the default behavior to have timeout 0 and period 0 For api cache to behave transparently in faraday we can't have it imposing it's own timeouts or blocking repeated requests
diff --git a/lib/flipper/rails.rb b/lib/flipper/rails.rb index abc1234..def5678 100644 --- a/lib/flipper/rails.rb +++ b/lib/flipper/rails.rb @@ -12,6 +12,14 @@ require 'flipper' +require 'flipper/adapters/active_record' +require 'flipper/adapters/instrumented' +require 'flipper/adapters/memoizable' +require 'flippe...
Include adapters so we don't have to do so manually
diff --git a/lib/stat_board/engine.rb b/lib/stat_board/engine.rb index abc1234..def5678 100644 --- a/lib/stat_board/engine.rb +++ b/lib/stat_board/engine.rb @@ -1,5 +1,11 @@ module StatBoard class Engine < ::Rails::Engine isolate_namespace StatBoard + + if Rails.version > "3.1" + initializer "StatBoard ...
Add Bootstrap to asset pipeline
diff --git a/lib/tasks/ops_tasks.rake b/lib/tasks/ops_tasks.rake index abc1234..def5678 100644 --- a/lib/tasks/ops_tasks.rake +++ b/lib/tasks/ops_tasks.rake @@ -31,4 +31,18 @@ deploy_id = deployment.configure deployment.wait_for_completion(deploy_id, "configure") end + + desc "create new instance" + task ...
Add rake tasks for creating new instance
diff --git a/lib/rspec/toolbelt/matchers/http.rb b/lib/rspec/toolbelt/matchers/http.rb index abc1234..def5678 100644 --- a/lib/rspec/toolbelt/matchers/http.rb +++ b/lib/rspec/toolbelt/matchers/http.rb @@ -18,6 +18,12 @@ RSpec::Matchers.define :be_created do match do |response| response.s...
Add ok response status to matchers
diff --git a/lib/kindly/runner.rb b/lib/kindly/runner.rb index abc1234..def5678 100644 --- a/lib/kindly/runner.rb +++ b/lib/kindly/runner.rb @@ -9,18 +9,22 @@ end def run(migration) - begin - output = capture_output do - migration.running! + failed = false + output = capture_ou...
Fix logging error on failures
diff --git a/lib/licit/command.rb b/lib/licit/command.rb index abc1234..def5678 100644 --- a/lib/licit/command.rb +++ b/lib/licit/command.rb @@ -11,9 +11,12 @@ end def check(licenser) + has_errors = false (licenser.check_files | licenser.check_headers).each do |severity, file, message| puts messag...
Set exit status to 1 if there was at least one error during check
diff --git a/lib/pangram_cases.rb b/lib/pangram_cases.rb index abc1234..def5678 100644 --- a/lib/pangram_cases.rb +++ b/lib/pangram_cases.rb @@ -5,13 +5,14 @@ def workload [ - "phrase = '#{input}'\n", - " #{assertion} Pangram.pangram?(phrase), \"#{message}\"" - ].join + "phrase = '#{input}'", + ...
Add expected and actual values to failure message.
diff --git a/lib/pantry/config.rb b/lib/pantry/config.rb index abc1234..def5678 100644 --- a/lib/pantry/config.rb +++ b/lib/pantry/config.rb @@ -21,6 +21,11 @@ def initialize + # Default connectivity settings + @server_host = "127.0.0.1" + @pub_sub_port = 23001 + @receive_port = 23002 + ...
Set default host and ports