twitter_cldr_js 3.1.0 → 3.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: 2602aa4ba9b4539ddea8366f96330a1e704fcd4d
4
- data.tar.gz: 5ca1a07a7b0773afd532dc1fe8bfd96ce408c7c7
3
+ metadata.gz: f7ab2d30702e35d3c2ef977cc48666a9183faa16
4
+ data.tar.gz: d79af6dd6fb8a357423d2815fec259b70925d257
5
5
  SHA512:
6
- metadata.gz: 0985b72a3824fc18dd6c7b2dbefa7d2185a8c514ffbc6b33245a4084e12653eae4928bc2fde8f2cd6db38100b6cc9dadfb00c6c4e1deea63113c2c235d153d09
7
- data.tar.gz: 57b8e98e574fbf147dea3b78983c45bc02684ca7e6154eb724f215efc0d231d014df6eb93a24b0b940cf06fb11f669227ad83d08cc2397dd523b96bf30417bf8
6
+ metadata.gz: 4c5f7cc212f3198ee4a5d481ef3f32957a0bd361736b49d725038c27a3a3fae7ebd3a55dfff7b3e8c3263b5cd9a4bb52b1e044c78bad26e537270c357ccc5cb5
7
+ data.tar.gz: 779a461940f2b82947c35124fdb49ae4dad960b0a0e9c68c8cefedf8836714b8258fbbfcf0b5ba357608fc57641c021e680b0941189954eceb26295924ebef52
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 3.1.1
2
+
3
+ * Hardcode @name to function name. Fixes IE issues with features like NumberFormatter.
4
+
1
5
  == 3.1.0
2
6
 
3
7
  * Exposed currency display names.
@@ -3,7 +3,7 @@
3
3
  // Copyright 2012 Twitter, Inc
4
4
  // http://www.apache.org/licenses/LICENSE-2.0
5
5
 
6
- // TwitterCLDR (JavaScript) v3.1.0
6
+ // TwitterCLDR (JavaScript) v3.1.1
7
7
  // Authors: Cameron Dutro [@camertron]
8
8
  Kirill Lashuk [@KL_7]
9
9
  portions by Sven Fuchs [@svenfuchs]
@@ -3,7 +3,7 @@
3
3
  // Copyright 2012 Twitter, Inc
4
4
  // http://www.apache.org/licenses/LICENSE-2.0
5
5
 
6
- // TwitterCLDR (JavaScript) v3.1.0
6
+ // TwitterCLDR (JavaScript) v3.1.1
7
7
  // Authors: Cameron Dutro [@camertron]
8
8
  Kirill Lashuk [@KL_7]
9
9
  portions by Sven Fuchs [@svenfuchs]
@@ -231,11 +231,11 @@
231
231
  function Settings() {}
232
232
 
233
233
  Settings.is_rtl = function() {
234
- return TwitterCldr.get_data()[this.name].is_rtl;
234
+ return TwitterCldr.get_data().Settings.is_rtl;
235
235
  };
236
236
 
237
237
  Settings.locale = function() {
238
- return TwitterCldr.get_data()[this.name].locale;
238
+ return TwitterCldr.get_data().Settings.locale;
239
239
  };
240
240
 
241
241
  return Settings;
@@ -326,7 +326,7 @@
326
326
  ;
327
327
 
328
328
  PluralRules.data = function() {
329
- return TwitterCldr.get_data()[this.name];
329
+ return TwitterCldr.get_data().PluralRules;
330
330
  };
331
331
 
332
332
  PluralRules.all = function(type) {
@@ -369,7 +369,7 @@
369
369
  }
370
370
 
371
371
  TimespanFormatter.data = function() {
372
- return TwitterCldr.get_data()[this.name];
372
+ return TwitterCldr.get_data().TimespanFormatter;
373
373
  };
374
374
 
375
375
  TimespanFormatter.prototype.patterns = function() {
@@ -471,7 +471,7 @@
471
471
  }
472
472
 
473
473
  DateTimeFormatter.data = function() {
474
- return TwitterCldr.get_data()[this.name];
474
+ return TwitterCldr.get_data().DateTimeFormatter;
475
475
  };
476
476
 
