openstax_api 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/lib/openstax/api/roar.rb +2 -2
- data/lib/openstax/api/version.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +17 -0
- data/spec/dummy/log/test.log +36 -0
- metadata +20 -20
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
YjRkYzdkNzdhYzM2MmJmZjIyNWY4NjY0NzhiYTY5MzIzZTRhYjRiMQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MjkzYTBiZDVkYTU1ZDc5ZGYwYmFmYTgzYWVhYTQxMmIxMGUzNzM5Zg==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NWRlYTljNWI5YmQ5MjZiMDEzNzBlOGZkNDJkNGExNmRiODkwMzcwM2ZkNGEw
|
10
|
+
NmE3NGFhY2MxYjQ2YmQzNmVjOTMxOGEyOTM3NjMwMWVmNWE5M2RlMWYwZDYw
|
11
|
+
NmVhOWE0NmNjYjdjODBlNjBjMDNhYjdlN2I2M2I5NjRmNDFkMzc=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
YjQ0ZTcyM2E5ZTQ2MDg2YzVkMDk1YmNkNjFlMWNmZGQ3NjNiNGQ2YzI4YmZj
|
14
|
+
ZTFlMzUwYjJlZmU4ZmNmNjM5Mzk3YTUzMWJiMzc1MTZkMWEyYThlYzk3Yjll
|
15
|
+
M2U5ZWI2OWIwNTI4MmE2YzkwZjkyNjhhMmJjNGEzOWI4ZWRhZmM=
|
data/lib/openstax/api/roar.rb
CHANGED
@@ -33,8 +33,8 @@ module OpenStax
|
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
36
|
-
def standard_create(model_klass, represent_with=nil)
|
37
|
-
standard_nested_create(model_klass, nil, nil, represent_with)
|
36
|
+
def standard_create(model_klass, represent_with=nil, &block)
|
37
|
+
standard_nested_create(model_klass, nil, nil, represent_with, &block)
|
38
38
|
end
|
39
39
|
|
40
40
|
def standard_nested_create(model_klass, container_association=nil, container_id=nil, represent_with=nil)
|
data/lib/openstax/api/version.rb
CHANGED
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -182,3 +182,20 @@ Connecting to database specified by database.yml
|
|
182
182
|
[1m[35m (1.9ms)[0m CREATE TABLE "oauth_applications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "secret" varchar(255) NOT NULL, "redirect_uri" text NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
183
183
|
[1m[36m (5.9ms)[0m [1mCREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")[0m
|
184
184
|
[1m[35m (0.0ms)[0m SELECT version FROM "schema_migrations"
|
185
|
+
Connecting to database specified by database.yml
|
186
|
+
[1m[36m (2.5ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
187
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
188
|
+
[1m[36m (0.9ms)[0m [1mDROP TABLE "dummy_users"[0m
|
189
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "dummy_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255), "password_hash" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
190
|
+
[1m[36m (0.7ms)[0m [1mDROP TABLE "oauth_access_grants"[0m
|
191
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "oauth_access_grants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_owner_id" integer NOT NULL, "application_id" integer NOT NULL, "token" varchar(255) NOT NULL, "expires_in" integer NOT NULL, "redirect_uri" text NOT NULL, "created_at" datetime NOT NULL, "revoked_at" datetime, "scopes" varchar(255))
|
192
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token")[0m
|
193
|
+
[1m[35m (3.1ms)[0m DROP TABLE "oauth_access_tokens"
|
194
|
+
[1m[36m (3.4ms)[0m [1mCREATE TABLE "oauth_access_tokens" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_owner_id" integer, "application_id" integer, "token" varchar(255) NOT NULL, "refresh_token" varchar(255), "expires_in" integer, "revoked_at" datetime, "created_at" datetime NOT NULL, "scopes" varchar(255)) [0m
|
195
|
+
[1m[35m (5.6ms)[0m CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token")
|
196
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id")[0m
|
197
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token")
|
198
|
+
[1m[36m (0.7ms)[0m [1mDROP TABLE "oauth_applications"[0m
|
199
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "oauth_applications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "uid" varchar(255) NOT NULL, "secret" varchar(255) NOT NULL, "redirect_uri" text NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
200
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")[0m
|
201
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
data/spec/dummy/log/test.log
CHANGED
@@ -279,3 +279,39 @@ Connecting to database specified by database.yml
|
|
279
279
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
280
280
|
[1m[35m (0.0ms)[0m begin transaction
|
281
281
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
282
|
+
Connecting to database specified by database.yml
|
283
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
284
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
285
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
286
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
287
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
288
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
289
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
290
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
291
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
292
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
293
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
294
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
295
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
296
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
297
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
298
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
299
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
300
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
301
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
302
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
303
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
304
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
305
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
306
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
307
|
+
[1m[36mSQL (8.6ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "password_hash", "updated_at", "username") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 10 Apr 2014 15:15:33 UTC +00:00], ["password_hash", nil], ["updated_at", Thu, 10 Apr 2014 15:15:33 UTC +00:00], ["username", nil]]
|
308
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
309
|
+
[1m[36mDummyUser Load (0.1ms)[0m [1mSELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1[0m [["id", 1]]
|
310
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
311
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
312
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
313
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dummy_users" ("created_at", "password_hash", "updated_at", "username") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 10 Apr 2014 15:15:33 UTC +00:00], ["password_hash", nil], ["updated_at", Thu, 10 Apr 2014 15:15:33 UTC +00:00], ["username", nil]]
|
314
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
315
|
+
[1m[36m (4.9ms)[0m [1mrollback transaction[0m
|
316
|
+
[1m[35m (0.1ms)[0m begin transaction
|
317
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openstax_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dante Soares
|
@@ -9,118 +9,118 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-04-
|
12
|
+
date: 2014-04-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ! '>='
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '3.1'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ! '>='
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '3.1'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: roar
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - ! '>='
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: 0.12.1
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ! '>='
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: 0.12.1
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: roar-rails
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - ! '>='
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: 0.1.2
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - ! '>='
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: 0.1.2
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: doorkeeper
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- -
|
60
|
+
- - ! '>='
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '0.5'
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- -
|
67
|
+
- - ! '>='
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '0.5'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: openstax_utilities
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- -
|
74
|
+
- - ! '>='
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: 1.0.1
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- -
|
81
|
+
- - ! '>='
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: 1.0.1
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: exception_notification
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- -
|
88
|
+
- - ! '>='
|
89
89
|
- !ruby/object:Gem::Version
|
90
90
|
version: '4.0'
|
91
91
|
type: :runtime
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- -
|
95
|
+
- - ! '>='
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '4.0'
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: sqlite3
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- -
|
102
|
+
- - ~>
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '1.3'
|
105
105
|
type: :development
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
|
-
- -
|
109
|
+
- - ~>
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: '1.3'
|
112
112
|
- !ruby/object:Gem::Dependency
|
113
113
|
name: rspec-rails
|
114
114
|
requirement: !ruby/object:Gem::Requirement
|
115
115
|
requirements:
|
116
|
-
- -
|
116
|
+
- - ~>
|
117
117
|
- !ruby/object:Gem::Version
|
118
118
|
version: '2.14'
|
119
119
|
type: :development
|
120
120
|
prerelease: false
|
121
121
|
version_requirements: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
|
-
- -
|
123
|
+
- - ~>
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '2.14'
|
126
126
|
description: Provides models, controllers and libraries that help OpenStax products
|
@@ -205,12 +205,12 @@ require_paths:
|
|
205
205
|
- lib
|
206
206
|
required_ruby_version: !ruby/object:Gem::Requirement
|
207
207
|
requirements:
|
208
|
-
- -
|
208
|
+
- - ! '>='
|
209
209
|
- !ruby/object:Gem::Version
|
210
210
|
version: '0'
|
211
211
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
212
212
|
requirements:
|
213
|
-
- -
|
213
|
+
- - ! '>='
|
214
214
|
- !ruby/object:Gem::Version
|
215
215
|
version: '0'
|
216
216
|
requirements: []
|