porticor_bombarder 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/porticor_bombarder.iml +1 -33
- data/lib/porticor_bombarder/client.rb +14 -5
- data/lib/porticor_bombarder/version.rb +1 -1
- data/porticor_bombarder.gemspec +1 -1
- 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: 9c40284aa3cd320d3c98f5fe274cce38aab70763
|
4
|
+
data.tar.gz: de12579903115dbe21f1a1cc3d610e0c2c26aa1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18c01cd8d0b9e578eb3a9556cea2125e78f112e6489b39b3704ce759b229f1c7e91644e28e18d5ac75b636bdeeda11c9cdb4b61b5dd9ef0458a1a9b59bbdb6c6
|
7
|
+
data.tar.gz: 7699ad6852a0dcae7cdd914a538ef4f4e865a723cee51d6f9cfa93cee4f61ad72a189c31016410c031c5ff6a75992d62e7771a5a99ec398e4816587fe553ff98
|
@@ -25,39 +25,7 @@
|
|
25
25
|
</SOURCES>
|
26
26
|
</library>
|
27
27
|
</orderEntry>
|
28
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
29
|
-
<orderEntry type="library" scope="PROVIDED" name="actionpack (v4.1.5, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
30
|
-
<orderEntry type="library" scope="PROVIDED" name="actionview (v4.1.5, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
31
|
-
<orderEntry type="library" scope="PROVIDED" name="activemodel (v4.1.5, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
32
|
-
<orderEntry type="library" scope="PROVIDED" name="activerecord (v4.1.5, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
33
|
-
<orderEntry type="library" scope="PROVIDED" name="activesupport (v4.1.5, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
34
|
-
<orderEntry type="library" scope="PROVIDED" name="arel (v5.0.1.20140414130214, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
35
|
-
<orderEntry type="library" scope="PROVIDED" name="builder (v3.2.2, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
36
|
-
<orderEntry type="library" scope="PROVIDED" name="erubis (v2.7.0, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
37
|
-
<orderEntry type="library" scope="PROVIDED" name="faraday (v0.9.0, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
38
|
-
<orderEntry type="library" scope="PROVIDED" name="faraday_middleware (v0.9.1, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
39
|
-
<orderEntry type="library" scope="PROVIDED" name="hashie (v3.3.1, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
40
|
-
<orderEntry type="library" scope="PROVIDED" name="hike (v1.2.3, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
41
|
-
<orderEntry type="library" scope="PROVIDED" name="i18n (v0.6.11, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
42
|
-
<orderEntry type="library" scope="PROVIDED" name="json (v1.8.1, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
43
|
-
<orderEntry type="library" scope="PROVIDED" name="mail (v2.5.4, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
44
|
-
<orderEntry type="library" scope="PROVIDED" name="mime-types (v1.25.1, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
45
|
-
<orderEntry type="library" scope="PROVIDED" name="minitest (v5.4.1, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
46
|
-
<orderEntry type="library" scope="PROVIDED" name="multi_json (v1.10.1, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
47
|
-
<orderEntry type="library" scope="PROVIDED" name="multipart-post (v2.0.0, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
48
|
-
<orderEntry type="library" scope="PROVIDED" name="polyglot (v0.3.5, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
49
|
-
<orderEntry type="library" scope="PROVIDED" name="rack (v1.5.2, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
50
|
-
<orderEntry type="library" scope="PROVIDED" name="rack-test (v0.6.2, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
51
|
-
<orderEntry type="library" scope="PROVIDED" name="rails (v4.1.5, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
52
|
-
<orderEntry type="library" scope="PROVIDED" name="railties (v4.1.5, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
53
|
-
<orderEntry type="library" scope="PROVIDED" name="sprockets (v2.12.1, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
54
|
-
<orderEntry type="library" scope="PROVIDED" name="sprockets-rails (v2.1.4, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
55
|
-
<orderEntry type="library" scope="PROVIDED" name="strongbox (v0.7.0, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
56
|
-
<orderEntry type="library" scope="PROVIDED" name="thor (v0.19.1, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
57
|
-
<orderEntry type="library" scope="PROVIDED" name="thread_safe (v0.3.4, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
58
|
-
<orderEntry type="library" scope="PROVIDED" name="tilt (v1.4.1, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
59
|
-
<orderEntry type="library" scope="PROVIDED" name="treetop (v1.4.15, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
60
|
-
<orderEntry type="library" scope="PROVIDED" name="tzinfo (v1.2.2, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
|
28
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.6.2, RVM: ruby-2.1.0) [gem]" level="application" />
|
61
29
|
</component>
|
62
30
|
</module>
|
63
31
|
|
@@ -87,12 +87,21 @@ module PorticorBombarder
|
|
87
87
|
end
|
88
88
|
end
|
89
89
|
|
90
|
-
def temp_cred
|
91
|
-
time = Time.now.to_i
|
92
|
-
nonce = generate_nonce
|
93
|
-
sig = sign_cred_request(nonce, time)
|
94
90
|
|
95
|
-
|
91
|
+
def get_time
|
92
|
+
response = get('/api/creds/get_time')
|
93
|
+
if success?(response)
|
94
|
+
response.body.time
|
95
|
+
else
|
96
|
+
nil
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
def temp_cred
|
101
|
+
@@temp_cred ||= begin
|
102
|
+
time = get_time
|
103
|
+
nonce = generate_nonce
|
104
|
+
sig = sign_cred_request(nonce, time)
|
96
105
|
response = get('/api/creds/get_temporary_credential',
|
97
106
|
api_key_id: api_key,
|
98
107
|
time: time,
|
data/porticor_bombarder.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: porticor_bombarder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rajeevkannav
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|