databasion 0.0.2 → 0.0.3

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.md CHANGED
@@ -128,24 +128,10 @@ If the currently created databasion project is committed to SVN, running the _--
128
128
 
129
129
  ## Roadmap
130
130
 
131
- __0.0.3__
131
+ __0.1.0__
132
132
 
133
133
  * Add ability to read existing tables, and make relative alter table migration scripts.
134
-
135
- __0.0.2__
136
-
137
- * <del>Add SVN hooks.</del>
138
-
139
- __0.0.1__
140
-
141
- * <del>Write this documentation.</del>
142
- * <del>Add table name specification.</del>
143
- * <del>Add database level table relationships.</del>
144
- * <del>Spit out ActiveRecord Models for migrations.</del>
145
- * <del>Create Ruby migration script.</del> <del>Still needs polished.</del>
146
- * <del>Add ability to read and update existing data.</del>
147
- * <del>Build a command line tool.</del>
148
- * <del>Add logging.</del>
134
+ * Convert Yamalize and Migratize code to templates instead of inline.
149
135
 
150
136
  ## Testing
151
137
 
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ Jeweler::Tasks.new do |gem|
8
8
  gem.email = "mojobojo@gmail.com"
9
9
  gem.homepage = "http://github.com/boj/databasion"
10
10
  gem.authors = ["Brian Jones", "Istpika"]
11
- gem.version = "0.0.2"
11
+ gem.version = "0.0.3"
12
12
 
13
13
  gem.add_dependency('activerecord', '>= 2.3.5')
14
14
  gem.add_dependency('activesupport', '>= 2.3.5')
data/databasion.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{databasion}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Brian Jones", "Istpika"]
@@ -24,23 +24,18 @@ module Databasion
24
24
  raise SvnilizeError, "A file lock is in place. Cannot commit." if check_lock?
25
25
  create_lock
26
26
  svn_add_files(path)
27
- begin
28
- Databasion::LOGGER.info 'running: svn commit -m "svn auto commit"'
29
- system svn_path + ' commit -m "svn auto commit"'
30
- Databasion::LOGGER.info 'running: svn update'
31
- system svn_path + ' update'
32
- rescue
33
- remove_lock
34
- raise SvnilizeError, "This isn't a valid SVN project."
35
- end
27
+ Databasion::LOGGER.info 'running: svn commit -m "svn auto commit"'
28
+ system svn_path + ' commit -m "svn auto commit"'
29
+ Databasion::LOGGER.info 'running: svn update'
30
+ system svn_path + ' update'
36
31
  remove_lock
37
32
  end
38
33
 
39
34
  def self.svn_add_files(path)
40
- files = Dir[Dir.pwd + "/" + path + "/**/*"]
35
+ files = Dir[path + "/**/*"]
41
36
  files.each do |file|
42
- Databasion::LOGGER.info 'running: svn add %s' % file
43
- system svn_path + ' add %s' % file
37
+ Databasion::LOGGER.info 'running: svn add %s' % file unless file =~ /svn.lock/
38
+ system svn_path + ' add %s' % file unless file =~ /svn.lock/
44
39
  end
45
40
  end
46
41
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: databasion
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Brian Jones