angular-gettext-rails 2.1.0.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +17 -18
- data/angular-gettext-rails.gemspec +1 -1
- data/lib/angular-gettext-rails.rb +6 -0
- data/vendor/assets/javascripts/angular-gettext.js +8 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a5eecea50d52f77f3531a2cdf5396a1ac944395
|
4
|
+
data.tar.gz: 4d6b05f7f9cdaa623eec64082454354e1165ce3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e2e80629cb60673c5685b6ae4028d105931dfad9408a26185b7ab704b31bfd93742f88f9c0c2439ebc95a0be5102816f8199db4eafc50a1fb866cdb62e4d4ff
|
7
|
+
data.tar.gz: e2a6334f61f2d8ef33c0bb6073d2c0775130c0fcb90fdeebc4231d3bee9f3a87aa1374f57cb5f83a441aa3a5e29012cb25200b465d67ae90036403e13e16e66c
|
data/LICENSE.txt
CHANGED
@@ -1,22 +1,21 @@
|
|
1
|
-
Copyright (c) 2015 Toru Nayuki
|
1
|
+
angular-gettext RubyGem Copyright (c) 2015 Toru Nayuki
|
2
2
|
|
3
|
-
|
3
|
+
angular-gettext Copyright (C) 2013-2015 by Ruben Vermeersch <ruben@rocketeer.be>
|
4
4
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
the following conditions:
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
12
11
|
|
13
|
-
The above copyright notice and this permission notice shall be
|
14
|
-
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
15
14
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
OF
|
22
|
-
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "angular-gettext-rails"
|
7
|
-
spec.version = "2.1.
|
7
|
+
spec.version = "2.1.2"
|
8
8
|
spec.authors = ["Toru Nayuki"]
|
9
9
|
spec.email = ["tnayuki@icloud.com"]
|
10
10
|
spec.summary = "The Angular Gettext JavaScript module ready to play with Rails."
|
@@ -1,3 +1,8 @@
|
|
1
|
+
/**
|
2
|
+
* @license angular-gettext v2.1.0
|
3
|
+
* (c) 2013-2015 Ruben Vermeersch
|
4
|
+
* License: MIT
|
5
|
+
*/
|
1
6
|
angular.module('gettext', []);
|
2
7
|
|
3
8
|
angular.module('gettext').constant('gettext', function (str) {
|
@@ -120,10 +125,12 @@ angular.module('gettext').factory('gettextCatalog', ["gettextPlurals", "$http",
|
|
120
125
|
method: 'GET',
|
121
126
|
url: url,
|
122
127
|
cache: catalog.cache
|
123
|
-
}).
|
128
|
+
}).then(function (response) {
|
129
|
+
var data = response.data;
|
124
130
|
for (var lang in data) {
|
125
131
|
catalog.setStrings(lang, data[lang]);
|
126
132
|
}
|
133
|
+
return response;
|
127
134
|
});
|
128
135
|
}
|
129
136
|
};
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: angular-gettext-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toru Nayuki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10
|
11
|
+
date: 2015-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -65,6 +65,7 @@ files:
|
|
65
65
|
- README.md
|
66
66
|
- Rakefile
|
67
67
|
- angular-gettext-rails.gemspec
|
68
|
+
- lib/angular-gettext-rails.rb
|
68
69
|
- vendor/assets/javascripts/angular-gettext.js
|
69
70
|
homepage: https://github.com/tnayuki/angular-gettext-rails
|
70
71
|
licenses:
|