ztk 3.1.0 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/Rakefile +1 -1
  4. data/lib/ztk.rb +2 -2
  5. data/lib/ztk/ansi.rb +2 -2
  6. data/lib/ztk/background.rb +3 -43
  7. data/lib/ztk/base.rb +2 -2
  8. data/lib/ztk/benchmark.rb +3 -15
  9. data/lib/ztk/command.rb +5 -3
  10. data/lib/ztk/config.rb +2 -2
  11. data/lib/ztk/dsl.rb +2 -2
  12. data/lib/ztk/dsl/base.rb +2 -2
  13. data/lib/ztk/dsl/core.rb +3 -3
  14. data/lib/ztk/dsl/core/actions.rb +1 -1
  15. data/lib/ztk/dsl/core/actions/find.rb +2 -2
  16. data/lib/ztk/dsl/core/actions/timestamps.rb +2 -2
  17. data/lib/ztk/dsl/core/attributes.rb +2 -2
  18. data/lib/ztk/dsl/core/dataset.rb +2 -2
  19. data/lib/ztk/dsl/core/io.rb +2 -2
  20. data/lib/ztk/dsl/core/options.rb +2 -2
  21. data/lib/ztk/dsl/core/relations.rb +2 -2
  22. data/lib/ztk/dsl/core/relations/belongs_to.rb +2 -2
  23. data/lib/ztk/dsl/core/relations/has_many.rb +2 -2
  24. data/lib/ztk/google_chart.rb +2 -2
  25. data/lib/ztk/locator.rb +2 -2
  26. data/lib/ztk/logger.rb +10 -6
  27. data/lib/ztk/parallel.rb +3 -53
  28. data/lib/ztk/profiler.rb +4 -4
  29. data/lib/ztk/pty.rb +2 -2
  30. data/lib/ztk/rake/docs.rb +4 -2
  31. data/lib/ztk/report.rb +2 -2
  32. data/lib/ztk/rescue_retry.rb +7 -41
  33. data/lib/ztk/spinner.rb +3 -3
  34. data/lib/ztk/ssh.rb +2 -2
  35. data/lib/ztk/tcp_socket_check.rb +2 -2
  36. data/lib/ztk/template.rb +2 -2
  37. data/lib/ztk/ui.rb +2 -2
  38. data/lib/ztk/version.rb +1 -1
  39. data/spec/spec_helper.rb +1 -1
  40. data/spec/support/before_install.sh +1 -1
  41. data/spec/ztk/ansi_spec.rb +1 -1
  42. data/spec/ztk/background_spec.rb +1 -1
  43. data/spec/ztk/base_spec.rb +1 -1
  44. data/spec/ztk/benchmark_spec.rb +1 -1
  45. data/spec/ztk/command_spec.rb +1 -1
  46. data/spec/ztk/config_spec.rb +1 -1
  47. data/spec/ztk/dsl_spec.rb +1 -1
  48. data/spec/ztk/locator_spec.rb +1 -1
  49. data/spec/ztk/logger_spec.rb +1 -1
  50. data/spec/ztk/parallel_spec.rb +1 -1
  51. data/spec/ztk/profiler_spec.rb +1 -1
  52. data/spec/ztk/pty_spec.rb +1 -1
  53. data/spec/ztk/rescue_retry_spec.rb +1 -1
  54. data/spec/ztk/spinner_spec.rb +1 -1
  55. data/spec/ztk/ssh_spec.rb +1 -1
  56. data/spec/ztk/tcp_socket_check_spec.rb +1 -1
  57. data/spec/ztk/template_spec.rb +1 -1
  58. data/spec/ztk/ui_spec.rb +1 -1
  59. data/spec/ztk/version_spec.rb +1 -1
  60. data/ztk.gemspec +2 -2
  61. metadata +2 -3
  62. data/.yardopts +0 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1209eb8e5e2897a3911c0e7048080bc532b86c43
4
- data.tar.gz: 0b41dee03dac4f105de394722dfa9608e98fc221
3
+ metadata.gz: c57ed48dc9a7a8ea11f7461921dcb6313d67cdfc
4
+ data.tar.gz: c1cd99736a83e539f5d465070444d69d88a943ce
5
5
  SHA512:
6
- metadata.gz: d79fceb184898082b9db8edb3c040aee94edb10f07b25588daf7700c5813699652f3c7dc0973ef23f29a0e6e601e8d93590cc3c01e86e086603074f27d300789
7
- data.tar.gz: 7759484bac6dff0b686c7ae43e54a6e60ca10bfbaa288b5f9522fd0acab96816d0212c89bc4e0de1f6ae5445576822ae83a2b7541362ec317d36f20151dcca17
6
+ metadata.gz: 093b9939c50d55c8c3b5ba4bde9331b3e8e8c1a22c1c0be32137a4e89d1ad615c1171489dbf60604edb43fe47d7131992b442ae6b315dda8f85fda8989697f69
7
+ data.tar.gz: da0f11da1715c9daa86154e51615e9bb15423d856ce6e2d408c599a7a85771c639c3ee8be1cda63faa24e9bfb7cd57941bfc7d37c83c3170c1448607e43e03d5
data/README.md CHANGED
@@ -104,7 +104,7 @@ Issues:
104
104
 
105
105
  ZTK - Zachary's Tool Kit
106
106
 
