montage_rails 0.7 → 0.7.1

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: 61690338bdb5fa2e29cae05c0e93e2c49989cd0a
4
- data.tar.gz: 378f64673523e53ee2c9b74f1c306cf17f59f715
3
+ metadata.gz: 8ebf145d607a7d72148f127a6d453a6db4b9c9f6
4
+ data.tar.gz: d8ed10d707234147dd5437e3b3482c9a5ebf0552
5
5
  SHA512:
6
- metadata.gz: 2728aa62f368062233511e581547d3162f4403f4bf273f5b020f07bbe25ebcc49cd24cf33a7a23b459136f4dee7780f02c8284a35df4dd04d3159c8c0a0983f2
7
- data.tar.gz: 627fd1878e1bb15ec7b06a6f79c5a01e6337186ba120524a9cb16f841a515820a05826e635b2094ef0445bd92523d6f1a565e07399db7cf6d418f430892e0dce
6
+ metadata.gz: ae8d79d5622f978121227ab6d9883e7a1b8fb3017196227078fe1b9c51d7b18cb495fb9278c159e418c42406ec54d09341527664888f0d512624889deeb7c409
7
+ data.tar.gz: 6f69ecde6ce093dea3f7dafee7719d79ebad6f75f0f05a6d0f50a283f38e2f53cfad645187af40131594cc2627716d31f35e6ef7dff7ee2bd116d54ada22723f
@@ -66,11 +66,19 @@ module MontageRails
66
66
  to_a.inspect
67
67
  end
68
68
 
69
+ # Checks to see if the relation is loadable
70
+ # If we are in test or dev environment, this is always true, otherwise
71
+ # it falls back to checking the loaded? instance variable
72
+ #
73
+ def loadable?
74
+ %w(test development).include?(Rails.env) || !loaded?
75
+ end
76
+
69
77
  # Returns the set of records if they have already been fetched, otherwise
70
78
  # gets the records and returns them
71
79
  #
72
80
  def to_a
73
- return @records if loaded?
81
+ return @records unless loadable?
74
82
 
75
83
  @response = cache.get_or_set_query(klass, query) do
76
84
  connection.documents(klass.table_name, query)
@@ -1,3 +1,3 @@
1
1
  module MontageRails
2
- VERSION = "0.7"
2
+ VERSION = "0.7.1"
3
3
  end
@@ -1207,3 +1207,4 @@ Started GET "/montage_rails_mock/api/v1/schemas/test_ones/" for ::1 at 2015-07-1
1207
1207
  Movie Load (394.4ms) {:filter=>{:foo=>"bar"}, :order_by=>"foo", :ordering=>"asc"}
1208
1208
  Movie Load (754.8ms) {:filter=>{}, :order_by=>"foo", :ordering=>"asc"}
1209
1209
  Movie Load (421.9ms) {:filter=>{}, :limit=>1}
1210
+ Movie Load (2352.4ms) {:filter=>{}, :limit=>1}
@@ -25205,3 +25205,445 @@ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at
25205
25205
  Movie Update (8.3ms) 69cc93af-1f0e-43bc-ac9a-19117111978e: {:id=>"69cc93af-1f0e-43bc-ac9a-19117111978e", :studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>600, :year=>1983}
25206
25206
  Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-10 10:09:29 -0800
25207
25207
  Movie Update (8.0ms) 69cc93af-1f0e-43bc-ac9a-19117111978e: {:id=>"69cc93af-1f0e-43bc-ac9a-19117111978e", :studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>900, :year=>1983}
