i18nliner 0.0.14 → 0.1.0

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: b0c858864e7452e710481ac27a31729269125d28
4
- data.tar.gz: 5594ea378bb9cfbc3d625a5a3609fc88410a0544
3
+ metadata.gz: 6bbc698173c1c8e33a96bff6fdd7d0ed5bd87f55
4
+ data.tar.gz: 6035d9a25b869329386a8618521399a5d39401ef
5
5
  SHA512:
6
- metadata.gz: 5713557a04551c10965f53907108570aff48b126f34a62fd90348b8fda646eb08d3c353e2b68b9ea1ba88f4008ef9e6c5589aa0b02dcb04edb03339a31987b38
7
- data.tar.gz: e6d1f3e1e6c3d1299a1a6f207676de109bbc92190f8fe04296f06a991e4861b61006abc3a273ffdee83f6a7f2dde5fd9196a78f7d955cf97f3e4aa9f1ada490b
6
+ metadata.gz: 5e2e83793439b90a69a7e16db742bc9d385e53953a5872ce90987bf8507b5254594d4edf3ff637d36e30c6f02acf6fc4aaa6703197c430618f9254ca4edf82eb
7
+ data.tar.gz: d239eb5dcea8c24fcdccad4870c3cd6b33c9a33898d13c20a1962a8387db64fbdc23aa71a907ac52049d3d6ecf1d49e52a20c38e852875c7a95369bcb3ef7fb7
@@ -0,0 +1,12 @@
1
+ require 'action_view/template'
2
+ require 'i18nliner/pre_processors/erb_pre_processor'
3
+
4
+ module I18nliner
5
+ class Erubi < ::ActionView::Template::Handlers::ERB::Erubi
6
+ def initialize(source, options = {})
7
+ source = I18nliner::PreProcessors::ErbPreProcessor.new(source).result
8
+ super(source, options)
9
+ end
10
+ end
11
+ end
12
+
@@ -1,12 +1,5 @@
1
- require 'action_view/template'
2
- require 'i18nliner/pre_processors/erb_pre_processor'
1
+ require "i18nliner/erubi"
3
2
 
4
3
  module I18nliner
5
- class Erubis < ::ActionView::Template::Handlers::Erubis
6
- def initialize(source, options = {})
7
- source = I18nliner::PreProcessors::ErbPreProcessor.new(source).result
8
- super(source, options)
9
- end
10
- end
4
+ Erubis = Erubi
11
5
  end
12
-
@@ -1,7 +1,7 @@
1
1
  if defined?(::Rails)
2
- require 'i18nliner/erubis'
2
+ require 'i18nliner/erubi'
3
3
  else
4
- require 'erubis'
4
+ require 'erubi'
5
5
  end
6
6
  require 'i18nliner/processors/ruby_processor'
7
7
  require 'i18nliner/pre_processors/erb_pre_processor'
@@ -13,12 +13,12 @@ module I18nliner
13
13
 
14
14
  if defined?(::Rails) # block expressions and all that jazz
15
15
  def pre_process(source)
16
- I18nliner::Erubis.new(source).src
16
+ I18nliner::Erubi.new(source).src
17
17
  end
18
18
  else
19
19
  def pre_process(source)
20
20
  source = PreProcessors::ErbPreProcessor.process(source)
21
- Erubis::Eruby.new(source).src
21
+ Erubi::Engine.new(source).src
22
22
  end
23
23
  end
24
24
 
@@ -10,8 +10,8 @@ module I18nliner
10
10
  end
11
11
 
12
12
  ActiveSupport.on_load :action_view do
13
- require 'i18nliner/erubis'
14
- ActionView::Template::Handlers::ERB.erb_implementation = I18nliner::Erubis
13
+ require 'i18nliner/erubi'
14
+ ActionView::Template::Handlers::ERB.erb_implementation = I18nliner::Erubi
15
15
  ActionView::Base.send :include, I18nliner::Extensions::View
16
16
  end
17
17
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18nliner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Jensen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-04 00:00:00.000000000 Z
11
+ date: 2018-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -81,19 +81,19 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: 0.1.1
83
83
  - !ruby/object:Gem::Dependency
84
- name: erubis
84
+ name: erubi
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 2.7.0
89
+ version: 1.7.1
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 2.7.0
96
+ version: 1.7.1
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: ya2yaml
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -172,6 +172,7 @@ files:
172
172
  - lib/i18nliner/commands/import.rb
173
173
  - lib/i18nliner/controller_scope.rb
174
174
  - lib/i18nliner/errors.rb
175
+ - lib/i18nliner/erubi.rb
175
176
  - lib/i18nliner/erubis.rb
176
177
  - lib/i18nliner/extensions/controller.rb
177
178
  - lib/i18nliner/extensions/core.rb