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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ac708f4a8e3487e9a8bd3d4158ee2758e424d44
4
- data.tar.gz: d3d15e3b8961a89a332bbbc69ae4d77de0e110b5
3
+ metadata.gz: 9c40284aa3cd320d3c98f5fe274cce38aab70763
4
+ data.tar.gz: de12579903115dbe21f1a1cc3d610e0c2c26aa1c
5
5
  SHA512:
6
- metadata.gz: 385dce39493284703b9e88aa5c43c90cb5f8218248aaa1d56c3ac09b4d69ba5efbc22d93ef4ead9d9cb3feb59889a8f1c82f6c24e0ce7afddac27cf2d298efb5
7
- data.tar.gz: c4b8c4f6cd55aa7e18741361763abb29adb8477c5d0805581b90574f85a6ec47a1cf3efbd47f2d9ebdf742de8114c65493d8873418abd7f7d1cefaec43048aa1
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="actionmailer (v4.1.5, RVM: ruby-2.0.0-p247 [banana]) [gem]" level="application" />
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
- @@temp_cred = begin
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,
@@ -1,3 +1,3 @@
1
1
  module PorticorBombarder
2
- VERSION = "0.0.1"
2
+ VERSION = '0.0.2'
3
3
  end
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ['lib']
20
20
 
21
21
  spec.add_development_dependency 'bundler', '~> 1.6'
22
- spec.add_development_dependency 'rake', '~> 0.8'
22
+ spec.add_development_dependency 'rake', '~> 0.8'
23
23
 
24
24
  #
25
25
  #runtime_dependencies
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.1
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-06 00:00:00.000000000 Z
11
+ date: 2014-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler