montage_rails 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4fd55a37c2081528a0f0025924a866170e248321
4
- data.tar.gz: 764c80fed2bdb9d83cde3d11e1d29136daec425c
3
+ metadata.gz: b61597f1dd647dc7afd115b1592198179508f859
4
+ data.tar.gz: d91786ce1edf93b5596f561b9384991d16bce5c5
5
5
  SHA512:
6
- metadata.gz: 8de0e9db9d5f8037ff70a7670b5d0b058f12389d90c3f29d5b2a27a1800f07e25e121684fe780f3c5f40f89913228dac033b8ee15cc4da3fc2b60262f607f553
7
- data.tar.gz: 7eed78cf41da79d0e1349a3a505e3ce6341259207101a340009a127d0a3095b5a77d7bf3ca268fd06c87c76cb69c551814b72028b153d4d50fe379de6fbefc91
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}
@@ -1,3 +1,3 @@
1
1
  module MontageRails
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
@@ -23083,3 +23083,252 @@ Started POST "/montage_rails_mock/api/v1/schemas/movies/save/" for 127.0.0.1 at
23083
23083
  Movie Create (6.5ms) {: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
  Movie Update (6.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=>600, :year=>1983}
23086
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
23087
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
23088
+  (0.0ms) select sqlite_version(*)
23089
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
23090
+  (0.2ms) SELECT version FROM "schema_migrations"
23091
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
23092
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
23093
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
23094
+  (1.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
23095
+  (0.1ms) select sqlite_version(*)
23096
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
23097
+  (0.1ms) SELECT version FROM "schema_migrations"
23098
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
23099
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
23100
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
23101
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
23102
+  (0.1ms) select sqlite_version(*)
23103
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
23104
+  (0.1ms) SELECT version FROM "schema_migrations"
23105
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
23106
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
23107
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
23108
+  (1.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
23109
+  (0.1ms) select sqlite_version(*)
23110
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
23111
+  (0.1ms) SELECT version FROM "schema_migrations"
23112
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
23113
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
23114
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
23115
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
23116
+  (0.1ms) select sqlite_version(*)
23117
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
23118
+  (0.1ms) SELECT version FROM "schema_migrations"
23119
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
23120
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
23121
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
23122
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
23123
+  (0.1ms) select sqlite_version(*)
23124
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
23125
+  (0.1ms) SELECT version FROM "schema_migrations"
23126
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
23127
+ ActiveRecord::SchemaMigration Load (0.1ms) 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
+ Movie Create (8.0ms) {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
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
+ Movie Update (6.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=>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
+ Movie Load (6.7ms) {:filter=>{}, :limit=>1}
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
+ Actor Load (7.3ms) {: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
+ Actor Load (6.7ms) {:filter=>{:name=>"Mark Hamill"}, :limit=>1}
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
+ Actor Load (6.7ms) {: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
+ Movie Create (5.2ms) {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
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
+ 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}
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
+ Movie Load (6.5ms) {:filter=>{}, :limit=>1}
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
+ Actor Load (7.1ms) {: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
+ Actor Load (6.0ms) {:filter=>{:name=>"Mark Hamill"}, :limit=>1}
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
+ MontageRails::BaseTest::TestClass Load (6.1ms) {: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
+ Actor Load (7.1ms) {:filter=>{:movie_id=>"69cc93af-1f0e-43bc-ac9a-19117111978e"}, :limit=>1}
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
+ Movie Load (6.3ms) {: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
+ Actor Load (6.7ms) {:filter=>{:name=>"Steve Martin"}, :limit=>1}
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
+ Actor Load (6.7ms) {: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
+ Actor Load (7.2ms) {:filter=>{:movie_id=>"69cc93af-1f0e-43bc-ac9a-19117111978e"}, :limit=>1}
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
+ Movie Create (5.3ms) {: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
+ 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}
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
+ Movie Create (6.6ms) {: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
+ Movie Update (6.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}
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
+ Movie Create (5.7ms) {: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
+ 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}
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
+ Movie Create (5.5ms) {: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
+ Movie Update (5.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}
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
+ Movie Create (7.1ms) {: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
+ 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}
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
+ Movie Create (5.9ms) {: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
+ Movie Update (5.7ms) 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}
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
+ Movie Load (7.3ms) {: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
+ Movie Load (7.0ms) {:filter=>{}, :limit=>1}
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
+ Actor Load (5.9ms) {: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
+ Actor Load (6.8ms) {:filter=>{:name=>"Mark Hamill"}, :limit=>1}
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
+ MontageRails::BaseTest::TestClass Load (7.0ms) {: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
+ Movie Create (5.8ms) {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
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
+ 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}
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
+ 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=>500, :year=>1983}
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
+ Movie Create (6.9ms) {: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
+ 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}
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
+ 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=>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
+ Movie Create (5.8ms) {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
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
+ 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}
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
+ Movie Create (6.3ms) {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
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
+ Movie Update (5.7ms) 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
+ Movie Create (5.7ms) {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
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
+ 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}
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
+ Movie Load (6.9ms) #<MontageRails::Relation:0x007ffcadbd0b08>
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
+ Movie Load (6.0ms) #<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
+ Movie Create (6.0ms) {:studio_id=>"19442e09-5c2d-4e5d-8f34-675570e81414", :rank=>4, :rating=>2.0, :title=>"The Jerk", :votes=>500, :year=>1983}
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
+ 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}
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
+ 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=>900, :year=>1983}
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
+ Movie Create (5.4ms) {: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
+ Movie Update (13.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}
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
+ Movie Load (7.9ms) {: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
+ Studio Load (6.8ms) {:filter=>{:name=>"Universal"}, :limit=>1}
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
+ Studio Load (8.0ms) 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
+ Studio Load (9.3ms) 19442e09-5c2d-4e5d-8f34-675570e81414
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
+ Movie Create (6.7ms) {: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
+ Movie Update (6.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=>600, :year=>1983}
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
+ Movie Create (6.6ms) {: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
+ Movie Update (6.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}
23254
+  (0.1ms) begin transaction
23255
+ ---------------------------------------------------------------------------------------
23256
+ MontageRailsTest: test_: .configure should have url_prefix if mock server set to true.
23257
+ ---------------------------------------------------------------------------------------
23258
+  (0.1ms) rollback transaction
23259
+  (0.2ms) begin transaction
23260
+ ------------------------------------------------------------------------------------------------
23261
+ MontageRailsTest: test_: .configure should have nil url_prefix if use mock server set to false.
23262
+ ------------------------------------------------------------------------------------------------
23263
+  (0.1ms) rollback transaction
23264
+  (0.1ms) begin transaction
23265
+ ----------------------------------------------------------------------------------------------------
23266
+ MontageRailsTest: test_: .configure should not require a username and password if a token is given.
23267
+ ----------------------------------------------------------------------------------------------------
23268
+  (0.1ms) rollback transaction
23269
+  (0.1ms) begin transaction
23270
+ -------------------------------------------------------------
23271
+ MontageRailsTest: test_: .configure should require a domain.
23272
+ -------------------------------------------------------------
23273
+  (0.1ms) rollback transaction
23274
+  (0.1ms) begin transaction
23275
+ ---------------------------------------------------------------------------------------
23276
+ MontageRailsTest: test_: .configure should raise an exception if authentication fails.
23277
+ ---------------------------------------------------------------------------------------
23278
+  (0.0ms) rollback transaction
23279
+  (0.0ms) begin transaction
23280
+ -------------------------------------------------------------------------------------------
23281
+ MontageRailsTest: test_: .configure should accept a username, password, token, and domain.
23282
+ -------------------------------------------------------------------------------------------
23283
+  (0.1ms) rollback transaction
23284
+  (0.0ms) begin transaction
23285
+ -------------------------------------------------------------------------------------------------
23286
+ MontageRailsTest: test_: .configure should require a username and password if no token is given.
23287
+ -------------------------------------------------------------------------------------------------
23288
+  (0.0ms) rollback transaction
23289
+  (0.0ms) begin transaction
23290
+ --------------------------------------------------------------
23291
+ MontageRailsTest: test_: .configure should accept server url.
23292
+ --------------------------------------------------------------
23293
+  (0.0ms) rollback transaction
23294
+  (0.0ms) begin transaction
23295
+ --------------------------------------------------------------------------------------------
23296
+ MontageRailsTest: test_: .configure should accept server url even if use mock set to false.
23297
+ --------------------------------------------------------------------------------------------
23298
+  (0.0ms) rollback transaction
23299
+  (0.0ms) begin transaction
23300
+ ---------------------------------------------------------------------------------------------------------------
23301
+ MontageRailsTest: test_: .configure should call the auth method and retrieve the token if it has not been set.
23302
+ ---------------------------------------------------------------------------------------------------------------
23303
+  (0.0ms) rollback transaction
23304
+  (0.0ms) begin transaction
23305
+ --------------------------------------------------------------------------------------
23306
+ MontageRailsTest: test_: .configure should accept boolean controling mock server use.
23307
+ --------------------------------------------------------------------------------------
23308
+  (0.0ms) 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
+ Movie Load (7.3ms) {: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
+ Movie Load (7.6ms) {:filter=>{:title=>"The Jerk"}}
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
+ Movie Load (6.9ms) {: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
+ Movie Load (7.2ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
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
+ Movie Load (8.2ms) {: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
+ Movie Load (7.3ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
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
+ Movie Load (6.5ms) {: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
+ Movie Load (8.0ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
23325
+ foo Load (0.0ms) 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
+ Movie Load (8.2ms) {:filter=>{:title=>"Foo"}}
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
+ Movie Load (8.1ms) {:filter=>{:title=>"The Jerk"}, :limit=>1}
23330
+ foo Load (0.1ms) bar
23331
+ foo Load [CACHE] (0.0ms) bar
23332
+ foo Load (0.0ms) bar
23333
+ foo Load (0.0ms) bar
23334
+ foo Load (0.2ms) bar
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: montage_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - dphaener