singleton-ruby 0.0.8 → 0.0.9

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
  SHA256:
3
- metadata.gz: b456e3f07aebae2f889f02923ad657d42fe8169599e7514b52a11ec55e05ada2
4
- data.tar.gz: fdebf95d14b50ecfb43f7d6622105ce85c7fc5ac95fedbc20571256dcd56b687
3
+ metadata.gz: a2e9bf60e2c6e5a1c59e1d0b25a9acb3d7f645c08aab5365d725895bd5a0c5f0
4
+ data.tar.gz: 54d2803ac84376f0df6223d9aa3d4eb1a553f8b93214acc1591c95566de5346d
5
5
  SHA512:
6
- metadata.gz: bc5e2892ecda039bb98adbd9343945d18324f2b22b4f99eedd233178368131064651c565a1718904821b2016b1501d1d89ea15a7d4ccc1e85d26b202b421f478
7
- data.tar.gz: 2bc77e34f9a62174e9fbd6d62e9200992a4e93ea0bedb56223976de7455267dba9bae49ceff01c8ae43f76319c0d640681ebb6f2fd51daf4ec11c48f34e98f83
6
+ metadata.gz: 1e8775d0142dddcfef46c2ba781ed0885f16854fccab273f2483f1fbd0e6744cc1a360d569f3e32c92acc40ebd001864c45448eeaa70443095952a81eab79b2d
7
+ data.tar.gz: 3b009b345f63e0c97fcbe983b15673ea82199264fef1135ac3e0922677bf07fd1695ba5c011ad5932730266cb08228dccb5d5ff68670289df80ae98f146a13cd
data/Gemfile CHANGED
@@ -13,6 +13,3 @@ group :test do
13
13
  gem 'rspec'
14
14
  gem 'webmock'
15
15
  end
16
-
17
- gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]
18
- #gem 'releasinator', '~> 0.6'
@@ -66,5 +66,3 @@ module SgtnClient
66
66
  end
67
67
 
68
68
  end
69
-
70
- require 'sgtn-client/cldr/core_ext'
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
 
2
- VERSION_INFO = [0, 0, 8].freeze
2
+ VERSION_INFO = [0, 0, 9].freeze
3
3
  VERSION = VERSION_INFO.map(&:to_s).join('.').freeze
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: singleton-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - VMware G11n Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-30 00:00:00.000000000 Z
11
+ date: 2021-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.0'
41
- - !ruby/object:Gem::Dependency
42
- name: twitter_cldr
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '6.6'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '6.6'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: webmock
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -274,10 +260,6 @@ files:
274
260
  - lib/generators/sgtnclient/templates/sgtnclient.yml
275
261
  - lib/sgtn-client/api/source.rb
276
262
  - lib/sgtn-client/api/translation.rb
277
- - lib/sgtn-client/cldr/core_ext.rb
278
- - lib/sgtn-client/cldr/localized_date.rb
279
- - lib/sgtn-client/cldr/localized_datetime.rb
280
- - lib/sgtn-client/cldr/localized_time.rb
281
263
  - lib/sgtn-client/core/cache.rb
282
264
  - lib/sgtn-client/core/config.rb
283
265
  - lib/sgtn-client/core/exceptions.rb
@@ -305,7 +287,6 @@ files:
305
287
  - spec/support/sample_data.rb
306
288
  - spec/unit/cache_spec.rb
307
289
  - spec/unit/config_spec.rb
308
- - spec/unit/datetime_spec.rb
309
290
  - spec/unit/inconfig_spec.rb
310
291
  - spec/unit/logging_spec.rb
311
292
  - spec/unit/offclient_spec.rb
@@ -352,7 +333,6 @@ test_files:
352
333
  - spec/support/sample_data.rb
353
334
  - spec/unit/cache_spec.rb
354
335
  - spec/unit/config_spec.rb
355
- - spec/unit/datetime_spec.rb
356
336
  - spec/unit/inconfig_spec.rb
357
337
  - spec/unit/logging_spec.rb
358
338
  - spec/unit/offclient_spec.rb
@@ -1,3 +0,0 @@
1
- require 'sgtn-client/cldr/localized_datetime'
2
- require 'sgtn-client/cldr/localized_date'
3
- require 'sgtn-client/cldr/localized_time'
@@ -1,27 +0,0 @@
1
- require 'date'
2
- require 'time'
3
-
4
- Date.class_eval <<-LOCALIZE, __FILE__, __LINE__ + 1
5
- def to_full_s(locale = TwitterCldr.locale)
6
- self.to_datetime().to_date().to_full_s
7
- end
8
- LOCALIZE
9
-
10
- Date.class_eval <<-LOCALIZE, __FILE__, __LINE__ + 1
11
- def to_long_s(locale = TwitterCldr.locale)
12
- self.to_datetime().to_date().to_long_s
13
- end
14
- LOCALIZE
15
-
16
- Date.class_eval <<-LOCALIZE, __FILE__, __LINE__ + 1
17
- def to_medium_s(locale = TwitterCldr.locale)
18
- self.to_datetime().to_date().to_medium_s
19
- end
20
- LOCALIZE
21
-
22
-
23
- Date.class_eval <<-LOCALIZE, __FILE__, __LINE__ + 1
24
- def to_short_s(locale = TwitterCldr.locale)
25
- self.to_datetime().to_date().to_short_s
26
- end
27
- LOCALIZE
@@ -1,33 +0,0 @@
1
- require 'date'
2
- require 'time'
3
-
4
- DateTime.class_eval <<-LOCALIZE, __FILE__, __LINE__ + 1
5
- def to_full_s(locale = TwitterCldr.locale)
6
- self.localize(locale).to_full_s
7
- end
8
- LOCALIZE
9
-
10
- DateTime.class_eval <<-LOCALIZE, __FILE__, __LINE__ + 1
11
- def to_long_s(locale = TwitterCldr.locale)
12
- self.localize(locale).to_long_s
13
- end
14
- LOCALIZE
15
-
16
- DateTime.class_eval <<-LOCALIZE, __FILE__, __LINE__ + 1
17
- def to_medium_s(locale = TwitterCldr.locale)
18
- self.localize(locale).to_medium_s
19
- end
20
- LOCALIZE
21
-
22
-
23
- DateTime.class_eval <<-LOCALIZE, __FILE__, __LINE__ + 1
24
- def to_short_s(locale = TwitterCldr.locale)
25
- self.localize(locale).to_short_s
26
- end
27
- LOCALIZE
28
-
29
- DateTime.class_eval <<-LOCALIZE, __FILE__, __LINE__ + 1
30
- def to_date(locale = TwitterCldr.locale)
31
- self.localize(locale).to_date
32
- end
33
- LOCALIZE
@@ -1,27 +0,0 @@
1
- require 'date'
2
- require 'time'
3
-
4
- Time.class_eval <<-LOCALIZE, __FILE__, __LINE__ + 1
5
- def to_full_s(locale = TwitterCldr.locale)
6
- self.localize(locale).to_full_s
7
- end
8
- LOCALIZE
9
-
10
- Time.class_eval <<-LOCALIZE, __FILE__, __LINE__ + 1
11
- def to_long_s(locale = TwitterCldr.locale)
12
- self.localize(locale).to_long_s
13
- end
14
- LOCALIZE
15
-
16
- Time.class_eval <<-LOCALIZE, __FILE__, __LINE__ + 1
17
- def to_medium_s(locale = TwitterCldr.locale)
18
- self.localize(locale).to_medium_s
19
- end
20
- LOCALIZE
21
-
22
-
23
- Time.class_eval <<-LOCALIZE, __FILE__, __LINE__ + 1
24
- def to_short_s(locale = TwitterCldr.locale)
25
- self.localize(locale).to_short_s
26
- end
27
- LOCALIZE
@@ -1,43 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe SgtnClient do
4
- describe "DateTime" do
5
-
6
- before :each do
7
-
8
- end
9
-
10
- it "DateTime" do
11
- d = DateTime.new(2007,11,19,8,37,48,"-06:00")
12
- expect(d.to_full_s(:es)).to eq 'lunes, 19 de noviembre de 2007, 14:37:48 (tiempo universal coordinado)'
13
- expect(d.to_long_s(:es)).to eq '19 de noviembre de 2007, 14:37:48 UTC'
14
- expect(d.to_medium_s(:es)).to eq '19 nov 2007 14:37:48'
15
- expect(d.to_short_s(:es)).to eq '19/11/07 14:37'
16
- end
17
-
18
- it "Date0" do
19
- d = Date.new(2001,2,3)
20
- expect(d.to_full_s(:es)).to eq 'Saturday, February 3, 2001'
21
- expect(d.to_long_s(:es)).to eq 'February 3, 2001'
22
- expect(d.to_medium_s(:es)).to eq 'Feb 3, 2001'
23
- expect(d.to_short_s(:es)).to eq '2/3/01'
24
- end
25
-
26
- it "Date" do
27
- d = DateTime.new(2007,11,19,8,37,48,"-06:00")
28
- expect(d.to_date(:es).to_full_s).to eq 'lunes, 19 de noviembre de 2007'
29
- expect(d.to_date(:es).to_long_s).to eq '19 de noviembre de 2007'
30
- expect(d.to_date(:es).to_medium_s).to eq '19 nov 2007'
31
- expect(d.to_date(:es).to_short_s).to eq '19/11/07'
32
- end
33
-
34
- it "time" do
35
- d = Time.new(2007,11,1,15,25,0, "+09:00")
36
- expect(d.to_full_s(:es)).to eq '6:25:00 (tiempo universal coordinado)'
37
- expect(d.to_long_s(:es)).to eq '6:25:00 UTC'
38
- expect(d.to_medium_s(:es)).to eq '6:25:00'
39
- expect(d.to_short_s(:es)).to eq '6:25'
40
- end
41
- end
42
-
43
- end