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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e1313bd4f72d3a94c54b3565eb18fa509b1ba16a
4
- data.tar.gz: 01c119ddb120184b4f27c5eaf3faa8f2e3452ada
3
+ metadata.gz: 74040c0e4e22998edd7881fdc6dc2c5459e7733b
4
+ data.tar.gz: 8cca0a9f3e44fcd46621c86e6b0707be12c43c1b
5
5
  SHA512:
6
- metadata.gz: 2bd3394a4eb34d70973f4056027a80400dcc98a76401a813b311cac8b094b66eee32aaf8ac83c4d002df1af54043ae083dcf581ca64bf1c03335bef2dbb4b517
7
- data.tar.gz: 007045af867c51efe9b0941ed81a8407238711374dfa9ea4cd4f7d01a0586397284fd836c7c0e7961b3232b7622b74cb2bf7c4242d00d0e1b05ff0ab4f1e5f5d
6
+ metadata.gz: 8d8ba62aae5a3586aec14c67b3fdbe078d1ff409ccb789c70783e82e0a7333901ea641ce532112c5028bd8488ad7bc22ce1c9b776c4a36117874f46acdaedc7a
7
+ data.tar.gz: aa6b3ce1039755ac84d4faf63bf023e4aa7a10f57893a1affa052702b179e0f3f1c45c180b1e723206c8eb633b512c2fda410ae981f27406cfae514df34b7970
data/.gitignore CHANGED
@@ -7,4 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
- test/fake_app/log/*.log
10
+ test/**/*.log
data/.travis.yml CHANGED
@@ -1,6 +1,10 @@
1
1
  language: ruby
2
- rvm:
3
- - 2.3.1
4
-
5
- script: cd test/rails4.2 && bundle exec rake test
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
@@ -1,3 +1,7 @@
1
+ # 1.0.3
2
+
3
+ * Return the computed application controller constant from `Railtie::extend_application_controller!` to make `compat` code simpler.
4
+
1
5
  # 1.0.2
2
6
 
3
7
  * Allow configuring `ApplicationController` constant via `config.trailblazer.application_controller`.
@@ -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
- ::Rails.application.railties.find_all { |tie| tie.is_a?(::Rails::Engine) }.each do |engine|
14
- load_for(engine)
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
@@ -1,5 +1,5 @@
1
1
  module Trailblazer
2
2
  module Rails
3
- VERSION = "1.0.2"
3
+ VERSION = "1.0.3"
4
4
  end
5
5
  end
@@ -0,0 +1 @@
1
+ require "trailblazer/rails"
@@ -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.2
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-01-05 00:00:00.000000000 Z
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.6.3
195
+ rubygems_version: 2.5.2
195
196
  signing_key:
196
197
  specification_version: 4
197
198
  summary: Convenient Rails support for Trailblazer.