hen 0.8.3 → 0.8.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 +4 -4
- data/CONDUCT +37 -0
- data/ChangeLog +6 -0
- data/README +9 -2
- data/Rakefile +2 -2
- data/example/project/CONDUCT +37 -0
- data/example/project/README +7 -0
- data/example/project/Rakefile +1 -1
- data/example/project/_travis.yml +1 -2
- data/lib/hen/dsl.rb +9 -3
- data/lib/hen/version.rb +1 -1
- data/lib/hens/gem.rake +22 -10
- data/lib/hens/rdoc.rake +3 -3
- data/lib/hens/spec.rake +1 -1
- data/lib/hens/test.rake +1 -1
- metadata +15 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c99ef4a9bef01848597bb58db04123df7f01abd3
|
|
4
|
+
data.tar.gz: 13f91d1b567f4d957e0382e2dcfe53e4d9ac988f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cf9505e9fcc628858ce269cf4524ee56c1aa030f3be39bc5893288cd5aaee865c50690d52d6185a8f476bd97747bdcc2f99b7ec8f7c220533168cd44409303c4
|
|
7
|
+
data.tar.gz: 6868676a59b70f4d573e362d1a151de12aed7bdfac6998c307aa3d1c6c22471fc0a82969a23ed43ea1ac276b799dc642e634cb049029184ab4c9d5e7e042f554
|
data/CONDUCT
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
= Contributor Code of Conduct for hen
|
|
2
|
+
|
|
3
|
+
As contributors and maintainers of this project, and in the interest of fostering
|
|
4
|
+
an open and welcoming community, we pledge to respect all people who contribute
|
|
5
|
+
through reporting issues, posting feature requests, updating documentation,
|
|
6
|
+
submitting pull requests or patches, and other activities.
|
|
7
|
+
|
|
8
|
+
We are committed to making participation in this project a harassment-free experience for
|
|
9
|
+
everyone, regardless of level of experience, gender, gender identity and expression,
|
|
10
|
+
sexual orientation, disability, personal appearance, body size, race, ethnicity, age,
|
|
11
|
+
religion, or nationality.
|
|
12
|
+
|
|
13
|
+
Examples of unacceptable behavior by participants include:
|
|
14
|
+
|
|
15
|
+
* The use of sexualized language or imagery
|
|
16
|
+
* Personal attacks
|
|
17
|
+
* Trolling or insulting/derogatory comments
|
|
18
|
+
* Public or private harassment
|
|
19
|
+
* Publishing other's private information, such as physical or electronic addresses,
|
|
20
|
+
without explicit permission
|
|
21
|
+
* Other unethical or unprofessional conduct.
|
|
22
|
+
|
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or reject
|
|
24
|
+
comments, commits, code, wiki edits, issues, and other contributions that are not
|
|
25
|
+
aligned to this Code of Conduct. By adopting this Code of Conduct, project maintainers
|
|
26
|
+
commit themselves to fairly and consistently applying these principles to every aspect
|
|
27
|
+
of managing this project. Project maintainers who do not follow or enforce the Code of
|
|
28
|
+
Conduct may be permanently removed from the project team.
|
|
29
|
+
|
|
30
|
+
This code of conduct applies both within project spaces and in public spaces
|
|
31
|
+
when an individual is representing the project or its community.
|
|
32
|
+
|
|
33
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by
|
|
34
|
+
opening an issue or contacting one or more of the project maintainers.
|
|
35
|
+
|
|
36
|
+
This Code of Conduct is adapted from the {Contributor Covenant}[http://contributor-covenant.org],
|
|
37
|
+
version 1.2.0, available at http://contributor-covenant.org/version/1/2/0/.
|
data/ChangeLog
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
= Revision history for hen
|
|
4
4
|
|
|
5
|
+
== 0.8.4 [2016-04-20]
|
|
6
|
+
|
|
7
|
+
* Warn about missing libraries instead of aborting.
|
|
8
|
+
* Added support for GitLab and Bitbucket homepage URLs.
|
|
9
|
+
* Added Ruby 2.3 to skeleton +.travis.yml+.
|
|
10
|
+
|
|
5
11
|
== 0.8.3 [2015-08-14]
|
|
6
12
|
|
|
7
13
|
* Handle multivalued requirements in <tt>gem:dependencies:current</tt>.
|
data/README
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
== VERSION
|
|
4
4
|
|
|
5
|
-
This documentation refers to hen version 0.8.
|
|
5
|
+
This documentation refers to hen version 0.8.4
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
== DESCRIPTION
|
|
@@ -72,7 +72,7 @@ RubyGem:: https://rubygems.org/gems/hen
|
|
|
72
72
|
Copyright (C) 2007-2012 University of Cologne,
|
|
73
73
|
Albertus-Magnus-Platz, 50923 Cologne, Germany
|
|
74
74
|
|
|
75
|
-
Copyright (C) 2013-
|
|
75
|
+
Copyright (C) 2013-2016 Jens Wille
|
|
76
76
|
|
|
77
77
|
hen is free software: you can redistribute it and/or modify it under the
|
|
78
78
|
terms of the GNU Affero General Public License as published by the Free
|
|
@@ -86,3 +86,10 @@ more details.
|
|
|
86
86
|
|
|
87
87
|
You should have received a copy of the GNU Affero General Public License
|
|
88
88
|
along with hen. If not, see <http://www.gnu.org/licenses/>.
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
== CODE OF CONDUCT
|
|
92
|
+
|
|
93
|
+
Please note that this project is released with a {Contributor Code of
|
|
94
|
+
Conduct}[link:CONDUCT.html]. By participating in this project you agree
|
|
95
|
+
to abide by its terms.
|
data/Rakefile
CHANGED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
= Contributor Code of Conduct for <%= progname %>
|
|
2
|
+
|
|
3
|
+
As contributors and maintainers of this project, and in the interest of fostering
|
|
4
|
+
an open and welcoming community, we pledge to respect all people who contribute
|
|
5
|
+
through reporting issues, posting feature requests, updating documentation,
|
|
6
|
+
submitting pull requests or patches, and other activities.
|
|
7
|
+
|
|
8
|
+
We are committed to making participation in this project a harassment-free experience for
|
|
9
|
+
everyone, regardless of level of experience, gender, gender identity and expression,
|
|
10
|
+
sexual orientation, disability, personal appearance, body size, race, ethnicity, age,
|
|
11
|
+
religion, or nationality.
|
|
12
|
+
|
|
13
|
+
Examples of unacceptable behavior by participants include:
|
|
14
|
+
|
|
15
|
+
* The use of sexualized language or imagery
|
|
16
|
+
* Personal attacks
|
|
17
|
+
* Trolling or insulting/derogatory comments
|
|
18
|
+
* Public or private harassment
|
|
19
|
+
* Publishing other's private information, such as physical or electronic addresses,
|
|
20
|
+
without explicit permission
|
|
21
|
+
* Other unethical or unprofessional conduct.
|
|
22
|
+
|
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or reject
|
|
24
|
+
comments, commits, code, wiki edits, issues, and other contributions that are not
|
|
25
|
+
aligned to this Code of Conduct. By adopting this Code of Conduct, project maintainers
|
|
26
|
+
commit themselves to fairly and consistently applying these principles to every aspect
|
|
27
|
+
of managing this project. Project maintainers who do not follow or enforce the Code of
|
|
28
|
+
Conduct may be permanently removed from the project team.
|
|
29
|
+
|
|
30
|
+
This code of conduct applies both within project spaces and in public spaces
|
|
31
|
+
when an individual is representing the project or its community.
|
|
32
|
+
|
|
33
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by
|
|
34
|
+
opening an issue or contacting one or more of the project maintainers.
|
|
35
|
+
|
|
36
|
+
This Code of Conduct is adapted from the {Contributor Covenant}[http://contributor-covenant.org],
|
|
37
|
+
version 1.2.0, available at http://contributor-covenant.org/version/1/2/0/.
|
data/example/project/README
CHANGED
|
@@ -41,3 +41,10 @@ License for more details.
|
|
|
41
41
|
|
|
42
42
|
You should have received a copy of the GNU Affero General Public License
|
|
43
43
|
along with <%= progname %>. If not, see <http://www.gnu.org/licenses/>.
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
== CODE OF CONDUCT
|
|
47
|
+
|
|
48
|
+
Please note that this project is released with a {Contributor Code of
|
|
49
|
+
Conduct}[link:CONDUCT.html]. By participating in this project you agree
|
|
50
|
+
to abide by its terms.
|
data/example/project/Rakefile
CHANGED
data/example/project/_travis.yml
CHANGED
data/lib/hen/dsl.rb
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
# Albertus-Magnus-Platz, #
|
|
8
8
|
# 50923 Cologne, Germany #
|
|
9
9
|
# #
|
|
10
|
-
# Copyright (C) 2013-
|
|
10
|
+
# Copyright (C) 2013-2016 Jens Wille #
|
|
11
11
|
# #
|
|
12
12
|
# Authors: #
|
|
13
13
|
# Jens Wille <jens.wille@gmail.com> #
|
|
@@ -178,6 +178,12 @@ class Hen
|
|
|
178
178
|
false
|
|
179
179
|
end
|
|
180
180
|
|
|
181
|
+
def require_lib(lib, do_warn = true)
|
|
182
|
+
require lib
|
|
183
|
+
rescue LoadError
|
|
184
|
+
missing_lib(lib, do_warn)
|
|
185
|
+
end
|
|
186
|
+
|
|
181
187
|
# Loads the RubyGems +push+ command, giving
|
|
182
188
|
# a nicer error message if it's not found.
|
|
183
189
|
def have_rubygems?
|
|
@@ -231,7 +237,7 @@ class Hen
|
|
|
231
237
|
%x{git #{args.unshift(cmd.to_s.tr('_', '-')).join(' ')}}
|
|
232
238
|
end
|
|
233
239
|
|
|
234
|
-
def remote_for_branch(branch, default = 'origin') # :nodoc:
|
|
240
|
+
def remote_for_branch(branch = 'master', default = 'origin') # :nodoc:
|
|
235
241
|
remotes = run(:branch, '-r').scan(%r{(\S+)/#{Regexp.escape(branch)}$})
|
|
236
242
|
remotes.flatten!
|
|
237
243
|
|
|
@@ -242,7 +248,7 @@ class Hen
|
|
|
242
248
|
end
|
|
243
249
|
end
|
|
244
250
|
|
|
245
|
-
def url_for_remote(remote) # :nodoc:
|
|
251
|
+
def url_for_remote(remote = remote_for_branch) # :nodoc:
|
|
246
252
|
run(:remote, '-v')[%r{^#{Regexp.escape(remote)}\s+(\S+)}, 1]
|
|
247
253
|
end
|
|
248
254
|
|
data/lib/hen/version.rb
CHANGED
data/lib/hens/gem.rake
CHANGED
|
@@ -20,7 +20,7 @@ Hen gem: :rdoc do
|
|
|
20
20
|
require_path: 'lib'
|
|
21
21
|
}.update(config[:gem])
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
require_lib 'rubygems/package_task' or next
|
|
24
24
|
|
|
25
25
|
if Object.const_defined?(:RDOC_OPTIONS)
|
|
26
26
|
rdoc_files = RDOC_OPTIONS[:rdoc_files]
|
|
@@ -57,8 +57,24 @@ Hen gem: :rdoc do
|
|
|
57
57
|
### homepage
|
|
58
58
|
|
|
59
59
|
if homepage = gem_options[:homepage]
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
if homepage.is_a?(Symbol)
|
|
61
|
+
host = git { |git|
|
|
62
|
+
case git.url_for_remote
|
|
63
|
+
when /github/ then 'github.com'
|
|
64
|
+
when /gitlab/ then 'gitlab.com/u'
|
|
65
|
+
when /bitbucket/ then 'bitbucket.org'
|
|
66
|
+
end
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
homepage = host ?
|
|
70
|
+
"#{host}/#{homepage}/#{gem_name}" :
|
|
71
|
+
(warn 'Homepage not supported'; '')
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
unless homepage.empty? || homepage.include?('://')
|
|
75
|
+
homepage.insert(0, 'http://')
|
|
76
|
+
end
|
|
77
|
+
|
|
62
78
|
gem_options[:homepage] = homepage
|
|
63
79
|
end
|
|
64
80
|
|
|
@@ -85,8 +101,8 @@ Hen gem: :rdoc do
|
|
|
85
101
|
unless (local_files = Array(gem_options.delete(:local_files))).empty?
|
|
86
102
|
gem_options[:files].concat(local_files)
|
|
87
103
|
|
|
88
|
-
task :
|
|
89
|
-
task :
|
|
104
|
+
task pkg: local_files
|
|
105
|
+
task compile: local_files
|
|
90
106
|
|
|
91
107
|
CLOBBER.include(*local_files)
|
|
92
108
|
end
|
|
@@ -326,11 +342,7 @@ Hen gem: :rdoc do
|
|
|
326
342
|
|
|
327
343
|
}
|
|
328
344
|
|
|
329
|
-
|
|
330
|
-
require 'rake/extensiontask' unless gem_spec.extensions.empty?
|
|
331
|
-
rescue LoadError
|
|
332
|
-
missing_lib 'rake/extensiontask'
|
|
333
|
-
end
|
|
345
|
+
require_lib 'rake/extensiontask' unless gem_spec.extensions.empty?
|
|
334
346
|
|
|
335
347
|
if Rake.const_defined?(:ExtensionTask)
|
|
336
348
|
# gem_name | ext_name | extension name
|
data/lib/hens/rdoc.rake
CHANGED
|
@@ -2,7 +2,7 @@ Hen :rdoc do
|
|
|
2
2
|
|
|
3
3
|
rdoc_options = {
|
|
4
4
|
rdoc_dir: 'doc',
|
|
5
|
-
rdoc_files: %w[README COPYING ChangeLog lib/**/*.rb ext/**/*.c],
|
|
5
|
+
rdoc_files: %w[README CONDUCT COPYING ChangeLog lib/**/*.rb ext/**/*.c],
|
|
6
6
|
title: '{name:%s }Application documentation{version: (v%s)}',
|
|
7
7
|
charset: 'UTF-8',
|
|
8
8
|
line_numbers: true,
|
|
@@ -62,7 +62,7 @@ Hen :rdoc do
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
unless rdoc_files.empty?
|
|
65
|
-
|
|
65
|
+
require_lib 'rdoc/task' or next
|
|
66
66
|
|
|
67
67
|
RDoc::Task.new(:doc) { |rdoc|
|
|
68
68
|
rdoc.rdoc_dir = rdoc_dir
|
|
@@ -76,7 +76,7 @@ Hen :rdoc do
|
|
|
76
76
|
end
|
|
77
77
|
|
|
78
78
|
unless rdoc_files_local.empty?
|
|
79
|
-
|
|
79
|
+
require_lib 'rdoc/task' or next
|
|
80
80
|
|
|
81
81
|
RDoc::Task.new('doc:local') { |rdoc|
|
|
82
82
|
rdoc.rdoc_dir = rdoc_dir + '.local'
|
data/lib/hens/spec.rake
CHANGED
data/lib/hens/test.rake
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hen
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jens Wille
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-04-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: highline
|
|
@@ -16,28 +16,28 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '1.
|
|
19
|
+
version: '1.7'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '1.
|
|
26
|
+
version: '1.7'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: nuggets
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '1.
|
|
33
|
+
version: '1.5'
|
|
34
34
|
type: :runtime
|
|
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: '1.
|
|
40
|
+
version: '1.5'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: safe_yaml
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -73,9 +73,11 @@ executables:
|
|
|
73
73
|
extensions: []
|
|
74
74
|
extra_rdoc_files:
|
|
75
75
|
- README
|
|
76
|
+
- CONDUCT
|
|
76
77
|
- COPYING
|
|
77
78
|
- ChangeLog
|
|
78
79
|
files:
|
|
80
|
+
- CONDUCT
|
|
79
81
|
- COPYING
|
|
80
82
|
- ChangeLog
|
|
81
83
|
- README
|
|
@@ -83,6 +85,7 @@ files:
|
|
|
83
85
|
- bin/hen
|
|
84
86
|
- example/_henrc
|
|
85
87
|
- example/hens/sample.rake
|
|
88
|
+
- example/project/CONDUCT
|
|
86
89
|
- example/project/COPYING
|
|
87
90
|
- example/project/ChangeLog
|
|
88
91
|
- example/project/README
|
|
@@ -106,14 +109,15 @@ licenses:
|
|
|
106
109
|
metadata: {}
|
|
107
110
|
post_install_message: |2+
|
|
108
111
|
|
|
109
|
-
hen-0.8.
|
|
112
|
+
hen-0.8.4 [2016-04-20]:
|
|
110
113
|
|
|
111
|
-
*
|
|
112
|
-
*
|
|
114
|
+
* Warn about missing libraries instead of aborting.
|
|
115
|
+
* Added support for GitLab and Bitbucket homepage URLs.
|
|
116
|
+
* Added Ruby 2.3 to skeleton +.travis.yml+.
|
|
113
117
|
|
|
114
118
|
rdoc_options:
|
|
115
119
|
- "--title"
|
|
116
|
-
- hen Application documentation (v0.8.
|
|
120
|
+
- hen Application documentation (v0.8.4)
|
|
117
121
|
- "--charset"
|
|
118
122
|
- UTF-8
|
|
119
123
|
- "--line-numbers"
|
|
@@ -134,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
134
138
|
version: '0'
|
|
135
139
|
requirements: []
|
|
136
140
|
rubyforge_project:
|
|
137
|
-
rubygems_version: 2.
|
|
141
|
+
rubygems_version: 2.6.3
|
|
138
142
|
signing_key:
|
|
139
143
|
specification_version: 4
|
|
140
144
|
summary: Just another project helper that integrates with Rake.
|