diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/lib/app/auth.rb b/lib/app/auth.rb index abc1234..def5678 100644 --- a/lib/app/auth.rb +++ b/lib/app/auth.rb @@ -45,7 +45,7 @@ # params[:splat] might be an empty array # which suits us just fine. - redirect [root_path, params[:splat].first].join('/') + redirect [root_path, params[:splat].fi...
Fix double slash after login
diff --git a/lib/tasks/collegestar.rake b/lib/tasks/collegestar.rake index abc1234..def5678 100644 --- a/lib/tasks/collegestar.rake +++ b/lib/tasks/collegestar.rake @@ -3,6 +3,6 @@ namespace :collegestar do desc "Use pg_dump to backup collegestar database" task backup_db: :environment do - sh "PGPASSWORD=\"#{E...
Add host to db back task
diff --git a/spec/features/admin/promotion_rule_store_spec.rb b/spec/features/admin/promotion_rule_store_spec.rb index abc1234..def5678 100644 --- a/spec/features/admin/promotion_rule_store_spec.rb +++ b/spec/features/admin/promotion_rule_store_spec.rb @@ -12,8 +12,9 @@ if SolidusSupport.solidus_gem_version < Gem::...
Fix failing test that used incorrect select ID
diff --git a/test/test_sass.rb b/test/test_sass.rb index abc1234..def5678 100644 --- a/test/test_sass.rb +++ b/test/test_sass.rb @@ -1,47 +1,6 @@ require 'helper' class TestSass < Test::Unit::TestCase - def converter(overrides = {}) - Jekyll::Converters::Sass.new(site_configuration({"sass" => overrides})) - end...
Remove unneeded tests for the sass converter plugin.
diff --git a/lib/discordrb/logger.rb b/lib/discordrb/logger.rb index abc1234..def5678 100644 --- a/lib/discordrb/logger.rb +++ b/lib/discordrb/logger.rb @@ -7,7 +7,7 @@ # Writes a debug message to the console. # @param important [true, false] Whether this message should be printed regardless of debug mode bein...
Add milliseconds to Logger timestamp
diff --git a/lib/zencoder/extensions.rb b/lib/zencoder/extensions.rb index abc1234..def5678 100644 --- a/lib/zencoder/extensions.rb +++ b/lib/zencoder/extensions.rb @@ -29,11 +29,3 @@ end end end - -unless String.method_defined?(:shell_escape) - class String - def shell_escape - empty? ? "''" : gsub(/(...
Remove shell_escape method because it was unused
diff --git a/lib/boom/color.rb b/lib/boom/color.rb index abc1234..def5678 100644 --- a/lib/boom/color.rb +++ b/lib/boom/color.rb @@ -4,6 +4,8 @@ # Color collects some methods for colorizing terminal output. module Color + + extend self CODES = { :reset => "\e[0m",
Modify Boom::Color to extend itself (easier to test).
diff --git a/app/workers/atmosphere/vm_template_monitoring_worker.rb b/app/workers/atmosphere/vm_template_monitoring_worker.rb index abc1234..def5678 100644 --- a/app/workers/atmosphere/vm_template_monitoring_worker.rb +++ b/app/workers/atmosphere/vm_template_monitoring_worker.rb @@ -9,9 +9,17 @@ begin l...
Use filter only when it is not empty
diff --git a/test/resque_test.rb b/test/resque_test.rb index abc1234..def5678 100644 --- a/test/resque_test.rb +++ b/test/resque_test.rb @@ -4,8 +4,13 @@ class ResqueTest < Minitest::Test def test_resque_version major, minor, patch = Resque::Version.split('.') - assert_equal 2, major.to_i, 'major version doe...
Change test assertions for compatibility with resque v1 and v2.
diff --git a/test/test_base32.rb b/test/test_base32.rb index abc1234..def5678 100644 --- a/test/test_base32.rb +++ b/test/test_base32.rb @@ -27,4 +27,15 @@ assert_encode_decode("foobar", "MZXW6YTBOI======") assert_encode_decode("\u{3042}\u{3044}\u{3046}\u{3048}\u{304a}", "4OAYFY4BQTRYDBXDQGEOHAMK") end + + ...
Test for values which truncated trailing "=".
diff --git a/lib/is_numeric.rb b/lib/is_numeric.rb index abc1234..def5678 100644 --- a/lib/is_numeric.rb +++ b/lib/is_numeric.rb @@ -2,8 +2,10 @@ # Extending the class String to perform checks on string to get # if is a number -class String +module IsNumeric def numeric? !(self !~ /^-?\d+(\.\d*)?$/) end ...
Change IsNumeric to a module and include it to String class instead of openning directly
diff --git a/lib/fake_env.rb b/lib/fake_env.rb index abc1234..def5678 100644 --- a/lib/fake_env.rb +++ b/lib/fake_env.rb @@ -3,35 +3,14 @@ module FakeEnv class << self - attr_reader :actual, :fake, :actual_get_method, :actual_set_method + attr_reader :actual def activate! - @actual = ENV.clone - ...
Save ENV on activate! and restore on deactivate! rather than overriding [] and []=. Note that it makes child processes take over a faked ENV.
diff --git a/lib/calligraphy/rails/web_dav_requests_controller.rb b/lib/calligraphy/rails/web_dav_requests_controller.rb index abc1234..def5678 100644 --- a/lib/calligraphy/rails/web_dav_requests_controller.rb +++ b/lib/calligraphy/rails/web_dav_requests_controller.rb @@ -1,6 +1,49 @@ module Calligraphy::Rails class...
Add methods to route and respond to WebDAV requests
diff --git a/app/services/flight_info.rb b/app/services/flight_info.rb index abc1234..def5678 100644 --- a/app/services/flight_info.rb +++ b/app/services/flight_info.rb @@ -1,5 +1,19 @@ #!/usr/bin/env ruby class FlightInfo + def self.save_yesterday_info + haha = Alohaha.new + haha.flights.each do |flight| + ...
Add flight info and add save_yesterday_info method
diff --git a/spec/features/add_event_spec.rb b/spec/features/add_event_spec.rb index abc1234..def5678 100644 --- a/spec/features/add_event_spec.rb +++ b/spec/features/add_event_spec.rb @@ -8,7 +8,7 @@ visit "/events/new" fill_in "Event Name", with: 'Something' - fill_in "Venue", with: "urban" + fill_in...
Test seems to be working
diff --git a/adauth.gemspec b/adauth.gemspec index abc1234..def5678 100644 --- a/adauth.gemspec +++ b/adauth.gemspec @@ -10,6 +10,7 @@ s.email = ["gems@arcath.net"] s.homepage = "http://adauth.arcath.net" s.summary = "Provides Active Directory authentication for Rails" + s.description = "A full feature...
Add a description to the gemspec
diff --git a/db/migrate/20160524234655_create_student_identifiers.rb b/db/migrate/20160524234655_create_student_identifiers.rb index abc1234..def5678 100644 --- a/db/migrate/20160524234655_create_student_identifiers.rb +++ b/db/migrate/20160524234655_create_student_identifiers.rb @@ -5,6 +5,8 @@ t.string :name, n...
Add `created_at` and `updated_at` to StudentIdentifierType and StudentIdentifier
diff --git a/lib/how_is/date_time_helpers.rb b/lib/how_is/date_time_helpers.rb index abc1234..def5678 100644 --- a/lib/how_is/date_time_helpers.rb +++ b/lib/how_is/date_time_helpers.rb @@ -4,6 +4,8 @@ require "date" module HowIs + ## + # Various helper functions for working with DateTime objects. module DateTim...
Add top-level module comment for HowIs::DateTimeHelpers.
diff --git a/lib/letter_opener_web/engine.rb b/lib/letter_opener_web/engine.rb index abc1234..def5678 100644 --- a/lib/letter_opener_web/engine.rb +++ b/lib/letter_opener_web/engine.rb @@ -11,5 +11,9 @@ initializer "letter_opener_web.add_delivery_method" do ActionMailer::Base.add_delivery_method :letter_open...
Add assets to list for precompile task
diff --git a/lib/stradivari.rb b/lib/stradivari.rb index abc1234..def5678 100644 --- a/lib/stradivari.rb +++ b/lib/stradivari.rb @@ -1,11 +1,5 @@ require 'stradivari/version' require 'stradivari/engine' - -require 'stradivari/details' -require 'stradivari/filter' -require 'stradivari/tabs' -require 'stradivari/table' ...
Move on to autoload'ing everything
diff --git a/AppSession.podspec b/AppSession.podspec index abc1234..def5678 100644 --- a/AppSession.podspec +++ b/AppSession.podspec @@ -2,7 +2,7 @@ s.name = "AppSession" s.version = "0.1.0" s.summary = "A lightweight key-value store to share data across ViewControllers and or SKSc...
Comment out line to pass pod lint
diff --git a/lib/tasks/db.rake b/lib/tasks/db.rake index abc1234..def5678 100644 --- a/lib/tasks/db.rake +++ b/lib/tasks/db.rake @@ -0,0 +1,11 @@+require "benchmark" + +namespace :db do + desc "Refreshes all materialized views e.g. audits. May take a while so only run overnight." + task refresh_all_materialized_views...
Create rake task to refresh all materialised views Materialised views are currently used for auditing but need to be periodically refreshed.
diff --git a/lib/phony/trunk_code.rb b/lib/phony/trunk_code.rb index abc1234..def5678 100644 --- a/lib/phony/trunk_code.rb +++ b/lib/phony/trunk_code.rb @@ -11,7 +11,7 @@ # def initialize code, options = {} @code = code - @trunk_code_replacement = /\A#{code}/ + @trunk_code_replacement = /\A#{c...
Add the possibility to add whitespace to a trunk code for formatting.
diff --git a/lib/pry-power_assert.rb b/lib/pry-power_assert.rb index abc1234..def5678 100644 --- a/lib/pry-power_assert.rb +++ b/lib/pry-power_assert.rb @@ -3,10 +3,7 @@ require "pry-power_assert/power_assert-ext" module PryPowerAssert - class PowerAssertCommand < Pry::ClassCommand - match 'pa' - group 'Misc'...
Change way to create command to support pry 0.9.8
diff --git a/lib/searchjoy/search.rb b/lib/searchjoy/search.rb index abc1234..def5678 100644 --- a/lib/searchjoy/search.rb +++ b/lib/searchjoy/search.rb @@ -3,7 +3,7 @@ belongs_to :convertable, polymorphic: true # the devise way - if Rails::VERSION::MAJOR == 3 and !defined?(ActionController::StrongParamet...
Add attr_accessible if ProtectedAttributes gem present
diff --git a/lib/merb_cucumber/world/base.rb b/lib/merb_cucumber/world/base.rb index abc1234..def5678 100644 --- a/lib/merb_cucumber/world/base.rb +++ b/lib/merb_cucumber/world/base.rb @@ -2,6 +2,8 @@ module Test module World module Base + include Merb::Test::Matchers + include Merb::Test:...
Include Merb's matchers. (Waiting for patch to merb-core to be accepted.)
diff --git a/lib/feature_definitions.rb b/lib/feature_definitions.rb index abc1234..def5678 100644 --- a/lib/feature_definitions.rb +++ b/lib/feature_definitions.rb @@ -2,23 +2,29 @@ class FeatureDefinitions extend LazyConst + attr_reader :opts, :test_proc def self.define_feature(name, opts = {}, &block) - ...
Refactor out instance/class variable access, add block mode
diff --git a/lib/scaffolder/test/sequence.rb b/lib/scaffolder/test/sequence.rb index abc1234..def5678 100644 --- a/lib/scaffolder/test/sequence.rb +++ b/lib/scaffolder/test/sequence.rb @@ -27,7 +27,7 @@ if @options[:inserts] hash['inserts'] = Array.new @options[:inserts].each_with_index do |inse...
Fix to_hash method to produce list of inserts
diff --git a/lib/services/locale_resolver.rb b/lib/services/locale_resolver.rb index abc1234..def5678 100644 --- a/lib/services/locale_resolver.rb +++ b/lib/services/locale_resolver.rb @@ -11,7 +11,6 @@ def resolve if user_locale == 'default' || user_locale.nil? - server_locale = ::Settings.server.locale ...
Replace server_locale temp with query
diff --git a/lib/slatan/affiliation/users.rb b/lib/slatan/affiliation/users.rb index abc1234..def5678 100644 --- a/lib/slatan/affiliation/users.rb +++ b/lib/slatan/affiliation/users.rb @@ -11,6 +11,43 @@ def set(users) @users = users end + + ## return id of user name + # @param...
Add some method to Affiliation::Users module
diff --git a/spec/lib/active_remote/serialization_spec.rb b/spec/lib/active_remote/serialization_spec.rb index abc1234..def5678 100644 --- a/spec/lib/active_remote/serialization_spec.rb +++ b/spec/lib/active_remote/serialization_spec.rb @@ -1,6 +1,18 @@ require 'spec_helper' describe ActiveRemote::Serialization do +...
Add a spec for Base.serialize_records
diff --git a/spec/unit/schnitzelpress/environment_spec.rb b/spec/unit/schnitzelpress/environment_spec.rb index abc1234..def5678 100644 --- a/spec/unit/schnitzelpress/environment_spec.rb +++ b/spec/unit/schnitzelpress/environment_spec.rb @@ -0,0 +1,71 @@+require 'spec_helper' + +describe Schnitzelpress::Environment do +...
Move spec in the new spec directory structure
diff --git a/test/models/racing_on_rails/vestal_versions/versioned_test.rb b/test/models/racing_on_rails/vestal_versions/versioned_test.rb index abc1234..def5678 100644 --- a/test/models/racing_on_rails/vestal_versions/versioned_test.rb +++ b/test/models/racing_on_rails/vestal_versions/versioned_test.rb @@ -5,7 +5,7 @@...
Use root namespace for Person
diff --git a/lita-google-images.gemspec b/lita-google-images.gemspec index abc1234..def5678 100644 --- a/lita-google-images.gemspec +++ b/lita-google-images.gemspec @@ -1,12 +1,13 @@ Gem::Specification.new do |spec| spec.name = "lita-google-images" - spec.version = "1.0.2" + spec.version = "1....
Add plugin type metadata and bump version to 1.0.3.
diff --git a/benchmarks/agi_env_parse.rb b/benchmarks/agi_env_parse.rb index abc1234..def5678 100644 --- a/benchmarks/agi_env_parse.rb +++ b/benchmarks/agi_env_parse.rb @@ -0,0 +1,13 @@+#!/usr/bin/env ruby + +require 'rubygems' +require 'bundler/setup' +require 'ruby_ami' +require 'benchmark/ips' + +env_string = "agi_r...
[CS] Add benchmark for AGI environment parsing
diff --git a/fake-ajax-server.gemspec b/fake-ajax-server.gemspec index abc1234..def5678 100644 --- a/fake-ajax-server.gemspec +++ b/fake-ajax-server.gemspec @@ -17,4 +17,5 @@ gem.add_dependency 'jquery-rails' gem.add_dependency 'sinon-rails' + gem.add_dependency 'coffee-rails' end
Add dependency on coffee-rails as well
diff --git a/app/controllers/merge_requests_controller.rb b/app/controllers/merge_requests_controller.rb index abc1234..def5678 100644 --- a/app/controllers/merge_requests_controller.rb +++ b/app/controllers/merge_requests_controller.rb @@ -16,11 +16,11 @@ end def index - @mrs = project.merge_requests.include...
Order merge requests by last update.
diff --git a/app/controllers/spree/firmware_controller.rb b/app/controllers/spree/firmware_controller.rb index abc1234..def5678 100644 --- a/app/controllers/spree/firmware_controller.rb +++ b/app/controllers/spree/firmware_controller.rb @@ -1,50 +1,54 @@-class Spree::FirmwareController < Spree::Admin::BaseController +r...
Fix autoloader failing to include firmware module
diff --git a/SDDKit.podspec b/SDDKit.podspec index abc1234..def5678 100644 --- a/SDDKit.podspec +++ b/SDDKit.podspec @@ -1,13 +1,24 @@ Pod::Spec.new do |s| s.name = "SDDKit" - s.version = "1.0.4" - s.summary = "Fastest way for implementing hierarchical state machine(HSM) based programs in Objecti...
Update podspec to support both static lib and framework uses
diff --git a/mixlib-shellout.gemspec b/mixlib-shellout.gemspec index abc1234..def5678 100644 --- a/mixlib-shellout.gemspec +++ b/mixlib-shellout.gemspec @@ -17,8 +17,6 @@ s.add_development_dependency "rspec", "~> 3.0" s.add_development_dependency "chefstyle" - s.bindir = "bin" - s.executables = [] s....
Remove bin / executable defs Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
diff --git a/db/migrate/20140212153406_rename_industry_sector_tag_type_to_specialist_sector.rb b/db/migrate/20140212153406_rename_industry_sector_tag_type_to_specialist_sector.rb index abc1234..def5678 100644 --- a/db/migrate/20140212153406_rename_industry_sector_tag_type_to_specialist_sector.rb +++ b/db/migrate/201402...
Add migration to update existing industry sector tags This adds a migration to update tags with the "industry_sector" type to now have the type "specialist_sector".
diff --git a/tinytable.gemspec b/tinytable.gemspec index abc1234..def5678 100644 --- a/tinytable.gemspec +++ b/tinytable.gemspec @@ -8,12 +8,13 @@ gem.summary = %q{TODO: Write a gem summary} gem.homepage = "https://github.com/leocassarani/tinytable" - gem.add_development_dependency "rspec" - gem.f...
Add rake as a development dependency
diff --git a/rb/spec/integration/selenium/webdriver/mouse_spec.rb b/rb/spec/integration/selenium/webdriver/mouse_spec.rb index abc1234..def5678 100644 --- a/rb/spec/integration/selenium/webdriver/mouse_spec.rb +++ b/rb/spec/integration/selenium/webdriver/mouse_spec.rb @@ -25,9 +25,7 @@ text = droppable.find_e...
JariBakken: Enable double/context click specs for IE. r13526
diff --git a/week-4/smallest-integer/smallest_integer_spec.rb b/week-4/smallest-integer/smallest_integer_spec.rb index abc1234..def5678 100644 --- a/week-4/smallest-integer/smallest_integer_spec.rb +++ b/week-4/smallest-integer/smallest_integer_spec.rb @@ -0,0 +1,39 @@+require_relative "my_solution" + +describe 'smalle...
Add rspec file for smallest integer
diff --git a/examples/monitor.rb b/examples/monitor.rb index abc1234..def5678 100644 --- a/examples/monitor.rb +++ b/examples/monitor.rb @@ -9,18 +9,21 @@ exclusions = ARGV.select { |arg| arg =~ /^!/ }.collect { |arg| arg[1..-1] } EM.error_handler{ |e| - puts "Error raised during event loop: #{e.class.name} #{e.m...
Fix example due to changed EMDirWatcher.watch API
diff --git a/Formula/nspr.rb b/Formula/nspr.rb index abc1234..def5678 100644 --- a/Formula/nspr.rb +++ b/Formula/nspr.rb @@ -6,15 +6,18 @@ @md5='c78384602b4b466081a55025446641db' def install + require 'hardware' + ENV.deparallelize Dir.chdir "mozilla/nsprpub" do inreplace "pr/src/Makefile.in"...
Enable 64 bits on 64 bit machines only
diff --git a/tools/rest_api.rb b/tools/rest_api.rb index abc1234..def5678 100644 --- a/tools/rest_api.rb +++ b/tools/rest_api.rb @@ -1,5 +1,5 @@ #! /usr/bin/env ruby -require 'bundler/setup' +Dir.chdir(File.join(__dir__, "..")) { require 'bundler/setup' } require 'pathname' gem_dir = Pathname.new(Bundler.locked_gem...
Allow the wrapper script to be invoked outside the app directory.
diff --git a/IRLSize.podspec b/IRLSize.podspec index abc1234..def5678 100644 --- a/IRLSize.podspec +++ b/IRLSize.podspec @@ -14,7 +14,7 @@ s.source = { :git => "https://github.com/detroit-labs/IRLSize.git", :tag => s.version.to_s } - s.ios.deployment_target = '2.0' + s.ios.depl...
Set the target to 8.0. We’re using some 8.0-only APIs.
diff --git a/minimal-mistakes-jekyll.gemspec b/minimal-mistakes-jekyll.gemspec index abc1234..def5678 100644 --- a/minimal-mistakes-jekyll.gemspec +++ b/minimal-mistakes-jekyll.gemspec @@ -15,14 +15,13 @@ f.match(%r{^(assets|_(includes|layouts|sass)/|(LICENSE|README|CHANGELOG)((\.(txt|md|markdown)|$)))}i) end ...
Change Jekyll to a runtime dependency
diff --git a/phonegap-ios-template.podspec b/phonegap-ios-template.podspec index abc1234..def5678 100644 --- a/phonegap-ios-template.podspec +++ b/phonegap-ios-template.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "phonegap-ios-template" - s.version = "0.1.0" + s.version ...
Update tag for repo to include latest updates in podspec.
diff --git a/LBBlurredImage.podspec b/LBBlurredImage.podspec index abc1234..def5678 100644 --- a/LBBlurredImage.podspec +++ b/LBBlurredImage.podspec @@ -9,6 +9,6 @@ s.source = { :git => "https://github.com/lukabernardi/LBBlurredImage.git", :revision => "0.0.1" } s.platform = :ios, '6.0' s.source_files...
Add UIKit as depended framework on podspec Signed-off-by: Luca Bernardi <38200982d3b71b1094dcbc14c9cc15f8acc5a0cb@gmail.com>
diff --git a/plugin.rb b/plugin.rb index abc1234..def5678 100644 --- a/plugin.rb +++ b/plugin.rb @@ -35,8 +35,4 @@ background: #606060 !important; } -.btn-social.persona:before { - content: "]"; -} - CSS
Remove icon since it looks like Discourse no longer bundles a social icon set.
diff --git a/test/service_test.rb b/test/service_test.rb index abc1234..def5678 100644 --- a/test/service_test.rb +++ b/test/service_test.rb @@ -10,6 +10,7 @@ def test_default_path_to_ca_file s = CC::Service.new({}, {name: "test"}) assert_equal(File.expand_path("../../config/cacert.pem", __FILE__), s.ca_fil...
Make sure the ca file exist.
diff --git a/bounce.gemspec b/bounce.gemspec index abc1234..def5678 100644 --- a/bounce.gemspec +++ b/bounce.gemspec @@ -12,7 +12,7 @@ s.summary = "bounce is a rails method that saves and returns an active record object. If you like skinny controllers, you'll love bounce." s.description = %q{ - `bounce` wil...
Add spacing to gemspec description
diff --git a/test/raw_sql_builder_test.rb b/test/raw_sql_builder_test.rb index abc1234..def5678 100644 --- a/test/raw_sql_builder_test.rb +++ b/test/raw_sql_builder_test.rb @@ -2,10 +2,63 @@ class RawSqlBuilderTest < Minitest::Test def test_that_it_has_a_version_number - refute_nil ::RawSqlBuilder::VERSION + ...
Add to test file. Still need to create a test table.
diff --git a/poller-json.gemspec b/poller-json.gemspec index abc1234..def5678 100644 --- a/poller-json.gemspec +++ b/poller-json.gemspec @@ -18,6 +18,5 @@ gem.add_runtime_dependency('multi_json', '~> 1.8.1') gem.add_runtime_dependency('json', '~> 1.8.0') if RUBY_VERSION == '1.8.7' gem.add_development_dependency...
Revert "Ruby 1.8.7 cant work with dependencies introduced by simplecov-0.8.2" This reverts commit 1d0f7af57182bbdda2ac47115b050182790111a1.
diff --git a/Amplitude-iOS.podspec b/Amplitude-iOS.podspec index abc1234..def5678 100644 --- a/Amplitude-iOS.podspec +++ b/Amplitude-iOS.podspec @@ -7,7 +7,7 @@ s.author = { "Amplitude" => "dev@amplitude.com" } s.source = { :git => "https://github.com/amplitude/Amplitude-iOS.git", :tag => "v3.12.1" } ...
Include everything in Amplitude subdirectory
diff --git a/Casks/freefilesync.rb b/Casks/freefilesync.rb index abc1234..def5678 100644 --- a/Casks/freefilesync.rb +++ b/Casks/freefilesync.rb @@ -0,0 +1,11 @@+cask :v1 => 'freefilesync' do + version '6.13' + sha256 '0abcfd5d96ee8a51ae243138f410f68b2dae6320fd7337237047bd53d263e90f' + + url "http://downloads.source...
Add Freefilesync Cask to boneyard See <https://github.com/caskroom/homebrew-cask/issues/9734>.
diff --git a/Casks/phpstorm-eap.rb b/Casks/phpstorm-eap.rb index abc1234..def5678 100644 --- a/Casks/phpstorm-eap.rb +++ b/Casks/phpstorm-eap.rb @@ -1,6 +1,6 @@ cask :v1 => 'phpstorm-eap' do - version '141.1815' - sha256 '4e66c2f600b67d9c29614d7ba78b1d3fbf051d21728bb3df00bb39b3548429bf' + version '141.2017' + sha25...
Update PhpStorm EAP.app to version 141.2017
diff --git a/application.rb b/application.rb index abc1234..def5678 100644 --- a/application.rb +++ b/application.rb @@ -23,7 +23,7 @@ get '/lookup.json' do @words = Word.where( - Sequel.like(:word, "%#{params[:q].downcase}%") + Sequel.like(:word, "#{params[:q].downcase}%") ).limit(20).order(:wo...
Change search back to start of word
diff --git a/lib/alfabank/api/base.rb b/lib/alfabank/api/base.rb index abc1234..def5678 100644 --- a/lib/alfabank/api/base.rb +++ b/lib/alfabank/api/base.rb @@ -19,7 +19,7 @@ end def url - Alfabank::Configuration.mode == :production ? self.class::URL : self.class::TEST_URL + Alfabank::Configuration...
Convert mode to string to allow both symbols and strings
diff --git a/spec/helpers.rb b/spec/helpers.rb index abc1234..def5678 100644 --- a/spec/helpers.rb +++ b/spec/helpers.rb @@ -1,7 +1,7 @@ module Helpers - def setup_reporter_spec(reporter, reporter_options = {}) + def setup_reporter_spec(reporter) before { ProgressHandler.configure {|config| config.reporters = {r...
Allow reporter parameters (re)definition in simple let statements
diff --git a/lib/chronic/time_zone.rb b/lib/chronic/time_zone.rb index abc1234..def5678 100644 --- a/lib/chronic/time_zone.rb +++ b/lib/chronic/time_zone.rb @@ -18,7 +18,7 @@ def self.scan_for_all(token) scan_for token, self, { - /[PMCE][DS]T/i => :tz, + /[PMCE][DS]T|UTC/i => :tz, ...
Allow Chronic to recognize UTC as a timezone. This allows for a common UTC timestamp format, recognizable to `date' among others, to be used.
diff --git a/lib/garufa/garufa_app.rb b/lib/garufa/garufa_app.rb index abc1234..def5678 100644 --- a/lib/garufa/garufa_app.rb +++ b/lib/garufa/garufa_app.rb @@ -20,6 +20,8 @@ options[:port] = DEFAULT_PORT + opts.on('-V', '--version', 'Display version and exit') { puts "Garufa version #{Garufa::VERSION}";...
Move --version option to common options.
diff --git a/lib/groovehq/resource.rb b/lib/groovehq/resource.rb index abc1234..def5678 100644 --- a/lib/groovehq/resource.rb +++ b/lib/groovehq/resource.rb @@ -10,7 +10,7 @@ links = @data.delete(:links) links[:self] = @data.delete(:href) if @data.has_key?(:href) - @rels = parse_links(links) ...
Make rels also a hash with indifferent access
diff --git a/lib/socializer/engine.rb b/lib/socializer/engine.rb index abc1234..def5678 100644 --- a/lib/socializer/engine.rb +++ b/lib/socializer/engine.rb @@ -8,12 +8,12 @@ config.generators do |g| g.test_framework :rspec, - fixtures: true, - view_specs: false, - helper_specs: false,...
Align the parameters of a method call if they span more than one line.
diff --git a/lib/tasks/emergency.rake b/lib/tasks/emergency.rake index abc1234..def5678 100644 --- a/lib/tasks/emergency.rake +++ b/lib/tasks/emergency.rake @@ -29,5 +29,16 @@ end end end + + desc "Delete duplicate enqueued Sidekiq scraper jobs. Sidekiq should be stopped for this to be effective"...
Add rake task to find and delete duplicate scraper jobs
diff --git a/lib/tasks/scheduler.rake b/lib/tasks/scheduler.rake index abc1234..def5678 100644 --- a/lib/tasks/scheduler.rake +++ b/lib/tasks/scheduler.rake @@ -0,0 +1,15 @@+# See https://devcenter.heroku.com/articles/scheduler + +namespace :feed_simple do + desc 'Load latest content from RSS feed (replaces previous c...
Add schedule.rake containing feed_simple:load task
diff --git a/app.rb b/app.rb index abc1234..def5678 100644 --- a/app.rb +++ b/app.rb @@ -5,6 +5,7 @@ class SpaceHolder < Sinatra::Base set :server, :puma + set :protection, :except => [:frame_options, :xss_header] set :views, "#{settings.root}/app/views" set :assets_css_compressor, :sass
Disable Rack::Protection X-* headers as NGINX handles this.
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,31 +1,30 @@ require 'hyperloop' describe Hyperloop::Application do - before :each do - @root = 'spec/fixtures/simple/' - @app = Hyperloop::Applica...
Move Application specs into flat context
diff --git a/spec/gui_spec_tmp_out.rb b/spec/gui_spec_tmp_out.rb index abc1234..def5678 100644 --- a/spec/gui_spec_tmp_out.rb +++ b/spec/gui_spec_tmp_out.rb @@ -18,7 +18,7 @@ describe '#draw' do it 'notifies each robot renderer' do robot_renderer = double('robot_renderer') - RobotRenderer.stub(:new) ...
Refactor stub in favor of allow (new syntax)
diff --git a/spec/models/crop_spec.rb b/spec/models/crop_spec.rb index abc1234..def5678 100644 --- a/spec/models/crop_spec.rb +++ b/spec/models/crop_spec.rb @@ -30,7 +30,8 @@ end it 'displays the main_image_path' do - expect(crop.main_image_path).to eq(nil) + expect(crop.main_image_path).to_not eq(...
Fix test for crops without set images
diff --git a/TBStateMachine.podspec b/TBStateMachine.podspec index abc1234..def5678 100644 --- a/TBStateMachine.podspec +++ b/TBStateMachine.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "TBStateMachine" - s.version = "3.0.0" + s.version = "3.0.1" s.summary = "A li...
Raise version number to 3.0.1.
diff --git a/lib/generators/ops_care/setup_generator.rb b/lib/generators/ops_care/setup_generator.rb index abc1234..def5678 100644 --- a/lib/generators/ops_care/setup_generator.rb +++ b/lib/generators/ops_care/setup_generator.rb @@ -30,6 +30,7 @@ RUBY ["staging", "production"].each do |env| inject...
Make generator rails 3-4 compatible
diff --git a/spec/factories/user_factory.rb b/spec/factories/user_factory.rb index abc1234..def5678 100644 --- a/spec/factories/user_factory.rb +++ b/spec/factories/user_factory.rb @@ -3,6 +3,7 @@ provider { Faker::Company.name.parameterize.underscore } uid { "#{Faker::Number.digit}" } name { Faker::Name....
Use realistic avatars for realisticness It’s a word if you want it to be
diff --git a/recipes/install_package.rb b/recipes/install_package.rb index abc1234..def5678 100644 --- a/recipes/install_package.rb +++ b/recipes/install_package.rb @@ -19,3 +19,16 @@ package "haproxy" +directory node['haproxy']['conf_dir'] + +template "/etc/init.d/haproxy" do + source "haproxy-init.erb" + owner ...
[COOK-3188] Allow setting of conf_dir attribute when using the default package install Signed-off-by: Seth Vargo <81550dbf04dfd8537ff7b3c014c6fbf86e0889dc@gmail.com>
diff --git a/spec/lib/deploy_utils_spec.rb b/spec/lib/deploy_utils_spec.rb index abc1234..def5678 100644 --- a/spec/lib/deploy_utils_spec.rb +++ b/spec/lib/deploy_utils_spec.rb @@ -0,0 +1,29 @@+require 'rails_helper' +require 'openstax/rescue_from/deploy_utils' + +RSpec.describe OpenStax::RescueFrom::DeployUtils do + ...
Add specs for deploy utils
diff --git a/spec/spec-i18n/example_spec.rb b/spec/spec-i18n/example_spec.rb index abc1234..def5678 100644 --- a/spec/spec-i18n/example_spec.rb +++ b/spec/spec-i18n/example_spec.rb @@ -21,7 +21,7 @@ descreva Pessoa do antes(:de_todos) do - @pessoa = Pessoa.new("Tomás", "D'Stefano") + @pessoa = Pessoa.new("...
Add context in the spec example
diff --git a/spec/support/example_helper.rb b/spec/support/example_helper.rb index abc1234..def5678 100644 --- a/spec/support/example_helper.rb +++ b/spec/support/example_helper.rb @@ -10,7 +10,12 @@ end def pending_example - example = base_example { pending('Pending') } + if ::RSpec::Version::STRING >= '2...
Switch pending method RSpec 2.x/3.x
diff --git a/spec/webhook_endpoints_spec.rb b/spec/webhook_endpoints_spec.rb index abc1234..def5678 100644 --- a/spec/webhook_endpoints_spec.rb +++ b/spec/webhook_endpoints_spec.rb @@ -1,8 +1,9 @@ require 'spec_helper' +require 'securerandom' RSpec.describe 'WebhookEndpoints', :vcr, class: Pin::WebhookEndpoints do ...
Use a secure random slug for webhook specs
diff --git a/brakeman.gemspec b/brakeman.gemspec index abc1234..def5678 100644 --- a/brakeman.gemspec +++ b/brakeman.gemspec @@ -14,7 +14,7 @@ s.add_dependency "ruby2ruby", "~>2.0.5" s.add_dependency "terminal-table", "~>1.4" s.add_dependency "fastercsv", "~>1.5" - s.add_dependency "highline", "~>1.6.19" + s....
Change highline dependency to 1.6.20
diff --git a/app/models/book.rb b/app/models/book.rb index abc1234..def5678 100644 --- a/app/models/book.rb +++ b/app/models/book.rb @@ -19,6 +19,6 @@ def display_genre genre = self.genres.map { |genre| genre.name } - genre.join("") + genre.join(", ") end end
Refactor display genre method to show multiple genres properly
diff --git a/app/models/game.rb b/app/models/game.rb index abc1234..def5678 100644 --- a/app/models/game.rb +++ b/app/models/game.rb @@ -4,4 +4,46 @@ has_many :pictures validates :name, presence: true + + rails_admin do + list do + configure :id do + column_width 25 + end + + configure ...
Configure the admin page appearance
diff --git a/range_sentence_parser.gemspec b/range_sentence_parser.gemspec index abc1234..def5678 100644 --- a/range_sentence_parser.gemspec +++ b/range_sentence_parser.gemspec @@ -4,9 +4,9 @@ Gem::Specification.new do |gem| gem.authors = ["Gabriel Sobrinho"] gem.email = ["gabriel.sobrinho@gmail.com...
Update description, summary and homepage on gemspec
diff --git a/app/models/role.rb b/app/models/role.rb index abc1234..def5678 100644 --- a/app/models/role.rb +++ b/app/models/role.rb @@ -1,21 +1,29 @@ class Role < ActiveRecord::Base - ADMIN = 'admin' - CONVENOR = 'convenor' - TUTOR = 'tutor' - STUDENT = 'student' + + def self.student + Role.find(student_id) + end ...
Change Role to use functions instead of scope queries
diff --git a/lib/arrthorizer/rspec.rb b/lib/arrthorizer/rspec.rb index abc1234..def5678 100644 --- a/lib/arrthorizer/rspec.rb +++ b/lib/arrthorizer/rspec.rb @@ -1,3 +1,4 @@+require 'rspec/core/version' require 'rspec/expectations' module Arrthorizer @@ -8,8 +9,17 @@ role_spec = { type: :role, + } + + exa...
Make Arrthorizer::RSpec extensions work from the box with RSpec 2 as well
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 @@ -9,6 +9,13 @@ validates :password, presence: { message: "Password field can't be left blank" }, length: { in: 4..10, message: "Password must be between 4-15 characters in length" } ...
Create own User.digest method to deal with encrypted strings
diff --git a/app/controllers/campaigns_controller.rb b/app/controllers/campaigns_controller.rb index abc1234..def5678 100644 --- a/app/controllers/campaigns_controller.rb +++ b/app/controllers/campaigns_controller.rb @@ -22,7 +22,7 @@ def join_request JoinMailer.join_request(current_user, campaign).deliver - ...
Add notice to join request
diff --git a/lib/capify-ec2/server.rb b/lib/capify-ec2/server.rb index abc1234..def5678 100644 --- a/lib/capify-ec2/server.rb +++ b/lib/capify-ec2/server.rb @@ -10,7 +10,7 @@ end def name - tags["Name"] + tags["Name"] || "" end end end
Handle cases where the EC2 instance 'name' tag is empty.
diff --git a/config/initializers/rack.rb b/config/initializers/rack.rb index abc1234..def5678 100644 --- a/config/initializers/rack.rb +++ b/config/initializers/rack.rb @@ -2,8 +2,4 @@ # https://github.com/rack/rack/issues/1075 # The middleware approach was not reliable. # Setting the const, in my tests, is always re...
Reduce the buffer from 100 MB to 1 MB
diff --git a/server.rb b/server.rb index abc1234..def5678 100644 --- a/server.rb +++ b/server.rb @@ -21,7 +21,7 @@ s = UDPSocket.new s.bind(nil, 2111) -5.times do +while true do buffer, sender = s.recvfrom(1024)
Remove 5 request loop limit
diff --git a/client.rb b/client.rb index abc1234..def5678 100644 --- a/client.rb +++ b/client.rb @@ -4,6 +4,7 @@ require_relative 'client/request' require_relative 'client/locations' require_relative 'client/menus' +require_relative 'client/photos' module Singleplatform class Client
Add require for Photos file
diff --git a/lib/requests/find_all.rb b/lib/requests/find_all.rb index abc1234..def5678 100644 --- a/lib/requests/find_all.rb +++ b/lib/requests/find_all.rb @@ -12,16 +12,18 @@ def call client = HonestRenter::Client.new request = HonestRenter::Request.new(client, @session) - query = {}.tap do |pa...
Move query to helper method
diff --git a/lib/ryespy/redis_conn.rb b/lib/ryespy/redis_conn.rb index abc1234..def5678 100644 --- a/lib/ryespy/redis_conn.rb +++ b/lib/ryespy/redis_conn.rb @@ -26,9 +26,5 @@ @redis.quit end - def add - @redis.add("") - end - end end
Remove spurious debug from RedisConn.
diff --git a/lib/tasks/moneybird.rake b/lib/tasks/moneybird.rake index abc1234..def5678 100644 --- a/lib/tasks/moneybird.rake +++ b/lib/tasks/moneybird.rake @@ -1,11 +1,11 @@ namespace :moneybird do task sync: :environment do # TODO: Filter out fully synced orders - syncable_orders = Spree::Order.where('mone...
Order must be completed before sync
diff --git a/lib/tasks/user_data.rake b/lib/tasks/user_data.rake index abc1234..def5678 100644 --- a/lib/tasks/user_data.rake +++ b/lib/tasks/user_data.rake @@ -1,10 +1,24 @@-desc "This task generates a list of user information for use by Tom Ash" -task generate_user_profile_urls: :environment do - include ActionView:...
Create Rake task to import EA Hub links.
diff --git a/lib/emcee/railtie.rb b/lib/emcee/railtie.rb index abc1234..def5678 100644 --- a/lib/emcee/railtie.rb +++ b/lib/emcee/railtie.rb @@ -6,6 +6,10 @@ module Emcee class Railtie < Rails::Railtie + initializer :add_asset_paths do |app| + app.assets.paths.unshift(Rails.root.join("vendor", "assets", "c...
Add `vendor/assets/components` to asset path
diff --git a/lib/jekyll-events.rb b/lib/jekyll-events.rb index abc1234..def5678 100644 --- a/lib/jekyll-events.rb +++ b/lib/jekyll-events.rb @@ -40,12 +40,21 @@ entries.each do |f| if Post.valid?(f) event = Event.new(site, site.source, dir, f) - if event.published && event.dat...
Update to support end_date in YAML front matter
diff --git a/rails-footnotes.gemspec b/rails-footnotes.gemspec index abc1234..def5678 100644 --- a/rails-footnotes.gemspec +++ b/rails-footnotes.gemspec @@ -16,7 +16,7 @@ s.add_dependency "rails", ">= 3.2" - s.add_development_dependency "rspec-rails", '~> 3.2.1' + s.add_development_dependency "rspec-rails", '~>...
Upgrade rspec-rails, this is supposed to fix compatibility with rails 3.2 and Ruby 2.2
diff --git a/test/controllers/comments_controller_test.rb b/test/controllers/comments_controller_test.rb index abc1234..def5678 100644 --- a/test/controllers/comments_controller_test.rb +++ b/test/controllers/comments_controller_test.rb @@ -6,7 +6,6 @@ setup do @ad = create(:ad) - @user = create(:user, 'ema...
Remove instance variable from test