trailblazer-rails 0.2.3 → 0.2.4

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: 95e2368fe4dab725f982ade92fec5c2269f9f075
4
- data.tar.gz: 916276f5fa78492cb2d4b54754bc3d99c4dbdc33
3
+ metadata.gz: 93855e0efc7d1d8d2454efdd46583c953f99beab
4
+ data.tar.gz: f964147eafc35f2e6d2ce659c46ae5af1defcfc7
5
5
  SHA512:
6
- metadata.gz: 07aad7c8bd4e113eccd725d02289c6186db0f199778bb63a5566e8d00a20f6b42b00731e951cd779709b244f1522079004f5680d5f473ce560f546cc45f7637c
7
- data.tar.gz: 61778e4d0667485af3812e65019d6fc0cb802009c44017504e70e09de12f6b7824cdd26a6d613a531cfabffe67302a53ece9426d82f2c13f9cf9b8504cfec5be
6
+ metadata.gz: f7f65220a011dca733b6fedb823a4d02cbf8cad0d25fe22c45c57f080e1302c809bfac70b7281c58597651fe25d26a3b864e0e8b7c6ad52f88448c3ada406adb
7
+ data.tar.gz: 1e3bef536a79d3bebb4217a7e2513c4199d8da6613dd1b14a196d414dbfbc227155cc68a7b95c90997b56b932b27e75be132cb0ec7519252f4574d502604fb75
@@ -1,4 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 2.2.2
4
- before_install: gem install bundler -v 1.10.5
4
+ before_install: gem install bundler
data/CHANGES.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.2.4
2
+
3
+ * Require `trailblazer-loader-0.0.7`.
4
+ * Fix sorting, model files are now always required first.
5
+ * Manually include `Operation::Controller` in `ApplicationController` for every reload.
6
+
1
7
  # 0.2.3
2
8
 
3
9
  * Bump to `trailblazer-loader` 0.0.4.
@@ -38,4 +44,4 @@
38
44
 
39
45
  # 0.1.2
40
46
 
41
- * First version running with Trailblazer 1.0.0.
47
+ * First version running with Trailblazer 1.0.0.
data/Gemfile CHANGED
@@ -3,6 +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"
7
- gem "trailblazer", github: "apotonick/trailblazer"
8
- # gem "trailblazer-loader", github: "trailblazer/trailblazer-loader"
6
+ gem "trailblazer", path: "../trailblazer"
7
+ # gem "trailblazer", github: "apotonick/trailblazer"
8
+ # gem "trailblazer-loader", github: "trailblazer/trailblazer-loader"
9
+ # gem "trailblazer-loader", path: "../trailblazer-loader"
@@ -4,7 +4,7 @@ require "trailblazer/loader"
4
4
  module Trailblazer
5
5
  class Railtie < ::Rails::Railtie
6
6
  def self.load_concepts(app)
7
- Loader.new.(insert: [ModelFile, before: Loader::ConceptFiles]) { |file| require_dependency("#{app.root}/#{file}") }
7
+ Loader.new.(insert: [ModelFile, before: Loader::AddConceptFiles]) { |file| require_dependency("#{app.root}/#{file}") }
8
8
  end
9
9
 
10
10
  # This is to autoload Operation::Dispatch, etc. I'm simply assuming people find this helpful in Rails.
@@ -26,7 +26,9 @@ module Trailblazer
26
26
  # end
27
27
 
28
28
  initializer "trailblazer.application_controller" do
29
- require "trailblazer/rails/application_controller"
29
+ ActiveSupport.on_load(:action_controller) do
30
+ include Trailblazer::Operation::Controller
31
+ end
30
32
  end
31
33
 
32
34
  # Prepend model file, before the concept files like operation.rb get loaded.
@@ -1,5 +1,5 @@
1
1
  module Trailblazer
2
2
  module Rails
3
- VERSION = "0.2.3"
3
+ VERSION = "0.2.4"
4
4
  end
5
5
  end
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.require_paths = ["lib"]
19
19
 
20
20
  spec.add_dependency "trailblazer", ">= 1.0.4"
21
- spec.add_dependency "trailblazer-loader", ">= 0.0.4"
21
+ spec.add_dependency "trailblazer-loader", ">= 0.0.7"
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.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sutterer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-17 00:00:00.000000000 Z
11
+ date: 2016-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trailblazer
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.0.4
33
+ version: 0.0.7
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 0.0.4
40
+ version: 0.0.7
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -197,7 +197,6 @@ files:
197
197
  - lib/trailblazer/operation/responder.rb
198
198
  - lib/trailblazer/operation/worker.rb
199
199
  - lib/trailblazer/rails.rb
200
- - lib/trailblazer/rails/application_controller.rb
201
200
  - lib/trailblazer/rails/autoloading.rb
202
201
  - lib/trailblazer/rails/railtie.rb
203
202
  - lib/trailblazer/rails/test/integration.rb
@@ -1,3 +0,0 @@
1
- ApplicationController.class_eval do
2
- include Trailblazer::Operation::Controller
3
- end