protokoll 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -1,5 +1,4 @@
1
- = Protokoll
2
-
1
+ = Protokoll {<img src="http://travis-ci.org/celsodantas/protokoll.png"/>}[http://travis-ci.org/celsodantas/protokoll]
3
2
  Protokoll is a simple Rails 3 pluggin to simplify the management of a custom autoincrement value for a model.
4
3
 
5
4
  If you want to create an autoincrement information on the database, just like those callcenter registration number (2011000001, 2011000002, 20110000003 and on) this gem is for you! If you want to create just an custom autoincrement value, this gem is for you too! =)
@@ -72,4 +71,5 @@ Ex:
72
71
  This is my _first_ public gem, so if you have any questions os sugestions, feel free to contact me (use github msg system for that). It will be awesome to hear feedback to improve the code.
73
72
 
74
73
 
74
+
75
75
  This piece of software is free to use.
data/Rakefile CHANGED
@@ -14,7 +14,7 @@ end
14
14
 
15
15
  RDoc::Task.new(:rdoc) do |rdoc|
16
16
  rdoc.rdoc_dir = 'rdoc'
17
- rdoc.title = 'ProtokollPlugin'
17
+ rdoc.title = 'Protokoll'
18
18
  rdoc.options << '--line-numbers'
19
19
  rdoc.rdoc_files.include('README.rdoc')
20
20
  rdoc.rdoc_files.include('lib/**/*.rb')
@@ -1,3 +1,3 @@
1
1
  module Protokoll
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
data/lib/protokoll.rb CHANGED
@@ -17,7 +17,7 @@ module Protokoll
17
17
 
18
18
  prot.options = options
19
19
 
20
- before_save do |record|
20
+ before_create do |record|
21
21
  last = record.class.last
22
22
 
23
23
  if last.present?
@@ -195,3 +195,40 @@ Migrating to CreateCalls (20110928013630)
195
195
   (9.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20110928013630')
196
196
   (15.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20110923024431')
197
197
   (12.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20110923101536')
198
+  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
199
+ Migrating to CreateProtocols (20110923024431)
200
+ Migrating to CreatePrincipals (20110923101536)
201
+ Migrating to CreateCalls (20110928013630)
202
+  (25.7ms) select sqlite_version(*)
203
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
204
+  (0.0ms) PRAGMA index_list("calls")
205
+  (0.0ms) PRAGMA index_list("principals")
206
+  (0.0ms) PRAGMA index_list("protocols")
207
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
208
+ Migrating to CreateProtocols (20110923024431)
209
+ Migrating to CreatePrincipals (20110923101536)
210
+ Migrating to CreateCalls (20110928013630)
211
+  (0.3ms) select sqlite_version(*)
212
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
213
+  (0.0ms) PRAGMA index_list("calls")
214
+  (0.0ms) PRAGMA index_list("principals")
215
+  (0.0ms) PRAGMA index_list("protocols")
216
+  (0.1ms) select sqlite_version(*)
217
+  (44.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
218
+  (0.1ms) PRAGMA index_list("schema_migrations")
219
+  (4.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
220
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
221
+ Migrating to CreateProtocols (20110923024431)
222
+  (0.5ms) CREATE TABLE "protocols" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(255), "created_at" datetime, "updated_at" datetime)
223
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110923024431')
224
+ Migrating to CreatePrincipals (20110923101536)
225
+  (0.4ms) CREATE TABLE "principals" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "protokoll_number" varchar(255), "created_at" datetime, "updated_at" datetime)
226
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110923101536')
227
+ Migrating to CreateCalls (20110928013630)
228
+  (0.4ms) CREATE TABLE "calls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(255), "created_at" datetime, "updated_at" datetime)
229
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20110928013630')
230
+  (0.3ms) select sqlite_version(*)
231
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
232
+  (0.0ms) PRAGMA index_list("calls")
233
+  (0.0ms) PRAGMA index_list("principals")
234
+  (0.0ms) PRAGMA index_list("protocols")