tml-rails 4.3.1 → 4.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/{tml_rails.rb → tml-rails.rb} +2 -1
- data/lib/tml_rails/extensions/action_common_methods.rb +1 -1
- data/lib/tml_rails/extensions/action_controller_extension.rb +2 -2
- data/lib/tml_rails/extensions/action_view_extension.rb +1 -1
- data/lib/tml_rails/railtie.rb +4 -5
- data/lib/tml_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd3b82a94da361b03bf624faf90722a001d9f722
|
4
|
+
data.tar.gz: ca394926fec34a49ebc9dcb6204b1e9e15b0c3e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58847f983be9ab78cd3921f5f2b410f171ae09cfea11e9599a9ddd4cc3400217156cbef7eec706f6cbf843715d827675e89b8c55be60e132acb0f83be192c968
|
7
|
+
data.tar.gz: 1c3d2a658da62b830307546559c74fe77d3a0923e676560f2074757808e9da95dccacdb74b296be105bd17d26cc65416c1d38de36994901263f4fae497375957
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Tml for Ruby on Rails
|
|
7
7
|
[](https://travis-ci.org/translationexchange/tml-rails)
|
8
8
|
[](https://coveralls.io/r/translationexchange/tml-rails)
|
9
9
|
[](https://www.versioneye.com/user/projects/54c145bb6c0035c5920001c4)
|
10
|
-
[](http://badge.fury.io/rb/tml-rails)
|
11
11
|
|
12
12
|
This Client SDK provides tools for translating Rails applications into any language using the TranslationExchange.com service.
|
13
13
|
|
@@ -29,7 +29,7 @@
|
|
29
29
|
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
30
30
|
#++
|
31
31
|
|
32
|
-
module
|
32
|
+
module TmlRails
|
33
33
|
module ActionCommonMethods
|
34
34
|
############################################################
|
35
35
|
# There are three ways to call the tr method
|
@@ -29,11 +29,11 @@
|
|
29
29
|
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
30
30
|
#++
|
31
31
|
|
32
|
-
module
|
32
|
+
module TmlRails
|
33
33
|
module ActionControllerExtension
|
34
34
|
|
35
35
|
def self.included(base)
|
36
|
-
base.send(:include,
|
36
|
+
base.send(:include, TmlRails::ActionCommonMethods)
|
37
37
|
base.send(:include, InstanceMethods)
|
38
38
|
base.before_filter :tml_init_client_sdk
|
39
39
|
base.after_filter :tml_reset_client_sdk
|
data/lib/tml_rails/railtie.rb
CHANGED
@@ -30,22 +30,21 @@
|
|
30
30
|
#++
|
31
31
|
|
32
32
|
require 'rails'
|
33
|
-
require 'pp'
|
34
33
|
|
35
34
|
# Rails Extensions
|
36
35
|
require File.join(File.dirname(__FILE__), 'extensions/action_common_methods')
|
37
36
|
require File.join(File.dirname(__FILE__), 'extensions/action_view_extension')
|
38
37
|
require File.join(File.dirname(__FILE__), 'extensions/action_controller_extension')
|
39
38
|
|
40
|
-
module
|
39
|
+
module TmlRails
|
41
40
|
class Railtie < ::Rails::Railtie #:nodoc:
|
42
41
|
initializer 'tml-rails' do |app|
|
43
42
|
ActiveSupport.on_load(:action_view) do
|
44
|
-
::ActionView::Base.send :include,
|
45
|
-
::ActionView::Base.send :include,
|
43
|
+
::ActionView::Base.send :include, TmlRails::ActionCommonMethods
|
44
|
+
::ActionView::Base.send :include, TmlRails::ActionViewExtension
|
46
45
|
end
|
47
46
|
ActiveSupport.on_load(:action_controller) do
|
48
|
-
include
|
47
|
+
include TmlRails::ActionControllerExtension
|
49
48
|
end
|
50
49
|
end
|
51
50
|
end
|
data/lib/tml_rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tml-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.3.
|
4
|
+
version: 4.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Berkovich
|
@@ -56,8 +56,8 @@ files:
|
|
56
56
|
- config/routes.rb
|
57
57
|
- lib/i18n/backend/tml.rb
|
58
58
|
- lib/tasks/tml.rake
|
59
|
+
- lib/tml-rails.rb
|
59
60
|
- lib/tml/cache_adapters/rails.rb
|
60
|
-
- lib/tml_rails.rb
|
61
61
|
- lib/tml_rails/core/string.rb
|
62
62
|
- lib/tml_rails/engine.rb
|
63
63
|
- lib/tml_rails/extensions/action_common_methods.rb
|