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 CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0182a7fe7cdaf9adbe7a8719473cd4546c2f3bcb
4
- data.tar.gz: be4936d879e58990235b59857c65892fc1711456
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ YjRkYzdkNzdhYzM2MmJmZjIyNWY4NjY0NzhiYTY5MzIzZTRhYjRiMQ==
5
+ data.tar.gz: !binary |-
6
+ MjkzYTBiZDVkYTU1ZDc5ZGYwYmFmYTgzYWVhYTQxMmIxMGUzNzM5Zg==
5
7
  SHA512:
6
- metadata.gz: 2948208fe965b6e01bc5e67615b48058d52998fb40e4f2db620e4ee646f6559b19c0725439956f2107dc171b698b718b9252703a267a484ff324dcb7208949aa
7
- data.tar.gz: 433bd360c6317cde8864ad9933877605387eaf3a8d92ee3267836abdce5e143663b2cb65acdec7f7ce735b0b4adb266ab5f97e04020c14496f9c7daaed6b9b3a
8
+ metadata.gz: !binary |-
9
+ NWRlYTljNWI5YmQ5MjZiMDEzNzBlOGZkNDJkNGExNmRiODkwMzcwM2ZkNGEw
10
+ NmE3NGFhY2MxYjQ2YmQzNmVjOTMxOGEyOTM3NjMwMWVmNWE5M2RlMWYwZDYw
11
+ NmVhOWE0NmNjYjdjODBlNjBjMDNhYjdlN2I2M2I5NjRmNDFkMzc=
12
+ data.tar.gz: !binary |-
13
+ YjQ0ZTcyM2E5ZTQ2MDg2YzVkMDk1YmNkNjFlMWNmZGQ3NjNiNGQ2YzI4YmZj
14
+ ZTFlMzUwYjJlZmU4ZmNmNjM5Mzk3YTUzMWJiMzc1MTZkMWEyYThlYzk3Yjll
15
+ M2U5ZWI2OWIwNTI4MmE2YzkwZjkyNjhhMmJjNGEzOWI4ZWRhZmM=
@@ -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)
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Api
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
Binary file
@@ -182,3 +182,20 @@ Connecting to database specified by database.yml
182
182
   (1.9ms) 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
   (5.9ms) CREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")
184
184
   (0.0ms) SELECT version FROM "schema_migrations"
185
+ Connecting to database specified by database.yml
186
+  (2.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
187
+  (0.3ms) select sqlite_version(*)
188
+  (0.9ms) DROP TABLE "dummy_users"
189
+  (0.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)
190
+  (0.7ms) DROP TABLE "oauth_access_grants"
191
+  (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))
192
+  (0.8ms) CREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token")
193
+  (3.1ms) DROP TABLE "oauth_access_tokens"
194
+  (3.4ms) 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)) 
195
+  (5.6ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token")
196
+  (0.8ms) CREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id")
197
+  (0.8ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token")
198
+  (0.7ms) DROP TABLE "oauth_applications"
199
+  (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)
200
+  (0.7ms) CREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")
201
+  (0.1ms) SELECT version FROM "schema_migrations"
@@ -279,3 +279,39 @@ Connecting to database specified by database.yml
279
279
   (0.0ms) rollback transaction
280
280
   (0.0ms) begin transaction
281
281
   (0.0ms) rollback transaction
282
+ Connecting to database specified by database.yml
283
+  (0.5ms) begin transaction
284
+  (0.1ms) rollback transaction
285
+  (0.0ms) begin transaction
286
+  (0.0ms) rollback transaction
287
+  (0.0ms) begin transaction
288
+  (0.0ms) rollback transaction
289
+  (0.0ms) begin transaction
290
+  (0.0ms) rollback transaction
291
+  (0.0ms) begin transaction
292
+  (0.0ms) rollback transaction
293
+  (0.0ms) begin transaction
294
+  (0.0ms) rollback transaction
295
+  (0.0ms) begin transaction
296
+  (0.0ms) rollback transaction
297
+  (0.0ms) begin transaction
298
+  (0.0ms) rollback transaction
299
+  (0.0ms) begin transaction
300
+  (0.0ms) rollback transaction
301
+  (0.0ms) begin transaction
302
+  (0.0ms) rollback transaction
303
+  (0.0ms) begin transaction
304
+  (0.0ms) rollback transaction
305
+  (0.0ms) begin transaction
306
+  (0.1ms) SAVEPOINT active_record_1
307
+ SQL (8.6ms) INSERT INTO "dummy_users" ("created_at", "password_hash", "updated_at", "username") VALUES (?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
309
+ DummyUser Load (0.1ms) SELECT "dummy_users".* FROM "dummy_users" WHERE "dummy_users"."id" = ? LIMIT 1 [["id", 1]]
310
+  (0.3ms) rollback transaction
311
+  (0.0ms) begin transaction
312
+  (0.0ms) SAVEPOINT active_record_1
313
+ SQL (0.2ms) INSERT INTO "dummy_users" ("created_at", "password_hash", "updated_at", "username") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
315
+  (4.9ms) rollback transaction
316
+  (0.1ms) begin transaction
317
+  (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: 0.2.0
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-09 00:00:00.000000000 Z
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: []