annotator 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -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}#{orphan}"
62
- @attrs = @attrs.select {|x| x[0] != orphan}
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
@@ -1,3 +1,3 @@
1
1
  module Annotator
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
@@ -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
@@ -0,0 +1,189 @@
1
+  (0.1ms) select sqlite_version(*)
2
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3
+  (0.0ms) PRAGMA index_list("schema_migrations")
4
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
6
+ Migrating to CreateFoos (20120219112425)
7
+  (0.0ms) begin transaction
8
+  (0.3ms) 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) 
9
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120219112425')
10
+  (1.2ms) commit transaction
11
+ Migrating to DeviseCreateUsers (20120527020350)
12
+  (0.0ms) begin transaction
13
+  (0.3ms) CREATE 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) 
16
+  (0.0ms) PRAGMA index_list("users")
17
+  (0.3ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
18
+  (0.0ms) PRAGMA index_list("users")
19
+  (0.0ms) PRAGMA index_info('index_users_on_email')
20
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
21
+  (0.0ms) PRAGMA index_list("users")
22
+  (0.0ms) PRAGMA index_info('index_users_on_reset_password_token')
23
+  (0.0ms) PRAGMA index_info('index_users_on_email')
24
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_confirmation_token" ON "users" ("confirmation_token")
25
+  (0.0ms) PRAGMA index_list("users")
26
+  (0.0ms) PRAGMA index_info('index_users_on_confirmation_token')
27
+  (0.0ms) PRAGMA index_info('index_users_on_reset_password_token')
28
+  (0.0ms) PRAGMA index_info('index_users_on_email')
29
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_unlock_token" ON "users" ("unlock_token")
30
+  (0.0ms) PRAGMA index_list("users")
31
+  (0.0ms) PRAGMA index_info('index_users_on_unlock_token')
32
+  (0.0ms) PRAGMA index_info('index_users_on_confirmation_token')
33
+  (0.0ms) PRAGMA index_info('index_users_on_reset_password_token')
34
+  (0.0ms) PRAGMA index_info('index_users_on_email')
35
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_authentication_token" ON "users" ("authentication_token")
36
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120527020350')
37
+  (1.3ms) commit transaction
38
+ Migrating to CreatePapers (20120527023350)
39
+  (0.0ms) begin transaction
40
+  (0.2ms) CREATE TABLE "papers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
41
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120527023350')
42
+  (1.1ms) commit transaction
43
+ Migrating to AddAttachmentAvatarToPapers (20120527023417)
44
+  (0.0ms) begin transaction
45
+  (0.3ms) ALTER TABLE "papers" ADD "avatar_file_name" varchar(255)
46
+  (0.1ms) ALTER TABLE "papers" ADD "avatar_content_type" varchar(255)
47
+  (0.1ms) ALTER TABLE "papers" ADD "avatar_file_size" integer
48
+  (0.1ms) ALTER TABLE "papers" ADD "avatar_updated_at" datetime
49
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120527023417')
50
+  (0.9ms) commit transaction
51
+ Migrating to CreateBoos (20120527025142)
52
+  (0.0ms) begin transaction
53
+  (0.2ms) 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
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120527025142')
55
+  (1.0ms) commit transaction
56
+ Migrating to CreateRoos (20120708043543)
57
+  (0.0ms) begin transaction
58
+  (0.2ms) 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
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120708043543')
60
+  (1.3ms) commit transaction
61
+  (0.2ms) select sqlite_version(*)
62
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
63
+  (0.0ms) PRAGMA index_list("boos")
64
+  (0.0ms) PRAGMA index_list("foos")
65
+  (0.0ms) PRAGMA index_list("papers")
66
+  (0.0ms) PRAGMA index_list("roos")
67
+  (0.0ms) PRAGMA index_list("users")
68
+  (0.0ms) PRAGMA index_info('index_users_on_authentication_token')
69
+  (0.0ms) PRAGMA index_info('index_users_on_unlock_token')
70
+  (0.0ms) PRAGMA index_info('index_users_on_confirmation_token')
71
+  (0.0ms) PRAGMA index_info('index_users_on_reset_password_token')
72
+  (0.0ms) PRAGMA index_info('index_users_on_email')
73
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
74
+  (0.3ms) select sqlite_version(*)
75
+  (1.3ms) 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) 
76
+  (1.1ms) 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
+  (1.1ms) CREATE 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) 
78
+  (1.2ms) 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
+  (1.5ms) CREATE 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) 
82
+  (0.0ms) PRAGMA index_list("users")
83
+  (0.9ms) CREATE UNIQUE INDEX "index_users_on_authentication_token" ON "users" ("authentication_token")
84
+  (0.0ms) PRAGMA index_list("users")
85
+  (0.0ms) PRAGMA index_info('index_users_on_authentication_token')
86
+  (0.9ms) CREATE UNIQUE INDEX "index_users_on_confirmation_token" ON "users" ("confirmation_token")
87
+  (0.0ms) PRAGMA index_list("users")
88
+  (0.0ms) PRAGMA index_info('index_users_on_confirmation_token')
89
+  (0.0ms) PRAGMA index_info('index_users_on_authentication_token')
90
+  (0.8ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
91
+  (0.0ms) PRAGMA index_list("users")
92
+  (0.0ms) PRAGMA index_info('index_users_on_email')
93
+  (0.0ms) PRAGMA index_info('index_users_on_confirmation_token')
94
+  (0.0ms) PRAGMA index_info('index_users_on_authentication_token')
95
+  (0.9ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
96
+  (0.0ms) PRAGMA index_list("users")
97
+  (0.0ms) PRAGMA index_info('index_users_on_reset_password_token')
98
+  (0.0ms) PRAGMA index_info('index_users_on_email')
99
+  (0.0ms) PRAGMA index_info('index_users_on_confirmation_token')
100
+  (0.0ms) PRAGMA index_info('index_users_on_authentication_token')
101
+  (1.4ms) CREATE UNIQUE INDEX "index_users_on_unlock_token" ON "users" ("unlock_token")
102
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
103
+  (0.0ms) PRAGMA index_list("schema_migrations")
104
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
105
+  (0.1ms) SELECT version FROM "schema_migrations"
106
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20120708043543')
107
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20120219112425')
108
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20120527020350')
109
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20120527023350')
110
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20120527023417')
111
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20120527025142')
112
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
113
+  (0.1ms) select sqlite_version(*)
114
+  (2.3ms) 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) 
115
+  (1.2ms) 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
+  (1.3ms) CREATE 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) 
117
+  (1.4ms) 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
+  (1.5ms) CREATE 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) 
121
+  (0.0ms) PRAGMA index_list("users")
122
+  (1.2ms) CREATE UNIQUE INDEX "index_users_on_authentication_token" ON "users" ("authentication_token")
123
+  (0.0ms) PRAGMA index_list("users")
124
+  (0.0ms) PRAGMA index_info('index_users_on_authentication_token')
125
+  (1.2ms) CREATE UNIQUE INDEX "index_users_on_confirmation_token" ON "users" ("confirmation_token")
126
+  (0.0ms) PRAGMA index_list("users")
127
+  (0.0ms) PRAGMA index_info('index_users_on_confirmation_token')
128
+  (0.0ms) PRAGMA index_info('index_users_on_authentication_token')
129
+  (1.2ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
130
+  (0.0ms) PRAGMA index_list("users")
131
+  (0.0ms) PRAGMA index_info('index_users_on_email')
132
+  (0.0ms) PRAGMA index_info('index_users_on_confirmation_token')
133
+  (0.0ms) PRAGMA index_info('index_users_on_authentication_token')
134
+  (1.0ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
135
+  (0.0ms) PRAGMA index_list("users")
136
+  (0.0ms) PRAGMA index_info('index_users_on_reset_password_token')
137
+  (0.0ms) PRAGMA index_info('index_users_on_email')
138
+  (0.0ms) PRAGMA index_info('index_users_on_confirmation_token')
139
+  (0.0ms) PRAGMA index_info('index_users_on_authentication_token')
140
+  (1.5ms) CREATE UNIQUE INDEX "index_users_on_unlock_token" ON "users" ("unlock_token")
141
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
142
+  (0.0ms) PRAGMA index_list("schema_migrations")
143
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
144
+  (0.1ms) SELECT version FROM "schema_migrations"
145
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20120708043543')
146
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120219112425')
147
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20120527020350')
148
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20120527023350')
149
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20120527023417')
150
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20120527025142')
151
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
152
+  (0.2ms) select sqlite_version(*)
153
+  (1.4ms) 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) 
154
+  (0.9ms) 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
+  (1.0ms) CREATE 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) 
156
+  (1.1ms) 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
+  (1.1ms) CREATE 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) 
160
+  (0.0ms) PRAGMA index_list("users")
161
+  (1.0ms) CREATE UNIQUE INDEX "index_users_on_authentication_token" ON "users" ("authentication_token")
162
+  (0.0ms) PRAGMA index_list("users")
163
+  (0.0ms) PRAGMA index_info('index_users_on_authentication_token')
164
+  (0.9ms) CREATE UNIQUE INDEX "index_users_on_confirmation_token" ON "users" ("confirmation_token")
165
+  (0.0ms) PRAGMA index_list("users")
166
+  (0.0ms) PRAGMA index_info('index_users_on_confirmation_token')
167
+  (0.0ms) PRAGMA index_info('index_users_on_authentication_token')
168
+  (0.9ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
169
+  (0.0ms) PRAGMA index_list("users")
170
+  (0.0ms) PRAGMA index_info('index_users_on_email')
171
+  (0.0ms) PRAGMA index_info('index_users_on_confirmation_token')
172
+  (0.0ms) PRAGMA index_info('index_users_on_authentication_token')
173
+  (1.1ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
174
+  (0.0ms) PRAGMA index_list("users")
175
+  (0.0ms) PRAGMA index_info('index_users_on_reset_password_token')
176
+  (0.0ms) PRAGMA index_info('index_users_on_email')
177
+  (0.0ms) PRAGMA index_info('index_users_on_confirmation_token')
178
+  (0.0ms) PRAGMA index_info('index_users_on_authentication_token')
179
+  (1.1ms) CREATE UNIQUE INDEX "index_users_on_unlock_token" ON "users" ("unlock_token")
180
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
181
+  (0.0ms) PRAGMA index_list("schema_migrations")
182
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
183
+  (0.1ms) SELECT version FROM "schema_migrations"
184
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20120708043543')
185
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20120219112425')
186
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20120527020350')
187
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20120527023350')
188
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20120527023417')
189
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20120527025142')
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.9
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-06-10 00:00:00.000000000 Z
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: !ruby/object:Gem::Requirement
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: !ruby/object:Gem::Requirement
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: !ruby/object:Gem::Requirement
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: 2.0.3
163
+ rubygems_version: 1.8.10
167
164
  signing_key:
168
- specification_version: 4
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