477
477
  DateTimeFormatter.prototype.tokens = function() {
@@ -1007,7 +1007,7 @@
1007
1007
  function ListFormatter() {}
1008
1008
 
1009
1009
  ListFormatter.data = function() {
1010
- return TwitterCldr.get_data()[this.name];
1010
+ return TwitterCldr.get_data().ListFormatter;
1011
1011
  };
1012
1012
 
1013
1013
  ListFormatter.prototype.formats = function() {
@@ -1503,7 +1503,7 @@
1503
1503
  }
1504
1504
 
1505
1505
  BreakIterator.data = function() {
1506
- return TwitterCldr.get_data()[this.name];
1506
+ return TwitterCldr.get_data().BreakIterator;
1507
1507
  };
1508
1508
 
1509
1509
  BreakIterator.prototype.each_sentence = function(str, block) {
@@ -1683,7 +1683,7 @@
1683
1683
  REDIRECT_PREFIX = "calendars.gregorian.";
1684
1684
 
1685
1685
  Calendar.calendar = function() {
1686
- return TwitterCldr.get_data()[this.name].calendar;
1686
+ return TwitterCldr.get_data().Calendar.calendar;
1687
1687
  };
1688
1688
 
1689
1689
  Calendar.months = function(options) {
@@ -1758,7 +1758,7 @@
1758
1758
  CodePoint.properties = ["sentence_break", "line_break", "word_break"];
1759
1759
 
1760
1760
  CodePoint.data = function() {
1761
- return TwitterCldr.get_data()[this.name];
1761
+ return TwitterCldr.get_data().CodePoint;
1762
1762
  };
1763
1763
 
1764
1764
  function CodePoint(fields) {
@@ -2045,7 +2045,7 @@
2045
2045
  function Languages() {}
2046
2046
 
2047
2047
  Languages.data = function() {
2048
- return TwitterCldr.get_data()[this.name];
2048
+ return TwitterCldr.get_data().Languages;
2049
2049
  };
2050
2050
 
2051
2051
  Languages.all = function() {
@@ -2211,7 +2211,7 @@
2211
2211
  }
2212
2212
 
2213
2213
  NumberParser.data = function() {
2214
- return TwitterCldr.get_data()[this.name];
2214
+ return TwitterCldr.get_data().NumberParser;
2215
2215
  };
2216
2216
 
2217
2217
  NumberParser.prototype.group_separator = function() {
@@ -4135,7 +4135,7 @@
4135
4135
  }
4136
4136
 
4137
4137
  RBNF.data = function() {
4138
- return TwitterCldr.get_data()[this.name];
4138
+ return TwitterCldr.get_data().RBNF;
4139
4139
  };
4140
4140
 
4141
4141
  RBNF.prototype.resource = function() {
@@ -4320,7 +4320,7 @@
4320
4320
  }
4321
4321
 
4322
4322
  NumberDataReader.data = function() {
4323
- return TwitterCldr.get_data()[this.name];
4323
+ return TwitterCldr.get_data().NumberDataReader;
4324
4324
  };
4325
4325
 
4326
4326
  NumberDataReader.prototype.resource = function() {
@@ -3,7 +3,7 @@
3
3
  // Copyright 2012 Twitter, Inc
4
4
  // http://www.apache.org/licenses/LICENSE-2.0
5
5
 
6
- // TwitterCLDR (JavaScript) v3.1.0
6
+ // TwitterCLDR (JavaScript) v3.1.1
7
7
  // Authors: Cameron Dutro [@camertron]
8
8
  Kirill Lashuk [@KL_7]
9
9
  portions by Sven Fuchs [@svenfuchs]
@@ -3,7 +3,7 @@
3
3
  // Copyright 2012 Twitter, Inc
4
4
  // http://www.apache.org/licenses/LICENSE-2.0
5
5
 
6
- // TwitterCLDR (JavaScript) v3.1.0
6
+ // TwitterCLDR (JavaScript) v3.1.1
7
7
  // Authors: Cameron Dutro [@camertron]
8
8
  Kirill Lashuk [@KL_7]
9
9
  portions by Sven Fuchs [@svenfuchs]
@@ -3,7 +3,7 @@
3
3
  // Copyright 2012 Twitter, Inc
4
4
  // http://www.apache.org/licenses/LICENSE-2.0
5
5
 
6
- // TwitterCLDR (JavaScript) v3.1.0
6
+ // TwitterCLDR (JavaScript) v3.1.1
7
7
  // Authors: Cameron Dutro [@camertron]
8
8
  Kirill Lashuk [@KL_7]
9
9
  portions by Sven Fuchs [@svenfuchs]
@@ -3,7 +3,7 @@
3
3
  // Copyright 2012 Twitter, Inc
4
4
  // http://www.apache.org/licenses/LICENSE-2.0
5
5
 
6
- // TwitterCLDR (JavaScript) v3.1.0
6
+ // TwitterCLDR (JavaScript) v3.1.1
7
7
  // Authors: Cameron Dutro [@camertron]
8
8
  Kirill Lashuk [@KL_7]
9
9
  portions by Sven Fuchs [@svenfuchs]
@@ -2,7 +2,7 @@
2
2
  // Copyright 2012 Twitter, Inc
3
3
  // http://www.apache.org/licenses/LICENSE-2.0
4
4
 
5
- // TwitterCLDR (JavaScript) v3.0.0
5
+ // TwitterCLDR (JavaScript) v3.1.1
6
6
  // Authors: Cameron Dutro [@camertron]
7
7
  Kirill Lashuk [@KL_7]
8
8
  portions by Sven Fuchs [@svenfuchs]
@@ -34,7 +34,7 @@ class TwitterCldr.DateTimeFormatter
34
34
  'V': 'timezone_metazone'
35
35
 
36
36
  @data: ->
37
- TwitterCldr.get_data()[@name]
37
+ TwitterCldr.get_data().DateTimeFormatter
38
38
 
39
39
  tokens: ->
40
40
  @constructor.data().tokens
@@ -16,7 +16,7 @@ class TwitterCldr.TimespanFormatter
16
16
  }
17
17
 
18
18
  @data: ->
19
- TwitterCldr.get_data()[@name]
19
+ TwitterCldr.get_data().TimespanFormatter
20
20
 
21
21
  patterns: ->
22
22
  @constructor.data().patterns
@@ -53,7 +53,7 @@ class TwitterCldr.NumberDataReader
53
53
  @number_data = {}
54
54
 
55
55
  @data: ->
56
- TwitterCldr.get_data()[@name]
56
+ TwitterCldr.get_data().NumberDataReader
57
57
 
58
58
  resource : ->
59
59
  @constructor.data().resource
@@ -11,7 +11,7 @@ class TwitterCldr.RBNF
11
11
  @rule_set_name_cache = {}
12
12
 
13
13
  @data: ->
14
- TwitterCldr.get_data()[@name]
14
+ TwitterCldr.get_data().RBNF
15
15
 
16
16
  resource : ->
17
17
  @constructor.data().resource
@@ -6,7 +6,7 @@ class TwitterCldr.NumberParser
6
6
  @separator_chars = ['\\.', ',', '\\s'].join("")
7
7
 
8
8
  @data: ->
9
- TwitterCldr.get_data()[@name]
9
+ TwitterCldr.get_data().NumberParser
10
10
 
11
11
  group_separator: ->
12
12
  @constructor.data().group_separator
@@ -5,7 +5,7 @@ class TwitterCldr.PluralRules
5
5
  @runtime = `{{{runtime}}}`
6
6
 
7
7
  @data: ->
8
- TwitterCldr.get_data()[@name]
8
+ TwitterCldr.get_data().PluralRules
9
9
 
10
10
  @all: (type = 'cardinal') ->
11
11
  return @data().names[type]
@@ -3,7 +3,7 @@
3
3
 
4
4
  class TwitterCldr.Settings
5
5
  @is_rtl: ->
6
- TwitterCldr.get_data()[@name].is_rtl
6
+ TwitterCldr.get_data().Settings.is_rtl
7
7
 
8
8
  @locale: ->
9
- TwitterCldr.get_data()[@name].locale
9
+ TwitterCldr.get_data().Settings.locale
@@ -10,7 +10,7 @@ class TwitterCldr.BreakIterator
10
10
  @segmentation_parser = new TwitterCldr.SegmentationParser()
11
11
 
12
12
  @data :->
13
- TwitterCldr.get_data()[@name]
13
+ TwitterCldr.get_data().BreakIterator
14
14
 
15
15
  each_sentence : (str, block) ->
16
16
  @each_boundary(str, "sentence", block)
@@ -5,7 +5,7 @@ class TwitterCldr.Calendar
5
5
  REDIRECT_PREFIX = "calendars.gregorian."
6
6
 
7
7
  @calendar: ->
8
- TwitterCldr.get_data()[@name].calendar
8
+ TwitterCldr.get_data().Calendar.calendar
9
9
 
10
10
  @months: (options = {}) ->
11
11
  root = @get_root("months", options)
@@ -26,7 +26,7 @@ class TwitterCldr.CodePoint
26
26
  @properties = ["sentence_break", "line_break", "word_break"]
27
27
 
28
28
  @data :->
29
- TwitterCldr.get_data()[@name]
29
+ TwitterCldr.get_data().CodePoint
30
30
 
31
31
  constructor : (@fields) ->
32
32
  for i in [0...TwitterCldr.CodePoint.code_point_fields.length] by 1
@@ -4,7 +4,7 @@
4
4
  class TwitterCldr.Languages
5
5
 
6
6
  @data: ->
7
- TwitterCldr.get_data()[@name]
7
+ TwitterCldr.get_data().Languages
8
8
 
9
9
  @all: ->
10
10
  @data().all
@@ -3,7 +3,7 @@
3
3
 
4
4
  class TwitterCldr.ListFormatter
5
5
  @data :->
6
- TwitterCldr.get_data()[@name]
6
+ TwitterCldr.get_data().ListFormatter
7
7
 
8
8
  formats: ->
9
9
  @constructor.data().formats
@@ -5,6 +5,6 @@
5
5
 
6
6
  module TwitterCldr
7
7
  module Js
8
- VERSION = "3.1.0"
8
+ VERSION = "3.1.1"
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter_cldr_js
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Dutro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-13 00:00:00.000000000 Z
11
+ date: 2016-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -423,4 +423,3 @@ signing_key:
423
423
  specification_version: 4
424
424
  summary: Text formatting using data from Unicode's Common Locale Data Repository (CLDR).
425
425
  test_files: []
426
- has_rdoc: true