diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/test/functional/home_controller_test.rb b/test/functional/home_controller_test.rb index abc1234..def5678 100644 --- a/test/functional/home_controller_test.rb +++ b/test/functional/home_controller_test.rb @@ -1,9 +1,5 @@ require 'test_helper' class HomeControllerTest < ActionController::TestCase - test ...
Make tests pass the easy way
diff --git a/metadata.rb b/metadata.rb index abc1234..def5678 100644 --- a/metadata.rb +++ b/metadata.rb @@ -4,4 +4,4 @@ license "Apache 2.0" description "A cookbook used to set up a Flume agent." long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) -version "1.0" +v...
Update to 1.1 for the next release
diff --git a/metadata.rb b/metadata.rb index abc1234..def5678 100644 --- a/metadata.rb +++ b/metadata.rb @@ -1,7 +1,7 @@ name 'cutlery' -maintainer "Peter Donald" -maintainer_email "peter@realityforge.org" -license "Apache 2.0" -description "Cutlery is a cookbook containing a collection ...
Use ' rather than '
diff --git a/metadata.rb b/metadata.rb index abc1234..def5678 100644 --- a/metadata.rb +++ b/metadata.rb @@ -1,7 +1,7 @@ name 'consul' maintainer 'John Bellone' maintainer_email 'jbellone@bloomberg.net' -license 'Apache 2.0' +license 'Apache v2.0' description 'Installs/Config...
Apply more strict support for operating systems.
diff --git a/test/test_environment.rb b/test/test_environment.rb index abc1234..def5678 100644 --- a/test/test_environment.rb +++ b/test/test_environment.rb @@ -1,7 +1,6 @@ require_relative 'test_helper' class NoodlesEnvironmentTest < Minitest::Test - include Rack::Test::Methods def test_development asser...
Test Environment doesn't need Test::Rack::Methods module.
diff --git a/scripts/pair_somatic_bams.rb b/scripts/pair_somatic_bams.rb index abc1234..def5678 100644 --- a/scripts/pair_somatic_bams.rb +++ b/scripts/pair_somatic_bams.rb @@ -0,0 +1,42 @@+#! /usr/bin/env ruby +# +# Create a list of paired somatic files taking the base path as input. The +# assumption is that base fil...
Move find into pair script
diff --git a/db/migrate/20141110141523_remove_autocomplete_override_duplicates.rb b/db/migrate/20141110141523_remove_autocomplete_override_duplicates.rb index abc1234..def5678 100644 --- a/db/migrate/20141110141523_remove_autocomplete_override_duplicates.rb +++ b/db/migrate/20141110141523_remove_autocomplete_override_d...
Correct migration to find all duplicate records and only remove the duplicate with no value
diff --git a/app/helpers/statistics_helper.rb b/app/helpers/statistics_helper.rb index abc1234..def5678 100644 --- a/app/helpers/statistics_helper.rb +++ b/app/helpers/statistics_helper.rb @@ -1,15 +1,15 @@ module StatisticsHelper def mttr_by_month - stock_chart mttr_by_month_charts_path, basic_opts('Mean Time ...
Update for minutes and number on x-axis, but better this time.
diff --git a/ObjectiveCloudant.podspec b/ObjectiveCloudant.podspec index abc1234..def5678 100644 --- a/ObjectiveCloudant.podspec +++ b/ObjectiveCloudant.podspec @@ -14,7 +14,7 @@ DESC - s.homepage = "https://cloudant.com" + s.homepage = "https://github.com/cloudant/objective-cloudant" s.li...
Change homepage attribute of podspec Change homepage attribute of podspec from cloudant.com to the Github Repo. Fixes #28
diff --git a/lib/generators/jasmine/install/templates/spec/javascripts/support/jasmine_helper.rb b/lib/generators/jasmine/install/templates/spec/javascripts/support/jasmine_helper.rb index abc1234..def5678 100644 --- a/lib/generators/jasmine/install/templates/spec/javascripts/support/jasmine_helper.rb +++ b/lib/generat...
Fix config option typo in jasmine helper * The config option contains an extra underscore.
diff --git a/test/integration/sidebar_test.rb b/test/integration/sidebar_test.rb index abc1234..def5678 100644 --- a/test/integration/sidebar_test.rb +++ b/test/integration/sidebar_test.rb @@ -4,7 +4,7 @@ setup do setup_groonga_database @post = create(:post, :whatever, body: <<~EOS.encode(crlf_newline: true...
Use markdown for test contents
diff --git a/BCDataStream.podspec b/BCDataStream.podspec index abc1234..def5678 100644 --- a/BCDataStream.podspec +++ b/BCDataStream.podspec @@ -2,10 +2,10 @@ s.name = "BCDataStream" s.version = "0.1.0" s.summary = "A pair of utility classes for decoding and encoding binary data strea...
Add homepage and GitHub source.
diff --git a/Casks/light-table.rb b/Casks/light-table.rb index abc1234..def5678 100644 --- a/Casks/light-table.rb +++ b/Casks/light-table.rb @@ -1,7 +1,7 @@ class LightTable < Cask - url 'https://d35ac8ww5dfjyg.cloudfront.net/playground/bins/0.6.0/LightTableMac.zip' + url 'https://d35ac8ww5dfjyg.cloudfront.net/playgr...
Update Light Table to 0.6.2
diff --git a/Casks/openvanilla.rb b/Casks/openvanilla.rb index abc1234..def5678 100644 --- a/Casks/openvanilla.rb +++ b/Casks/openvanilla.rb @@ -4,7 +4,7 @@ url "https://app.openvanilla.org/file/openvanilla/OpenVanilla-Installer-Mac-#{version}.zip" name 'OpenVanilla' - homepage 'http://openvanilla.org/' + home...
Fix homepage to use SSL in OpenVanilla Cask The HTTP URL is already getting redirected to HTTPS. Using the HTTPS URL directly makes it more secure and saves a HTTP round-trip.
diff --git a/console-test.rb b/console-test.rb index abc1234..def5678 100644 --- a/console-test.rb +++ b/console-test.rb @@ -0,0 +1,50 @@+p1 = Player.create(name: "kieran") +p2 = Player.create(name: "pragya") +p3 = Player.create(name: "mitch") +p4 = Player.create(name: "mikee") + +# Start a new game - controller action...
Add script for console testing
diff --git a/spec/integration/serializable_spec.rb b/spec/integration/serializable_spec.rb index abc1234..def5678 100644 --- a/spec/integration/serializable_spec.rb +++ b/spec/integration/serializable_spec.rb @@ -0,0 +1,19 @@+# encoding: utf-8 + +require 'spec_helper' + +class Serializable + include Memoizable + def ...
Add integration test for serialization with Marshal
diff --git a/spec/session/remote_mechanize_spec.rb b/spec/session/remote_mechanize_spec.rb index abc1234..def5678 100644 --- a/spec/session/remote_mechanize_spec.rb +++ b/spec/session/remote_mechanize_spec.rb @@ -35,7 +35,7 @@ end end - # Pending: Still 12 failing tests here: + # Pending: Still 12 fa...
Add comment about the number of specs that fail in the pending tests
diff --git a/Casks/elasticwolf.rb b/Casks/elasticwolf.rb index abc1234..def5678 100644 --- a/Casks/elasticwolf.rb +++ b/Casks/elasticwolf.rb @@ -2,6 +2,7 @@ version '5.1.6' sha256 '32eccff8e2cff1187fbf4b8c614e61056ae9c371ebdba3174e021b413b973542' + # amazonaws.com/elasticwolf was verified as official when first...
Fix `url` stanza comment for AWS ElasticWolf Client Console.
diff --git a/Casks/spotifybeta.rb b/Casks/spotifybeta.rb index abc1234..def5678 100644 --- a/Casks/spotifybeta.rb +++ b/Casks/spotifybeta.rb @@ -1,6 +1,6 @@ cask :v1 => 'spotifybeta' do - version '1.0.0.1093.g2eba9b4b-1679' - sha256 'ac5e99bfb448d3f4ee46b1a95bd428c5d8f27e193b44895754ac4150a0f56a60' + version '1.0.0....
Update SpotifyBeta.app to latest version.
diff --git a/spec/command-t/vim_spec.rb b/spec/command-t/vim_spec.rb index abc1234..def5678 100644 --- a/spec/command-t/vim_spec.rb +++ b/spec/command-t/vim_spec.rb @@ -0,0 +1,15 @@+# Copyright 2014 Greg Hurrell. All rights reserved. +# Licensed under the terms of the BSD 2-clause license. + +require 'spec_helper' +req...
Add a spec for .escape_for_single_quotes
diff --git a/spec/model/formula_spec.rb b/spec/model/formula_spec.rb index abc1234..def5678 100644 --- a/spec/model/formula_spec.rb +++ b/spec/model/formula_spec.rb @@ -8,7 +8,7 @@ atoms :a, :b, :c, :d, :e let :f do - FactoryGirl.create(:property, name: 'Escaped \(\sigma\)-math').atom + FactoryGirl.create(...
Update spec for new delimiter style
diff --git a/spec/models/player_spec.rb b/spec/models/player_spec.rb index abc1234..def5678 100644 --- a/spec/models/player_spec.rb +++ b/spec/models/player_spec.rb @@ -41,4 +41,8 @@ it "should have default plus minus of zero" do @new_player.plus_minus.should == 0 end + + it "test failure" do + fail "make...
Make sure CI fails when it's supposed to
diff --git a/app/models/idea.rb b/app/models/idea.rb index abc1234..def5678 100644 --- a/app/models/idea.rb +++ b/app/models/idea.rb @@ -20,4 +20,18 @@ def tag_names tags.map{ |tag| tag.name }.sort.join(', ') end + + def add_vote(vote) + vote.lock! + self.lock! + self.rating += vote.value + vote ...
Add Idea vote counting methods Add methods to adjust the Idea's current rating by the vote's value. Both methods will work for positive and negative votes.
diff --git a/app/models/plot.rb b/app/models/plot.rb index abc1234..def5678 100644 --- a/app/models/plot.rb +++ b/app/models/plot.rb @@ -1,9 +1,9 @@ class Plot < ApplicationRecord validates :plot_id, presence: true - validates :latitude, presence: true, numericality: { greater_than: 0 } - validates :longitude, pre...
Undo validation changes, it broke too many tests and should be a different issue at this point
diff --git a/app/models/step.rb b/app/models/step.rb index abc1234..def5678 100644 --- a/app/models/step.rb +++ b/app/models/step.rb @@ -37,7 +37,7 @@ def batch_link_report begin @batch_link_report ||= Services.link_checker_api.get_batch(batch_link_report_id) - rescue GdsApi::HTTPServerError + rescu...
Handle missing batch link reports This commit adds an exception handler for 404 errors from link-checker-api. This can happen if the batch link report has been removed, which happens autmoatically on a schedule to prevent build-up of old reports. The app should handle this case.
diff --git a/app/models/user.rb b/app/models/user.rb index abc1234..def5678 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -3,7 +3,7 @@ devise :omniauthable,:omniauth_providers => [:nyulibraries] has_many :reservations, :dependent => :destroy - scope :non_admin, -> { where("admin_roles_mask = 0") }...
Change non_admin scope to include null value in admin_roles_mask
diff --git a/app/models/user.rb b/app/models/user.rb index abc1234..def5678 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -10,7 +10,7 @@ def self.guest create( - name: "#{I18n.t('users.guest_prefix')} #{rand 1e7}", + name: "#{I18n.t('users.guest_prefix')}#{rand 1e5}", guest: true...
Make guest name easier to read
diff --git a/lib/haml_coffee_assets/action_view/template_handler.rb b/lib/haml_coffee_assets/action_view/template_handler.rb index abc1234..def5678 100644 --- a/lib/haml_coffee_assets/action_view/template_handler.rb +++ b/lib/haml_coffee_assets/action_view/template_handler.rb @@ -4,26 +4,9 @@ def self.call(templa...
Include the real hamlc helpers when evaluating server-side templates.
diff --git a/app/models/group.rb b/app/models/group.rb index abc1234..def5678 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -2,10 +2,11 @@ has_many :users has_many :requests - validates :street, :city, :number, :zip_code, presence: true + validates :primary_number, :street_name, :street_suffix,...
Change the Group model to conform to the information returned by the Smarty Street API.
diff --git a/app/models/skill.rb b/app/models/skill.rb index abc1234..def5678 100644 --- a/app/models/skill.rb +++ b/app/models/skill.rb @@ -35,6 +35,10 @@ end end + def expiration_date + Time.at(self.expiration_time).strftime("%Y/%m/%d %H:%M:%S") + end + def time_remaining_to_s(sec_remaining) "Ti...
Add expiration_date method to format date for jquery countdown
diff --git a/spec/factories/comments.rb b/spec/factories/comments.rb index abc1234..def5678 100644 --- a/spec/factories/comments.rb +++ b/spec/factories/comments.rb @@ -1,7 +1,7 @@ FactoryGirl.define do factory :comment do - author 'test' - content 'Comment about the project' + author { Faker::Lorem.word } ...
Use faker for comment author and content
diff --git a/spec/pling/gateway_spec.rb b/spec/pling/gateway_spec.rb index abc1234..def5678 100644 --- a/spec/pling/gateway_spec.rb +++ b/spec/pling/gateway_spec.rb @@ -36,8 +36,8 @@ end it 'should raise an Pling::NoGatewayFound error if no gateway was found' do - device.stub(:type => :random) - ex...
Check for Pling::NoGatewayFound error message in specs
diff --git a/lib/tasks/taxonomy/export_base_paths.rake b/lib/tasks/taxonomy/export_base_paths.rake index abc1234..def5678 100644 --- a/lib/tasks/taxonomy/export_base_paths.rake +++ b/lib/tasks/taxonomy/export_base_paths.rake @@ -0,0 +1,40 @@+require 'csv' + +namespace :taxonomy do + desc <<-DESC + Download content ...
Add rake task to export content base paths from a taxonomy This task simplifies the process of retrieving a list of all content tagged to a particular taxonomy. This is useful in a number of ways, but more immediately it's needed as the starting point for the data import script in the Navigation Prototype.
diff --git a/lib/engineyard-serverside-adapter/version.rb b/lib/engineyard-serverside-adapter/version.rb index abc1234..def5678 100644 --- a/lib/engineyard-serverside-adapter/version.rb +++ b/lib/engineyard-serverside-adapter/version.rb @@ -1,7 +1,7 @@ module EY module Serverside class Adapter - VERSION = ...
Add .pre for next release
diff --git a/lib/vagrant/action/builtin/before_trigger.rb b/lib/vagrant/action/builtin/before_trigger.rb index abc1234..def5678 100644 --- a/lib/vagrant/action/builtin/before_trigger.rb +++ b/lib/vagrant/action/builtin/before_trigger.rb @@ -1,26 +1,32 @@ module Vagrant module Action module Builtin - # This...
Update before trigger action to be generic trigger action
diff --git a/lib/ifin24.rb b/lib/ifin24.rb index abc1234..def5678 100644 --- a/lib/ifin24.rb +++ b/lib/ifin24.rb @@ -1,7 +1,4 @@ module Ifin24 - # The current version of ifin24. - # Do not change the value by hand; it will be updated automatically by the gem release script. - VERSION = "0.0.1" autoload :Client,...
Remove version from main module.
diff --git a/lib/json_test_data/data_structures/helpers/number_helper.rb b/lib/json_test_data/data_structures/helpers/number_helper.rb index abc1234..def5678 100644 --- a/lib/json_test_data/data_structures/helpers/number_helper.rb +++ b/lib/json_test_data/data_structures/helpers/number_helper.rb @@ -11,7 +11,6 @@ ...
Make spacing more consistent between methods
diff --git a/test/controllers/admin_optional_modules_controller_test.rb b/test/controllers/admin_optional_modules_controller_test.rb index abc1234..def5678 100644 --- a/test/controllers/admin_optional_modules_controller_test.rb +++ b/test/controllers/admin_optional_modules_controller_test.rb @@ -0,0 +1,73 @@+require 't...
Add ActiveAdmin tests for OptionalModules controller
diff --git a/03_Pine_Ruby_Exercises/numbers.rb b/03_Pine_Ruby_Exercises/numbers.rb index abc1234..def5678 100644 --- a/03_Pine_Ruby_Exercises/numbers.rb +++ b/03_Pine_Ruby_Exercises/numbers.rb @@ -0,0 +1,13 @@+# @Author: Aswin Mohan <aswinmohan> +# @Date: 2016-09-06T06:12:04+05:30 +# @Last modified by: aswinmohan +...
Complete Exercises in Numbers Section of Pine
diff --git a/Ruby/sorting/selection.rb b/Ruby/sorting/selection.rb index abc1234..def5678 100644 --- a/Ruby/sorting/selection.rb +++ b/Ruby/sorting/selection.rb @@ -1,7 +1,7 @@ # Selection handles selection sort in ascendant order. # It provides two methods, one for sorting the array in parameter and # the other to r...
Use <=> operator for comparison instead of <
diff --git a/MZAppearance.podspec b/MZAppearance.podspec index abc1234..def5678 100644 --- a/MZAppearance.podspec +++ b/MZAppearance.podspec @@ -1,14 +1,16 @@ Pod::Spec.new do |s| s.name = 'MZAppearance' - s.version = '1.1.4' + s.version = '1.1.6' s.license = 'MIT' s.summary = 'UIAppearance proxy for...
Add tvos as deployment target
diff --git a/spec/integration/dry_monads_do_spec.rb b/spec/integration/dry_monads_do_spec.rb index abc1234..def5678 100644 --- a/spec/integration/dry_monads_do_spec.rb +++ b/spec/integration/dry_monads_do_spec.rb @@ -0,0 +1,49 @@+require "dry/monads/result" +require "dry/monads/do" +require "dry/matcher/result_matcher"...
Add spec to confirm integration with dry-monads Do notation
diff --git a/flipper-redis.gemspec b/flipper-redis.gemspec index abc1234..def5678 100644 --- a/flipper-redis.gemspec +++ b/flipper-redis.gemspec @@ -20,5 +20,5 @@ gem.version = Flipper::VERSION gem.add_dependency 'flipper', "~> #{Flipper::VERSION}" - gem.add_dependency 'redis', '>= 2.2', '< 4.0.0' + gem....
Allow to use redis-adapter with redis 4.0.x
diff --git a/gem_publisher.gemspec b/gem_publisher.gemspec index abc1234..def5678 100644 --- a/gem_publisher.gemspec +++ b/gem_publisher.gemspec @@ -6,6 +6,7 @@ s.summary = 'Automatically build, tag, and push gems' s.description = 'Automatically build, tag, and push a gem when its version has been ...
Add licence information to the Gem specification.
diff --git a/test/models/optional_modules/social_connects/social_provider_test.rb b/test/models/optional_modules/social_connects/social_provider_test.rb index abc1234..def5678 100644 --- a/test/models/optional_modules/social_connects/social_provider_test.rb +++ b/test/models/optional_modules/social_connects/social_prov...
Add tests for SocialProvider validations rules
diff --git a/lib/generators/backbone/collection/collection_generator.rb b/lib/generators/backbone/collection/collection_generator.rb index abc1234..def5678 100644 --- a/lib/generators/backbone/collection/collection_generator.rb +++ b/lib/generators/backbone/collection/collection_generator.rb @@ -1,21 +1,21 @@ module Ba...
Create model files before collection files
diff --git a/db/migrate/20171107164028_add_common_id_to_subscriptions_and_subscription_payments.rb b/db/migrate/20171107164028_add_common_id_to_subscriptions_and_subscription_payments.rb index abc1234..def5678 100644 --- a/db/migrate/20171107164028_add_common_id_to_subscriptions_and_subscription_payments.rb +++ b/db/mi...
Use common_id uuid instead gateway_id bigint
diff --git a/lib/chef-dk/skeletons/code_generator/files/default/repo/cookbooks/example/attributes/default.rb b/lib/chef-dk/skeletons/code_generator/files/default/repo/cookbooks/example/attributes/default.rb index abc1234..def5678 100644 --- a/lib/chef-dk/skeletons/code_generator/files/default/repo/cookbooks/example/att...
Fix link in example cookbook to point to the correct docs site URL This page has moved. Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
diff --git a/simple_flash.gemspec b/simple_flash.gemspec index abc1234..def5678 100644 --- a/simple_flash.gemspec +++ b/simple_flash.gemspec @@ -1,7 +1,7 @@ # coding: utf-8 -lib = File.expand_path('../lib', __FILE__) +lib = File.expand_path("../lib", __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) -r...
Fix .gemspec to use Dir instead of git
diff --git a/sequel/benchmarks/bm_sequel_scope_all_with_default_scope.rb b/sequel/benchmarks/bm_sequel_scope_all_with_default_scope.rb index abc1234..def5678 100644 --- a/sequel/benchmarks/bm_sequel_scope_all_with_default_scope.rb +++ b/sequel/benchmarks/bm_sequel_scope_all_with_default_scope.rb @@ -0,0 +1,46 @@+requir...
Add sequel scope all with default scope bench
diff --git a/Casks/dwarf-fortress.rb b/Casks/dwarf-fortress.rb index abc1234..def5678 100644 --- a/Casks/dwarf-fortress.rb +++ b/Casks/dwarf-fortress.rb @@ -0,0 +1,10 @@+class DwarfFortress < Cask + version '0.40.01' + sha256 'c4f729f094790671b1fde995c02c5d547d652d87790785b13a6cdc9f35dec6be' + + url 'http://www.bay1...
Add Dwarf Fortress, version 0.40.01
diff --git a/Casks/royal-tsx-beta.rb b/Casks/royal-tsx-beta.rb index abc1234..def5678 100644 --- a/Casks/royal-tsx-beta.rb +++ b/Casks/royal-tsx-beta.rb @@ -1,10 +1,11 @@ cask 'royal-tsx-beta' do - version '2.2.3.1000' - sha256 '601ada5103428f2bca12941e68be90c5089c4c7b4e2f5a5eef62273f256df19a' + version '3.0.0.3' + ...
Update Royal TSX Beta to 3.0.0.3
diff --git a/Casks/seafile-client.rb b/Casks/seafile-client.rb index abc1234..def5678 100644 --- a/Casks/seafile-client.rb +++ b/Casks/seafile-client.rb @@ -1,6 +1,6 @@ cask 'seafile-client' do - version '4.4.2' - sha256 'b6f821002f6466ff6a0ec6b6743c484fb8edb38e8052cbca8003d27aea4cbcf7' + version '5.0.3' + sha256 '...
Update Seafile client to 5.0.3
diff --git a/spec/controllers/peoplefinder/api/people_controller_spec.rb b/spec/controllers/peoplefinder/api/people_controller_spec.rb index abc1234..def5678 100644 --- a/spec/controllers/peoplefinder/api/people_controller_spec.rb +++ b/spec/controllers/peoplefinder/api/people_controller_spec.rb @@ -36,7 +36,7 @@ ...
Make JSON equality test robust It's hash equality that matters, not the (unreliable) ordering of the fields in the JSON.
diff --git a/spec/unit/veritas/relation/header/class_methods/new_spec.rb b/spec/unit/veritas/relation/header/class_methods/new_spec.rb index abc1234..def5678 100644 --- a/spec/unit/veritas/relation/header/class_methods/new_spec.rb +++ b/spec/unit/veritas/relation/header/class_methods/new_spec.rb @@ -3,8 +3,6 @@ require...
Fix Header.new spec to kill mutations
diff --git a/coinbase-official.podspec b/coinbase-official.podspec index abc1234..def5678 100644 --- a/coinbase-official.podspec +++ b/coinbase-official.podspec @@ -14,17 +14,16 @@ s.platform = :ios, '7.0' s.requires_arc = true - s.source_files = 'Pod/Classes/CoinbaseDefines.[hm]' s.resources = 'Pod/Asse...
Update podspec to remove conflicting files
diff --git a/search.rb b/search.rb index abc1234..def5678 100644 --- a/search.rb +++ b/search.rb @@ -1,17 +1,45 @@-puts """ -<?xml version='1.0'?> -<items> - <item uid='alpha' autocomplete='alpha'> - <title>Alpha</title> +require 'rubygems' +require 'net/http' +require 'json' + +def generate_xml(workflows) + ...
Create the XML list dynamically
diff --git a/config/initializers/cors.rb b/config/initializers/cors.rb index abc1234..def5678 100644 --- a/config/initializers/cors.rb +++ b/config/initializers/cors.rb @@ -15,4 +15,13 @@ expose: ['access-token', 'expiry', 'token-type', 'uid', 'client'], methods: [:get, :post, :delete, :patch] end + + ...
Add CORS confing to allow any origin to GET and POST to /evetns/* resources
diff --git a/fluent-plugin-ses.gemspec b/fluent-plugin-ses.gemspec index abc1234..def5678 100644 --- a/fluent-plugin-ses.gemspec +++ b/fluent-plugin-ses.gemspec @@ -4,7 +4,7 @@ Gem::Specification.new do |gem| gem.name = "fluent-plugin-ses" - gem.version = "0.0.2" + gem.version = "0.0.3" g...
Remove ltsv from runtime dependency
diff --git a/upcoming.gemspec b/upcoming.gemspec index abc1234..def5678 100644 --- a/upcoming.gemspec +++ b/upcoming.gemspec @@ -13,7 +13,7 @@ s.required_ruby_version = '>= 2.2.2' - s.add_dependency 'activesupport', '~> 5.0' + s.add_dependency 'activesupport', '>= 5', '< 7' %w(rake minitest-given).each do |d...
Update activesupport requirement from ~> 5.0 to >= 5, < 7 Updates the requirements on [activesupport](https://github.com/rails/rails) to permit the latest version. - [Release notes](https://github.com/rails/rails/releases) - [Changelog](https://github.com/rails/rails/blob/v6.0.0/activesupport/CHANGELOG.md) - [Commits]...
diff --git a/app/models/option.rb b/app/models/option.rb index abc1234..def5678 100644 --- a/app/models/option.rb +++ b/app/models/option.rb @@ -50,7 +50,6 @@ # "system_type", "system_kind", "threat_type", - "verify_frequency", "verify_frequency" ] end
Remove duplicate 'verify_frequency' from Option::ROLES [story:41797815]
diff --git a/Library/Formula/o-make.rb b/Library/Formula/o-make.rb index abc1234..def5678 100644 --- a/Library/Formula/o-make.rb +++ b/Library/Formula/o-make.rb @@ -0,0 +1,34 @@+require 'formula' + +class OMake <Formula + url 'http://omake.metaprl.org/downloads/omake-0.9.8.5-3.tar.gz' + homepage 'http://omake.metaprl...
Add OMake (OCaml build system) formula Signed-off-by: Adam Vandenberg <flangy@gmail.com> * Renamed to match naming conventions
diff --git a/app/models/stores.rb b/app/models/stores.rb index abc1234..def5678 100644 --- a/app/models/stores.rb +++ b/app/models/stores.rb @@ -17,5 +17,7 @@ def self.reload event_types.reload + data_collectors.reload + study_locations.reload end end
Bring Stores.reload up to date.
diff --git a/app/models/widget.rb b/app/models/widget.rb index abc1234..def5678 100644 --- a/app/models/widget.rb +++ b/app/models/widget.rb @@ -37,6 +37,7 @@ end def api_key + self.user.save self.user.api_key end
Create api token for existing users
diff --git a/keyed_archive.gemspec b/keyed_archive.gemspec index abc1234..def5678 100644 --- a/keyed_archive.gemspec +++ b/keyed_archive.gemspec @@ -8,8 +8,7 @@ spec.version = KeyedArchive::VERSION spec.authors = ["Paul Young"] spec.email = ["paulyoungonline@gmail.com"] - spec.summary ...
Update gemspec summary. Remove description.
diff --git a/lib/facter/iis_version.rb b/lib/facter/iis_version.rb index abc1234..def5678 100644 --- a/lib/facter/iis_version.rb +++ b/lib/facter/iis_version.rb @@ -1,7 +1,7 @@ require 'facter/util/registryiis' Facter.add(:iis_version) do - confine kernel: :windows + confine :kernel => :windows setcode do ...
Make the fact work on RHEL6 systems In our combined Windows/Linux environment, running puppet 3.8.7, we got this error: Error loading fact /var/lib/puppet/lib/facter/iis_version.rb: /var/lib/puppet/lib/facter/iis_version.rb:2: syntax error, unexpected ':', expecting kEND confine kernel: :windows Using the 'fo...
diff --git a/lib/houston/connection.rb b/lib/houston/connection.rb index abc1234..def5678 100644 --- a/lib/houston/connection.rb +++ b/lib/houston/connection.rb @@ -9,7 +9,7 @@ return unless block_given? [:certificate, :passphrase, :host, :port].each do |option| - raise ArgumentError, "Missi...
Fix check for required options
diff --git a/core/db/migrate/20140508151342_change_spree_price_amount_precision.rb b/core/db/migrate/20140508151342_change_spree_price_amount_precision.rb index abc1234..def5678 100644 --- a/core/db/migrate/20140508151342_change_spree_price_amount_precision.rb +++ b/core/db/migrate/20140508151342_change_spree_price_amo...
Drop not null constraint for amount in spree line items
diff --git a/UIColor_Hex_Swift.podspec b/UIColor_Hex_Swift.podspec index abc1234..def5678 100644 --- a/UIColor_Hex_Swift.podspec +++ b/UIColor_Hex_Swift.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "UIColor_Hex_Swift" - s.version = "1.0" + s.version = "1.1" s.summary = "Convenien...
Update pod spec to 1.1
diff --git a/lib/authentication.rb b/lib/authentication.rb index abc1234..def5678 100644 --- a/lib/authentication.rb +++ b/lib/authentication.rb @@ -13,7 +13,7 @@ def login_required unless logged_in? - flash[:error] = "You must first log in or sign up before accessing this page." + flash[:warning] ...
Use the correct flash (warning)
diff --git a/lib/capapi/model_helpers.rb b/lib/capapi/model_helpers.rb index abc1234..def5678 100644 --- a/lib/capapi/model_helpers.rb +++ b/lib/capapi/model_helpers.rb @@ -19,5 +19,33 @@ capapi_id = nil end end + + def self.to_model_attributes capapi_obj + case capapi_obj + when Capapi...
Add a transform between capapi data and h2o
diff --git a/activerecord-where-any-of.gemspec b/activerecord-where-any-of.gemspec index abc1234..def5678 100644 --- a/activerecord-where-any-of.gemspec +++ b/activerecord-where-any-of.gemspec @@ -1,17 +1,18 @@ Gem::Specification.new do |s| - s.name = "activerecord-where-any-of" - s.version = "1.0.4" - s.date = "201...
Update gemspec to include license. The gemspec needs to include the license file so license scanners will see that this gem is licensed under the MIT License.
diff --git a/lib/dims/dimension.rb b/lib/dims/dimension.rb index abc1234..def5678 100644 --- a/lib/dims/dimension.rb +++ b/lib/dims/dimension.rb @@ -10,11 +10,6 @@ @precision = precision @original_value = value @value = fix_value(value, precision) - end - - def value - modif...
Remove 'value' method to use the 'attr_reader' version
diff --git a/lib/emcee/document.rb b/lib/emcee/document.rb index abc1234..def5678 100644 --- a/lib/emcee/document.rb +++ b/lib/emcee/document.rb @@ -15,8 +15,9 @@ end def to_s - body = @doc.at("body").inner_html.lstrip - unescaped = CGI.unescapeHTML(body) + body = @doc.at("body") + conten...
Handle converting `@doc` into a string ourselves Use `to_html` on every node, UNLESS it has a ‘selected’ attribute. In that case, use `to_xhtml`.
diff --git a/lib/helpers/logger.rb b/lib/helpers/logger.rb index abc1234..def5678 100644 --- a/lib/helpers/logger.rb +++ b/lib/helpers/logger.rb @@ -5,7 +5,7 @@ end def Logger.log(message, exception = nil) - exception_output = " - #{exception} - #{exception.backtrace}" if exception + exception_output = " -...
Expand logged backtraces across multiple lines, to improve readability
diff --git a/lib/gitlab_git/git_stats.rb b/lib/gitlab_git/git_stats.rb index abc1234..def5678 100644 --- a/lib/gitlab_git/git_stats.rb +++ b/lib/gitlab_git/git_stats.rb @@ -3,15 +3,15 @@ module Gitlab module Git class GitStats - attr_accessor :repo, :ref + attr_accessor :repo, :ref, :timeout - ...
Add ability to configure a operation timeout for git stat
diff --git a/lib/guard/migrate/notify.rb b/lib/guard/migrate/notify.rb index abc1234..def5678 100644 --- a/lib/guard/migrate/notify.rb +++ b/lib/guard/migrate/notify.rb @@ -5,22 +5,28 @@ @result = result end + def notify + ::Guard::Notifier.notify( + message, + :title => "...
Make private methods which should not be accessible to public
diff --git a/config/schedule.rb b/config/schedule.rb index abc1234..def5678 100644 --- a/config/schedule.rb +++ b/config/schedule.rb @@ -18,6 +18,8 @@ # end # Learn more: http://github.com/javan/whenever + +env :PATH, env['PATH'] every :weekday, at: '7am' do rake "epets:admin_email_reminder", output: nil
Set the path in the crontab The whenever gem uses a relative path for the rails runner command but just a `bundle exec rake` for rake tasks. When the crontab is executed the bundle command isn't in the path by default so ensure that it is.
diff --git a/mastermind.rb b/mastermind.rb index abc1234..def5678 100644 --- a/mastermind.rb +++ b/mastermind.rb @@ -1,9 +1,21 @@ #Create a Game class +class Game #Initialize a new game by setting up a board containing a random code + def initialize + end #Create a play method to start the game + def play + end +...
Set up Game and Player classes
diff --git a/app/jobs/update_oncokb.rb b/app/jobs/update_oncokb.rb index abc1234..def5678 100644 --- a/app/jobs/update_oncokb.rb +++ b/app/jobs/update_oncokb.rb @@ -1,5 +1,5 @@ class UpdateOncokb < ApiUpdater - def updater + def create_updater Genome::OnlineUpdaters::Oncokb::Updater.new() end
Fix UpdateOncokb app job to use correct `create_updater` method
diff --git a/app/models/award_emoji.rb b/app/models/award_emoji.rb index abc1234..def5678 100644 --- a/app/models/award_emoji.rb +++ b/app/models/award_emoji.rb @@ -37,8 +37,6 @@ end def expire_etag_cache - return unless awardable.respond_to?(:expire_etag_cache) - - awardable.expire_etag_cache + awardab...
Use `try` instead of `repond_to?` and a method call
diff --git a/app/models/public_body.rb b/app/models/public_body.rb index abc1234..def5678 100644 --- a/app/models/public_body.rb +++ b/app/models/public_body.rb @@ -1,5 +1,49 @@+# XXX move this to somewhere shared +def is_valid_email(addr) + # This is derived from the grammar in RFC2822. + # mailbox = local-part ...
Validate that public body email addresses at least look like email addresses.
diff --git a/lib/patches/string.rb b/lib/patches/string.rb index abc1234..def5678 100644 --- a/lib/patches/string.rb +++ b/lib/patches/string.rb @@ -5,8 +5,7 @@ def shift_times(delay) gsub(TIME) do |time| - new_time = Time.parse(time) + delay - new_time.strftime '%H:%M:%S,%3N' + Subshift::Time.p...
Use Subshift::Time instead of ::Time
diff --git a/lib/pronto/rubocop.rb b/lib/pronto/rubocop.rb index abc1234..def5678 100644 --- a/lib/pronto/rubocop.rb +++ b/lib/pronto/rubocop.rb @@ -21,7 +21,7 @@ end def inspect(patch) - processed_source = ::RuboCop::SourceParser.parse_file(patch.new_file_full_path) + processed_source = ::RuboCop:...
Use RuboCop::ProcessedSource instead of non-existant SourceParser
diff --git a/lib/pub_sub/poller.rb b/lib/pub_sub/poller.rb index abc1234..def5678 100644 --- a/lib/pub_sub/poller.rb +++ b/lib/pub_sub/poller.rb @@ -8,7 +8,7 @@ loop do Breaker.run do poller.poll(config) do |message| - PubSub.logger.debug "PubSub [#{PubSub.config.service_name}, #{qu...
Print more info on receiving messages
diff --git a/test_examples/test_helper.rb b/test_examples/test_helper.rb index abc1234..def5678 100644 --- a/test_examples/test_helper.rb +++ b/test_examples/test_helper.rb @@ -3,8 +3,12 @@ require 'knapsack' if RUBY_VERSION == "1.9.3" - Minitest = MiniTest - Minitest::Test = MiniTest::Unit::TestCase + unless def...
Fix warnings in Ruby 1.9.3 tests
diff --git a/spec/fabricators/evidence_item_fabricator.rb b/spec/fabricators/evidence_item_fabricator.rb index abc1234..def5678 100644 --- a/spec/fabricators/evidence_item_fabricator.rb +++ b/spec/fabricators/evidence_item_fabricator.rb @@ -21,6 +21,7 @@ Fabricator(:disease) do doid { sequence(:doid) { |i| "#{i}" } ...
Add required field display_name to the EvidenceItem fabricator
diff --git a/spec/support/shared_examples/popup_shared.rb b/spec/support/shared_examples/popup_shared.rb index abc1234..def5678 100644 --- a/spec/support/shared_examples/popup_shared.rb +++ b/spec/support/shared_examples/popup_shared.rb @@ -12,11 +12,11 @@ expect(page).to have_selector(selector, :visible => true)...
Modify spec file to reflect the new close link
diff --git a/spec/system/method_precedence_system_spec.rb b/spec/system/method_precedence_system_spec.rb index abc1234..def5678 100644 --- a/spec/system/method_precedence_system_spec.rb +++ b/spec/system/method_precedence_system_spec.rb @@ -45,4 +45,26 @@ expect(render(wc, :rendering_context => rc( :helpers_...
Add (failing) spec for overriding 'needs' methods.
diff --git a/lib/csshttprequest.rb b/lib/csshttprequest.rb index abc1234..def5678 100644 --- a/lib/csshttprequest.rb +++ b/lib/csshttprequest.rb @@ -4,15 +4,13 @@ # License: Apache License 2.0 <http://www.apache.org/licenses/LICENSE-2.0.html> # Copyright (c) 2008, Cameron Walters +require "erb" -require "erb" -req...
Use a class w/ static method instead of a module
diff --git a/lib/exhaust/runner.rb b/lib/exhaust/runner.rb index abc1234..def5678 100644 --- a/lib/exhaust/runner.rb +++ b/lib/exhaust/runner.rb @@ -7,15 +7,18 @@ end def run - while running = ember_server.gets - if running =~ /build successful/i - break + Timeout::timeout(30) do + ...
Add a timeout for Ember/Rails boot time
diff --git a/lib/ttnt/internals.rb b/lib/ttnt/internals.rb index abc1234..def5678 100644 --- a/lib/ttnt/internals.rb +++ b/lib/ttnt/internals.rb @@ -3,11 +3,11 @@ module TTNT class << self def root_dir - @root_dir ||= Rake.application.find_rakefile_location[1] + @@root_dir ||= Rake.application.find_ra...
Use class variable rather than instance variable
diff --git a/library/pp/pp_spec.rb b/library/pp/pp_spec.rb index abc1234..def5678 100644 --- a/library/pp/pp_spec.rb +++ b/library/pp/pp_spec.rb @@ -3,29 +3,31 @@ describe "PP.pp" do before :each do - @original_stdout = $stdout + @original_stdout = $stdout end - + after :each do $stdout = @o...
Fix formatting and trailing spaces
diff --git a/test/yuba/view_model/rendering_test.rb b/test/yuba/view_model/rendering_test.rb index abc1234..def5678 100644 --- a/test/yuba/view_model/rendering_test.rb +++ b/test/yuba/view_model/rendering_test.rb @@ -0,0 +1,32 @@+require 'test_helper' + +class Yuba::ViewModel::Rendering::Test < ActiveSupport::TestCase ...
Add unit test for Yuba::ViewModel::Rendering
diff --git a/log_recursive.gemspec b/log_recursive.gemspec index abc1234..def5678 100644 --- a/log_recursive.gemspec +++ b/log_recursive.gemspec @@ -17,8 +17,6 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ['lib'] - spec.add_dependency('commander') - spec.add_develo...
Remove commander dependency, as it's not used
diff --git a/json-api.gemspec b/json-api.gemspec index abc1234..def5678 100644 --- a/json-api.gemspec +++ b/json-api.gemspec @@ -18,7 +18,7 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] - spec.add_development_dependency "json-schema" + spec.add_runtime_depende...
Make json schema a run time dependency
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 @@ -5,4 +5,16 @@ def datetime_ago date content_tag :date, nil, title: date.to_s(:long), "data-source": date.to_s(:rfc822...
[Core] Implement global variables on application helper
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 @@ -16,4 +16,10 @@ def absolute_url_for(path) URI.join(Plek.current.website_root, path) end + + def arr_to_links(arr...
Add a helper for links generation The metadata component expects a link of arrays and as we now have policies that can have more than one Organisation it made sense to refactor this out to its own helper.
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 @@ -20,7 +20,10 @@ end def alternative_locales - I18n.available_locales - [I18n.locale] + # This disables the link...
Disable the link to Welsh (until they’re approved)
diff --git a/lib/failspell.rb b/lib/failspell.rb index abc1234..def5678 100644 --- a/lib/failspell.rb +++ b/lib/failspell.rb @@ -1,6 +1,6 @@ require 'highline/import' require 'colorize' -require 'JSON' +require 'json' require 'failspell/version' require 'failspell/cli'
Change require json to lowercase this is dumb!!!!