onena 0.1.1 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0f8a1565f05c0850fb2fe02bc4a94a47de4a20ad
4
- data.tar.gz: 9ec380884063a814f4f29e792acea6a5a0e600f7
3
+ metadata.gz: 8a51ae6d676719536c0813eb6fa21be73f5bacb0
4
+ data.tar.gz: e77647ac1b57179349779a30983fc82602ca2318
5
5
  SHA512:
6
- metadata.gz: d72319d589fbdff4a9d1a50e8e50d79e2b7c6630a816994b1e9e8ae32361671bc4be9fdad7a02b2e26739a5dfdb86b9887196dc9ef0e1b9f0392ee17cd4a5cb2
7
- data.tar.gz: e61181c1c3198c50b2ee50db466573d8a1dffdb40d4e81ce83af973318bb58089d362101784072e45c6f90e9849f1dfc26f10295814431e6932bb8276ce186c7
6
+ metadata.gz: 987a92b06e9c4f115c34809e6ebfc16521992a217d97a2303fed46731322c5d68e9beed6dc1bf7350f06355ad1a17f81b002e3513407d7c4ccdea5c796a0cb48
7
+ data.tar.gz: 0ab4a48448b7a3c19ae78b59221be5f50435687e8e24926e780592dbc327732b69f797aef29a6e9d5a60aa96ae7ba87760b7ef51fcb43452ba2a37aefcefa824
@@ -1,3 +1,7 @@
1
+ ### 0.1.2 / 2016-02-29
2
+
3
+ * Clarify Tock API key usage
4
+
1
5
  ### 0.1.1 / 2016-02-28
2
6
 
3
7
  * Initial release
data/README.md CHANGED
@@ -26,6 +26,10 @@ API Key as `FLOAT_API_KEY`, or pass the keys as arguments. You may also set
26
26
  `TOCK_API_ENDPOINT` to override the default endpoint,
27
27
  `https://tock.18f.gov/api/`.
28
28
 
29
+ Note that the cookie generated by `oauth2_proxy` is used as the API key for
30
+ Tock, and that no API key is required when accessing the [vagrant development
31
+ instance](https://github.com/18F/tock#getting-started).
32
+
29
33
  ```shell
30
34
  $ export TOCK_API_ENDPOINT=http://192.168.33.10/api
31
35
  $ export TOCK_API_KEY=...
@@ -107,8 +107,9 @@ module Onena
107
107
 
108
108
  def tock_request(url)
109
109
  Curl.get(url) do |http|
110
- # TODO: Confirm how authentication is done against production
111
- # endpoint, https://tock.18f.gov/api/
110
+ # Authentication is done against production endpoint,
111
+ # https://tock.18f.gov/api/, by copying the cookie generated by
112
+ # oauth2_proxy
112
113
  http.headers['Cookie'] = '_oauth2_proxy=' + @tock_api_key unless @tock_api_key.nil?
113
114
  end
114
115
  end
@@ -1,3 +1,3 @@
1
1
  module Onena
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onena
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian G. Warden
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-28 00:00:00.000000000 Z
11
+ date: 2016-02-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: codeclimate-test-reporter
@@ -202,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
202
202
  version: '0'
203
203
  requirements: []
204
204
  rubyforge_project:
205
- rubygems_version: 2.4.8
205
+ rubygems_version: 2.2.2
206
206
  signing_key:
207
207
  specification_version: 4
208
208
  summary: Identify possible duplicates between Tock and Float