paginative 0.0.13 → 0.0.14

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: 0cb38d12f8be847a5645554b74f9ab99bcc614db
4
- data.tar.gz: 9c064f8ad8c5a6519c7c809bdd5224745a97eb98
3
+ metadata.gz: e0056e11001f48cbc8ccf544a3a775156f840a7d
4
+ data.tar.gz: cc1e0b91598649fa39cbeffeb658c06953cfad4f
5
5
  SHA512:
6
- metadata.gz: f05032bb249797f2032fa36776ce1ad1b0dcc9e8e744dea6e56713c4ec27fc14c65700158df8e43baa242af3a2d18cfa475e1a16d3c8a83b9ebbcb787e1c524f
7
- data.tar.gz: f92410c99318133d150cf198d8156aebb83c8c9d05496115bb29692fe895a849b9219e6ae25818e06d888a5a078517296e70725af9abaaf8db8b2e920cd372d5
6
+ metadata.gz: f79802bdc3e203e4bf274758772a35cffa9092b4f0e7175625dfe87047fb158e0f033dc7cc6e11011c15703ed46d6fcba3453848ee209af5cee51c6f9a2a502d
7
+ data.tar.gz: a825fb430a8cd267714e7c3865db36a4091797ab25165e327bed978ae47b367d5206791b437b5b9428e0764f9210148225586c90bb0370aca323fe504128525c
@@ -12,7 +12,7 @@ module Paginative
12
12
 
13
13
  def self.with_name_from(name="", limit=25, order="asc")
14
14
  return self.order("name DESC").where("lower(name) < ?", name.downcase).offset(0).limit(limit) if order == "desc"
15
- self.order(name: :asc).where("lower(name) > ?", name.downcase).offset(0).limit(limit)
15
+ self.order(name: :asc).where("lower(self.name.tableize.name) > ?", name.downcase).offset(0).limit(limit)
16
16
  end
17
17
 
18
18
  def self.with_id_from(id=0, limit=25)
@@ -1,3 +1,3 @@
1
1
  module Paginative
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
Binary file
Binary file
@@ -0,0 +1,83 @@
1
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (0.4ms) select sqlite_version(*)
3
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
+ Migrating to CreatePaginativeTestModels (20140415060518)
6
+  (0.1ms) begin transaction
7
+  (0.6ms) CREATE TABLE "paginative_test_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "latitude" float, "longitude" float, "created_at" datetime, "updated_at" datetime)
8
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140415060518"]]
9
+  (0.8ms) commit transaction
10
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
11
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
13
+  (1.1ms) CREATE TABLE "paginative_test_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "latitude" float, "longitude" float, "created_at" datetime, "updated_at" datetime) 
14
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
15
+  (0.4ms) select sqlite_version(*)
16
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
17
+  (0.1ms) SELECT version FROM "schema_migrations"
18
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140415060518')
19
+  (1.2ms) CREATE TABLE "paginative_test_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "latitude" float, "longitude" float, "created_at" datetime, "updated_at" datetime) 
20
+  (2.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
21
+  (0.2ms) select sqlite_version(*)
22
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
23
+  (0.2ms) SELECT version FROM "schema_migrations"
24
+  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140415060518')
25
+  (1.0ms) CREATE TABLE "paginative_test_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "latitude" float, "longitude" float, "created_at" datetime, "updated_at" datetime) 
26
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
27
+  (0.4ms) select sqlite_version(*)
28
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
29
+  (0.1ms) SELECT version FROM "schema_migrations"
30
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140415060518')
31
+ ActiveRecord::SchemaMigration Load (1.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
32
+ Migrating to AddAddressToTestModels (20140416020706)
33
+  (0.1ms) begin transaction
34
+  (0.2ms) ALTER TABLE "test_models" ADD "address" varchar(255)
35
+ SQLite3::SQLException: no such table: test_models: ALTER TABLE "test_models" ADD "address" varchar(255)
36
+  (0.1ms) rollback transaction
37
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
38
+ Migrating to AddAddressToTestModels (20140416020706)
39
+  (0.1ms) begin transaction
40
+  (3.0ms) ALTER TABLE "paginative_test_models" ADD "address" varchar(255)
41
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140416020706"]]
42
+  (0.5ms) commit transaction
43
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
44
+  (1.3ms) CREATE TABLE "paginative_test_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "latitude" float, "longitude" float, "created_at" datetime, "updated_at" datetime, "address" varchar(255)) 
45
+  (1.1ms) CREATE TABLE "paginative_test_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "latitude" float, "longitude" float, "created_at" datetime, "updated_at" datetime, "address" varchar(255)) 
46
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
47
+  (0.3ms) select sqlite_version(*)
48
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
49
+  (0.1ms) SELECT version FROM "schema_migrations"
50
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140416020706')
51
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140415060518')
52
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
53
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
54
+  (0.9ms) CREATE TABLE "paginative_test_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "latitude" float, "longitude" float, "created_at" datetime, "updated_at" datetime, "address" varchar(255)) 
55
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
56
+  (0.1ms) select sqlite_version(*)
57
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
58
+  (0.1ms) SELECT version FROM "schema_migrations"
59
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140416020706')
60
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140415060518')
61
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
62
+ Migrating to CreateTestModels (20140416035443)
63
+  (0.1ms) begin transaction
64
+  (1.0ms) CREATE TABLE "test_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "address" varchar(255), "latitude" float, "longitude" float, "created_at" datetime, "updated_at" datetime) 
65
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140416035443"]]
66
+  (1.1ms) commit transaction
67
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
68
+  (1.2ms) CREATE TABLE "paginative_test_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "latitude" float, "longitude" float, "created_at" datetime, "updated_at" datetime, "address" varchar(255)) 
69
+  (0.9ms) CREATE TABLE "test_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "address" varchar(255), "latitude" float, "longitude" float, "created_at" datetime, "updated_at" datetime)
70
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
71
+  (0.1ms) select sqlite_version(*)
72
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
73
+  (0.1ms) SELECT version FROM "schema_migrations"
74
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140416035443')
75
+  (1.6ms) CREATE TABLE "paginative_test_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "latitude" float, "longitude" float, "created_at" datetime, "updated_at" datetime, "address" varchar(255)) 
76
+  (0.9ms) CREATE TABLE "test_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "address" varchar(255), "latitude" float, "longitude" float, "created_at" datetime, "updated_at" datetime)
77
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
78
+  (0.1ms) select sqlite_version(*)
79
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
80
+  (0.1ms) SELECT version FROM "schema_migrations"
81
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140416035443')
82
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
83
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"