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.
- checksums.yaml +4 -4
- data/lib/jwt_auth_token.rb +27 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c13940c7493f39a8d12861a6b8ddfcd4752230b2
|
4
|
+
data.tar.gz: 141c14773be6dc083a94c62ceb815b5cba85a79e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a22a5f4c18539f9285fd3be534c9a0a243c8ea66c2c239d3b9f97a4b1cc8a423d83aaf0e2df9ec8686645a794c05cbe2f3a6e26d36a8a8c6dda8552c4abc1645
|
7
|
+
data.tar.gz: 7e458a448fc5f81711240607a43ffebb2f70b199117f60987555cfe465d316747bdf01249b40b1bc3dceaa47d2a35adaf930de9cd38c8f0b93b2bf4cb0508de1
|
data/lib/jwt_auth_token.rb
CHANGED
@@ -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.
|
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.
|
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
|