openstax_api 2.2.4 → 2.3.0

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: c5fd4bfe8e6a6248275865264dfd4a2213f4f7c2
4
- data.tar.gz: ab61b919e2b8e47fd59bee384c475c347c593111
3
+ metadata.gz: 45c27bbfb7edbe8f5c01860b4e4f0a9e207b7da8
4
+ data.tar.gz: 43d7537f58483adaae038c63c68a2f165495dc45
5
5
  SHA512:
6
- metadata.gz: ca6879019824fab19edc1d212904742bfda992f2a00d5ee0024a2c7b0f0a3e0a58eb3ae8e7489b559db500f0fbeb76cb4c0ada6eaf64fab458183e5177251730
7
- data.tar.gz: 0927f2ab635170b7ab83ce88a427cc4b839a437b04b82702a79c81e226ea3ddc2a15942e45c80949fc14fc622ee954cad891efd79f491889795faea40954bc20
6
+ metadata.gz: f4542cb79a125a6649073825c5eae73b8270f11037ebd95b62fc0de1cc28d7cf5da8437b2e3cc756a1d0f2d34d842c1540b54a27a8eb06e3754b8eb938de3d1d
7
+ data.tar.gz: 6032ee2636e0813b182fda6b4e06fa61af87219a892e1afa9e413cfa78586bfb0bfd5e1823bce8cdf7316f2e933c2680c4fe8f26651b12fc8751257354d9b25e
@@ -1,8 +1,3 @@
1
- require 'roar-rails'
2
- require 'exception_notification'
3
- require 'openstax/api/roar'
4
- require 'openstax/api/apipie'
5
-
6
1
  module OpenStax
7
2
  module Api
8
3
  module V1
@@ -1,3 +1,8 @@
1
+ require 'roar-rails'
2
+ require 'exception_notification'
3
+ require 'openstax/api/roar'
4
+ require 'openstax/api/apipie'
5
+
1
6
  module OpenStax
2
7
  module Api
3
8
  class Engine < ::Rails::Engine
@@ -4,11 +4,21 @@ module OpenStax
4
4
  module Api
5
5
  module RoutingMapperIncludes
6
6
  def api(version, options = {})
7
+ api_namespace = (options.delete(:namespace) || 'api').to_s
7
8
  constraints = Constraints.new(version: version,
8
9
  default: options.delete(:default))
9
- namespace :api, defaults: {format: 'json'}.merge(options) do
10
+
11
+ namespace api_namespace, defaults: {format: 'json'}.merge(options) do
10
12
  scope(module: version,
11
- constraints: constraints) { yield }
13
+ constraints: constraints) do
14
+ get '/', to: '/apipie/apipies#index', defaults: {format: 'html',
15
+ version: version.to_s}
16
+
17
+ yield
18
+
19
+ match '/*other', via: [:get, :post, :put, :patch, :delete],
20
+ to: lambda { |env| [404, {"Content-Type" => 'application/json'}, ['']] }
21
+ end
12
22
  end
13
23
  end
14
24
  end
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Api
3
- VERSION = "2.2.4"
3
+ VERSION = "2.3.0"
4
4
  end
5
5
  end
@@ -3463,3 +3463,465 @@ Connecting to database specified by database.yml
3463
3463
   (0.1ms) begin transaction
3464
3464
  DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" IS NULL ORDER BY "dummy_users"."id" ASC LIMIT 1
3465
3465
   (0.1ms) rollback transaction
