dropkiq 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7325e9f9615a3dd0c4ebb7f1d867f40bb240e05e
4
- data.tar.gz: 7397de313f3ed61d656a765310483260b145e24b
3
+ metadata.gz: be84b711124a4c51aabab2984269e283852ddc43
4
+ data.tar.gz: 1582ca81c8be4630c349dafd4bc862ad2c9aae1b
5
5
  SHA512:
6
- metadata.gz: f07fb2afe3e42b4b58e2d7ff38d61e7b1ae345db1399b0fffcaa6c245c3bd625c1dbafa67da1316d0d1c545f8c73cff1e9cd2d8399d4944b676faf1fe1a38ed3
7
- data.tar.gz: 90bfd0ff73c3ef824300ffb61acecce5e4971254dddc460c8796285d5d00ddb40d2992d21f4f3a585c1ddf535b0b5ff960562ea9cb89c29c6e7d8095fdbed08e
6
+ metadata.gz: 981fe8cba4596c78d2978c3243ed4563f1c18b4d60fff99fc10bc427739434ad73fc62fb18ef2291883e0ba2449e6d6a5aa500988b885f343df6bbeba2a4bff0
7
+ data.tar.gz: 8e54d25b2efa5964f1d13338c9c707a70f17ac1837bcb4de5d663ff5cc6ea29107ae0aec5636157d8ea47fdb0e7b9480e07ec68f11b83e7b3b4abcb6b831751b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dropkiq (0.1.6)
4
+ dropkiq (0.1.7)
5
5
  activerecord (>= 4.2)
6
6
  liquid (~> 4.0)
7
7
 
@@ -1,5 +1,6 @@
1
1
  module Dropkiq
2
2
  DEFAULT_DROP_PATH = "/app/drops"
3
+ DEFAULT_MODEL_PATH = "/app/models"
3
4
 
4
5
  DEFAULT_LIQUID_DROP_CLASSES = [
5
6
  Liquid::ForloopDrop,
@@ -2,7 +2,14 @@ namespace :dropkiq do
2
2
  desc "Generate the fixture schema based on Liquid::Drop classes"
3
3
  task :schema do
4
4
  require "#{Rails.root}/config/environment.rb"
5
+
5
6
  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
+ }
6
13
 
7
14
  existing_schema_yaml = begin
8
15
  File.read("#{Rails.root}/db/dropkiq_schema.yaml")
@@ -1,3 +1,3 @@
1
1
  module Dropkiq
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
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.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Darrah