brant 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.
@@ -29,7 +29,7 @@ class BrantMigrationGenerator < Rails::Generator::Base
29
29
  #
30
30
  def file_name
31
31
  @file ||= @name + '_' +
32
- Time.now.strftime("%Y%m%M%S") + ("%04d" % rand(1000)) +
32
+ Time.now.strftime("%Y%m%d%M%S") + ("%02d" % rand(100)) +
33
33
  '.rb'
34
34
  end
35
35
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brant
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Siddharth Batra
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-02-13 00:00:00 +00:00
18
+ date: 2012-02-22 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -111,9 +111,6 @@ files:
111
111
  - lib/brant/migration.rb
112
112
  - lib/brant/migration_file.rb
113
113
  - lib/brant/tasks.rb
114
- - lib/pkg/migrate/create_temp_file_20120206020466.rb
115
- - lib/pkg/migrate/edit_temp_file_20120213120974.rb
116
- - lib/pkg/migrate/maintain_temp_file_20120212430871.rb
117
114
  - LICENSE.txt
118
115
  - README.textile
119
116
  has_rdoc: true
@@ -1,9 +0,0 @@
1
- class CreateTempFile < Brant::Migration
2
- def self.up
3
- system("touch a.txt")
4
- end
5
-
6
- def self.down
7
- system("rm a.txt")
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- class EditTempFile < Brant::Migration
2
- def self.up
3
- File.open('a.txt','w'){|f| f.write 'replaced'}
4
- end
5
-
6
- def self.down
7
- File.open('a.txt','w'){|f| f.write 'this is cool'}
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- class MaintainTempFile < Brant::Migration
2
- def self.up
3
- File.open('a.txt','w'){|f| f.write 'this is cool'}
4
- end
5
-
6
- def self.down
7
- File.open('a.txt','w'){|f| }
8
- end
9
- end