tagger 0.1.0 → 0.1.1
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/README.rdoc +1 -1
- data/lib/tagger/generator.rb +2 -2
- data/lib/tagger/version.rb +1 -1
- data/tagger.gemspec +1 -1
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
== Installing
|
4
4
|
|
5
|
-
1. Install
|
5
|
+
1. Install it with <tt>gem install tagger</tt>
|
6
6
|
2. Generate the migration files with <tt>rails generate tagger:install</tt>.
|
7
7
|
3. Finally, run the migrations with <tt>rake db:migrate</tt>.
|
8
8
|
|
data/lib/tagger/generator.rb
CHANGED
@@ -6,8 +6,8 @@ module Tagger
|
|
6
6
|
|
7
7
|
def copy_migrations
|
8
8
|
stamp = proc {|time| time.utc.strftime("%Y%m%d%H%M%S")}
|
9
|
-
copy_file "tags.rb", "db/
|
10
|
-
copy_file "taggings.rb", "db/
|
9
|
+
copy_file "tags.rb", "db/migrate/#{stamp[Time.now]}_create_tags.rb"
|
10
|
+
copy_file "taggings.rb", "db/migrate/#{stamp[1.second.from_now]}_create_taggings.rb"
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
data/lib/tagger/version.rb
CHANGED
data/tagger.gemspec
CHANGED