openstax_api 2.2.2 → 2.2.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f3b5b34e393b1abf7b65bb886dea5f96b017392
|
4
|
+
data.tar.gz: b48a445efa09281e030109a557b6527149c36263
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e78e2b4e5a735163cb9ae671df7502ccfc50945d8700c1bea4fa7c42073d1515d3463e34522c0a6c3f84b13a23143decce54b37c6235362b94ecf5e3cf9bda2
|
7
|
+
data.tar.gz: d719cc8713015baf7ee5559782e3dd833b0e9819eaae4f6fe8ec58171c8933a7d0fda2ce74a4ab622b7639bd90b6880309b23c90044631e1ed700aef12c89703
|
@@ -37,7 +37,7 @@ module OpenStax
|
|
37
37
|
additionalProperties: false }
|
38
38
|
|
39
39
|
representer.representable_attrs.each do |attr|
|
40
|
-
name = attr.
|
40
|
+
name = attr[:as].evaluate(self)
|
41
41
|
schema_info = attr[:schema_info] || {}
|
42
42
|
|
43
43
|
schema[:required].push(name.to_sym) if schema_info[:required]
|
data/lib/openstax/api/version.rb
CHANGED
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -1437,3 +1437,20 @@ Connecting to database specified by database.yml
|
|
1437
1437
|
[1m[35m (0.8ms)[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)
|
1438
1438
|
[1m[36m (0.6ms)[0m [1mCREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")[0m
|
1439
1439
|
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
1440
|
+
Connecting to database specified by database.yml
|
1441
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
1442
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
1443
|
+
[1m[36m (1.5ms)[0m [1mDROP TABLE "dummy_users"[0m
|
1444
|
+
[1m[35m (0.9ms)[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)
|
1445
|
+
[1m[36m (0.7ms)[0m [1mDROP TABLE "oauth_access_grants"[0m
|
1446
|
+
[1m[35m (0.8ms)[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))
|
1447
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token")[0m
|
1448
|
+
[1m[35m (0.8ms)[0m DROP TABLE "oauth_access_tokens"
|
1449
|
+
[1m[36m (0.8ms)[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
|
1450
|
+
[1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token")
|
1451
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id")[0m
|
1452
|
+
[1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token")
|
1453
|
+
[1m[36m (0.8ms)[0m [1mDROP TABLE "oauth_applications"[0m
|
1454
|
+
[1m[35m (0.8ms)[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)
|
1455
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")[0m
|
1456
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
data/spec/dummy/log/test.log
CHANGED
@@ -2238,3 +2238,40 @@ Connecting to database specified by database.yml
|
|
2238
2238
|
[1m[35m (0.0ms)[0m rollback transaction
|
2239
2239
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2240
2240
|
[1m[35m (0.0ms)[0m rollback transaction
|
2241
|
+
Connecting to database specified by database.yml
|
2242
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
2243
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2244
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2245
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2246
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2247
|
+
[1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" IS NULL LIMIT 1
|
2248
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2249
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2250
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2251
|
+
[1m[35mSQL (2.5ms)[0m INSERT INTO "dummy_users" ("created_at", "password_hash", "updated_at", "username") VALUES (?, ?, ?, ?) [["created_at", Wed, 02 Jul 2014 23:19:03 UTC +00:00], ["password_hash", nil], ["updated_at", Wed, 02 Jul 2014 23:19:03 UTC +00:00], ["username", nil]]
|
2252
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2253
|
+
[1m[35mDummyUser Load (0.1ms)[0m SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 1 LIMIT 1
|
2254
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
2255
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2256
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2257
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "dummy_users" ("created_at", "password_hash", "updated_at", "username") VALUES (?, ?, ?, ?) [["created_at", Wed, 02 Jul 2014 23:19:03 UTC +00:00], ["password_hash", nil], ["updated_at", Wed, 02 Jul 2014 23:19:03 UTC +00:00], ["username", nil]]
|
2258
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2259
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2260
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2261
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2262
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2263
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2264
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2265
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2266
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2267
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2268
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2269
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2270
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2271
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2272
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2273
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2274
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2275
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2276
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2277
|
+
[1m[35m (0.0ms)[0m rollback transaction
|