diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/wordpress_client.gemspec b/wordpress_client.gemspec index abc1234..def5678 100644 --- a/wordpress_client.gemspec +++ b/wordpress_client.gemspec @@ -23,5 +23,5 @@ spec.add_development_dependency "rake", "~> 10.0" spec.add_development_dependency "rspec", "~> 3.3" spec.add_development_dependency "webm...
Upgrade Yard to get rid of CVE-2017-17042 [CVE-2017-17042]: https://nvd.nist.gov/vuln/detail/CVE-2017-17042
diff --git a/api/app/jobs/send_event_notification_emails_job.rb b/api/app/jobs/send_event_notification_emails_job.rb index abc1234..def5678 100644 --- a/api/app/jobs/send_event_notification_emails_job.rb +++ b/api/app/jobs/send_event_notification_emails_job.rb @@ -13,7 +13,7 @@ EventEmailSubscriber .subscr...
Increase radius to event email notifications
diff --git a/lib/mnemosyne/probes/acfs/middleware.rb b/lib/mnemosyne/probes/acfs/middleware.rb index abc1234..def5678 100644 --- a/lib/mnemosyne/probes/acfs/middleware.rb +++ b/lib/mnemosyne/probes/acfs/middleware.rb @@ -4,10 +4,8 @@ module Probes module Acfs module Middleware - CATEGORY = 'acfs.ru...
Add acfs.run probe including backtrace in meta
diff --git a/lib/tasks/deployment/20191002102647_update_headteacher_role.rake b/lib/tasks/deployment/20191002102647_update_headteacher_role.rake index abc1234..def5678 100644 --- a/lib/tasks/deployment/20191002102647_update_headteacher_role.rake +++ b/lib/tasks/deployment/20191002102647_update_headteacher_role.rake @@ ...
Update headteacher staff role to add deputy
diff --git a/app/controllers/api/v1/organizations_controller.rb b/app/controllers/api/v1/organizations_controller.rb index abc1234..def5678 100644 --- a/app/controllers/api/v1/organizations_controller.rb +++ b/app/controllers/api/v1/organizations_controller.rb @@ -9,6 +9,8 @@ if params[:latitude].present? and...
Return a 500 call if insufficient parameters are provided
diff --git a/app/controllers/document_collections_controller.rb b/app/controllers/document_collections_controller.rb index abc1234..def5678 100644 --- a/app/controllers/document_collections_controller.rb +++ b/app/controllers/document_collections_controller.rb @@ -2,6 +2,7 @@ def show expire_on_next_scheduled_pu...
Set meta description on doc collection show
diff --git a/vagrant-hivemind.gemspec b/vagrant-hivemind.gemspec index abc1234..def5678 100644 --- a/vagrant-hivemind.gemspec +++ b/vagrant-hivemind.gemspec @@ -14,14 +14,6 @@ spec.homepage = "https://github.com/napramirez/vagrant-hivemind" spec.license = "MIT" - # Prevent pushing this gem to RubyGem...
Make this available in RubyGems.org
diff --git a/spec/buckaroo_client/configuration_spec.rb b/spec/buckaroo_client/configuration_spec.rb index abc1234..def5678 100644 --- a/spec/buckaroo_client/configuration_spec.rb +++ b/spec/buckaroo_client/configuration_spec.rb @@ -5,6 +5,20 @@ it "defines `#{name}' getter and setter" do subject.public_send...
Make sure Configuration uses ENV variables on initialize
diff --git a/spec/javascripts/javascript_spec_server.rb b/spec/javascripts/javascript_spec_server.rb index abc1234..def5678 100644 --- a/spec/javascripts/javascript_spec_server.rb +++ b/spec/javascripts/javascript_spec_server.rb @@ -1,8 +1,11 @@+require 'rack' + class JavascriptSpecServer < Struct.new(:port, :root) + ...
Kill Rack access logs in test Lots of noise: gone.
diff --git a/lib/datastax_rails/types/dynamic_set.rb b/lib/datastax_rails/types/dynamic_set.rb index abc1234..def5678 100644 --- a/lib/datastax_rails/types/dynamic_set.rb +++ b/lib/datastax_rails/types/dynamic_set.rb @@ -6,7 +6,7 @@ class DynamicSet < Set include DirtyCollection - delegate :join, to: ...
Allow indexing into a Set in order to treat it more like an array
diff --git a/test/integration/default/default_spec.rb b/test/integration/default/default_spec.rb index abc1234..def5678 100644 --- a/test/integration/default/default_spec.rb +++ b/test/integration/default/default_spec.rb @@ -22,3 +22,11 @@ describe ssh_config do its('UseRoaming') { should eq use_roaming_value } end...
Test that ssh to localhost works. This test fails with the Dokken .kitchen.yml, used by Travis CI, when run against v2.4.0 of the cookbook. It passes against the latest version on my branch (6276ab70b). It's not a particularly nice test, so I've not (yet?) included it in my PR https://github.com/chef-cookbooks/openss...
diff --git a/lib/walk.rb b/lib/walk.rb index abc1234..def5678 100644 --- a/lib/walk.rb +++ b/lib/walk.rb @@ -1,6 +1,9 @@ require "walk/version" module Walk + + CURRENT_DIR = '.' + PARENT_DIR = '..' def self.walk(root, topdown=true, followlinks=false) Enumerator.new do |enum| @@ -16,7 +19,7 @@ Dir....
Use constant for '.' and '..' dirs
diff --git a/gem-search.gemspec b/gem-search.gemspec index abc1234..def5678 100644 --- a/gem-search.gemspec +++ b/gem-search.gemspec @@ -14,11 +14,11 @@ gem.require_paths = ["lib"] gem.version = Gem::Search::VERSION - gem.add_dependency 'slop' - gem.add_dependency 'json' + gem.add_dependency 'slop', '~>...
Update middlewares: slop, json, webmock
diff --git a/lib/manageiq/providers/lenovo/engine.rb b/lib/manageiq/providers/lenovo/engine.rb index abc1234..def5678 100644 --- a/lib/manageiq/providers/lenovo/engine.rb +++ b/lib/manageiq/providers/lenovo/engine.rb @@ -3,6 +3,10 @@ module Lenovo class Engine < ::Rails::Engine isolate_namespace Man...
Change plugin common methods to class methods
diff --git a/lib/rubocop/cop/naming/variable_name.rb b/lib/rubocop/cop/naming/variable_name.rb index abc1234..def5678 100644 --- a/lib/rubocop/cop/naming/variable_name.rb +++ b/lib/rubocop/cop/naming/variable_name.rb @@ -5,15 +5,36 @@ module Naming # This cop makes sure that all variables use the configured ...
Fix up Naming/VariabeName cop and its documentation
diff --git a/spec/mailers/notifier_spec.rb b/spec/mailers/notifier_spec.rb index abc1234..def5678 100644 --- a/spec/mailers/notifier_spec.rb +++ b/spec/mailers/notifier_spec.rb @@ -1,9 +1,10 @@ require 'rails_helper' resource 'NotifierMailer' do + let(:service_1) { create :service } example 'Returning a nested d...
Create service for notifier mailer test
diff --git a/spec/support/simpleservice.rb b/spec/support/simpleservice.rb index abc1234..def5678 100644 --- a/spec/support/simpleservice.rb +++ b/spec/support/simpleservice.rb @@ -0,0 +1,15 @@+require './spec/support/simpleservice.pb' + +module Elementary + module Rspec + class Simple + def echo + puts...
Add an actual service definition that does "work" for the tests
diff --git a/page_title_helper.gemspec b/page_title_helper.gemspec index abc1234..def5678 100644 --- a/page_title_helper.gemspec +++ b/page_title_helper.gemspec @@ -1,20 +1,20 @@ # -*- encoding: utf-8 -*- -$:.push File.expand_path("../lib", __FILE__) -require "page_title_helper/version" +$:.push File.expand_path('../li...
[CLEANUP] Use single quotes for strings in the gemspec file Closes #12
diff --git a/guard-minitest.gemspec b/guard-minitest.gemspec index abc1234..def5678 100644 --- a/guard-minitest.gemspec +++ b/guard-minitest.gemspec @@ -1,3 +1,5 @@+# encoding: utf-8 + $:.push File.expand_path('../lib', __FILE__) require 'guard/minitest/version'
Add a `encoding` declaration to the gemspec
diff --git a/devise_castle.gemspec b/devise_castle.gemspec index abc1234..def5678 100644 --- a/devise_castle.gemspec +++ b/devise_castle.gemspec @@ -10,14 +10,14 @@ s.homepage = 'https://github.com/castle/devise_castle' s.summary = 'Devise extension for Castle' s.description = 'Devise extension for Castle. Secu...
Update castle-rb dependency to 1.2.13
diff --git a/htmlbeautifier.gemspec b/htmlbeautifier.gemspec index abc1234..def5678 100644 --- a/htmlbeautifier.gemspec +++ b/htmlbeautifier.gemspec @@ -9,8 +9,6 @@ s.email = "pbattley@gmail.com" s.homepage = "http://github.com/threedaymonk/htmlbeautifier" s.license = "MIT" - - s...
Remove deprecated has_rdoc in gemspec
diff --git a/db/seeds.rb b/db/seeds.rb index abc1234..def5678 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -6,4 +6,4 @@ # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) # Mayor.create(name: 'Emanuel', city: cities.first) -Movietheater.create(name: "Chicago Movie Theater")+# Movietheater.cre...
Add a movietheater via seed data.
diff --git a/db/seeds.rb b/db/seeds.rb index abc1234..def5678 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -1,6 +1,6 @@ def find_factories_by_class(klass) FactoryBot.factories.select do |factory| - factory.instance_variable_get(:@class_name) == klass || factory.instance_variable_get(:@name) == klass.model_name.s...
Adjust find_factories_by_class to work with Strings instead of Classes
diff --git a/db/seeds.rb b/db/seeds.rb index abc1234..def5678 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -4,7 +4,7 @@ DO $do$ BEGIN - IF NOT EXISTS ( SELECT FROM pg_catalog.pg_roles WHERE rolname = 'read_only') THEN + IF NOT EXISTS ( SELECT * FROM pg_catalog.pg_roles WHERE rolname =...
Fix bug in SQL command
diff --git a/db/seeds.rb b/db/seeds.rb index abc1234..def5678 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -2,7 +2,7 @@ page_num = 1 -while page_num < 501 # First 500 Pages +while page_num < 251 # First 500 Pages item_num = 0 page = Nokogiri::HTML(open("http://top.cafe.daum.net/_c21_/category_list?type=sub&p...
Reduce the number of pages to scrape
diff --git a/db/seeds.rb b/db/seeds.rb index abc1234..def5678 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -3,13 +3,27 @@ ENV['MQTT_HOST'] = "blooper.io" ENV['OS_UPDATE_SERVER'] = "http://blah.com" ENV['FW_UPDATE_SERVER'] = "http://test.com" - User.where(email: "admin@admin.com").destroy_all + ...
Add plant records to seed.rb, no pun intended
diff --git a/db/seeds.rb b/db/seeds.rb index abc1234..def5678 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -1,7 +1,20 @@-# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setu...
Write seed script using source data
diff --git a/haml-rails.gemspec b/haml-rails.gemspec index abc1234..def5678 100644 --- a/haml-rails.gemspec +++ b/haml-rails.gemspec @@ -14,11 +14,11 @@ s.rubyforge_project = "haml-rails" s.required_rubygems_version = ">= 1.3.6" - s.add_dependency "rails", "~>3.0.0.rc" + s.add_dependency "rails", "~>3....
Use at least Rails 3.0 final
diff --git a/Casks/unifi-controller-beta.rb b/Casks/unifi-controller-beta.rb index abc1234..def5678 100644 --- a/Casks/unifi-controller-beta.rb +++ b/Casks/unifi-controller-beta.rb @@ -0,0 +1,13 @@+cask :v1 => 'unifi-controller-beta' do + version '4.6.4-ade9eed' + sha256 'e2cc1bbef8419320a5a8a52a3fb3cff341746cb78e65e...
Add UniFi Controller Beta (version 4.6.4) This adds the UniFi Controller beta software to Cask Versions.
diff --git a/lib/stitch/compilers/coffeescript.rb b/lib/stitch/compilers/coffeescript.rb index abc1234..def5678 100644 --- a/lib/stitch/compilers/coffeescript.rb +++ b/lib/stitch/compilers/coffeescript.rb @@ -12,6 +12,8 @@ def compile(path) source = File.read(path) CoffeeScript.compile(source) + re...
Raise custom error on CoffeeScript compile fail.
diff --git a/lib/tasks/medical_safety_alerts.rake b/lib/tasks/medical_safety_alerts.rake index abc1234..def5678 100644 --- a/lib/tasks/medical_safety_alerts.rake +++ b/lib/tasks/medical_safety_alerts.rake @@ -0,0 +1,12 @@+namespace :medical_safety_alerts do + desc "Change type of medical alerts" + task :change_alert_...
Add a rake task to move medical alerts from one category to another This could probably be made more general and thus more useful in future (it's based on the country-rename tasks) but that seems like overkill for the current situation
diff --git a/lib/tengai/vector_ephemeris_table.rb b/lib/tengai/vector_ephemeris_table.rb index abc1234..def5678 100644 --- a/lib/tengai/vector_ephemeris_table.rb +++ b/lib/tengai/vector_ephemeris_table.rb @@ -18,7 +18,7 @@ class Row include Virtus - attribute :jdct, Date + attribute :jdct, DateTime ...
Change jdct attribute to DateTime type on EphemerisTable::Row
diff --git a/Formula/php53-pspell.rb b/Formula/php53-pspell.rb index abc1234..def5678 100644 --- a/Formula/php53-pspell.rb +++ b/Formula/php53-pspell.rb @@ -10,7 +10,7 @@ depends_on 'aspell' def install - Dir.chdir "ext/pcntl" + Dir.chdir "ext/pspell" # See https://github.com/mxcl/homebrew/pull/5947...
Fix pspell module for PHP 5.3 (wrong build path)
diff --git a/Casks/disk-inventory-x.rb b/Casks/disk-inventory-x.rb index abc1234..def5678 100644 --- a/Casks/disk-inventory-x.rb +++ b/Casks/disk-inventory-x.rb @@ -1,5 +1,6 @@ class DiskInventoryX < Cask - url 'http://www.alice-dsl.net/tjark.derlien/DIX1.0Universal.dmg' + url 'http://www.alice-dsl.net/tjark.derlien/...
Fix Disk Inventory X 403 error
diff --git a/metadata.rb b/metadata.rb index abc1234..def5678 100644 --- a/metadata.rb +++ b/metadata.rb @@ -15,7 +15,7 @@ depends 'apache2', '>= 2.0' depends 'zap', '>= 0.6.0' -%w( build-essential php nginx nginx_simplecgi yum-epel nrpe ).each do |cb| +%w( build-essential php chef_nginx nginx_simplecgi yum-epel nrp...
Change nginx deps to chef_nginx The nginx cookbook is deprecated for the chef_nginx. So this cookbooks should use the supported chef_nginx dependancy.
diff --git a/metadata.rb b/metadata.rb index abc1234..def5678 100644 --- a/metadata.rb +++ b/metadata.rb @@ -6,7 +6,7 @@ long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) version "0.2.12" -recipe "opscode-bifrost", "Installs Erlang and rebar (for now)" +recipe "api_server", "Installs ...
Add info for api_server recipe and other cleanup. - Remove reference to deprecated default recipe. - Remove unnecessary build-essentials dependency.
diff --git a/mlb.gemspec b/mlb.gemspec index abc1234..def5678 100644 --- a/mlb.gemspec +++ b/mlb.gemspec @@ -5,8 +5,8 @@ gem.add_dependency 'faraday', '~> 0.7' gem.add_dependency 'faraday_middleware', '~> 0.8' gem.add_dependency 'json', '~> 1.6' + gem.add_development_dependency 'maruku' gem.add_development_...
Use maruku instead of rdiscount for compatibility with JRuby and Rubinius in 1.9 mode
diff --git a/lib/path.rb b/lib/path.rb index abc1234..def5678 100644 --- a/lib/path.rb +++ b/lib/path.rb @@ -1,22 +1,10 @@ module Nesta class Path - @@local = "local" - @@themes = "themes" - - def self.local - @@local - end - - def self.local=(path) - @@local = path - end + @lo...
Use attr_accessor to create Path.local and Path.themes.
diff --git a/lib/pdoc.rb b/lib/pdoc.rb index abc1234..def5678 100644 --- a/lib/pdoc.rb +++ b/lib/pdoc.rb @@ -17,6 +17,10 @@ require 'pdoc/parser' module PDoc + def self.run(options = {}) + Runner.new(options.dup).run + end + def self.copy_templates(template_type, destination) dir = File.expand_path(de...
Add a PDoc.run class method for convenience.
diff --git a/lib/poms.rb b/lib/poms.rb index abc1234..def5678 100644 --- a/lib/poms.rb +++ b/lib/poms.rb @@ -3,6 +3,7 @@ require 'poms/errors/authentication_error' require 'json' +# Main interface for the POMS gem module Poms extend self @@ -12,10 +13,17 @@ @origin = origin end - def media(mid) + de...
Generalize fetch method to be called with either array or single mid
diff --git a/stdlib/rbconfig.rb b/stdlib/rbconfig.rb index abc1234..def5678 100644 --- a/stdlib/rbconfig.rb +++ b/stdlib/rbconfig.rb @@ -15,6 +15,5 @@ end # required for mspec it would appear -RUBY_NAME = 'opal' -RUBY_EXE = 'opal' -RUBY_PATCHLEVEL = "327" +RUBY_EXE = 'bundle exec bin/opal' +RUBY_PATCHLEVEL = 0
Define only the necessary constants for MSpec
diff --git a/metadata.rb b/metadata.rb index abc1234..def5678 100644 --- a/metadata.rb +++ b/metadata.rb @@ -8,3 +8,4 @@ depends 'git' depends 'packagecloud' +depends 'build-essential'
Fix newb dependency mistake. Thanks Foodcritic!
diff --git a/spec/lib/conjure/view/application_view_spec.rb b/spec/lib/conjure/view/application_view_spec.rb index abc1234..def5678 100644 --- a/spec/lib/conjure/view/application_view_spec.rb +++ b/spec/lib/conjure/view/application_view_spec.rb @@ -2,15 +2,24 @@ module Conjure::View describe ApplicationView do - ...
Refactor ApplicationViewSpec to better support multiple test cases
diff --git a/Formula/midnight-commander.rb b/Formula/midnight-commander.rb index abc1234..def5678 100644 --- a/Formula/midnight-commander.rb +++ b/Formula/midnight-commander.rb @@ -1,26 +1,15 @@ require 'formula' class MidnightCommander <Formula - url 'http://www.midnight-commander.org/downloads/mc-4.7.5.tar.bz2'...
Revert "Modified formula for MC, it now supports --HEAD opt" This reverts commit 50bd66af99cfaec4501bd37b0938e18c93198a83.
diff --git a/GSKStretchyHeaderView.podspec b/GSKStretchyHeaderView.podspec index abc1234..def5678 100644 --- a/GSKStretchyHeaderView.podspec +++ b/GSKStretchyHeaderView.podspec @@ -1,11 +1,13 @@ Pod::Spec.new do |s| s.name = "GSKStretchyHeaderView" - s.version = "0.1.0" - s.summary = ...
Fix podspec to be able to release a pod
diff --git a/KTSwiftExtensions.podspec b/KTSwiftExtensions.podspec index abc1234..def5678 100644 --- a/KTSwiftExtensions.podspec +++ b/KTSwiftExtensions.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'KTSwiftExtensions' - s.version = '0.11.0' + s.version = '0.12.0' s.license = { :type => 'MIT', :file => ...
Support osx with valid dependencies previously supporting only ios
diff --git a/Library/Formula/jython.rb b/Library/Formula/jython.rb index abc1234..def5678 100644 --- a/Library/Formula/jython.rb +++ b/Library/Formula/jython.rb @@ -3,10 +3,16 @@ class Jython <Formula url "http://downloads.sourceforge.net/project/jython/jython/2.5.1/jython_installer-2.5.1.jar", :using => :nounz...
Update Jython HEAD to 2.5.2rc3
diff --git a/no_phone.rb b/no_phone.rb index abc1234..def5678 100644 --- a/no_phone.rb +++ b/no_phone.rb @@ -5,7 +5,7 @@ if params["CallStatus"] == "ringing" && match = params["To"].match(/sip:(\+?\d+)@#{Regexp.escape(ENV["TWILIO_SIP_ENDPOINT"])}/) builder do |xml| xml.Response do |r| - r.D...
Set caller ID per Twilio requirement
diff --git a/metadata.rb b/metadata.rb index abc1234..def5678 100644 --- a/metadata.rb +++ b/metadata.rb @@ -9,4 +9,4 @@ supports 'ubuntu', '>= 12.04' depends 'ohai' -depends 'et_fog', '~> 1.1' +depends 'et_fog', '>= 1.1.0'
Use "greater than" version constraint for et_fog cookbook
diff --git a/gemfile_arranger.gemspec b/gemfile_arranger.gemspec index abc1234..def5678 100644 --- a/gemfile_arranger.gemspec +++ b/gemfile_arranger.gemspec @@ -16,7 +16,7 @@ spec.files = `git ls-files -z`.split("\x0") spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } spec.test_fi...
Remove config from spec require path
diff --git a/db/migrate/20160724150038_default_date_trabajos.rb b/db/migrate/20160724150038_default_date_trabajos.rb index abc1234..def5678 100644 --- a/db/migrate/20160724150038_default_date_trabajos.rb +++ b/db/migrate/20160724150038_default_date_trabajos.rb @@ -1,4 +1,4 @@-class DefaultDateTrabajos < ActiveRecord::M...
Fix latest migration was rails 5 error
diff --git a/features/support/auth.rb b/features/support/auth.rb index abc1234..def5678 100644 --- a/features/support/auth.rb +++ b/features/support/auth.rb @@ -1,9 +1,4 @@ module Auth - def backdoor_login(user) - visit "/backdoor-login?email=#{CGI.escape(user.email)}" - @current_user = user - end - def curr...
Remove more backdoor login debris.
diff --git a/spec/integration_spec.rb b/spec/integration_spec.rb index abc1234..def5678 100644 --- a/spec/integration_spec.rb +++ b/spec/integration_spec.rb @@ -5,15 +5,17 @@ describe BirdsController, type: :controller do context "finds bird by id" do let(:mockingbird){ double("Bird") } - before{ expect(Bird...
Make expectations explicit inside integration test
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 @@ -7,4 +7,6 @@ it { should validate_presence_of :email } it { should validate_presence_of :password } + it { should validate_uniqueness_of :email } + e...
Add new User unit test to check uniqueness of email
diff --git a/spec/support/with_env.rb b/spec/support/with_env.rb index abc1234..def5678 100644 --- a/spec/support/with_env.rb +++ b/spec/support/with_env.rb @@ -0,0 +1,25 @@+# frozen_string_literal: true + +module Support + module WithEnv + # Allows setting temporary ENV variables for a test + # + # Usage: + ...
Add Support::WithEnv for handling ENV in specs Support::WithEnv allows executing a block with specified environment variables
diff --git a/DLAlertController.podspec b/DLAlertController.podspec index abc1234..def5678 100644 --- a/DLAlertController.podspec +++ b/DLAlertController.podspec @@ -1,14 +1,14 @@ Pod::Spec.new do |s| s.name = "DLAlertController" - s.version = "0.0.1" + s.version = "0.0.2" s.summary...
Update pod spec to v0.0.2
diff --git a/health_inspector.gemspec b/health_inspector.gemspec index abc1234..def5678 100644 --- a/health_inspector.gemspec +++ b/health_inspector.gemspec @@ -18,6 +18,7 @@ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } s.require_paths = ["lib"] + s.add_development_dependenc...
Add rake as a dev dep
diff --git a/Foursquare-API-v2.podspec b/Foursquare-API-v2.podspec index abc1234..def5678 100644 --- a/Foursquare-API-v2.podspec +++ b/Foursquare-API-v2.podspec @@ -1,12 +1,12 @@ Pod::Spec.new do |s| s.name = "Foursquare-API-v2" - s.version = "1.4.3" + s.version = "1.4.4" s.summary = "Obj...
Update tag version in podspec
diff --git a/lib/asteroids/missile/missile_physics.rb b/lib/asteroids/missile/missile_physics.rb index abc1234..def5678 100644 --- a/lib/asteroids/missile/missile_physics.rb +++ b/lib/asteroids/missile/missile_physics.rb @@ -12,6 +12,7 @@ object.x %= 800 object.y %= 600 object.lifespan -= 0.1 + ...
Implement the removing of the missles.
diff --git a/homebrew/ruby-install.rb b/homebrew/ruby-install.rb index abc1234..def5678 100644 --- a/homebrew/ruby-install.rb +++ b/homebrew/ruby-install.rb @@ -2,7 +2,7 @@ desc "Install Ruby, JRuby, Rubinius, MagLev, or mruby" homepage "https://github.com/postmodern/ruby-install#readme" url "https://github.com...
Switch homebrew formula to use SHA256.
diff --git a/metadata.rb b/metadata.rb index abc1234..def5678 100644 --- a/metadata.rb +++ b/metadata.rb @@ -3,6 +3,6 @@ maintainer_email "nkantrowitz@crypticstudios.com" license "Apache 2.0" description "Install and configure the collectd monitoring daemon and plugins" -long_description IO.read(File.jo...
Read the long description from the correctly named file
diff --git a/metadata.rb b/metadata.rb index abc1234..def5678 100644 --- a/metadata.rb +++ b/metadata.rb @@ -10,7 +10,7 @@ depends 'apt' depends 'ubuntu_base', '0.7.0' depends 'octobase', '0.5.0' -depends 'docker', '0.4.0' +depends 'docker', '0.6.0' depends 'redis' depends 'nodejs' depends 'hipache'
Make sure to use the newer Docker recipe.
diff --git a/metadata.rb b/metadata.rb index abc1234..def5678 100644 --- a/metadata.rb +++ b/metadata.rb @@ -4,7 +4,7 @@ license 'Apache v2.0' description 'Installs/Configures consul' long_description 'Installs/Configures consul' -version '0.4.4' +version '0.4.3' recipe 'consul', 'Installs and starts consul servic...
Revert "Bumped version to 0.4.4" This reverts commit 7c8b9f478b37b26253df73ff8d00c4b43800bebf.
diff --git a/app/controllers/categories_controller.rb b/app/controllers/categories_controller.rb index abc1234..def5678 100644 --- a/app/controllers/categories_controller.rb +++ b/app/controllers/categories_controller.rb @@ -2,6 +2,7 @@ skip_authorization_check def index - @categories ||= CategoryDecorator.de...
Load all subcategories at once
diff --git a/lib/input/support/draftmodeformatting.rb b/lib/input/support/draftmodeformatting.rb index abc1234..def5678 100644 --- a/lib/input/support/draftmodeformatting.rb +++ b/lib/input/support/draftmodeformatting.rb @@ -5,7 +5,7 @@ def DraftModeFormatting::markup paragraph, creator if not $style[:final] ...
Make sure there is a space for the first sentence in a paragraph, before highlighting
diff --git a/test/models/car.rb b/test/models/car.rb index abc1234..def5678 100644 --- a/test/models/car.rb +++ b/test/models/car.rb @@ -1,5 +1,5 @@ class Car < ActiveRecord::Base - validates :make, :model, presence: true + validates :make, :model, :presence => true translates :make, :model end
Use Ruby 1.8 hash syntax
diff --git a/app/lib/project_sites_https_detective.rb b/app/lib/project_sites_https_detective.rb index abc1234..def5678 100644 --- a/app/lib/project_sites_https_detective.rb +++ b/app/lib/project_sites_https_detective.rb @@ -13,8 +13,8 @@ repo_url = current[:repo_url] @results = {} - https_pattern = %r{^h...
Fix sites_https detective so it's case-insensitive URLs are traditionally lower-case, but technically HTTP: also works, so let's detect that as well. Signed-off-by: David A. Wheeler <9ae72d22d8b894b865a7a496af4fab6320e6abb2@dwheeler.com>
diff --git a/lib/vagrant-vbguest/installers/redhat.rb b/lib/vagrant-vbguest/installers/redhat.rb index abc1234..def5678 100644 --- a/lib/vagrant-vbguest/installers/redhat.rb +++ b/lib/vagrant-vbguest/installers/redhat.rb @@ -20,7 +20,9 @@ end def dependencies - packages = ['kernel-devel-`uname -r`...
Add the binutils package as a dependency ref#188
diff --git a/app/jobs/welcome_email_job.rb b/app/jobs/welcome_email_job.rb index abc1234..def5678 100644 --- a/app/jobs/welcome_email_job.rb +++ b/app/jobs/welcome_email_job.rb @@ -2,7 +2,7 @@ queue_as :mailer def perform(user_id) - user = User.find_by(user_id) + user = User.find_by(id: user_id) UserM...
Fix syntax error in welcome email job
diff --git a/app/serializers/innovation_serializer.rb b/app/serializers/innovation_serializer.rb index abc1234..def5678 100644 --- a/app/serializers/innovation_serializer.rb +++ b/app/serializers/innovation_serializer.rb @@ -1,5 +1,5 @@ class InnovationSerializer < ActiveModel::Serializer - attributes :title, :abstrac...
Add ID to innovations serializer
diff --git a/app/models/group_hierarchy.rb b/app/models/group_hierarchy.rb index abc1234..def5678 100644 --- a/app/models/group_hierarchy.rb +++ b/app/models/group_hierarchy.rb @@ -1,4 +1,7 @@ class GroupHierarchy + FIELDS = [:id, :name, :slug, :parent_id] + LiteGroup = Struct.new(*FIELDS) + def initialize(root) ...
Make group hierarchy generation efficient It now uses one query instead of one for every group in the database.
diff --git a/knife-topo.gemspec b/knife-topo.gemspec index abc1234..def5678 100644 --- a/knife-topo.gemspec +++ b/knife-topo.gemspec @@ -8,8 +8,8 @@ spec.version = Knife::Topo::VERSION spec.authors = ["Christine Draper"] spec.email = ["christine_draper@thirdwaveinsights.com"] - spec.summary...
Fix typo in gemspec summary and add a longer description
diff --git a/premailer.gemspec b/premailer.gemspec index abc1234..def5678 100644 --- a/premailer.gemspec +++ b/premailer.gemspec @@ -17,4 +17,5 @@ s.add_dependency('htmlentities', '>= 4.0.0') s.add_development_dependency('hpricot', '>= 0.8.3') s.add_development_dependency('nokogiri', '>= 1.4.4') + s.add_develo...
Allow 'bundle rake test' for test purposes
diff --git a/app/controllers/following_controller.rb b/app/controllers/following_controller.rb index abc1234..def5678 100644 --- a/app/controllers/following_controller.rb +++ b/app/controllers/following_controller.rb @@ -1,5 +1,19 @@ class FollowingController < ApplicationController + before_filter :authenticate, :exc...
Support follow and unfollow actions.
diff --git a/app/controllers/questions_controller.rb b/app/controllers/questions_controller.rb index abc1234..def5678 100644 --- a/app/controllers/questions_controller.rb +++ b/app/controllers/questions_controller.rb @@ -14,8 +14,9 @@ def create @question = Question.new(question_params) + p params if @...
Change redirect to root path for update and create
diff --git a/app/controllers/responses_controller.rb b/app/controllers/responses_controller.rb index abc1234..def5678 100644 --- a/app/controllers/responses_controller.rb +++ b/app/controllers/responses_controller.rb @@ -16,7 +16,7 @@ if @response.save redirect_to parent_url(@parent) else - flash[:...
Change flash message to fit styling
diff --git a/lib/human_power/rails/controller.rb b/lib/human_power/rails/controller.rb index abc1234..def5678 100644 --- a/lib/human_power/rails/controller.rb +++ b/lib/human_power/rails/controller.rb @@ -8,7 +8,7 @@ end # render text: something does not give correct content type - render text...
Use Mime::TEXT for content type
diff --git a/lib/mini_check/checks_collection.rb b/lib/mini_check/checks_collection.rb index abc1234..def5678 100644 --- a/lib/mini_check/checks_collection.rb +++ b/lib/mini_check/checks_collection.rb @@ -1,12 +1,7 @@ module MiniCheck class ChecksCollection < Array def to_hash - resp = {} - each.map d...
Use functional style to convert the array into hash
diff --git a/lib/dynadot/api.rb b/lib/dynadot/api.rb index abc1234..def5678 100644 --- a/lib/dynadot/api.rb +++ b/lib/dynadot/api.rb @@ -32,6 +32,10 @@ return Hash[results] end + def availabile?(domain) + search(domain)[domain] + end + private def parse(response) data = resp...
Implement a short-hand method for availability checking for single domain
diff --git a/app.rb b/app.rb index abc1234..def5678 100644 --- a/app.rb +++ b/app.rb @@ -24,7 +24,8 @@ end configure do - use Rack::Session::Pool, :expire_after => 2592000, :secret => (ENV['SESSION_SECRET'] || 'Default secret... Set the SESSION_SECRET environment variable!') + set :session_secret, ENV['SESSION_SECRE...
Use sinatra's default session duration
diff --git a/lib/tasks/css.rake b/lib/tasks/css.rake index abc1234..def5678 100644 --- a/lib/tasks/css.rake +++ b/lib/tasks/css.rake @@ -2,7 +2,7 @@ desc "Generate styleguide" task :styleguide do puts "--> creating styleguide" - Bundler.clean_system('bin/dress_code config/styleguide.yml') + system('bin/...
Use `system` instead of `Bundler.clean_system` for dress_code Bundler.clean_system doesnt have BUNDLE_PATH set correctly Change-Id: Ib2760786e5dfbc7909f55ddd5f401a96fcf2a430 Reviewed-on: https://gerrit.instructure.com/71927 Reviewed-by: Tyler Pickett <3f20fcf21b1970c94966160adcf831eedd808a06@instructure.com> Tested-b...
diff --git a/lib/uptimerobot.rb b/lib/uptimerobot.rb index abc1234..def5678 100644 --- a/lib/uptimerobot.rb +++ b/lib/uptimerobot.rb @@ -36,6 +36,33 @@ end def graph_data(monitor) + points = [] + last_x = 1 + total_value = 0 + + monitor['responsetime'].reverse.each do |value| + points.push({ x...
Implement random_monitor, split contruction of graph point and random graph
diff --git a/lib/cangaroo/engine.rb b/lib/cangaroo/engine.rb index abc1234..def5678 100644 --- a/lib/cangaroo/engine.rb +++ b/lib/cangaroo/engine.rb @@ -15,6 +15,7 @@ Rails.configuration.cangaroo.poll_jobs = [] Rails.configuration.cangaroo.basic_auth = false Rails.configuration.cangaroo.logger = nil...
Add a configurable HTTP client timeout option Some endpoints **cough** NetSuite **cough** take a long time to respond to HTTP requests. It would be very helpful if we could arbitrarily extend the default Net::HTTP timeouts that HTTParty is using on a case-by-case basis.
diff --git a/lib/inquest/reactor.rb b/lib/inquest/reactor.rb index abc1234..def5678 100644 --- a/lib/inquest/reactor.rb +++ b/lib/inquest/reactor.rb @@ -1,4 +1,9 @@ class Inquest::Reactor - def react!(user, notifiable, action) + def self.react!(user, notifiable, action) + raise NotYetImplementedError + end + + d...
Define methods at class level, not instance level
diff --git a/lib/operable/fields.rb b/lib/operable/fields.rb index abc1234..def5678 100644 --- a/lib/operable/fields.rb +++ b/lib/operable/fields.rb @@ -9,9 +9,10 @@ def operable_values raise "Please specify one or more fields via operable_on in your model definition!" if self.class.operable_fields.nil? - ...
Fix type issue on Ruby < 1.9
diff --git a/lib/squall/template.rb b/lib/squall/template.rb index abc1234..def5678 100644 --- a/lib/squall/template.rb +++ b/lib/squall/template.rb @@ -19,5 +19,12 @@ response = request(:post, "/templates/#{id}/make_public.json") response.first[1] end + + # Public: Lists grouped templates in the t...
Add ability to tap into the Template Store in OnApp 3.2
diff --git a/models/walkmydog/dog/job_location.rb b/models/walkmydog/dog/job_location.rb index abc1234..def5678 100644 --- a/models/walkmydog/dog/job_location.rb +++ b/models/walkmydog/dog/job_location.rb @@ -2,8 +2,8 @@ class JobLocation include DataMapper::Resource property :id, Serial - prope...
Add bigger precision to lng and lat
diff --git a/lib/active_merchant/billing/integrations/ipay88.rb b/lib/active_merchant/billing/integrations/ipay88.rb index abc1234..def5678 100644 --- a/lib/active_merchant/billing/integrations/ipay88.rb +++ b/lib/active_merchant/billing/integrations/ipay88.rb @@ -21,14 +21,14 @@ self.merch_key = key ...
Swap service_url and entry_url to play nice with ActiveMerchant's payment_service_for view helper
diff --git a/lib/tasks/webpack.rake b/lib/tasks/webpack.rake index abc1234..def5678 100644 --- a/lib/tasks/webpack.rake +++ b/lib/tasks/webpack.rake @@ -16,7 +16,6 @@ raise "Can't find our webpack config file at #{config_file}" end - result = `#{webpack_bin} --bail --config #{config_file} 2>&1` - rai...
Use rake's 'sh' command to handle errors & print output
diff --git a/JJGraphicsUtilities.podspec b/JJGraphicsUtilities.podspec index abc1234..def5678 100644 --- a/JJGraphicsUtilities.podspec +++ b/JJGraphicsUtilities.podspec @@ -1,14 +1,13 @@ Pod::Spec.new do |s| s.name = "JJGraphicsUtilities" - s.version = "0.0.2" + s.version = "0.0.3" s.platform ...
Update podspec to reflex 0.0.3 tag
diff --git a/lib/thredded/engine.rb b/lib/thredded/engine.rb index abc1234..def5678 100644 --- a/lib/thredded/engine.rb +++ b/lib/thredded/engine.rb @@ -31,7 +31,7 @@ end initializer 'thredded.setup_assets' do - Thredded::Engine.config.assets.precompile << /\Athredded.*(?:js|css)\z/ + Thredded::Eng...
[JRO] Prepend css/js precompile w/thredded assets
diff --git a/lib/tinymce/railtie.rb b/lib/tinymce/railtie.rb index abc1234..def5678 100644 --- a/lib/tinymce/railtie.rb +++ b/lib/tinymce/railtie.rb @@ -1,6 +1,7 @@ module TinyMCE def self.base [Rails.application.config.action_controller.asset_host, + Rails.application.config.relative_url_root, Rails....
Add support for asset paths in subfolder (via relative_url_root)
diff --git a/lib/tmdb-api/person.rb b/lib/tmdb-api/person.rb index abc1234..def5678 100644 --- a/lib/tmdb-api/person.rb +++ b/lib/tmdb-api/person.rb @@ -8,13 +8,29 @@ attr_reader *ATTRIBUTES + # Public: Get the basic person information for a specific person ID. + # + # id - The ID of the person. +...
Add comments on find and images methods on Person.
diff --git a/lib/trackets/client.rb b/lib/trackets/client.rb index abc1234..def5678 100644 --- a/lib/trackets/client.rb +++ b/lib/trackets/client.rb @@ -40,7 +40,7 @@ def payload { - language: "ruby", + type: "ruby", message: exception.message, c...
Send library name in type param
diff --git a/app/controllers/dashboard_controller.rb b/app/controllers/dashboard_controller.rb index abc1234..def5678 100644 --- a/app/controllers/dashboard_controller.rb +++ b/app/controllers/dashboard_controller.rb @@ -11,10 +11,14 @@ def build_ride if current_user.rides.any? last_ride = current_user.ri...
Use last distance values for ride form
diff --git a/app/controllers/educators_controller.rb b/app/controllers/educators_controller.rb index abc1234..def5678 100644 --- a/app/controllers/educators_controller.rb +++ b/app/controllers/educators_controller.rb @@ -30,6 +30,8 @@ def filtered_names(term, school) unfiltered = (school.educator_names_for_servi...
Handle case where search term isn't provided
diff --git a/test/unit/guide_edition_test.rb b/test/unit/guide_edition_test.rb index abc1234..def5678 100644 --- a/test/unit/guide_edition_test.rb +++ b/test/unit/guide_edition_test.rb @@ -1,6 +1,6 @@ require 'test_helper' -class GuideTest < ActiveSupport::TestCase +class GuideEditionTest < ActiveSupport::TestCase ...
Make test class unique so methods are not shadowed.
diff --git a/fuzzyfinder.rb b/fuzzyfinder.rb index abc1234..def5678 100644 --- a/fuzzyfinder.rb +++ b/fuzzyfinder.rb @@ -0,0 +1,10 @@+def fuzzyfinder(user_input, collection) + suggestions = [] + pattern = user_input.split('').join('.*') + collection.each do |item| + if /#{pattern}/.match(item) + suggestions....
Add simple implementation of FuzzyFinder
diff --git a/app/helpers/api/auth.rb b/app/helpers/api/auth.rb index abc1234..def5678 100644 --- a/app/helpers/api/auth.rb +++ b/app/helpers/api/auth.rb @@ -10,7 +10,7 @@ def authenticate!(account) session[:account_id] = account.id - session[:expires_at] = Time.zone.now + 1.minutes + session[:expires_at]...
Set 60min at expire of settion
diff --git a/knife-essentials.gemspec b/knife-essentials.gemspec index abc1234..def5678 100644 --- a/knife-essentials.gemspec +++ b/knife-essentials.gemspec @@ -21,6 +21,7 @@ s.add_development_dependency "chef-zero" s.add_development_dependency 'rspec' s.add_development_dependency 'rake' + s.add_development_de...
Add rdoc dev dependency for travis