jwt_auth_token 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jwt_auth_token.rb +27 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9cd5058c20edb426be41888229a7cb7520633e15
4
- data.tar.gz: 75c9f3cc24d7264fbf326936247831a7beab61cd
3
+ metadata.gz: c13940c7493f39a8d12861a6b8ddfcd4752230b2
4
+ data.tar.gz: 141c14773be6dc083a94c62ceb815b5cba85a79e
5
5
  SHA512:
6
- metadata.gz: bc0af1cea067e3ef43cd3cec8f564f5a4f4c55cf8517c8d16e34b9ccba08f61690ef036108c07fa656e5ed364f8d2dd6a0ce85103595b43ac752f7bb496c2861
7
- data.tar.gz: 20da70a5e7989b1649a1c59b5a7d6d99a7bdae5b232c3a3b4ba5d8719661bed96c23848393d64925c98d99977670b746db0e9e682dd93d7ce123f08118fb6fd2
6
+ metadata.gz: a22a5f4c18539f9285fd3be534c9a0a243c8ea66c2c239d3b9f97a4b1cc8a423d83aaf0e2df9ec8686645a794c05cbe2f3a6e26d36a8a8c6dda8552c4abc1645
7
+ data.tar.gz: 7e458a448fc5f81711240607a43ffebb2f70b199117f60987555cfe465d316747bdf01249b40b1bc3dceaa47d2a35adaf930de9cd38c8f0b93b2bf4cb0508de1
@@ -66,3 +66,30 @@ def get_routers
66
66
  ROUTES["#{route.name}_url"] = { path: path, verb: verb, url: complete_url}
67
67
  end
68
68
  end
69
+
70
+ def services_development_urls
71
+ @_services_development_urls ||= {user_host_service: {url: "http://localhost", port: 3000},
72
+ mocktest_host_service: {url: "http://localhost", port: 3002},
73
+ practice_host_service: {url: "http://localhost", port: 3001},
74
+ payment_host_service: {url: "http://localhost", port: 3003},
75
+ content_host_service: {url: "http://localhost", port: 3004},
76
+ }
77
+ end
78
+
79
+ def services_production_urls
80
+ @_services_production_urls ||= {user_host_service: {url: "http://user.embibe.com", port: nil},
81
+ mocktest_host_service: {url: "http://mocktest.embibe.com", port: nil},
82
+ practice_host_service: {url: "http://practice.embibe.com", port: nil},
83
+ payment_host_service: {url: "http://payment.embibe.com", port: nil},
84
+ content_host_service: {url: "http://content.embibe.com", port: nil},
85
+ }
86
+
87
+ end
88
+
89
+ def generate_third_party_url
90
+ urls = send("services_#{Rails.env}_urls")
91
+ urls.map {|key,values| values.map {|k,v| define_method("#{key}_#{k}") { v }}}
92
+ end
93
+ generate_third_party_url
94
+
95
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jwt_auth_token
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Afzal Lakdawala
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  version: '0'
80
80
  requirements: []
81
81
  rubyforge_project:
82
- rubygems_version: 2.6.12
82
+ rubygems_version: 2.4.3
83
83
  signing_key:
84
84
  specification_version: 4
85
85
  summary: Json web token, setting data to header