dropkiq 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be84b711124a4c51aabab2984269e283852ddc43
4
- data.tar.gz: 1582ca81c8be4630c349dafd4bc862ad2c9aae1b
3
+ metadata.gz: ca530f5f1cb0665300e76bd129eb0bb1e71038bd
4
+ data.tar.gz: d4c5bf9dc8f5f5f15ee8962ba9cfae2d0f499b79
5
5
  SHA512:
6
- metadata.gz: 981fe8cba4596c78d2978c3243ed4563f1c18b4d60fff99fc10bc427739434ad73fc62fb18ef2291883e0ba2449e6d6a5aa500988b885f343df6bbeba2a4bff0
7
- data.tar.gz: 8e54d25b2efa5964f1d13338c9c707a70f17ac1837bcb4de5d663ff5cc6ea29107ae0aec5636157d8ea47fdb0e7b9480e07ec68f11b83e7b3b4abcb6b831751b
6
+ metadata.gz: 9e4d82928aacd87fbd0734ffb3bdff7506e369c101019ce2a02435545f28d53d4c7b132b4db53fe3ba36419b7fa632e1f16731c49e266411709c2c44da2783b6
7
+ data.tar.gz: 6884dfd454274a2ca16ade992c7351aa24da39193a805270ae4f9dbd5c594983fa658ce254da43bcc8e4cfbdd6ad7d693450907324a98d33ec3c42342c0fcb25
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dropkiq (0.1.7)
4
+ dropkiq (0.1.8)
5
5
  activerecord (>= 4.2)
6
6
  liquid (~> 4.0)
7
7
 
@@ -1,15 +1,20 @@
1
+ require 'stringio'
2
+
1
3
  namespace :dropkiq do
2
4
  desc "Generate the fixture schema based on Liquid::Drop classes"
3
5
  task :schema do
4
6
  require "#{Rails.root}/config/environment.rb"
5
7
 
6
8
  Dir.glob("#{Rails.root}#{Dropkiq::DEFAULT_DROP_PATH}/**/*.rb").each { |f| load f }
7
- Dir.glob("#{Rails.root}#{Dropkiq::DEFAULT_MODEL_PATH}/**/*.rb").each { |f|
8
- begin
9
- load f
10
- rescue
11
- end
12
- }
9
+
10
+ # http://alphahydrae.com/2013/09/capturing-output-in-pure-ruby/
11
+ stdout, stderr = StringIO.new, StringIO.new
12
+ $stdout, $stderr = stdout, stderr
13
+ Dir.glob("#{Rails.root}#{Dropkiq::DEFAULT_MODEL_PATH}/**/*.rb").each do |f|
14
+ load f
15
+ rescue
16
+ end
17
+ $stdout, $stderr = STDOUT, STDERR
13
18
 
14
19
  existing_schema_yaml = begin
15
20
  File.read("#{Rails.root}/db/dropkiq_schema.yaml")
@@ -1,3 +1,3 @@
1
1
  module Dropkiq
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dropkiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Darrah