intervals_api 1.5.2 → 1.5.3

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: eec156a63df10bd5b4e6d4f8a5bd5822b9435a56
4
- data.tar.gz: d6c41ed9462045a8793dc9e6f7a266d50cf8df05
3
+ metadata.gz: 9ba0d74709dc3e8f21cfa4e62ce35ad0776eca86
4
+ data.tar.gz: c02eadd62583d9ee00b47007fd9bd5f64e27582b
5
5
  SHA512:
6
- metadata.gz: 5fce195f0fbee76e49c09ea04673351f7a7311106255b8ac598cbdc81e618ec5a5ddb79e166cb5770289bc4f4a37cbf1d9a73122f4d61dc2daa4f224297c2dae
7
- data.tar.gz: 42e2e017b1558aed5fe86f00ccd6849ee8b4bfc8574e879512dbaabd54062a4476db749128c8135b1d9315c16d52d00013c4899d9bab945ecb5b3bd710bcf87f
6
+ metadata.gz: 63c9fc363d878999401b49c063db6800e4fe7cea135236c47dd4ad0cf19dac1507a6f88a3dcb17223c2311b88fc697fa23f730c78de541d90f4abdbd6bbd8d11
7
+ data.tar.gz: 833a4472a11bf18ef1c7f8c864b10ee10614dad2a57c239e43507f768d54e577d1cadf650d2758ef7dbac7147c58ffbb1f657955711a754bd55cfd66985e5416
data/README.md CHANGED
@@ -40,9 +40,9 @@ GET request, new object options for a POST request, etc.
40
40
 
41
41
  Available keys (See in the examples how they're used):
42
42
 
43
- * *query* - Query parameters that you wish to pass, typically via GET
44
- * *body* - Data you wish to submit, typically via POST or PUT
45
- * *headers* - Request headers you wish to set
43
+ * `query` - Query parameters that you wish to pass, typically via GET requests
44
+ * `body` - Data you wish to submit, typically via POST or PUT requests
45
+ * `headers` - Request headers you wish to set
46
46
 
47
47
  [View the HTTParty gem](https://github.com/jnunemaker/httparty) to see more options
48
48
  about formatting your request, and
@@ -6,6 +6,13 @@ module IntervalsAPI
6
6
  attr_accessor :default_options
7
7
 
8
8
  def initialize(token)
9
+ unless token
10
+ raise <<-MSG
11
+ Must instantiate with a valid Intervals token
12
+ Form: IntervalsAPI::RequestHandler.new(valid_token)
13
+ MSG
14
+ end
15
+
9
16
  @default_options = {
10
17
  headers: {
11
18
  'Accept' => 'application/json',
@@ -1,3 +1,3 @@
1
1
  module IntervalsAPI
2
- VERSION='1.5.2'
2
+ VERSION='1.5.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: intervals_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - interactive@staplegun.us
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-19 00:00:00.000000000 Z
11
+ date: 2015-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: recursive-open-struct