trailblazer-compat 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/CHANGES.md +8 -0
- data/README.md +1 -1
- data/Rakefile +0 -9
- data/lib/trailblazer/1.1/rails/railtie.rb +20 -17
- data/lib/trailblazer/compat/version.rb +1 -1
- data/trailblazer-compat.gemspec +2 -4
- metadata +29 -15
- data/.travis.yml +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 169d646a93a9381db03f539f7505dc3f517f95fe
|
4
|
+
data.tar.gz: 8c8ea2e8acb1038192445c1d945c25404712884b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 758de6c143c9f0d6627cb4c49217ec3fb31a86a3f960a63a52f3c6c7e767559213024185653dc083d99a6cd71f1a7c1cd6a93393263c60d2fa7043fad1f466ac
|
7
|
+
data.tar.gz: 78be2811e719614ecf356eb5a78299a5b7450dc719a1fed0f5ca8e939623d824943b3c2e32cdaa2a2921b2369f5611f8d9fdad12e20ed5cc61d4fa94512104c4
|
data/.gitignore
CHANGED
data/CHANGES.md
ADDED
data/README.md
CHANGED
@@ -9,7 +9,7 @@ It allows to run both old TRB 1.1 operations along with new or refactored 2.x co
|
|
9
9
|
Your exisiting application's `Gemfile` should point to the new `trailblazer` gem.
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
gem "trailblazer", ">= 2.0.
|
12
|
+
gem "trailblazer", ">= 2.0.6"
|
13
13
|
gem "trailblazer-compat"
|
14
14
|
```
|
15
15
|
|
data/Rakefile
CHANGED
@@ -1,22 +1,25 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
1
|
+
begin
|
2
|
+
require 'rails/railtie'
|
3
|
+
rescue LoadError
|
4
|
+
else
|
5
|
+
module Trailblazer::V1_1
|
6
|
+
class Railtie < ::Rails::Railtie
|
7
|
+
# This is to autoload Operation::Dispatch, etc. I'm simply assuming people find this helpful in Rails.
|
8
|
+
initializer "trailblazer.library_autoloading" do
|
9
|
+
require "trailblazer/1.1/autoloading"
|
10
|
+
end
|
9
11
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
12
|
+
initializer "trailblazer.application_controller" do
|
13
|
+
ActiveSupport.on_load(:action_controller) do
|
14
|
+
require "trailblazer/rails/railtie"
|
15
|
+
# this requires trailblazer-rails-1.0.0
|
16
|
+
V2_Controller = Trailblazer::Rails::Controller
|
15
17
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
18
|
+
ActionController::Base.class_eval do
|
19
|
+
include V2_Controller # if Trailblazer::Operation.const_defined?(:Controller) # from V2.
|
20
|
+
alias run_v2 run
|
21
|
+
include Trailblazer::V1_1::Operation::Controller
|
22
|
+
end
|
20
23
|
end
|
21
24
|
end
|
22
25
|
end
|
data/trailblazer-compat.gemspec
CHANGED
@@ -13,13 +13,11 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.homepage = "http://trailblazer.to"
|
14
14
|
|
15
15
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
16
|
-
spec.bindir = "exe"
|
17
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
18
16
|
spec.require_paths = ["lib"]
|
19
17
|
|
20
|
-
|
18
|
+
spec.add_dependency "trailblazer", "~> 2.0"
|
19
|
+
spec.add_dependency "uber", "~> 0.0.15"
|
21
20
|
|
22
21
|
spec.add_development_dependency "bundler", "~> 1.12"
|
23
22
|
spec.add_development_dependency "rake", "~> 10.0"
|
24
|
-
spec.add_development_dependency "minitest", "~> 5.0"
|
25
23
|
end
|
metadata
CHANGED
@@ -1,57 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trailblazer-compat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Sutterer
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: trailblazer
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
20
|
-
type: :
|
19
|
+
version: '2.0'
|
20
|
+
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: uber
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 0.0.15
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.0.15
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.12'
|
34
48
|
type: :development
|
35
49
|
prerelease: false
|
36
50
|
version_requirements: !ruby/object:Gem::Requirement
|
37
51
|
requirements:
|
38
52
|
- - "~>"
|
39
53
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
54
|
+
version: '1.12'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
56
|
+
name: rake
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
44
58
|
requirements:
|
45
59
|
- - "~>"
|
46
60
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
61
|
+
version: '10.0'
|
48
62
|
type: :development
|
49
63
|
prerelease: false
|
50
64
|
version_requirements: !ruby/object:Gem::Requirement
|
51
65
|
requirements:
|
52
66
|
- - "~>"
|
53
67
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
68
|
+
version: '10.0'
|
55
69
|
description: Use Trailblazer 1.1 and 2.x in one application.
|
56
70
|
email:
|
57
71
|
- apotonick@gmail.com
|
@@ -60,7 +74,7 @@ extensions: []
|
|
60
74
|
extra_rdoc_files: []
|
61
75
|
files:
|
62
76
|
- ".gitignore"
|
63
|
-
-
|
77
|
+
- CHANGES.md
|
64
78
|
- Gemfile
|
65
79
|
- README.md
|
66
80
|
- Rakefile
|
@@ -111,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
125
|
version: '0'
|
112
126
|
requirements: []
|
113
127
|
rubyforge_project:
|
114
|
-
rubygems_version: 2.
|
128
|
+
rubygems_version: 2.6.3
|
115
129
|
signing_key:
|
116
130
|
specification_version: 4
|
117
131
|
summary: Use Trailblazer 1.1 and 2.x.
|