chandler 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/chandler.gemspec +1 -1
- data/lib/chandler/cli/parser.rb +0 -4
- data/lib/chandler/configuration.rb +4 -2
- data/lib/chandler/logger.rb +2 -14
- data/lib/chandler/logging.rb +0 -1
- data/lib/chandler/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a929ae77a3668d71708404c4cd22f52a0518cd24
|
4
|
+
data.tar.gz: f6b4bccacec686b0bb566163d7ba9e5b348aa4c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c973d384f3b25c0b442736739833350e99fd1d56401ce71e75d5656cc53eb171b5894c81023166ebd132114425e3dd5a3b90c3b0f376d68e4289340bb46495c
|
7
|
+
data.tar.gz: 5de34aca5504e50ddad4964debf375065267e15f5db3df24954f7a96ccde6c38d8b2a86291b9b231c50d7fb2202d138693839863609fd706bf07cca1971a1180
|
data/CHANGELOG.md
CHANGED
@@ -8,6 +8,11 @@ chandler is in a pre-1.0 state. This means that its APIs and behavior are subjec
|
|
8
8
|
|
9
9
|
* Your contribution here!
|
10
10
|
|
11
|
+
## [0.7.0][] (2016-12-23)
|
12
|
+
|
13
|
+
* [#23](https://github.com/mattbrictson/chandler/pull/23): Fix warnings reported when using Rake 12.0 - [@mattbrictson](https://github.com/mattbrictson)
|
14
|
+
* [#21](https://github.com/mattbrictson/chandler/pull/21): Remove --debug flag since it is not used anywhere - [@mattbrictson](https://github.com/mattbrictson)
|
15
|
+
|
11
16
|
## [0.6.0][] (2016-11-09)
|
12
17
|
|
13
18
|
* [#19](https://github.com/mattbrictson/chandler/pull/19): Add GitHub Enterprise support - [@mattbrictson](https://github.com/mattbrictson)
|
@@ -50,7 +55,8 @@ chandler is in a pre-1.0 state. This means that its APIs and behavior are subjec
|
|
50
55
|
* Initial release
|
51
56
|
|
52
57
|
[Semver]: http://semver.org
|
53
|
-
[Unreleased]: https://github.com/mattbrictson/chandler/compare/v0.
|
58
|
+
[Unreleased]: https://github.com/mattbrictson/chandler/compare/v0.7.0...HEAD
|
59
|
+
[0.7.0]: https://github.com/mattbrictson/chandler/compare/v0.6.0...v0.7.0
|
54
60
|
[0.6.0]: https://github.com/mattbrictson/chandler/compare/v0.5.0...v0.6.0
|
55
61
|
[0.5.0]: https://github.com/mattbrictson/chandler/compare/v0.4.0...v0.5.0
|
56
62
|
[0.4.0]: https://github.com/mattbrictson/chandler/compare/v0.3.1...v0.4.0
|
data/chandler.gemspec
CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.add_development_dependency "bundler", "~> 1.10"
|
27
27
|
spec.add_development_dependency "coveralls"
|
28
28
|
spec.add_development_dependency "danger"
|
29
|
-
spec.add_development_dependency "rake", "
|
29
|
+
spec.add_development_dependency "rake", ">= 10.0"
|
30
30
|
spec.add_development_dependency "minitest"
|
31
31
|
spec.add_development_dependency "minitest-reporters"
|
32
32
|
spec.add_development_dependency "mocha"
|
data/lib/chandler/cli/parser.rb
CHANGED
@@ -5,14 +5,16 @@ require "chandler/logger"
|
|
5
5
|
|
6
6
|
module Chandler
|
7
7
|
class Configuration
|
8
|
-
attr_accessor :changelog_path, :git_path, :
|
9
|
-
:
|
8
|
+
attr_accessor :changelog_path, :git_path, :dry_run, :tag_prefix, :logger,
|
9
|
+
:environment
|
10
|
+
attr_writer :github_repository
|
10
11
|
|
11
12
|
def initialize
|
12
13
|
@changelog_path = "CHANGELOG.md"
|
13
14
|
@git_path = ".git"
|
14
15
|
@logger = Chandler::Logger.new
|
15
16
|
@dry_run = false
|
17
|
+
@github_repository = nil
|
16
18
|
end
|
17
19
|
|
18
20
|
def dry_run?
|
data/lib/chandler/logger.rb
CHANGED
@@ -6,16 +6,12 @@ module Chandler
|
|
6
6
|
#
|
7
7
|
class Logger
|
8
8
|
using Chandler::Refinements::Color
|
9
|
-
attr_accessor :stderr, :stdout
|
9
|
+
attr_accessor :stderr, :stdout
|
10
10
|
|
11
11
|
def initialize(stderr: $stderr, stdout: $stdout)
|
12
12
|
@stderr = stderr
|
13
13
|
@stdout = stdout
|
14
|
-
@
|
15
|
-
end
|
16
|
-
|
17
|
-
def verbose?
|
18
|
-
verbose
|
14
|
+
@color_enabled = nil
|
19
15
|
end
|
20
16
|
|
21
17
|
# Logs a message to stderr. Unless otherwise specified, the message will
|
@@ -30,19 +26,11 @@ module Chandler
|
|
30
26
|
puts(stdout, message)
|
31
27
|
end
|
32
28
|
|
33
|
-
# Logs a message to stdout, but only if `verbose?` is true.
|
34
|
-
def debug(message=nil)
|
35
|
-
return unless verbose?
|
36
|
-
return puts(stdout, yield) if block_given?
|
37
|
-
puts(stdout, message)
|
38
|
-
end
|
39
|
-
|
40
29
|
# Logs a message to stdout, runs the given block, and then prints the time
|
41
30
|
# it took to run the block.
|
42
31
|
def benchmark(message)
|
43
32
|
start = Time.now
|
44
33
|
print(stdout, "#{message} ")
|
45
|
-
debug("\n")
|
46
34
|
result = yield
|
47
35
|
duration = Time.now - start
|
48
36
|
info("✔".green + format(" %0.3fs", duration).gray)
|
data/lib/chandler/logging.rb
CHANGED
data/lib/chandler/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chandler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Brictson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: netrc
|
@@ -84,14 +84,14 @@ dependencies:
|
|
84
84
|
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '10.0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '10.0'
|
97
97
|
- !ruby/object:Gem::Dependency
|