diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/addresses.gemspec b/addresses.gemspec index abc1234..def5678 100644 --- a/addresses.gemspec +++ b/addresses.gemspec @@ -12,6 +12,7 @@ s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.rdoc"] s.test_files = Dir["spec/**/*"] s.licenses = ['MIT'] + s.required_ruby_versio...
Add required ruby version to gem
diff --git a/no-style-please.gemspec b/no-style-please.gemspec index abc1234..def5678 100644 --- a/no-style-please.gemspec +++ b/no-style-please.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |spec| spec.name = "no-style-please" - spec.version = "0.2.0" + spec.version = "0.3.0" spec.au...
Update gem version to 0.3.0
diff --git a/fauxhai.gemspec b/fauxhai.gemspec index abc1234..def5678 100644 --- a/fauxhai.gemspec +++ b/fauxhai.gemspec @@ -12,7 +12,7 @@ spec.homepage = 'https://github.com/customink/fauxhai' spec.license = 'MIT' - spec.required_ruby_version = '>= 1.9' + spec.required_ruby_version = '>= 2.0' ...
Remove support for Ruby 1.9 It's been EoL for over a year now
diff --git a/optbind.gemspec b/optbind.gemspec index abc1234..def5678 100644 --- a/optbind.gemspec +++ b/optbind.gemspec @@ -6,8 +6,8 @@ s.authors = ['Pavol Zbell'] s.email = ['pavol.zbell@gmail.com'] - s.summary = 'TODO' - s.description = 'TODO' + s.summary = 'Binds command-line o...
Add gem summary and description
diff --git a/lib/jquery-rails-cdn.rb b/lib/jquery-rails-cdn.rb index abc1234..def5678 100644 --- a/lib/jquery-rails-cdn.rb +++ b/lib/jquery-rails-cdn.rb @@ -9,7 +9,7 @@ :google => "//ajax.googleapis.com/ajax/libs/jquery/#{JQUERY_VERSION}/jquery.min.js", :microsoft => "http://ajax.aspne...
Use minified version of jQuery for Yandex CDN
diff --git a/DTStorage.podspec b/DTStorage.podspec index abc1234..def5678 100644 --- a/DTStorage.podspec +++ b/DTStorage.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "DTStorage" - s.version = "0.0.3" - s.summary = "A simple storage layer over SQLite for iOS." + s.version = "0.1.0" ...
Update podspec to version 0.1.0
diff --git a/lib/motion-giphy/gif.rb b/lib/motion-giphy/gif.rb index abc1234..def5678 100644 --- a/lib/motion-giphy/gif.rb +++ b/lib/motion-giphy/gif.rb @@ -30,6 +30,10 @@ image.new(images["fixed_height"]) end + def fixed_width_still + image.new(images["fixed_width_still"]) + end + def fixe...
Add fixed width still image.
diff --git a/lib/rom/http/gateway.rb b/lib/rom/http/gateway.rb index abc1234..def5678 100644 --- a/lib/rom/http/gateway.rb +++ b/lib/rom/http/gateway.rb @@ -8,7 +8,7 @@ private :datasets, :config def initialize(config) - missing_keys = %i(uri request_handler response_handler) - config.keys + ...
Remove %i for rubinius support
diff --git a/lib/tasks/database.rake b/lib/tasks/database.rake index abc1234..def5678 100644 --- a/lib/tasks/database.rake +++ b/lib/tasks/database.rake @@ -8,7 +8,8 @@ require 'active_road' require 'postgis_adapter' - ActiveRecord::Base.establish_connection ActiveRoad.database_configuration["defaul...
Support RAILS_ENV to migrate test db
diff --git a/application.rb b/application.rb index abc1234..def5678 100644 --- a/application.rb +++ b/application.rb @@ -4,7 +4,7 @@ require 'sinatra' require 'redis' -redis = Redis.new(:url => ENV["REDISTOGO_URL"]) +redis = Redis.new(:url => ENV["REDIS_URL"]) configure do set :views, File.join(File.dirname(__...
Change environment variable for redis
diff --git a/lib/bourbon.rb b/lib/bourbon.rb index abc1234..def5678 100644 --- a/lib/bourbon.rb +++ b/lib/bourbon.rb @@ -1,7 +1,4 @@+require "sass" require "bourbon/generator" -bourbon_path = File.expand_path("../../core", __FILE__) -ENV["SASS_PATH"] = [ - ENV["SASS_PATH"], - bourbon_path, -].compact.join(File::PA...
Use Sass.load_paths instead of SASS_PATH env The SASS_PATH environment variable is not intended to be set by another library but rather by consumers of Sass. Since the environment variable is only read in once at the first time `load_paths` is called. This was causing an error where, if a user had another gem such as...
diff --git a/stripe_event.gemspec b/stripe_event.gemspec index abc1234..def5678 100644 --- a/stripe_event.gemspec +++ b/stripe_event.gemspec @@ -18,7 +18,7 @@ s.test_files = `git ls-files -- Appraisals {spec,gemfiles}/*`.split("\n") s.add_dependency "activesupport", ">= 3.1" - s.add_dependency "stripe", [">= 2...
Add support for Stripe v4.x
diff --git a/Library/Formula/riak.rb b/Library/Formula/riak.rb index abc1234..def5678 100644 --- a/Library/Formula/riak.rb +++ b/Library/Formula/riak.rb @@ -29,5 +29,8 @@ (prefix + 'data/ring').mkpath (prefix + 'data/dets').mkpath + + # Install man pages + man1.install Dir["doc/man/man1/*"] end -end...
Add man pages for Riak. Signed-off-by: Adam Vandenberg <34c2b6407fd5a10249a15d699d40f9ed1782e98c@gmail.com>
diff --git a/gitable.gemspec b/gitable.gemspec index abc1234..def5678 100644 --- a/gitable.gemspec +++ b/gitable.gemspec @@ -10,7 +10,7 @@ s.license = 'MIT' s.add_dependency "addressable", ">= 2.2.7" - s.add_development_dependency "rspec", "~>2.11" + s.add_development_dependency "rspec", "~> 3.0" s.add_...
Upgrade RSpec to ~> 3.0 to solve rake last_comment issue
diff --git a/lib/hdo/stats/rebels.rb b/lib/hdo/stats/rebels.rb index abc1234..def5678 100644 --- a/lib/hdo/stats/rebels.rb +++ b/lib/hdo/stats/rebels.rb @@ -0,0 +1,45 @@+module Hdo + module Stats + class Rebels + include Enumerable + + def initialize(votes) + @votes = votes + end + + def ...
Add code for faster rebel vote caculation.
diff --git a/lib/models/team/team.rb b/lib/models/team/team.rb index abc1234..def5678 100644 --- a/lib/models/team/team.rb +++ b/lib/models/team/team.rb @@ -17,7 +17,7 @@ def characters(characters) characters.each_with_index do |character, index| - character.realm_slug = Realm.to_slug(REALMS[charact...
Use stored realm name for API connections.
diff --git a/lib/vhdl_doctest/dut.rb b/lib/vhdl_doctest/dut.rb index abc1234..def5678 100644 --- a/lib/vhdl_doctest/dut.rb +++ b/lib/vhdl_doctest/dut.rb @@ -31,7 +31,7 @@ def extract_ports return @ports if @ports @ports = [] - definitions = @vhdl.match(/entity.*is\s+port\s*\((.*?)\);\s*en...
Update regexp to handle entity contains other components
diff --git a/examples/callbacks.rb b/examples/callbacks.rb index abc1234..def5678 100644 --- a/examples/callbacks.rb +++ b/examples/callbacks.rb @@ -9,12 +9,13 @@ require 'rubygems' require 'pdf/reader' -receiver = PDF::Reader::RegisterReceiver.new filename = File.expand_path(File.dirname(__FILE__)) + "/../spec/dat...
Fix bug that accumulate pages data
diff --git a/broach.gemspec b/broach.gemspec index abc1234..def5678 100644 --- a/broach.gemspec +++ b/broach.gemspec @@ -13,6 +13,7 @@ EOF spec.add_dependency('nap', '>= 0.3') + spec.add_dependency('json', '~> 1.4.6') spec.files = [ 'LICENSE',
Add dependency on JSON gem to gemspec.
diff --git a/app/models/dojo.rb b/app/models/dojo.rb index abc1234..def5678 100644 --- a/app/models/dojo.rb +++ b/app/models/dojo.rb @@ -1,4 +1,3 @@-# -*- coding: utf-8 -*- class Dojo < ApplicationRecord NUM_OF_COUNTRIES = "70" NUM_OF_WHOLE_DOJOS = "1,200" @@ -7,4 +6,14 @@ serialize :tags default_scope ...
Add validations to Dojo model
diff --git a/app/models/item.rb b/app/models/item.rb index abc1234..def5678 100644 --- a/app/models/item.rb +++ b/app/models/item.rb @@ -1,3 +1,3 @@ class Item < ApplicationRecord - validates_presence_of :name, :description, :quantity, :price + validates :name, presence: { message: "Name field can't be left blank"}, ...
Update Item name validation with multiple keys
diff --git a/app/models/plot.rb b/app/models/plot.rb index abc1234..def5678 100644 --- a/app/models/plot.rb +++ b/app/models/plot.rb @@ -1,9 +1,9 @@ class Plot < ApplicationRecord validates :plot_id, presence: true - validates :latitude, presence: true, numericality: { greater_than: 0 } - validates :longitude, pre...
Undo validation changes, it broke too many tests and should be a different issue at this point
diff --git a/app/models/post.rb b/app/models/post.rb index abc1234..def5678 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -1,3 +1,8 @@ class Post < ActiveRecord::Base belongs_to :category + + def self.search(search) + where("name LIKE ?", "%#{search}%") + where("content LIKE ?", "%#{search}%") + ...
Add search method to Post model
diff --git a/app/models/favourite.rb b/app/models/favourite.rb index abc1234..def5678 100644 --- a/app/models/favourite.rb +++ b/app/models/favourite.rb @@ -1,6 +1,9 @@ class Favourite < ApplicationRecord + validates_uniqueness_of :login, { scope: :employer_id } + after_create :cache_favorited_login before_destr...
Add scoped uniqueness at model level
diff --git a/app/models/gift_form.rb b/app/models/gift_form.rb index abc1234..def5678 100644 --- a/app/models/gift_form.rb +++ b/app/models/gift_form.rb @@ -10,7 +10,7 @@ def pull_requests_for_select @pull_requests.sort{ |pr1, pr2| pr2.gifted_state <=> pr1.gifted_state }.map{ |pr| - ["#{pr.gifted_state.to...
Add repo name to select gift
diff --git a/app/models/recipient.rb b/app/models/recipient.rb index abc1234..def5678 100644 --- a/app/models/recipient.rb +++ b/app/models/recipient.rb @@ -1,4 +1,8 @@ class Recipient < ApplicationRecord belongs_to :invoice, optional: true - validates_presence_of :name, :surname, :address, :phone + validates_pres...
Add extra phone number validation
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 @@ -2,9 +2,11 @@ include ActiveModel::Validations validates :name, :city, :email, presence: true validates :name, length: { minimum: 2 } - validates :email, uniqueness: { case_sensiti...
Refactor uniqueness validation for emails
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 @@ -33,7 +33,7 @@ def gravatar_url(size = 48) gravatar_id = Digest::MD5.hexdigest(email || '') - "https://secure.gravatar.com/avatar/#{gravatar_id}.png?s=#{size}" + "https:...
Use mystery man as default gravatar image
diff --git a/minerva_fetcher.gemspec b/minerva_fetcher.gemspec index abc1234..def5678 100644 --- a/minerva_fetcher.gemspec +++ b/minerva_fetcher.gemspec @@ -17,4 +17,6 @@ s.require_paths = ['lib'] s.rubyforge_project = '[none]' s.add_dependency 'activesupport' + s.add_dependency 'faraday' + s.add_dependency '...
Add faraday and faraday_middleware dependencies
diff --git a/tools/run_cmd_per_experiment.rb b/tools/run_cmd_per_experiment.rb index abc1234..def5678 100644 --- a/tools/run_cmd_per_experiment.rb +++ b/tools/run_cmd_per_experiment.rb @@ -0,0 +1,75 @@+#!/usr/bin/ruby +# Requires ruby2.0+ + +require 'optparse' + +class Experiment + attr_reader :dir, :name, :branch + ...
Add a tool for iterating through all experiments
diff --git a/app/models/configuration_item.rb b/app/models/configuration_item.rb index abc1234..def5678 100644 --- a/app/models/configuration_item.rb +++ b/app/models/configuration_item.rb @@ -22,6 +22,8 @@ def self.real_object_classes @@real_object_classes ||= ActiveRecord::Base.subclasses.select do |klass| ...
Sort ConfigurationItem.real_object_classes by class names
diff --git a/app/controllers/events_controller.rb b/app/controllers/events_controller.rb index abc1234..def5678 100644 --- a/app/controllers/events_controller.rb +++ b/app/controllers/events_controller.rb @@ -1,4 +1,8 @@-class EventsController < InheritedResources::Base +class EventsController < ApplicationController ...
Add a shift to our soon-to-be-created event
diff --git a/app/controllers/status_controller.rb b/app/controllers/status_controller.rb index abc1234..def5678 100644 --- a/app/controllers/status_controller.rb +++ b/app/controllers/status_controller.rb @@ -23,7 +23,7 @@ @smoke_detector.update(:is_standby => false, :force_failover => false) rende...
Save a few bytes on every ping
diff --git a/config/initializers/sidekiq.rb b/config/initializers/sidekiq.rb index abc1234..def5678 100644 --- a/config/initializers/sidekiq.rb +++ b/config/initializers/sidekiq.rb @@ -9,6 +9,7 @@ Sidekiq.configure_server do |config| config.redis = { url: REDIS_URL, namespace: 'sidekiq' } config.poll_inte...
Set Airbrake as error handler for Sidekiq
diff --git a/config/software/loom-server.rb b/config/software/loom-server.rb index abc1234..def5678 100644 --- a/config/software/loom-server.rb +++ b/config/software/loom-server.rb @@ -5,17 +5,18 @@ relative_path 'server' build do - command "mkdir -p #{install_dir}/server/bin" - command "cp -fpPR bin/loom-server.s...
Use copy/mkdir builtin Builder methods
diff --git a/builder/test-integration/spec/hypriotos-image/base/release_spec.rb b/builder/test-integration/spec/hypriotos-image/base/release_spec.rb index abc1234..def5678 100644 --- a/builder/test-integration/spec/hypriotos-image/base/release_spec.rb +++ b/builder/test-integration/spec/hypriotos-image/base/release_spe...
Fix integrations tests for release infos Signed-off-by: Dieter Reuter <554783fc552b5b2a46dd3d7d7b9b2cce9a82c122@me.com>
diff --git a/spec/controllers/tags_controller_spec.rb b/spec/controllers/tags_controller_spec.rb index abc1234..def5678 100644 --- a/spec/controllers/tags_controller_spec.rb +++ b/spec/controllers/tags_controller_spec.rb @@ -11,5 +11,10 @@ get :index expect(response.status).to eq(200) end + + it "r...
Add test for render index template
diff --git a/spec/omniauth/strategies/ravelry_spec.rb b/spec/omniauth/strategies/ravelry_spec.rb index abc1234..def5678 100644 --- a/spec/omniauth/strategies/ravelry_spec.rb +++ b/spec/omniauth/strategies/ravelry_spec.rb @@ -0,0 +1,22 @@+require 'spec_helper' + +describe OmniAuth::Strategies::Ravelry do + subject :rav...
Add specs for existing options
diff --git a/core/lib/spree/testing_support/factories/stock_location_factory.rb b/core/lib/spree/testing_support/factories/stock_location_factory.rb index abc1234..def5678 100644 --- a/core/lib/spree/testing_support/factories/stock_location_factory.rb +++ b/core/lib/spree/testing_support/factories/stock_location_factor...
Use stock_location's country for stock_location's state in stock_location factory This is so that it doesn't create a new country and associate the state with that.
diff --git a/services/QuillLMS/lib/tasks/cron.rake b/services/QuillLMS/lib/tasks/cron.rake index abc1234..def5678 100644 --- a/services/QuillLMS/lib/tasks/cron.rake +++ b/services/QuillLMS/lib/tasks/cron.rake @@ -1,7 +1,7 @@ namespace :cron do desc "Process Cron's 10 minute interval logic" task interval_10_minute...
Fix bad reference in rake task
diff --git a/recipes/ruby.rb b/recipes/ruby.rb index abc1234..def5678 100644 --- a/recipes/ruby.rb +++ b/recipes/ruby.rb @@ -18,10 +18,16 @@ # See the License for the specific language governing permissions and # limitations under the License. # + +include_recipe 'chef-sugar' + +execute 'apt-get update' do + ignore_...
Revert "Apt should not be the concern of the xml cookbook" This reverts commit 1ced9bb6d8b53ad13d66d1ea74573d1ed942d91d.
diff --git a/app/workers/ci/rescue_stale_live_trace_worker.rb b/app/workers/ci/rescue_stale_live_trace_worker.rb index abc1234..def5678 100644 --- a/app/workers/ci/rescue_stale_live_trace_worker.rb +++ b/app/workers/ci/rescue_stale_live_trace_worker.rb @@ -7,10 +7,13 @@ # Archive stale live traces which still res...
Add metric for failed archiving with stale live trace
diff --git a/lib/hacker_news_ranking/configuration.rb b/lib/hacker_news_ranking/configuration.rb index abc1234..def5678 100644 --- a/lib/hacker_news_ranking/configuration.rb +++ b/lib/hacker_news_ranking/configuration.rb @@ -3,6 +3,8 @@ @@configuration = { timestamp: :created_at, gravity: 1.8, + ...
Add points and timestamp offset
diff --git a/lib/tasks/check_content_consistency.rake b/lib/tasks/check_content_consistency.rake index abc1234..def5678 100644 --- a/lib/tasks/check_content_consistency.rake +++ b/lib/tasks/check_content_consistency.rake @@ -1,7 +1,7 @@ require "data_hygiene/content_consistency_checker" def report_errors(errors, con...
Use Airbrake.notify_sync instead of Airbrake.notify When running in a rake task, Airbrake.notify doesn't properly finish triggering before the rake task ends and therefore the message never makes it to Airbrake.
diff --git a/spec/dummy/app/forms/update_user_form.rb b/spec/dummy/app/forms/update_user_form.rb index abc1234..def5678 100644 --- a/spec/dummy/app/forms/update_user_form.rb +++ b/spec/dummy/app/forms/update_user_form.rb @@ -6,6 +6,6 @@ end def commit! - users.try { users.update.by_id(id).set(attributes) } + ...
Fix deprecation warning from rom-sql
diff --git a/spree-refinerycms-authentication.gemspec b/spree-refinerycms-authentication.gemspec index abc1234..def5678 100644 --- a/spree-refinerycms-authentication.gemspec +++ b/spree-refinerycms-authentication.gemspec @@ -13,6 +13,6 @@ gem.test_files = gem.files.grep(%r{^spec/}) gem.require_paths = ["lib"] ...
Change deps to use masters
diff --git a/spec/services/payment_gateway_spec.rb b/spec/services/payment_gateway_spec.rb index abc1234..def5678 100644 --- a/spec/services/payment_gateway_spec.rb +++ b/spec/services/payment_gateway_spec.rb @@ -7,7 +7,8 @@ around(:example) do |example| pdq_stub subject.run - WebMock.after_reque...
Add sleep to allow threrad to start up - we were getting flickering tests
diff --git a/recipes/tokutek_repo.rb b/recipes/tokutek_repo.rb index abc1234..def5678 100644 --- a/recipes/tokutek_repo.rb +++ b/recipes/tokutek_repo.rb @@ -0,0 +1,35 @@+# +# Cookbook Name:: tokumx +# Recipe:: tokutek_repo +# +# Copyright 2014, Tokutek +# Authors: +# John Esmet <john.esmest@gmail.com> +# +# Licen...
Add a recipe for the Tokutek package repo
diff --git a/spec/requests/api/config_spec.rb b/spec/requests/api/config_spec.rb index abc1234..def5678 100644 --- a/spec/requests/api/config_spec.rb +++ b/spec/requests/api/config_spec.rb @@ -15,8 +15,9 @@ let(:api_feature_identifiers) do collection_settings.each_with_object(Set.new) do |(_, cfg), set| ...
Refactor - extract temp `keys`
diff --git a/spec/unit/classes/server_spec.rb b/spec/unit/classes/server_spec.rb index abc1234..def5678 100644 --- a/spec/unit/classes/server_spec.rb +++ b/spec/unit/classes/server_spec.rb @@ -0,0 +1,65 @@+require 'spec_helper' + +describe 'puppetdb::server', :type => :class do + basefacts = + { + :osfamil...
Add spec test showing is_pe detection failure Add a new spec test providing some initial coverage of puppetdb::server demontrating the failure to correctly detect a PE environment.
diff --git a/lib/bandicoot/processor.rb b/lib/bandicoot/processor.rb index abc1234..def5678 100644 --- a/lib/bandicoot/processor.rb +++ b/lib/bandicoot/processor.rb @@ -3,10 +3,11 @@ module Bandicoot module Processor + attr_accessor : def crawl - # browser = Watir::Browser.new :firefox - # browse...
Move attr_accessor inside dsl file
diff --git a/Casks/world-of-tanks.rb b/Casks/world-of-tanks.rb index abc1234..def5678 100644 --- a/Casks/world-of-tanks.rb +++ b/Casks/world-of-tanks.rb @@ -0,0 +1,20 @@+cask :v1 => 'world-of-tanks' do + version :latest + sha256 :no_check + + # wargaming.net is the official download host per the vendor homepage + u...
Add World of Tanks Latest Closes #8358.
diff --git a/omniauth-oauth2.gemspec b/omniauth-oauth2.gemspec index abc1234..def5678 100644 --- a/omniauth-oauth2.gemspec +++ b/omniauth-oauth2.gemspec @@ -6,7 +6,7 @@ gem.add_dependency "oauth2", "~> 1.1" gem.add_dependency "omniauth", "~> 1.2" - gem.add_development_dependency "bundler", "~> 1.0" + gem...
Fix version of bundler for JRuby 1.8
diff --git a/lib/datainsight_logging.rb b/lib/datainsight_logging.rb index abc1234..def5678 100644 --- a/lib/datainsight_logging.rb +++ b/lib/datainsight_logging.rb @@ -5,21 +5,23 @@ module Logging - def self.configure(env=ENV["RACK_ENV"]) + def self.configure(params={}) + env = params[:env] || ENV["RA...
Add support for multiple log files per project. author: da39a3ee5e6b4b0d3255bfef95601890afd80709@jthoenes author: da39a3ee5e6b4b0d3255bfef95601890afd80709@pbadenski
diff --git a/spec/grocer/newsstand_notification_spec.rb b/spec/grocer/newsstand_notification_spec.rb index abc1234..def5678 100644 --- a/spec/grocer/newsstand_notification_spec.rb +++ b/spec/grocer/newsstand_notification_spec.rb @@ -11,12 +11,11 @@ include_examples 'a notification' it 'does require a payload...
Remove debugging line, change .should_be to a .to
diff --git a/spec/pre_commit/fear_of_commitment_test.rb b/spec/pre_commit/fear_of_commitment_test.rb index abc1234..def5678 100644 --- a/spec/pre_commit/fear_of_commitment_test.rb +++ b/spec/pre_commit/fear_of_commitment_test.rb @@ -0,0 +1,10 @@+require 'minitest/autorun' +require 'overcommit' +require 'overcommit/hook...
Add a single skipped test As a reminder/placeholder
diff --git a/spec/unit/mutant/reporter/cli/tput_spec.rb b/spec/unit/mutant/reporter/cli/tput_spec.rb index abc1234..def5678 100644 --- a/spec/unit/mutant/reporter/cli/tput_spec.rb +++ b/spec/unit/mutant/reporter/cli/tput_spec.rb @@ -3,7 +3,7 @@ subject { described_class.detect } def expect_command(command, s...
Fix rspec warning about ordered stubs
diff --git a/recipes/default.rb b/recipes/default.rb index abc1234..def5678 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -1,19 +1,15 @@ app = search(:aws_opsworks_app).first -execute "ssh-keyscan -H github.com >> /root/.ssh/known_hosts" - -application "/srv/#{app['shortname']}" do +app_path = "/srv/#{a...
Switch deployment from Git repo to tarball on S3
diff --git a/core/integer/constants_spec.rb b/core/integer/constants_spec.rb index abc1234..def5678 100644 --- a/core/integer/constants_spec.rb +++ b/core/integer/constants_spec.rb @@ -1,25 +1,27 @@ require_relative '../../spec_helper' -describe "Fixnum" do - it "is unified into Integer" do - suppress_warning do ...
Remove obsolete Fixnum and Bignum
diff --git a/lib/river_notifications.rb b/lib/river_notifications.rb index abc1234..def5678 100644 --- a/lib/river_notifications.rb +++ b/lib/river_notifications.rb @@ -13,6 +13,7 @@ if should_publish?(object) prepare_for_publish(object, :create) end + nil end def after_update(object) @@ -23,...
Make sure river notification observer doesn't cancel anything.
diff --git a/lib/sidekiq-unique-jobs.rb b/lib/sidekiq-unique-jobs.rb index abc1234..def5678 100644 --- a/lib/sidekiq-unique-jobs.rb +++ b/lib/sidekiq-unique-jobs.rb @@ -17,7 +17,7 @@ unique_args_enabled: false, default_expiration: 30 * 60, default_unlock_order: :after_yield, - unique_storage_me...
Make new unique storage method the default
diff --git a/config/initializers/paperclip.rb b/config/initializers/paperclip.rb index abc1234..def5678 100644 --- a/config/initializers/paperclip.rb +++ b/config/initializers/paperclip.rb @@ -1,7 +1,9 @@+Paperclip::Attachment.default_options[:s3_host_name] = ENV.fetch("S3_HOST_NAME") + module Paperclip class Media...
Set Paperclip S3 host based on ENV
diff --git a/inwx-domrobot.gemspec b/inwx-domrobot.gemspec index abc1234..def5678 100644 --- a/inwx-domrobot.gemspec +++ b/inwx-domrobot.gemspec @@ -1,13 +1,15 @@ Gem::Specification.new do |s| s.name = 'inwx-domrobot' - s.version = '3.0' + s.version = '3.1' s.date = '2019-09-12' ...
Fix dependencies of ruby gem
diff --git a/FastEasyMapping.podspec b/FastEasyMapping.podspec index abc1234..def5678 100644 --- a/FastEasyMapping.podspec +++ b/FastEasyMapping.podspec @@ -10,7 +10,7 @@ spec.requires_arc = true spec.ios.deployment_target = '7.0' spec.osx.deployment_target = '10.9' - spec.tvos.deployment_target = '9.1' + spe...
Fix deployment target for tvos
diff --git a/profile/benchmark_21.rb b/profile/benchmark_21.rb index abc1234..def5678 100644 --- a/profile/benchmark_21.rb +++ b/profile/benchmark_21.rb @@ -14,7 +14,7 @@ collection = client[:test] documents = 50000.times.map do |i| - { name: 'user', index: i } + { name: 'user', index: i, embedded: [{ n: i }] } e...
RUBY-839: Add embedded array to test doc
diff --git a/config/application.rb b/config/application.rb index abc1234..def5678 100644 --- a/config/application.rb +++ b/config/application.rb @@ -25,5 +25,8 @@ # Configure the asset pipeline to include Bower components. config.assets.paths << Rails.root.join('vendor', 'assets', 'bower_components') + # ...
Add Google Tag Manager ID configuration
diff --git a/config/delayed_job.rb b/config/delayed_job.rb index abc1234..def5678 100644 --- a/config/delayed_job.rb +++ b/config/delayed_job.rb @@ -0,0 +1,2 @@+# See https://github.com/collectiveidea/delayed_job/commit/90579c3047099b6a58595d4025ab0f4b7f0aa67a. +Delayed::Worker.raise_signal_exceptions = :term
Exit jobs immediately on Heroku restart. See https://github.com/collectiveidea/delayed_job/commit/90579c3047099b6a58595d4025ab0f4b7f0aa67a
diff --git a/test/fragment_helper_test.rb b/test/fragment_helper_test.rb index abc1234..def5678 100644 --- a/test/fragment_helper_test.rb +++ b/test/fragment_helper_test.rb @@ -1,4 +1,53 @@ require 'cache_digests/test_helper' +class Fragmenter + include CacheDigests::FragmentHelper + attr_accessor :virtual_path, :f...
Add some simple tests around the CacheDigests::FragmentHelper.fragment_name_with_digest
diff --git a/lib/git_repo.rb b/lib/git_repo.rb index abc1234..def5678 100644 --- a/lib/git_repo.rb +++ b/lib/git_repo.rb @@ -3,17 +3,26 @@ class << self def inside_copy(cached_repo_name, ref = "master", submodules = false) + cached_repo_path = File.join(WORKING_DIR, cached_repo_name) # update local...
Make the submodule support for inside_copy efficient
diff --git a/drs-auth_client/spec/lib/drs/auth_client_spec.rb b/drs-auth_client/spec/lib/drs/auth_client_spec.rb index abc1234..def5678 100644 --- a/drs-auth_client/spec/lib/drs/auth_client_spec.rb +++ b/drs-auth_client/spec/lib/drs/auth_client_spec.rb @@ -3,5 +3,9 @@ it 'true is true' do expect(true).to be ...
Add failing spec to test CircleCI
diff --git a/lib/new_card.rb b/lib/new_card.rb index abc1234..def5678 100644 --- a/lib/new_card.rb +++ b/lib/new_card.rb @@ -24,7 +24,7 @@ 'idList'=>"#{@list_id}", 'due'=>nil, 'desc'=>"#{@build_url}", - 'idLabels'=>["#{@id_labels}"] + 'idLabels'=>@id_labels } @trell...
Fix idLabels to string instead of array
diff --git a/app/admin/farm.rb b/app/admin/farm.rb index abc1234..def5678 100644 --- a/app/admin/farm.rb +++ b/app/admin/farm.rb @@ -5,7 +5,7 @@ f.input :founded_at_year f.input :founded_at_month f.input :maximum_members - f.input :accepts_new_members + f.input :accepts_new_members, as: :s...
Add drop down menu for accepts_new_members.
diff --git a/lib/chaindrive/web.rb b/lib/chaindrive/web.rb index abc1234..def5678 100644 --- a/lib/chaindrive/web.rb +++ b/lib/chaindrive/web.rb @@ -1,6 +1,4 @@-require 'sinatra' require 'chaindrive/database' -require 'chaindrive/gear' module Chaindrive class Web < Sinatra::Application
Remove requires that are no longer required. Mainly due to refactoring and autoloading.
diff --git a/week-8/fibonacci_sequence.rb b/week-8/fibonacci_sequence.rb index abc1234..def5678 100644 --- a/week-8/fibonacci_sequence.rb +++ b/week-8/fibonacci_sequence.rb @@ -20,7 +20,7 @@ next_num = fibonacci[-1]+fibonacci[-2] fibonacci << next_num end - fibonacci.include?(num) + num == next_num end ...
Make final check a comparison
diff --git a/lib/dest/evaluator.rb b/lib/dest/evaluator.rb index abc1234..def5678 100644 --- a/lib/dest/evaluator.rb +++ b/lib/dest/evaluator.rb @@ -0,0 +1,22 @@+module Dest + + class Evaluator + + def initialize(parsed_attributes) + @parsed_attributes = parsed_attributes + end + + def evaluate + ex...
Add Evaluator, which given a parsed doctest. Evaluates the test and constructs a result for the Formatter
diff --git a/lib/ferrety_ferret.rb b/lib/ferrety_ferret.rb index abc1234..def5678 100644 --- a/lib/ferrety_ferret.rb +++ b/lib/ferrety_ferret.rb @@ -1,17 +1,22 @@ require "ferrety_ferret/version" require "httparty" module Ferrety - + class Ferret attr_accessor :alerts - def initialize - @alerts = []...
Add global initialize template & clear alerts function
diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index abc1234..def5678 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -1,3 +1,3 @@ # Be sure to restart your server when you modify this file. -Rails.application.config.session_sto...
Make session cookie last for two weeks to work around iOS bug Mobile Safari has a tendency to use cached form values even when the cache control headers tell it otherwise. However the session cookie has expired so when the form is submitted the CSRF token is invalid. See rails/rails#21948 for further details. Fixes ...
diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index abc1234..def5678 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -1,6 +1,6 @@ # Be sure to restart your server when you modify this file. -Rails.application.config.session_sto...
Set session to be alive 20 days by default
diff --git a/config/initializers/working_hours.rb b/config/initializers/working_hours.rb index abc1234..def5678 100644 --- a/config/initializers/working_hours.rb +++ b/config/initializers/working_hours.rb @@ -2,4 +2,5 @@ 2021-12-27 2021-12-28 2022-01-03 + 2022-09-19 ).map(&:to_date)
Configure the new bank holiday exclusion
diff --git a/app/models/arp.rb b/app/models/arp.rb index abc1234..def5678 100644 --- a/app/models/arp.rb +++ b/app/models/arp.rb @@ -1,6 +1,10 @@ class Arp def self.all - `ip neigh show nud reachable`.split(/\n/).map do |entry| + # Make sure you set the following sysctl knobs to something sane or else + # y...
Add stale neighbour monitoring in the Arp presence detection
diff --git a/app/models/arp.rb b/app/models/arp.rb index abc1234..def5678 100644 --- a/app/models/arp.rb +++ b/app/models/arp.rb @@ -1,8 +1,9 @@ class Arp def self.all `ip neigh show`.split(/\n/).map do |entry| - Arp.new *entry.scan(/\A([0-9a-f:.]*?) dev ([a-z0-9.]*?) lladdr ([0-9a-f:].*?) .*\z/i).first - ...
Fix issue with missing mac addresses
diff --git a/lib/license_finder.rb b/lib/license_finder.rb index abc1234..def5678 100644 --- a/lib/license_finder.rb +++ b/lib/license_finder.rb @@ -21,11 +21,11 @@ end def dependencies_yaml - "#{dependencies_dir}/dependencies.yml" + File.join(dependencies_dir, "dependencies.yml") end d...
Use File.join for great justice
diff --git a/test/app/controllers/posts_controller.rb b/test/app/controllers/posts_controller.rb index abc1234..def5678 100644 --- a/test/app/controllers/posts_controller.rb +++ b/test/app/controllers/posts_controller.rb @@ -1,12 +1,11 @@ class PostsController < ActionController::Base include CancanStrongParameters:...
Use correct format so tests will pass.
diff --git a/test/models/kiitos/administrator_test.rb b/test/models/kiitos/administrator_test.rb index abc1234..def5678 100644 --- a/test/models/kiitos/administrator_test.rb +++ b/test/models/kiitos/administrator_test.rb @@ -0,0 +1,17 @@+require 'test_helper' + +describe Kiitos::Administrator do + before do + @user = ...
Add test file for administrator model class
diff --git a/lib/sneakers/queue.rb b/lib/sneakers/queue.rb index abc1234..def5678 100644 --- a/lib/sneakers/queue.rb +++ b/lib/sneakers/queue.rb @@ -29,9 +29,13 @@ handler = @handler_klass.new(@channel) routing_key = @opts[:routing_key] || @name + routing_keys = routing_key.respond_to?(:each) ? routing_ke...
Allow binding to multiple routing keys.
diff --git a/lib/swallow/resque.rb b/lib/swallow/resque.rb index abc1234..def5678 100644 --- a/lib/swallow/resque.rb +++ b/lib/swallow/resque.rb @@ -3,9 +3,11 @@ desc "Restart Resque Workers" task :restart_workers, :roles => :resque do find_servers_for_task(current_task).each do |current_server| - ...
Use cap convention of prefixing console info with ' * '
diff --git a/lib/tasks/emails.rake b/lib/tasks/emails.rake index abc1234..def5678 100644 --- a/lib/tasks/emails.rake +++ b/lib/tasks/emails.rake @@ -2,6 +2,7 @@ namespace :emails do task :send_notifications_digest => :environment do User.with_state(:visible).find_each do |user| + require 'notificat...
Load mailer in email task
diff --git a/lib/tasks/stream.rake b/lib/tasks/stream.rake index abc1234..def5678 100644 --- a/lib/tasks/stream.rake +++ b/lib/tasks/stream.rake @@ -19,4 +19,9 @@ Rails.cache.write('cache', Cache.new) system('bundle exec rails runner script/tweetstream.rb start') end + + desc "Find daemon pid" + task :pid...
Add rake task to view daemon's pid
diff --git a/data-aggregation-accumulator.gemspec b/data-aggregation-accumulator.gemspec index abc1234..def5678 100644 --- a/data-aggregation-accumulator.gemspec +++ b/data-aggregation-accumulator.gemspec @@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = 'data_aggregation-accumulator'...
Package version is increased from 0.1.1.1 to 0.1.1.2
diff --git a/bin/benizi-uri.rb b/bin/benizi-uri.rb index abc1234..def5678 100644 --- a/bin/benizi-uri.rb +++ b/bin/benizi-uri.rb @@ -21,6 +21,7 @@ end end + add_scheme :postgresql add_scheme :ssh def fields
Add handling for `postgresql://` in `benizi-urb`
diff --git a/tools/generate-long-posting-list-data.rb b/tools/generate-long-posting-list-data.rb index abc1234..def5678 100644 --- a/tools/generate-long-posting-list-data.rb +++ b/tools/generate-long-posting-list-data.rb @@ -0,0 +1,24 @@+#!/usr/bin/env ruby + +require "json" + +puts(<<-COMMANDS) +table_create Data TABL...
Add a tool that generate data for long posting list
diff --git a/app.rb b/app.rb index abc1234..def5678 100644 --- a/app.rb +++ b/app.rb @@ -1,4 +1,5 @@ require 'open-uri' +require 'json' get '/' do redirect '/index.html' @@ -10,3 +11,13 @@ content_type file.content_type file end + +get '/config.json' do + content_type 'application/json' + path = 'public/c...
Read RSS service URI from env var
diff --git a/spec/factories/clubs.rb b/spec/factories/clubs.rb index abc1234..def5678 100644 --- a/spec/factories/clubs.rb +++ b/spec/factories/clubs.rb @@ -5,6 +5,5 @@ name { Faker::Lorem.words(rand(3) + 1).join " " } description { Faker::Lorem.sentence } price_cents { rand(9000) + 1000 } - log...
Update Club Factory to Remove Logo Remove the logo attribute from the Club factory since it is no longer a required attribute for a Club to be valid.
diff --git a/spec/factories/votes.rb b/spec/factories/votes.rb index abc1234..def5678 100644 --- a/spec/factories/votes.rb +++ b/spec/factories/votes.rb @@ -1,6 +1,6 @@ FactoryGirl.define do factory :vote do - up: { [true, false].sample } + up { [true, false].sample } end end
Add up field to vote factory
diff --git a/call_sign.gemspec b/call_sign.gemspec index abc1234..def5678 100644 --- a/call_sign.gemspec +++ b/call_sign.gemspec @@ -20,6 +20,6 @@ spec.add_dependency 'countries' - spec.add_development_dependency 'bundler', '~> 1.5' + spec.add_development_dependency 'bundler', '~> 2.0' spec.add_development_d...
Update bundler requirement from ~> 1.5 to ~> 2.0 Updates the requirements on [bundler](https://github.com/bundler/bundler) to permit the latest version. - [Release notes](https://github.com/bundler/bundler/releases) - [Changelog](https://github.com/bundler/bundler/blob/master/CHANGELOG.md) - [Commits](https://github.c...
diff --git a/lib/break_dance/security_scoping.rb b/lib/break_dance/security_scoping.rb index abc1234..def5678 100644 --- a/lib/break_dance/security_scoping.rb +++ b/lib/break_dance/security_scoping.rb @@ -3,7 +3,7 @@ extend ActiveSupport::Concern module ClassMethods - def scoped(options = nil) + de...
Upgrade to Rails 4.2. Still just console and Messages/Index working.
diff --git a/lib/landrush/action/redirect_dns.rb b/lib/landrush/action/redirect_dns.rb index abc1234..def5678 100644 --- a/lib/landrush/action/redirect_dns.rb +++ b/lib/landrush/action/redirect_dns.rb @@ -24,7 +24,7 @@ def _target_host case provider when :virtualbox then - '10.0.2.3' + ...
Revert "Change virtualbox DNS address to 10.0.2.3" This reverts commit 1df24371fc98f69f045d054a692be38d2330b32e. Reverting as @hferentschik would like to discuss this further.
diff --git a/lib/netsuite/records/custom_list.rb b/lib/netsuite/records/custom_list.rb index abc1234..def5678 100644 --- a/lib/netsuite/records/custom_list.rb +++ b/lib/netsuite/records/custom_list.rb @@ -14,12 +14,14 @@ field :custom_value_list, NetSuite::Support::GenericList + attr_reader :internal_id ...
Add reader method for internal_id
diff --git a/lib/sequent/core/event_publisher.rb b/lib/sequent/core/event_publisher.rb index abc1234..def5678 100644 --- a/lib/sequent/core/event_publisher.rb +++ b/lib/sequent/core/event_publisher.rb @@ -1,6 +1,13 @@ module Sequent module Core class EventPublisher + # + # EventPublisher ensures that,...
Synchronize events within a single thread
diff --git a/lib/tasks/populate_app_content.rake b/lib/tasks/populate_app_content.rake index abc1234..def5678 100644 --- a/lib/tasks/populate_app_content.rake +++ b/lib/tasks/populate_app_content.rake @@ -16,6 +16,7 @@ desc "Loads default front page content" task :default => :environment do + # Pending defaul...
Add comment to rake task that defaults are yet to come