3466
+  (1.3ms) 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) 
3467
+  (0.9ms) 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))
3468
+  (0.1ms) select sqlite_version(*)
3469
+  (0.8ms) CREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token")
3470
+  (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)) 
3471
+  (0.7ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token")
3472
+  (0.1ms)  SELECT sql
3473
+ FROM sqlite_master
3474
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3475
+ UNION ALL
3476
+ SELECT sql
3477
+ FROM sqlite_temp_master
3478
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3479
+ 
3480
+  (0.8ms) CREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id")
3481
+  (0.1ms)  SELECT sql
3482
+ FROM sqlite_master
3483
+ WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
3484
+ UNION ALL
3485
+ SELECT sql
3486
+ FROM sqlite_temp_master
3487
+ WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
3488
+ 
3489
+  (0.1ms) SELECT sql
3490
+ FROM sqlite_master
3491
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3492
+ UNION ALL
3493
+ SELECT sql
3494
+ FROM sqlite_temp_master
3495
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3496
+
3497
+  (0.7ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token")
3498
+  (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)
3499
+  (0.7ms) CREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")
3500
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3501
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3502
+  (0.1ms) SELECT version FROM "schema_migrations"
3503
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
3504
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
3505
+  (1.5ms) 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) 
3506
+  (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))
3507
+  (0.0ms) select sqlite_version(*)
3508
+  (0.7ms) CREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token")
3509
+  (0.7ms) 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)) 
3510
+  (0.8ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token")
3511
+  (0.1ms)  SELECT sql
3512
+ FROM sqlite_master
3513
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3514
+ UNION ALL
3515
+ SELECT sql
3516
+ FROM sqlite_temp_master
3517
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3518
+ 
3519
+  (0.8ms) CREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id")
3520
+  (0.1ms)  SELECT sql
3521
+ FROM sqlite_master
3522
+ WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
3523
+ UNION ALL
3524
+ SELECT sql
3525
+ FROM sqlite_temp_master
3526
+ WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
3527
+ 
3528
+  (0.1ms) SELECT sql
3529
+ FROM sqlite_master
3530
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3531
+ UNION ALL
3532
+ SELECT sql
3533
+ FROM sqlite_temp_master
3534
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3535
+
3536
+  (0.7ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token")
3537
+  (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)
3538
+  (0.8ms) CREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")
3539
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3540
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3541
+  (0.1ms) SELECT version FROM "schema_migrations"
3542
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
3543
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
3544
+  (1.5ms) 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) 
3545
+  (1.0ms) 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))
3546
+  (0.1ms) select sqlite_version(*)
3547
+  (0.8ms) CREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token")
3548
+  (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)) 
3549
+  (0.7ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token")
3550
+  (0.1ms)  SELECT sql
3551
+ FROM sqlite_master
3552
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3553
+ UNION ALL
3554
+ SELECT sql
3555
+ FROM sqlite_temp_master
3556
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3557
+ 
3558
+  (0.7ms) CREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id")
3559
+  (0.1ms)  SELECT sql
3560
+ FROM sqlite_master
3561
+ WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
3562
+ UNION ALL
3563
+ SELECT sql
3564
+ FROM sqlite_temp_master
3565
+ WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
3566
+ 
3567
+  (0.1ms) SELECT sql
3568
+ FROM sqlite_master
3569
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3570
+ UNION ALL
3571
+ SELECT sql
3572
+ FROM sqlite_temp_master
3573
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3574
+
3575
+  (0.8ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token")
3576
+  (1.0ms) 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)
3577
+  (0.8ms) CREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")
3578
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3579
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3580
+  (0.1ms) SELECT version FROM "schema_migrations"
3581
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
3582
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
3583
+  (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) 
3584
+  (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))
3585
+  (0.0ms) select sqlite_version(*)
3586
+  (0.8ms) CREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token")
3587
+  (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)) 
3588
+  (0.6ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token")
3589
+  (0.1ms)  SELECT sql
3590
+ FROM sqlite_master
3591
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3592
+ UNION ALL
3593
+ SELECT sql
3594
+ FROM sqlite_temp_master
3595
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3596
+ 
3597
+  (0.7ms) CREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id")
3598
+  (0.1ms)  SELECT sql
3599
+ FROM sqlite_master
3600
+ WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
3601
+ UNION ALL
3602
+ SELECT sql
3603
+ FROM sqlite_temp_master
3604
+ WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
3605
+ 
3606
+  (0.1ms) SELECT sql
3607
+ FROM sqlite_master
3608
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3609
+ UNION ALL
3610
+ SELECT sql
3611
+ FROM sqlite_temp_master
3612
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3613
+
3614
+  (0.8ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token")
3615
+  (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)
3616
+  (0.8ms) CREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")
3617
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3618
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3619
+  (0.1ms) SELECT version FROM "schema_migrations"
3620
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
3621
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
3622
+  (1.7ms) 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) 
3623
+  (0.9ms) 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))
3624
+  (0.1ms) select sqlite_version(*)
3625
+  (0.9ms) CREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token")
3626
+  (0.9ms) 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)) 
3627
+  (0.9ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token")
3628
+  (0.1ms)  SELECT sql
3629
+ FROM sqlite_master
3630
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3631
+ UNION ALL
3632
+ SELECT sql
3633
+ FROM sqlite_temp_master
3634
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3635
+ 
3636
+  (0.8ms) CREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id")
3637
+  (0.1ms)  SELECT sql
3638
+ FROM sqlite_master
3639
+ WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
3640
+ UNION ALL
3641
+ SELECT sql
3642
+ FROM sqlite_temp_master
3643
+ WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
3644
+ 
3645
+  (0.1ms) SELECT sql
3646
+ FROM sqlite_master
3647
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3648
+ UNION ALL
3649
+ SELECT sql
3650
+ FROM sqlite_temp_master
3651
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3652
+
3653
+  (0.7ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token")
3654
+  (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)
3655
+  (0.8ms) CREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")
3656
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3657
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3658
+  (0.1ms) SELECT version FROM "schema_migrations"
3659
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
3660
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
3661
+  (1.6ms) 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) 
3662
+  (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))
3663
+  (0.0ms) select sqlite_version(*)
3664
+  (0.8ms) CREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token")
3665
+  (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)) 
3666
+  (0.7ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token")
3667
+  (0.1ms)  SELECT sql
3668
+ FROM sqlite_master
3669
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3670
+ UNION ALL
3671
+ SELECT sql
3672
+ FROM sqlite_temp_master
3673
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3674
+ 
3675
+  (0.7ms) CREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id")
3676
+  (0.1ms)  SELECT sql
3677
+ FROM sqlite_master
3678
+ WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
3679
+ UNION ALL
3680
+ SELECT sql
3681
+ FROM sqlite_temp_master
3682
+ WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
3683
+ 
3684
+  (0.1ms) SELECT sql
3685
+ FROM sqlite_master
3686
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3687
+ UNION ALL
3688
+ SELECT sql
3689
+ FROM sqlite_temp_master
3690
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3691
+
3692
+  (0.7ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token")
3693
+  (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)
3694
+  (0.8ms) CREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")
3695
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3696
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3697
+  (0.1ms) SELECT version FROM "schema_migrations"
3698
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
3699
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
3700
+  (1.8ms) 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) 
3701
+  (0.9ms) 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))
3702
+  (0.1ms) select sqlite_version(*)
3703
+  (0.9ms) CREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token")
3704
+  (1.0ms) 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)) 
3705
+  (0.9ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token")
3706
+  (0.2ms)  SELECT sql
3707
+ FROM sqlite_master
3708
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3709
+ UNION ALL
3710
+ SELECT sql
3711
+ FROM sqlite_temp_master
3712
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3713
+ 
3714
+  (0.8ms) CREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id")
3715
+  (0.1ms)  SELECT sql
3716
+ FROM sqlite_master
3717
+ WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
3718
+ UNION ALL
3719
+ SELECT sql
3720
+ FROM sqlite_temp_master
3721
+ WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
3722
+ 
3723
+  (0.1ms) SELECT sql
3724
+ FROM sqlite_master
3725
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3726
+ UNION ALL
3727
+ SELECT sql
3728
+ FROM sqlite_temp_master
3729
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3730
+
3731
+  (0.8ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token")
3732
+  (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)
3733
+  (0.8ms) CREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")
3734
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3735
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3736
+  (0.1ms) SELECT version FROM "schema_migrations"
3737
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
3738
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
3739
+  (1.6ms) 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) 
3740
+  (1.1ms) 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))
3741
+  (0.1ms) select sqlite_version(*)
3742
+  (1.0ms) CREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token")
3743
+  (0.9ms) 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)) 
3744
+  (0.9ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token")
3745
+  (0.1ms)  SELECT sql
3746
+ FROM sqlite_master
3747
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3748
+ UNION ALL
3749
+ SELECT sql
3750
+ FROM sqlite_temp_master
3751
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3752
+ 
3753
+  (0.8ms) CREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id")
3754
+  (0.1ms)  SELECT sql
3755
+ FROM sqlite_master
3756
+ WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
3757
+ UNION ALL
3758
+ SELECT sql
3759
+ FROM sqlite_temp_master
3760
+ WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
3761
+ 
3762
+  (0.1ms) SELECT sql
3763
+ FROM sqlite_master
3764
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3765
+ UNION ALL
3766
+ SELECT sql
3767
+ FROM sqlite_temp_master
3768
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3769
+
3770
+  (0.7ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token")
3771
+  (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)
3772
+  (0.7ms) CREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")
3773
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3774
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3775
+  (0.1ms) SELECT version FROM "schema_migrations"
3776
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
3777
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
3778
+  (1.8ms) 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) 
3779
+  (0.9ms) 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))
3780
+  (0.1ms) select sqlite_version(*)
3781
+  (0.8ms) CREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token")
3782
+  (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)) 
3783
+  (0.8ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token")
3784
+  (0.1ms)  SELECT sql
3785
+ FROM sqlite_master
3786
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3787
+ UNION ALL
3788
+ SELECT sql
3789
+ FROM sqlite_temp_master
3790
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3791
+ 
3792
+  (0.7ms) CREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id")
3793
+  (0.1ms)  SELECT sql
3794
+ FROM sqlite_master
3795
+ WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
3796
+ UNION ALL
3797
+ SELECT sql
3798
+ FROM sqlite_temp_master
3799
+ WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
3800
+ 
3801
+  (0.1ms) SELECT sql
3802
+ FROM sqlite_master
3803
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3804
+ UNION ALL
3805
+ SELECT sql
3806
+ FROM sqlite_temp_master
3807
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3808
+
3809
+  (0.8ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token")
3810
+  (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)
3811
+  (0.8ms) CREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")
3812
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3813
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3814
+  (0.8ms) SELECT version FROM "schema_migrations"
3815
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
3816
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
3817
+  (0.4ms) begin transaction
3818
+  (0.1ms) rollback transaction
3819
+  (0.0ms) begin transaction
3820
+  (0.0ms) rollback transaction
3821
+  (0.0ms) begin transaction
3822
+  (0.1ms) rollback transaction
3823
+  (0.0ms) begin transaction
3824
+  (0.0ms) rollback transaction
3825
+  (0.0ms) begin transaction
3826
+  (0.0ms) rollback transaction
3827
+  (0.0ms) begin transaction
3828
+  (0.0ms) rollback transaction
3829
+  (0.0ms) begin transaction
3830
+  (0.0ms) rollback transaction
3831
+  (0.0ms) begin transaction
3832
+  (0.0ms) rollback transaction
3833
+  (0.0ms) begin transaction
3834
+  (0.0ms) rollback transaction
3835
+  (0.0ms) begin transaction
3836
+  (0.1ms) rollback transaction
3837
+  (0.0ms) begin transaction
3838
+  (0.0ms) rollback transaction
3839
+  (0.0ms) begin transaction
3840
+  (0.0ms) SAVEPOINT active_record_1
3841
+ SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-09-24 23:23:24.938667"], ["updated_at", "2014-09-24 23:23:24.938667"]]
3842
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3843
+  (0.3ms) rollback transaction
3844
+  (0.0ms) begin transaction
3845
+  (0.0ms) SAVEPOINT active_record_1
3846
+ SQL (0.1ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-09-24 23:23:24.944437"], ["updated_at", "2014-09-24 23:23:24.944437"]]
3847
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3848
+ DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 1 ORDER BY "dummy_users"."id" ASC LIMIT 1
3849
+  (0.3ms) rollback transaction
3850
+  (0.0ms) begin transaction
3851
+ DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" IS NULL ORDER BY "dummy_users"."id" ASC LIMIT 1
3852
+  (0.0ms) rollback transaction
3853
+  (1.0ms) 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) 
3854
+  (0.6ms) 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))
3855
+  (0.1ms) select sqlite_version(*)
3856
+  (0.7ms) CREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token")
3857
+  (0.7ms) 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)) 
3858
+  (0.6ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token")
3859
+  (0.1ms)  SELECT sql
3860
+ FROM sqlite_master
3861
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3862
+ UNION ALL
3863
+ SELECT sql
3864
+ FROM sqlite_temp_master
3865
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3866
+ 
3867
+  (0.6ms) CREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id")
3868
+  (0.1ms)  SELECT sql
3869
+ FROM sqlite_master
3870
+ WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
3871
+ UNION ALL
3872
+ SELECT sql
3873
+ FROM sqlite_temp_master
3874
+ WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
3875
+ 
3876
+  (0.1ms) SELECT sql
3877
+ FROM sqlite_master
3878
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3879
+ UNION ALL
3880
+ SELECT sql
3881
+ FROM sqlite_temp_master
3882
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
3883
+
3884
+  (0.7ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token")
3885
+  (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)
3886
+  (0.7ms) CREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")
3887
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3888
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3889
+  (0.1ms) SELECT version FROM "schema_migrations"
3890
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
3891
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
3892
+  (0.4ms) begin transaction
3893
+  (0.0ms) rollback transaction
3894
+  (0.0ms) begin transaction
3895
+  (0.0ms) rollback transaction
3896
+  (0.0ms) begin transaction
3897
+  (0.0ms) rollback transaction
3898
+  (0.0ms) begin transaction
3899
+  (0.0ms) rollback transaction
3900
+  (0.0ms) begin transaction
3901
+  (0.0ms) rollback transaction
3902
+  (0.0ms) begin transaction
3903
+  (0.0ms) rollback transaction
3904
+  (0.0ms) begin transaction
3905
+  (0.0ms) rollback transaction
3906
+  (0.1ms) begin transaction
3907
+  (0.0ms) rollback transaction
3908
+  (0.0ms) begin transaction
3909
+  (0.0ms) rollback transaction
3910
+  (0.0ms) begin transaction
3911
+  (0.0ms) rollback transaction
3912
+  (0.0ms) begin transaction
3913
+  (0.0ms) SAVEPOINT active_record_1
3914
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-09-24 23:26:34.418458"], ["updated_at", "2014-09-24 23:26:34.418458"]]
3915
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3916
+ DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = 1 ORDER BY "dummy_users"."id" ASC LIMIT 1
3917
+  (1.1ms) rollback transaction
3918
+  (0.1ms) begin transaction
3919
+  (0.1ms) SAVEPOINT active_record_1
3920
+ SQL (0.3ms) INSERT INTO "dummy_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-09-24 23:26:34.426888"], ["updated_at", "2014-09-24 23:26:34.426888"]]
3921
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3922
+  (0.3ms) rollback transaction
3923
+  (0.0ms) begin transaction
3924
+ DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" IS NULL ORDER BY "dummy_users"."id" ASC LIMIT 1
3925
+  (0.1ms) rollback transaction
3926
+  (0.1ms) begin transaction
3927
+  (0.1ms) 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.4
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dante Soares
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-08-07 00:00:00.000000000 Z
12
+ date: 2014-09-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails