kiss 1.7 → 1.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/bin/kiss +6 -1
  3. data/data/scaffold.tgz +0 -0
  4. metadata +3 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7
1
+ 1.7.1
data/bin/kiss CHANGED
@@ -116,7 +116,12 @@ def evolve
116
116
  print "Applying evolution file number #{db_version}: #{filename}...\n\n"
117
117
 
118
118
  db.transaction do
119
- File.read(filename).gsub(/\#[^\n]*/,'').split(';').each do |query|
119
+ # TODO: Need a proper SQL string parser here for correct handling of
120
+ # TODO: # in SQL value strings and ; in comments and strings
121
+
122
+ # If any line has '#' followed by a semicolon, add another # after
123
+ # the semicolon to keep the comment state after splitting on semicolons
124
+ File.read(filename).gsub(/(\#[^\n]*?;)([^\n])/,'\1#\2').split(';').each do |query|
120
125
  next if query.blank?
121
126
  query.sub!(/\A\s*/,'')
122
127
  print (query + ";\n\n")
data/data/scaffold.tgz CHANGED
Binary file
metadata CHANGED
@@ -5,7 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 7
8
- version: "1.7"
8
+ - 1
9
+ version: 1.7.1
9
10
  platform: ruby
10
11
  authors:
11
12
  - Shawn Van Ittersum
@@ -13,7 +14,7 @@ autorequire:
13
14
  bindir: bin
14
15
  cert_chain: []
15
16
 
16
- date: 2012-01-28 00:00:00 -08:00
17
+ date: 2012-02-01 00:00:00 -08:00
17
18
  default_executable:
18
19
  dependencies:
19
20
  - !ruby/object:Gem::Dependency