rails-i18nterface 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: 9f7afb70be8d0c0bf696b8b490be4b1314119b2c
4
- data.tar.gz: 78d9b7b1cb33eb49c9f67d133181b9282b3802a4
3
+ metadata.gz: a370143e415f44d07ef8a64ab0712f5e24c0b9a8
4
+ data.tar.gz: 7ed9d368ec0324f866b6fd6a3c8478249167e6c4
5
5
  SHA512:
6
- metadata.gz: 65280e7d68f0b1b2d5e28804ba53ff669d50b57bb6b398e78fbd68cb6fd214ad9519015ed710358a249ba7b01529fecdfea97873d5879b6a309da6f48043b160
7
- data.tar.gz: ab47fa811503def3de2abd0dce9099bab87389ac1ea77440d1fa8d2392ba65a2caba0e16bf0969d10517cd22ff1ae41bc084dbd437c269f593b406b393489e46
6
+ metadata.gz: 952bf4006fb2a7512be2c9894e814ffc89948bcbee2cbf757c80d813ca8c338a3af34d3b5b17fc6d5ad3c5368bd86999279f41572788883467a7da0d597513e4
7
+ data.tar.gz: 40a3fe5128801d189d459a2a36ac5b7a727592baf1c40853783763f1e5ff5c72bbfd6659f30c2c7d369576d33af0b2c688271de8f0b3d4665b24ae339be5902c
data/README.md CHANGED
@@ -2,24 +2,25 @@
2
2
 
3
3
  [![Build Status](https://secure.travis-ci.org/mose/rails-i18nterface.png?branch=master)](http://travis-ci.org/mose/rails-i18nterface)
4
4
  [![Code Climate](https://codeclimate.com/github/mose/rails-i18nterface.png)](https://codeclimate.com/github/mose/rails-i18nterface)
5
+ [![Gem Version](https://badge.fury.io/rb/rails-i18nterface.png)](http://badge.fury.io/rb/rails-i18nterface)
5
6
 
6
- This is a fork of an overhaul of a fork of a fork if rails-translate.
7
+ This is a fork of an overhaul of a fork of a fork of rails-translate.
7
8
 
8
9
  It was originally created by [Peter Marklund and Joakim Westerlund @ mynewsdesk](https://github.com/mynewsdesk/translate)
9
10
  and later adapted to rails 3.0 by [Claudius Coenen](https://github.com/ccoenen/rails-translate).
10
11
  This version is a spinoff of Claudius Coenen's version by [Larry Sprock](https://github.com/lardawge/rails-i18nterface).
11
12
  It was renamed, refactored and prepared for rails 3.1 as an Engine. Over this work
12
13
  [Michal Hantl](https://github.com/hakunin/rails-i18nterface) made a bunch of nice UI modifications
13
- on his fork. Since then it was mroe or less abandonned.
14
+ on his fork. Since then it was more or less abandonned.
14
15
 
15
16
  I took over the evolution with some new features:
16
17
 
17
- * testing using combustion and rspec
18
+ * testing using [combustion](https://github.com/pat/combustion) and [rspec](https://github.com/rspec/rspec)
18
19
  * redesign of the layout
19
- * navigation overhaul, spliting of the namespaces in a foldable menu
20
+ * navigation overhaul, spliting the namespaces in a foldable menu
20
21
  * gathering of first-level translations under a ROOT container
21
- * gemification and release of a version 0.0.2
22
- * (the 0.0.1 was the original work from Larry Sprock but was not published as a gem)
22
+ * gemification and release of a version 0.1.0
23
+ * (the 0.0.1 was the work from Larry Sprock but was not published as a gem)
23
24
  * compatibility with rails 4 and ruby 2
24
25
 
25
26
  ![rails-i18nterface](http://mose.fr/rails-i18nterface.png)
@@ -44,7 +45,7 @@ rake db:migrate
44
45
  ### Protect access
45
46
 
46
47
  You may want to protect the translation engine to admin and create a constraint
47
- in your route:
48
+ in your routes:
48
49
  ```ruby
49
50
  constraints AdminConstraint.new do
50
51
  mount RailsI18nterface::Engine => "/translate", :as => "translate_engine"
@@ -75,11 +76,13 @@ Where `[:en]` and `[:ja, :es, :fr]` could be replaced by locale list of your cho
75
76
  ## Todo
76
77
 
77
78
  * fix the code smell reported by code climate
78
- ** extract code from the controller to a lib
79
- ** refactor the libs in a cleaner way
80
- ** apply rubocop and follow his law
79
+ * extract code from the controller to a lib
80
+ * refactor the libs in a cleaner way
81
+ * apply rubocop and follow his law
81
82
  * extend testing to refactored libs
82
83
  * change navigation to an ajax-driven reload
84
+ * add a way to gather .one and .other and .few under same translation line
85
+ * add support for other i18n backends (gettext)
83
86
 
84
87
  ## License
85
88
 
@@ -83,7 +83,7 @@
83
83
  <span class="right">
84
84
  <span class="key"><%=h key %></span>
85
85
  <% if @files[key] %>
86
- <span class="file"><%= @files[key].join("</span><span>") %></span>
86
+ <span class="file"><%= @files[key].join("</span><span>").html_safe %></span>
87
87
  <% end %>
88
88
  </span>
89
89
  </span>
@@ -105,7 +105,7 @@
105
105
  <span class="right">
106
106
  <span class="key" ><%=h key %></span>
107
107
  <% if @files[key] %>
108
- <span class="file"><%= @files[key].join("</span><span>") %></span>
108
+ <span class="file"><%= @files[key].join("</span><span>").html_safe %></span>
109
109
  <% end %>
110
110
  </span>
111
111
  </span>
@@ -1,3 +1,3 @@
1
1
  module RailsI18nterface
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-i18nterface
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
  - Mose
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-15 00:00:00.000000000 Z
11
+ date: 2013-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails