gem-changelog 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 278d47b6a682165ae6107034f31711119c7130e7
4
- data.tar.gz: 630c5c2a42019701683b428ba3f45f08e2e3f7c2
3
+ metadata.gz: e532d6d9cf63707f0aca680e4830bc04b4a68449
4
+ data.tar.gz: e006951db47d1ff274d03e4d50434c3b20ba709b
5
5
  SHA512:
6
- metadata.gz: 33bb0e72f0d3b51050d9ce68f9180d2d7f88a13d332b3d86fb457af34f5178620569bd98a3c14a5add3df375f73fb4391d8cba9ab0de322c619778b7cd1af51d
7
- data.tar.gz: 560acebb58b1b4ffbf0578f2b74dd59afbcb5fb4c474053d14a459386315ae98e8db48d826d31467475fb6eb04f598ea05a39c3e4346191a038173ed4dcb3a18
6
+ metadata.gz: a581f81a118f01b6a9aef231673b6bb54bfa1cc5d6210b0d79274cc1cca8387caeda5c1f75c7f1695bf12b1bf5b3b0b9a5cc63bd891b08a72590f1a3d914755d
7
+ data.tar.gz: 75f7bc756e12a30ae853dc274ee692a2218f83e0d0d3c054fd80ade0259a5127c858767d5b7b4c32d16c2bb7f1b29cbb55d1719380c0f3ac25b68cb69fd1deb8
@@ -1,3 +1,7 @@
1
+ ## 1.0.4 (2016-02-28)
2
+
3
+ - Enhancement: Prerelease gems are now included when finding spec
4
+
1
5
  ## 1.0.3 (2013-05-31)
2
6
 
3
7
  - Bugfix: `files` method requires spec dir. [kyanny]
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Gem
4
4
  module Changelog
5
- VERSION = '1.0.3'
5
+ VERSION = '1.0.4'
6
6
  end
7
7
  end
@@ -27,14 +27,9 @@ class Gem::Commands::ChangelogCommand < Gem::Command
27
27
  show_help
28
28
  terminate_interaction 1
29
29
  end
30
- version_requirement = options[:version_requirement]
31
30
 
32
- begin
33
- spec = Gem::Specification.find_by_name(gem_name, version_requirement)
34
- rescue Gem::LoadError => e
35
- say e.message
36
- terminate_interaction 1
37
- end
31
+ version_requirement = options[:version_requirement] || '>=0.pre'
32
+ spec = find_spec(gem_name, version_requirement)
38
33
 
39
34
  changelog_file = options[:changelog_name] || find_changelog_file(spec)
40
35
  unless changelog_file
@@ -86,4 +81,11 @@ class Gem::Commands::ChangelogCommand < Gem::Command
86
81
  def pager
87
82
  ENV['PAGER'] || 'more'
88
83
  end
84
+
85
+ def find_spec(gem_name, version_requirement)
86
+ Gem::Specification.find_by_name(gem_name, version_requirement)
87
+ rescue Gem::LoadError => e
88
+ say e.message
89
+ terminate_interaction 1
90
+ end
89
91
  end
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem-changelog
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - OZAWA Sakuro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-31 00:00:00.000000000 Z
11
+ date: 2016-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description: This gem plugin add changelog subcommand to te gem system.
@@ -45,7 +45,7 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - .gitignore
48
+ - ".gitignore"
49
49
  - CHANGELOG.md
50
50
  - Gemfile
51
51
  - LICENSE.txt
@@ -65,17 +65,17 @@ require_paths:
65
65
  - lib
66
66
  required_ruby_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - '>='
68
+ - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  requirements: []
77
77
  rubyforge_project:
78
- rubygems_version: 2.0.2
78
+ rubygems_version: 2.5.1
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Show the changelog of given gem