25208
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
25209
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
25210
+  (0.3ms) select sqlite_version(*)
25211
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
25212
+  (0.1ms) SELECT version FROM "schema_migrations"
25213
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
25214
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
25215
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:06:44 -0800
25216
+ Movie Load (29.4ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25217
+ Started GET "/montage_rails_mock/api/v1/schemas/movies/" for 127.0.0.1 at 2015-11-17 13:06:44 -0800
25218
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:06:44 -0800
25219
+ Movie Load (6.9ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25220
+ foo Load (0.0ms) bar
25221
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:06:44 -0800
25222
+ Movie Load (7.1ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25223
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:06:44 -0800
25224
+ Movie Load (6.0ms) {:filter=>{:title=>"The Jerk"}, :pluck=>["title"]}
25225
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:06:44 -0800
25226
+ Movie Load (17.4ms) {:filter=>{:title=>"Foo"}}
25227
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:06:44 -0800
25228
+ Movie Load (6.2ms) {:filter=>{:votes__gt=>900000}}
25229
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:06:44 -0800
25230
+ Movie Load (9.2ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25231
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:06:44 -0800
25232
+ Movie Load (6.2ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25233
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:06:44 -0800
25234
+ Movie Load (6.3ms) {:filter=>{:votes__gt=>5}}
25235
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:06:44 -0800
25236
+ Movie Load (6.1ms) {:filter=>{:title=>"The Jerk"}}
25237
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
25238
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
25239
+  (0.1ms) select sqlite_version(*)
25240
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
25241
+  (0.1ms) SELECT version FROM "schema_migrations"
25242
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
25243
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
25244
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:07:20 -0800
25245
+ Movie Load (17.5ms) {:filter=>{:title=>"The Jerk"}}
25246
+ Started GET "/montage_rails_mock/api/v1/schemas/movies/" for 127.0.0.1 at 2015-11-17 13:07:20 -0800
25247
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:07:20 -0800
25248
+ Movie Load (6.4ms) {:filter=>{:votes__gt=>900000}}
25249
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:07:20 -0800
25250
+ Movie Load (5.9ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25251
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:07:20 -0800
25252
+ Movie Load (6.5ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25253
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:07:20 -0800
25254
+ Movie Load (6.8ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25255
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:07:20 -0800
25256
+ Movie Load (7.2ms) {:filter=>{:votes__gt=>5}}
25257
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:07:20 -0800
25258
+ Movie Load (6.9ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25259
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:07:20 -0800
25260
+ Movie Load (7.3ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25261
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:07:20 -0800
25262
+ Movie Load (5.8ms) {:filter=>{:title=>"The Jerk"}, :pluck=>["title"]}
25263
+ foo Load (0.0ms) bar
25264
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:07:20 -0800
25265
+ Movie Load (7.5ms) {:filter=>{:title=>"Foo"}}
25266
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
25267
+  (1.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
25268
+  (0.1ms) select sqlite_version(*)
25269
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
25270
+  (0.1ms) SELECT version FROM "schema_migrations"
25271
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
25272
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
25273
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:08:17 -0800
25274
+ Movie Load (17.8ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25275
+ Started GET "/montage_rails_mock/api/v1/schemas/movies/" for 127.0.0.1 at 2015-11-17 13:08:17 -0800
25276
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:08:17 -0800
25277
+ Movie Load (17.0ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25278
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:08:17 -0800
25279
+ Movie Load (7.5ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25280
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:08:17 -0800
25281
+ Movie Load (7.0ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25282
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:08:17 -0800
25283
+ Movie Load (6.4ms) {:filter=>{:title=>"The Jerk"}}
25284
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:08:17 -0800
25285
+ Movie Load (7.0ms) {:filter=>{:title=>"Foo"}}
25286
+ foo Load (0.0ms) bar
25287
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:08:17 -0800
25288
+ Movie Load (6.3ms) {:filter=>{:votes__gt=>900000}}
25289
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:08:17 -0800
25290
+ Movie Load (6.6ms) {:filter=>{:title=>"The Jerk"}, :pluck=>["title"]}
25291
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:08:17 -0800
25292
+ Movie Load (8.1ms) {:filter=>{:votes__gt=>5}}
25293
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:08:17 -0800
25294
+ Movie Load (7.7ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25295
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
25296
+  (1.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
25297
+  (0.1ms) select sqlite_version(*)
25298
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
25299
+  (0.1ms) SELECT version FROM "schema_migrations"
25300
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
25301
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
25302
+ foo Load (0.0ms) bar
25303
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:08:59 -0800
25304
+ Movie Load (17.7ms) {:filter=>{:title=>"The Jerk"}, :pluck=>["title"]}
25305
+ Started GET "/montage_rails_mock/api/v1/schemas/movies/" for 127.0.0.1 at 2015-11-17 13:08:59 -0800
25306
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:08:59 -0800
25307
+ Movie Load (7.0ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25308
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:08:59 -0800
25309
+ Movie Load (6.5ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25310
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:08:59 -0800
25311
+ Movie Load (17.4ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25312
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:08:59 -0800
25313
+ Movie Load (8.4ms) {:filter=>{:votes__gt=>5}}
25314
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:08:59 -0800
25315
+ Movie Load (6.1ms) {:filter=>{:votes__gt=>900000}}
25316
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:08:59 -0800
25317
+ Movie Load (6.0ms) {:filter=>{:title=>"Foo"}}
25318
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:08:59 -0800
25319
+ Movie Load (5.7ms) {:filter=>{:title=>"The Jerk"}}
25320
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:08:59 -0800
25321
+ Movie Load (6.8ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25322
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:08:59 -0800
25323
+ Movie Load (7.0ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25324
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
25325
+  (1.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
25326
+  (0.1ms) select sqlite_version(*)
25327
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
25328
+  (0.2ms) SELECT version FROM "schema_migrations"
25329
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
25330
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
25331
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:09:50 -0800
25332
+ Movie Load (17.3ms) {:filter=>{:votes__gt=>5}}
25333
+ Started GET "/montage_rails_mock/api/v1/schemas/movies/" for 127.0.0.1 at 2015-11-17 13:09:50 -0800
25334
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:09:50 -0800
25335
+ Movie Load (6.1ms) {:filter=>{:votes__gt=>900000}}
25336
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:09:50 -0800
25337
+ Movie Load (16.3ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25338
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:09:50 -0800
25339
+ Movie Load (6.3ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25340
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:09:50 -0800
25341
+ Movie Load (5.9ms) {:filter=>{:title=>"The Jerk"}, :pluck=>["title"]}
25342
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:09:50 -0800
25343
+ Movie Load (7.1ms) {:filter=>{:title=>"The Jerk"}}
25344
+ foo Load (0.0ms) bar
25345
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:09:50 -0800
25346
+ Movie Load (5.7ms) {:filter=>{:title=>"Foo"}}
25347
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:09:50 -0800
25348
+ Movie Load (6.6ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25349
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:09:50 -0800
25350
+ Movie Load (6.3ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25351
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:09:50 -0800
25352
+ Movie Load (7.8ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25353
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
25354
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
25355
+  (0.1ms) select sqlite_version(*)
25356
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
25357
+  (0.1ms) SELECT version FROM "schema_migrations"
25358
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
25359
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
25360
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:28 -0800
25361
+ Movie Load (17.4ms) {:filter=>{:votes__gt=>900000}}
25362
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:28 -0800
25363
+ Movie Load (6.6ms) {:filter=>{:title=>"The Jerk"}, :pluck=>["title"]}
25364
+ Started GET "/montage_rails_mock/api/v1/schemas/movies/" for 127.0.0.1 at 2015-11-17 13:10:28 -0800
25365
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:28 -0800
25366
+ Movie Load (6.2ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25367
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:28 -0800
25368
+ Movie Load (18.0ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25369
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:28 -0800
25370
+ Movie Load (7.6ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25371
+ foo Load (0.0ms) bar
25372
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:28 -0800
25373
+ Movie Load (6.7ms) {:filter=>{:title=>"The Jerk"}}
25374
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:28 -0800
25375
+ Movie Load (6.6ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25376
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:28 -0800
25377
+ Movie Load (6.5ms) {:filter=>{:votes__gt=>5}}
25378
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:28 -0800
25379
+ Movie Load (6.2ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25380
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:28 -0800
25381
+ Movie Load (5.8ms) {:filter=>{:title=>"Foo"}}
25382
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
25383
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
25384
+  (0.1ms) select sqlite_version(*)
25385
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
25386
+  (0.1ms) SELECT version FROM "schema_migrations"
25387
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
25388
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
25389
+ foo Load (0.1ms) bar
25390
+ foo Load (0.0ms) bar
25391
+ foo Load (0.1ms) bar
25392
+ foo Load [CACHE] (0.0ms) bar
25393
+ foo Load (0.0ms) bar
25394
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:42 -0800
25395
+ Movie Load (18.4ms) {:filter=>{:title=>"Foo"}}
25396
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:42 -0800
25397
+ Movie Load (6.3ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25398
+ Started GET "/montage_rails_mock/api/v1/schemas/movies/" for 127.0.0.1 at 2015-11-17 13:10:42 -0800
25399
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:42 -0800
25400
+ Movie Load (6.7ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25401
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:42 -0800
25402
+ Movie Load (6.0ms) {:filter=>{:title=>"The Jerk"}, :pluck=>["title"]}
25403
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:42 -0800
25404
+ Movie Load (6.3ms) {:filter=>{:votes__gt=>5}}
25405
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:42 -0800
25406
+ Movie Load (7.0ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25407
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:42 -0800
25408
+ Movie Load (6.5ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25409
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:42 -0800
25410
+ Movie Load (6.3ms) {:filter=>{:title=>"The Jerk"}}
25411
+ foo Load (0.0ms) bar
25412
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:42 -0800
25413
+ Movie Load (7.0ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25414
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:42 -0800
25415
+ Movie Load (5.9ms) {:filter=>{:votes__gt=>900000}}
25416
+  (0.1ms) begin transaction
25417
+ ---------------------------------------------------------------------------------------------------------------
25418
+ MontageRailsTest: test_: .configure should call the auth method and retrieve the token if it has not been set.
25419
+ ---------------------------------------------------------------------------------------------------------------
25420
+  (0.1ms) rollback transaction
25421
+  (0.2ms) begin transaction
25422
+ ---------------------------------------------------------------------------------------
25423
+ MontageRailsTest: test_: .configure should raise an exception if authentication fails.
25424
+ ---------------------------------------------------------------------------------------
25425
+  (0.0ms) rollback transaction
25426
+  (0.0ms) begin transaction
25427
+ -------------------------------------------------------------------------------------------------
25428
+ MontageRailsTest: test_: .configure should require a username and password if no token is given.
25429
+ -------------------------------------------------------------------------------------------------
25430
+  (0.0ms) rollback transaction
25431
+  (0.0ms) begin transaction
25432
+ --------------------------------------------------------------------------------------------
25433
+ MontageRailsTest: test_: .configure should accept server url even if use mock set to false.
25434
+ --------------------------------------------------------------------------------------------
25435
+  (0.0ms) rollback transaction
25436
+  (0.1ms) begin transaction
25437
+ --------------------------------------------------------------
25438
+ MontageRailsTest: test_: .configure should accept server url.
25439
+ --------------------------------------------------------------
25440
+  (0.0ms) rollback transaction
25441
+  (0.0ms) begin transaction
25442
+ ---------------------------------------------------------------------------------------
25443
+ MontageRailsTest: test_: .configure should have url_prefix if mock server set to true.
25444
+ ---------------------------------------------------------------------------------------
25445
+  (0.1ms) rollback transaction
25446
+  (0.0ms) begin transaction
25447
+ ------------------------------------------------------------------------------------------------
25448
+ MontageRailsTest: test_: .configure should have nil url_prefix if use mock server set to false.
25449
+ ------------------------------------------------------------------------------------------------
25450
+  (0.0ms) rollback transaction
25451
+  (0.0ms) begin transaction
25452
+ ----------------------------------------------------------------------------------------------------
25453
+ MontageRailsTest: test_: .configure should not require a username and password if a token is given.
25454
+ ----------------------------------------------------------------------------------------------------
25455
+  (0.1ms) rollback transaction
25456
+  (0.1ms) begin transaction
25457
+ -------------------------------------------------------------
25458
+ MontageRailsTest: test_: .configure should require a domain.
25459
+ -------------------------------------------------------------
25460
+  (0.0ms) rollback transaction
25461
+  (0.1ms) begin transaction
25462
+ -------------------------------------------------------------------------------------------
25463
+ MontageRailsTest: test_: .configure should accept a username, password, token, and domain.
25464
+ -------------------------------------------------------------------------------------------
25465
+  (0.0ms) rollback transaction
25466
+  (0.0ms) begin transaction
25467
+ --------------------------------------------------------------------------------------
25468
+ MontageRailsTest: test_: .configure should accept boolean controling mock server use.
25469
+ --------------------------------------------------------------------------------------
25470
+  (0.0ms) rollback transaction
25471
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25472
+ Movie Load (6.7ms) {:filter=>{}, :limit=>1}
25473
+ Started POST "/montage_rails_mock/api/v1/schemas/actors/query/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25474
+ Actor Load (11.0ms) {:filter=>{:name=>"Steve Martin"}, :limit=>1}
25475
+ Started GET "/montage_rails_mock/api/v1/schemas/actors/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25476
+ Started POST "/montage_rails_mock/api/v1/schemas/actors/query/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25477
+ Actor Load (6.1ms) {:filter=>{:name=>"Mark Hamill"}, :limit=>1}
25478
+ Started POST "/montage_rails_mock/api/v1/schemas/actors/query/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25479
+ Actor Load (6.6ms) {:filter=>{:movie_id=>"69cc93af-1f0e-43bc-ac9a-19117111978e", :name=>"Steve Martin"}, :limit=>1}
25480
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25481
+ Movie Create (6.1ms) {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
25482
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25483
+ Movie Update (5.6ms) 69cc93af-1f0e-43bc-ac9a-19117111978e: {:id=>"69cc93af-1f0e-43bc-ac9a-19117111978e", :studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>600, :year=>1983}
25484
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25485
+ Movie Create (5.4ms) {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
25486
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25487
+ Movie Update (6.2ms) 69cc93af-1f0e-43bc-ac9a-19117111978e: {:id=>"69cc93af-1f0e-43bc-ac9a-19117111978e", :studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>600, :year=>1983}
25488
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25489
+ Movie Create (6.7ms) {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
25490
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25491
+ Movie Update (6.0ms) 69cc93af-1f0e-43bc-ac9a-19117111978e: {:id=>"69cc93af-1f0e-43bc-ac9a-19117111978e", :studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>600, :year=>1983}
25492
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25493
+ Movie Load (6.2ms) {:filter=>{}, :limit=>1}
25494
+ Started POST "/montage_rails_mock/api/v1/schemas/actors/query/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25495
+ Actor Load (7.5ms) {:filter=>{:name=>"Steve Martin"}, :limit=>1}
25496
+ Started POST "/montage_rails_mock/api/v1/schemas/actors/query/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25497
+ Actor Load (6.5ms) {:filter=>{:name=>"Mark Hamill"}, :limit=>1}
25498
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25499
+ MontageRails::BaseTest::TestClass Load (6.6ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25500
+ Started GET "/montage_rails_mock/api/v1/schemas/movies/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25501
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25502
+ Movie Create (5.7ms) {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
25503
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25504
+ Movie Update (5.8ms) 69cc93af-1f0e-43bc-ac9a-19117111978e: {:id=>"69cc93af-1f0e-43bc-ac9a-19117111978e", :studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>600, :year=>1983}
25505
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25506
+ Movie Create (6.2ms) {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
25507
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25508
+ Movie Update (6.1ms) 69cc93af-1f0e-43bc-ac9a-19117111978e: {:id=>"69cc93af-1f0e-43bc-ac9a-19117111978e", :studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>600, :year=>1983}
25509
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25510
+ Movie Load (6.8ms) {:filter=>{}, :limit=>1}
25511
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25512
+ Movie Load (6.5ms) {:filter=>{}}
25513
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25514
+ Movie Load (5.9ms) #<MontageRails::Relation:0x007fcf460fdbc0>
25515
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25516
+ Movie Create (5.9ms) {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
25517
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25518
+ Movie Update (6.4ms) 69cc93af-1f0e-43bc-ac9a-19117111978e: {:id=>"69cc93af-1f0e-43bc-ac9a-19117111978e", :studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>600, :year=>1983}
25519
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25520
+ Movie Load (6.6ms) {:filter=>{}}
25521
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25522
+ Movie Create (6.2ms) {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
25523
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25524
+ Movie Update (5.5ms) 69cc93af-1f0e-43bc-ac9a-19117111978e: {:id=>"69cc93af-1f0e-43bc-ac9a-19117111978e", :studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>600, :year=>1983}
25525
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25526
+ Movie Load (8.3ms) {:filter=>{}, :limit=>1}
25527
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25528
+ Movie Load (14.0ms) {:filter=>{}, :limit=>1}
25529
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25530
+ Movie Create (7.1ms) {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
25531
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25532
+ Movie Update (7.2ms) 69cc93af-1f0e-43bc-ac9a-19117111978e: {:id=>"69cc93af-1f0e-43bc-ac9a-19117111978e", :studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>600, :year=>1983}
25533
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25534
+ Movie Create (5.9ms) {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
25535
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25536
+ Movie Update (6.2ms) 69cc93af-1f0e-43bc-ac9a-19117111978e: {:id=>"69cc93af-1f0e-43bc-ac9a-19117111978e", :studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>600, :year=>1983}
25537
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25538
+ Movie Create (5.8ms) {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
25539
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25540
+ Movie Update (7.1ms) 69cc93af-1f0e-43bc-ac9a-19117111978e: {:id=>"69cc93af-1f0e-43bc-ac9a-19117111978e", :studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>600, :year=>1983}
25541
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25542
+ Movie Update (7.4ms) 69cc93af-1f0e-43bc-ac9a-19117111978e: {:id=>"69cc93af-1f0e-43bc-ac9a-19117111978e", :studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
25543
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25544
+ Movie Create (5.6ms) {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
25545
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25546
+ Movie Update (6.4ms) 69cc93af-1f0e-43bc-ac9a-19117111978e: {:id=>"69cc93af-1f0e-43bc-ac9a-19117111978e", :studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>600, :year=>1983}
25547
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25548
+ Movie Update (5.9ms) 69cc93af-1f0e-43bc-ac9a-19117111978e: {:id=>"69cc93af-1f0e-43bc-ac9a-19117111978e", :studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
25549
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25550
+ Movie Load (7.2ms) {:filter=>{}, :limit=>1}
25551
+ Started POST "/montage_rails_mock/api/v1/schemas/actors/query/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25552
+ Actor Load (6.8ms) {:filter=>{:name=>"Steve Martin"}, :limit=>1}
25553
+ Started POST "/montage_rails_mock/api/v1/schemas/actors/query/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25554
+ Actor Load (6.1ms) {:filter=>{:name=>"Mark Hamill"}, :limit=>1}
25555
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25556
+ MontageRails::BaseTest::TestClass Load (6.8ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25557
+ Started POST "/montage_rails_mock/api/v1/schemas/actors/query/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25558
+ Actor Load (6.9ms) {:filter=>{:movie_id=>"69cc93af-1f0e-43bc-ac9a-19117111978e"}, :limit=>1}
25559
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25560
+ Movie Create (6.0ms) {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
25561
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25562
+ Movie Update (6.4ms) 69cc93af-1f0e-43bc-ac9a-19117111978e: {:id=>"69cc93af-1f0e-43bc-ac9a-19117111978e", :studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>600, :year=>1983}
25563
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25564
+ Movie Load (6.5ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25565
+ Started GET "/montage_rails_mock/api/v1/schemas/studios/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25566
+ Started POST "/montage_rails_mock/api/v1/schemas/studios/query/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25567
+ Studio Load (8.6ms) {:filter=>{:name=>"Universal"}, :limit=>1}
25568
+ Started GET "/montage_rails_mock/api/v1/schemas/studios/19442e09-5c2d-4e5d-8f34-675570e81414/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25569
+ Studio Load (7.8ms) 19442e09-5c2d-4e5d-8f34-675570e81414
25570
+ Started GET "/montage_rails_mock/api/v1/schemas/studios/19442e09-5c2d-4e5d-8f34-675570e81414/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25571
+ Studio Load (7.0ms) 19442e09-5c2d-4e5d-8f34-675570e81414
25572
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25573
+ Movie Create (6.1ms) {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
25574
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25575
+ Movie Update (6.4ms) 69cc93af-1f0e-43bc-ac9a-19117111978e: {:id=>"69cc93af-1f0e-43bc-ac9a-19117111978e", :studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>600, :year=>1983}
25576
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25577
+ Movie Create (5.9ms) {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
25578
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25579
+ Movie Update (7.4ms) 69cc93af-1f0e-43bc-ac9a-19117111978e: {:id=>"69cc93af-1f0e-43bc-ac9a-19117111978e", :studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>600, :year=>1983}
25580
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25581
+ Movie Load (7.3ms) {:filter=>{}, :limit=>1}
25582
+ Started POST "/montage_rails_mock/api/v1/schemas/actors/query/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25583
+ Actor Load (6.8ms) {:filter=>{:name=>"Steve Martin"}, :limit=>1}
25584
+ Started POST "/montage_rails_mock/api/v1/schemas/actors/query/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25585
+ Actor Load (8.6ms) {:filter=>{:name=>"Mark Hamill"}, :limit=>1}
25586
+ Started POST "/montage_rails_mock/api/v1/schemas/actors/query/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25587
+ Actor Load (7.5ms) {:filter=>{:movie_id=>"69cc93af-1f0e-43bc-ac9a-19117111978e"}, :limit=>1}
25588
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25589
+ Movie Create (6.7ms) {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
25590
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25591
+ Movie Update (7.2ms) 69cc93af-1f0e-43bc-ac9a-19117111978e: {:id=>"69cc93af-1f0e-43bc-ac9a-19117111978e", :studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>600, :year=>1983}
25592
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25593
+ Movie Update (7.2ms) 69cc93af-1f0e-43bc-ac9a-19117111978e: {:id=>"69cc93af-1f0e-43bc-ac9a-19117111978e", :studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>900, :year=>1983}
25594
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25595
+ Movie Create (6.3ms) {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
25596
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25597
+ Movie Update (6.4ms) 69cc93af-1f0e-43bc-ac9a-19117111978e: {:id=>"69cc93af-1f0e-43bc-ac9a-19117111978e", :studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>600, :year=>1983}
25598
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25599
+ Movie Create (6.9ms) {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
25600
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25601
+ Movie Update (7.0ms) 69cc93af-1f0e-43bc-ac9a-19117111978e: {:id=>"69cc93af-1f0e-43bc-ac9a-19117111978e", :studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>600, :year=>1983}
25602
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:10:43 -0800
25603
+ Movie Load (6.4ms) #<MontageRails::Relation:0x007fcf489b0310>
25604
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
25605
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
25606
+  (0.1ms) select sqlite_version(*)
25607
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
25608
+  (0.1ms) SELECT version FROM "schema_migrations"
25609
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
25610
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
25611
+ foo Load (0.0ms) bar
25612
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:12:12 -0800
25613
+ Movie Load (18.6ms) {:filter=>{:title=>"The Jerk"}, :pluck=>["title"]}
25614
+ Started GET "/montage_rails_mock/api/v1/schemas/movies/" for 127.0.0.1 at 2015-11-17 13:12:12 -0800
25615
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:12:12 -0800
25616
+ Movie Load (6.5ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25617
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:12:12 -0800
25618
+ Movie Load (6.5ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25619
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:12:12 -0800
25620
+ Movie Load (7.6ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25621
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:12:12 -0800
25622
+ Movie Load (6.0ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25623
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:12:12 -0800
25624
+ Movie Load (8.9ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25625
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:12:12 -0800
25626
+ Movie Load (6.4ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25627
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:12:12 -0800
25628
+ Movie Load (6.7ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25629
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:12:12 -0800
25630
+ Movie Load (7.3ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25631
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:12:12 -0800
25632
+ Movie Load (6.0ms) {:filter=>{:title=>"Foo"}}
25633
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:12:12 -0800
25634
+ Movie Load (6.5ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25635
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:12:12 -0800
25636
+ Movie Load (6.5ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
25637
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:12:12 -0800
25638
+ Movie Load (6.2ms) {:filter=>{:title=>"The Jerk"}}
25639
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:12:12 -0800
25640
+ Movie Load (6.2ms) {:filter=>{:votes__gt=>5}}
25641
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:12:12 -0800
25642
+ Movie Load (6.2ms) {:filter=>{:votes__gt=>900000}}
25643
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:14:07 -0800
25644
+ Movie Load (25.1ms) {:filter=>{}}
25645
+ Started GET "/montage_rails_mock/api/v1/schemas/movies/" for 127.0.0.1 at 2015-11-17 13:14:07 -0800
25646
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:14:19 -0800
25647
+ Movie Load (9.0ms) {:filter=>{:rank=>4}}
25648
+ Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-11-17 13:14:25 -0800
25649
+ Movie Load (8.8ms) {:filter=>{:rank=>4, :rating=>2}}
@@ -99,6 +99,46 @@ class MontageRails::RelationTest < Minitest::Test
99
99
  end
100
100
  end
101
101
 
102
+ context "#loadable?" do
103
+ setup do
104
+ @relation = MontageRails::Relation.new(Movie)
105
+ end
106
+
107
+ should "be loadable in the test enviroment" do
108
+ Rails.stubs(:env).returns("test")
109
+ assert @relation.loadable?
110
+ end
111
+
112
+ should "be loadable in the development environment" do
113
+ Rails.stubs(:env).returns("development")
114
+ assert @relation.loadable?
115
+ end
116
+
117
+ should "be loadable in the production env when not loaded" do
118
+ Rails.stubs(:env).returns("production")
119
+ @relation.stubs(:loaded?).returns(false)
120
+ assert @relation.loadable?
121
+ end
122
+
123
+ should "not be loadable in the production env when loaded" do
124
+ Rails.stubs(:env).returns("production")
125
+ @relation.stubs(:loaded?).returns(true)
126
+ refute @relation.loadable?
127
+ end
128
+
129
+ should "be loadable in the test env when loaded" do
130
+ Rails.stubs(:env).returns("test")
131
+ @relation.stubs(:loaded?).returns(true)
132
+ assert @relation.loadable?
133
+ end
134
+
135
+ should "be loadable in the dev env when loaded" do
136
+ Rails.stubs(:env).returns("development")
137
+ @relation.stubs(:loaded?).returns(true)
138
+ assert @relation.loadable?
139
+ end
140
+ end
141
+
102
142
  context "#to_a" do
103
143
  should "return the record set without a query if the records have already been fetched" do
104
144
  @relation = MontageRails::Relation.new(Movie)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: montage_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.7'
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - dphaener
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-10 00:00:00.000000000 Z
11
+ date: 2015-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails