diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/lib/tasks/bootstrap.rake b/lib/tasks/bootstrap.rake index abc1234..def5678 100644 --- a/lib/tasks/bootstrap.rake +++ b/lib/tasks/bootstrap.rake @@ -26,7 +26,7 @@ # Creates an administrator account in the application desc "Create admin account if it does not exist" task(create_admin_account: :...
Fix för felaktig koll om adminkontot existerar
diff --git a/NNNetwork.podspec b/NNNetwork.podspec index abc1234..def5678 100644 --- a/NNNetwork.podspec +++ b/NNNetwork.podspec @@ -5,7 +5,7 @@ s.homepage = 'http://github.com/tomazsh/NNNetwork' s.license = { :type => 'MIT', :file => 'LICENSE' } s.author = { 'Tomaz Nedeljko' => 'tomaz@nedeljko.c...
Revert "Redirect podspec to this branch." This reverts commit 6739c0cec9448a1265fd3beb6c74f5ac83bba656.
diff --git a/vendor/plugins/private_messaging/spec/models/private_message_spec.rb b/vendor/plugins/private_messaging/spec/models/private_message_spec.rb index abc1234..def5678 100644 --- a/vendor/plugins/private_messaging/spec/models/private_message_spec.rb +++ b/vendor/plugins/private_messaging/spec/models/private_mes...
Add skeleton for enhanced model specs
diff --git a/db/seeds.rb b/db/seeds.rb index abc1234..def5678 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -7,4 +7,5 @@ # Mayor.create(name: 'Emanuel', city: cities.first) # -category = Category.find_or_create_by_name('uncategorized') +puts "Create default category.\n" +category = Category.where(name: Category.de...
Refactor seed to use new ActiveRecord's find_or_create method
diff --git a/tasks/gpg_patch.rake b/tasks/gpg_patch.rake index abc1234..def5678 100644 --- a/tasks/gpg_patch.rake +++ b/tasks/gpg_patch.rake @@ -0,0 +1,14 @@+require 'buildr/gpg' + +raise "Patch applied in latest version of buildr" if Buildr::VERSION >= '1.4.16' + +module Buildr + module GPG + class << self + ...
Patch gpg addond to fix bug
diff --git a/lib/api2cart/daemon/total_request_count_guard.rb b/lib/api2cart/daemon/total_request_count_guard.rb index abc1234..def5678 100644 --- a/lib/api2cart/daemon/total_request_count_guard.rb +++ b/lib/api2cart/daemon/total_request_count_guard.rb @@ -1,14 +1,15 @@ module Api2cart::Daemon class TotalRequestCoun...
Make TotalRequestCountGuard count queued requests, not only currently running ones
diff --git a/telemetry.gemspec b/telemetry.gemspec index abc1234..def5678 100644 --- a/telemetry.gemspec +++ b/telemetry.gemspec @@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = 'telemetry' - s.version = '0.1.0' + s.version = '0.1.1' s.summary = 'In-process telemetry based on ob...
Package version is increased from 0.1.0 to 0.1.1
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,4 +1,3 @@-# This file is copied to spec/ when you run 'rails generate rspec:install' ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../../config/environment", __FILE__)...
Use transactional fixtures, remove comments
diff --git a/superstring.gemspec b/superstring.gemspec index abc1234..def5678 100644 --- a/superstring.gemspec +++ b/superstring.gemspec @@ -1,4 +1,4 @@-# -*- encoding: utf-8 -*- +# encoding: UTF-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'superstring...
Tweak style of encoding magic comment
diff --git a/lib/flipper/adapters/operation_logger.rb b/lib/flipper/adapters/operation_logger.rb index abc1234..def5678 100644 --- a/lib/flipper/adapters/operation_logger.rb +++ b/lib/flipper/adapters/operation_logger.rb @@ -50,7 +50,7 @@ def inspect attributes = [ "name=#{name.inspect}", - ...
Fix inspect for operation logger.
diff --git a/lib/modules/trade/compliance_grouping.rb b/lib/modules/trade/compliance_grouping.rb index abc1234..def5678 100644 --- a/lib/modules/trade/compliance_grouping.rb +++ b/lib/modules/trade/compliance_grouping.rb @@ -0,0 +1,69 @@+class Trade::ComplianceGrouping + attr_reader :query + + ATTRIBUTES = { + id:...
Add module to fetch grouped data from mviews
diff --git a/lib/provision/workqueue/noop_listener.rb b/lib/provision/workqueue/noop_listener.rb index abc1234..def5678 100644 --- a/lib/provision/workqueue/noop_listener.rb +++ b/lib/provision/workqueue/noop_listener.rb @@ -22,15 +22,14 @@ @logger.info("#{spec[:hostname]} [passed]") end - def error(e,spec) -...
Put a bit more detail in failure messages
diff --git a/lib/puppet/parser/functions/dns_array.rb b/lib/puppet/parser/functions/dns_array.rb index abc1234..def5678 100644 --- a/lib/puppet/parser/functions/dns_array.rb +++ b/lib/puppet/parser/functions/dns_array.rb @@ -26,6 +26,7 @@ uri = URI.parse("#{args[0]}apiapp=#{args[1]}&apitoken=#{args[2]}&domain=#{a...
Adjust ruby ssl settings to use TLSv1.2 for connection to web server
diff --git a/lib/nmap/run_stat.rb b/lib/nmap/run_stat.rb index abc1234..def5678 100644 --- a/lib/nmap/run_stat.rb +++ b/lib/nmap/run_stat.rb @@ -1,6 +1,8 @@ module Nmap # # Represents the runstats of a scan. + # + # @since 0.7.0 # class RunStat < Struct.new(:end_time, :elapsed, :summary, :exit_status)
Mark RunStat as being added in 0.7.0.
diff --git a/test/note_test.rb b/test/note_test.rb index abc1234..def5678 100644 --- a/test/note_test.rb +++ b/test/note_test.rb @@ -23,4 +23,16 @@ assert_equal @note_220.total_frames, @note_220.samples.length assert_equal @distorted_note.total_frames, @distorted_note.samples.length end + + def test_amplit...
Add test to verify amplitude range
diff --git a/test/teststrap.rb b/test/teststrap.rb index abc1234..def5678 100644 --- a/test/teststrap.rb +++ b/test/teststrap.rb @@ -26,4 +26,11 @@ $original_path = Dir.pwd +# Ensure that the pkg directory is clean before starting tests, but don't do it for every test. +if File.directory? "test/test_project/pkg" + ...
Delete existing test packages before testing.
diff --git a/processor/virtual.rb b/processor/virtual.rb index abc1234..def5678 100644 --- a/processor/virtual.rb +++ b/processor/virtual.rb @@ -16,6 +16,18 @@ class VirtualCmdProcessor attr_reader :settings def initialize(interfaces, settings={}) + @interfaces = interfaces + @intf ...
Add stripped down version of I/O routines. Sync with rbx-trepanning.
diff --git a/zabbixapi.gemspec b/zabbixapi.gemspec index abc1234..def5678 100644 --- a/zabbixapi.gemspec +++ b/zabbixapi.gemspec @@ -12,7 +12,7 @@ s.description = %q{Allows you to work with zabbix api from ruby.} s.licenses = %w(MIT) - s.add_dependency('json') + s.add_dependency('json', '~> 1.6', '>= 1.6.0...
Fix json version in gemspec
diff --git a/fex.gemspec b/fex.gemspec index abc1234..def5678 100644 --- a/fex.gemspec +++ b/fex.gemspec @@ -18,6 +18,7 @@ gem.require_paths = ["lib"] gem.add_dependency 'savon', '~> 2.0' + gem.add_development_dependency "rake" gem.add_development_dependency "rspec" gem.add_development_dependency "pry-nav...
Add Rake as test dependency for Travis
diff --git a/clipp/tests/tc_regression.rb b/clipp/tests/tc_regression.rb index abc1234..def5678 100644 --- a/clipp/tests/tc_regression.rb +++ b/clipp/tests/tc_regression.rb @@ -31,4 +31,17 @@ ) assert_log_match /action "block" executed/ end + + def test_negative_content_length + request = <<-EOS + ...
clipp: Add negative content length regression test.
diff --git a/app/controllers/index.rb b/app/controllers/index.rb index abc1234..def5678 100644 --- a/app/controllers/index.rb +++ b/app/controllers/index.rb @@ -0,0 +1,23 @@+get '/' do + erb :index +end + +get '/signout' do + session[:current_user] = nil + redirect '/' +end + +get "/auth" do + redirect client.auth_...
Create Authentication HTTP Calls To Google Oauth
diff --git a/trade_client.gemspec b/trade_client.gemspec index abc1234..def5678 100644 --- a/trade_client.gemspec +++ b/trade_client.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = "cf-trade-client" - s.version = "0.2.0" + s.version = "0.2.1" s.summary = "Ruby Coinfloor Client"...
Upgrade gem version due pushing problems
diff --git a/app/models/attachment.rb b/app/models/attachment.rb index abc1234..def5678 100644 --- a/app/models/attachment.rb +++ b/app/models/attachment.rb @@ -7,7 +7,7 @@ field :title field :filename - attaches :file, with_url_field: true + attaches :file, with_url_field: true, update_existing: true emb...
Set Attachable update option on Attachments
diff --git a/app/models/configured.rb b/app/models/configured.rb index abc1234..def5678 100644 --- a/app/models/configured.rb +++ b/app/models/configured.rb @@ -26,7 +26,11 @@ def Configured.included base class << base def method_missing method, *args - Rails.application.config.send(self.name.split...
Allow assignment of configuration values through Configurable module
diff --git a/app/models/layers_map.rb b/app/models/layers_map.rb index abc1234..def5678 100644 --- a/app/models/layers_map.rb +++ b/app/models/layers_map.rb @@ -4,4 +4,6 @@ class LayersMap < ActiveRecord::Base belongs_to :layer belongs_to :map + + validates_uniqueness_of :layer_id, :scope => :map_id, :message =>...
Add validation for adding the same map to a layer
diff --git a/app/models/rubyforger.rb b/app/models/rubyforger.rb index abc1234..def5678 100644 --- a/app/models/rubyforger.rb +++ b/app/models/rubyforger.rb @@ -14,7 +14,7 @@ def self.transfer(email, password) if rubyforger = Rubyforger.find_by_email(email) if user = rubyforger.transferable?(password) - ...
Make unit tests pass with new clearance version
diff --git a/Formula/weechat.rb b/Formula/weechat.rb index abc1234..def5678 100644 --- a/Formula/weechat.rb +++ b/Formula/weechat.rb @@ -11,7 +11,10 @@ def install #FIXME: Compiling perl module doesn't work #FIXME: GnuTLS support isn't detected - system "cmake", "-DDISABLE_PERL=ON", std_cmake_parameters,...
Fix Weechat always installing to /usr/local The WeeChat devs don't know about CMAKE_INSTALL_PREFIX apparently, someone should tell them. I won't. I plan on just sitting back and shacking my head side-to-side instead.
diff --git a/spec/project_spec.rb b/spec/project_spec.rb index abc1234..def5678 100644 --- a/spec/project_spec.rb +++ b/spec/project_spec.rb @@ -48,4 +48,14 @@ expect(project.tasks).to match expected end end + + describe "#build_task" do + it "raises error when invalid date passed as due date" do + ...
Add test case to confirm raising error
diff --git a/spec/recalls_spec.rb b/spec/recalls_spec.rb index abc1234..def5678 100644 --- a/spec/recalls_spec.rb +++ b/spec/recalls_spec.rb @@ -29,7 +29,7 @@ to_return(:status => 401, :body => "Invalid API Key", :headers => {}) end - it "should return a hash with an error" do + it "sh...
Change description of recalls spec.
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 @@ -20,12 +20,12 @@ describe "#show" do it "has a 200 status code" do - get :show, {i...
Make change to comply with circle ci tests
diff --git a/lib/discordrb/voice/encoder.rb b/lib/discordrb/voice/encoder.rb index abc1234..def5678 100644 --- a/lib/discordrb/voice/encoder.rb +++ b/lib/discordrb/voice/encoder.rb @@ -1,4 +1,9 @@-require 'opus-ruby' +begin + require 'opus-ruby' + OPUS_AVAILABLE = true +rescue LoadError + OPUS_AVAILABLE = false +end...
Make the opus dependency optional
diff --git a/lib/facter/sendmail_version.rb b/lib/facter/sendmail_version.rb index abc1234..def5678 100644 --- a/lib/facter/sendmail_version.rb +++ b/lib/facter/sendmail_version.rb @@ -5,8 +5,9 @@ Facter.add(:sendmail_version) do setcode do begin - command = 'sendmail -d0.4 -ODontProbeInterfaces=true -bv r...
Enforce timeout in facter execution of sendmail
diff --git a/lib/front_end_builds/engine.rb b/lib/front_end_builds/engine.rb index abc1234..def5678 100644 --- a/lib/front_end_builds/engine.rb +++ b/lib/front_end_builds/engine.rb @@ -14,15 +14,13 @@ app.middleware.insert_before(::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public") end - ...
Use `group: all` so initializer is triggered during asset comp.
diff --git a/lib/lokka/models/similarity.rb b/lib/lokka/models/similarity.rb index abc1234..def5678 100644 --- a/lib/lokka/models/similarity.rb +++ b/lib/lokka/models/similarity.rb @@ -3,9 +3,8 @@ class Similarity include DataMapper::Resource - property :id, Serial - property :entry_id, Integer - property :simi...
Drop id column from similarities
diff --git a/lib/paypal/express/response.rb b/lib/paypal/express/response.rb index abc1234..def5678 100644 --- a/lib/paypal/express/response.rb +++ b/lib/paypal/express/response.rb @@ -6,6 +6,7 @@ def initialize(response, options = {}) super response @pay_on_paypal = options[:pay_on_paypal] + ...
Allow override of cmd to enable forcing _express-checkout-mobile
diff --git a/lib/pycall/pyobject_wrapper.rb b/lib/pycall/pyobject_wrapper.rb index abc1234..def5678 100644 --- a/lib/pycall/pyobject_wrapper.rb +++ b/lib/pycall/pyobject_wrapper.rb @@ -1,5 +1,36 @@ module PyCall module PyObjectWrapper + module ClassMethods + private + + def wrap_class(pyobj) + de...
Add wrap_class class method or a subclass of PyObjectWrapper
diff --git a/lib/resume_generator/header.rb b/lib/resume_generator/header.rb index abc1234..def5678 100644 --- a/lib/resume_generator/header.rb +++ b/lib/resume_generator/header.rb @@ -13,6 +13,9 @@ def initialize(pdf, data) @pdf = pdf @data = data + # Different rendering behaviour needed dependi...
Add comment indicating reasoning for dynamic module inclusion
diff --git a/jam.gemspec b/jam.gemspec index abc1234..def5678 100644 --- a/jam.gemspec +++ b/jam.gemspec @@ -2,8 +2,12 @@ # project in your rails apps through git. Gem::Specification.new do |s| s.name = "jam.rb" + s.version = "0.0.3" + s.platform = Gem::Platform::RUBY + s.authors = ["Eduard Tsech"] + s.e...
Add Some info into gemspec
diff --git a/atspi_app_driver.gemspec b/atspi_app_driver.gemspec index abc1234..def5678 100644 --- a/atspi_app_driver.gemspec +++ b/atspi_app_driver.gemspec @@ -13,7 +13,7 @@ 'README.md', 'LICENSE', 'Rakefile', - 'gems.rb' + 'Gemfile' ] s.add_dependency('gir_ffi', ['~> 0.8.0'])
Fix file list due to rename of gems.rb
diff --git a/spec/curb_spec.rb b/spec/curb_spec.rb index abc1234..def5678 100644 --- a/spec/curb_spec.rb +++ b/spec/curb_spec.rb @@ -4,12 +4,24 @@ unless RUBY_PLATFORM =~ /java/ require 'curb_spec_helper' + describe "Curb", :shared => true do + include CurbSpecHelper + + it_should_behave_like "WebMock" ...
Add failing spec for PUTs and some DRY cleanup.
diff --git a/spec/post_spec.rb b/spec/post_spec.rb index abc1234..def5678 100644 --- a/spec/post_spec.rb +++ b/spec/post_spec.rb @@ -9,7 +9,7 @@ end before do - config = Hashie::Mash.new(layouts: { post: 'post' }) + config = Dimples::Configuration.prepare({}) allow(site).to receive(:config).and_return...
Switch to the config module, and add tests for the url method
diff --git a/lib/rack/dev-mark/theme/github_fork_ribbon.rb b/lib/rack/dev-mark/theme/github_fork_ribbon.rb index abc1234..def5678 100644 --- a/lib/rack/dev-mark/theme/github_fork_ribbon.rb +++ b/lib/rack/dev-mark/theme/github_fork_ribbon.rb @@ -29,7 +29,7 @@ EOS html. sub("</head>", "#...
Fix ambiguous regular expression literal
diff --git a/sprockets.gemspec b/sprockets.gemspec index abc1234..def5678 100644 --- a/sprockets.gemspec +++ b/sprockets.gemspec @@ -1,8 +1,8 @@ Gem::Specification.new do |s| s.name = "sprockets" s.version = "2.0.0" - s.summary = "JavaScript dependency management and concatenation" - s.description = "Sprockets ...
Update gemspec summary and description
diff --git a/sprockets.gemspec b/sprockets.gemspec index abc1234..def5678 100644 --- a/sprockets.gemspec +++ b/sprockets.gemspec @@ -10,9 +10,9 @@ s.add_dependency "rack", "~> 1.0" s.add_dependency "tilt", "~> 1.0" - s.add_development_dependency "execjs", "~> 0.4" - s.add_development_dependency "coffee-script"...
Kill requirements on dev deps
diff --git a/rf-rest-open-uri.gemspec b/rf-rest-open-uri.gemspec index abc1234..def5678 100644 --- a/rf-rest-open-uri.gemspec +++ b/rf-rest-open-uri.gemspec @@ -18,5 +18,6 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] + spec.add_development_dependency "bundler"...
Add bundler as a development dependency
diff --git a/cavalry.gemspec b/cavalry.gemspec index abc1234..def5678 100644 --- a/cavalry.gemspec +++ b/cavalry.gemspec @@ -20,8 +20,8 @@ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] - spec.add_dependency "activemodel", "~> 6.0" - spec.add_dependency "a...
Fix required activemodel version from ~> 5.1 to >= 6.0
diff --git a/dartium.rb b/dartium.rb index abc1234..def5678 100644 --- a/dartium.rb +++ b/dartium.rb @@ -9,7 +9,7 @@ devel do version '1.7.0-dev.4.6' - url 'https://storage.googleapis.com/dart-archive/channels/dev/releagithubse/41090/dartium/dartium-macos-ia32-release.zip' + url 'https://storage.googleap...
Remove stray characters from auto-generated formula.
diff --git a/lib/dmtx.rb b/lib/dmtx.rb index abc1234..def5678 100644 --- a/lib/dmtx.rb +++ b/lib/dmtx.rb @@ -10,23 +10,29 @@ def initialize(text = nil) @text = text - @enc = DmtxLib.dmtxEncodeCreate() - DmtxLib.dmtxEncodeSetProp(@enc, :DmtxPropPixelPacking, :DmtxPack24bppRGB) - DmtxLib.dmtxEncodeSetPr...
Create a new DmtxEncode each time we write It looks like calling dmtxEncodeDataMatrix more than once on the same DmtxEncode leaks memory.
diff --git a/lib/grid.rb b/lib/grid.rb index abc1234..def5678 100644 --- a/lib/grid.rb +++ b/lib/grid.rb @@ -1,8 +1,8 @@ class Grid - def initialize(window, user, mapfile, tileset, map_key) + def initialize(window, user, mapfile, tileset) @window, @user = window, user - @map = Map.new(window, mapfile, tiles...
Remove map_key as a parameter for Grid
diff --git a/app/models/cart.rb b/app/models/cart.rb index abc1234..def5678 100644 --- a/app/models/cart.rb +++ b/app/models/cart.rb @@ -1,6 +1,6 @@ class Cart < ApplicationRecord belongs_to :user - belongs_to :variant, dependent: :destroy + belongs_to :variant validates_presence_of :quantity, :size
Fix косяка, при попытке удаления товара из корзины, удалялся вариант.
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 @@ -11,4 +11,11 @@ has_many :listings has_many :followed_listings, dependent: :destroy has_many :donation_applications, dependent: :destroy + + before_create :set_account_type + ...
Fix account type not being set by default
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,7 +2,7 @@ devise :database_authenticatable, :registerable, :recoverable, :rememberable, :confirmable, :validatable - enum locale: [:de, :en] + enum locale: { de: 0, ...
Change locale enum to hash with integers
diff --git a/watir/all_tests.rb b/watir/all_tests.rb index abc1234..def5678 100644 --- a/watir/all_tests.rb +++ b/watir/all_tests.rb @@ -9,5 +9,5 @@ require "./test_installation.rb" require "./test_international.rb" require "./test_backup.rb" -require "./test_users.rb" +# require "./test_users.rb"
Remove failing test just to see
diff --git a/wrap_excel.gemspec b/wrap_excel.gemspec index abc1234..def5678 100644 --- a/wrap_excel.gemspec +++ b/wrap_excel.gemspec @@ -7,7 +7,7 @@ s.version = WrapExcel::VERSION s.authors = ["tomi"] s.email = ["tomiacannondale@gmail.com"] - s.homepage = "" + s.homepage = "https://github....
Add homepage address of gemspec.
diff --git a/db/migrate/20130311140347_create_continuous_trait_values.rb b/db/migrate/20130311140347_create_continuous_trait_values.rb index abc1234..def5678 100644 --- a/db/migrate/20130311140347_create_continuous_trait_values.rb +++ b/db/migrate/20130311140347_create_continuous_trait_values.rb @@ -1,7 +1,6 @@ class C...
Remove position from continuous trait
diff --git a/lib/puppet-swagger-generator/files/swagger/fuzzy_compare.rb b/lib/puppet-swagger-generator/files/swagger/fuzzy_compare.rb index abc1234..def5678 100644 --- a/lib/puppet-swagger-generator/files/swagger/fuzzy_compare.rb +++ b/lib/puppet-swagger-generator/files/swagger/fuzzy_compare.rb @@ -16,7 +16,7 @@ ...
Fix bug in sync detection
diff --git a/Ruby/LeaderBoard/spec/leader_board_spec.rb b/Ruby/LeaderBoard/spec/leader_board_spec.rb index abc1234..def5678 100644 --- a/Ruby/LeaderBoard/spec/leader_board_spec.rb +++ b/Ruby/LeaderBoard/spec/leader_board_spec.rb @@ -0,0 +1,29 @@+require_relative '../leader_board' +require_relative '../race' +require_re...
Test for the winner method
diff --git a/tachikoma.gemspec b/tachikoma.gemspec index abc1234..def5678 100644 --- a/tachikoma.gemspec +++ b/tachikoma.gemspec @@ -20,7 +20,7 @@ spec.add_dependency 'safe_yaml' spec.add_dependency 'rake' - spec.add_dependency 'octokit', '< 3' + spec.add_dependency 'octokit', '>= 2', '< 3' spec.add_depende...
Add lower limit for octokit version
diff --git a/spec/gilded_rose_spec.rb b/spec/gilded_rose_spec.rb index abc1234..def5678 100644 --- a/spec/gilded_rose_spec.rb +++ b/spec/gilded_rose_spec.rb @@ -1,4 +1,4 @@-require './gilded_rose.rb' +require './gilded_rose' RSpec.describe GildedRose do
Remove unnecessary `.rb` extension in require statement
diff --git a/spec/signrequest_spec.rb b/spec/signrequest_spec.rb index abc1234..def5678 100644 --- a/spec/signrequest_spec.rb +++ b/spec/signrequest_spec.rb @@ -0,0 +1,81 @@+require 'spec_helper' + +describe SignRequest do + it 'has a version number' do + expect(SignRequest::VERSION).not_to be nil + end + + descr...
Remove unnecessary require 'json' from specs.
diff --git a/spec/tasks/reset_spec.rb b/spec/tasks/reset_spec.rb index abc1234..def5678 100644 --- a/spec/tasks/reset_spec.rb +++ b/spec/tasks/reset_spec.rb @@ -11,7 +11,6 @@ Question.count.should_not eq(0) end it "properly associates Questions with VoiceFiles" do - binding.pry Question.all.each do |q...
Remove pry statement from Rake task
diff --git a/SKStatefulTableViewController.podspec b/SKStatefulTableViewController.podspec index abc1234..def5678 100644 --- a/SKStatefulTableViewController.podspec +++ b/SKStatefulTableViewController.podspec @@ -9,7 +9,7 @@ } s.source = { :git => 'https://github.com/shiki/SKStatefulTableViewController.git', ...
Fix for :tag value in podspec
diff --git a/gh.gemspec b/gh.gemspec index abc1234..def5678 100644 --- a/gh.gemspec +++ b/gh.gemspec @@ -20,7 +20,11 @@ s.add_runtime_dependency 'faraday', '~> 0.8' s.add_runtime_dependency 'backports' s.add_runtime_dependency 'multi_json', '~> 1.0' - s.add_runtime_dependency 'addressable' + if RUBY_VERS...
Fix old Rubies on old addressable
diff --git a/MSSocialKit.podspec b/MSSocialKit.podspec index abc1234..def5678 100644 --- a/MSSocialKit.podspec +++ b/MSSocialKit.podspec @@ -10,8 +10,8 @@ s.author = { "Devon Tivona" => "devon@monospacecollective.com" } s.source = { :git => 'https://github.com/monospacecollective/MSSocialKit.git', :tag...
Revert "Moves data model from resource to source" This reverts commit b4b97ec6d092249f6882a485b6b6e4918ff8085c.
diff --git a/db/seeds/001-hets.rb b/db/seeds/001-hets.rb index abc1234..def5678 100644 --- a/db/seeds/001-hets.rb +++ b/db/seeds/001-hets.rb @@ -1,3 +1,7 @@-Sidekiq::Testing.disable! do +if Rails.env.production? RakeHelper::Hets.create_instances +else + Sidekiq::Testing.disable! do + RakeHelper::Hets.create_inst...
Fix NameError in seeds for production mode.
diff --git a/lib/import_o_matic/logger.rb b/lib/import_o_matic/logger.rb index abc1234..def5678 100644 --- a/lib/import_o_matic/logger.rb +++ b/lib/import_o_matic/logger.rb @@ -7,11 +7,13 @@ "#{timestamp.to_formatted_s(:db)} #{severity} #{msg}\n" end - def initialize object_name + def initialize obje...
Add old logs clear method
diff --git a/lib/marshalled_attributes.rb b/lib/marshalled_attributes.rb index abc1234..def5678 100644 --- a/lib/marshalled_attributes.rb +++ b/lib/marshalled_attributes.rb @@ -6,7 +6,7 @@ module SingletonMethods - def marshalled_attribute(*args) + def marshal(*args) args.each do |arg| defin...
Make code consistent with docs
diff --git a/app/controllers/answers_controller.rb b/app/controllers/answers_controller.rb index abc1234..def5678 100644 --- a/app/controllers/answers_controller.rb +++ b/app/controllers/answers_controller.rb @@ -5,18 +5,10 @@ @question = Question.find(params[:question_id]) end - def new - @answer = Answer...
Remove unnecessary param from redirect.
diff --git a/app/controllers/flights_controller.rb b/app/controllers/flights_controller.rb index abc1234..def5678 100644 --- a/app/controllers/flights_controller.rb +++ b/app/controllers/flights_controller.rb @@ -16,7 +16,6 @@ if @search.valid? @flights = @search.generate_flights - p @flights ...
Remove print from FLight controller
diff --git a/app/controllers/recipes_controller.rb b/app/controllers/recipes_controller.rb index abc1234..def5678 100644 --- a/app/controllers/recipes_controller.rb +++ b/app/controllers/recipes_controller.rb @@ -20,14 +20,16 @@ api = NutritionIx.new(params[:recipe][:search]) if api.errors? - flas...
Fix error if food search is empty in new recipe form
diff --git a/config/schedule.rb b/config/schedule.rb index abc1234..def5678 100644 --- a/config/schedule.rb +++ b/config/schedule.rb @@ -0,0 +1,6 @@+set :output, {:error => 'log/cron.error.log', :standard => 'log/cron.log'} +job_type :run_script, 'cd :path && RAILS_ENV=:environment script/:task' + +every 15.minutes do...
Update the relatedness graph every 15 minutes
diff --git a/app/uploaders/static_file_uploader.rb b/app/uploaders/static_file_uploader.rb index abc1234..def5678 100644 --- a/app/uploaders/static_file_uploader.rb +++ b/app/uploaders/static_file_uploader.rb @@ -1,6 +1,8 @@ class StaticFileUploader < BaseUploader include CarrierWave::MiniMagick + + def store_dir...
Change store dir for static files
diff --git a/lib/ubuntu_unused_kernels.rb b/lib/ubuntu_unused_kernels.rb index abc1234..def5678 100644 --- a/lib/ubuntu_unused_kernels.rb +++ b/lib/ubuntu_unused_kernels.rb @@ -9,7 +9,10 @@ current = get_current PACKAGE_PREFIXES.each do |prefix| - latest = packages.select { |package| package.start...
Implement order handling in to_remove Just in case `dpkg` ever gives us unordered results. We can't rely on the latest being at the end.
diff --git a/Casks/cloudup.rb b/Casks/cloudup.rb index abc1234..def5678 100644 --- a/Casks/cloudup.rb +++ b/Casks/cloudup.rb @@ -4,7 +4,7 @@ url 'https://updates.cloudup.com/update?os=osx&app=Cloudup&format=zip&channel=release' homepage 'https://cloudup.com/download' - license :unknown # todo: change license...
Update Cloudup.app license to Freemium.
diff --git a/Casks/jumpcut.rb b/Casks/jumpcut.rb index abc1234..def5678 100644 --- a/Casks/jumpcut.rb +++ b/Casks/jumpcut.rb @@ -3,6 +3,6 @@ homepage 'http://jumpcut.sourceforge.net/' version '0.63' sha1 '6ac88694f84b549f87c7c20bbf028f1d174d9e40' - link :app, 'Jumpcut.app' + link 'Jumpcut.app' end
Remove :app designation from Jumpcut link
diff --git a/Casks/rstudio.rb b/Casks/rstudio.rb index abc1234..def5678 100644 --- a/Casks/rstudio.rb +++ b/Casks/rstudio.rb @@ -1,6 +1,6 @@ cask :v1 => 'rstudio' do - version '0.99.484' - sha256 '5a7a9fc8559a653d38402aadbd7c1a8c726dfdf193ed5394c29fbfa9a4608b2b' + version '0.99.485' + sha256 '2125e01171b814f709c9c0...
Upgrade RStudio to 0.99.485: fix Safari 9 bug There's a bug introduced with the change to Safari 9 and/or El Capitan where RStudio crashes when changing project. For reference, the specific issue is rstudio/rstudio#505.
diff --git a/Deferred.podspec b/Deferred.podspec index abc1234..def5678 100644 --- a/Deferred.podspec +++ b/Deferred.podspec @@ -8,7 +8,7 @@ 'Giles Van Gruisen' => 'giles@vangruisen.com', } spec.source = { :git => 'https://github.com/remarkableio/Deferred.git', :tag => "v#{spec.version}" } - spec.source_file...
Fix source files in podspec
diff --git a/Dopamine.podspec b/Dopamine.podspec index abc1234..def5678 100644 --- a/Dopamine.podspec +++ b/Dopamine.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "Dopamine" - s.version = "0.0.1" + s.version = "0.1.0" s.summary = "A Swift client for http://usedopamine.com/" s...
Make podspec version match the defined version
diff --git a/metadata.rb b/metadata.rb index abc1234..def5678 100644 --- a/metadata.rb +++ b/metadata.rb @@ -9,7 +9,6 @@ version '5.10.2' supports 'centos', '~> 7.0' -supports 'centos', '~> 8.0' supports 'centos_stream', '~> 8.0' depends 'composer'
Remove CentOS 8 in favor of CentOS Stream 8 Signed-off-by: Lance Albertson <3161cdc7bf197e4c3a35b9cbe358c79910f27e90@osuosl.org>
diff --git a/econfig.gemspec b/econfig.gemspec index abc1234..def5678 100644 --- a/econfig.gemspec +++ b/econfig.gemspec @@ -11,6 +11,7 @@ gem.description = %q{Flexible configuration for Ruby/Rails applications with a variety of backends} gem.summary = %q{Congifure Ruby apps} gem.homepage = "https:...
Document project license in gemspec
diff --git a/Snippets.podspec b/Snippets.podspec index abc1234..def5678 100644 --- a/Snippets.podspec +++ b/Snippets.podspec @@ -2,7 +2,7 @@ spec.name = 'Snippets' spec.version = '0.1.14' spec.summary = 'Snippets in Swift' - spec.description = <<-DESCRIPTION + spec.description = <<-DESCRIPTION.gsub(/\s+/, ' '...
Clean up Pod description whitespace
diff --git a/lib/rom/support/data_proxy.rb b/lib/rom/support/data_proxy.rb index abc1234..def5678 100644 --- a/lib/rom/support/data_proxy.rb +++ b/lib/rom/support/data_proxy.rb @@ -0,0 +1,51 @@+module ROM + module DataProxy + attr_reader :data, :header, :tuple_proc + + NON_FORWARDABLE = [ + :each, :to_a, :t...
Move DataProxy to support dir
diff --git a/lib/ruby-progressbar/timer.rb b/lib/ruby-progressbar/timer.rb index abc1234..def5678 100644 --- a/lib/ruby-progressbar/timer.rb +++ b/lib/ruby-progressbar/timer.rb @@ -6,7 +6,7 @@ :stopped_at def initialize(options = {}) - self.time = options[:time] || Time.new + self.time = opti...
Change: Make Extra Sure We're Not Loading Ruby's Time Class
diff --git a/lib/tasks/markus_general.rake b/lib/tasks/markus_general.rake index abc1234..def5678 100644 --- a/lib/tasks/markus_general.rake +++ b/lib/tasks/markus_general.rake @@ -3,10 +3,12 @@ namespace :dev do RAILS_ENV="development" desc "Resets a MarkUs installation. Useful for developers. This is just...
Fix markus:dev:reset rake task. See review 523.
diff --git a/Casks/data-science-studio.rb b/Casks/data-science-studio.rb index abc1234..def5678 100644 --- a/Casks/data-science-studio.rb +++ b/Casks/data-science-studio.rb @@ -1,6 +1,6 @@ cask :v1 => 'data-science-studio' do - version '1.4.4' - sha256 'bea67d377bc4df2ac109bda21b3e15dd0ca84b7c56a57836a73502476b5df5fb...
Update Data Science Studio to v2.0.0
diff --git a/lib/chefspec.rb b/lib/chefspec.rb index abc1234..def5678 100644 --- a/lib/chefspec.rb +++ b/lib/chefspec.rb @@ -1,8 +1,7 @@ require 'chef' +require 'chef/formatters/chefspec' require 'chefspec/chef_runner' require 'chefspec/version' - -require 'chef/formatters/chefspec' if defined?(RSpec) require '...
Load the formatter in order
diff --git a/lib/searchef.rb b/lib/searchef.rb index abc1234..def5678 100644 --- a/lib/searchef.rb +++ b/lib/searchef.rb @@ -21,5 +21,9 @@ require 'searchef/search_stub' require "searchef/version" +require 'webmock' + module Searchef end + +WebMock.allow_net_connect!
Allow real network connections to support remote_file, etc.
diff --git a/spec/factories/chambers.rb b/spec/factories/chambers.rb index abc1234..def5678 100644 --- a/spec/factories/chambers.rb +++ b/spec/factories/chambers.rb @@ -1,6 +1,6 @@ FactoryGirl.define do factory :chamber do sequence(:name) { |n| "#{Faker::Company.name}-#{n}" } - sequence(:account_number) { |n...
Use time as integer for account number
diff --git a/spec/factories/projects.rb b/spec/factories/projects.rb index abc1234..def5678 100644 --- a/spec/factories/projects.rb +++ b/spec/factories/projects.rb @@ -4,5 +4,13 @@ factory :project do name { FFaker::Product.product_name } association :submitter, factory: :user + + trait :accepted do + ...
Create factories for all states
diff --git a/megegen.gemspec b/megegen.gemspec index abc1234..def5678 100644 --- a/megegen.gemspec +++ b/megegen.gemspec @@ -4,12 +4,12 @@ require 'megegen/version' Gem::Specification.new do |spec| - spec.name = "migration-generator" + spec.name = "megegen" spec.version = Megegen::VERSIO...
Correct the name of Mege.Gen
diff --git a/test/models/commit_test.rb b/test/models/commit_test.rb index abc1234..def5678 100644 --- a/test/models/commit_test.rb +++ b/test/models/commit_test.rb @@ -1,21 +1,14 @@ require 'test_helper' class CommitTest < ActiveSupport::TestCase - setup do - @commit = commits(:rails_commit) - end - test "....
Remove redundant setup in tests.
diff --git a/test/unit/test-cmd-edit.rb b/test/unit/test-cmd-edit.rb index abc1234..def5678 100644 --- a/test/unit/test-cmd-edit.rb +++ b/test/unit/test-cmd-edit.rb @@ -0,0 +1,34 @@+#!/usr/bin/env ruby +require 'rubygems'; require 'require_relative' +require_relative './mock-helper' +require_relative './cmd-helper' +re...
Add an "edit" command unit test.
diff --git a/spec/support/forking_spec.rb b/spec/support/forking_spec.rb index abc1234..def5678 100644 --- a/spec/support/forking_spec.rb +++ b/spec/support/forking_spec.rb @@ -5,16 +5,10 @@ it 'returns multiple futures for async execs' do future1 = async_fork_and_return do - 4.times do - puts "A" ...
Remove some more unnecessary printing
diff --git a/lib/atlas/carrier.rb b/lib/atlas/carrier.rb index abc1234..def5678 100644 --- a/lib/atlas/carrier.rb +++ b/lib/atlas/carrier.rb @@ -13,6 +13,13 @@ attribute :kg_per_liter, Float attribute :graphviz_color, Symbol + attribute :co2_conversion_per_mj, Float + att...
Add FCE CO2 attributes to Carrier
diff --git a/lib/logue/version.rb b/lib/logue/version.rb index abc1234..def5678 100644 --- a/lib/logue/version.rb +++ b/lib/logue/version.rb @@ -2,5 +2,5 @@ # -*- ruby -*- module Logue - VERSION = '1.0.17' + VERSION = '1.0.18' end
Fix reference to whence file, which is now the file name instead of 'eval'
diff --git a/EnvoyAmbassador.podspec b/EnvoyAmbassador.podspec index abc1234..def5678 100644 --- a/EnvoyAmbassador.podspec +++ b/EnvoyAmbassador.podspec @@ -6,7 +6,7 @@ spec.license = 'MIT' spec.license = { type: 'MIT', file: 'LICENSE' } spec.author = { 'Fang-Pen Lin' => 'fang@envoy.com' }...
Use https for author twitter link
diff --git a/lib/resque_future.rb b/lib/resque_future.rb index abc1234..def5678 100644 --- a/lib/resque_future.rb +++ b/lib/resque_future.rb @@ -16,7 +16,7 @@ # Same as enqueue_future excepts it allows manually setting the UUID for the future object. def enqueue_future_with_uuid(uuid, klass, *args) - Future...
Fix namespace in reference to ResqueFuture::FutureJob
diff --git a/lib/rspec-sidekiq.rb b/lib/rspec-sidekiq.rb index abc1234..def5678 100644 --- a/lib/rspec-sidekiq.rb +++ b/lib/rspec-sidekiq.rb @@ -1,7 +1,8 @@+require "sidekiq" require "sidekiq/testing" require "rspec/sidekiq/batch" require "rspec/sidekiq/configuration" require "rspec/sidekiq/helpers" require "rsp...
Make sure sidekiq is required
diff --git a/db/migrate/20150112212957_create_schools.rb b/db/migrate/20150112212957_create_schools.rb index abc1234..def5678 100644 --- a/db/migrate/20150112212957_create_schools.rb +++ b/db/migrate/20150112212957_create_schools.rb @@ -8,7 +8,7 @@ t.string :district_name t.integer :district_no t.st...
Change type assembly_district field in schools DB
diff --git a/app/admin/devices/device.rb b/app/admin/devices/device.rb index abc1234..def5678 100644 --- a/app/admin/devices/device.rb +++ b/app/admin/devices/device.rb @@ -1,2 +1,38 @@ ActiveAdmin.register Devices::Device, as: 'Device' do + + member_action :renew do + resource.renew! + redirect_to :back, notice...
Add some helper methods to admin to renew/release ip addresses.