diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/db/seeds.rb b/db/seeds.rb index abc1234..def5678 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -13,8 +13,8 @@ puts 'role: ' << role end puts 'DEFAULT USERS' -user = User.find_or_create_by_email :name => ENV['ADMIN_NAME'].dup, :email => ENV['ADMIN_EMAIL'].dup, :password => ENV['ADMIN_PASSWORD'].dup, :pa...
Update Seed. Need a label_name now
diff --git a/lib/frecon/base/variables.rb b/lib/frecon/base/variables.rb index abc1234..def5678 100644 --- a/lib/frecon/base/variables.rb +++ b/lib/frecon/base/variables.rb @@ -9,7 +9,7 @@ # Public: The FReCon API module. module FReCon - VERSION ||= "0.5.1" + VERSION = "0.5.1" @environment_variable = :developmen...
Switch back to old VERSION= syntax. This makes it documentable, and it helps to enforce best practices.
diff --git a/lib/generics/generic_type.rb b/lib/generics/generic_type.rb index abc1234..def5678 100644 --- a/lib/generics/generic_type.rb +++ b/lib/generics/generic_type.rb @@ -0,0 +1,101 @@+module Generics + class NotCompatibleError < StandardError + end + + class StrictType + # Return a subclass of StrictType t...
Add experimental Generic & Strict Types StrictType is basically just a wrapper for TypeChecker GenericType dynamically adjusts it's definition of shared class/modules until it finds a common ancestor that is not one that is common to basically all (e.g. Object, Kernel) --------------------------------------------------...
diff --git a/lib/hipchat/publisher/api.rb b/lib/hipchat/publisher/api.rb index abc1234..def5678 100644 --- a/lib/hipchat/publisher/api.rb +++ b/lib/hipchat/publisher/api.rb @@ -23,7 +23,7 @@ post.add_parameter 'message', message post.add_parameter 'color', params[:color] if params[:color] - ...
Fix notify parameter to post API
diff --git a/lib/syoboemon/parser/base.rb b/lib/syoboemon/parser/base.rb index abc1234..def5678 100644 --- a/lib/syoboemon/parser/base.rb +++ b/lib/syoboemon/parser/base.rb @@ -12,8 +12,6 @@ def configure_target_tag(tag_name) tag tag_name - end - end def expand_analysis_target_elements(element...
Remove the keyword "end", fixed grammar
diff --git a/lib/vagrant_cloud/account.rb b/lib/vagrant_cloud/account.rb index abc1234..def5678 100644 --- a/lib/vagrant_cloud/account.rb +++ b/lib/vagrant_cloud/account.rb @@ -37,9 +37,14 @@ def request(method, path, params = {}) params[:access_token] = access_token - arg = {:params => params} - ...
Use TLSv1 instead of default SSLv3 for vagrantcloud API server
diff --git a/lib/will_paginate/railtie.rb b/lib/will_paginate/railtie.rb index abc1234..def5678 100644 --- a/lib/will_paginate/railtie.rb +++ b/lib/will_paginate/railtie.rb @@ -4,21 +4,23 @@ module WillPaginate class Railtie < Rails::Railtie initializer "will_paginate.active_record" do |app| - if defined? ...
Use autoloading in Railtie so that framework loading isn't triggered by will_paginate
diff --git a/hookable.rb b/hookable.rb index abc1234..def5678 100644 --- a/hookable.rb +++ b/hookable.rb @@ -10,11 +10,10 @@ end post "/" do - puts request.inspect headers = { - "X-GitHub-Event" => request.env["X-Github-Event"], - "X-GitHub-Delivery" => request.env["X-Github-Delivery"], - "X-Hub-Sign...
Use env instead of request
diff --git a/spec/test_app/config/application.rb b/spec/test_app/config/application.rb index abc1234..def5678 100644 --- a/spec/test_app/config/application.rb +++ b/spec/test_app/config/application.rb @@ -32,6 +32,7 @@ # config.i18n.default_locale = :de # Do not swallow errors in after_commit/after_rollback ...
Comment out Rails 4.2-only line, since we want to support 4.1 too
diff --git a/core/class/allocate_spec.rb b/core/class/allocate_spec.rb index abc1234..def5678 100644 --- a/core/class/allocate_spec.rb +++ b/core/class/allocate_spec.rb @@ -10,6 +10,13 @@ klass = Class.allocate klass.constants.should_not == nil klass.methods.should_not == nil + end + + it "throws an exc...
Add spec for using a class allocated with Class.allocate
diff --git a/lib/overcommit/hook/post_checkout/base.rb b/lib/overcommit/hook/post_checkout/base.rb index abc1234..def5678 100644 --- a/lib/overcommit/hook/post_checkout/base.rb +++ b/lib/overcommit/hook/post_checkout/base.rb @@ -6,7 +6,6 @@ extend Forwardable def_delegators :@context, - :pr...
Remove modified_files delegator from PostCheckout::Base This was done in error in 8ee8707, since `Hook::Base` already defines a delegator for `modified_files`.
diff --git a/dpl.gemspec b/dpl.gemspec index abc1234..def5678 100644 --- a/dpl.gemspec +++ b/dpl.gemspec @@ -22,5 +22,9 @@ s.add_development_dependency 'json' # prereleases from Travis CI - s.version = s.version.to_s.succ + ".travis.#{ENV['TRAVIS_JOB_NUMBER']}" if ENV['CI'] + if ENV['CI'] + digits.s.version...
Fix version numbering when TEENY = 9
diff --git a/build_frameworks.rb b/build_frameworks.rb index abc1234..def5678 100644 --- a/build_frameworks.rb +++ b/build_frameworks.rb @@ -0,0 +1,61 @@+#!/usr/bin/env ruby + +modules = [ + "FirebaseAuthUI", + "FirebaseAnonymousAuthUI", + "FirebaseDatabaseUI", + "FirebaseEmailAuthUI", + "FirebaseFaceboo...
Add docs framework build script
diff --git a/ruby/billing-time-change.rb b/ruby/billing-time-change.rb index abc1234..def5678 100644 --- a/ruby/billing-time-change.rb +++ b/ruby/billing-time-change.rb @@ -0,0 +1,26 @@+# Billing Time Change (same date) with chargify_api_ares gem + +# Sets all billing times to 6:00 AM CDT (UTC -05:00) +# http://www.tim...
Add initial work on billing time change
diff --git a/test/models/product_picture_test.rb b/test/models/product_picture_test.rb index abc1234..def5678 100644 --- a/test/models/product_picture_test.rb +++ b/test/models/product_picture_test.rb @@ -1,7 +1,19 @@ require 'test_helper' class ProductPictureTest < ActiveSupport::TestCase - # test "the truth" do -...
Add tests for ProductPicture model
diff --git a/chikka_rails.gemspec b/chikka_rails.gemspec index abc1234..def5678 100644 --- a/chikka_rails.gemspec +++ b/chikka_rails.gemspec @@ -20,4 +20,6 @@ spec.add_development_dependency "bundler", "~> 1.6" spec.add_development_dependency "rake", "~> 10.0" + + spec.add_dependency "rails" end
Add rails as a dependency
diff --git a/config/deploy/production.rb b/config/deploy/production.rb index abc1234..def5678 100644 --- a/config/deploy/production.rb +++ b/config/deploy/production.rb @@ -1,6 +1,7 @@ server ENV['WEB_SERVER'], user: ENV['WEB_USER'], roles: %w{app web} server ENV['SIDEKIQ_SERVER'], user: ENV['SIDEKIQ_USER'], roles: %w...
Add a third sidekiq server
diff --git a/config/environments/test.rb b/config/environments/test.rb index abc1234..def5678 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -34,4 +34,6 @@ config.active_support.deprecation = :stderr config.active_support.test_order = :random + + config.active_record.raise_in_...
Enable errors raised in callbacks to be propagated Clears up another deprecation warning.
diff --git a/lib/cactu.rb b/lib/cactu.rb index abc1234..def5678 100644 --- a/lib/cactu.rb +++ b/lib/cactu.rb @@ -2,7 +2,7 @@ dir = File.dirname(__FILE__) $LOAD_PATH.unshift dir unless $LOAD_PATH.include?(dir) -load 'cactu/generator.rb' +require 'cactu/generator' unless defined?(Sass) require 'sass'
Change the way to require the generator file
diff --git a/YumiFacebookSDK/4.26.1/YumiFacebook.podspec b/YumiFacebookSDK/4.26.1/YumiFacebook.podspec index abc1234..def5678 100644 --- a/YumiFacebookSDK/4.26.1/YumiFacebook.podspec +++ b/YumiFacebookSDK/4.26.1/YumiFacebook.podspec @@ -0,0 +1,20 @@+Pod::Spec.new do |s| + name = "Facebook" + version = "4.26.1" + + s...
Update facebook sdk is 4.26.1
diff --git a/lib/generators/spina_articles/templates/create_spina_articles_table.rb b/lib/generators/spina_articles/templates/create_spina_articles_table.rb index abc1234..def5678 100644 --- a/lib/generators/spina_articles/templates/create_spina_articles_table.rb +++ b/lib/generators/spina_articles/templates/create_spi...
Update migration for image association
diff --git a/spec/sisimai_spec.rb b/spec/sisimai_spec.rb index abc1234..def5678 100644 --- a/spec/sisimai_spec.rb +++ b/spec/sisimai_spec.rb @@ -5,7 +5,15 @@ expect(Sisimai::VERSION).not_to be nil end - it 'does something useful' do - expect(false).to eq(true) + it 'does version() method' do + expect(S...
Implement test code for the added methods
diff --git a/couch_potato.gemspec b/couch_potato.gemspec index abc1234..def5678 100644 --- a/couch_potato.gemspec +++ b/couch_potato.gemspec @@ -18,6 +18,7 @@ s.add_development_dependency 'rspec', '>=2.0' s.add_development_dependency 'timecop' + s.add_development_dependency 'tzinfo' s.files = `...
Add tzinfo gem as development dependency. This uncovers some failing specs wrt the new time zone support.
diff --git a/config/deploy.rb b/config/deploy.rb index abc1234..def5678 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -16,6 +16,7 @@ #server details default_run_options[:pty] = true ssh_options[:keys] = [File.join(ENV["HOME"], ".ssh", "app@mhyee.com")] +ssh_options[:forward_agent] = true set :deploy_to, "/...
Use app user for git, forward SSH keys
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -4,6 +4,7 @@ match 'api/:action' => 'api' match 'subscribe/:url' => 'subscribe#confirm' + match 'import/finish' => 'import#finish' match 'import/:url' => 'import#fetch' match 'ab...
Fix opml import finish routing
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,7 +1,7 @@ Rails.application.routes.draw do root 'items#index' - - get '/users/new', to: 'users#new' + get '/users', to: 'users#index' + get '/users/new', to: 'users#new', as: 'new_use...
Create get /users to define path for get /users/new
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -21,6 +21,8 @@ end end - mount RailsAdmin::Engine => '/admin', as: 'rails_admin' + if (path = ENV['RAILS_ADMIN_PATH']).present? + mount RailsAdmin::Engine => path, as: 'rails_adm...
Make rails admin optional, enable with config variable.
diff --git a/app/controllers/api/timeslots_controller.rb b/app/controllers/api/timeslots_controller.rb index abc1234..def5678 100644 --- a/app/controllers/api/timeslots_controller.rb +++ b/app/controllers/api/timeslots_controller.rb @@ -24,6 +24,16 @@ end end + def destroy + @timeslot = Timeslot.find(param...
Add destroy route to api
diff --git a/app/controllers/money_history_controller.rb b/app/controllers/money_history_controller.rb index abc1234..def5678 100644 --- a/app/controllers/money_history_controller.rb +++ b/app/controllers/money_history_controller.rb @@ -1,6 +1,5 @@ class MoneyHistoryController < ApplicationController expose(:money_h...
Remove user expose from money history controller
diff --git a/app/controllers/usermovements_controller.rb b/app/controllers/usermovements_controller.rb index abc1234..def5678 100644 --- a/app/controllers/usermovements_controller.rb +++ b/app/controllers/usermovements_controller.rb @@ -1,39 +1,39 @@ class UsermovementsController < ApplicationController def index -...
Edit usermovements controller to change @movement to @usermovement
diff --git a/emcee.gemspec b/emcee.gemspec index abc1234..def5678 100644 --- a/emcee.gemspec +++ b/emcee.gemspec @@ -19,6 +19,7 @@ s.add_dependency "rails", "~> 4.0" + s.add_development_dependency "coffee-rails", "~> 4.0" s.add_development_dependency "sass", "~> 3.0" s.add_development_dependency "sqlite3" ...
Add development dependency for 'coffee-rails' For testing coffeescript processing
diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb index abc1234..def5678 100644 --- a/app/controllers/accounts_controller.rb +++ b/app/controllers/accounts_controller.rb @@ -12,7 +12,7 @@ def update_information @account = Account.find @current_user.current_account_id ...
Save the process where description and user_id is set
diff --git a/app/decorators/collection_decorator.rb b/app/decorators/collection_decorator.rb index abc1234..def5678 100644 --- a/app/decorators/collection_decorator.rb +++ b/app/decorators/collection_decorator.rb @@ -6,14 +6,19 @@ delegate :exists?, :empty?, to: :collection - def initialize(collection, decorator...
Allow collection decorator to receive arguments to be passed to each decorator
diff --git a/app/mailers/woodlock_welcome_mailer.rb b/app/mailers/woodlock_welcome_mailer.rb index abc1234..def5678 100644 --- a/app/mailers/woodlock_welcome_mailer.rb +++ b/app/mailers/woodlock_welcome_mailer.rb @@ -8,6 +8,6 @@ @greeting = "Hi #{user.first_name}! Thanks for your registration." - mail to: us...
Add reply_to inside mail class.
diff --git a/spec/factories.rb b/spec/factories.rb index abc1234..def5678 100644 --- a/spec/factories.rb +++ b/spec/factories.rb @@ -6,6 +6,10 @@ factory :client do name 'Example Client' client_type_id FactoryGirl.create(:client_type).id + + trait :business do + client_type FactoryGirl.create(:client_type, na...
Add 'Business' Trait to Client Factory
diff --git a/spec/repo_spec.rb b/spec/repo_spec.rb index abc1234..def5678 100644 --- a/spec/repo_spec.rb +++ b/spec/repo_spec.rb @@ -21,7 +21,7 @@ context "should log a message and exit" do before do Log.should_receive(:error).once - repository.stub(:path) { stub } + repository.stub(:p...
Fix failing spec in Ruby 1.9.2
diff --git a/app/controllers/gobierto_admin/gobierto_dashboards/dashboards_controller.rb b/app/controllers/gobierto_admin/gobierto_dashboards/dashboards_controller.rb index abc1234..def5678 100644 --- a/app/controllers/gobierto_admin/gobierto_dashboards/dashboards_controller.rb +++ b/app/controllers/gobierto_admin/gobi...
Check permissions for dashboards modal action
diff --git a/config/initializers/secret_token.rb b/config/initializers/secret_token.rb index abc1234..def5678 100644 --- a/config/initializers/secret_token.rb +++ b/config/initializers/secret_token.rb @@ -1,12 +1,17 @@-# Be sure to restart your server when you modify this file. +# Definitely change this when you deploy...
Use Discourse style secret token management
diff --git a/app/views/clients/search.json.jbuilder b/app/views/clients/search.json.jbuilder index abc1234..def5678 100644 --- a/app/views/clients/search.json.jbuilder +++ b/app/views/clients/search.json.jbuilder @@ -1,5 +1,6 @@-json.array!(@clients) do |client| - json.id client.id - json.label client.contact.full_na...
Revert "tidy indent and empty lines" This reverts commit 1d9b86167d1485dd106a6da7446a81044551e580.
diff --git a/examples/journey_planner.rb b/examples/journey_planner.rb index abc1234..def5678 100644 --- a/examples/journey_planner.rb +++ b/examples/journey_planner.rb @@ -7,7 +7,7 @@ summary_rows = planner.plan( :from => "Peterborough", :to => "London Kings Cross", - :time => Time.zone.parse("2010-11-08 03:00"...
Make example more likely to work on any given day.
diff --git a/spec/end_view_spec.rb b/spec/end_view_spec.rb index abc1234..def5678 100644 --- a/spec/end_view_spec.rb +++ b/spec/end_view_spec.rb @@ -1,6 +1,12 @@ require 'end_view' -Dir[File.join(__FILE__, '..', 'examples', '*.rb')].each { |f| require f } +require_relative 'examples/bar' +require_relative 'examples/b...
Use require_relative to require examples
diff --git a/spec/new_time_spec.rb b/spec/new_time_spec.rb index abc1234..def5678 100644 --- a/spec/new_time_spec.rb +++ b/spec/new_time_spec.rb @@ -5,18 +5,32 @@ expect(NewTime::VERSION).not_to be nil end - context "For a fixed time and place" do + context "For a fixed place" do let(:latitude) { -33.7...
Add more times in tests
diff --git a/spec/support/login.rb b/spec/support/login.rb index abc1234..def5678 100644 --- a/spec/support/login.rb +++ b/spec/support/login.rb @@ -6,7 +6,7 @@ end def current_user - Person.where(email: 'test.user@digital.moj.gov.uk').first + Person.where(email: 'test.user@digital.justice.gov.uk')...
Use valid emails in specs
diff --git a/workflow/lib/font_awesome.rb b/workflow/lib/font_awesome.rb index abc1234..def5678 100644 --- a/workflow/lib/font_awesome.rb +++ b/workflow/lib/font_awesome.rb @@ -1,7 +1,7 @@ module FontAwesome def self.icons - Dir.glob(File.expand_path('./icons/icon-*.png')).map do |path| - md = /\/icon-(.+)\....
Change icon's prefix to 'fa-' from 'icon-'
diff --git a/Casks/dnscrypt.rb b/Casks/dnscrypt.rb index abc1234..def5678 100644 --- a/Casks/dnscrypt.rb +++ b/Casks/dnscrypt.rb @@ -1,6 +1,6 @@ cask :v1 => 'dnscrypt' do - version '1.0.8' - sha256 '47954b33b6133fbc1c8736963797cc342874c25d50a1989990a29bb8c8173d04' + version '1.0.9' + sha256 '3d264e06ef71a7a57ac313a...
Upgrade DNSCrypt Proxy to 1.0.9
diff --git a/Casks/fontprep.rb b/Casks/fontprep.rb index abc1234..def5678 100644 --- a/Casks/fontprep.rb +++ b/Casks/fontprep.rb @@ -1,10 +1,10 @@ class Fontprep < Cask - version :latest - sha256 :no_check + version '3.1.1' + sha256 '769d64b78d1a8db42dcb02beff6f929670448f77259388c9d01692374be2ec46' - url 'http:/...
Update Fontprep URL, version, license URL has changed to Github, requiring to specify version.
diff --git a/Casks/akai-lpk25-editor.rb b/Casks/akai-lpk25-editor.rb index abc1234..def5678 100644 --- a/Casks/akai-lpk25-editor.rb +++ b/Casks/akai-lpk25-editor.rb @@ -0,0 +1,7 @@+class AkaiLpk25Editor < Cask + url 'http://6be54c364949b623a3c0-4409a68c214f3a9eeca8d0265e9266c0.r0.cf2.rackcdn.com/453/downloads/lpk25_ed...
Add Akai LPK25 Keyboard Editor Cask.
diff --git a/Casks/omniplan.rb b/Casks/omniplan.rb index abc1234..def5678 100644 --- a/Casks/omniplan.rb +++ b/Casks/omniplan.rb @@ -4,7 +4,7 @@ url 'https://www.omnigroup.com/download/latest/omniplan' name 'OmniPlan' - homepage 'http://www.omnigroup.com/products/omniplan/' + homepage 'https://www.omnigroup.co...
Fix homepage to use SSL in OmniPlan 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/spec/cloudat/dsl/schedule_spec.rb b/spec/cloudat/dsl/schedule_spec.rb index abc1234..def5678 100644 --- a/spec/cloudat/dsl/schedule_spec.rb +++ b/spec/cloudat/dsl/schedule_spec.rb @@ -1,8 +1,7 @@-require 'rufus-scheduler' require 'cloudat/dsl/schedule' describe Cloudat::Dsl::Schedule do - let(:schedul...
Remove the external dependency in the spec
diff --git a/coinbase-official.podspec b/coinbase-official.podspec index abc1234..def5678 100644 --- a/coinbase-official.podspec +++ b/coinbase-official.podspec @@ -14,7 +14,9 @@ s.platform = :ios, '7.0' s.requires_arc = true + s.source_files = 'Pod/Classes/CoinbaseDefines.[hm]' s.resources = 'Pod/Assets...
Update podspec to remove conflicting files
diff --git a/ext/bindex/extconf.rb b/ext/bindex/extconf.rb index abc1234..def5678 100644 --- a/ext/bindex/extconf.rb +++ b/ext/bindex/extconf.rb @@ -1,13 +1,13 @@ require "mkmf" -case RUBY_VERSION +case "#{RUBY_VERSION}#{RUBY_PATCHLEVEL}" when /1\.9\.3/ $CFLAGS << " -D RUBY_193" $INCFLAGS << " -I./ruby_193/"...
Fix Ruby 2.1.0-preview compile detection
diff --git a/mute.gemspec b/mute.gemspec index abc1234..def5678 100644 --- a/mute.gemspec +++ b/mute.gemspec @@ -18,7 +18,9 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] - spec.add_development_dependency 'bundler', '~> 1.5' - spec.add_development_dependency 'r...
Add cane and cane-hashcheck to gemspec
diff --git a/config/initializers/airbrake.rb b/config/initializers/airbrake.rb index abc1234..def5678 100644 --- a/config/initializers/airbrake.rb +++ b/config/initializers/airbrake.rb @@ -0,0 +1,3 @@+Airbrake.configure do |config| + config.api_key = ENV['AIRBRAKE_API_KEY'] || 'b345706d1e61712d474d722c09a04dd2' +end
Add files with secrets that were filtered out.
diff --git a/config/initializers/newrelic.rb b/config/initializers/newrelic.rb index abc1234..def5678 100644 --- a/config/initializers/newrelic.rb +++ b/config/initializers/newrelic.rb @@ -0,0 +1,4 @@+# Ensure the agent is started using Unicorn +# This is needed when using Unicorn and preload_app is not set to true. +#...
Fix NewRelic not getting any data
diff --git a/frozen_record.gemspec b/frozen_record.gemspec index abc1234..def5678 100644 --- a/frozen_record.gemspec +++ b/frozen_record.gemspec @@ -22,7 +22,6 @@ spec.add_runtime_dependency 'activemodel' spec.add_runtime_dependency 'dedup' - spec.add_development_dependency 'bundler' spec.add_development_dep...
Remove bundler as development dependency
diff --git a/recipes/default.rb b/recipes/default.rb index abc1234..def5678 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -25,11 +25,10 @@ raise "Unsupported package format: #{pkg_source}" end -directory "/etc/gitlab" do - mode "0700" -end +directory "/etc/gitlab" template "/etc/gitlab/gitlab.rb"...
Change the permissions of gitlab.rb
diff --git a/recipes/opencsw.rb b/recipes/opencsw.rb index abc1234..def5678 100644 --- a/recipes/opencsw.rb +++ b/recipes/opencsw.rb @@ -0,0 +1,26 @@+# Cookbook Name:: pkgutil +# Recipe:: opencsw +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with...
Create recipe for configuring OpenCSW repo
diff --git a/fluent-plugin-kafka.gemspec b/fluent-plugin-kafka.gemspec index abc1234..def5678 100644 --- a/fluent-plugin-kafka.gemspec +++ b/fluent-plugin-kafka.gemspec @@ -13,6 +13,8 @@ gem.name = "fluent-plugin-kafka" gem.require_paths = ["lib"] gem.version = '0.3.0' + gem.required_ruby_versio...
Add ruby version constraint to gemspec
diff --git a/lib/detour.rb b/lib/detour.rb index abc1234..def5678 100644 --- a/lib/detour.rb +++ b/lib/detour.rb @@ -15,7 +15,7 @@ end def valid? - @start.nil? ? @terminus.nil? : (not @terminus.nil?) + @start.nil? ? @terminus.nil? : !!@terminus end def invalid?
Use !!terminus instead of (not terminus.nil?)
diff --git a/cross_validation.gemspec b/cross_validation.gemspec index abc1234..def5678 100644 --- a/cross_validation.gemspec +++ b/cross_validation.gemspec @@ -20,4 +20,5 @@ gem.require_paths = ["lib"] gem.add_development_dependency('rake', '~> 10.0') + gem.add_development_dependency('minitest', '~> 5.4') end...
Add minitest as a development dependency
diff --git a/lib/Mean.rb b/lib/Mean.rb index abc1234..def5678 100644 --- a/lib/Mean.rb +++ b/lib/Mean.rb @@ -14,8 +14,7 @@ end def initialize - @sum = 0 - @sum_of_reciprocals = 0 + @sum = @sum_of_reciprocals = 0 @product = 1 @count = 0 end
Put initialisation on one line
diff --git a/lib/feed.rb b/lib/feed.rb index abc1234..def5678 100644 --- a/lib/feed.rb +++ b/lib/feed.rb @@ -2,8 +2,9 @@ class Feed - DEFAULT_ICON = CONFIG.fetch('default_icon') { 'https://upload.wikimedia.org/wikipedia/en/4/43/Feed-icon.svg' } - DEFAULT_TITLE = CONFIG.fetch('default_title') { 'RSS' } + DEFAUL...
Add ability to ignore firt run
diff --git a/lib/grid.rb b/lib/grid.rb index abc1234..def5678 100644 --- a/lib/grid.rb +++ b/lib/grid.rb @@ -1,9 +1,19 @@ class Grid + + attr_reader :map, :background def initialize(window, user, map, tileset, map_key, background) @window, @user = window, user @map = Map.new(window, map, tileset, map_ke...
Move more methods to Grid
diff --git a/lib/haml.rb b/lib/haml.rb index abc1234..def5678 100644 --- a/lib/haml.rb +++ b/lib/haml.rb @@ -18,6 +18,13 @@ end +# check for a compatible Rails version when Haml is loaded +if defined?(Rails) && (actionpack_spec = Gem.loaded_specs['actionpack']) + if actionpack_spec.version.to_s < '3.2' + raise ...
Add runtime check for compatible Rails version Since Rails is not a runtime dependency of Haml in the gemspec, Haml 4.1+ is not prevented from being used with Rails <3.2. The best we can do is raise an error if someone tries to include Haml 4.1+ with Rails <3.2.
diff --git a/lib/msgr.rb b/lib/msgr.rb index abc1234..def5678 100644 --- a/lib/msgr.rb +++ b/lib/msgr.rb @@ -4,6 +4,7 @@ require 'active_support/core_ext/object/blank' require 'active_support/core_ext/module/delegation' require 'active_support/core_ext/string/inflections' +require 'active_support/core_ext/hash/revers...
Improve logger setting. Set to false to disable logging.
diff --git a/lib/tado.rb b/lib/tado.rb index abc1234..def5678 100644 --- a/lib/tado.rb +++ b/lib/tado.rb @@ -14,6 +14,7 @@ @api_client.getCurrentState.each do |k, v| puts "#{k} : #{v}" end + "\n" end
Return empty line instead of one more hash dump.
diff --git a/lib/susy.rb b/lib/susy.rb index abc1234..def5678 100644 --- a/lib/susy.rb +++ b/lib/susy.rb @@ -2,13 +2,3 @@ Compass::Frameworks.register('susy', :stylesheets_directory => File.join(File.dirname(__FILE__), '..', 'sass'), :templates_directory => Fi...
Remove unused grid_to_numbers ruby function
diff --git a/config/initializers/s3.rb b/config/initializers/s3.rb index abc1234..def5678 100644 --- a/config/initializers/s3.rb +++ b/config/initializers/s3.rb @@ -1,4 +1,5 @@ AWS::S3::Base.establish_connection!( - :access_key_id => ENV['AMAZON_ACCESS_KEY_ID'], - :secret_access_key => ENV['AMAZON_SECRET_ACCESS_K...
Change S3 connection persistence to false
diff --git a/http-protocol.gemspec b/http-protocol.gemspec index abc1234..def5678 100644 --- a/http-protocol.gemspec +++ b/http-protocol.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = "http-protocol" - s.version = '0.1.2' + s.version = '0.1.3' s.summary = "HTTP protocol library designed to facil...
Package version is increased from 0.1.2 to 0.1.3
diff --git a/lib/routes.rb b/lib/routes.rb index abc1234..def5678 100644 --- a/lib/routes.rb +++ b/lib/routes.rb @@ -14,9 +14,10 @@ use Pliny::Router do # mount all endpoints here + mount Endpoints::Login + mount Endpoints::Grades end # root app; but will also handle some defaults like 404 run...
Use mount instead run. :see_no_evil:
diff --git a/lib/mues.rb b/lib/mues.rb index abc1234..def5678 100644 --- a/lib/mues.rb +++ b/lib/mues.rb @@ -16,7 +16,7 @@ # # == Rcsid # -# $Id: mues.rb,v 1.26 2002/09/12 09:59:49 deveiant Exp $ +# $Id: mues.rb,v 1.27 2003/04/21 03:32:42 deveiant Exp $ # # == Authors # @@ -29,6 +29,8 @@ # Please see the file C...
Fix the assumption that dynamic libraries will end in '.so'. --HG-- extra : convert_revision : svn%3A39a105f4-52d6-0310-bb1b-d6517044f2e4/trunk%401027
diff --git a/deploy/before_migrate.rb b/deploy/before_migrate.rb index abc1234..def5678 100644 --- a/deploy/before_migrate.rb +++ b/deploy/before_migrate.rb @@ -1,12 +1,16 @@ Chef::Log.info("Running deploy/before_migrate.rb...") - + +Chef::Log.info("Symlinking #{release_path}/public/assets to #{new_resource.deploy_t...
Deploy assets to a shared/assets path on Opsworks.
diff --git a/lib/troo.rb b/lib/troo.rb index abc1234..def5678 100644 --- a/lib/troo.rb +++ b/lib/troo.rb @@ -11,6 +11,7 @@ @logger ||= Logger.new('logs/troo.log') end + # RestClient.log = 'logs/restclient.log' # Trello.logger = Logger.new("logs/trello.log") Trello.configure do |trello| trello.consu...
Add commented out RestClient logger for debugging.
diff --git a/Library/Formula/gnu-typist.rb b/Library/Formula/gnu-typist.rb index abc1234..def5678 100644 --- a/Library/Formula/gnu-typist.rb +++ b/Library/Formula/gnu-typist.rb @@ -1,6 +1,6 @@ require 'formula' -class Gtypist <Formula +class GnuTypist <Formula url 'http://ftp.gnu.org/gnu/gtypist/gtypist-2.8.3.tar....
Fix name of GNU Typist
diff --git a/Library/Formula/clojure.rb b/Library/Formula/clojure.rb index abc1234..def5678 100644 --- a/Library/Formula/clojure.rb +++ b/Library/Formula/clojure.rb @@ -13,8 +13,13 @@ def script <<-EOS #!/bin/sh -# Run Clojure. -exec java -cp "#{prefix}/#{jar}" clojure.main "$@" +# Runs clojure. +# With no argument...
Revert "Simplify `clj` script and fix some quoting." This reverts commit fc6f2c88fd080025f128f300c98ce4a66ed3365b.
diff --git a/spock.gemspec b/spock.gemspec index abc1234..def5678 100644 --- a/spock.gemspec +++ b/spock.gemspec @@ -1,5 +1,10 @@ # -*- encoding: utf-8 -*- -require File.expand_path('../lib/spock/version', __FILE__) +if RUBY_VERSION == '1.8.7' + $:.unshift File.expand_path("../lib", __FILE__) + require "spock/version...
Fix warning for initialized constant VERSION https://github.com/eventmachine/eventmachine/pull/284
diff --git a/spec/web_spec.rb b/spec/web_spec.rb index abc1234..def5678 100644 --- a/spec/web_spec.rb +++ b/spec/web_spec.rb @@ -19,6 +19,12 @@ expect(last_response).to be_ok expect(last_response.body).to include @test_job_id end + + it "should show a error mark when a job is unhealthy" do + @...
Add specs to test error marks
diff --git a/test/test_page.rb b/test/test_page.rb index abc1234..def5678 100644 --- a/test/test_page.rb +++ b/test/test_page.rb @@ -5,6 +5,8 @@ require 'helper' describe 'Page' do + before { test_site.scan_files } + subject do path = File.join(test_site.source_paths[:pages], 'about', 'index.markdown') ...
Switch to calling read_fixture, and have the test site scan its files.
diff --git a/lib/CheckfrontAPI/client.rb b/lib/CheckfrontAPI/client.rb index abc1234..def5678 100644 --- a/lib/CheckfrontAPI/client.rb +++ b/lib/CheckfrontAPI/client.rb @@ -1,6 +1,7 @@ require 'dotenv' require 'net/http' require 'yaml' +require 'json' Dotenv.load module CheckfrontAPI @@ -11,7 +12,8 @@ API_SEC...
Use Ping endpoint for test_connection method - Also improve console output of response.
diff --git a/lib/activeadmin-sortable.rb b/lib/activeadmin-sortable.rb index abc1234..def5678 100644 --- a/lib/activeadmin-sortable.rb +++ b/lib/activeadmin-sortable.rb @@ -18,7 +18,7 @@ def sortable_handle_column column '' do |resource| - sort_url = url_for([:sort, ActiveAdmin.application.def...
Use resource_path for sort url to make sorting work with different namespaces and activeadmin resources that belong to another
diff --git a/config/application.rb b/config/application.rb index abc1234..def5678 100644 --- a/config/application.rb +++ b/config/application.rb @@ -26,7 +26,7 @@ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. # config.i18n.load_path += Dir[Rails.root.join('my'...
Set I18n default locale as :ja
diff --git a/lib/bx_wiki_macros.rb b/lib/bx_wiki_macros.rb index abc1234..def5678 100644 --- a/lib/bx_wiki_macros.rb +++ b/lib/bx_wiki_macros.rb @@ -1,5 +1,6 @@ # coding: utf-8 Redmine::WikiFormatting::Macros.register do + desc "Links to resource page.\n_Example:_\n\n {{bx_resource(3)}}" macro :bx_resource do |ob...
Add descriptions to Wiki macros
diff --git a/config/deploy/feat.rb b/config/deploy/feat.rb index abc1234..def5678 100644 --- a/config/deploy/feat.rb +++ b/config/deploy/feat.rb @@ -1,14 +1,30 @@-set :stage, :prod +set :stage, :feat -set :deploy_to, '/home/unipept/rails' +set :deploy_to, '/home/bmesuere/rails' # don't specify db as it's not neede...
Revert changes to Capistrano config
diff --git a/lib/ci/api/helpers.rb b/lib/ci/api/helpers.rb index abc1234..def5678 100644 --- a/lib/ci/api/helpers.rb +++ b/lib/ci/api/helpers.rb @@ -4,7 +4,9 @@ UPDATE_RUNNER_EVERY = 60 def check_enable_flag! - not_found! unless current_application_settings.ci_enabled + unless current_appli...
Use 400 to notify that CI API is disabled
diff --git a/lib/gazette/client.rb b/lib/gazette/client.rb index abc1234..def5678 100644 --- a/lib/gazette/client.rb +++ b/lib/gazette/client.rb @@ -16,25 +16,25 @@ # Attempts to authenticate def authenticate - case request(:authenticate, request_options) + parse_response_for request(:authentic...
Refactor of request/response handling to DRY things up
diff --git a/lib/import/pftrack.rb b/lib/import/pftrack.rb index abc1234..def5678 100644 --- a/lib/import/pftrack.rb +++ b/lib/import/pftrack.rb @@ -37,10 +37,8 @@ num_of_keyframes = first_tracker_line.to_i t.keyframes = (1..num_of_keyframes).map do | keyframe_idx | report_progress("Reading keyfra...
Revert PFTrack residual computation on import
diff --git a/lib/kaminari-cells.rb b/lib/kaminari-cells.rb index abc1234..def5678 100644 --- a/lib/kaminari-cells.rb +++ b/lib/kaminari-cells.rb @@ -19,6 +19,5 @@ end end end + require 'kaminari/cells' end - -require 'kaminari/cells'
Move require of kaminari/cells into ActionView load hook Previously when eager loading a rails application using zeitwerk, the Kaminari::Helpers::CellsHelper module was included before it was defined by the load hook.
diff --git a/rails/init.rb b/rails/init.rb index abc1234..def5678 100644 --- a/rails/init.rb +++ b/rails/init.rb @@ -1,5 +1,7 @@ # Register helpers for Rails < 3 require File.join(File.dirname(__FILE__), *%w[.. lib i18n_rails_helpers]) +ActionView::Base.send :include, I18nRailsHelpers require File.join(File.dirname(_...
Add support for Rails <3 for list_link_helpers.rb
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 @@ -10,11 +10,8 @@ def run(diffs) return [] unless diffs && diffs.any? - working_dir = diffs.first.repo.working_dir diffs.map do |diff| - full_...
Use the newly added full_b_path method on grit diff
diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake index abc1234..def5678 100644 --- a/lib/tasks/assets.rake +++ b/lib/tasks/assets.rake @@ -19,7 +19,7 @@ # Critical to manually copy non js/css assets to public/assets as we don't want to fingerprint them sh 'cp -rf app/assets/webpack/*.woff* app/asse...
Include .png file types in webpack precompilation task
diff --git a/test/test_filter.rb b/test/test_filter.rb index abc1234..def5678 100644 --- a/test/test_filter.rb +++ b/test/test_filter.rb @@ -13,16 +13,10 @@ end # Tests - def test_empty - assert_file 'empty.html' - end - - def test_empty_nodes - assert_file 'empty_nodes.html' - end - - def test_strip ...
Test all filtered files at once
diff --git a/lib/adapters/irc/message.rb b/lib/adapters/irc/message.rb index abc1234..def5678 100644 --- a/lib/adapters/irc/message.rb +++ b/lib/adapters/irc/message.rb @@ -17,7 +17,9 @@ end def reply(text) - @origin.send "PRIVMSG #{@channel} :#{text}" + text.split("\n").each do |line| + @origin.send ...
Add newline support for IRC
diff --git a/ci_environment/clang/attributes/tarball.rb b/ci_environment/clang/attributes/tarball.rb index abc1234..def5678 100644 --- a/ci_environment/clang/attributes/tarball.rb +++ b/ci_environment/clang/attributes/tarball.rb @@ -1,5 +1,5 @@-default['clang']['version'] = '3.4.2' +default['clang']['version'] ...
Update LLVM to 3.5.0 (Trusty only)
diff --git a/app.rb b/app.rb index abc1234..def5678 100644 --- a/app.rb +++ b/app.rb @@ -1,6 +1,36 @@ require 'rubygems' require 'sinatra' +require 'open-uri' +require 'nokogiri' + +URL = 'http://dv.njtransit.com/mobile/tid-mobile.aspx?SID=NY&SORT=A' get '/' do erb :'index.html' end + +get %r{/(\d{4})$} do |trai...
Add function to scrape NJTransit site for train info
diff --git a/app/models/user_session.rb b/app/models/user_session.rb index abc1234..def5678 100644 --- a/app/models/user_session.rb +++ b/app/models/user_session.rb @@ -1,5 +1,5 @@ class UserSession < Authlogic::Session::Base - authenticate_with InvisionUser + authenticate_with InvisionBridge::InvisionUser last_re...
Change authenticate_with call to InvisionBridge
diff --git a/spec/centos/network_spec.rb b/spec/centos/network_spec.rb index abc1234..def5678 100644 --- a/spec/centos/network_spec.rb +++ b/spec/centos/network_spec.rb @@ -7,3 +7,18 @@ it { should be_reachable } it { should be_resolvable } end + + +describe file('/etc/sysconfig/network-scripts/ifcfg-eth0') do + i...
MAke sure eth0 and eth1 are properly configured
diff --git a/spec/hashicorptools_spec.rb b/spec/hashicorptools_spec.rb index abc1234..def5678 100644 --- a/spec/hashicorptools_spec.rb +++ b/spec/hashicorptools_spec.rb @@ -2,6 +2,7 @@ describe "Hashicorptools" do it "fails" do + pending fail "hey buddy, you should probably rename this file and start speci...
Put dummy spec on pending instead of failing
diff --git a/lib/openxml/docx/elements/number.rb b/lib/openxml/docx/elements/number.rb index abc1234..def5678 100644 --- a/lib/openxml/docx/elements/number.rb +++ b/lib/openxml/docx/elements/number.rb @@ -15,7 +15,6 @@ end value_property :abstract_number_id - value_property :lvl_override, as: ...
Remove level_override: it is not a property, it is a child element
diff --git a/spec/requests/pages_spec.rb b/spec/requests/pages_spec.rb index abc1234..def5678 100644 --- a/spec/requests/pages_spec.rb +++ b/spec/requests/pages_spec.rb @@ -19,13 +19,13 @@ expect(page).to have_content 'Team' end end - describe "GET /open-data", type: :request do + describe "GET /open-da...
Fix a couple of test failures
diff --git a/lib/pah/templates/canonical_host.rb b/lib/pah/templates/canonical_host.rb index abc1234..def5678 100644 --- a/lib/pah/templates/canonical_host.rb +++ b/lib/pah/templates/canonical_host.rb @@ -4,9 +4,9 @@ def call rack_canonical = <<CANONICAL - #Run heroku config:add CANONICAL_HOST=you...
Fix identation of conanical host