hoe-gemspec2 1.2.0 → 1.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
- SHA1:
3
- metadata.gz: dc68895491ef45bdf754ad599f9d89cca3ede9bf
4
- data.tar.gz: 2d7c1d0699b7c8dca6baa284fef7a6196ed4ddb0
2
+ SHA256:
3
+ metadata.gz: cefaeb9a03fd6b440d9c8a4d3513a43bdf8d0611bd5d4804d1c3055d20591628
4
+ data.tar.gz: 995d01304b2acdd816d11f68a1ed2efc6ce6a1335de80ce98f5d538ac16d1b9c
5
5
  SHA512:
6
- metadata.gz: 895f48e654794328be6f1b15c1e41ff4180b2b8cd3e7b5ac650bc8f151f8b9e79c56eda1461abdd6ac6dadb913ffcac6278bb4849725252f27be48c5be3a061f
7
- data.tar.gz: 6d03d4853d51541fc8d96bb84cb1d90be1d5f1f42b1e725ddcc7782791d3248b01524e362d039b491da6d0c972319c559523d1c342cd816c086bb6e4fc39f877
6
+ metadata.gz: 4360cf0f9e2be46afa9bff3ae06e579e5c20e352313f26756817d357fd3ba3a7c6a3bfbaac8b480ee2270153a31d928cf60af13d22a37eab7afcdb90c460a450
7
+ data.tar.gz: 315d46fb85fdacc2b4cc2ceecb5eb6cebb710d361b829f5654d40c90f83943de1b13915937c01ac57983ec5d3b0d14464fb3af9dcddb14da1afe736a41f3c71d
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,8 @@
1
+ === 1.3.0 / 2022-03-25
2
+
3
+ * Add compatibility with modern safe versions of YAML, which makes #load
4
+ an alias for #safe_load.
5
+
1
6
  === 1.2.0 / 2014-07-18
2
7
 
3
8
  * Automatically exclude +cert_chain+ and +signing_key+, unless called as
data/README.rdoc CHANGED
@@ -1,6 +1,6 @@
1
1
  = hoe-gemspec2
2
2
 
3
- http://rubygems.org/gems/hoe-gemspec2
3
+ home :: http://rubygems.org/gems/hoe-gemspec2
4
4
 
5
5
  {Project}[http://rubygems.org/gems/hoe-gemspec2]
6
6
  {Documentation}[http://rubydoc.info/github/raggi/hoe-gemspec2]
data/lib/hoe/gemspec2.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Hoe::Gemspec2
2
- VERSION = '1.2.0'
2
+ VERSION = '1.3.0'
3
3
 
4
4
  def define_gemspec2_tasks
5
5
  gemspec = spec.name + '.gemspec'
@@ -12,7 +12,24 @@ module Hoe::Gemspec2
12
12
 
13
13
  file gemspec => %w[clobber Manifest.txt] + spec.files do
14
14
  open(gemspec, 'w') { |f|
15
- spec2 = YAML.load(YAML.dump(spec))
15
+ permitted_classes = %w[
16
+ Symbol Time Date Gem::Dependency Gem::Platform Gem::Requirement
17
+ Gem::Specification Gem::Version Gem::Version::Requirement
18
+ YAML::Syck::DefaultKey Syck::DefaultKey
19
+ ]
20
+ permitted_symbols = %w[development runtime]
21
+ spec2 = begin
22
+ YAML.safe_load(
23
+ YAML.dump(spec),
24
+ :permitted_classes => permitted_classes,
25
+ :permitted_symbols => permitted_symbols,
26
+ :aliases => true
27
+ )
28
+ rescue
29
+ YAML.safe_load(
30
+ YAML.dump(spec), permitted_classes, permitted_symbols, true
31
+ )
32
+ end
16
33
 
17
34
  unless @include_all
18
35
  [ :signing_key, :cert_chain ].each { |name|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hoe-gemspec2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - raggi
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-18 00:00:00.000000000 Z
11
+ date: 2022-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hoe
@@ -30,28 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '5.3'
33
+ version: '5.15'
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
- version: '5.3'
41
- - !ruby/object:Gem::Dependency
42
- name: rdoc
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '4.0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '4.0'
40
+ version: '5.15'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: hoe-doofus
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -108,6 +94,26 @@ dependencies:
108
94
  - - ">="
109
95
  - !ruby/object:Gem::Version
110
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rdoc
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '4.0'
104
+ - - "<"
105
+ - !ruby/object:Gem::Version
106
+ version: '7'
107
+ type: :development
108
+ prerelease: false
109
+ version_requirements: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ version: '4.0'
114
+ - - "<"
115
+ - !ruby/object:Gem::Version
116
+ version: '7'
111
117
  description: |-
112
118
  Adds support for generation of gemspec files to Hoe. By default, excludes the
113
119
  signing key and certificate chain. Use <tt>rake gemspec:full</tt> to include
@@ -129,8 +135,9 @@ files:
129
135
  homepage: http://rubygems.org/gems/hoe-gemspec2
130
136
  licenses:
131
137
  - MIT
132
- metadata: {}
133
- post_install_message:
138
+ metadata:
139
+ homepage_uri: http://rubygems.org/gems/hoe-gemspec2
140
+ post_install_message:
134
141
  rdoc_options:
135
142
  - "--main"
136
143
  - README.rdoc
@@ -147,9 +154,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
154
  - !ruby/object:Gem::Version
148
155
  version: '0'
149
156
  requirements: []
150
- rubyforge_project:
151
- rubygems_version: 2.2.0
152
- signing_key:
157
+ rubygems_version: 3.1.6
158
+ signing_key:
153
159
  specification_version: 4
154
160
  summary: Adds support for generation of gemspec files to Hoe
155
161
  test_files: []