ztk 1.4.11 → 1.4.12

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -2,6 +2,7 @@ language: ruby
2
2
 
3
3
  rvm:
4
4
  - ree
5
+ - 1.8.7
5
6
  - 1.9.2
6
7
  - 1.9.3
7
8
  - 2.0.0
@@ -10,7 +11,3 @@ before_install: ./spec/support/before_install.sh
10
11
 
11
12
  notifications:
12
13
  irc: "irc.freenode.net#jovelabs"
13
-
14
- matrix:
15
- allow_failures:
16
- - rvm: ree
data/lib/ztk/ansi.rb CHANGED
@@ -109,23 +109,48 @@ module ZTK
109
109
  # @return [Boolean] True if successful.
110
110
  def build_ansi_methods(hash)
111
111
  hash.each do |key, value|
112
- define_method(key) do |string=nil, &block|
113
- result = Array.new
114
-
115
- result << %(\e[#{value}m)
116
- if block_given?
117
- result << block.call
118
- elsif string.respond_to?(:to_str)
119
- result << string.to_str
120
- elsif respond_to?(:to_str)
121
- result << to_str
122
- else
123
- return result
124
- end
125
- result << %(\e[0m)
126
112
 
127
- result.join
128
- end
113
+ # Ruby-1.8.7 Logic:
114
+ ####################
115
+ module_eval <<-CODE, __FILE__, __LINE__ + 1
116
+ def #{key}(string=nil, &block)
117
+ result = Array.new
118
+
119
+ result << %(\e[#{value}m)
120
+ if block_given?
121
+ result << block.call
122
+ elsif string.respond_to?(:to_str)
123
+ result << string.to_str
124
+ elsif respond_to?(:to_str)
125
+ result << to_str
126
+ else
127
+ return result
128
+ end
129
+ result << %(\e[0m)
130
+
131
+ result.join
132
+ end
133
+ CODE
134
+
135
+ # > Ruby-1.8.7 Logic:
136
+ ######################
137
+ # define_method(key) do |string=nil, &block|
138
+ # result = Array.new
139
+
140
+ # result << %(\e[#{value}m)
141
+ # if block_given?
142
+ # result << block.call
143
+ # elsif string.respond_to?(:to_str)
144
+ # result << string.to_str
145
+ # elsif respond_to?(:to_str)
146
+ # result << to_str
147
+ # else
148
+ # return result
149
+ # end
150
+ # result << %(\e[0m)
151
+
152
+ # result.join
153
+ # end
129
154
  end
130
155
 
131
156
  true
@@ -53,36 +53,102 @@ module ZTK::DSL::Core::Relations
53
53
  :key => key
54
54
  }.merge(options)
55
55
 
56
- define_method(key) do |*args|
57
- if args.count == 0
58
- get_belongs_to_reference(key)
59
- else
60
- send("#{key}=", *args)
56
+ ################################################################################
57
+
58
+ # Ruby-1.8.7 Logic:
59
+ ####################
60
+ module_eval <<-CODE, __FILE__, __LINE__ + 1
61
+ def #{key}(*args)
62
+ if args.count == 0
63
+ get_belongs_to_reference(#{key.inspect})
64
+ else
65
+ send("#{key}=", *args)
66
+ end
61
67
  end
62
- end
68
+ CODE
69
+
70
+ # > Ruby-1.8.7 Logic:
71
+ ######################
72
+ # define_method(key) do |*args|
73
+ # if args.count == 0
74
+ # get_belongs_to_reference(key)
75
+ # else
76
+ # send("#{key}=", *args)
77
+ # end
78
+ # end
63
79
 
64
- define_method("#{key}=") do |value|
65
- set_belongs_to_reference(key, value)
66
- end
80
+ ################################################################################
67
81
 
68
- define_method("#{key}_id") do |*args|
69
- if args.count == 0
70
- attributes["#{key}_id".to_sym]
71
- else
72
- send("#{key}_id=".to_sym, args.first)
82
+ # Ruby-1.8.7 Logic:
83
+ ####################
84
+ module_eval <<-CODE, __FILE__, __LINE__ + 1
85
+ def #{key}=(value)
86
+ set_belongs_to_reference(#{key.inspect}, value)
73
87
  end
88
+ CODE
74
89
 
75
- end
90
+ # > Ruby-1.8.7 Logic:
91
+ ######################
92
+ # define_method("#{key}=") do |value|
93
+ # set_belongs_to_reference(key, value)
94
+ # end
76
95
 
77
- define_method("#{key}_id=") do |value|
78
- options = self.class.belongs_to_relations[key]
79
- if value != attributes["#{key}_id".to_sym]
80
- item = options[:class_name].constantize.find(value).first
81
- set_belongs_to_reference(key, item)
82
- else
83
- value
96
+ ################################################################################
97
+
98
+ # Ruby-1.8.7 Logic:
99
+ ####################
100
+ module_eval <<-CODE, __FILE__, __LINE__ + 1
101
+ def #{key}_id(*args)
102
+ if args.count == 0
103
+ attributes["#{key}_id".to_sym]
104
+ else
105
+ send("#{key}_id=".to_sym, args.first)
106
+ end
84
107
  end
85
- end
108
+ CODE
109
+
110
+ # > Ruby-1.8.7 Logic:
111
+ ######################
112
+ # define_method("#{key}_id") do |*args|
113
+ # if args.count == 0
114
+ # attributes["#{key}_id".to_sym]
115
+ # else
116
+ # send("#{key}_id=".to_sym, args.first)
117
+ # end
118
+ # end
119
+
120
+ ################################################################################
121
+
122
+ # Ruby-1.8.7 Logic:
123
+ ####################
124
+ module_eval <<-CODE, __FILE__, __LINE__ + 1
125
+ def #{key}_id=(value)
126
+ options = self.class.belongs_to_relations[#{key.inspect}]
127
+ if value != attributes["#{key}_id".to_sym]
128
+ item = options[:class_name].constantize.find(value).first
129
+ set_belongs_to_reference(#{key.inspect}, item)
130
+ else
131
+ value
132
+ end
133
+ end
134
+ CODE
135
+
136
+ # > Ruby-1.8.7 Logic:
137
+ ######################
138
+ # define_method("#{key}_id=") do |value|
139
+ # options = self.class.belongs_to_relations[key]
140
+ # if value != attributes["#{key}_id".to_sym]
141
+ # item = options[:class_name].constantize.find(value).first
142
+ # set_belongs_to_reference(key, item)
143
+ # else
144
+ # value
145
+ # end
146
+ # end
147
+
148
+ ################################################################################
149
+
150
+ # OLD CODE
151
+ ###########
86
152
 
87
153
  # define_method(singularize(key)) do |value|
88
154
  # set_belongs_to_reference(key, value)
@@ -46,28 +46,75 @@ module ZTK::DSL::Core::Relations
46
46
  :key => key
47
47
  }.merge(options)
48
48
 
49
- define_method(key) do |*args|
50
- if args.count == 0
51
- get_has_many_reference(key)
52
- else
53
- send("#{key}=", *args)
49
+ ################################################################################
50
+
51
+ # Ruby-1.8.7 Logic:
52
+ ####################
53
+ module_eval <<-CODE, __FILE__, __LINE__ + 1
54
+ def #{key}(*args)
55
+ if args.count == 0
56
+ get_has_many_reference(#{key.inspect})
57
+ else
58
+ send("#{key}=", *args)
59
+ end
54
60
  end
55
- end
61
+ CODE
56
62
 
57
- define_method("#{key}=") do |value|
58
- set_has_many_reference(key, value)
59
- end
63
+ # > Ruby-1.8.7 Logic:
64
+ ######################
65
+ # define_method(key) do |*args|
66
+ # if args.count == 0
67
+ # get_has_many_reference(key)
68
+ # else
69
+ # send("#{key}=", *args)
70
+ # end
71
+ # end
60
72
 
61
- define_method(key.to_s.singularize) do |id=nil, &block|
62
- options = self.class.has_many_relations[key]
63
- data = options[:class_name].constantize.new(id, &block)
64
- get_has_many_reference(key) << data
73
+ ################################################################################
65
74
 
66
- klass = self.class.to_s.demodulize.singularize.downcase
75
+ # Ruby-1.8.7 Logic:
76
+ ####################
77
+ module_eval <<-CODE, __FILE__, __LINE__ + 1
78
+ def #{key}=(value)
79
+ set_has_many_reference(#{key.inspect}, value)
80
+ end
81
+ CODE
67
82
 
68
- data.send("#{klass}=", self)
69
- data
70
- end
83
+ # > Ruby-1.8.7 Logic:
84
+ ######################
85
+ # define_method("#{key}=") do |value|
86
+ # set_has_many_reference(key, value)
87
+ # end
88
+
89
+ ################################################################################
90
+
91
+ # Ruby-1.8.7 Logic:
92
+ ####################
93
+ module_eval <<-CODE, __FILE__, __LINE__ + 1
94
+ def #{key.to_s.singularize}(id=nil, &block)
95
+ options = self.class.has_many_relations[#{key.inspect}]
96
+ data = options[:class_name].constantize.new(id, &block)
97
+ get_has_many_reference(#{key.inspect}) << data
98
+
99
+ klass = self.class.to_s.demodulize.singularize.downcase + '='
100
+
101
+ data.send(klass, self)
102
+ data
103
+ end
104
+ CODE
105
+
106
+ # > Ruby-1.8.7 Logic:
107
+ ######################
108
+ # define_method(key.to_s.singularize) do |id=nil, &block|
109
+ # options = self.class.has_many_relations[key]
110
+ # data = options[:class_name].constantize.new(id, &block)
111
+ # get_has_many_reference(key) << data
112
+
113
+ # klass = self.class.to_s.demodulize.singularize.downcase
114
+
115
+ # data.send("#{klass}=", self)
116
+ # data
117
+ # end
71
118
  end
72
119
 
73
120
  end
data/lib/ztk/pty.rb CHANGED
@@ -1,5 +1,3 @@
1
- require 'pty'
2
-
3
1
  module ZTK
4
2
 
5
3
  # PTY Error Class
@@ -13,27 +11,33 @@ module ZTK
13
11
  #
14
12
  # @author Zachary Patten <zachary AT jovelabs DOT com>
15
13
  class PTY
14
+ require 'pty'
16
15
 
17
16
  class << self
18
17
 
19
- # Spawns a ruby-based PTY.
18
+ # Execute a process via a ruby-based PTY.
20
19
  #
21
20
  # @param [Array] args An argument splat to be passed to PTY::spawn
22
21
  #
23
22
  # @return [Object] Returns the $? object.
24
23
  def spawn(*args, &block)
25
-
26
- if block_given?
27
- ::PTY.spawn(*args) do |reader, writer, pid|
28
- begin
29
- yield(reader, writer, pid)
30
- rescue Errno::EIO
31
- ensure
32
- ::Process.wait(pid)
24
+ reader, writer, pid = nil
25
+
26
+ begin
27
+ if block_given?
28
+ ::PTY.spawn(*args) do |reader, writer, pid|
29
+ begin
30
+ yield(reader, writer, pid)
31
+ rescue Errno::EIO
32
+ ensure
33
+ ::Process.wait(pid)
34
+ end
33
35
  end
36
+ else
37
+ raise "You must supply a block!"
38
+ # reader, writer, pid = ::PTY.spawn(*args)
34
39
  end
35
- else
36
- reader, writer, pid = ::PTY.spawn(*args)
40
+ rescue ::PTY::ChildExited
37
41
  end
38
42
 
39
43
  [reader, writer, pid]
data/lib/ztk/report.rb CHANGED
@@ -49,7 +49,7 @@ module ZTK
49
49
 
50
50
  rows = Array.new
51
51
  max_lengths = OpenStruct.new
52
- headers = headers.map(&:downcase).map(&:to_sym)
52
+ headers = headers.map(&:to_s).map(&:downcase).map(&:to_sym)
53
53
 
54
54
  if dataset.is_a?(Array)
55
55
  dataset.each do |data|
@@ -62,7 +62,7 @@ module ZTK
62
62
 
63
63
  if rows.count > 0
64
64
  max_lengths = max_spreadsheet_lengths(headers, rows)
65
- header_line = headers.collect { |header| "%-#{max_lengths.send(header)}s" % header.to_s.upcase }
65
+ header_line = headers.collect { |header| "%-#{max_lengths.send(:table)[header]}s" % header.to_s.upcase }
66
66
  header_line = format_row(header_line)
67
67
 
68
68
  config.ui.stdout.puts(format_header(headers, max_lengths))
@@ -71,8 +71,8 @@ module ZTK
71
71
 
72
72
  rows.each do |row|
73
73
  row_line = headers.collect do |header|
74
- header_length = max_lengths.send(header)
75
- content = row.send(header)
74
+ header_length = max_lengths.send(:table)[header]
75
+ content = row.send(:table)[header]
76
76
 
77
77
  "%-#{header_length}s" % content
78
78
  end
@@ -115,7 +115,7 @@ module ZTK
115
115
 
116
116
  rows = Array.new
117
117
  max_lengths = OpenStruct.new
118
- headers = headers.map(&:downcase).map(&:to_sym)
118
+ headers = headers.map(&:to_s).map(&:downcase).map(&:to_sym)
119
119
 
120
120
  if dataset.is_a?(Array)
121
121
  dataset.each do |data|
@@ -127,15 +127,15 @@ module ZTK
127
127
  rows.compact!
128
128
 
129
129
  if rows.count > 0
130
- max_key_length = headers.collect{ |header| header.length }.max
131
- max_value_length = rows.collect{ |row| headers.collect{ |header| row.send(header).to_s.length }.max }.max
130
+ max_key_length = headers.collect{ |header| header.to_s.length }.max
131
+ max_value_length = rows.collect{ |row| headers.collect{ |header| row.send(:table)[header].to_s.length }.max }.max
132
132
 
133
133
  width = (max_key_length + max_value_length + 2 + 2 + 2)
134
134
 
135
135
  rows.each do |row|
136
136
  config.ui.stdout.puts("+#{"-" * width}+")
137
137
  headers.each do |header|
138
- entry_line = format_entry(header, max_key_length, row.send(header), max_value_length)
138
+ entry_line = format_entry(header, max_key_length, row.send(:table)[header], max_value_length)
139
139
  config.ui.stdout.puts(entry_line)
140
140
  end
141
141
  end
@@ -152,10 +152,11 @@ module ZTK
152
152
  def max_spreadsheet_lengths(headers, rows)
153
153
  max_lengths = OpenStruct.new
154
154
  headers.each do |header|
155
- collection = [header, rows.map(&header)].flatten
155
+ collection = [header, rows.collect{|r| r.send(:table)[header] } ].flatten
156
156
  maximum = collection.map(&:to_s).map(&:length).max
157
- max_lengths.send("#{header}=", maximum)
157
+ max_lengths.send(:table)[header] = maximum
158
158
  end
159
+
159
160
  max_lengths
160
161
  end
161
162
 
@@ -167,8 +168,9 @@ module ZTK
167
168
 
168
169
  def format_header(headers, lengths)
169
170
  line = headers.collect do |header|
170
- "-" * lengths.send(header)
171
+ "-" * lengths.send(:table)[header]
171
172
  end
173
+
172
174
  ["+-", line.join("-+-"), "-+"].join.strip
173
175
  end
174
176
 
data/lib/ztk/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module ZTK
2
2
 
3
3
  # ZTK Version String
4
- VERSION = "1.4.11"
4
+ VERSION = "1.4.12"
5
5
 
6
6
  end
data/spec/ztk/dsl_spec.rb CHANGED
@@ -160,18 +160,24 @@ describe ZTK::DSL do
160
160
  end
161
161
 
162
162
  it "can has_many via direct object id assignment" do
163
- env = Environment.new do
163
+ env = Environment.new :env do
164
164
  name "environment"
165
165
  end
166
- con0 = Container.new do
166
+ con0 = Container.new :con0 do
167
167
  name "container0"
168
168
  end
169
- con1 = Container.new do
169
+ con1 = Container.new :con1 do
170
170
  name "container1"
171
171
  end
172
- con2 = Container.new do
172
+ con2 = Container.new :con2 do
173
173
  name "container2"
174
174
  end
175
+
176
+ env.id.should == :env
177
+ con0.id.should == :con0
178
+ con1.id.should == :con1
179
+ con2.id.should == :con2
180
+
175
181
  con0.environment_id = env.id
176
182
  con1.environment_id = env.id
177
183
  con2.environment_id = env.id
data/spec/ztk/pty_spec.rb CHANGED
@@ -41,28 +41,32 @@ describe ZTK::PTY do
41
41
  end.should_not raise_error
42
42
  end
43
43
 
44
- it "should spawn a command without a block" do
45
- lambda do
44
+ it "should not spawn a command without a block" do
45
+ lambda {
46
46
  r, w, p = subject.spawn("hostname")
47
- end.should_not raise_error
47
+ }.should raise_error
48
48
  end
49
49
 
50
50
  describe "spawn" do
51
51
 
52
52
  it "should be able to spawn the command \"hostname\"" do
53
53
  data = %x(hostname).chomp
54
+ output = nil
54
55
 
55
- reader, writer, pid = subject.spawn("hostname")
56
- output = reader.readpartial(READ_PARTIAL_CHUNK).chomp
56
+ subject.spawn("hostname") do |r, w, p|
57
+ output = r.readpartial(READ_PARTIAL_CHUNK).chomp
58
+ end
57
59
 
58
60
  output.should == data
59
61
  end
60
62
 
61
63
  it "should return the output of spawned commands" do
62
64
  data = "Hello World @ #{Time.now.utc}"
65
+ output = nil
63
66
 
64
- reader, writer, pid = subject.spawn(%(echo "#{data}"))
65
- output = reader.readpartial(READ_PARTIAL_CHUNK).chomp
67
+ subject.spawn(%(echo "#{data}")) do |r, w, p|
68
+ output = r.readpartial(READ_PARTIAL_CHUNK).chomp
69
+ end
66
70
 
67
71
  output.should == data
68
72
  end
@@ -71,9 +75,11 @@ describe ZTK::PTY do
71
75
 
72
76
  it "should capture stdout and send it to the reader" do
73
77
  data = "Hello World @ #{Time.now.utc}"
78
+ output = nil
74
79
 
75
- reader, writer, pid = subject.spawn(%(echo "#{data}" >&1))
76
- output = reader.readpartial(READ_PARTIAL_CHUNK).chomp
80
+ subject.spawn(%(echo "#{data}" >&1)) do |r, w, p|
81
+ output = r.readpartial(READ_PARTIAL_CHUNK).chomp
82
+ end
77
83
 
78
84
  output.should == data
79
85
  end
@@ -84,9 +90,11 @@ describe ZTK::PTY do
84
90
 
85
91
  it "should capture stderr and send it to the reader" do
86
92
  data = "Hello World @ #{Time.now.utc}"
93
+ output = nil
87
94
 
88
- reader, writer, pid = subject.spawn(%(echo "#{data}" >&2))
89
- output = reader.readpartial(READ_PARTIAL_CHUNK).chomp
95
+ subject.spawn(%(echo "#{data}" >&2)) do |r, w, p|
96
+ output = r.readpartial(READ_PARTIAL_CHUNK).chomp
97
+ end
90
98
 
91
99
  output.should == data
92
100
  end
metadata CHANGED
@@ -1,184 +1,172 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ztk
3
- version: !ruby/object:Gem::Version
4
- version: 1.4.11
3
+ version: !ruby/object:Gem::Version
4
+ hash: 31
5
5
  prerelease:
6
+ segments:
7
+ - 1
8
+ - 4
9
+ - 12
10
+ version: 1.4.12
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Zachary Patten
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2013-05-06 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: erubis
16
- requirement: !ruby/object:Gem::Requirement
17
+
18
+ date: 2013-05-09 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ version_requirements: &id001 !ruby/object:Gem::Requirement
17
22
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :runtime
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ hash: 3
27
+ segments:
28
+ - 0
29
+ version: "0"
23
30
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
31
+ type: :runtime
32
+ requirement: *id001
33
+ name: erubis
34
+ - !ruby/object:Gem::Dependency
35
+ version_requirements: &id002 !ruby/object:Gem::Requirement
25
36
  none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
30
- - !ruby/object:Gem::Dependency
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ hash: 3
41
+ segments:
42
+ - 0
43
+ version: "0"
44
+ prerelease: false
45
+ type: :runtime
46
+ requirement: *id002
31
47
  name: net-ssh
32
- requirement: !ruby/object:Gem::Requirement
48
+ - !ruby/object:Gem::Dependency
49
+ version_requirements: &id003 !ruby/object:Gem::Requirement
33
50
  none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
38
- type: :runtime
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ hash: 3
55
+ segments:
56
+ - 0
57
+ version: "0"
39
58
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
- - !ruby/object:Gem::Dependency
59
+ type: :runtime
60
+ requirement: *id003
47
61
  name: net-sftp
48
- requirement: !ruby/object:Gem::Requirement
62
+ - !ruby/object:Gem::Dependency
63
+ version_requirements: &id004 !ruby/object:Gem::Requirement
49
64
  none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: '0'
54
- type: :runtime
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ hash: 3
69
+ segments:
70
+ - 0
71
+ version: "0"
55
72
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- - !ruby/object:Gem::Dependency
73
+ type: :runtime
74
+ requirement: *id004
63
75
  name: activesupport
64
- requirement: !ruby/object:Gem::Requirement
76
+ - !ruby/object:Gem::Dependency
77
+ version_requirements: &id005 !ruby/object:Gem::Requirement
65
78
  none: false
66
- requirements:
67
- - - ! '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
- type: :runtime
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ hash: 3
83
+ segments:
84
+ - 0
85
+ version: "0"
71
86
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
78
- - !ruby/object:Gem::Dependency
87
+ type: :development
88
+ requirement: *id005
79
89
  name: pry
80
- requirement: !ruby/object:Gem::Requirement
90
+ - !ruby/object:Gem::Dependency
91
+ version_requirements: &id006 !ruby/object:Gem::Requirement
81
92
  none: false
82
- requirements:
83
- - - ! '>='
84
- - !ruby/object:Gem::Version
85
- version: '0'
86
- type: :development
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ hash: 3
97
+ segments:
98
+ - 0
99
+ version: "0"
87
100
  prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ! '>='
92
- - !ruby/object:Gem::Version
93
- version: '0'
94
- - !ruby/object:Gem::Dependency
101
+ type: :development
102
+ requirement: *id006
95
103
  name: rake
96
- requirement: !ruby/object:Gem::Requirement
104
+ - !ruby/object:Gem::Dependency
105
+ version_requirements: &id007 !ruby/object:Gem::Requirement
97
106
  none: false
98
- requirements:
99
- - - ! '>='
100
- - !ruby/object:Gem::Version
101
- version: '0'
102
- type: :development
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ hash: 3
111
+ segments:
112
+ - 0
113
+ version: "0"
103
114
  prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ! '>='
108
- - !ruby/object:Gem::Version
109
- version: '0'
110
- - !ruby/object:Gem::Dependency
115
+ type: :development
116
+ requirement: *id007
111
117
  name: rspec
112
- requirement: !ruby/object:Gem::Requirement
118
+ - !ruby/object:Gem::Dependency
119
+ version_requirements: &id008 !ruby/object:Gem::Requirement
113
120
  none: false
114
- requirements:
115
- - - ! '>='
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ hash: 3
125
+ segments:
126
+ - 0
127
+ version: "0"
119
128
  prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
- requirements:
123
- - - ! '>='
124
- - !ruby/object:Gem::Version
125
- version: '0'
126
- - !ruby/object:Gem::Dependency
129
+ type: :development
130
+ requirement: *id008
127
131
  name: yard
128
- requirement: !ruby/object:Gem::Requirement
132
+ - !ruby/object:Gem::Dependency
133
+ version_requirements: &id009 !ruby/object:Gem::Requirement
129
134
  none: false
130
- requirements:
131
- - - ! '>='
132
- - !ruby/object:Gem::Version
133
- version: '0'
134
- type: :development
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ hash: 3
139
+ segments:
140
+ - 0
141
+ version: "0"
135
142
  prerelease: false
136
- version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
- requirements:
139
- - - ! '>='
140
- - !ruby/object:Gem::Version
141
- version: '0'
142
- - !ruby/object:Gem::Dependency
143
+ type: :development
144
+ requirement: *id009
143
145
  name: redcarpet
144
- requirement: !ruby/object:Gem::Requirement
146
+ - !ruby/object:Gem::Dependency
147
+ version_requirements: &id010 !ruby/object:Gem::Requirement
145
148
  none: false
146
- requirements:
147
- - - ! '>='
148
- - !ruby/object:Gem::Version
149
- version: '0'
150
- type: :development
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ hash: 3
153
+ segments:
154
+ - 0
155
+ version: "0"
151
156
  prerelease: false
152
- version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
- requirements:
155
- - - ! '>='
156
- - !ruby/object:Gem::Version
157
- version: '0'
158
- - !ruby/object:Gem::Dependency
159
- name: coveralls
160
- requirement: !ruby/object:Gem::Requirement
161
- none: false
162
- requirements:
163
- - - ! '>='
164
- - !ruby/object:Gem::Version
165
- version: '0'
166
157
  type: :development
167
- prerelease: false
168
- version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
- requirements:
171
- - - ! '>='
172
- - !ruby/object:Gem::Version
173
- version: '0'
158
+ requirement: *id010
159
+ name: coveralls
174
160
  description: Zachary's (DevOp) Tool Kit
175
- email:
161
+ email:
176
162
  - zachary AT jovelabs DOT com
177
- executables:
163
+ executables:
178
164
  - ztk
179
165
  extensions: []
166
+
180
167
  extra_rdoc_files: []
181
- files:
168
+
169
+ files:
182
170
  - .gitignore
183
171
  - .rspec
184
172
  - .ruby-gemset
@@ -251,37 +239,39 @@ files:
251
239
  - spec/ztk/version_spec.rb
252
240
  - ztk.gemspec
253
241
  homepage: https://github.com/zpatten/ztk
254
- licenses:
242
+ licenses:
255
243
  - Apache 2.0
256
244
  post_install_message:
257
245
  rdoc_options: []
258
- require_paths:
246
+
247
+ require_paths:
259
248
  - lib
260
- required_ruby_version: !ruby/object:Gem::Requirement
249
+ required_ruby_version: !ruby/object:Gem::Requirement
261
250
  none: false
262
- requirements:
263
- - - ! '>='
264
- - !ruby/object:Gem::Version
265
- version: '0'
266
- segments:
251
+ requirements:
252
+ - - ">="
253
+ - !ruby/object:Gem::Version
254
+ hash: 3
255
+ segments:
267
256
  - 0
268
- hash: -2911001684246105394
269
- required_rubygems_version: !ruby/object:Gem::Requirement
257
+ version: "0"
258
+ required_rubygems_version: !ruby/object:Gem::Requirement
270
259
  none: false
271
- requirements:
272
- - - ! '>='
273
- - !ruby/object:Gem::Version
274
- version: '0'
275
- segments:
260
+ requirements:
261
+ - - ">="
262
+ - !ruby/object:Gem::Version
263
+ hash: 3
264
+ segments:
276
265
  - 0
277
- hash: -2911001684246105394
266
+ version: "0"
278
267
  requirements: []
268
+
279
269
  rubyforge_project:
280
270
  rubygems_version: 1.8.25
281
271
  signing_key:
282
272
  specification_version: 3
283
273
  summary: Zachary's (DevOp) Tool Kit
284
- test_files:
274
+ test_files:
285
275
  - spec/spec_helper.rb
286
276
  - spec/support/before_install.sh
287
277
  - spec/support/test-config.rb