acclimate 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 973b34f7b1806ac68c6404ab0fc36dc9a06c5f91
4
- data.tar.gz: 7e5fbb219ec3f766c02b3d3fba09fe0bfd82ea6b
3
+ metadata.gz: 974bdaf3d34b34590dec398062926a478a99fe49
4
+ data.tar.gz: 9f8adcc02d410c9d90d79383d8c4f0f282759eab
5
5
  SHA512:
6
- metadata.gz: 31177a678d428c75ce5d92a31b90321a245feb5e946b5b490de85dfab9a6ca42180fc6ded7de7ac521472d3588c70ce7406ed0f29580785a20e59fae0ff32390
7
- data.tar.gz: 70dd76895bf56d3a7fe63d383e1b32e48eb1bcd6d8ccbef8561249ae4e461df94df766f84bc1edc451448fb636687def48349906f06ea176e5b3a55d18e085b9
6
+ metadata.gz: 2dfd82c10e948ba263fd717d02e4bae2b28463e3d2709cc14a5c69291d47bf98bf7de2834ac60241522bbddfa44f4f521caf9b536071dc91bb98e62ae9ffd5e8
7
+ data.tar.gz: 74b8613d8cfaaf063253fdcf3d10f8c3fe5f63aadb4f06ca4a8b390832d48382c81c3e65d12c7b0b6603e2c4a4eb2d2b8be02739db5f1bf8e72271d63e21aead
data/acclimate.gemspec CHANGED
@@ -23,6 +23,8 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency "pry-debugger"
24
24
  spec.add_development_dependency "rake"
25
25
 
26
+ spec.add_dependency "autoloaded"
27
+ spec.add_dependency "command_line_reporter"
26
28
  spec.add_dependency "hashie"
27
29
  spec.add_dependency "rainbow"
28
30
  spec.add_dependency "thor"
data/lib/acclimate.rb CHANGED
@@ -1,14 +1,10 @@
1
1
  require "acclimate/version"
2
+ require 'autoloaded'
2
3
  require 'rainbow'
3
4
  require 'thor'
4
5
 
5
6
  module Acclimate
6
7
 
7
- autoload :CliHelper, 'acclimate/cli_helper'
8
- autoload :Command, 'acclimate/command'
9
- autoload :Configuration, 'acclimate/configuration'
10
- autoload :ConfirmationError, 'acclimate/confirmation_error'
11
- autoload :Error, 'acclimate/error'
12
- autoload :Output, 'acclimate/output'
8
+ extend Autoloaded
13
9
 
14
10
  end
@@ -3,7 +3,7 @@ require 'pathname'
3
3
  module Acclimate
4
4
  class Command
5
5
 
6
- include Acclimate::Output
6
+ include Acclimate::ShellHelper
7
7
 
8
8
  def initialize( options )
9
9
  @options = options
@@ -0,0 +1,21 @@
1
+ require 'command_line_reporter'
2
+
3
+ module Acclimate
4
+ class Formatter
5
+
6
+ include CommandLineReporter
7
+
8
+ def render
9
+ raise NotImplementedError
10
+ end
11
+
12
+ protected
13
+
14
+ def capture( &block )
15
+ suppress_output
16
+ block.call
17
+ capture_output
18
+ end
19
+
20
+ end
21
+ end
@@ -0,0 +1,10 @@
1
+ module Acclimate
2
+ module ShellHelper
3
+
4
+ def self.included( base )
5
+ base.send( :include, CommandLineReporter )
6
+ base.send( :include, Acclimate::Output )
7
+ end
8
+
9
+ end
10
+ end
@@ -1,3 +1,3 @@
1
1
  module Acclimate
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acclimate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - C. Jason Harrelson (midas )
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-23 00:00:00.000000000 Z
11
+ date: 2014-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -66,6 +66,34 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: autoloaded
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: command_line_reporter
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
69
97
  - !ruby/object:Gem::Dependency
70
98
  name: hashie
71
99
  requirement: !ruby/object:Gem::Requirement
@@ -129,7 +157,9 @@ files:
129
157
  - lib/acclimate/configuration.rb
130
158
  - lib/acclimate/confirmation_error.rb
131
159
  - lib/acclimate/error.rb
160
+ - lib/acclimate/formatter.rb
132
161
  - lib/acclimate/output.rb
162
+ - lib/acclimate/shell_helper.rb
133
163
  - lib/acclimate/version.rb
134
164
  homepage: ''
135
165
  licenses: