trailblazer-rails 0.2.4 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +5 -0
- data/Gemfile +2 -2
- data/lib/trailblazer/rails/railtie.rb +15 -2
- data/lib/trailblazer/rails/version.rb +1 -1
- data/trailblazer-rails.gemspec +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2566e957730cc60022d704829089350e167c0954
|
4
|
+
data.tar.gz: 790644f0baf9195687cec0d5f760744245b73ad7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c476c6480823b0c576a23bbb7c3ff311b15078064c743b811bb2b54121543110079dddd087d56221b1f1b1142086080d5fdb4bb537677f7a62b550d4851ef805
|
7
|
+
data.tar.gz: 8d8e3d4cfccd91ee0ab5ceb048add60053e13e416d85391da1a5c816db043e1235d4122da016ab09e052b44ea80bf444d9df8f42e96c2a8ad74544f894d19d66
|
data/CHANGES.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
# 0.3.0
|
2
|
+
|
3
|
+
* Require `reform-rails` as a static dependency. This simplifies the user's setup significantly.
|
4
|
+
* Run the `Railtie` after `reform.form_extensions` and allow reform-rails to do its setup work, then load concepts.
|
5
|
+
|
1
6
|
# 0.2.4
|
2
7
|
|
3
8
|
* Require `trailblazer-loader-0.0.7`.
|
data/Gemfile
CHANGED
@@ -3,7 +3,7 @@ source 'https://rubygems.org'
|
|
3
3
|
# Specify your gem's dependencies in trailblazer-rails.gemspec
|
4
4
|
gemspec
|
5
5
|
|
6
|
-
gem "trailblazer", path: "../trailblazer"
|
6
|
+
# gem "trailblazer", path: "../trailblazer"
|
7
7
|
# gem "trailblazer", github: "apotonick/trailblazer"
|
8
8
|
# gem "trailblazer-loader", github: "trailblazer/trailblazer-loader"
|
9
|
-
# gem "trailblazer-loader", path: "../trailblazer-loader"
|
9
|
+
# gem "trailblazer-loader", path: "../trailblazer-loader"
|
@@ -13,10 +13,10 @@ module Trailblazer
|
|
13
13
|
end
|
14
14
|
|
15
15
|
# thank you, http://stackoverflow.com/a/17573888/465070
|
16
|
-
initializer 'trailblazer.install', after:
|
16
|
+
initializer 'trailblazer.install', after: "reform.form_extensions" do |app|
|
17
17
|
# the trb autoloading has to be run after initializers have been loaded, so we can tweak inclusion of features in
|
18
18
|
# initializers.
|
19
|
-
|
19
|
+
reloader_class.to_prepare do
|
20
20
|
Trailblazer::Railtie.load_concepts(app)
|
21
21
|
end
|
22
22
|
end
|
@@ -36,5 +36,18 @@ module Trailblazer
|
|
36
36
|
model = "app/models/#{options[:name]}.rb"
|
37
37
|
File.exist?(model) ? [model]+input : input
|
38
38
|
end
|
39
|
+
|
40
|
+
private
|
41
|
+
|
42
|
+
def reloader_class
|
43
|
+
# Rails 5.0.0.rc1 says:
|
44
|
+
# DEPRECATION WARNING: to_prepare is deprecated and will be removed from Rails 5.1
|
45
|
+
# (use ActiveSupport::Reloader.to_prepare instead)
|
46
|
+
if ActiveSupport.version.release >= Gem::Version.new('5')
|
47
|
+
ActiveSupport::Reloader
|
48
|
+
else
|
49
|
+
ActionDispatch::Reloader
|
50
|
+
end
|
51
|
+
end
|
39
52
|
end
|
40
53
|
end
|
data/trailblazer-rails.gemspec
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# coding: utf-8
|
2
1
|
lib = File.expand_path('../lib', __FILE__)
|
3
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
3
|
require 'trailblazer/rails/version'
|
@@ -19,6 +18,7 @@ Gem::Specification.new do |spec|
|
|
19
18
|
|
20
19
|
spec.add_dependency "trailblazer", ">= 1.0.4"
|
21
20
|
spec.add_dependency "trailblazer-loader", ">= 0.0.7"
|
21
|
+
spec.add_dependency "reform-rails", ">= 0.1.4"
|
22
22
|
|
23
23
|
spec.add_development_dependency "bundler", "~> 1.10"
|
24
24
|
spec.add_development_dependency "rake", "~> 10.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trailblazer-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Sutterer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: trailblazer
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.0.7
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: reform-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.1.4
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.1.4
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: bundler
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|