t_t 1.2.1 → 1.2.2

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: 0df40df4a5c67f19eed54350b348a59d370d2588
4
- data.tar.gz: 5860c5a87af298eca7f05e9a686a37675dacaaf8
3
+ metadata.gz: 25ab6bc258b192373b542a9d1ed3b5cab2e8bc59
4
+ data.tar.gz: b68173a8d400edbfeed308562e3e8fbf9b2a6b64
5
5
  SHA512:
6
- metadata.gz: 4c195ec3be7b4542ae36b93ca4bed42b2908d08f389bdefa08637523ba140108e69bb5632a79386bf788699fcc59bca6ebb903ed4758b8b21e66412a848b9b91
7
- data.tar.gz: 60ad37860ab6f5545163a091e8a8c43d63fe06e3db69c01a3a6559c9842963dadf651fea6eaa16bcf1ffa703851a7adec6db1d8383b635ad7931335c36ec9677
6
+ metadata.gz: e8cd5cccaf09832f11f17f21052b3ebdac483f6b704a7198796a9ee77e71fbce59a04f78d5e4a1153453aeb729eb593f1577db4df48917db8c68a2fd3ec6973d
7
+ data.tar.gz: d24a5680945464b25a18650877b0bd86f5da8586273e9130b713c5eccb336282d08d650ba19fbba9fcf2cf1cd684e4bd345298d6de326a303e23156aaee8eb44
data/.travis.yml CHANGED
@@ -1,15 +1,15 @@
1
1
  language: ruby
2
2
  cache: bundler
3
3
  rvm:
4
- - 1.9.3
5
- - jruby
6
- - 2.0.0
7
4
  - 2.1
8
5
  - 2.2
6
+ - 2.3
9
7
  - ruby-head
10
8
  gemfile:
11
9
  - gemfiles/Gemfile.actionpack-3.2.x
12
10
  - gemfiles/Gemfile.actionpack-4.0.x
13
11
  - gemfiles/Gemfile.actionpack-4.1.x
14
12
  - gemfiles/Gemfile.actionpack-4.2.x
13
+ - gemfiles/Gemfile.actionpack-5.0.x
14
+ - gemfiles/Gemfile.actionpack-5.1.x
15
15
  - Gemfile
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec path: '../'
4
- gem 'activesupport', '~> 3.2.0'
4
+ gem 'rails', '~> 3.2.0'
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec path: '../'
4
- gem 'activesupport', '~> 4.0.0'
4
+ gem 'rails', '~> 4.0.0'
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec path: '../'
4
- gem 'activesupport', '~> 4.1.0'
4
+ gem 'rails', '~> 4.1.0'
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec path: '../'
4
- gem 'activesupport', '~> 4.2.0'
4
+ gem 'rails', '~> 4.2.0'
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec path: '../'
4
+ gem 'rails', '~> 5.0.0'
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec path: '../'
4
+ gem 'rails', '~> 5.1.0'
data/lib/t_t/rails.rb CHANGED
@@ -17,9 +17,10 @@ module TT
17
17
  extend ::ActiveSupport::Concern
18
18
 
19
19
  included do
20
- helper_method :tt
20
+ helper_method(:tt) if respond_to?(:helper_method)
21
21
 
22
- prepend_before_filter { instance_variable_set(:@tt, ::TT::Rails.new(controller_path, action_name)) }
22
+ meth_name = respond_to?(:prepend_before_action) ? :prepend_before_action : :prepend_before_filter
23
+ public_send(meth_name) { instance_variable_set(:@tt, ::TT::Rails.new(controller_path, action_name)) }
23
24
  end
24
25
 
25
26
  private
data/t_t.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "t_t"
5
- spec.version = "1.2.1"
5
+ spec.version = "1.2.2"
6
6
  spec.authors = ["Sergey Pchelintsev"]
7
7
  spec.email = ["mail@sergeyp.me"]
8
8
  spec.summary = %q{An opinioned I18n helper}
@@ -7,6 +7,7 @@ end
7
7
  describe "ActionPack integration" do
8
8
  before do
9
9
  @controller = TTController.new
10
+ @controller.response = ActionDispatch::Response.new
10
11
  @controller.run_callbacks(:process_action)
11
12
  end
12
13
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: t_t
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Pchelintsev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-29 00:00:00.000000000 Z
11
+ date: 2017-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n
@@ -127,6 +127,8 @@ files:
127
127
  - gemfiles/Gemfile.actionpack-4.0.x
128
128
  - gemfiles/Gemfile.actionpack-4.1.x
129
129
  - gemfiles/Gemfile.actionpack-4.2.x
130
+ - gemfiles/Gemfile.actionpack-5.0.x
131
+ - gemfiles/Gemfile.actionpack-5.1.x
130
132
  - lib/t_t.rb
131
133
  - lib/t_t/action_factory.rb
132
134
  - lib/t_t/base.rb
@@ -164,9 +166,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
166
  version: '0'
165
167
  requirements: []
166
168
  rubyforge_project:
167
- rubygems_version: 2.4.5
169
+ rubygems_version: 2.6.11
168
170
  signing_key:
169
171
  specification_version: 4
170
172
  summary: An opinioned I18n helper
171
173
  test_files: []
172
- has_rdoc: