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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f2156ecbbb4653bcc48e2fd0dca22528b7079e4f
4
- data.tar.gz: 8558904f18e93de025483229552bd0ddc4f8134e
3
+ metadata.gz: 169d646a93a9381db03f539f7505dc3f517f95fe
4
+ data.tar.gz: 8c8ea2e8acb1038192445c1d945c25404712884b
5
5
  SHA512:
6
- metadata.gz: e41a477d030046014dce30b2aecef41efa6c5fa6bafa879e3b9a5037ed12d88ecfb53112f0840650f35b358bc6b7db112acfc7b84a9600d664dbe866906d35f1
7
- data.tar.gz: 10bf310b9094eb11a0d0a431690afe9b528e145489cfacf7927e1a6d822aaa25c1b3a78501435fcc7f9eda3e31963eb095b060719a03d59df431bd2ce110e635
6
+ metadata.gz: 758de6c143c9f0d6627cb4c49217ec3fb31a86a3f960a63a52f3c6c7e767559213024185653dc083d99a6cd71f1a7c1cd6a93393263c60d2fa7043fad1f466ac
7
+ data.tar.gz: 78be2811e719614ecf356eb5a78299a5b7450dc719a1fed0f5ca8e939623d824943b3c2e32cdaa2a2921b2369f5611f8d9fdad12e20ed5cc61d4fa94512104c4
data/.gitignore CHANGED
@@ -7,3 +7,5 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ *.iml
11
+ .idea
@@ -0,0 +1,8 @@
1
+ # 0.1.1
2
+
3
+ * Allow using `compat` without Rails.
4
+ * Limit to `uber <= 0.1.0`.
5
+
6
+ # 0.1.0
7
+
8
+ * First release into an unsuspecting world.
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.0"
12
+ gem "trailblazer", ">= 2.0.6"
13
13
  gem "trailblazer-compat"
14
14
  ```
15
15
 
data/Rakefile CHANGED
@@ -1,10 +1 @@
1
1
  require "bundler/gem_tasks"
2
- require "rake/testtask"
3
-
4
- Rake::TestTask.new(:test) do |t|
5
- t.libs << "test"
6
- t.libs << "lib"
7
- t.test_files = FileList['test/**/*_test.rb']
8
- end
9
-
10
- task :default => :test
@@ -1,22 +1,25 @@
1
- require "rails/railtie"
2
-
3
- module Trailblazer::V1_1
4
- class Railtie < ::Rails::Railtie
5
- # This is to autoload Operation::Dispatch, etc. I'm simply assuming people find this helpful in Rails.
6
- initializer "trailblazer.library_autoloading" do
7
- require "trailblazer/1.1/autoloading"
8
- end
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
- initializer "trailblazer.application_controller" do
11
- ActiveSupport.on_load(:action_controller) do
12
- require "trailblazer/rails/railtie"
13
- # this requires trailblazer-rails-1.0.0
14
- V2_Controller = Trailblazer::Rails::Controller
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
- ActionController::Base.class_eval do
17
- include V2_Controller # if Trailblazer::Operation.const_defined?(:Controller) # from V2.
18
- alias run_v2 run
19
- include Trailblazer::V1_1::Operation::Controller
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
@@ -1,5 +1,5 @@
1
1
  module Trailblazer
2
2
  module Compat
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
@@ -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
- # spec.add_dependency "trailblazer", ">= 1.2.0", "< 1.3.0"
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.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sutterer
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-25 00:00:00.000000000 Z
11
+ date: 2017-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
14
+ name: trailblazer
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.12'
20
- type: :development
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: '1.12'
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
28
+ name: uber
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
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: '10.0'
54
+ version: '1.12'
41
55
  - !ruby/object:Gem::Dependency
42
- name: minitest
56
+ name: rake
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
59
  - - "~>"
46
60
  - !ruby/object:Gem::Version
47
- version: '5.0'
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: '5.0'
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
- - ".travis.yml"
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.5.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.
@@ -1,5 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.3.1
5
- before_install: gem install bundler -v 1.12.5