singleton-ruby 0.1.2 → 0.1.3

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: bcc331c8950f6406499f27695bb3e7973745acd2b7a07454b5482f28ee7ba693
4
- data.tar.gz: 9630c5e08d8e51c942da3df7dd58583499ca912e7a801b499c939c0022bca66e
3
+ metadata.gz: c2e092b1d69a9639d976877f5ad64486ebe37a6d64bdaef84f1aa10a1424ae6e
4
+ data.tar.gz: 42f5c443bf2e9a20004ba147586de5088d9fdb1a7cd56b422f0b8fff85ea82ec
5
5
  SHA512:
6
- metadata.gz: 38177b4b4e74294988cfcfa5a23046f3bcaa0494f3287d69cc3e7a786863e6ca5c833f621cad746f602e8071bafa55a15a3d22d63addbfe13248bd6a421ca533
7
- data.tar.gz: e705db8c097ce7eb685fccc7258d5bbdfa725087cf84ea08cb41d1acb08fe224282de166fca611be0b54860ecf51bd291bee940b526df3a0fdcb1e1fc2e00785
6
+ metadata.gz: 4e269b9d4dc398a51491bcaa8c71304c360cc082cce8bc6f49ca07ddd7d72849f26341d65d1700e452eb5976197eb5a95542f09e9bf1aa595e2448becd894353
7
+ data.tar.gz: d8230f6464e7c1c4f940665f55bfb0fdb577553c980b844ecd45803e77ee3ca4ffdf346c67deec784daf17d94fc2bd2cbbdf2ed8e4b9eb565f24a12d3191f788
@@ -34,7 +34,7 @@ module SgtnClient
34
34
  else
35
35
  SgtnClient.logger.debug "Getting sources from cache with key: " + cache_key
36
36
  end
37
- return itmes
37
+ return items
38
38
  end
39
39
 
40
40
  def self.loadBundles(locale)
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
 
2
- VERSION_INFO = [0, 1, 2].freeze
2
+ VERSION_INFO = [0, 1, 3].freeze
3
3
  VERSION = VERSION_INFO.map(&:to_s).join('.').freeze
@@ -1,9 +1,5 @@
1
1
  test: &default
2
2
 
3
- # Credentials for REST APIs
4
- client_id: tee
5
- client_secret: 89987
6
-
7
3
  # Mode can be 'live' or 'sandbox'
8
4
  mode: sandbox1
9
5
 
@@ -1,9 +1,5 @@
1
1
  test: &default
2
2
 
3
- # Credentials for REST APIs
4
- client_id: tee
5
- client_secret: 89987
6
-
7
3
  # Mode can be 'live' or 'sandbox'
8
4
  mode: sandbox
9
5
 
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'bundler/setup'
2
2
  require_relative '../lib/sgtn-client/sgtn-client.rb'
3
- require 'twitter_cldr'
3
+ require 'logger'
4
4
 
5
5
  if ENV['COVERAGE']
6
6
  require 'simplecov'
@@ -12,23 +12,17 @@ if ENV['COVERAGE']
12
12
  end
13
13
 
14
14
  Bundler.require :default, :test
15
- #SgtnClient.load("./spec/config/sgtnclient.yml", "test")
16
-
17
- #require 'SgtnClient'
18
15
 
19
16
  include SgtnClient
20
17
  include SgtnClient::Logging
21
18
  include SgtnClient::Exceptions
22
19
 
23
- require 'logger'
24
-
25
20
  SgtnClient.load("./spec/config/sgtnclient.yml", "test", './sgtnclient.log')
26
21
 
27
22
  Dir[File.expand_path("../support/**/*.rb", __FILE__)].each {|f| require f }
28
23
 
29
24
  # Set logger for http
30
25
  http_log = File.open(File.expand_path('../log/http.log', __FILE__), "w")
31
- #Payment.api.http.set_debug_output(http_log)
32
26
 
33
27
  RSpec.configure do |config|
34
28
  config.filter_run_excluding :integration => true
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.1.2
4
+ version: 0.1.3
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-08-23 00:00:00.000000000 Z
11
+ date: 2021-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -230,8 +230,8 @@ dependencies:
230
230
  - - "~>"
231
231
  - !ruby/object:Gem::Version
232
232
  version: '6.6'
233
- description: A Singleton client for Ruby
234
- email: li@vmware.com
233
+ description: Singleton Ruby client
234
+ email: g11n-vip-project@vmware.com
235
235
  executables: []
236
236
  extensions: []
237
237
  extra_rdoc_files:
@@ -240,10 +240,6 @@ files:
240
240
  - Gemfile
241
241
  - README.md
242
242
  - Rakefile
243
- - lib/generators/sgtnclient/USAGE
244
- - lib/generators/sgtnclient/install_generator.rb
245
- - lib/generators/sgtnclient/templates/sgtnclient.rb
246
- - lib/generators/sgtnclient/templates/sgtnclient.yml
247
243
  - lib/sgtn-client/api/source.rb
248
244
  - lib/sgtn-client/api/translation.rb
249
245
  - lib/sgtn-client/core/cache.rb
@@ -281,7 +277,7 @@ files:
281
277
  - spec/unit/version_spec.rb
282
278
  homepage: https://github.com/vmware/singleton
283
279
  licenses:
284
- - MIT
280
+ - EPL
285
281
  metadata: {}
286
282
  post_install_message:
287
283
  rdoc_options: []
@@ -301,7 +297,7 @@ requirements: []
301
297
  rubygems_version: 3.0.9
302
298
  signing_key:
303
299
  specification_version: 4
304
- summary: Singleton client for Ruby.
300
+ summary: Singleton Ruby client
305
301
  test_files:
306
302
  - spec/config/locales/default/JAVA/default.yml
307
303
  - spec/config/locales/l10n/bundles/test/4.8.1/JAVA/messages_de.json
@@ -1,3 +0,0 @@
1
- To copy a sgtnclient SDK default configuration and initializer to your Rails App.
2
-
3
- rails g sgtnclient:install
@@ -1,15 +0,0 @@
1
- module SgtnClient
2
- module Generators
3
- class InstallGenerator < Rails::Generators::Base
4
- source_root File.expand_path('../templates', __FILE__)
5
-
6
- def copy_config_file
7
- copy_file "sgtnclient.yml", "config/sgtnclient.yml"
8
- end
9
-
10
- def copy_initializer_file
11
- copy_file "sgtnclient.rb", "config/initializers/sgtnclient.rb"
12
- end
13
- end
14
- end
15
- end
@@ -1,2 +0,0 @@
1
- SgtnClient.load("config/sgtnclient.yml", Rails.env)
2
- PSgtnClient.logger = Rails.logger
@@ -1,33 +0,0 @@
1
- test: &default
2
-
3
- # Credentials for REST APIs
4
- client_id: tee
5
- client_secret: 89987
6
-
7
- # Mode can be 'live' or 'sandbox'
8
- mode: sandbox
9
-
10
- # Credentials for Classic APIs
11
- app_id: APP-80W284485P519543T
12
- username: linr
13
- password: fdasf
14
- signature: sfds-RWy
15
- # # With Certificate
16
- # cert_path: "config/cert_key.pem"
17
- sandbox_email_address: linr@aa.com
18
-
19
- # #Product Name
20
- product_name: test
21
-
22
- # # bundle version
23
- version: 4.8.1
24
-
25
- # # HTTP Proxy
26
- vip_server: https://server:8090
27
-
28
- development:
29
- <<: *default
30
-
31
- production:
32
- <<: *default
33
- mode: live