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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8442a0a30db315bc2104c366b223be17d9afc214
4
- data.tar.gz: 32891b41073cf9e3b7aa4da0fab1854c88ceface
3
+ metadata.gz: 1a5eecea50d52f77f3531a2cdf5396a1ac944395
4
+ data.tar.gz: 4d6b05f7f9cdaa623eec64082454354e1165ce3f
5
5
  SHA512:
6
- metadata.gz: d9d87c8a12388c2cead85bf5cce347410aa7101d399e90d052ba9e66ea21a4dc86f910b6ff74142ba9ad08206f6989a7a2c336ac33763532dd48be3506086aaf
7
- data.tar.gz: 3f78a3d5173191e3922aa0c93653f503abe761067b35db3a1dca75d5416597cf09e68cd917ddf679ac3da6f4a8ea8659fc513e93de743cce119ca84a42697bda
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
- MIT License
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
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
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
- included in all copies or substantial portions of the Software.
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
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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.0.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."
@@ -0,0 +1,6 @@
1
+ module AngularGettext
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ end
5
+ end
6
+ end
@@ -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
- }).success(function (data) {
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.0.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-01 00:00:00.000000000 Z
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: