dropkiq 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/dropkiq/tasks/dropkiq/schema.rake +11 -6
- data/lib/dropkiq/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca530f5f1cb0665300e76bd129eb0bb1e71038bd
|
4
|
+
data.tar.gz: d4c5bf9dc8f5f5f15ee8962ba9cfae2d0f499b79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e4d82928aacd87fbd0734ffb3bdff7506e369c101019ce2a02435545f28d53d4c7b132b4db53fe3ba36419b7fa632e1f16731c49e266411709c2c44da2783b6
|
7
|
+
data.tar.gz: 6884dfd454274a2ca16ade992c7351aa24da39193a805270ae4f9dbd5c594983fa658ce254da43bcc8e4cfbdd6ad7d693450907324a98d33ec3c42342c0fcb25
|
data/Gemfile.lock
CHANGED
@@ -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
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
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")
|
data/lib/dropkiq/version.rb
CHANGED