lolcommits 0.12.0 → 0.12.1

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
  SHA256:
3
- metadata.gz: 5674698718c6e29b478a9c7e333b5a2983535f444b5aee83d0d5612a22d5ee73
4
- data.tar.gz: 9de7e8e711ceaffd45d37d98c0a3878104505d174ff4f6cb1676ff077ec016f5
3
+ metadata.gz: ab90b1b1498877865fbadb3dbaa2d7d91e04ebbdb37c86df53b10c9afbed0f1a
4
+ data.tar.gz: 113394c58bc134437e550c9df7517440e67ee719992229b3742a6ac94893f47b
5
5
  SHA512:
6
- metadata.gz: 716f490a4943d472f9fbcff961572ce97c981552a9f115b8f96c8a53717190eb53aa25755eb70133fd3566c31966c69868f638388ec01863872eafe5e3c9e8a8
7
- data.tar.gz: 5634f2dc4c8a6ae5c465a3eedaa08a5968468dea9d95cf59706386e3c1a1e196ab3fc6d585e1eb7fb9f74ba3082651dafa4c955fbbd669e2263c3493800452ea
6
+ metadata.gz: 627c014f4972173c1415f4d095ee8bb61b8d6de882b5a6153c3e189529dda25fa641f720a51e937518d65ff413b5120c549c53b2a956e273a845481ed4e4e0a0
7
+ data.tar.gz: 0c23aba6d8e2598578201a6fa261019f1f6ec269ce3f67944602d34d5114df212298869aba1da6fee15b650c681dee6ac7a1afa7d931bbd5d18460d0976cfa55
@@ -7,6 +7,11 @@ project adheres to [Semantic Versioning][Semver].
7
7
 
8
8
  * Your contribution here!
9
9
 
10
+ ## [0.12.1][] (27 March 2018)
11
+ * Name passed to `Plugin::Base` initializer (@matthutchinson)
12
+ * Removed dead method `configured? in `Plugin::Base`
13
+ * Using `YAML.safe_load` for configuration loading
14
+
10
15
  ## [0.12.0][] (15 March 2018)
11
16
  * Use CodeClimate and simplecov for coverage reports (@matthutchinson [#367][])
12
17
  * Remove plugin runner order (@matthutchinson [#369][])
@@ -320,7 +325,8 @@ project adheres to [Semantic Versioning][Semver].
320
325
  instead of compositing multiply image Caption objects (this seems to be more
321
326
  reliable to not glitch.)
322
327
 
323
- [Unreleased]: https://github.com/mroth/lolcommits/compare/v0.12.0...HEAD
328
+ [Unreleased]: https://github.com/mroth/lolcommits/compare/v0.12.1...HEAD
329
+ [0.12.1]: https://github.com/mroth/lolcommits/compare/v0.12.0...v0.12.1
324
330
  [0.12.0]: https://github.com/mroth/lolcommits/compare/v0.11.0...v0.12.0
325
331
  [0.11.0]: https://github.com/mroth/lolcommits/compare/v0.10.0...v0.11.0
326
332
  [0.10.0]: https://github.com/mroth/lolcommits/compare/v0.9.8...v0.10.0
@@ -14,9 +14,7 @@ module Lolcommits
14
14
  def yaml
15
15
  @yaml ||= begin
16
16
  return Hash.new({}) unless File.exist?(configuration_file)
17
- # TODO: change to safe_load when Ruby 2.0.0 support drops
18
- # YAML.safe_load(File.open(configuration_file), [Symbol])
19
- YAML.load(File.open(configuration_file)) || Hash.new({})
17
+ YAML.safe_load(File.open(configuration_file), [Symbol]) || Hash.new({})
20
18
  end
21
19
  end
22
20
 
@@ -41,8 +41,7 @@ module Lolcommits
41
41
  end
42
42
 
43
43
  def plugin_instance(runner)
44
- # TODO: pass name to initializer as arg when all gems updated to accept
45
- plugin_klass.new(runner: runner, config: runner.config.yaml[name])
44
+ plugin_klass.new(runner: runner, config: runner.config.yaml[name], name: name)
46
45
  end
47
46
 
48
47
  def gem_name
@@ -71,12 +71,6 @@ module Lolcommits
71
71
  !configuration.empty?
72
72
  end
73
73
 
74
- # empty plugin configuration
75
- # TODO: remove this method in after 0.9.9 release
76
- def configured?
77
- !configuration.empty?
78
- end
79
-
80
74
  # uniform puts and print for plugins
81
75
  # dont puts or print if the runner wants to be silent (stealth mode)
82
76
  def puts(*args)
@@ -1,4 +1,4 @@
1
1
  module Lolcommits
2
- VERSION = '0.12.0'.freeze
2
+ VERSION = '0.12.1'.freeze
3
3
  GEM_NAME = 'lolcommits'.freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lolcommits
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Rothenberg
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-03-25 00:00:00.000000000 Z
12
+ date: 2018-03-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: methadone