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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ca571dcd740acdf7ea4863eb43a0de361344213
4
- data.tar.gz: cce37a9c6b223a77c740f913eed635feb0d47b2d
3
+ metadata.gz: a929ae77a3668d71708404c4cd22f52a0518cd24
4
+ data.tar.gz: f6b4bccacec686b0bb566163d7ba9e5b348aa4c9
5
5
  SHA512:
6
- metadata.gz: 730d4f1e2e19824164be7a03dc91e32676dbec33f2968cb24de5fb47ea0575bfe1dae43ae9cbaefd29e1ffea1e4e025ae28274c695896daff2608e4c314be049
7
- data.tar.gz: 547e330cff56d6fe05a07e70f9c0133ff9e73f2825ca34771821b92717bc68386a66ef5d0da5d3ce8b1288c6543d12dd8d1ed7c0d4dcb47d916731e330d6295d
6
+ metadata.gz: 5c973d384f3b25c0b442736739833350e99fd1d56401ce71e75d5656cc53eb171b5894c81023166ebd132114425e3dd5a3b90c3b0f376d68e4289340bb46495c
7
+ data.tar.gz: 5de34aca5504e50ddad4964debf375065267e15f5db3df24954f7a96ccde6c38d8b2a86291b9b231c50d7fb2202d138693839863609fd706bf07cca1971a1180
@@ -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.6.0...HEAD
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
@@ -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", "~> 10.0"
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"
@@ -64,10 +64,6 @@ module Chandler
64
64
  config.dry_run = d
65
65
  end
66
66
 
67
- opts.on("--debug", "Enable debug output") do |d|
68
- config.logger.verbose = d
69
- end
70
-
71
67
  opts.on("-h", "--help", "Show this help message") do
72
68
  info(opts.to_s)
73
69
  exit
@@ -5,14 +5,16 @@ require "chandler/logger"
5
5
 
6
6
  module Chandler
7
7
  class Configuration
8
- attr_accessor :changelog_path, :git_path, :github_repository, :dry_run,
9
- :tag_prefix, :logger, :environment
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?
@@ -6,16 +6,12 @@ module Chandler
6
6
  #
7
7
  class Logger
8
8
  using Chandler::Refinements::Color
9
- attr_accessor :stderr, :stdout, :verbose
9
+ attr_accessor :stderr, :stdout
10
10
 
11
11
  def initialize(stderr: $stderr, stdout: $stdout)
12
12
  @stderr = stderr
13
13
  @stdout = stdout
14
- @verbose = false
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)
@@ -6,7 +6,6 @@ module Chandler
6
6
  extend Forwardable
7
7
  private def_delegator :config, :logger
8
8
  private def_delegator :logger, :benchmark
9
- private def_delegator :logger, :debug
10
9
  private def_delegator :logger, :error
11
10
  private def_delegator :logger, :info
12
11
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Chandler
3
- VERSION = "0.6.0".freeze
3
+ VERSION = "0.7.0".freeze
4
4
  end
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.6.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-09 00:00:00.000000000 Z
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