diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/lib/specjour/cpu.rb b/lib/specjour/cpu.rb index abc1234..def5678 100644 --- a/lib/specjour/cpu.rb +++ b/lib/specjour/cpu.rb @@ -1,12 +1,12 @@ module Specjour module CPU - # copied from github.com/grosser/parallel + # inspired by github.com/grosser/parallel def self.cores case RUBY_PLAT...
Use grep as it was intended, no more piping!
diff --git a/lib/spree_social.rb b/lib/spree_social.rb index abc1234..def5678 100644 --- a/lib/spree_social.rb +++ b/lib/spree_social.rb @@ -1,5 +1,5 @@ require 'spree_core' -require 'spree_auth_devise' +require 'solidus_auth_devise' require 'omniauth-twitter' require 'omniauth-facebook' require 'omniauth-github'
Modify Require For Solidus Auth Devise For the spree_social gem to work, we need to require solidus over spree auth devise.
diff --git a/spec/controllers/pages_controller_spec.rb b/spec/controllers/pages_controller_spec.rb index abc1234..def5678 100644 --- a/spec/controllers/pages_controller_spec.rb +++ b/spec/controllers/pages_controller_spec.rb @@ -4,7 +4,7 @@ render_views %w(about_us faq).each do |page| - %w(en fr pt ru).each d...
Add es as a valid locale to the PagesController specs
diff --git a/linux_admin.gemspec b/linux_admin.gemspec index abc1234..def5678 100644 --- a/linux_admin.gemspec +++ b/linux_admin.gemspec @@ -22,11 +22,12 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] - spec.add_development_dependency "bundler", "~> 1.3" + spec...
Add gem to parse files with ini type contents
diff --git a/period.gemspec b/period.gemspec index abc1234..def5678 100644 --- a/period.gemspec +++ b/period.gemspec @@ -18,6 +18,8 @@ spec.require_paths = ['lib'] + spec.required_ruby_version = '>= 2.0.0' + spec.add_dependency 'activesupport', '>= 3.0.0' spec.add_development_dependency 'rake'
Set required Ruby version to 2.0.0
diff --git a/src/jenkins_api.rb b/src/jenkins_api.rb index abc1234..def5678 100644 --- a/src/jenkins_api.rb +++ b/src/jenkins_api.rb @@ -1,5 +1,10 @@ module Jenkins module Api + + if ENV['http_proxy'] + uri = URI.parse(ENV['http_proxy']) + http_proxy uri.host, uri.port + end @error def se...
Support connecting through an HTTP proxy Apply to httparty based methods in the Jenkins API gem as well.
diff --git a/active_decorator-graphql.gemspec b/active_decorator-graphql.gemspec index abc1234..def5678 100644 --- a/active_decorator-graphql.gemspec +++ b/active_decorator-graphql.gemspec @@ -17,12 +17,12 @@ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } spec.requir...
Update gem dependent versions in gemspec.
diff --git a/valvat_cache.gemspec b/valvat_cache.gemspec index abc1234..def5678 100644 --- a/valvat_cache.gemspec +++ b/valvat_cache.gemspec @@ -20,7 +20,7 @@ spec.require_paths = ["lib"] spec.add_development_dependency "valvat" - spec.add_development_dependency "bundler", "~> 1.11" + spec.add_development_depe...
Set bundler version to 1.11.2
diff --git a/app/models/carto/notification.rb b/app/models/carto/notification.rb index abc1234..def5678 100644 --- a/app/models/carto/notification.rb +++ b/app/models/carto/notification.rb @@ -8,6 +8,7 @@ belongs_to :organization, inverse_of: :notifications + # TODO: `icon` should be a restricted list of val...
Add reminder to validate `icon`
diff --git a/app/models/tutorial_enrolment.rb b/app/models/tutorial_enrolment.rb index abc1234..def5678 100644 --- a/app/models/tutorial_enrolment.rb +++ b/app/models/tutorial_enrolment.rb @@ -7,4 +7,21 @@ # Always add a unique index to the DB to prevent new records from passing the validations when checked at the ...
ENHANCE: Validate if already enrolled in tutorial stream
diff --git a/Casks/navicat-premium.rb b/Casks/navicat-premium.rb index abc1234..def5678 100644 --- a/Casks/navicat-premium.rb +++ b/Casks/navicat-premium.rb @@ -1,6 +1,6 @@ cask :v1 => 'navicat-premium' do - version '11.1.15' - sha256 'c1ba91359da1da4c1a8ebc437abf62c14b03d94e843bb04a76d30c19cb840e39' + version '11.1...
Upgrade Navicat Premium to 11.1.16.
diff --git a/RZTransitions.podspec b/RZTransitions.podspec index abc1234..def5678 100644 --- a/RZTransitions.podspec +++ b/RZTransitions.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "RZTransitions" - s.version = "1.2" + s.version = "1.2.1" s.summary = "RZTransitions is a library ...
Update the podspec to version 1.2.1
diff --git a/rails_translation_manager.gemspec b/rails_translation_manager.gemspec index abc1234..def5678 100644 --- a/rails_translation_manager.gemspec +++ b/rails_translation_manager.gemspec @@ -24,4 +24,5 @@ spec.add_development_dependency "bundler" spec.add_development_dependency "rake", "~> 10.0" spec.add_...
Add RSpec as a dependency We're transitioning the app from Minitest to RSpec and RSpec will be needed in the following commits as we add some locale checking logic to the codebase.
diff --git a/react-native-instabug-sdk.podspec b/react-native-instabug-sdk.podspec index abc1234..def5678 100644 --- a/react-native-instabug-sdk.podspec +++ b/react-native-instabug-sdk.podspec @@ -13,6 +13,7 @@ s.source = { git: package[:repository][:url] } s.source_files = "ios/*" s.platform = :ios, "8.0" + s...
Add Instabug to search frameworks
diff --git a/reagan.gemspec b/reagan.gemspec index abc1234..def5678 100644 --- a/reagan.gemspec +++ b/reagan.gemspec @@ -8,14 +8,18 @@ s.description = s.summary s.authors = ['Tim Smith'] s.email = 'tim@cozy.co' + s.add_dependency 'octokit', '~> 3.0' s.add_dependency 'chef', '~> 11.0' s.add_de...
Add rdoc setup in the gemspec
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 @@ -7,4 +7,16 @@ fixtures :all # Add more helper methods to be used by all tests here... + def login_as(user) + session[:user_id] = users(user).id + end + + def logout ...
Add login/logout helpers to tests
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 @@ -1,6 +1,6 @@ require 'simplecov' SimpleCov.start -SimpleCov.minimum_coverage 66 +SimpleCov.minimum_coverage 86 $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
Increase test coverage limit to 86%
diff --git a/recipes/_service.rb b/recipes/_service.rb index abc1234..def5678 100644 --- a/recipes/_service.rb +++ b/recipes/_service.rb @@ -9,7 +9,7 @@ # Allow local access over port 4001 if node[:etcd][:local] - args << " -cl 0.0.0.0" + args << " -cl 0.0.0.0 -sl 0.0.0.0" end if node.run_state.has_key? :e...
Fix local args. add "-sl 0.0.0.0"
diff --git a/spec/dummy/config/application.rb b/spec/dummy/config/application.rb index abc1234..def5678 100644 --- a/spec/dummy/config/application.rb +++ b/spec/dummy/config/application.rb @@ -11,14 +11,6 @@ module Dummy class Application < Rails::Application - # Load application's model / class decorators - ...
Remove spree decorators initializer from dummy app This will be added by the solidus installer and causes issues with the latest versions of solidus.
diff --git a/spec/lib/champaign_queue_spec.rb b/spec/lib/champaign_queue_spec.rb index abc1234..def5678 100644 --- a/spec/lib/champaign_queue_spec.rb +++ b/spec/lib/champaign_queue_spec.rb @@ -1,6 +1,14 @@ require 'champaign_queue' describe ChampaignQueue, :sqs do + + before do + # send stuff to the correct (fak...
Add spec for pushing page data into a local fake SQS.
diff --git a/recipes/ec2.rb b/recipes/ec2.rb index abc1234..def5678 100644 --- a/recipes/ec2.rb +++ b/recipes/ec2.rb @@ -2,7 +2,7 @@ if(node[:ec2][:instance_type] == 'm1.xlarge') # First device comes mounted lvm_volume_group 'vg00' do - physical_volumes [ '/dev/xvdb', '/dev/xvdc', '/dev/xvdc', '/dev/xvde' ] + ...
Fix typo - c was being used twice
diff --git a/pry-power_assert.gemspec b/pry-power_assert.gemspec index abc1234..def5678 100644 --- a/pry-power_assert.gemspec +++ b/pry-power_assert.gemspec @@ -19,7 +19,7 @@ spec.require_paths = ["lib"] spec.add_dependency "power_assert", "0.1.3" - spec.add_dependency "pry" + spec.add_dependency "pry", ">= 0....
Declare versions of add_dependency pry
diff --git a/pronto.gemspec b/pronto.gemspec index abc1234..def5678 100644 --- a/pronto.gemspec +++ b/pronto.gemspec @@ -22,7 +22,7 @@ s.add_dependency 'rugged', '~> 0.19.0' s.add_dependency 'thor', '~> 0.18.0' - s.add_dependency 'octokit', '~> 2.4.0' + s.add_dependency 'octokit', '~> 2.5.0' s.add_dependenc...
Update octokit version - from 2.4 to 2.5
diff --git a/tools/purge_archived_storages.rb b/tools/purge_archived_storages.rb index abc1234..def5678 100644 --- a/tools/purge_archived_storages.rb +++ b/tools/purge_archived_storages.rb @@ -0,0 +1,28 @@+#!/usr/bin/env ruby +require File.expand_path('../config/environment', __dir__) +require "optimist" + +opts = Opti...
Add a tool to purge archived storages Storages that aren't connected to any hosts aren't automatically deleted and thus a tool is needed to clean them up. This looks for storages which aren't represented in the host_storages table which means they aren't a part of any EMS and can be removed. Fixes https://bugzilla.r...
diff --git a/cookbooks/kernel/kernel-4.1.2.rb b/cookbooks/kernel/kernel-4.1.2.rb index abc1234..def5678 100644 --- a/cookbooks/kernel/kernel-4.1.2.rb +++ b/cookbooks/kernel/kernel-4.1.2.rb @@ -22,5 +22,5 @@ execute "build kernel" do user node["rbenv"]["user"] - command "cd #{build_dir} && make && mv #{build_dir}/...
Add kernel version to make
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index abc1234..def5678 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,6 +1,6 @@ module ApplicationHelper def avatar_url(user) gravatar_id = Digest::MD5::hexdigest(user.email_address.d...
Use https for gravatar image * To remove not secure resource warning
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index abc1234..def5678 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -14,7 +14,7 @@ end end end - host + host || admin? end
Correct `event_host?` to also include admins.
diff --git a/spec/config_spec.rb b/spec/config_spec.rb index abc1234..def5678 100644 --- a/spec/config_spec.rb +++ b/spec/config_spec.rb @@ -13,6 +13,15 @@ expect(chef_run).to create_directory('/etc/coopr/conf.chef') end + %w( + coopr-site.xml + provisioner-site.xml + ).each do |file| + ...
Test templates and get 100% coverage
diff --git a/spec/models/user.rb b/spec/models/user.rb index abc1234..def5678 100644 --- a/spec/models/user.rb +++ b/spec/models/user.rb @@ -7,7 +7,7 @@ referenced_in :site, :inverse_of => :users references_many :articles, :foreign_key => :author_id - references_many :comments, :dependent => :destroy, :autosave...
Remove option that caused exception Fixes ``` Invalid option :index provided to relation :comments. Valid options are: as, autosave, dependent, foreign_key, order, class_name, extend, inverse_class_name, inverse_of, name, relation, validate. (Mongoid::Errors::InvalidOptions) ``` when running `rake` All specs now pa...
diff --git a/spec/sample_jobs.rb b/spec/sample_jobs.rb index abc1234..def5678 100644 --- a/spec/sample_jobs.rb +++ b/spec/sample_jobs.rb @@ -41,7 +41,7 @@ self.class.messages << 'perform' end - def after(job, error = nil) + def after(job) self.class.messages << 'after' end
Remove arg from sample job
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -6,6 +6,7 @@ require 'action_dispatch/railtie' +$:<< 'lib' require 'biceps' # Load support files
Add the local lib file to the LOAD_PATH
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -22,13 +22,13 @@ end def mock_mapper(model_class) - klass = Class.new(DataMapper::Mapper) do + Class.new(DataMapper::Mapper) do + model model_class + def i...
Revert "Workaround a problem with Mapper.inherited on 1.8.7" This reverts commit 7b374383aa448f6c217ac617417d8f36b679b07a. The Mapper.inherited hook was previously removed
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,5 +1,5 @@-require 'slack-ruby-bot/rspec' -require 'bunny-mock' +# require 'slack-ruby-bot/rspec' +# require 'bunny-mock' require 'rspec' require_relative '../word_list'
Comment out unneeded stuff from spec helper
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -19,4 +19,8 @@ config.filter_run :focus config.run_all_when_everything_filtered = true config.warnings = true + + config.after(:suite) do + WebMock.disable_net_connect!...
Allow HTTP connection to codeclimate for sending code coverage
diff --git a/lib/dry/web/roda/application.rb b/lib/dry/web/roda/application.rb index abc1234..def5678 100644 --- a/lib/dry/web/roda/application.rb +++ b/lib/dry/web/roda/application.rb @@ -36,6 +36,10 @@ def self.root config.container.config.root end + + def notifications + s...
Add a shortcut for :notifications
diff --git a/lib/kahuna_client/connection.rb b/lib/kahuna_client/connection.rb index abc1234..def5678 100644 --- a/lib/kahuna_client/connection.rb +++ b/lib/kahuna_client/connection.rb @@ -1,3 +1,4 @@+require 'logger' require 'faraday_middleware' Dir[File.expand_path('../../faraday/*.rb', __FILE__)].each{|f| require ...
Debug the request body in addition to response, when the :debug is enabled
diff --git a/app/admin/dashboard.rb b/app/admin/dashboard.rb index abc1234..def5678 100644 --- a/app/admin/dashboard.rb +++ b/app/admin/dashboard.rb @@ -1,3 +1,4 @@+# encoding: UTF-8 ActiveAdmin.register_page "Dashboard" do menu :priority => 1, :label => proc{ I18n.t("active_admin.dashboard") }
Add explicit uft-8 encoding marker.
diff --git a/app/exporters/users.rb b/app/exporters/users.rb index abc1234..def5678 100644 --- a/app/exporters/users.rb +++ b/app/exporters/users.rb @@ -2,13 +2,19 @@ class Users < Base def current_students + export_for_season(Season.current) + end + + private + + def export_for_season(season) ...
Make export a function of season
diff --git a/arrowhead/arrowhead.rb b/arrowhead/arrowhead.rb index abc1234..def5678 100644 --- a/arrowhead/arrowhead.rb +++ b/arrowhead/arrowhead.rb @@ -15,19 +15,20 @@ }, } - # FIXME: I don't have time to deal with this. def self.classify(region, shape) - if CLASSIFICATIONS.include? region - shape...
Move error conditions near their conditions This was an interesting exercise. The process was actually very straightforward, but only because I had read the Ruby Style Guide recently. I remembered the style guide to fail out of a method as soon as possible. That meant that I should move the code in the outer else stat...
diff --git a/db/migrate/20141110063114_create_invitations.rb b/db/migrate/20141110063114_create_invitations.rb index abc1234..def5678 100644 --- a/db/migrate/20141110063114_create_invitations.rb +++ b/db/migrate/20141110063114_create_invitations.rb @@ -4,7 +4,8 @@ t.belongs_to :provider, null: false, default: nil...
Adjust invitation columns to mirror subject better When creating an invitation, we want to capture the name and email address entered by the administrator for auditing purposes. If there is ever a question about where an invite went and why somebody else claimed it, we can look here for clues.
diff --git a/Casks/okapi-apps.rb b/Casks/okapi-apps.rb index abc1234..def5678 100644 --- a/Casks/okapi-apps.rb +++ b/Casks/okapi-apps.rb @@ -0,0 +1,15 @@+cask 'okapi-apps' do + version '0.32' + sha256 '5d63f1ef997b05b4faa896a10a2d35ae4998648fada60230e65757a240c62c5c' + + # bintray.com/okapi was verified as official ...
Add Cask for Okapi-Apps v0.32
diff --git a/Casks/pycharm-ce.rb b/Casks/pycharm-ce.rb index abc1234..def5678 100644 --- a/Casks/pycharm-ce.rb +++ b/Casks/pycharm-ce.rb @@ -1,6 +1,6 @@ cask :v1 => 'pycharm-ce' do - version '4.0.3' - sha256 '1a88ee3565d82fec595d7d15ba23d1ad67faa85a83df4f4fd0104d5ad7b1ecea' + version '4.0.4' + sha256 'abbad61e767c2...
Update PyCharm-CE to version 4.0.4
diff --git a/test/support/component_helpers.rb b/test/support/component_helpers.rb index abc1234..def5678 100644 --- a/test/support/component_helpers.rb +++ b/test/support/component_helpers.rb @@ -12,4 +12,38 @@ assert_equal context, component_data.fetch("context") if context end end + + def assert_has_b...
Add button component test helper support
diff --git a/lib/gds_api/test_helpers/asset_manager.rb b/lib/gds_api/test_helpers/asset_manager.rb index abc1234..def5678 100644 --- a/lib/gds_api/test_helpers/asset_manager.rb +++ b/lib/gds_api/test_helpers/asset_manager.rb @@ -2,14 +2,14 @@ module TestHelpers module AssetManager - ASSET_ENDPOINT = Plek....
Rename test helper constant to match convention
diff --git a/config/initializers/postgresql.rb b/config/initializers/postgresql.rb index abc1234..def5678 100644 --- a/config/initializers/postgresql.rb +++ b/config/initializers/postgresql.rb @@ -0,0 +1,9 @@+# Only needed for postgres-pr gem prior to version 0.6.3, for details see +# https://rails.lighthouseapp.com/pr...
Fix for :quote_ident issue with Postgres (thanks, Matt!)
diff --git a/config/initializers/redis_test.rb b/config/initializers/redis_test.rb index abc1234..def5678 100644 --- a/config/initializers/redis_test.rb +++ b/config/initializers/redis_test.rb @@ -0,0 +1,19 @@+ +host = Settings.redis_host || "127.0.0.1" +port = Settings.redis_port || 6379 +begin + r = Redis.new(host: h...
Add intialiation check to confirm redis exists Add super obvious rails error message to config/initializers to exit out before starting the rails server in the event that the redis server doesn't exist.
diff --git a/lib/puppet/provider/mountpoint/solaris.rb b/lib/puppet/provider/mountpoint/solaris.rb index abc1234..def5678 100644 --- a/lib/puppet/provider/mountpoint/solaris.rb +++ b/lib/puppet/provider/mountpoint/solaris.rb @@ -12,7 +12,7 @@ line = mount.split("\n").find do |line| File.expand_path(line.spli...
Read the mount options from the output of mount on Solaris In order to actually see if there are changes we need to sync on the mount point, we also need to check if the mount options have changed.
diff --git a/lib/simple_form/components/label_input.rb b/lib/simple_form/components/label_input.rb index abc1234..def5678 100644 --- a/lib/simple_form/components/label_input.rb +++ b/lib/simple_form/components/label_input.rb @@ -8,28 +8,20 @@ end def label_input(context=nil) - options[:label] == f...
Remove duplication at the deprecated methods
diff --git a/lib/slippery/processors/hr_to_sections.rb b/lib/slippery/processors/hr_to_sections.rb index abc1234..def5678 100644 --- a/lib/slippery/processors/hr_to_sections.rb +++ b/lib/slippery/processors/hr_to_sections.rb @@ -24,11 +24,12 @@ page = 1 element.children.each do |child| if ch...
Fix missing anchor due to immutability
diff --git a/app/workers/weighted_completeness_metric_worker.rb b/app/workers/weighted_completeness_metric_worker.rb index abc1234..def5678 100644 --- a/app/workers/weighted_completeness_metric_worker.rb +++ b/app/workers/weighted_completeness_metric_worker.rb @@ -0,0 +1,12 @@+class WeightedCompletenessMetricWorker < M...
Add weighted completeness metric worker I have added the weighted completeness metric worker which is more or less the same code as the completeness metric code. I probably should delegate some of the common code into the completeness metric only. Signed-off-by: Konrad Reiche <4ff0213f56e2082fcd8c882d04c546881c579ce4...
diff --git a/calculators/bmi/bmi.rb b/calculators/bmi/bmi.rb index abc1234..def5678 100644 --- a/calculators/bmi/bmi.rb +++ b/calculators/bmi/bmi.rb @@ -5,8 +5,8 @@ weight = get_field_as_float :weight_in_kg height = get_field_as_float :height_in_m - raise FieldError.new("weight", "must be greater than zero") if...
Use fail instead of raise to throw exceptions
diff --git a/haproxy_log_parser.gemspec b/haproxy_log_parser.gemspec index abc1234..def5678 100644 --- a/haproxy_log_parser.gemspec +++ b/haproxy_log_parser.gemspec @@ -9,7 +9,7 @@ s.add_dependency 'treetop' - s.add_development_dependency 'rspec', '~> 2.13' + s.add_development_dependency 'rspec', '~> 3.5.0' ...
Upgrade to rspec ~> 3.5.0
diff --git a/test/locotimezone_errors_test.rb b/test/locotimezone_errors_test.rb index abc1234..def5678 100644 --- a/test/locotimezone_errors_test.rb +++ b/test/locotimezone_errors_test.rb @@ -3,7 +3,7 @@ class LocotimezoneErrorsTest < Minitest::Test describe 'testing error handling' do - it 'must be empty if b...
Update error test assertions to make them more informative as to what is being tested.
diff --git a/OROpenSubtitleDownloader.podspec b/OROpenSubtitleDownloader.podspec index abc1234..def5678 100644 --- a/OROpenSubtitleDownloader.podspec +++ b/OROpenSubtitleDownloader.podspec @@ -5,11 +5,11 @@ s.homepage = "https://github.com/orta/OROpenSubtitleDownloader" s.license = { :type => 'BSD', :file...
Fix podspec to conforms sources to a specific tag
diff --git a/test/helper.rb b/test/helper.rb index abc1234..def5678 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -7,23 +7,16 @@ $stderr.puts "Run `bundle install` to install missing gems" exit e.status_code end - require 'simplecov' +require 'faker' +require 'randexp' require 'minitest' -require 'minites...
Add and use more random generation stuff and better spec for testing
diff --git a/lib/assignments_manager.rb b/lib/assignments_manager.rb index abc1234..def5678 100644 --- a/lib/assignments_manager.rb +++ b/lib/assignments_manager.rb @@ -7,8 +7,12 @@ user_params['assignments'].each do |assignment| assignment['course_id'] = course.id assignment['article_title'] = Utils....
Check for exact title match and namespace 0 for assignments
diff --git a/lib/cms/attributes/base.rb b/lib/cms/attributes/base.rb index abc1234..def5678 100644 --- a/lib/cms/attributes/base.rb +++ b/lib/cms/attributes/base.rb @@ -13,7 +13,7 @@ @association = options[:association] @required = options[:required] || false @show = true - @center = %w...
Set center for float and decimal attributes
diff --git a/lib/collectors/cpu_load.rb b/lib/collectors/cpu_load.rb index abc1234..def5678 100644 --- a/lib/collectors/cpu_load.rb +++ b/lib/collectors/cpu_load.rb @@ -3,7 +3,9 @@ output = `mpstat 1 1` # Get stats on a single 1 second sample. fields = output.split("\n")[3].split(/\s+/) - i = 2 + # Some versio...
Deal with dodgy time formats from mpstat
diff --git a/lib/http/request_stream.rb b/lib/http/request_stream.rb index abc1234..def5678 100644 --- a/lib/http/request_stream.rb +++ b/lib/http/request_stream.rb @@ -9,20 +9,19 @@ # Stream the request to a socket def stream - socket = @socket @headers.each do |field, value| @request_h...
Replace all socket with @socket Signed-off-by: Sam Phippen <e5a09176608998a68778e11d5021c871e8fae93c@googlemail.com>
diff --git a/lib/libra2/tasks/logs.rake b/lib/libra2/tasks/logs.rake index abc1234..def5678 100644 --- a/lib/libra2/tasks/logs.rake +++ b/lib/libra2/tasks/logs.rake @@ -0,0 +1,40 @@+namespace :libra2 do + + namespace :logs do + def get_request_line(input, output) + of = File.new(output, "w+") + File.open(input, "r...
Clean up log files from production.
diff --git a/lib/smartsheet/api/urls.rb b/lib/smartsheet/api/urls.rb index abc1234..def5678 100644 --- a/lib/smartsheet/api/urls.rb +++ b/lib/smartsheet/api/urls.rb @@ -1,12 +1,62 @@ module Smartsheet module API # Methods for building Smartsheet API URLs - module URLs + class UrlBuilder API_URL = '...
Make the URL builder a robust object. (Partial Commit)
diff --git a/lib/tasks/bumbleworks.rake b/lib/tasks/bumbleworks.rake index abc1234..def5678 100644 --- a/lib/tasks/bumbleworks.rake +++ b/lib/tasks/bumbleworks.rake @@ -1,11 +1,21 @@ namespace :bumbleworks do desc 'Start a Bumbleworks worker' task :start_worker => :environment do - Bumbleworks.start_worker! + ...
Update tasks; add launch_process task
diff --git a/Casks/font-ubuntu.rb b/Casks/font-ubuntu.rb index abc1234..def5678 100644 --- a/Casks/font-ubuntu.rb +++ b/Casks/font-ubuntu.rb @@ -2,7 +2,7 @@ url 'http://font.ubuntu.com/download/ubuntu-font-family-0.80.zip' homepage 'http://font.ubuntu.com/' version '0.80' - sha1 '88276ba9d38d75b33a9640efa15cd8...
Update Ubuntu to sha256 checksums
diff --git a/Casks/powerphotos.rb b/Casks/powerphotos.rb index abc1234..def5678 100644 --- a/Casks/powerphotos.rb +++ b/Casks/powerphotos.rb @@ -10,6 +10,7 @@ homepage 'http://www.fatcatsoftware.com/powerphotos/' license :commercial + auto_updates true depends_on macos: '>= :yosemite' app 'PowerPhotos.a...
Add auto_updates flag to PowerPhotos
diff --git a/MRGArchitect.podspec b/MRGArchitect.podspec index abc1234..def5678 100644 --- a/MRGArchitect.podspec +++ b/MRGArchitect.podspec @@ -1,9 +1,9 @@ Pod::Spec.new do |s| s.name = 'MRGArchitect' - s.version = '0.1.1' + s.version = '0.2.0' s.license = 'BSD 3-Clause' s.summary = 'Static applicat...
Set the version number to 0.2.0.
diff --git a/Library/Homebrew/requirements/java_requirement.rb b/Library/Homebrew/requirements/java_requirement.rb index abc1234..def5678 100644 --- a/Library/Homebrew/requirements/java_requirement.rb +++ b/Library/Homebrew/requirements/java_requirement.rb @@ -6,7 +6,7 @@ download "http://www.oracle.com/technetwork/j...
JavaRequirement: Fix a bug for Linuxbrew
diff --git a/reevoocop.gemspec b/reevoocop.gemspec index abc1234..def5678 100644 --- a/reevoocop.gemspec +++ b/reevoocop.gemspec @@ -17,7 +17,7 @@ spec.test_files = spec.files.grep(/^(test|spec|features)\//) spec.require_paths = ["lib"] - spec.add_dependency "rubocop", "~> 0.88" + spec.add_dependency "ruboc...
Use currently latest and exact version of rubocop
diff --git a/NTYSmartTextView.podspec b/NTYSmartTextView.podspec index abc1234..def5678 100644 --- a/NTYSmartTextView.podspec +++ b/NTYSmartTextView.podspec @@ -10,7 +10,7 @@ s.homepage = "https://github.com/naoty/NTYSmartTextView" s.license = "MIT" s.author = { "Naoto Kaneko" => "nao...
Fix podspec to pass travis
diff --git a/config/initializers/active_admin_index_calendar.rb b/config/initializers/active_admin_index_calendar.rb index abc1234..def5678 100644 --- a/config/initializers/active_admin_index_calendar.rb +++ b/config/initializers/active_admin_index_calendar.rb @@ -13,7 +13,7 @@ { id: item.id,...
Fix error assigning start date to events using resource created_at field
diff --git a/0_code_wars/7_not_visible_cubes.rb b/0_code_wars/7_not_visible_cubes.rb index abc1234..def5678 100644 --- a/0_code_wars/7_not_visible_cubes.rb +++ b/0_code_wars/7_not_visible_cubes.rb @@ -0,0 +1,12 @@+# http://www.codewars.com/kata/560d6ebe7a8c737c52000084/ + +# iteration 1 +def not_visible_cubes(n) + ret...
Add code wars (7) not visible cubes
diff --git a/lib/active_model/merge_errors.rb b/lib/active_model/merge_errors.rb index abc1234..def5678 100644 --- a/lib/active_model/merge_errors.rb +++ b/lib/active_model/merge_errors.rb @@ -1,7 +1,7 @@ ActiveModel::Errors.class_eval do def <<(other) copy_messages_from(other) - copy_details_from(other) + ...
Make ons-context work with Rails4 details were introduced in Rails5
diff --git a/lib/bot/githubapi/git_hub_api.rb b/lib/bot/githubapi/git_hub_api.rb index abc1234..def5678 100644 --- a/lib/bot/githubapi/git_hub_api.rb +++ b/lib/bot/githubapi/git_hub_api.rb @@ -14,7 +14,7 @@ module GitHubApi def self.connect(username, password) @user = GitHubApi::User.new - @user.client ||= O...
Fix issue where auto_paginate was not working.
diff --git a/Canvas.podspec b/Canvas.podspec index abc1234..def5678 100644 --- a/Canvas.podspec +++ b/Canvas.podspec @@ -6,7 +6,7 @@ s.license = { :type => 'MIT', :file => 'LICENSE' } s.authors = { "Meng To" => "shadownessguy@gmail.com", "Jamz Tang" => "jamz@jamztang.com" } s.platform = :ios, '7.0...
Fix https link warning by pod lint
diff --git a/lib/number_to_words_ru/i18n_initialization.rb b/lib/number_to_words_ru/i18n_initialization.rb index abc1234..def5678 100644 --- a/lib/number_to_words_ru/i18n_initialization.rb +++ b/lib/number_to_words_ru/i18n_initialization.rb @@ -2,11 +2,12 @@ extend self def environment + working_locale = I18n...
Save working locale. Replace magic number 2 by locale_files.count.
diff --git a/main.rb b/main.rb index abc1234..def5678 100644 --- a/main.rb +++ b/main.rb @@ -4,13 +4,18 @@ proj_list = Dir['/home/ethan/games/kerbal/CKAN-meta/*'] -proj_list.each { |proj| +proj_list.each do |proj| versions = Dir["#{proj}/*.ckan"] - versions.each { |v| + versions.each do |v| puts "Reading #{v}"...
Format output a bit better
diff --git a/app/mailers/newsletter_mailer.rb b/app/mailers/newsletter_mailer.rb index abc1234..def5678 100644 --- a/app/mailers/newsletter_mailer.rb +++ b/app/mailers/newsletter_mailer.rb @@ -3,7 +3,7 @@ # class NewsletterMailer < ActionMailer::Base add_template_helper(HtmlHelper) - default from: Setting.first.em...
Use try to avoid bug with email parameter in NewsletterMailer
diff --git a/activerecord-spatial.gemspec b/activerecord-spatial.gemspec index abc1234..def5678 100644 --- a/activerecord-spatial.gemspec +++ b/activerecord-spatial.gemspec @@ -11,6 +11,7 @@ s.description = "ActiveRecord Spatial gives AR the ability to work with PostGIS columns." s.summary = s.description s.ema...
Add license details to gemspec.
diff --git a/scripts/dump_html.rb b/scripts/dump_html.rb index abc1234..def5678 100644 --- a/scripts/dump_html.rb +++ b/scripts/dump_html.rb @@ -0,0 +1,64 @@+parser = OptionParser.new + +parser.banner = <<BANNER +Usage + $ bin/rails r scripts/dump_html.rb [runner options] -- [options] +BANNER + +base_directory = nil +...
Add a script to dump html for comparing 1. Dump html 2. Modify markdown renderer options 3. Dump html again 4. Compare 1. and 3.
diff --git a/PullToMakeFlight.podspec b/PullToMakeFlight.podspec index abc1234..def5678 100644 --- a/PullToMakeFlight.podspec +++ b/PullToMakeFlight.podspec @@ -18,7 +18,7 @@ s.source = { :git => "https://github.com/Yalantis/PullToMakeFlight.git", :tag => "1.1" } s.source_files = "PullToMakeFlight/**/*.{h,...
Fix podspec for missed assets
diff --git a/TodUni/app/controllers/application_controller.rb b/TodUni/app/controllers/application_controller.rb index abc1234..def5678 100644 --- a/TodUni/app/controllers/application_controller.rb +++ b/TodUni/app/controllers/application_controller.rb @@ -5,13 +5,21 @@ before_action :set_i18n_locale_from_params ...
Set locale from current signed in user if available
diff --git a/lib/omniauth/failure_endpoint.rb b/lib/omniauth/failure_endpoint.rb index abc1234..def5678 100644 --- a/lib/omniauth/failure_endpoint.rb +++ b/lib/omniauth/failure_endpoint.rb @@ -38,7 +38,7 @@ def origin_query_param return "" unless env['omniauth.origin'] - "&origin=#{CGI.escape(env['omn...
Use Rack::Utils escape instead of CGI as it's included in Rack and may fix the travis build :)
diff --git a/lib/shuttle/deployment/nodejs.rb b/lib/shuttle/deployment/nodejs.rb index abc1234..def5678 100644 --- a/lib/shuttle/deployment/nodejs.rb +++ b/lib/shuttle/deployment/nodejs.rb @@ -1,9 +1,11 @@ module Shuttle class Nodejs < Shuttle::Deploy def setup - error "Please install Node.js first" unless...
Change setup formatting for node.js
diff --git a/active_model_serializers.gemspec b/active_model_serializers.gemspec index abc1234..def5678 100644 --- a/active_model_serializers.gemspec +++ b/active_model_serializers.gemspec @@ -8,7 +8,7 @@ gem.email = ["jose.valim@gmail.com", "wycats@gmail.com"] gem.description = %q{Making it easy to seri...
Change gem.homepage to new location
diff --git a/week-4/leap-years/my_solution.rb b/week-4/leap-years/my_solution.rb index abc1234..def5678 100644 --- a/week-4/leap-years/my_solution.rb +++ b/week-4/leap-years/my_solution.rb @@ -1,6 +1,6 @@ # Leap Years -# I worked on this challenge [by myself, with: ]. +# I worked on this challenge with: Samantha Holm...
Add pair's name to leap year solution file
diff --git a/app/file_handlers/mileage_update_event_loader.rb b/app/file_handlers/mileage_update_event_loader.rb index abc1234..def5678 100644 --- a/app/file_handlers/mileage_update_event_loader.rb +++ b/app/file_handlers/mileage_update_event_loader.rb @@ -1,31 +1,31 @@ #------------------------------------------------...
Move generic handlers to transit
diff --git a/Casks/indigo.rb b/Casks/indigo.rb index abc1234..def5678 100644 --- a/Casks/indigo.rb +++ b/Casks/indigo.rb @@ -0,0 +1,9 @@+class Indigo < Cask + url 'http://cloud.goprism.com/download/Indigo.dmg' + homepage 'http://www.perceptiveautomation.com/indigo/index.html' + version 'latest' + no_checksum + ins...
Add Cask for Indigo latest
diff --git a/FreeStreamer.podspec b/FreeStreamer.podspec index abc1234..def5678 100644 --- a/FreeStreamer.podspec +++ b/FreeStreamer.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'FreeStreamer' - s.version = '1.5.3' + s.version = '1.5.2' s.license =...
Revert "Bump the version to 1.5.3." This reverts commit 8130823fb019b497a524eb18572e129cf0179615.
diff --git a/spec/controllers/pages_controller_spec.rb b/spec/controllers/pages_controller_spec.rb index abc1234..def5678 100644 --- a/spec/controllers/pages_controller_spec.rb +++ b/spec/controllers/pages_controller_spec.rb @@ -5,7 +5,7 @@ describe "GET 'index'" do it "returns http success" do get 'index...
Fix a deprecation warning, only 1 left...but bed time.
diff --git a/spec/controllers/users_controller_spec.rb b/spec/controllers/users_controller_spec.rb index abc1234..def5678 100644 --- a/spec/controllers/users_controller_spec.rb +++ b/spec/controllers/users_controller_spec.rb @@ -1,5 +1,37 @@ require 'rails_helper' RSpec.describe UsersController, type: :controller do...
Add spec for new and create
diff --git a/spec/baby_squeel_spec.rb b/spec/baby_squeel_spec.rb index abc1234..def5678 100644 --- a/spec/baby_squeel_spec.rb +++ b/spec/baby_squeel_spec.rb @@ -6,6 +6,10 @@ expect(BabySqueel[Post]).to be_a(BabySqueel::Relation) end + it 'accepts an Arel::Table' do + expect(BabySqueel[Post.arel_tab...
Add missing test for BabySqueel.[] with an Arel::Table
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index abc1234..def5678 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -0,0 +1,18 @@+require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') + +describe User do + + before(:all) do + @user = FactoryGirl.create(:use...
Add tests for patched User
diff --git a/spec/yelp/client_spec.rb b/spec/yelp/client_spec.rb index abc1234..def5678 100644 --- a/spec/yelp/client_spec.rb +++ b/spec/yelp/client_spec.rb @@ -1,16 +1,19 @@ require 'yelp' describe Yelp::Client do + let(:keys) { Hash[consumer_key: 'abc', + consumer_secret: 'def', + ...
Refactor client spec to prevent reused code
diff --git a/db/migrate/20180625081911_create_album_identities.rb b/db/migrate/20180625081911_create_album_identities.rb index abc1234..def5678 100644 --- a/db/migrate/20180625081911_create_album_identities.rb +++ b/db/migrate/20180625081911_create_album_identities.rb @@ -0,0 +1,19 @@+# frozen_string_literal: true + +c...
Add migration: Create album_identities table
diff --git a/spec/factories/organizations.rb b/spec/factories/organizations.rb index abc1234..def5678 100644 --- a/spec/factories/organizations.rb +++ b/spec/factories/organizations.rb @@ -12,6 +12,7 @@ organization_type { OrganizationType.find_by(:class_name => 'TransitOperator') rescue Rails.logger.info "ERROR: N...
[TTPLAT-1117] Add legal name to organization factories.
diff --git a/spec/models/stewardship_spec.rb b/spec/models/stewardship_spec.rb index abc1234..def5678 100644 --- a/spec/models/stewardship_spec.rb +++ b/spec/models/stewardship_spec.rb @@ -2,6 +2,7 @@ # t.integer "user_id" # t.integer "race_id" +# t.integer "level" RSpec.describe Stewardship, type: :mode...
Add level to comment schema in stewardship spec.
diff --git a/spec/wait_spec.rb b/spec/wait_spec.rb index abc1234..def5678 100644 --- a/spec/wait_spec.rb +++ b/spec/wait_spec.rb @@ -3,26 +3,49 @@ describe Watir::Wait do describe "#until" do - it "waits until the block returns true" - it "times out" + it "waits until the block returns true" do + pen...
Work around RSpec + 1.9.2 issue with pending specs.
diff --git a/app/models/budget.rb b/app/models/budget.rb index abc1234..def5678 100644 --- a/app/models/budget.rb +++ b/app/models/budget.rb @@ -20,7 +20,7 @@ def initialize_additional_applicant_income return unless grant.people.size > 2 - self.other_household_income ||= grant.people.slice(2..-1).map(&:curr...
Fix build failure with missing to_a.
diff --git a/app/models/course.rb b/app/models/course.rb index abc1234..def5678 100644 --- a/app/models/course.rb +++ b/app/models/course.rb @@ -1,5 +1,7 @@ class Course < ActiveRecord::Base attr_accessible :description, :logo, :title + + acts_as_list :scope => :club validates :title, :presence => { :mes...
Add acts_as_list for Course Model Update the Course model to acts_as_list.
diff --git a/app/models/domain.rb b/app/models/domain.rb index abc1234..def5678 100644 --- a/app/models/domain.rb +++ b/app/models/domain.rb @@ -15,9 +15,9 @@ begin doc = RestClient::Resource.new("http://#{domain_name}", verify_ssl: OpenSSL::SSL::VERIFY_NONE).get header = Nokogiri::HTML(doc).at("html ...
Handle missing head in html
diff --git a/agent/bosh_agent.gemspec b/agent/bosh_agent.gemspec index abc1234..def5678 100644 --- a/agent/bosh_agent.gemspec +++ b/agent/bosh_agent.gemspec @@ -0,0 +1,55 @@+ $:.unshift(File.join(File.dirname(__FILE__), 'lib')) + +require 'agent/version' + +Gem::Specification.new do |s| + s.name = 'bosh_agent' + s.su...
Add gemspec for bosh agent. This does not replace the Gemfile yet due to some remaining issues with dependency selection by platform. I plan to use it to build the gem and vendor it in the micro repo. Change-Id: I05f72e0063df20dbd6e88ba9dad5fa2c10b5c836