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: 0d1548c720a9fd4fdf2e54f8b005019e81504d99
4
- data.tar.gz: 9bf3a7b1602fd86666e7db95df285cf55048b3c5
3
+ metadata.gz: 4f3b5b34e393b1abf7b65bb886dea5f96b017392
4
+ data.tar.gz: b48a445efa09281e030109a557b6527149c36263
5
5
  SHA512:
6
- metadata.gz: 0b1d6867b462d6a264ea79a4c92db1e5a1bc250122fc2ab4c5b11497f52b96246caadb04ccc114022dafe05f93bddc3e7c0758014290ae44855bb07dc023b84a
7
- data.tar.gz: 4acd371f45b872aa4a04cfd8ca44a0454052c8688f1db3fc4cbddab3a13ca475087dc9a29a7d0fbc14431cdc4ae48300812c9475a2e3678eb23b6bdb6ae79938
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.name
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]
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Api
3
- VERSION = "2.2.2"
3
+ VERSION = "2.2.3"
4
4
  end
5
5
  end
Binary file
@@ -1437,3 +1437,20 @@ Connecting to database specified by database.yml
1437
1437
   (0.8ms) 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
   (0.6ms) CREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")
1439
1439
   (0.1ms) SELECT version FROM "schema_migrations"
1440
+ Connecting to database specified by database.yml
1441
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1442
+  (0.2ms) select sqlite_version(*)
1443
+  (1.5ms) DROP TABLE "dummy_users"
1444
+  (0.9ms) 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
+  (0.7ms) DROP TABLE "oauth_access_grants"
1446
+  (0.8ms) 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
+  (0.8ms) CREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token")
1448
+  (0.8ms) DROP TABLE "oauth_access_tokens"
1449
+  (0.8ms) CREATE 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)) 
1450
+  (0.7ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token")
1451
+  (0.8ms) CREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id")
1452
+  (0.7ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token")
1453
+  (0.8ms) DROP TABLE "oauth_applications"
1454
+  (0.8ms) 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
+  (0.7ms) CREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")
1456
+  (0.1ms) SELECT version FROM "schema_migrations"
@@ -2238,3 +2238,40 @@ Connecting to database specified by database.yml
2238
2238
   (0.0ms) rollback transaction
2239
2239
   (0.0ms) begin transaction
2240
2240
   (0.0ms) rollback transaction
2241
+ Connecting to database specified by database.yml
2242
+  (0.4ms) begin transaction
2243
+  (0.0ms) rollback transaction
2244
+  (0.0ms) begin transaction
2245
+  (0.0ms) rollback transaction
2246
+  (0.0ms) begin transaction
2247
+ DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" IS NULL LIMIT 1
2248
+  (0.0ms) rollback transaction
2249
+  (0.0ms) begin transaction
2250
+  (0.0ms) SAVEPOINT active_record_1
2251
+ SQL (2.5ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2253
+ DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 1 LIMIT 1
2254
+  (0.3ms) rollback transaction
2255
+  (0.0ms) begin transaction
2256
+  (0.0ms) SAVEPOINT active_record_1
2257
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2259
+  (0.4ms) rollback transaction
2260
+  (0.1ms) begin transaction
2261
+  (0.0ms) rollback transaction
2262
+  (0.1ms) begin transaction
2263
+  (0.0ms) rollback transaction
2264
+  (0.0ms) begin transaction
2265
+  (0.0ms) rollback transaction
2266
+  (0.0ms) begin transaction
2267
+  (0.0ms) rollback transaction
2268
+  (0.0ms) begin transaction
2269
+  (0.0ms) rollback transaction
2270
+  (0.0ms) begin transaction
2271
+  (0.0ms) rollback transaction
2272
+  (0.0ms) begin transaction
2273
+  (0.0ms) rollback transaction
2274
+  (0.0ms) begin transaction
2275
+  (0.0ms) rollback transaction
2276
+  (0.0ms) begin transaction
2277
+  (0.0ms) rollback transaction
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: 2.2.2
4
+ version: 2.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dante Soares