annotator 0.0.9 → 0.0.10
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.
- data/lib/annotator/attributes.rb +4 -4
- data/lib/annotator/version.rb +1 -1
- data/test/annotator_test.rb +7 -0
- data/test/assets/roo_annotated_with_old_column.rb +14 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +189 -0
- metadata +29 -28
- checksums.yaml +0 -7
data/lib/annotator/attributes.rb
CHANGED
@@ -5,7 +5,7 @@ module Annotator
|
|
5
5
|
R_ATTRIBUTE = /^# \* (\w+) \[(.*?)\]( \- )?(.*)$/
|
6
6
|
R_ATTRIBUTE_NEXT_LINE = /^# (.*?)$/
|
7
7
|
R_ATTRIBUTE_LINE = /(#{R_ATTRIBUTE})|(#{R_ATTRIBUTE_NEXT_LINE})/
|
8
|
-
HEADER = "# Attributes:"
|
8
|
+
HEADER = "# Attributes:"
|
9
9
|
MAX_CHARS_PER_LINE = 120
|
10
10
|
|
11
11
|
def initialize(model, lines)
|
@@ -58,8 +58,8 @@ module Annotator
|
|
58
58
|
orphans = @attrs.map{|x| x[:name]} - @model.columns.map(&:name)
|
59
59
|
unless orphans.empty?
|
60
60
|
orphans.each do |orphan|
|
61
|
-
puts " D #{@model}
|
62
|
-
@attrs = @attrs.select {|x| x[
|
61
|
+
puts " D #{@model}##{orphan}"
|
62
|
+
@attrs = @attrs.select {|x| x[:name] != orphan}
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
@@ -73,7 +73,7 @@ module Annotator
|
|
73
73
|
@lines.each do |line|
|
74
74
|
if m = line.match(R_ATTRIBUTE)
|
75
75
|
@attrs << {:name => m[1].strip, :type => m[2].strip, :desc => m[4].strip}
|
76
|
-
elsif m = line.match(R_ATTRIBUTE_NEXT_LINE)
|
76
|
+
elsif m = line.match(R_ATTRIBUTE_NEXT_LINE)
|
77
77
|
@attrs[-1][:desc] += " #{m[1].strip}"
|
78
78
|
end
|
79
79
|
end
|
data/lib/annotator/version.rb
CHANGED
data/test/annotator_test.rb
CHANGED
@@ -72,6 +72,13 @@ class AnnotatorTest < ActiveSupport::TestCase
|
|
72
72
|
assert !output.include?('M Roo#foo_id')
|
73
73
|
end
|
74
74
|
|
75
|
+
test "removing a deleted column" do
|
76
|
+
FileUtils.cp asset_file('roo_annotated_with_old_column.rb'), app_file('roo.rb')
|
77
|
+
output = execute "rake annotate"
|
78
|
+
assert output.include?('D Roo#deleted_at')
|
79
|
+
assert_equal File.read(asset_file 'roo_reannotated.rb' ), File.read(app_file 'roo.rb' )
|
80
|
+
end
|
81
|
+
|
75
82
|
def asset_file(name)
|
76
83
|
File.join(File.expand_path("../assets/", __FILE__), name)
|
77
84
|
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Attributes:
|
2
|
+
# * id [integer, primary, not null] - primary key
|
3
|
+
# * boo_id [integer] - belongs to :boo
|
4
|
+
# * created_at [datetime, not null] - creation time
|
5
|
+
# * deleted_at [datetime, not null] - delete time
|
6
|
+
# * foo_id [integer] - my handcrafted description
|
7
|
+
# * poly_id [integer] - belongs to :poly (polymorphic)
|
8
|
+
# * poly_type [string] - belongs to :poly (polymorphic)
|
9
|
+
# * updated_at [datetime, not null] - last update time
|
10
|
+
class Roo < ActiveRecord::Base
|
11
|
+
belongs_to :boo
|
12
|
+
belongs_to :poly, :polymorphic => true
|
13
|
+
belongs_to :foo
|
14
|
+
end
|
Binary file
|
Binary file
|
@@ -0,0 +1,189 @@
|
|
1
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
2
|
+
[1m[35m (1.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
3
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
4
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
5
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
6
|
+
Migrating to CreateFoos (20120219112425)
|
7
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" text, "title" varchar(255), "random_number" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
9
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120219112425')
|
10
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
11
|
+
Migrating to DeviseCreateUsers (20120527020350)
|
12
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "password_salt" varchar(255), "confirmation_token" varchar(255), "confirmed_at" datetime, "confirmation_sent_at" datetime, "unconfirmed_email" varchar(255), "failed_attempts" integer DEFAULT 0, "unlock_token" varchar(255), "locked_at" datetime, "authentication_token" varchar(255), "description" varchar(255) DEFAULT 'Long
|
14
|
+
multiline
|
15
|
+
string', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
16
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
17
|
+
[1m[36m (0.3ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
|
18
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
19
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_users_on_email')[0m
|
20
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
|
21
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("users")[0m
|
22
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_users_on_reset_password_token')
|
23
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_users_on_email')[0m
|
24
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "index_users_on_confirmation_token" ON "users" ("confirmation_token")
|
25
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("users")[0m
|
26
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_users_on_confirmation_token')
|
27
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_users_on_reset_password_token')[0m
|
28
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_users_on_email')
|
29
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_unlock_token" ON "users" ("unlock_token")[0m
|
30
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
31
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_users_on_unlock_token')[0m
|
32
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_users_on_confirmation_token')
|
33
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_users_on_reset_password_token')[0m
|
34
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_users_on_email')
|
35
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_authentication_token" ON "users" ("authentication_token")[0m
|
36
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120527020350')
|
37
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
38
|
+
Migrating to CreatePapers (20120527023350)
|
39
|
+
[1m[35m (0.0ms)[0m begin transaction
|
40
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "papers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
41
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120527023350')
|
42
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
43
|
+
Migrating to AddAttachmentAvatarToPapers (20120527023417)
|
44
|
+
[1m[35m (0.0ms)[0m begin transaction
|
45
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "papers" ADD "avatar_file_name" varchar(255)[0m
|
46
|
+
[1m[35m (0.1ms)[0m ALTER TABLE "papers" ADD "avatar_content_type" varchar(255)
|
47
|
+
[1m[36m (0.1ms)[0m [1mALTER TABLE "papers" ADD "avatar_file_size" integer[0m
|
48
|
+
[1m[35m (0.1ms)[0m ALTER TABLE "papers" ADD "avatar_updated_at" datetime
|
49
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20120527023417')[0m
|
50
|
+
[1m[35m (0.9ms)[0m commit transaction
|
51
|
+
Migrating to CreateBoos (20120527025142)
|
52
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
53
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "boos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "foo_id" integer, "poly_id" integer, "poly_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
54
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20120527025142')[0m
|
55
|
+
[1m[35m (1.0ms)[0m commit transaction
|
56
|
+
Migrating to CreateRoos (20120708043543)
|
57
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
58
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "roos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "boo_id" integer, "poly_id" integer, "poly_type" varchar(255), "foo_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
59
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20120708043543')[0m
|
60
|
+
[1m[35m (1.3ms)[0m commit transaction
|
61
|
+
[1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
62
|
+
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
63
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("boos")[0m
|
64
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("foos")
|
65
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("papers")[0m
|
66
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("roos")
|
67
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("users")[0m
|
68
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_users_on_authentication_token')
|
69
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_users_on_unlock_token')[0m
|
70
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_users_on_confirmation_token')
|
71
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_users_on_reset_password_token')[0m
|
72
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_users_on_email')
|
73
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
74
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
75
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "boos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "foo_id" integer, "poly_id" integer, "poly_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
76
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" text, "title" varchar(255), "random_number" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
77
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "papers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "avatar_file_name" varchar(255), "avatar_content_type" varchar(255), "avatar_file_size" integer, "avatar_updated_at" datetime) [0m
|
78
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "roos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "boo_id" integer, "poly_id" integer, "poly_type" varchar(255), "foo_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
79
|
+
[1m[36m (1.5ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "password_salt" varchar(255), "confirmation_token" varchar(255), "confirmed_at" datetime, "confirmation_sent_at" datetime, "unconfirmed_email" varchar(255), "failed_attempts" integer DEFAULT 0, "unlock_token" varchar(255), "locked_at" datetime, "authentication_token" varchar(255), "description" varchar(255) DEFAULT '''Long
|
80
|
+
multiline
|
81
|
+
string''', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
82
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
83
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_authentication_token" ON "users" ("authentication_token")[0m
|
84
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
85
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_users_on_authentication_token')[0m
|
86
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "index_users_on_confirmation_token" ON "users" ("confirmation_token")
|
87
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("users")[0m
|
88
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_users_on_confirmation_token')
|
89
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_users_on_authentication_token')[0m
|
90
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
91
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("users")[0m
|
92
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_users_on_email')
|
93
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_users_on_confirmation_token')[0m
|
94
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_users_on_authentication_token')
|
95
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
96
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
97
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_users_on_reset_password_token')[0m
|
98
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_users_on_email')
|
99
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_users_on_confirmation_token')[0m
|
100
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_users_on_authentication_token')
|
101
|
+
[1m[36m (1.4ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_unlock_token" ON "users" ("unlock_token")[0m
|
102
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
103
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
104
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
105
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
106
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120708043543')
|
107
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120219112425')[0m
|
108
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120527020350')
|
109
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120527023350')[0m
|
110
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120527023417')
|
111
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120527025142')[0m
|
112
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
113
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
114
|
+
[1m[36m (2.3ms)[0m [1mCREATE TABLE "boos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "foo_id" integer, "poly_id" integer, "poly_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
115
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" text, "title" varchar(255), "random_number" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
116
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "papers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "avatar_file_name" varchar(255), "avatar_content_type" varchar(255), "avatar_file_size" integer, "avatar_updated_at" datetime) [0m
|
117
|
+
[1m[35m (1.4ms)[0m CREATE TABLE "roos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "boo_id" integer, "poly_id" integer, "poly_type" varchar(255), "foo_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
118
|
+
[1m[36m (1.5ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "password_salt" varchar(255), "confirmation_token" varchar(255), "confirmed_at" datetime, "confirmation_sent_at" datetime, "unconfirmed_email" varchar(255), "failed_attempts" integer DEFAULT 0, "unlock_token" varchar(255), "locked_at" datetime, "authentication_token" varchar(255), "description" varchar(255) DEFAULT '''Long
|
119
|
+
multiline
|
120
|
+
string''', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
121
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
122
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_authentication_token" ON "users" ("authentication_token")[0m
|
123
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
124
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_users_on_authentication_token')[0m
|
125
|
+
[1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "index_users_on_confirmation_token" ON "users" ("confirmation_token")
|
126
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("users")[0m
|
127
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_users_on_confirmation_token')
|
128
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_users_on_authentication_token')[0m
|
129
|
+
[1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
130
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("users")[0m
|
131
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_users_on_email')
|
132
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_users_on_confirmation_token')[0m
|
133
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_users_on_authentication_token')
|
134
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
135
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
136
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_users_on_reset_password_token')[0m
|
137
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_users_on_email')
|
138
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_users_on_confirmation_token')[0m
|
139
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_users_on_authentication_token')
|
140
|
+
[1m[36m (1.5ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_unlock_token" ON "users" ("unlock_token")[0m
|
141
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
142
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
143
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
144
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
145
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120708043543')
|
146
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120219112425')[0m
|
147
|
+
[1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120527020350')
|
148
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120527023350')[0m
|
149
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120527023417')
|
150
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120527025142')[0m
|
151
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
152
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
153
|
+
[1m[36m (1.4ms)[0m [1mCREATE TABLE "boos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "foo_id" integer, "poly_id" integer, "poly_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
154
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" text, "title" varchar(255), "random_number" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
155
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "papers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "avatar_file_name" varchar(255), "avatar_content_type" varchar(255), "avatar_file_size" integer, "avatar_updated_at" datetime) [0m
|
156
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "roos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "boo_id" integer, "poly_id" integer, "poly_type" varchar(255), "foo_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
157
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "password_salt" varchar(255), "confirmation_token" varchar(255), "confirmed_at" datetime, "confirmation_sent_at" datetime, "unconfirmed_email" varchar(255), "failed_attempts" integer DEFAULT 0, "unlock_token" varchar(255), "locked_at" datetime, "authentication_token" varchar(255), "description" varchar(255) DEFAULT '''Long
|
158
|
+
multiline
|
159
|
+
string''', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
160
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
161
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_authentication_token" ON "users" ("authentication_token")[0m
|
162
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
163
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_users_on_authentication_token')[0m
|
164
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "index_users_on_confirmation_token" ON "users" ("confirmation_token")
|
165
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("users")[0m
|
166
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_users_on_confirmation_token')
|
167
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_users_on_authentication_token')[0m
|
168
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
169
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("users")[0m
|
170
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_users_on_email')
|
171
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_users_on_confirmation_token')[0m
|
172
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_users_on_authentication_token')
|
173
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
174
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
175
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_users_on_reset_password_token')[0m
|
176
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_users_on_email')
|
177
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_users_on_confirmation_token')[0m
|
178
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_users_on_authentication_token')
|
179
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_unlock_token" ON "users" ("unlock_token")[0m
|
180
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
181
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
182
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
183
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
184
|
+
[1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120708043543')
|
185
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120219112425')[0m
|
186
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120527020350')
|
187
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120527023350')[0m
|
188
|
+
[1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120527023417')
|
189
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120527025142')[0m
|
metadata
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: annotator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Tech-Angels
|
@@ -9,50 +10,41 @@ authors:
|
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date: 2013-
|
13
|
+
date: 2013-09-22 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: activerecord
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirement: &70093560459940 !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
17
19
|
requirements:
|
18
|
-
- - '>='
|
20
|
+
- - ! '>='
|
19
21
|
- !ruby/object:Gem::Version
|
20
22
|
version: '3.0'
|
21
23
|
type: :runtime
|
22
24
|
prerelease: false
|
23
|
-
version_requirements:
|
24
|
-
requirements:
|
25
|
-
- - '>='
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
version: '3.0'
|
25
|
+
version_requirements: *70093560459940
|
28
26
|
- !ruby/object:Gem::Dependency
|
29
27
|
name: sqlite3
|
30
|
-
requirement: !ruby/object:Gem::Requirement
|
28
|
+
requirement: &70093560459320 !ruby/object:Gem::Requirement
|
29
|
+
none: false
|
31
30
|
requirements:
|
32
|
-
- - '>='
|
31
|
+
- - ! '>='
|
33
32
|
- !ruby/object:Gem::Version
|
34
33
|
version: '0'
|
35
34
|
type: :development
|
36
35
|
prerelease: false
|
37
|
-
version_requirements:
|
38
|
-
requirements:
|
39
|
-
- - '>='
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: '0'
|
36
|
+
version_requirements: *70093560459320
|
42
37
|
- !ruby/object:Gem::Dependency
|
43
38
|
name: rails
|
44
|
-
requirement: !ruby/object:Gem::Requirement
|
39
|
+
requirement: &70093560458460 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
45
41
|
requirements:
|
46
|
-
- - '>='
|
42
|
+
- - ! '>='
|
47
43
|
- !ruby/object:Gem::Version
|
48
44
|
version: '3.0'
|
49
45
|
type: :development
|
50
46
|
prerelease: false
|
51
|
-
version_requirements:
|
52
|
-
requirements:
|
53
|
-
- - '>='
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: '3.0'
|
47
|
+
version_requirements: *70093560458460
|
56
48
|
description: ''
|
57
49
|
email:
|
58
50
|
- kacper.ciesla@tech-angels.com
|
@@ -87,6 +79,7 @@ files:
|
|
87
79
|
- test/assets/foo_require_first.rb
|
88
80
|
- test/assets/moo_hoo_annotated.rb
|
89
81
|
- test/assets/paper_annotated.rb
|
82
|
+
- test/assets/roo_annotated_with_old_column.rb
|
90
83
|
- test/assets/roo_initially_annotated.rb
|
91
84
|
- test/assets/roo_reannotated.rb
|
92
85
|
- test/assets/user_annotated.rb
|
@@ -118,6 +111,7 @@ files:
|
|
118
111
|
- test/dummy/config/locales/en.yml
|
119
112
|
- test/dummy/config/routes.rb
|
120
113
|
- test/dummy/config.ru
|
114
|
+
- test/dummy/db/development.sqlite3
|
121
115
|
- test/dummy/db/migrate/20120219112425_create_foos.rb
|
122
116
|
- test/dummy/db/migrate/20120527020350_devise_create_users.rb
|
123
117
|
- test/dummy/db/migrate/20120527023350_create_papers.rb
|
@@ -125,6 +119,8 @@ files:
|
|
125
119
|
- test/dummy/db/migrate/20120527025142_create_boos.rb
|
126
120
|
- test/dummy/db/migrate/20120708043543_create_roos.rb
|
127
121
|
- test/dummy/db/schema.rb
|
122
|
+
- test/dummy/db/test.sqlite3
|
123
|
+
- test/dummy/log/development.log
|
128
124
|
- test/dummy/public/404.html
|
129
125
|
- test/dummy/public/422.html
|
130
126
|
- test/dummy/public/500.html
|
@@ -146,26 +142,27 @@ files:
|
|
146
142
|
- test/test_helper.rb
|
147
143
|
homepage: https://github.com/tech-angels/annotator
|
148
144
|
licenses: []
|
149
|
-
metadata: {}
|
150
145
|
post_install_message:
|
151
146
|
rdoc_options: []
|
152
147
|
require_paths:
|
153
148
|
- lib
|
154
149
|
required_ruby_version: !ruby/object:Gem::Requirement
|
150
|
+
none: false
|
155
151
|
requirements:
|
156
|
-
- - '>='
|
152
|
+
- - ! '>='
|
157
153
|
- !ruby/object:Gem::Version
|
158
154
|
version: '0'
|
159
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
|
+
none: false
|
160
157
|
requirements:
|
161
|
-
- - '>='
|
158
|
+
- - ! '>='
|
162
159
|
- !ruby/object:Gem::Version
|
163
160
|
version: '0'
|
164
161
|
requirements: []
|
165
162
|
rubyforge_project:
|
166
|
-
rubygems_version:
|
163
|
+
rubygems_version: 1.8.10
|
167
164
|
signing_key:
|
168
|
-
specification_version:
|
165
|
+
specification_version: 3
|
169
166
|
summary: Annotate your models and keep your comments about fields.
|
170
167
|
test_files:
|
171
168
|
- test/annotator_test.rb
|
@@ -180,6 +177,7 @@ test_files:
|
|
180
177
|
- test/assets/foo_require_first.rb
|
181
178
|
- test/assets/moo_hoo_annotated.rb
|
182
179
|
- test/assets/paper_annotated.rb
|
180
|
+
- test/assets/roo_annotated_with_old_column.rb
|
183
181
|
- test/assets/roo_initially_annotated.rb
|
184
182
|
- test/assets/roo_reannotated.rb
|
185
183
|
- test/assets/user_annotated.rb
|
@@ -211,6 +209,7 @@ test_files:
|
|
211
209
|
- test/dummy/config/locales/en.yml
|
212
210
|
- test/dummy/config/routes.rb
|
213
211
|
- test/dummy/config.ru
|
212
|
+
- test/dummy/db/development.sqlite3
|
214
213
|
- test/dummy/db/migrate/20120219112425_create_foos.rb
|
215
214
|
- test/dummy/db/migrate/20120527020350_devise_create_users.rb
|
216
215
|
- test/dummy/db/migrate/20120527023350_create_papers.rb
|
@@ -218,6 +217,8 @@ test_files:
|
|
218
217
|
- test/dummy/db/migrate/20120527025142_create_boos.rb
|
219
218
|
- test/dummy/db/migrate/20120708043543_create_roos.rb
|
220
219
|
- test/dummy/db/schema.rb
|
220
|
+
- test/dummy/db/test.sqlite3
|
221
|
+
- test/dummy/log/development.log
|
221
222
|
- test/dummy/public/404.html
|
222
223
|
- test/dummy/public/422.html
|
223
224
|
- test/dummy/public/500.html
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: e281a273299bac0706dd5c95fae62865b18690bd
|
4
|
-
data.tar.gz: ee3b54dea76bd7cda81563f1686fdd5e80eb4397
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 1db22454981d881233579c0f3f0a49a21de06f5e0fd0a23017b846722fc309349a8593ff7649edf86f2f7b37d3d6b9c55a4c41b723001f9d602c72a471a456ed
|
7
|
-
data.tar.gz: 049863c3d57c5b11d90eca21cb0c26449b88d71e63dec0af4a6def6dbcd4970d4cf626dddbe6101ebecb369a5b7f082f64c858ef1a8ab4a63e4323a9496dce60
|