diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/lib/svnx/blame/command.rb b/lib/svnx/blame/command.rb index abc1234..def5678 100644 --- a/lib/svnx/blame/command.rb +++ b/lib/svnx/blame/command.rb @@ -5,7 +5,7 @@ require 'svnx/base/command' module Svnx::Blame - class Command < Svnx::Base::Command + class Command < Svnx::Base::EntriesCommand cac...
Change blame to xml output.
diff --git a/thor-foodcritic.gemspec b/thor-foodcritic.gemspec index abc1234..def5678 100644 --- a/thor-foodcritic.gemspec +++ b/thor-foodcritic.gemspec @@ -13,7 +13,7 @@ s.license = "Apache 2.0" s.files = `git ls-files`.split("\n") s.require_paths = ["lib"] - s.required_r...
Drop support for Ruby 2.0 and 1.9 They’re both EOL Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
diff --git a/spec/features/issues/search_bar_spec.rb b/spec/features/issues/search_bar_spec.rb index abc1234..def5678 100644 --- a/spec/features/issues/search_bar_spec.rb +++ b/spec/features/issues/search_bar_spec.rb @@ -0,0 +1,55 @@+require 'rails_helper' + +describe 'Search bar', feature: true do + include WaitForAj...
Add specs for clear search button
diff --git a/spec/unit/resource/windows_path_spec.rb b/spec/unit/resource/windows_path_spec.rb index abc1234..def5678 100644 --- a/spec/unit/resource/windows_path_spec.rb +++ b/spec/unit/resource/windows_path_spec.rb @@ -28,7 +28,7 @@ expect(subject.resource_name).to eql(:windows_path) end - it "sets the path...
Fix typo in path specs Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
diff --git a/omnibus_overrides.rb b/omnibus_overrides.rb index abc1234..def5678 100644 --- a/omnibus_overrides.rb +++ b/omnibus_overrides.rb @@ -4,7 +4,7 @@ # override :erlang, version: "22.2" override :rubygems, version: "3.0.3" -override :bundler, version: "1.17.2" # pin to avoid double bundle error +override :bun...
Bump the bundler pin to the new shipped version Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
diff --git a/spec/langify/save_yaml_spec.rb b/spec/langify/save_yaml_spec.rb index abc1234..def5678 100644 --- a/spec/langify/save_yaml_spec.rb +++ b/spec/langify/save_yaml_spec.rb @@ -3,6 +3,8 @@ describe Langify::SaveYaml do let(:yml) { Langify::SaveYaml.new({lang: 'nl', file: 'profile', path: 'profile'}, "Profi...
Add more tests to test different scenarious we can expect
diff --git a/Casks/paintcode.rb b/Casks/paintcode.rb index abc1234..def5678 100644 --- a/Casks/paintcode.rb +++ b/Casks/paintcode.rb @@ -0,0 +1,7 @@+class Paintcode < Cask + url 'http://download.macheist.com/nano4/pc.zip' + homepage 'http://www.paintcodeapp.com/' + version '1.3.4' + sha256 '84e3794458851f42783fb8be...
Add direct download version of PaintCode 1.3.4 PaintCode was available through a recent MacHeist bundle, where it was made available as a direct download for the first time -- the normal distribution method is Mac App Store. This cask can be used for non-MAS owners of PaintCode to access the direct download version.
diff --git a/lib/elastic_search_registerer.rb b/lib/elastic_search_registerer.rb index abc1234..def5678 100644 --- a/lib/elastic_search_registerer.rb +++ b/lib/elastic_search_registerer.rb @@ -10,7 +10,7 @@ http_client.put(index_path, index_settings) http_client.put(mapping_path(mapping), json_mapping(mapping)...
Fix case sensitivity in rescue of exceptions As this can differ across platforms.
diff --git a/lib/jmespath/nodes/projection.rb b/lib/jmespath/nodes/projection.rb index abc1234..def5678 100644 --- a/lib/jmespath/nodes/projection.rb +++ b/lib/jmespath/nodes/projection.rb @@ -11,7 +11,8 @@ if (targets = extract_targets(@target.visit(value))) list = [] targets.each do |v| ...
Fix a bug in Projection It shouldn't skip false values, just nil values
diff --git a/app/models/search.rb b/app/models/search.rb index abc1234..def5678 100644 --- a/app/models/search.rb +++ b/app/models/search.rb @@ -21,7 +21,7 @@ def matches_by_tag tags = ActsAsTaggableOn::Tag.joins(:taggings) - .where(name: keywords, taggings: { taggable_type: klas...
Fix Search for Rails 5.
diff --git a/lib/s3_relay/upload_presigner.rb b/lib/s3_relay/upload_presigner.rb index abc1234..def5678 100644 --- a/lib/s3_relay/upload_presigner.rb +++ b/lib/s3_relay/upload_presigner.rb @@ -0,0 +1,59 @@+module S3Relay + class UploadPresigner < S3Relay::Base + + attr_reader :expires, :uuid + + def initialize(o...
Add UploadPresigner class to generate form data.
diff --git a/Framer.podspec b/Framer.podspec index abc1234..def5678 100644 --- a/Framer.podspec +++ b/Framer.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'Framer' - s.version = '1.3.1' + s.version = '1.3.2' s.summary = 'Comfortable syntax for working with frames' ...
Update pod version - > 1.3.2
diff --git a/config/deploy.rb b/config/deploy.rb index abc1234..def5678 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -1,4 +1,4 @@-lock '3.8.2' +lock '3.9.0' set :application, 'evemonk' set :repo_url, 'git@github.com:biow0lf/evemonk.git'
Update capistrano lock version to 3.9.0
diff --git a/gigest.gemspec b/gigest.gemspec index abc1234..def5678 100644 --- a/gigest.gemspec +++ b/gigest.gemspec @@ -22,6 +22,9 @@ gem.add_dependency "octokit", "~> 2.0" + # Add Rake dependency for Travis.. + gem.add_development_dependency "rake" + gem.add_development_dependency "rspec" gem.add_develo...
Add rake for travis to work.
diff --git a/test/models/field/xref_test.rb b/test/models/field/xref_test.rb index abc1234..def5678 100644 --- a/test/models/field/xref_test.rb +++ b/test/models/field/xref_test.rb @@ -1,6 +1,8 @@ require "test_helper" class Field::XrefTest < ActiveSupport::TestCase + include WithVCR + should validate_presence_o...
Use VCR to permit external HTTP request in test
diff --git a/config_helper.rb b/config_helper.rb index abc1234..def5678 100644 --- a/config_helper.rb +++ b/config_helper.rb @@ -11,6 +11,7 @@ ENV['JOURNAL_NAME'] = config.site_name ENV['CURRENT_ISSUE'] = config.current_issue ENV['CURRENT_VOLUME'] = config.current_volume + ENV['CURRENT_YEAR'] = Time.no...
Set the year in the config helper
diff --git a/app/models/event.rb b/app/models/event.rb index abc1234..def5678 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -14,7 +14,7 @@ validates_attachment_content_type :uploaded_file, :content_type => /\Aimage\/.*\Z/ def event_date - happens_on.strftime "%a, %b %e" + happens_on.strftime "%a,...
Add year to Event date
diff --git a/app/models/point.rb b/app/models/point.rb index abc1234..def5678 100644 --- a/app/models/point.rb +++ b/app/models/point.rb @@ -8,7 +8,8 @@ validates_inclusion_of :kind, in: KINDS validates_numericality_of :rank validate :lat_lon_must_be_set - validates_presence_of :price, if: Proc.new { |p| p.kin...
Add validation on step prices on creation trip
diff --git a/prompt.gemspec b/prompt.gemspec index abc1234..def5678 100644 --- a/prompt.gemspec +++ b/prompt.gemspec @@ -10,7 +10,7 @@ s.email = 'mike@sticknet.net' s.require_paths = ["lib"] - s.files = ["README.md"] + s.files = ["README.md", "CHANGELOG.md", "LICENSE.txt"] s.files ...
Include CHANGELOG & LICENSE in gem
diff --git a/app/models/votes.rb b/app/models/votes.rb index abc1234..def5678 100644 --- a/app/models/votes.rb +++ b/app/models/votes.rb @@ -3,7 +3,10 @@ def add_vote(message_id, user_id, point = 0) votes = Votes.find(:first, :conditions => ['message_id = ? and user_id = ?', message_id, user_id]) - unless v...
Allow users to change their own vote
diff --git a/spec/integration/start_page_spec.rb b/spec/integration/start_page_spec.rb index abc1234..def5678 100644 --- a/spec/integration/start_page_spec.rb +++ b/spec/integration/start_page_spec.rb @@ -6,7 +6,7 @@ visit "/#{APP_SLUG}" - within 'section#content' do + within '#content' do within '...
Fix test now that main section is a main element
diff --git a/spec/requests/idea_requests_spec.rb b/spec/requests/idea_requests_spec.rb index abc1234..def5678 100644 --- a/spec/requests/idea_requests_spec.rb +++ b/spec/requests/idea_requests_spec.rb @@ -9,48 +9,34 @@ describe "GET /ideas" do it "return http success" do get ideas_path - response.sta...
Clean up Idea request tests Sign in with a test user before requesting the new idea form. Don't make any expectations of what will be rendered; only test that the requests themselves are successes.
diff --git a/Casks/nndd.rb b/Casks/nndd.rb index abc1234..def5678 100644 --- a/Casks/nndd.rb +++ b/Casks/nndd.rb @@ -2,9 +2,9 @@ version '2.4.3' sha256 '6a73dcad2e73d877ad1503ed1162cae1a1c84f21d1abaa6aaf9b31bb2fbca531' - url 'http://dl.sourceforge.jp/nndd/62201/NNDD_v2_4_3.dmg' + url 'http://dl.osdn.jp/nndd/62...
Change hosting service name in NNDD.app Cask
diff --git a/Casks/chrome-devtools.rb b/Casks/chrome-devtools.rb index abc1234..def5678 100644 --- a/Casks/chrome-devtools.rb +++ b/Casks/chrome-devtools.rb @@ -0,0 +1,11 @@+cask :v1 => 'chrome-devtools' do + version :latest + sha256 :no_check + + url 'https://github.com/auchenberg/chrome-devtools-app/raw/master/bui...
Add Chrome DevTools.app (latest version)
diff --git a/lib/conjure/provision/server.rb b/lib/conjure/provision/server.rb index abc1234..def5678 100644 --- a/lib/conjure/provision/server.rb +++ b/lib/conjure/provision/server.rb @@ -0,0 +1,39 @@+module Conjure + module Provision + class Server + def initialize(server) + @server = server + en...
Add Provision::Server for quick DigitalOcean instantiation
diff --git a/lib/conjure/provision/server.rb b/lib/conjure/provision/server.rb index abc1234..def5678 100644 --- a/lib/conjure/provision/server.rb +++ b/lib/conjure/provision/server.rb @@ -25,13 +25,15 @@ end def self.bootstrap_options(name) + ssh_dir = File.expand_path("~/.ssh") + raise "E...
Generalize location of ssh keys
diff --git a/lib/podio/models/stream_mute.rb b/lib/podio/models/stream_mute.rb index abc1234..def5678 100644 --- a/lib/podio/models/stream_mute.rb +++ b/lib/podio/models/stream_mute.rb @@ -4,9 +4,6 @@ property :type, :string property :title, :string property :data, :hash - property :item, :boolean - property ...
Simplify this to match the changes in the API
diff --git a/lib/rack/dev-mark/theme/base.rb b/lib/rack/dev-mark/theme/base.rb index abc1234..def5678 100644 --- a/lib/rack/dev-mark/theme/base.rb +++ b/lib/rack/dev-mark/theme/base.rb @@ -24,13 +24,13 @@ end def gsub_tag_content(html, name, &block) - String.new(html).gsub(%r{(<#{name}\s*[^>...
Allow multiple lines to match
diff --git a/lib/exercism/assumable_user.rb b/lib/exercism/assumable_user.rb index abc1234..def5678 100644 --- a/lib/exercism/assumable_user.rb +++ b/lib/exercism/assumable_user.rb @@ -18,7 +18,6 @@ end def self.all - sql = "SELECT username, github_id FROM users u INNER JOIN lifecycle_events e ON u.id=e.user_...
Remove unused variable from AssumableUser::Identity The `sql` variable wasn't being used, so I removed it.
diff --git a/lib/peek/controller_helpers.rb b/lib/peek/controller_helpers.rb index abc1234..def5678 100644 --- a/lib/peek/controller_helpers.rb +++ b/lib/peek/controller_helpers.rb @@ -10,7 +10,7 @@ protected def set_peek_request_id - Peek.request_id = env['action_dispatch.request_id'] + Peek.reque...
Use request.uuid instead of env variable
diff --git a/20_firewall_rules.rb b/20_firewall_rules.rb index abc1234..def5678 100644 --- a/20_firewall_rules.rb +++ b/20_firewall_rules.rb @@ -0,0 +1,30 @@+def min_unblock(intervals) + unblocked = 0 + loop { + blockers = intervals.select { |min, max| (min..max).include?(unblocked) } + return unblocked if bloc...
Add day 20: Firewall Rules
diff --git a/fuel_purchase.gemspec b/fuel_purchase.gemspec index abc1234..def5678 100644 --- a/fuel_purchase.gemspec +++ b/fuel_purchase.gemspec @@ -24,6 +24,6 @@ s.add_runtime_dependency 'earth' s.add_dependency 'emitter', '~> 1.0.0' - s.add_development_dependency 'sniff', '~>0.11.3' + s.add_development_dep...
Update sniff dependency to 1.x
diff --git a/spec/support/python_helper.rb b/spec/support/python_helper.rb index abc1234..def5678 100644 --- a/spec/support/python_helper.rb +++ b/spec/support/python_helper.rb @@ -6,7 +6,7 @@ end def detect_python - stdout, stderr, status = Open3.capture3('command -v python') + stdout, stderr, status = Op...
Adjust python detection for specs
diff --git a/lib/simple_slack_bot/config.rb b/lib/simple_slack_bot/config.rb index abc1234..def5678 100644 --- a/lib/simple_slack_bot/config.rb +++ b/lib/simple_slack_bot/config.rb @@ -1,12 +1,11 @@- module SlackBot module Config - extend self + module_function ATTRIBUTES = [ - :debug, - ...
Change extend self to module_function
diff --git a/spec/services/sell_item_spec.rb b/spec/services/sell_item_spec.rb index abc1234..def5678 100644 --- a/spec/services/sell_item_spec.rb +++ b/spec/services/sell_item_spec.rb @@ -3,7 +3,7 @@ RSpec.describe SellItem, type: :class do let(:campaign) { create(:campaign, money: 0) } let(:hero) { create(:hero...
Add missing spec for sell_item
diff --git a/acapi.gemspec b/acapi.gemspec index abc1234..def5678 100644 --- a/acapi.gemspec +++ b/acapi.gemspec @@ -8,7 +8,7 @@ spec.version = Acapi::VERSION spec.authors = ["Dan Thomas"] spec.email = ["dan.thomas@dc.gov"] - spec.summary = %q{TODO: Write a short summary. Required.} +...
Add description Initialize runtime and development dependencies
diff --git a/bubble-wrap.gemspec b/bubble-wrap.gemspec index abc1234..def5678 100644 --- a/bubble-wrap.gemspec +++ b/bubble-wrap.gemspec @@ -2,18 +2,20 @@ require File.expand_path('../lib/bubble-wrap/version', __FILE__) Gem::Specification.new do |gem| - gem.authors = ["Matt Aimonetti", "Francis Chong"] - gem...
Include 'motion/' in rdoc directories.
diff --git a/test/integration/default/minitest/test_default.rb b/test/integration/default/minitest/test_default.rb index abc1234..def5678 100644 --- a/test/integration/default/minitest/test_default.rb +++ b/test/integration/default/minitest/test_default.rb @@ -7,6 +7,6 @@ it "check R version" do system('echo "q(...
Update R version for default
diff --git a/lib/engineyard/version.rb b/lib/engineyard/version.rb index abc1234..def5678 100644 --- a/lib/engineyard/version.rb +++ b/lib/engineyard/version.rb @@ -1,4 +1,4 @@ module EY - VERSION = '2.0.5' + VERSION = '2.0.6.pre' ENGINEYARD_SERVERSIDE_VERSION = ENV['ENGINEYARD_SERVERSIDE_VERSION'] || '2.0.1' end...
Add .pre for next release
diff --git a/lib/protobuf/lifecycle.rb b/lib/protobuf/lifecycle.rb index abc1234..def5678 100644 --- a/lib/protobuf/lifecycle.rb +++ b/lib/protobuf/lifecycle.rb @@ -7,10 +7,12 @@ event_name = normalized_event_name( event_name ) - log_warn { - message = "[DEPRECATED] Lifecycle events have been depr...
Use $stderr to print deprecation warnings
diff --git a/lib/restaurant/actions.rb b/lib/restaurant/actions.rb index abc1234..def5678 100644 --- a/lib/restaurant/actions.rb +++ b/lib/restaurant/actions.rb @@ -35,7 +35,7 @@ end def collection - Mongoid.default_session.with(:safe => true)[resources_name] + Mongoid.default_session[resources_nam...
Use non safe mode (recommended)
diff --git a/lib/ruby-jperf/options.rb b/lib/ruby-jperf/options.rb index abc1234..def5678 100644 --- a/lib/ruby-jperf/options.rb +++ b/lib/ruby-jperf/options.rb @@ -5,7 +5,12 @@ DEFAULT_FILE_PATTERN = '**/*_perf.rb' - attr_accessor :paths, :host, :port, :jmeter, :title, + attr_accessor :paths, + ...
Allow gui option to be set from command line
diff --git a/lib/tasks/bec_import.rake b/lib/tasks/bec_import.rake index abc1234..def5678 100644 --- a/lib/tasks/bec_import.rake +++ b/lib/tasks/bec_import.rake @@ -0,0 +1,32 @@+require 'csv' + +def if_file_exist(file_path) + if File.exist?(file_path) + lines = [] + CSV.foreach(file_path, headers: true, skip_bla...
Create rake tasks for BEC import
diff --git a/lib/tunees/application.rb b/lib/tunees/application.rb index abc1234..def5678 100644 --- a/lib/tunees/application.rb +++ b/lib/tunees/application.rb @@ -40,5 +40,38 @@ execute(camel_cased_method, *args) end end + + # Application elements + %w( + airplayDevices + browserWi...
Implement methods for Application Elements
diff --git a/config/clockwork.rb b/config/clockwork.rb index abc1234..def5678 100644 --- a/config/clockwork.rb +++ b/config/clockwork.rb @@ -23,10 +23,6 @@ end end - every(1.hour, "Health Check", at: "**:00") do - Slack.ping!("I am still alive!") - end - error_handler do |error| Slack.log!("[data....
Remove the report on Slack
diff --git a/clamp.gemspec b/clamp.gemspec index abc1234..def5678 100644 --- a/clamp.gemspec +++ b/clamp.gemspec @@ -13,7 +13,7 @@ s.summary = %q{a minimal framework for command-line utilities} s.description = <<EOF -Clamp makes provides an object-model for command-line utilities. +Clamp provides an ob...
Fix unsightly typo in gemspec.
diff --git a/Library/Homebrew/test/test_fails_with.rb b/Library/Homebrew/test/test_fails_with.rb index abc1234..def5678 100644 --- a/Library/Homebrew/test/test_fails_with.rb +++ b/Library/Homebrew/test/test_fails_with.rb @@ -0,0 +1,60 @@+require 'testing_env' +require 'test/testball' + +class FailsWithTests < Test::Uni...
Add new tests for fails_with DSL
diff --git a/lib/pgbackups-archive/storage.rb b/lib/pgbackups-archive/storage.rb index abc1234..def5678 100644 --- a/lib/pgbackups-archive/storage.rb +++ b/lib/pgbackups-archive/storage.rb @@ -23,10 +23,10 @@ end def store - options = { key: @key, body: @file, public: false, encryption: "AES256" } + option...
Convert `:` to `=>` for better Ruby compatibility
diff --git a/libraries/varnish_default_vcl.rb b/libraries/varnish_default_vcl.rb index abc1234..def5678 100644 --- a/libraries/varnish_default_vcl.rb +++ b/libraries/varnish_default_vcl.rb @@ -39,7 +39,7 @@ varnish_version: varnish_version ) action :create - notifies :restart,...
Switch from service restart to service reload. The varnish_default_vcl has been updated to perform a service reload instead of a service restart. This will prevent the cache from being cleared when a reload of the vcl file is enough.
diff --git a/app/jobs/update_clinical_trials.rb b/app/jobs/update_clinical_trials.rb index abc1234..def5678 100644 --- a/app/jobs/update_clinical_trials.rb +++ b/app/jobs/update_clinical_trials.rb @@ -8,7 +8,7 @@ end source.clinical_trials = clinical_trials source.save - sleep 0.1 + ...
Increase sleep to half a second
diff --git a/app/controllers/notes_controller.rb b/app/controllers/notes_controller.rb index abc1234..def5678 100644 --- a/app/controllers/notes_controller.rb +++ b/app/controllers/notes_controller.rb @@ -6,10 +6,15 @@ respond_to :js def index - notes + @notes = Notes::LoadContext.new(project, current_user...
Add discussions for merge requests to notes controller
diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb index abc1234..def5678 100644 --- a/app/controllers/pages_controller.rb +++ b/app/controllers/pages_controller.rb @@ -1,12 +1,9 @@ class PagesController < ApplicationController - - #caches_page :index, :about def index @ti...
Remove prism lookup on landing page Info isn't used and it's an expensive lookup
diff --git a/spec/codependency/parser_spec.rb b/spec/codependency/parser_spec.rb index abc1234..def5678 100644 --- a/spec/codependency/parser_spec.rb +++ b/spec/codependency/parser_spec.rb @@ -1,31 +1,71 @@ require 'spec_helper' describe Codependency::Parser do - let( :path ){ File.join( File.dirname( __FILE__ ),...
Remove filesystem dependency for parser spec
diff --git a/spec/mailers/user_mailer_spec.rb b/spec/mailers/user_mailer_spec.rb index abc1234..def5678 100644 --- a/spec/mailers/user_mailer_spec.rb +++ b/spec/mailers/user_mailer_spec.rb @@ -16,7 +16,7 @@ expect(mail.from).to eql(['moi@example.com']) end - it 'assigns @name' do - expect(mail.body.encoded).t...
Add test role in email
diff --git a/spec/mailers/user_mailer_spec.rb b/spec/mailers/user_mailer_spec.rb index abc1234..def5678 100644 --- a/spec/mailers/user_mailer_spec.rb +++ b/spec/mailers/user_mailer_spec.rb @@ -2,7 +2,7 @@ describe Spree::UserMailer do let(:user) { build(:user) } - + after do ActionMailer::Base.deliveries...
Add UserMailer specs adapted from Spree code
diff --git a/spec/togls/rules/boolean_spec.rb b/spec/togls/rules/boolean_spec.rb index abc1234..def5678 100644 --- a/spec/togls/rules/boolean_spec.rb +++ b/spec/togls/rules/boolean_spec.rb @@ -21,7 +21,7 @@ describe "#run" do it "returns the provided boolean value" do - bool_rule = Togls::Rules::Boolean.n...
Fix boolean rule spec to include type_id Why you made the change: I did this because rules now require the first parameter to be the abstract type_id of the rule.
diff --git a/core/app/helpers/comable/application_helper.rb b/core/app/helpers/comable/application_helper.rb index abc1234..def5678 100644 --- a/core/app/helpers/comable/application_helper.rb +++ b/core/app/helpers/comable/application_helper.rb @@ -25,7 +25,7 @@ end def store_location - session['custome...
Fix the after sign in path
diff --git a/SwiftyDropbox.podspec b/SwiftyDropbox.podspec index abc1234..def5678 100644 --- a/SwiftyDropbox.podspec +++ b/SwiftyDropbox.podspec @@ -12,6 +12,7 @@ s.ios.source_files = 'Source/SwiftyDropbox/Platform/SwiftyDropbox_iOS/**/*.{swift,h,m}' s.requires_arc = true + s.swift_version = '3.0' s.osx.de...
Set cocoapods swift_version so pod pushing works again
diff --git a/spec/model_spec.rb b/spec/model_spec.rb index abc1234..def5678 100644 --- a/spec/model_spec.rb +++ b/spec/model_spec.rb @@ -22,4 +22,28 @@ @episodes.is_a?(Loco::RecordArray).should.equal true end + it "should include the root on serialization" do + @show = Show.find(1) + @hash = @show.ser...
Add basic tests for serialization
diff --git a/spec/rgrep_spec.rb b/spec/rgrep_spec.rb index abc1234..def5678 100644 --- a/spec/rgrep_spec.rb +++ b/spec/rgrep_spec.rb @@ -1,13 +1,16 @@ require 'spec_helper' describe RGrep do - before :each do + # This is executed once before all tests + before :all do + # Instance variable accessible everywher...
Add first basic test to check the class
diff --git a/spec/acceptance/remote_spec.rb b/spec/acceptance/remote_spec.rb index abc1234..def5678 100644 --- a/spec/acceptance/remote_spec.rb +++ b/spec/acceptance/remote_spec.rb @@ -0,0 +1,105 @@+# Beaker class: nsd::remote +# +# This file is part of the test suite for the nsd module. +# +# === Authors +# +# Mario F...
Add beaker acceptance tests for nsd remote
diff --git a/spec/factories/ci/pipelines.rb b/spec/factories/ci/pipelines.rb index abc1234..def5678 100644 --- a/spec/factories/ci/pipelines.rb +++ b/spec/factories/ci/pipelines.rb @@ -15,12 +15,6 @@ factory :ci_pipeline_with_one_job do after(:build) do |commit| allow(commit).to receive(:ci_yaml_fil...
Remove pipeline factory that is not used in tests
diff --git a/spec/models/ongoing_event_spec.rb b/spec/models/ongoing_event_spec.rb index abc1234..def5678 100644 --- a/spec/models/ongoing_event_spec.rb +++ b/spec/models/ongoing_event_spec.rb @@ -1,5 +1,89 @@ require 'rails_helper' RSpec.describe OngoingEvent, type: :model do - pending "add some examples to (or de...
Create and pass ongoing_event model spec
diff --git a/spec/unit/recipes/default_spec.rb b/spec/unit/recipes/default_spec.rb index abc1234..def5678 100644 --- a/spec/unit/recipes/default_spec.rb +++ b/spec/unit/recipes/default_spec.rb @@ -1,19 +1,7 @@ require 'spec_helper' describe 'default recipe on Windows 2008 R2' do - let(:chef_run) do - ChefSpec::S...
Use the new chefspec format Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
diff --git a/core/db/migrate/20131214194807_create_comable_products.rb b/core/db/migrate/20131214194807_create_comable_products.rb index abc1234..def5678 100644 --- a/core/db/migrate/20131214194807_create_comable_products.rb +++ b/core/db/migrate/20131214194807_create_comable_products.rb @@ -7,7 +7,7 @@ t.text :c...
Fix the syntax of migration for PostgreSQL
diff --git a/motion/ruby_motion_query/stylers/ui_scroll_view_styler.rb b/motion/ruby_motion_query/stylers/ui_scroll_view_styler.rb index abc1234..def5678 100644 --- a/motion/ruby_motion_query/stylers/ui_scroll_view_styler.rb +++ b/motion/ruby_motion_query/stylers/ui_scroll_view_styler.rb @@ -1,9 +1,13 @@ module RubyMot...
Add ability to turn scrolling on and off in a scrollview styler.
diff --git a/app/jobs/send_single_triage_email_job.rb b/app/jobs/send_single_triage_email_job.rb index abc1234..def5678 100644 --- a/app/jobs/send_single_triage_email_job.rb +++ b/app/jobs/send_single_triage_email_job.rb @@ -2,7 +2,7 @@ def perform(id) repo_sub = RepoSubscription.includes(:user, :repo).find(id) ...
Fix missing repo_sub in assignment. Fix CODETRIAGE-DR
diff --git a/app/models/variant_decorator.rb b/app/models/variant_decorator.rb index abc1234..def5678 100644 --- a/app/models/variant_decorator.rb +++ b/app/models/variant_decorator.rb @@ -1,6 +1,8 @@ module SolidusShipwire - module Variant - prepend SolidusShipwire::Proxy + module VariantDecorator + def self.p...
Use Shipwireable module on Spree::Variant Replace prepend SolidusShipwire::Proxy with `acts_as_shipwireable`
diff --git a/app/models/gobierto_admin/admin_group.rb b/app/models/gobierto_admin/admin_group.rb index abc1234..def5678 100644 --- a/app/models/gobierto_admin/admin_group.rb +++ b/app/models/gobierto_admin/admin_group.rb @@ -14,7 +14,7 @@ has_many :people_permissions, -> { for_people }, class_name: "::GobiertoAdmin...
Add group_type to scope of uniqueness name validation of admin groups
diff --git a/tasks/public_suffix_service.rake b/tasks/public_suffix_service.rake index abc1234..def5678 100644 --- a/tasks/public_suffix_service.rake +++ b/tasks/public_suffix_service.rake @@ -1,14 +1,10 @@-namespace :pss do +task :download_definitions do + require "net/http" - task :download_definitions do - re...
Remove pss prefix for rake task
diff --git a/test/tzinfo-data2/tzinfo/data.rb b/test/tzinfo-data2/tzinfo/data.rb index abc1234..def5678 100644 --- a/test/tzinfo-data2/tzinfo/data.rb +++ b/test/tzinfo-data2/tzinfo/data.rb @@ -3,7 +3,7 @@ # Top level module for TZInfo::Data. module Data # The directory containing the TZInfo::Data files. - ...
Fix absolute path loading in safe mode on Ruby 1.9.3 and 2.0.0. __FILE__ is tainted on Ruby 2.1.0.
diff --git a/phantomjs-preview.rb b/phantomjs-preview.rb index abc1234..def5678 100644 --- a/phantomjs-preview.rb +++ b/phantomjs-preview.rb @@ -1,4 +1,4 @@-cask :v1 => 'phantomjs' do +cask :v1 => 'phantomjs-preview' do version '2.0.1' sha256 '0c3613d21187b4f3d02d3df9597800f404ff872bd43b748fb3fad84da425ae85'
Fix up the formula name.
diff --git a/pivo.gemspec b/pivo.gemspec index abc1234..def5678 100644 --- a/pivo.gemspec +++ b/pivo.gemspec @@ -22,4 +22,5 @@ spec.add_development_dependency "rake", "~> 10.0" spec.add_dependency "tracker_api" + spec.add_dependency "thor" end
Add thor gem to gemspec.
diff --git a/knife-vsphere.gemspec b/knife-vsphere.gemspec index abc1234..def5678 100644 --- a/knife-vsphere.gemspec +++ b/knife-vsphere.gemspec @@ -12,7 +12,7 @@ s.email = "ezra@cpan.org" s.files = Dir["lib/**/*"] + %w{LICENSE} s.required_ruby_version = ">= 2.5" - s.homepage = "http://github.com/chef/knife-vs...
Use https link in the gemspec Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
diff --git a/lib/celluloid/boot.rb b/lib/celluloid/boot.rb index abc1234..def5678 100644 --- a/lib/celluloid/boot.rb +++ b/lib/celluloid/boot.rb @@ -2,10 +2,9 @@ # Configure default systemwide settings Celluloid.task_class = Celluloid::TaskFiber +Celluloid.logger = Logger.new(STDERR) -# Launch the notification...
Disable the IncidentReporter by default The IncidentReporter is untested and probably not ready for primetime yet. This change disables it by default and uses similar logging to 0.12.0, which is a stdlib Logger which logs to STDERR.
diff --git a/lib/figaro/railtie.rb b/lib/figaro/railtie.rb index abc1234..def5678 100644 --- a/lib/figaro/railtie.rb +++ b/lib/figaro/railtie.rb @@ -4,7 +4,9 @@ module Figaro class Railtie < ::Rails::Railtie config.before_configuration do - ENV.update(Figaro.env) + Figaro.env.each do |key, value| + ...
Allow application.yml to be overridden by ENV variables
diff --git a/lib/forklift/utils.rb b/lib/forklift/utils.rb index abc1234..def5678 100644 --- a/lib/forklift/utils.rb +++ b/lib/forklift/utils.rb @@ -8,13 +8,29 @@ result[:count] = collection["count"] case target.to_sym when :catalog - result[:catalogs] = collection["category"].nil? ? [] : col...
Fix a damn bug cause by parsing XML. The XML return by Yahoo API is in the form: <categories count="8"> <category> <no>259</no> <level_no>2</level_no> <name><![CDATA[ohoh-mini]]></name> <type><![CDATA[1]]></type> </category> <category> <no>260</no> <level_no...
diff --git a/lib/snapshot/setup.rb b/lib/snapshot/setup.rb index abc1234..def5678 100644 --- a/lib/snapshot/setup.rb +++ b/lib/snapshot/setup.rb @@ -12,7 +12,7 @@ File.write(snapfile_path, File.read("#{gem_path}/lib/assets/SnapfileTemplate")) File.write(File.join(path, 'SnapshotHelper.swift'), File.read("#...
Fix wrong file extension in output
diff --git a/lib/tasks/travis.rake b/lib/tasks/travis.rake index abc1234..def5678 100644 --- a/lib/tasks/travis.rake +++ b/lib/tasks/travis.rake @@ -0,0 +1,5 @@+task :travis do + puts "Starting to run rake jasmine:ci..." + system("export DISPLAY=:99.0 && bundle exec rake jasmine:ci") + raise "rake jasmine:ci failed!...
Add new rake task for Travis-Jasmine configuration
diff --git a/lib/versionate/cli.rb b/lib/versionate/cli.rb index abc1234..def5678 100644 --- a/lib/versionate/cli.rb +++ b/lib/versionate/cli.rb @@ -19,6 +19,12 @@ Versionate.versionate file, options end + desc "version", "Display the version of versionate" + + def version + puts Versionate::VER...
Add a sub-command for outputting the gem version
diff --git a/resources/format_mount.rb b/resources/format_mount.rb index abc1234..def5678 100644 --- a/resources/format_mount.rb +++ b/resources/format_mount.rb @@ -1,4 +1,5 @@ actions :run +default_action :run attribute :mount_point, kind_of: String,
Add a default action: run
diff --git a/bitsy_client.gemspec b/bitsy_client.gemspec index abc1234..def5678 100644 --- a/bitsy_client.gemspec +++ b/bitsy_client.gemspec @@ -8,8 +8,8 @@ spec.version = BitsyClient::VERSION spec.authors = ["Ramon Tayag"] spec.email = ["ramon.tayag@gmail.com"] - spec.description = %q{TO...
Add gemspec summary and description
diff --git a/app/jobs/docker.rb b/app/jobs/docker.rb index abc1234..def5678 100644 --- a/app/jobs/docker.rb +++ b/app/jobs/docker.rb @@ -8,9 +8,10 @@ @queue = "docker" def perform at(0, 3, "Cloning Repo") - url = options[:url] - repo = options[:repo] - path = "/tmp#{repo}" + url = op...
Clean up before and after
diff --git a/test/test_helper.rb b/test/test_helper.rb index abc1234..def5678 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,5 +1,4 @@ require 'minitest/autorun' -require 'securerandom' module Gemshine module Test
Remove a reference to an unused lib
diff --git a/test/test_helper.rb b/test/test_helper.rb index abc1234..def5678 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -11,8 +11,7 @@ require 'columbus' class Test::Unit::TestCase -end - -def fixture_file(file) - File.read(File.join(File.dirname(__FILE__), 'fixtures', file)) + def fixture_file...
Put fixture file in test unit testcase
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 @@ -6,7 +6,7 @@ # :token_authenticatable, :confirmable, # :lockable, :timeoutable and :omniauthable devise :database_authenticatable, :registerable, - :recoverable, :remem...
Add welcome_message to delegate to UserMailer and override confirm! method
diff --git a/tnetstring.gemspec b/tnetstring.gemspec index abc1234..def5678 100644 --- a/tnetstring.gemspec +++ b/tnetstring.gemspec @@ -12,6 +12,11 @@ s.required_rubygems_version = ">= 1.3.7" s.files = Dir['lib/**/*'] + s.extra_rdoc_files = [ + "HISTORY.rdoc", + "MIT-LICENSE", + "README.rdoc" + ] ...
Add documentation files to gem
diff --git a/to_2d_hash.gemspec b/to_2d_hash.gemspec index abc1234..def5678 100644 --- a/to_2d_hash.gemspec +++ b/to_2d_hash.gemspec @@ -1,10 +1,10 @@ Gem::Specification.new do |s| s.name = "to_2d_hash" - s.version = "0.0.1" + s.version = "0.0.2" s.platform = Gem::Platf...
Change homepage and bump version number
diff --git a/resources/recursor_install.rb b/resources/recursor_install.rb index abc1234..def5678 100644 --- a/resources/recursor_install.rb +++ b/resources/recursor_install.rb @@ -21,6 +21,19 @@ property :version, String, default: '4.0.3' action :install do + apt_repository 'powerdns-recursor' do + uri 'http://...
Add in missing apt repo for trusty
diff --git a/rack-timeout.gemspec b/rack-timeout.gemspec index abc1234..def5678 100644 --- a/rack-timeout.gemspec +++ b/rack-timeout.gemspec @@ -6,7 +6,7 @@ spec.homepage = "http://github.com/heroku/rack-timeout" spec.author = "Caio Chassot" spec.email = "caio@heroku.com" - spec.files = Dir...
Include *.md files in the gem package
diff --git a/spec/digitalocean_spec.rb b/spec/digitalocean_spec.rb index abc1234..def5678 100644 --- a/spec/digitalocean_spec.rb +++ b/spec/digitalocean_spec.rb @@ -3,28 +3,27 @@ describe Digitalocean do subject(:digitalocean) { described_class } + before do + digitalocean.client_id = client_id + digitaloce...
Use the power of let. DRY.
diff --git a/test/support/have_attributes.rb b/test/support/have_attributes.rb index abc1234..def5678 100644 --- a/test/support/have_attributes.rb +++ b/test/support/have_attributes.rb @@ -32,5 +32,5 @@ Matcher.new(attributes).matches? subject end - Minitest::Test.register_matcher Matcher, :have_attributes + ...
Fix the test to work in Rails 4.0
diff --git a/app/models/address.rb b/app/models/address.rb index abc1234..def5678 100644 --- a/app/models/address.rb +++ b/app/models/address.rb @@ -1,4 +1,5 @@ class Address < ActiveRecord::Base belongs_to :user validates :state, length: { maximum: 2 } + validates :user_id, :city, :state, :zip_code, presence: t...
Add some validations to Address model
diff --git a/capistrano-runit-rake.gemspec b/capistrano-runit-rake.gemspec index abc1234..def5678 100644 --- a/capistrano-runit-rake.gemspec +++ b/capistrano-runit-rake.gemspec @@ -7,8 +7,8 @@ spec.version = '0.2.0' spec.authors = ["Alexander Simonov"] spec.email = ["alex@simonov.me"] - spe...
Add summary and description to gemspec. This should get rid of error messages like: The gemspec at ... is not valid. The validation error was '"FIXME" or "TODO" is not a description'.
diff --git a/resources/logging.rb b/resources/logging.rb index abc1234..def5678 100644 --- a/resources/logging.rb +++ b/resources/logging.rb @@ -21,4 +21,4 @@ actions :set_level default_action :set_level -attribute :level, :kind_of => String, :name_attribute => true, :equal_to => ["debug", "error", "info"], :default...
Remove default value not compatible with chef 14
diff --git a/orientdb-schema-migrator.gemspec b/orientdb-schema-migrator.gemspec index abc1234..def5678 100644 --- a/orientdb-schema-migrator.gemspec +++ b/orientdb-schema-migrator.gemspec @@ -14,7 +14,7 @@ spec.homepage = "https://copromote.com" spec.license = "MIT" - spec.files = FileList['...
Include rake task in gemspec files.
diff --git a/saxy.gemspec b/saxy.gemspec index abc1234..def5678 100644 --- a/saxy.gemspec +++ b/saxy.gemspec @@ -17,7 +17,7 @@ gem.required_ruby_version = ">= 1.9.3" - gem.add_dependency "nokogiri", "1.6.8.1" + gem.add_dependency "nokogiri" gem.add_development_dependency "rspec" end
Revert "Attempt to satisfy Ruby 1.9" This reverts commit 0a7e39112a79d826b5ae248a1f4ba653cb9b6d16.
diff --git a/app/controllers/site_controller.rb b/app/controllers/site_controller.rb index abc1234..def5678 100644 --- a/app/controllers/site_controller.rb +++ b/app/controllers/site_controller.rb @@ -1,4 +1,6 @@ class SiteController < ApplicationController + before_action :authenticate_user! + def members @ke...
Add authentication to site controller
diff --git a/app/serializers/post_serializer.rb b/app/serializers/post_serializer.rb index abc1234..def5678 100644 --- a/app/serializers/post_serializer.rb +++ b/app/serializers/post_serializer.rb @@ -1,6 +1,7 @@ class PostSerializer < ActiveModel::Serializer attributes( :id, + :public_id, :title, ...
Add public_id to API response Fix https://github.com/bm-sms/daimon-news-misc/issues/129
diff --git a/config/initializers/mail_safe.rb b/config/initializers/mail_safe.rb index abc1234..def5678 100644 --- a/config/initializers/mail_safe.rb +++ b/config/initializers/mail_safe.rb @@ -0,0 +1,4 @@+if defined?(MailSafe::Config) + MailSafe::Config.internal_address_definition = lambda { |addr| false } + MailSafe...
Fix production email - if there's no .gitconfig, don't fail.