liftapp-client 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/liftapp-client/version.rb +1 -1
- data/spec/fixtures/checkin +14 -0
- data/spec/fixtures/checkin.delete +14 -0
- data/spec/fixtures/checkin.duplicate +13 -0
- data/spec/fixtures/checkins +13 -0
- metadata +11 -3
@@ -0,0 +1,14 @@
|
|
1
|
+
HTTP/1.1 201 Created
|
2
|
+
Cache-Control: max-age=0, private, must-revalidate
|
3
|
+
Content-Type: application/json; charset=utf-8
|
4
|
+
Date: Sun, 17 Feb 2013 10:44:37 GMT
|
5
|
+
Etag: "924d9e2c48e3136e31edcdb0131a195c"
|
6
|
+
Server: nginx
|
7
|
+
Set-Cookie: _lift_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTYxOTIzZjQzOWRkNDY5NTgwMTFhNmFiNmNjOWRjNWJiBjsAVEkiDHVzZXJfaWQGOwBGaQKpgw%3D%3D--da9267c31278f7003dc102eace1b940663635cbd; path=/; expires=Sun, 17-Mar-2013 09:44:37 GMT; HttpOnly
|
8
|
+
X-Rack-Cache: invalidate, pass
|
9
|
+
X-Runtime: 0.556411
|
10
|
+
X-Ua-Compatible: IE=Edge,chrome=1
|
11
|
+
Content-Length: 588
|
12
|
+
Connection: keep-alive
|
13
|
+
|
14
|
+
{"checkin":{"id":3634619,"client_uuid":null,"timezone":"-7:00","title":"checked in for the 9th time","date":"2013-02-16T10:37:46Z","habit":{"id":2111,"name":"Test Lift"},"user":{"id":33705},"subscription":{"stats":{"total_checkins":10,"frequency":[{"start_time":"2013-02-17T00:00:00Z","count":1},{"start_time":"2013-02-10T00:00:00Z","count":5},{"start_time":"2013-02-03T00:00:00Z","count":4},{"start_time":"2013-01-27T00:00:00Z","count":0},{"start_time":"2013-01-20T00:00:00Z","count":0},{"start_time":"2013-01-13T00:00:00Z","count":0},{"start_time":"2013-01-06T00:00:00Z","count":0}]}}}}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
HTTP/1.1 200 OK
|
2
|
+
Cache-Control: max-age=0, private, must-revalidate
|
3
|
+
Content-Type: application/json; charset=utf-8
|
4
|
+
Date: Sun, 17 Feb 2013 11:25:20 GMT
|
5
|
+
Etag: "7f982bedfddf56e85c2447f5ec5f2621"
|
6
|
+
Server: nginx
|
7
|
+
Set-Cookie: _lift_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTBhMzNhMjhlYWZiNmFiODJhMjEyNWQ4YzRkMWU2ZTkyBjsAVEkiDHVzZXJfaWQGOwBGaQKpgw%3D%3D--b0959a542f7c491f52a003162dc1d3bf409d1e16; path=/; expires=Sun, 17-Mar-2013 10:25:20 GMT; HttpOnly
|
8
|
+
X-Rack-Cache: invalidate, pass
|
9
|
+
X-Runtime: 0.168671
|
10
|
+
X-Ua-Compatible: IE=Edge,chrome=1
|
11
|
+
transfer-encoding: chunked
|
12
|
+
Connection: keep-alive
|
13
|
+
|
14
|
+
{"checkin":{"subscription":{"stats":{"total_checkins":9,"frequency":[{"start_time":"2013-02-17T00:00:00Z","count":1},{"start_time":"2013-02-10T00:00:00Z","count":4},{"start_time":"2013-02-03T00:00:00Z","count":4},{"start_time":"2013-01-27T00:00:00Z","count":0},{"start_time":"2013-01-20T00:00:00Z","count":0},{"start_time":"2013-01-13T00:00:00Z","count":0},{"start_time":"2013-01-06T00:00:00Z","count":0}]}}}}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
HTTP/1.1 400 Bad Request
|
2
|
+
Cache-Control: no-cache
|
3
|
+
Content-Type: application/json; charset=utf-8
|
4
|
+
Date: Sun, 17 Feb 2013 10:44:22 GMT
|
5
|
+
Server: nginx
|
6
|
+
Set-Cookie: _lift_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJWFlYzE4NzBiMGFhMTQ5ZjM1Njg1NGUwMWI3OTNjMzM5BjsAVEkiDHVzZXJfaWQGOwBGaQKpgw%3D%3D--bea7765b4bd0fccfcccdc59146d07fde9cf768bf; path=/; expires=Sun, 17-Mar-2013 09:44:22 GMT; HttpOnly
|
7
|
+
X-Rack-Cache: invalidate, pass
|
8
|
+
X-Runtime: 0.111679
|
9
|
+
X-Ua-Compatible: IE=Edge,chrome=1
|
10
|
+
transfer-encoding: chunked
|
11
|
+
Connection: keep-alive
|
12
|
+
|
13
|
+
{"errors":["checkin.duplicate"],"checkin":{"id":3634581,"timezone":"+11:00","title":"checked in for the 9th time","date":"2013-02-16T10:37:46Z","props":[],"habit":{"id":2111,"name":"Test Lift"}}}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
HTTP/1.1 400 Bad Request
|
2
|
+
Cache-Control: no-cache
|
3
|
+
Content-Type: application/json; charset=utf-8
|
4
|
+
Date: Sun, 17 Feb 2013 10:44:00 GMT
|
5
|
+
Server: nginx
|
6
|
+
Set-Cookie: _lift_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTRmNjdhZTkzZjgyZWQ1M2Q1NTE3MWEyNDI0ZjBlMjliBjsAVEkiDHVzZXJfaWQGOwBGaQKpgw%3D%3D--3e27c05b43111abc1cab17f4f5367dc3d1598182; path=/; expires=Sun, 17-Mar-2013 09:44:00 GMT; HttpOnly
|
7
|
+
X-Rack-Cache: invalidate, pass
|
8
|
+
X-Runtime: 0.248397
|
9
|
+
X-Ua-Compatible: IE=Edge,chrome=1
|
10
|
+
transfer-encoding: chunked
|
11
|
+
Connection: keep-alive
|
12
|
+
|
13
|
+
{"errors":["checkin.duplicate"],"checkin":{"id":3634581,"timezone":"+11:00","title":"checked in for the 9th time","date":"2013-02-16T10:37:46Z","props":[],"habit":{"id":2111,"name":"Test Lift"}}}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: liftapp-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -121,6 +121,10 @@ files:
|
|
121
121
|
- lib/liftapp-client/version.rb
|
122
122
|
- liftapp-client.gemspec
|
123
123
|
- spec/fixtures/3280
|
124
|
+
- spec/fixtures/checkin
|
125
|
+
- spec/fixtures/checkin.delete
|
126
|
+
- spec/fixtures/checkin.duplicate
|
127
|
+
- spec/fixtures/checkins
|
124
128
|
- spec/fixtures/current
|
125
129
|
- spec/fixtures/dashboard
|
126
130
|
- spec/lift_spec.rb
|
@@ -138,7 +142,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
138
142
|
version: '0'
|
139
143
|
segments:
|
140
144
|
- 0
|
141
|
-
hash:
|
145
|
+
hash: 1795258763130378618
|
142
146
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
147
|
none: false
|
144
148
|
requirements:
|
@@ -147,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
151
|
version: '0'
|
148
152
|
segments:
|
149
153
|
- 0
|
150
|
-
hash:
|
154
|
+
hash: 1795258763130378618
|
151
155
|
requirements: []
|
152
156
|
rubyforge_project:
|
153
157
|
rubygems_version: 1.8.21
|
@@ -156,6 +160,10 @@ specification_version: 3
|
|
156
160
|
summary: Client allows you to access your Lift.do habits and checkins.
|
157
161
|
test_files:
|
158
162
|
- spec/fixtures/3280
|
163
|
+
- spec/fixtures/checkin
|
164
|
+
- spec/fixtures/checkin.delete
|
165
|
+
- spec/fixtures/checkin.duplicate
|
166
|
+
- spec/fixtures/checkins
|
159
167
|
- spec/fixtures/current
|
160
168
|
- spec/fixtures/dashboard
|
161
169
|
- spec/lift_spec.rb
|