bind9mgr 0.3.15 → 0.3.16

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.
Files changed (4) hide show
  1. data/History.txt +4 -0
  2. data/lib/bind9mgr.rb +1 -1
  3. data/lib/parser.rb +9 -18
  4. metadata +2 -2
data/History.txt CHANGED
@@ -97,3 +97,7 @@
97
97
  === 0.3.15 / 2013-03-06
98
98
 
99
99
  * Parser fix: \n causes parsing error
100
+
101
+ === 0.3.16 / 2013-03-06
102
+
103
+ * less debug messages in stdout
data/lib/bind9mgr.rb CHANGED
@@ -6,7 +6,7 @@ require File.join( File.dirname(__FILE__), 'resource_record' )
6
6
  require File.join( File.dirname(__FILE__), 'parser' )
7
7
 
8
8
  module Bind9mgr
9
- VERSION = '0.3.15'
9
+ VERSION = '0.3.16'
10
10
 
11
11
  ZONES_BIND_SUBDIR = 'primary'
12
12
 
data/lib/parser.rb CHANGED
@@ -68,7 +68,7 @@ module Bind9mgr
68
68
  @content = str # for debugging
69
69
  @tokens = tokenize( str )
70
70
 
71
- puts @tokens.inspect
71
+ # puts @tokens.inspect
72
72
 
73
73
  cntr = 0
74
74
  while @tokens.size > 0
@@ -103,29 +103,24 @@ module Bind9mgr
103
103
  str.squeeze!("\n\t\r")
104
104
  dirty_tokens = str.split(/[ \t\r]/)
105
105
 
106
- # puts "-----------------------------------"
107
- # puts dirty_tokens[0].inspect
108
-
109
-
110
- puts dirty_tokens.inspect
111
-
112
106
  tokens = []
113
107
  dirty_tokens.each do |t|
114
108
 
115
109
  if t.index("\n")
116
- puts "n found: #{t.inspect}"
110
+ # puts "n found: #{t.inspect}"
117
111
  while t.index("\n") do
118
112
  i = t.index("\n")-1
119
- puts "slice: #{i}, #{t.slice(0..(i >= 0 ? i : 0))}"
113
+ # puts "slice: #{i}, #{t.slice(0..(i >= 0 ? i : 0))}"
120
114
  tokens << t.slice!(0..i) if i >= 0
121
- puts "after slice: #{t.inspect}"
122
- tokens << "\n"
123
- puts "cut:" + t.slice!(0..0).inspect
115
+ # puts "after slice: #{t.inspect}"
116
+ tokens << "\n"
117
+ # puts "cut:" + t.slice(0..0).inspect
118
+ t.slice!(0..0)
124
119
  end
125
- puts "add after cut:#{t.inspect}"
120
+ # puts "add after cut:#{t.inspect}"
126
121
  tokens << t
127
122
  else
128
- puts "just add:#{t}"
123
+ # puts "just add:#{t}"
129
124
  tokens << t
130
125
  end
131
126
 
@@ -137,10 +132,6 @@ module Bind9mgr
137
132
  tokens.shift
138
133
  end
139
134
 
140
- # puts "--------------------2222222222222---------------"
141
- # puts tokens[0].inspect
142
-
143
-
144
135
  tokens
145
136
  end
146
137
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bind9mgr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.15
4
+ version: 0.3.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-05 00:00:00.000000000 Z
12
+ date: 2013-03-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdoc