montage_rails 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b61597f1dd647dc7afd115b1592198179508f859
|
4
|
+
data.tar.gz: d91786ce1edf93b5596f561b9384991d16bce5c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44796978e4f5ad357c7fde290e68594ef4f3e6b99b90f26bd662fe46e664df29265a10469e31e1e5df43e090a259deb03c544574251c7a89b445ae6a383ab3ad
|
7
|
+
data.tar.gz: 3c65ff37fe893acf2bce983c5714caee360813d163d954bacd60b6277c2ed2c412e5a64b09351b5bd36e8511a10ac1748052c130ff9482b87867aeb4bd4c3866
|
@@ -39,6 +39,7 @@ module MontageRails
|
|
39
39
|
when "contains" # value in field
|
40
40
|
when "icontains" # case insensitive version of contains
|
41
41
|
when "in" # field in value
|
42
|
+
@data = @data.select { |item| value.include?(item[parameter]) }
|
42
43
|
when "notin" # field not in value
|
43
44
|
when "gt" # field > value
|
44
45
|
@data = @data.select{ |item| item[parameter] > value}
|
data/test/dummy/log/test.log
CHANGED
@@ -23083,3 +23083,252 @@ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at
|
|
23083
23083
|
[1m[35mMovie Create (6.5ms)[0m {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
|
23084
23084
|
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 10:36:22 -0700
|
23085
23085
|
[1m[36mMovie Update (6.9ms)[0m [1m69cc93af-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}[0m
|
23086
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
23087
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
23088
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
23089
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
23090
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
23091
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
23092
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
23093
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
23094
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
23095
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
23096
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
23097
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
23098
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
23099
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
23100
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
23101
|
+
[1m[36m (2.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
23102
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
23103
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
23104
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
23105
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
23106
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
23107
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
23108
|
+
[1m[36m (1.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
23109
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
23110
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
23111
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
23112
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
23113
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
23114
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
23115
|
+
[1m[36m (1.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
23116
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
23117
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
23118
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
23119
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
23120
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
23121
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
23122
|
+
[1m[36m (1.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
23123
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
23124
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
23125
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
23126
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
23127
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
23128
|
+
Started GET "/montage_rails_mock/api/v1/schemas/movies/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23129
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23130
|
+
[1m[36mMovie Create (8.0ms)[0m [1m{:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}[0m
|
23131
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23132
|
+
[1m[35mMovie Update (6.9ms)[0m 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}
|
23133
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23134
|
+
[1m[36mMovie Load (6.7ms)[0m [1m{:filter=>{}, :limit=>1}[0m
|
23135
|
+
Started POST "/montage_rails_mock/api/v1/schemas/actors/query/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23136
|
+
[1m[35mActor Load (7.3ms)[0m {:filter=>{:name=>"Steve Martin"}, :limit=>1}
|
23137
|
+
Started GET "/montage_rails_mock/api/v1/schemas/actors/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23138
|
+
Started POST "/montage_rails_mock/api/v1/schemas/actors/query/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23139
|
+
[1m[36mActor Load (6.7ms)[0m [1m{:filter=>{:name=>"Mark Hamill"}, :limit=>1}[0m
|
23140
|
+
Started POST "/montage_rails_mock/api/v1/schemas/actors/query/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23141
|
+
[1m[35mActor Load (6.7ms)[0m {:filter=>{:movie_id=>"69cc93af-1f0e-43bc-ac9a-19117111978e", :name=>"Steve Martin"}, :limit=>1}
|
23142
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23143
|
+
[1m[36mMovie Create (5.2ms)[0m [1m{:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}[0m
|
23144
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23145
|
+
[1m[35mMovie Update (5.5ms)[0m 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}
|
23146
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23147
|
+
[1m[36mMovie Load (6.5ms)[0m [1m{:filter=>{}, :limit=>1}[0m
|
23148
|
+
Started POST "/montage_rails_mock/api/v1/schemas/actors/query/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23149
|
+
[1m[35mActor Load (7.1ms)[0m {:filter=>{:name=>"Steve Martin"}, :limit=>1}
|
23150
|
+
Started POST "/montage_rails_mock/api/v1/schemas/actors/query/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23151
|
+
[1m[36mActor Load (6.0ms)[0m [1m{:filter=>{:name=>"Mark Hamill"}, :limit=>1}[0m
|
23152
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23153
|
+
[1m[35mMontageRails::BaseTest::TestClass Load (6.1ms)[0m {:filter=>{:title=>"The Jerk"}, :limit=>1}
|
23154
|
+
Started GET "/montage_rails_mock/api/v1/schemas/movies/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23155
|
+
Started POST "/montage_rails_mock/api/v1/schemas/actors/query/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23156
|
+
[1m[36mActor Load (7.1ms)[0m [1m{:filter=>{:movie_id=>"69cc93af-1f0e-43bc-ac9a-19117111978e"}, :limit=>1}[0m
|
23157
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23158
|
+
[1m[35mMovie Load (6.3ms)[0m {:filter=>{}, :limit=>1}
|
23159
|
+
Started POST "/montage_rails_mock/api/v1/schemas/actors/query/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23160
|
+
[1m[36mActor Load (6.7ms)[0m [1m{:filter=>{:name=>"Steve Martin"}, :limit=>1}[0m
|
23161
|
+
Started POST "/montage_rails_mock/api/v1/schemas/actors/query/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23162
|
+
[1m[35mActor Load (6.7ms)[0m {:filter=>{:name=>"Mark Hamill"}, :limit=>1}
|
23163
|
+
Started POST "/montage_rails_mock/api/v1/schemas/actors/query/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23164
|
+
[1m[36mActor Load (7.2ms)[0m [1m{:filter=>{:movie_id=>"69cc93af-1f0e-43bc-ac9a-19117111978e"}, :limit=>1}[0m
|
23165
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23166
|
+
[1m[35mMovie Create (5.3ms)[0m {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
|
23167
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23168
|
+
[1m[36mMovie Update (6.0ms)[0m [1m69cc93af-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}[0m
|
23169
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23170
|
+
[1m[35mMovie Create (6.6ms)[0m {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
|
23171
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23172
|
+
[1m[36mMovie Update (6.3ms)[0m [1m69cc93af-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}[0m
|
23173
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23174
|
+
[1m[35mMovie Create (5.7ms)[0m {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
|
23175
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23176
|
+
[1m[36mMovie Update (6.2ms)[0m [1m69cc93af-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}[0m
|
23177
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23178
|
+
[1m[35mMovie Create (5.5ms)[0m {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
|
23179
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23180
|
+
[1m[36mMovie Update (5.4ms)[0m [1m69cc93af-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}[0m
|
23181
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23182
|
+
[1m[35mMovie Create (7.1ms)[0m {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
|
23183
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23184
|
+
[1m[36mMovie Update (6.2ms)[0m [1m69cc93af-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}[0m
|
23185
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23186
|
+
[1m[35mMovie Create (5.9ms)[0m {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
|
23187
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23188
|
+
[1m[36mMovie Update (5.7ms)[0m [1m69cc93af-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}[0m
|
23189
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23190
|
+
[1m[35mMovie Load (7.3ms)[0m {:filter=>{}}
|
23191
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23192
|
+
[1m[36mMovie Load (7.0ms)[0m [1m{:filter=>{}, :limit=>1}[0m
|
23193
|
+
Started POST "/montage_rails_mock/api/v1/schemas/actors/query/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23194
|
+
[1m[35mActor Load (5.9ms)[0m {:filter=>{:name=>"Steve Martin"}, :limit=>1}
|
23195
|
+
Started POST "/montage_rails_mock/api/v1/schemas/actors/query/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23196
|
+
[1m[36mActor Load (6.8ms)[0m [1m{:filter=>{:name=>"Mark Hamill"}, :limit=>1}[0m
|
23197
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23198
|
+
[1m[35mMontageRails::BaseTest::TestClass Load (7.0ms)[0m {:filter=>{:title=>"The Jerk"}, :limit=>1}
|
23199
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23200
|
+
[1m[36mMovie Create (5.8ms)[0m [1m{:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}[0m
|
23201
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23202
|
+
[1m[35mMovie Update (6.0ms)[0m 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}
|
23203
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23204
|
+
[1m[36mMovie Update (6.2ms)[0m [1m69cc93af-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}[0m
|
23205
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23206
|
+
[1m[35mMovie Create (6.9ms)[0m {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
|
23207
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23208
|
+
[1m[36mMovie Update (7.4ms)[0m [1m69cc93af-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}[0m
|
23209
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23210
|
+
[1m[35mMovie Update (6.2ms)[0m 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}
|
23211
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23212
|
+
[1m[36mMovie Create (5.8ms)[0m [1m{:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}[0m
|
23213
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23214
|
+
[1m[35mMovie Update (6.4ms)[0m 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}
|
23215
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23216
|
+
[1m[36mMovie Create (6.3ms)[0m [1m{:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}[0m
|
23217
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23218
|
+
[1m[35mMovie Update (5.7ms)[0m 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}
|
23219
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:01 -0700
|
23220
|
+
[1m[36mMovie Create (5.7ms)[0m [1m{:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}[0m
|
23221
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:02 -0700
|
23222
|
+
[1m[35mMovie Update (5.8ms)[0m 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}
|
23223
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-08-17 12:27:02 -0700
|
23224
|
+
[1m[36mMovie Load (6.9ms)[0m [1m#<MontageRails::Relation:0x007ffcadbd0b08>[0m
|
23225
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-08-17 12:27:02 -0700
|
23226
|
+
[1m[35mMovie Load (6.0ms)[0m #<MontageRails::Relation:0x007ffcabace4a0>
|
23227
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:02 -0700
|
23228
|
+
[1m[36mMovie Create (6.0ms)[0m [1m{:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}[0m
|
23229
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:02 -0700
|
23230
|
+
[1m[35mMovie Update (6.2ms)[0m 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}
|
23231
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:02 -0700
|
23232
|
+
[1m[36mMovie Update (6.4ms)[0m [1m69cc93af-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}[0m
|
23233
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:02 -0700
|
23234
|
+
[1m[35mMovie Create (5.4ms)[0m {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
|
23235
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:02 -0700
|
23236
|
+
[1m[36mMovie Update (13.3ms)[0m [1m69cc93af-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}[0m
|
23237
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-08-17 12:27:02 -0700
|
23238
|
+
[1m[35mMovie Load (7.9ms)[0m {:filter=>{:title=>"The Jerk"}, :limit=>1}
|
23239
|
+
Started GET "/montage_rails_mock/api/v1/schemas/studios/" for 127.0.0.1 at 2015-08-17 12:27:02 -0700
|
23240
|
+
Started POST "/montage_rails_mock/api/v1/schemas/studios/query/" for 127.0.0.1 at 2015-08-17 12:27:02 -0700
|
23241
|
+
[1m[36mStudio Load (6.8ms)[0m [1m{:filter=>{:name=>"Universal"}, :limit=>1}[0m
|
23242
|
+
Started GET "/montage_rails_mock/api/v1/schemas/studios/19442e09-5c2d-4e5d-8f34-675570e81414/" for 127.0.0.1 at 2015-08-17 12:27:02 -0700
|
23243
|
+
[1m[35mStudio Load (8.0ms)[0m 19442e09-5c2d-4e5d-8f34-675570e81414
|
23244
|
+
Started GET "/montage_rails_mock/api/v1/schemas/studios/19442e09-5c2d-4e5d-8f34-675570e81414/" for 127.0.0.1 at 2015-08-17 12:27:02 -0700
|
23245
|
+
[1m[36mStudio Load (9.3ms)[0m [1m19442e09-5c2d-4e5d-8f34-675570e81414[0m
|
23246
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:02 -0700
|
23247
|
+
[1m[35mMovie Create (6.7ms)[0m {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
|
23248
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:02 -0700
|
23249
|
+
[1m[36mMovie Update (6.9ms)[0m [1m69cc93af-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}[0m
|
23250
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:02 -0700
|
23251
|
+
[1m[35mMovie Create (6.6ms)[0m {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
|
23252
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at 2015-08-17 12:27:02 -0700
|
23253
|
+
[1m[36mMovie Update (6.6ms)[0m [1m69cc93af-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}[0m
|
23254
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
23255
|
+
---------------------------------------------------------------------------------------
|
23256
|
+
MontageRailsTest: test_: .configure should have url_prefix if mock server set to true.
|
23257
|
+
---------------------------------------------------------------------------------------
|
23258
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
23259
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
23260
|
+
------------------------------------------------------------------------------------------------
|
23261
|
+
MontageRailsTest: test_: .configure should have nil url_prefix if use mock server set to false.
|
23262
|
+
------------------------------------------------------------------------------------------------
|
23263
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
23264
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
23265
|
+
----------------------------------------------------------------------------------------------------
|
23266
|
+
MontageRailsTest: test_: .configure should not require a username and password if a token is given.
|
23267
|
+
----------------------------------------------------------------------------------------------------
|
23268
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
23269
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
23270
|
+
-------------------------------------------------------------
|
23271
|
+
MontageRailsTest: test_: .configure should require a domain.
|
23272
|
+
-------------------------------------------------------------
|
23273
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
23274
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
23275
|
+
---------------------------------------------------------------------------------------
|
23276
|
+
MontageRailsTest: test_: .configure should raise an exception if authentication fails.
|
23277
|
+
---------------------------------------------------------------------------------------
|
23278
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
23279
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
23280
|
+
-------------------------------------------------------------------------------------------
|
23281
|
+
MontageRailsTest: test_: .configure should accept a username, password, token, and domain.
|
23282
|
+
-------------------------------------------------------------------------------------------
|
23283
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
23284
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
23285
|
+
-------------------------------------------------------------------------------------------------
|
23286
|
+
MontageRailsTest: test_: .configure should require a username and password if no token is given.
|
23287
|
+
-------------------------------------------------------------------------------------------------
|
23288
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
23289
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
23290
|
+
--------------------------------------------------------------
|
23291
|
+
MontageRailsTest: test_: .configure should accept server url.
|
23292
|
+
--------------------------------------------------------------
|
23293
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
23294
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
23295
|
+
--------------------------------------------------------------------------------------------
|
23296
|
+
MontageRailsTest: test_: .configure should accept server url even if use mock set to false.
|
23297
|
+
--------------------------------------------------------------------------------------------
|
23298
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
23299
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
23300
|
+
---------------------------------------------------------------------------------------------------------------
|
23301
|
+
MontageRailsTest: test_: .configure should call the auth method and retrieve the token if it has not been set.
|
23302
|
+
---------------------------------------------------------------------------------------------------------------
|
23303
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
23304
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
23305
|
+
--------------------------------------------------------------------------------------
|
23306
|
+
MontageRailsTest: test_: .configure should accept boolean controling mock server use.
|
23307
|
+
--------------------------------------------------------------------------------------
|
23308
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
23309
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-08-17 12:27:02 -0700
|
23310
|
+
[1m[35mMovie Load (7.3ms)[0m {:filter=>{:votes__gt=>5}}
|
23311
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-08-17 12:27:02 -0700
|
23312
|
+
[1m[36mMovie Load (7.6ms)[0m [1m{:filter=>{:title=>"The Jerk"}}[0m
|
23313
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-08-17 12:27:02 -0700
|
23314
|
+
[1m[35mMovie Load (6.9ms)[0m {:filter=>{:votes__gt=>900000}}
|
23315
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-08-17 12:27:02 -0700
|
23316
|
+
[1m[36mMovie Load (7.2ms)[0m [1m{:filter=>{:title=>"The Jerk"}, :limit=>1}[0m
|
23317
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-08-17 12:27:02 -0700
|
23318
|
+
[1m[35mMovie Load (8.2ms)[0m {:filter=>{:title=>"The Jerk"}, :limit=>1}
|
23319
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-08-17 12:27:02 -0700
|
23320
|
+
[1m[36mMovie Load (7.3ms)[0m [1m{:filter=>{:title=>"The Jerk"}, :limit=>1}[0m
|
23321
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-08-17 12:27:02 -0700
|
23322
|
+
[1m[35mMovie Load (6.5ms)[0m {:filter=>{:title=>"The Jerk"}, :pluck=>["title"]}
|
23323
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-08-17 12:27:02 -0700
|
23324
|
+
[1m[36mMovie Load (8.0ms)[0m [1m{:filter=>{:title=>"The Jerk"}, :limit=>1}[0m
|
23325
|
+
[1m[35mfoo Load (0.0ms)[0m bar
|
23326
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-08-17 12:27:02 -0700
|
23327
|
+
[1m[36mMovie Load (8.2ms)[0m [1m{:filter=>{:title=>"Foo"}}[0m
|
23328
|
+
Started POST "/montage_rails_mock/api/v1/schemas/movies/query/" for 127.0.0.1 at 2015-08-17 12:27:02 -0700
|
23329
|
+
[1m[35mMovie Load (8.1ms)[0m {:filter=>{:title=>"The Jerk"}, :limit=>1}
|
23330
|
+
[1m[36mfoo Load (0.1ms)[0m [1mbar[0m
|
23331
|
+
[1m[35mfoo Load [CACHE] (0.0ms)[0m bar
|
23332
|
+
[1m[36mfoo Load (0.0ms)[0m [1mbar[0m
|
23333
|
+
[1m[35mfoo Load (0.0ms)[0m bar
|
23334
|
+
[1m[36mfoo Load (0.2ms)[0m [1mbar[0m
|
@@ -63,30 +63,41 @@ class MontageRails::ApplicationResourceTest < Minitest::Test
|
|
63
63
|
@item3 = {"name"=>'foobar', 'votes'=>10, 'id'=>3}
|
64
64
|
@resource.data = [ @item1, @item2, @item3]
|
65
65
|
end
|
66
|
+
|
66
67
|
should 'handle equal to relations' do
|
67
68
|
@resource.params={'filter'=>{'name'=>'bar'}}
|
68
69
|
@resource.execute_filters
|
69
70
|
assert_equal [@item2], @resource.data
|
70
71
|
end
|
72
|
+
|
71
73
|
should 'handle equal lt relations' do
|
72
74
|
@resource.params={'filter'=>{'votes__lt'=>5}}
|
73
75
|
@resource.execute_filters
|
74
76
|
assert_equal [@item1], @resource.data
|
75
77
|
end
|
78
|
+
|
76
79
|
should 'handle equal lte relations' do
|
77
80
|
@resource.params={'filter'=>{'votes__lte'=>5}}
|
78
81
|
@resource.execute_filters
|
79
82
|
assert_equal [@item1,@item2], @resource.data
|
80
83
|
end
|
84
|
+
|
81
85
|
should 'handle equal gt relations' do
|
82
86
|
@resource.params={'filter'=>{'votes__gt'=>5}}
|
83
87
|
@resource.execute_filters
|
84
88
|
assert_equal [@item3], @resource.data
|
85
89
|
end
|
90
|
+
|
86
91
|
should 'handle equal gte relations' do
|
87
92
|
@resource.params={'filter'=>{'votes__gte'=>5}}
|
88
93
|
@resource.execute_filters
|
89
94
|
assert_equal [@item2,@item3], @resource.data
|
90
95
|
end
|
96
|
+
|
97
|
+
should "handle in relations" do
|
98
|
+
@resource.params={'filter' => { "id__in" => [1, 2] } }
|
99
|
+
@resource.execute_filters
|
100
|
+
assert_equal [@item1, @item2], @resource.data
|
101
|
+
end
|
91
102
|
end
|
92
103
|
end
|