trailblazer-rails 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/.travis.yml +9 -5
- data/CHANGES.md +4 -0
- data/lib/trailblazer/rails/railtie.rb +10 -2
- data/lib/trailblazer/rails/version.rb +1 -1
- data/lib/trailblazer-rails.rb +1 -0
- data/trailblazer-rails.gemspec +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74040c0e4e22998edd7881fdc6dc2c5459e7733b
|
4
|
+
data.tar.gz: 8cca0a9f3e44fcd46621c86e6b0707be12c43c1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d8ba62aae5a3586aec14c67b3fdbe078d1ff409ccb789c70783e82e0a7333901ea641ce532112c5028bd8488ad7bc22ce1c9b776c4a36117874f46acdaedc7a
|
7
|
+
data.tar.gz: aa6b3ce1039755ac84d4faf63bf023e4aa7a10f57893a1affa052702b179e0f3f1c45c180b1e723206c8eb633b512c2fda410ae981f27406cfae514df34b7970
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
language: ruby
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
gemfile: test/rails4.2/Gemfile
|
2
|
+
matrix:
|
3
|
+
include:
|
4
|
+
- rvm: 2.3.1
|
5
|
+
env: TEST_SUITE=rails4.2
|
6
|
+
gemfile: test/rails4.2/Gemfile
|
7
|
+
# - rvm: 2.1.9
|
8
|
+
# env: TEST_SUITE=rails3.2
|
9
|
+
# gemfile: test/rails3.2/Gemfile
|
10
|
+
script: cd test/$TEST_SUITE && bundle exec rake test
|
data/CHANGES.md
CHANGED
@@ -10,8 +10,14 @@ module Trailblazer
|
|
10
10
|
# Loader.new.(insert: [ModelFile, before: Loader::AddConceptFiles]) { |file| require_dependency("#{app.root}/#{file}") }
|
11
11
|
load_for(app)
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
engines.each { |engine| load_for(engine) }
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.engines
|
17
|
+
if Gem::Version.new(::Rails.version) >= Gem::Version.new("4.1")
|
18
|
+
::Rails.application.railties.find_all { |tie| tie.is_a?(::Rails::Engine) }
|
19
|
+
else
|
20
|
+
::Rails.application.railties.engines
|
15
21
|
end
|
16
22
|
end
|
17
23
|
|
@@ -67,6 +73,8 @@ module Trailblazer
|
|
67
73
|
|
68
74
|
application_controller.send :include, Trailblazer::Rails::Controller
|
69
75
|
application_controller.send :include, Trailblazer::Rails::Controller::Cell if defined?(::Cell)
|
76
|
+
|
77
|
+
application_controller
|
70
78
|
end
|
71
79
|
end
|
72
80
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require "trailblazer/rails"
|
data/trailblazer-rails.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.email = ["apotonick@gmail.com"]
|
10
10
|
|
11
11
|
spec.summary = %q{Convenient Rails support for Trailblazer.}
|
12
|
-
spec.homepage = "http://trailblazer.to/gems/trailblazer/rails"
|
12
|
+
spec.homepage = "http://trailblazer.to/gems/trailblazer/2.0/rails.html"
|
13
13
|
spec.license = "MIT"
|
14
14
|
|
15
15
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
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: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Sutterer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: trailblazer
|
@@ -162,6 +162,7 @@ files:
|
|
162
162
|
- LICENSE.txt
|
163
163
|
- README.md
|
164
164
|
- Rakefile
|
165
|
+
- lib/trailblazer-rails.rb
|
165
166
|
- lib/trailblazer/operation/responder.rb
|
166
167
|
- lib/trailblazer/rails.rb
|
167
168
|
- lib/trailblazer/rails/cell.rb
|
@@ -171,7 +172,7 @@ files:
|
|
171
172
|
- lib/trailblazer/rails/test/integration.rb
|
172
173
|
- lib/trailblazer/rails/version.rb
|
173
174
|
- trailblazer-rails.gemspec
|
174
|
-
homepage: http://trailblazer.to/gems/trailblazer/rails
|
175
|
+
homepage: http://trailblazer.to/gems/trailblazer/2.0/rails.html
|
175
176
|
licenses:
|
176
177
|
- MIT
|
177
178
|
metadata: {}
|
@@ -191,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
191
192
|
version: '0'
|
192
193
|
requirements: []
|
193
194
|
rubyforge_project:
|
194
|
-
rubygems_version: 2.
|
195
|
+
rubygems_version: 2.5.2
|
195
196
|
signing_key:
|
196
197
|
specification_version: 4
|
197
198
|
summary: Convenient Rails support for Trailblazer.
|