107
- * Author: Zachary Patten <zachary AT jovelabs DOT com> [![endorse](http://api.coderwall.com/zpatten/endorsecount.png)](http://coderwall.com/zpatten)
107
+ * Author: Zachary Patten <zpatten AT jovelabs DOT io>
108
108
  * Copyright: Copyright (c) Zachary Patten
109
109
  * License: Apache License, Version 2.0
110
110
 
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  ################################################################################
2
2
  #
3
- # Author: Zachary Patten <zachary AT jovelabs DOT com>
3
+ # Author: Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # Copyright: Copyright (c) Zachary Patten
5
5
  # License: Apache License, Version 2.0
6
6
  #
data/lib/ztk.rb CHANGED
@@ -6,12 +6,12 @@ require 'ztk/version'
6
6
  # in mind. It provides several classes that ease SSH and SFTP, templating,
7
7
  # and a myraid of other activities.
8
8
  #
9
- # @author Zachary Patten <zachary AT jovelabs DOT com>
9
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
10
10
  module ZTK
11
11
 
12
12
  # ZTK error class
13
13
  #
14
- # @author Zachary Patten <zachary AT jovelabs DOT com>
14
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
15
15
  class Error < StandardError; end
16
16
 
17
17
  require 'ztk/base'
@@ -2,7 +2,7 @@ module ZTK
2
2
 
3
3
  # ANSI Error Class
4
4
  #
5
- # @author Zachary Patten <zachary AT jovelabs DOT com>
5
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
6
6
  class ANSIError < Error; end
7
7
 
8
8
  # ANSI Mixin Module
@@ -15,7 +15,7 @@ module ZTK
15
15
  # @example Or
16
16
  # "green".green
17
17
  #
18
- # @author Zachary Patten <zachary AT jovelabs DOT com>
18
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
19
19
  module ANSI
20
20
 
21
21
  # Defines our ANSI color codes
@@ -4,7 +4,7 @@ module ZTK
4
4
 
5
5
  # Background Error Class
6
6
  #
7
- # @author Zachary Patten <zachary AT jovelabs DOT com>
7
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
8
8
  class BackgroundError < Error; end
9
9
 
10
10
  # Background Processing Class
@@ -16,7 +16,7 @@ module ZTK
16
16
  # The after fork callback is called twice, once in the parent process and once
17
17
  # in the child process.
18
18
  #
19
- # *example code*:
19
+ # @example Run a background process which simply sleeps illustrating the callback hooks:
20
20
  #
21
21
  # a_callback = Proc.new do |pid|
22
22
  # puts "Hello from After Callback - PID #{pid}"
@@ -40,47 +40,7 @@ module ZTK
40
40
  # background.wait
41
41
  # puts background.result.inspect
42
42
  #
43
- # *pry output*:
44
- #
45
- # [1] pry(main)> a_callback = Proc.new do |pid|
46
- # [1] pry(main)* puts "Hello from After Callback - PID #{pid}"
47
- # [1] pry(main)* end
48
- # => #<Proc:0x00000001368a98@(pry):1>
49
- # [2] pry(main)>
50
- # [3] pry(main)> b_callback = Proc.new do |pid|
51
- # [3] pry(main)* puts "Hello from Before Callback - PID #{pid}"
52
- # [3] pry(main)* end
53
- # => #<Proc:0x00000001060418@(pry):4>
54
- # [4] pry(main)>
55
- # [5] pry(main)> background = ZTK::Background.new
56
- # => #<ZTK::Background:0x00000001379118
57
- # @config=
58
- # #<OpenStruct stdout=#<IO:<STDOUT>>, stderr=#<IO:<STDERR>>, stdin=#<IO:<STDIN>>, logger=#<ZTK::Logger filename="/dev/null">>,
59
- # @result=nil>
60
- # [6] pry(main)> background.config do |config|
61
- # [6] pry(main)* config.before_fork = b_callback
62
- # [6] pry(main)* config.after_fork = a_callback
63
- # [6] pry(main)* end
64
- # => #<Proc:0x00000001368a98@(pry):1>
65
- # [7] pry(main)>
66
- # [8] pry(main)> pid = background.process do
67
- # [8] pry(main)* sleep(1)
68
- # [8] pry(main)* end
69
- # Hello from Before Callback - PID 23564
70
- # Hello from After Callback - PID 23564
71
- # Hello from After Callback - PID 23578
72
- # => 23578
73
- # [9] pry(main)> puts pid.inspect
74
- # 23578
75
- # => nil
76
- # [10] pry(main)>
77
- # [11] pry(main)> background.wait
78
- # => [23578, #<Process::Status: pid 23578 exit 0>, 1]
79
- # [12] pry(main)> puts background.result.inspect
80
- # 1
81
- # => nil
82
- #
83
- # @author Zachary Patten <zachary AT jovelabs DOT com>
43
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
84
44
  class Background < ZTK::Base
85
45
 
86
46
  # Result Set
@@ -4,7 +4,7 @@ module ZTK
4
4
 
5
5
  # Base Error Class
6
6
  #
7
- # @author Zachary Patten <zachary AT jovelabs DOT com>
7
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
8
8
  class BaseError < Error; end
9
9
 
10
10
  # Base Class
@@ -16,7 +16,7 @@ module ZTK
16
16
  # You should never interact with this class directly; you should inherit it
17
17
  # and extend functionality as appropriate.
18
18
  #
19
- # @author Zachary Patten <zachary AT jovelabs DOT com>
19
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
20
20
  class Base
21
21
 
22
22
  class << self
@@ -4,7 +4,7 @@ module ZTK
4
4
 
5
5
  # Benchmark Error Class
6
6
  #
7
- # @author Zachary Patten <zachary AT jovelabs DOT com>
7
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
8
8
  class BenchmarkError < Error; end
9
9
 
10
10
  # Benchmark Class
@@ -16,7 +16,7 @@ module ZTK
16
16
  # the appropriate options it will display output to the user while
17
17
  # benchmarking the supplied block.
18
18
  #
19
- # *example code*:
19
+ # @example Benchmark a simple sleep statement
20
20
  #
21
21
  # message = "I wonder how long this will take?"
22
22
  # mark = " ...looks like it took %0.4f seconds!"
@@ -24,19 +24,7 @@ module ZTK
24
24
  # sleep(1.5)
25
25
  # end
26
26
  #
27
- # *pry output*:
28
- #
29
- # [1] pry(main)> message = "I wonder how long this will take?"
30
- # => "I wonder how long this will take?"
31
- # [2] pry(main)> mark = " ...looks like it took %0.4f seconds!"
32
- # => " ...looks like it took %0.4f seconds!"
33
- # [3] pry(main)> ZTK::Benchmark.bench(:message => message, :mark => mark) do
34
- # [3] pry(main)* sleep(1.5)
35
- # [3] pry(main)* end
36
- # I wonder how long this will take? ...looks like it took 1.5229 seconds!
37
- # => 1.522871547
38
- #
39
- # @author Zachary Patten <zachary AT jovelabs DOT com>
27
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
40
28
  class Benchmark
41
29
 
42
30
  class << self
@@ -2,21 +2,23 @@ module ZTK
2
2
 
3
3
  # Command Error Class
4
4
  #
5
- # @author Zachary Patten <zachary AT jovelabs DOT com>
5
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
6
6
  class CommandError < Error; end
7
7
 
8
8
  # Command Execution Class
9
9
  #
10
10
  # @example We can get a new instance of Command like so:
11
+ #
11
12
  # cmd = ZTK::Command.new
12
13
  #
13
- # @example If we wanted to redirect STDOUT and STDERR to a StringIO we can do this:
14
+ # @example Run a command and redirect STDOUT and STDERR to a StringIO
15
+ #
14
16
  # std_combo = StringIO.new
15
17
  # ui = ZTK::UI.new(:stdout => std_combo, :stderr => std_combo)
16
18
  # cmd = ZTK::Command.new(:ui => ui, :silence => true)
17
19
  # puts cmd.exec("hostname", :silence => false).inspect
18
20
  #
19
- # @author Zachary Patten <zachary AT jovelabs DOT com>
21
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
20
22
  class Command < ZTK::Base
21
23
  require 'ostruct'
22
24
  require 'timeout'
@@ -4,7 +4,7 @@ module ZTK
4
4
 
5
5
  # Config Error Class
6
6
  #
7
- # @author Zachary Patten <zachary AT jovelabs DOT com>
7
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
8
8
  class ConfigError < Error; end
9
9
 
10
10
  # Configuration Module
@@ -43,7 +43,7 @@ module ZTK
43
43
  #
44
44
  # puts C.message
45
45
  #
46
- # @author Zachary Patten <zachary AT jovelabs DOT com>
46
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
47
47
  module Config
48
48
 
49
49
  # Extend base class with this module.
@@ -5,10 +5,10 @@ module ZTK
5
5
  # Generic Domain-specific Language Interface
6
6
  #
7
7
  # @see ZTK::DSL::Base
8
- # @author Zachary Patten <zachary AT jovelabs DOT com>
8
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
9
9
  module DSL
10
10
 
11
- # @author Zachary Patten <zachary AT jovelabs DOT com>
11
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
12
12
  class DSLError < Error; end
13
13
 
14
14
  require 'ztk/dsl/core'
@@ -128,7 +128,7 @@ module ZTK::DSL
128
128
  # [9] pry(main)> Server.find(:my_server)
129
129
  # => [#<Server id=:my_server attributes={:id=>:my_server, :name=>"my-server", :network_id=>:leet_net}, belongs_to_references=1>]
130
130
  #
131
- # @author Zachary Patten <zachary AT jovelabs DOT com>
131
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
132
132
  class Base
133
133
  include(ZTK::DSL::Core)
134
134
 
@@ -185,7 +185,7 @@ module ZTK::DSL
185
185
  "#<#{self.class.to_s} id=#{self.id.inspect} #{details.join(', ')}>"
186
186
  end
187
187
 
188
- # @author Zachary Patten <zachary AT jovelabs DOT com>
188
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
189
189
  module ClassMethods
190
190
 
191
191
  # Class Inspect
@@ -2,7 +2,7 @@ module ZTK::DSL
2
2
 
3
3
  # DSL Core
4
4
  #
5
- # @author Zachary Patten <zachary AT jovelabs DOT com>
5
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
6
6
  # @api private
7
7
  module Core
8
8
  require 'ztk/dsl/core/attributes'
@@ -28,7 +28,7 @@ module ZTK::DSL
28
28
  end
29
29
  end
30
30
 
31
- # @author Zachary Patten <zachary AT jovelabs DOT com>
31
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
32
32
  # module DualMethods
33
33
 
34
34
  # def logger
@@ -43,7 +43,7 @@ module ZTK::DSL
43
43
 
44
44
  # end
45
45
 
46
- # @author Zachary Patten <zachary AT jovelabs DOT com>
46
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
47
47
  module ClassMethods
48
48
 
49
49
  def cattr_accessor(*args)
@@ -1,6 +1,6 @@
1
1
  module ZTK::DSL::Core
2
2
 
3
- # @author Zachary Patten <zachary AT jovelabs DOT com>
3
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # @api private
5
5
  module Actions
6
6
  require 'ztk/dsl/core/actions/find'
@@ -1,6 +1,6 @@
1
1
  module ZTK::DSL::Core::Actions
2
2
 
3
- # @author Zachary Patten <zachary AT jovelabs DOT com>
3
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # @api private
5
5
  module Find
6
6
 
@@ -10,7 +10,7 @@ module ZTK::DSL::Core::Actions
10
10
  end
11
11
  end
12
12
 
13
- # @author Zachary Patten <zachary AT jovelabs DOT com>
13
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
14
14
  module ClassMethods
15
15
 
16
16
  def all
@@ -1,6 +1,6 @@
1
1
  module ZTK::DSL::Core::Actions
2
2
 
3
- # @author Zachary Patten <zachary AT jovelabs DOT com>
3
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # @api private
5
5
  module Timestamps
6
6
 
@@ -14,7 +14,7 @@ module ZTK::DSL::Core::Actions
14
14
  end
15
15
  end
16
16
 
17
- # @author Zachary Patten <zachary AT jovelabs DOT com>
17
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
18
18
  module ClassMethods
19
19
 
20
20
  def updated_at_timestamp
@@ -1,6 +1,6 @@
1
1
  module ZTK::DSL::Core
2
2
 
3
- # @author Zachary Patten <zachary AT jovelabs DOT com>
3
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # @api private
5
5
  module Attributes
6
6
 
@@ -16,7 +16,7 @@ module ZTK::DSL::Core
16
16
  @attributes ||= Hash.new
17
17
  end
18
18
 
19
- # @author Zachary Patten <zachary AT jovelabs DOT com>
19
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
20
20
  module ClassMethods
21
21
 
22
22
  def attribute(key, options={})
@@ -1,6 +1,6 @@
1
1
  module ZTK::DSL::Core
2
2
 
3
- # @author Zachary Patten <zachary AT jovelabs DOT com>
3
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # @api private
5
5
  module Dataset
6
6
 
@@ -10,7 +10,7 @@ module ZTK::DSL::Core
10
10
  end
11
11
  end
12
12
 
13
- # @author Zachary Patten <zachary AT jovelabs DOT com>
13
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
14
14
  module ClassMethods
15
15
 
16
16
  def dataset
@@ -1,6 +1,6 @@
1
1
  module ZTK::DSL::Core
2
2
 
3
- # @author Zachary Patten <zachary AT jovelabs DOT com>
3
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # @api private
5
5
  module IO
6
6
 
@@ -10,7 +10,7 @@ module ZTK::DSL::Core
10
10
  end
11
11
  end
12
12
 
13
- # @author Zachary Patten <zachary AT jovelabs DOT com>
13
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
14
14
  module ClassMethods
15
15
 
16
16
  def load(rb_file)
@@ -1,6 +1,6 @@
1
1
  module ZTK::DSL::Core
2
2
 
3
- # @author Zachary Patten <zachary AT jovelabs DOT com>
3
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # @api private
5
5
  module Options
6
6
 
@@ -10,7 +10,7 @@ module ZTK::DSL::Core
10
10
  end
11
11
  end
12
12
 
13
- # @author Zachary Patten <zachary AT jovelabs DOT com>
13
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
14
14
  module ClassMethods
15
15
 
16
16
  def add_option(key)
@@ -1,6 +1,6 @@
1
1
  module ZTK::DSL::Core
2
2
 
3
- # @author Zachary Patten <zachary AT jovelabs DOT com>
3
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # @api private
5
5
  module Relations
6
6
  require 'ztk/dsl/core/relations/belongs_to'
@@ -14,7 +14,7 @@ module ZTK::DSL::Core
14
14
  end
15
15
  end
16
16
 
17
- # @author Zachary Patten <zachary AT jovelabs DOT com>
17
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
18
18
  module ClassMethods
19
19
 
20
20
  def add_relation(key)
@@ -1,6 +1,6 @@
1
1
  module ZTK::DSL::Core::Relations
2
2
 
3
- # @author Zachary Patten <zachary AT jovelabs DOT com>
3
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # @api private
5
5
  module BelongsTo
6
6
 
@@ -44,7 +44,7 @@ module ZTK::DSL::Core::Relations
44
44
  end
45
45
  end
46
46
 
47
- # @author Zachary Patten <zachary AT jovelabs DOT com>
47
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
48
48
  module ClassMethods
49
49
 
50
50
  def belongs_to(key, options={})
@@ -1,6 +1,6 @@
1
1
  module ZTK::DSL::Core::Relations
2
2
 
3
- # @author Zachary Patten <zachary AT jovelabs DOT com>
3
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # @api private
5
5
  module HasMany
6
6
 
@@ -37,7 +37,7 @@ module ZTK::DSL::Core::Relations
37
37
  end
38
38
  end
39
39
 
40
- # @author Zachary Patten <zachary AT jovelabs DOT com>
40
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
41
41
  module ClassMethods
42
42
 
43
43
  def has_many(key, options={})
@@ -2,12 +2,12 @@ module ZTK
2
2
 
3
3
  # GoogleChart Class
4
4
  #
5
- # @author Zachary Patten <zachary AT jovelabs DOT com>
5
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
6
6
  module GoogleChart
7
7
 
8
8
  # GoogleChart Error Class
9
9
  #
10
- # @author Zachary Patten <zachary AT jovelabs DOT com>
10
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
11
11
  class GoogleChartError < Error; end
12
12
 
13
13
  require 'ztk/google_chart/base'
@@ -2,10 +2,10 @@ module ZTK
2
2
 
3
3
  # Locator Error Class
4
4
  #
5
- # @author Zachary Patten <zachary AT jovelabs DOT com>
5
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
6
6
  class LocatorError < Error; end
7
7
 
8
- # @author Zachary Patten <zachary AT jovelabs DOT com>
8
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
9
9
  class Locator
10
10
 
11
11
  class << self
@@ -15,10 +15,14 @@ module ZTK
15
15
  # existing logging statements.
16
16
  #
17
17
  # One can override the logging level on the command line with programs that
18
- # use this library like so:
19
- # LOG_LEVEL=DEBUG bin/cucumber-chef ssh
18
+ # use this library by defining the *LOG_LEVEL* environment variable to the
19
+ # desired logging level.
20
20
  #
21
- # *Typical usage*:
21
+ # @example Override the logging level at runtime
22
+ #
23
+ # LOG_LEVEL=DEBUG bin/a_ruby_script.rb
24
+ #
25
+ # @example Typical usage
22
26
  #
23
27
  # $logger = ZTK::Logger.new("/dev/null")
24
28
  #
@@ -28,7 +32,7 @@ module ZTK
28
32
  # $logger.error { "This is a error message!" }
29
33
  # $logger.fatal { "This is a fatal message!" }
30
34
  #
31
- # *Simple logger chain*:
35
+ # @example Simple logger chaining
32
36
  #
33
37
  # logger = ZTK::Logger.new
34
38
  # logger.loggers << ::Logger.new(STDOUT)
@@ -36,14 +40,14 @@ module ZTK
36
40
  #
37
41
  # logger.debug { "This will be written to STDOUT as well as test.log!" }
38
42
  #
39
- # *Alternate logger chaining*:
43
+ # @example Simple logger chaining
40
44
  #
41
45
  # logger = ZTK::Logger.new(STDOUT)
42
46
  # logger.loggers << ::Logger.new('test.log')
43
47
  #
44
48
  # logger.debug { "This will be written to STDOUT as well as test.log!" }
45
49
  #
46
- # @author Zachary Patten <zachary AT jovelabs DOT com>
50
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
47
51
  class Logger < ::Logger
48
52
 
49
53
  # Log Levels
@@ -4,7 +4,7 @@ module ZTK
4
4
 
5
5
  # Parallel Error Class
6
6
  #
7
- # @author Zachary Patten <zachary AT jovelabs DOT com>
7
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
8
8
  class ParallelError < Error; end
9
9
 
10
10
  # Parallel Processing Class
@@ -16,7 +16,7 @@ module ZTK
16
16
  # The after fork callback is called twice, once in the parent process and once
17
17
  # in the child process.
18
18
  #
19
- # *example code*:
19
+ # @example Parallel processing with callbacks
20
20
  #
21
21
  # a_callback = Proc.new do |pid|
22
22
  # puts "Hello from After Callback - PID #{pid}"
@@ -43,57 +43,7 @@ module ZTK
43
43
  # parallel.waitall
44
44
  # puts parallel.results.inspect
45
45
  #
46
- # *pry output*:
47
- #
48
- # [1] pry(main)> a_callback = Proc.new do |pid|
49
- # [1] pry(main)* puts "Hello from After Callback - PID #{pid}"
50
- # [1] pry(main)* end
51
- # => #<Proc:0x000000015a8768@(pry):1>
52
- # [2] pry(main)>
53
- # [3] pry(main)> b_callback = Proc.new do |pid|
54
- # [3] pry(main)* puts "Hello from Before Callback - PID #{pid}"
55
- # [3] pry(main)* end
56
- # => #<Proc:0x000000012910e8@(pry):4>
57
- # [4] pry(main)>
58
- # [5] pry(main)> parallel = ZTK::Parallel.new
59
- # => #<ZTK::Parallel:0x000000015a9d48
60
- # @config=
61
- # #<OpenStruct stdout=#<IO:<STDOUT>>, stderr=#<IO:<STDERR>>, stdin=#<IO:<STDIN>>, logger=#<ZTK::Logger filename="/dev/null">, max_forks=12>,
62
- # @forks=[],
63
- # @results=[]>
64
- # [6] pry(main)> parallel.config do |config|
65
- # [6] pry(main)* config.before_fork = b_callback
66
- # [6] pry(main)* config.after_fork = a_callback
67
- # [6] pry(main)* end
68
- # => #<Proc:0x000000015a8768@(pry):1>
69
- # [7] pry(main)>
70
- # [8] pry(main)> puts Process.pid.inspect
71
- # 24761
72
- # => nil
73
- # [9] pry(main)>
74
- # [10] pry(main)> 3.times do |x|
75
- # [10] pry(main)* parallel.process do
76
- # [10] pry(main)* x
77
- # [10] pry(main)* end
78
- # [10] pry(main)* end
79
- # Hello from Before Callback - PID 24761
80
- # Hello from After Callback - PID 24761
81
- # Hello from Before Callback - PID 24761
82
- # Hello from After Callback - PID 24776
83
- # Hello from After Callback - PID 24761
84
- # Hello from Before Callback - PID 24761
85
- # Hello from After Callback - PID 24779
86
- # Hello from After Callback - PID 24761
87
- # Hello from After Callback - PID 24782
88
- # => 3
89
- # [11] pry(main)>
90
- # [12] pry(main)> parallel.waitall
91
- # => [0, 1, 2]
92
- # [13] pry(main)> puts parallel.results.inspect
93
- # [0, 1, 2]
94
- # => nil
95
- #
96
- # @author Zachary Patten <zachary AT jovelabs DOT com>
46
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
97
47
  class Parallel < ZTK::Base
98
48
 
99
49
  class Break < ParallelError; end
@@ -4,7 +4,7 @@ module ZTK
4
4
 
5
5
  # Profiler Error Class
6
6
  #
7
- # @author Zachary Patten <zachary AT jovelabs DOT com>
7
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
8
8
  class ProfilerError < Error; end
9
9
 
10
10
  # Profiler Class
@@ -13,7 +13,7 @@ module ZTK
13
13
  # to allow the consumer to define timing profiles in an ad hoc manner using
14
14
  # a block.
15
15
  #
16
- # *Example Code*:
16
+ # @example Nested profiling
17
17
  #
18
18
  # ZTK::Profiler.reset
19
19
  #
@@ -57,7 +57,7 @@ module ZTK
57
57
  #
58
58
  # ZTK::Profiler.report
59
59
  #
60
- # *Example Output*:
60
+ # @example Report output
61
61
  #
62
62
  # --+ OperationAlpha 0.6070s
63
63
  # |--+ OperationOne 0.3035s
@@ -91,7 +91,7 @@ module ZTK
91
91
  # Profiled Time: 0.9105s
92
92
  # Missing Time: 0.0005s
93
93
  #
94
- # @author Zachary Patten <zachary AT jovelabs DOT com>
94
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
95
95
  class Profiler
96
96
 
97
97
  require 'ztk/profiler/core'
@@ -2,14 +2,14 @@ module ZTK
2
2
 
3
3
  # PTY Error Class
4
4
  #
5
- # @author Zachary Patten <zachary AT jovelabs DOT com>
5
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
6
6
  class PTYError < Error; end
7
7
 
8
8
  # Ruby PTY Class Wrapper
9
9
  #
10
10
  # Wraps the Ruby PTY class, providing better functionality.
11
11
  #
12
- # @author Zachary Patten <zachary AT jovelabs DOT com>
12
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
13
13
  class PTY
14
14
  require 'pty'
15
15
 
@@ -1,3 +1,4 @@
1
+ require 'redcarpet'
1
2
  require 'yard'
2
3
  require 'yard/rake/yardoc_task'
3
4
 
@@ -8,7 +9,7 @@ DOC_PATH = File.join(VENDOR_PATH, "docs")
8
9
  namespace :docs do
9
10
 
10
11
  YARD::Rake::YardocTask.new(:generate) do |t|
11
- t.options = ['--verbose', '-o', DOC_PATH]
12
+ t.options = ['--markup-provider=redcarpet', '--markup=markdown', '--verbose', '-o', DOC_PATH]
12
13
  end
13
14
 
14
15
  namespace :ghpages do
@@ -40,8 +41,9 @@ namespace :docs do
40
41
  commit_message << stats
41
42
 
42
43
  Dir.chdir(DOC_PATH) do
44
+ FileUtils.touch('.nojekyll')
43
45
  system(%(git add -Av))
44
- system(%(git commit -m"#{commit_message.join}"))
46
+ system(%(git commit -S -m"#{commit_message.join}"))
45
47
  system(%(git push origin gh-pages))
46
48
  end
47
49
  end
@@ -2,7 +2,7 @@ module ZTK
2
2
 
3
3
  # Report Error Class
4
4
  #
5
- # @author Zachary Patten <zachary AT jovelabs DOT com>
5
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
6
6
  class ReportError < Error; end
7
7
 
8
8
  # Report Class
@@ -14,7 +14,7 @@ module ZTK
14
14
  #
15
15
  # The idea here is that everything is auto-sized and simply displayed.
16
16
  #
17
- # @author Zachary Patten <zachary AT jovelabs DOT com>
17
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
18
18
  class Report < ZTK::Base
19
19
  require 'socket'
20
20
  require 'timeout'
@@ -2,7 +2,7 @@ module ZTK
2
2
 
3
3
  # RescueRetry Error Class
4
4
  #
5
- # @author Zachary Patten <zachary AT jovelabs DOT com>
5
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
6
6
  class RescueRetryError < Error; end
7
7
 
8
8
  # RescueRetry Class
@@ -13,7 +13,7 @@ module ZTK
13
13
  # The block is yielded and if a valid exception occurs the block will be
14
14
  # re-executed for the set number of attempts.
15
15
  #
16
- # *example code*:
16
+ # @example Retry specific exceptions
17
17
  #
18
18
  # counter = 0
19
19
  # ZTK::RescueRetry.try(:tries => 3, :on => EOFError) do
@@ -22,6 +22,8 @@ module ZTK
22
22
  # end
23
23
  # puts counter.inspect
24
24
  #
25
+ # @example Retry all exceptions
26
+ #
25
27
  # counter = 0
26
28
  # ZTK::RescueRetry.try(:tries => 3) do
27
29
  # counter += 1
@@ -29,6 +31,8 @@ module ZTK
29
31
  # end
30
32
  # puts counter.inspect
31
33
  #
34
+ # @example Retry exception is skipped because it does not match conditions
35
+ #
32
36
  # counter = 0
33
37
  # ZTK::RescueRetry.try(:tries => 3, :on => EOFError) do
34
38
  # counter += 1
@@ -36,45 +40,7 @@ module ZTK
36
40
  # end
37
41
  # puts counter.inspect
38
42
  #
39
- # *pry output*:
40
- #
41
- # [1] pry(main)> counter = 0
42
- # => 0
43
- # [2] pry(main)> ZTK::RescueRetry.try(:tries => 3, :on => EOFError) do
44
- # [2] pry(main)* counter += 1
45
- # [2] pry(main)* raise EOFError
46
- # [2] pry(main)* end
47
- # EOFError: EOFError
48
- # from (pry):4:in `block in <main>'
49
- # [3] pry(main)> puts counter.inspect
50
- # 3
51
- # => nil
52
- # [4] pry(main)>
53
- # [5] pry(main)> counter = 0
54
- # => 0
55
- # [6] pry(main)> ZTK::RescueRetry.try(:tries => 3) do
56
- # [6] pry(main)* counter += 1
57
- # [6] pry(main)* raise "OMGWTFBBQ"
58
- # [6] pry(main)* end
59
- # RuntimeError: OMGWTFBBQ
60
- # from (pry):10:in `block in <main>'
61
- # [7] pry(main)> puts counter.inspect
62
- # 3
63
- # => nil
64
- # [8] pry(main)>
65
- # [9] pry(main)> counter = 0
66
- # => 0
67
- # [10] pry(main)> ZTK::RescueRetry.try(:tries => 3, :on => EOFError) do
68
- # [10] pry(main)* counter += 1
69
- # [10] pry(main)* raise "OMGWTFBBQ"
70
- # [10] pry(main)* end
71
- # RuntimeError: OMGWTFBBQ
72
- # from (pry):16:in `block in <main>'
73
- # [11] pry(main)> puts counter.inspect
74
- # 1
75
- # => nil
76
- #
77
- # @author Zachary Patten <zachary AT jovelabs DOT com>
43
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
78
44
  class RescueRetry
79
45
 
80
46
  class << self
@@ -4,7 +4,7 @@ module ZTK
4
4
 
5
5
  # Spinner Error Class
6
6
  #
7
- # @author Zachary Patten <zachary AT jovelabs DOT com>
7
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
8
8
  class SpinnerError < Error; end
9
9
 
10
10
  # Spinner Class
@@ -13,7 +13,7 @@ module ZTK
13
13
  # a task is executed in the supplied block. This indicator takes the form
14
14
  # of a spinner.
15
15
  #
16
- # @author Zachary Patten <zachary AT jovelabs DOT com>
16
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
17
17
  class Spinner
18
18
 
19
19
  class << self
@@ -35,7 +35,7 @@ module ZTK
35
35
  # taking place "behind the scenes".
36
36
  # @return [Object] The return value of the block.
37
37
  #
38
- # @author Zachary Patten <zachary AT jovelabs DOT com>
38
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
39
39
  # @author Stephen Nelson-Smith <stephen@atalanta-systems.com>
40
40
  def spin(options={}, &block)
41
41
  options = Base.build_config({
@@ -2,7 +2,7 @@ module ZTK
2
2
 
3
3
  # SSH Error Class
4
4
  #
5
- # @author Zachary Patten <zachary AT jovelabs DOT com>
5
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
6
6
  class SSHError < Error; end
7
7
 
8
8
  # SSH Multi-function Class
@@ -58,7 +58,7 @@ module ZTK
58
58
  # config.host_key_verify = true
59
59
  # end
60
60
  #
61
- # @author Zachary Patten <zachary AT jovelabs DOT com>
61
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
62
62
  class SSH < ZTK::Base
63
63
  require 'ostruct'
64
64
  require 'tempfile'
@@ -5,7 +5,7 @@ module ZTK
5
5
 
6
6
  # TCPSocketCheck Error Class
7
7
  #
8
- # @author Zachary Patten <zachary AT jovelabs DOT com>
8
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
9
9
  class TCPSocketCheckError < Error; end
10
10
 
11
11
  # TCP Socket Checking Class
@@ -60,7 +60,7 @@ module ZTK
60
60
  #
61
61
  # The wait methods timeout is bound to the configuration option *wait*.
62
62
  #
63
- # @author Zachary Patten <zachary AT jovelabs DOT com>
63
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
64
64
  class TCPSocketCheck < ZTK::Base
65
65
 
66
66
  # @param [Hash] configuration Configuration options hash.
@@ -4,7 +4,7 @@ module ZTK
4
4
 
5
5
  # Template Error Class
6
6
  #
7
- # @author Zachary Patten <zachary AT jovelabs DOT com>
7
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
8
8
  class TemplateError < Error; end
9
9
 
10
10
  # Erubis Templating Class
@@ -23,7 +23,7 @@ module ZTK
23
23
  # This is a test template!
24
24
  # Hello World
25
25
  #
26
- # @author Zachary Patten <zachary AT jovelabs DOT com>
26
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
27
27
  class Template
28
28
 
29
29
  class << self
@@ -4,7 +4,7 @@ module ZTK
4
4
 
5
5
  # UI Error Class
6
6
  #
7
- # @author Zachary Patten <zachary AT jovelabs DOT com>
7
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
8
8
  class UIError < Error; end
9
9
 
10
10
  # UI Class
@@ -12,7 +12,7 @@ module ZTK
12
12
  # This class encapsulates a STDOUT, STDERR, STDIN
13
13
  # and logging device.
14
14
  #
15
- # @author Zachary Patten <zachary AT jovelabs DOT com>
15
+ # @author Zachary Patten <zpatten AT jovelabs DOT io>
16
16
  class UI < ZTK::Base
17
17
 
18
18
  attr_accessor :stdout, :stderr, :stdin, :logger
@@ -1,6 +1,6 @@
1
1
  module ZTK
2
2
 
3
3
  # ZTK Version String
4
- VERSION = "3.1.0"
4
+ VERSION = "3.2.0"
5
5
 
6
6
  end
@@ -1,6 +1,6 @@
1
1
  ################################################################################
2
2
  #
3
- # Author: Zachary Patten <zachary AT jovelabs DOT com>
3
+ # Author: Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # Copyright: Copyright (c) Zachary Patten
5
5
  # License: Apache License, Version 2.0
6
6
  #
@@ -1,6 +1,6 @@
1
1
  ################################################################################
2
2
  #
3
- # Author: Zachary Patten <zachary AT jovelabs DOT com>
3
+ # Author: Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # Copyright: Copyright (c) Zachary Patten
5
5
  # License: Apache License, Version 2.0
6
6
  #
@@ -1,6 +1,6 @@
1
1
  ################################################################################
2
2
  #
3
- # Author: Zachary Patten <zachary AT jovelabs DOT com>
3
+ # Author: Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # Copyright: Copyright (c) Zachary Patten
5
5
  # License: Apache License, Version 2.0
6
6
  #
@@ -1,6 +1,6 @@
1
1
  ################################################################################
2
2
  #
3
- # Author: Zachary Patten <zachary AT jovelabs DOT com>
3
+ # Author: Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # Copyright: Copyright (c) Zachary Patten
5
5
  # License: Apache License, Version 2.0
6
6
  #
@@ -1,6 +1,6 @@
1
1
  ################################################################################
2
2
  #
3
- # Author: Zachary Patten <zachary AT jovelabs DOT com>
3
+ # Author: Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # Copyright: Copyright (c) Zachary Patten
5
5
  # License: Apache License, Version 2.0
6
6
  #
@@ -1,6 +1,6 @@
1
1
  ################################################################################
2
2
  #
3
- # Author: Zachary Patten <zachary AT jovelabs DOT com>
3
+ # Author: Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # Copyright: Copyright (c) Zachary Patten
5
5
  # License: Apache License, Version 2.0
6
6
  #
@@ -1,6 +1,6 @@
1
1
  ################################################################################
2
2
  #
3
- # Author: Zachary Patten <zachary AT jovelabs DOT com>
3
+ # Author: Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # Copyright: Copyright (c) Zachary Patten
5
5
  # License: Apache License, Version 2.0
6
6
  #
@@ -1,6 +1,6 @@
1
1
  ################################################################################
2
2
  #
3
- # Author: Zachary Patten <zachary AT jovelabs DOT com>
3
+ # Author: Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # Copyright: Copyright (c) Zachary Patten
5
5
  # License: Apache License, Version 2.0
6
6
  #
@@ -1,6 +1,6 @@
1
1
  ################################################################################
2
2
  #
3
- # Author: Zachary Patten <zachary AT jovelabs DOT com>
3
+ # Author: Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # Copyright: Copyright (c) Zachary Patten
5
5
  # License: Apache License, Version 2.0
6
6
  #
@@ -1,6 +1,6 @@
1
1
  ################################################################################
2
2
  #
3
- # Author: Zachary Patten <zachary AT jovelabs DOT com>
3
+ # Author: Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # Copyright: Copyright (c) Zachary Patten
5
5
  # License: Apache License, Version 2.0
6
6
  #
@@ -1,6 +1,6 @@
1
1
  ################################################################################
2
2
  #
3
- # Author: Zachary Patten <zachary AT jovelabs DOT com>
3
+ # Author: Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # Copyright: Copyright (c) Zachary Patten
5
5
  # License: Apache License, Version 2.0
6
6
  #
@@ -1,6 +1,6 @@
1
1
  ################################################################################
2
2
  #
3
- # Author: Zachary Patten <zachary AT jovelabs DOT com>
3
+ # Author: Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # Copyright: Copyright (c) Zachary Patten
5
5
  # License: Apache License, Version 2.0
6
6
  #
@@ -1,6 +1,6 @@
1
1
  ################################################################################
2
2
  #
3
- # Author: Zachary Patten <zachary AT jovelabs DOT com>
3
+ # Author: Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # Copyright: Copyright (c) Zachary Patten
5
5
  # License: Apache License, Version 2.0
6
6
  #
@@ -1,6 +1,6 @@
1
1
  ################################################################################
2
2
  #
3
- # Author: Zachary Patten <zachary AT jovelabs DOT com>
3
+ # Author: Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # Copyright: Copyright (c) Zachary Patten
5
5
  # License: Apache License, Version 2.0
6
6
  #
@@ -1,6 +1,6 @@
1
1
  ################################################################################
2
2
  #
3
- # Author: Zachary Patten <zachary AT jovelabs DOT com>
3
+ # Author: Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # Copyright: Copyright (c) Zachary Patten
5
5
  # License: Apache License, Version 2.0
6
6
  #
@@ -1,6 +1,6 @@
1
1
  ################################################################################
2
2
  #
3
- # Author: Zachary Patten <zachary AT jovelabs DOT com>
3
+ # Author: Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # Copyright: Copyright (c) Zachary Patten
5
5
  # License: Apache License, Version 2.0
6
6
  #
@@ -1,6 +1,6 @@
1
1
  ################################################################################
2
2
  #
3
- # Author: Zachary Patten <zachary AT jovelabs DOT com>
3
+ # Author: Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # Copyright: Copyright (c) Zachary Patten
5
5
  # License: Apache License, Version 2.0
6
6
  #
@@ -1,6 +1,6 @@
1
1
  ################################################################################
2
2
  #
3
- # Author: Zachary Patten <zachary AT jovelabs DOT com>
3
+ # Author: Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # Copyright: Copyright (c) Zachary Patten
5
5
  # License: Apache License, Version 2.0
6
6
  #
@@ -1,6 +1,6 @@
1
1
  ################################################################################
2
2
  #
3
- # Author: Zachary Patten <zachary AT jovelabs DOT com>
3
+ # Author: Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # Copyright: Copyright (c) Zachary Patten
5
5
  # License: Apache License, Version 2.0
6
6
  #
@@ -1,6 +1,6 @@
1
1
  ################################################################################
2
2
  #
3
- # Author: Zachary Patten <zachary AT jovelabs DOT com>
3
+ # Author: Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # Copyright: Copyright (c) Zachary Patten
5
5
  # License: Apache License, Version 2.0
6
6
  #
@@ -1,6 +1,6 @@
1
1
  ################################################################################
2
2
  #
3
- # Author: Zachary Patten <zachary AT jovelabs DOT com>
3
+ # Author: Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # Copyright: Copyright (c) Zachary Patten
5
5
  # License: Apache License, Version 2.0
6
6
  #
@@ -1,6 +1,6 @@
1
1
  ################################################################################
2
2
  #
3
- # Author: Zachary Patten <zachary AT jovelabs DOT com>
3
+ # Author: Zachary Patten <zpatten AT jovelabs DOT io>
4
4
  # Copyright: Copyright (c) Zachary Patten
5
5
  # License: Apache License, Version 2.0
6
6
  #
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.name = "ztk"
26
26
  spec.version = ZTK::VERSION
27
27
  spec.authors = %(Zachary Patten)
28
- spec.email = [ %(zachary AT jovelabs DOT com) ]
28
+ spec.email = [ %(zpatten AT jovelabs DOT io) ]
29
29
  spec.description = %(Zachary's Tool Kit contains a collection of reusable classes meant to simplify development of complex systems in Ruby. These classes provide functionality I often find myself needing from project to project. Instead of reinventing the wheel each time, I've started building a collection of reusable classes. Easy-bake DSLs, parallel processing, complex logging, templating and many other useful design patterns, for example are all contained in simple, reusable classes with a common interface and configuration style.)
30
30
  spec.summary = %(Zachary's Tool Kit contains a collection of reusable classes meant to simplify development of complex systems in Ruby.)
31
31
  spec.homepage = "https://github.com/zpatten/ztk"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ztk
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zachary Patten
@@ -256,7 +256,7 @@ description: Zachary's Tool Kit contains a collection of reusable classes meant
256
256
  patterns, for example are all contained in simple, reusable classes with a common
257
257
  interface and configuration style.
258
258
  email:
259
- - zachary AT jovelabs DOT com
259
+ - zpatten AT jovelabs DOT io
260
260
  executables:
261
261
  - ztk
262
262
  extensions: []
@@ -267,7 +267,6 @@ files:
267
267
  - ".ruby-gemset"
268
268
  - ".ruby-version"
269
269
  - ".travis.yml"
270
- - ".yardopts"
271
270
  - Gemfile
272
271
  - LICENSE
273
272
  - README.md
data/.yardopts DELETED
@@ -1,2 +0,0 @@
1
- --markup-provider=redcarpet
2
- --markup=markdown