hen 0.6.1 → 0.6.2
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/ChangeLog +7 -0
- data/README +7 -7
- data/Rakefile +2 -2
- data/example/project/README +5 -3
- data/example/project/Rakefile +2 -1
- data/example/project/_travis.yml +4 -4
- data/example/project/lib/__progname__.rb +28 -0
- data/lib/hen/cli.rb +7 -2
- data/lib/hen/dsl.rb +7 -2
- data/lib/hen/version.rb +1 -1
- data/lib/hens/gem.rake +2 -1
- metadata +10 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1167e70ec7058579e4666f164d41a387b4893760
|
4
|
+
data.tar.gz: bfca533a615a855b59f6262c06c30c38b955317b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d72747df855e5586743d61e8387a1c4092624a7a68155f2b4797bb09b66045936de9d74e4651a56b4809858a43efb1dbd3e36393323782d9704defdbf4c539cb
|
7
|
+
data.tar.gz: 75458dd29d893ae09fadb776021555a4d9f2e9918152a9359c198643db9f171d61c9d368b56bc148f357a2f92344f4a49784cb8df7eb1edb62d3e8445a37353d
|
data/ChangeLog
CHANGED
@@ -2,6 +2,13 @@
|
|
2
2
|
|
3
3
|
= Revision history for hen
|
4
4
|
|
5
|
+
== 0.6.2 [2014-05-13]
|
6
|
+
|
7
|
+
* Avoid circular dependency for 'gem:native' task.
|
8
|
+
* Added default dependency for rake-compiler.
|
9
|
+
* Updated sample project skeleton.
|
10
|
+
* New DSL method 'tasks'.
|
11
|
+
|
5
12
|
== 0.6.1 [2014-04-24]
|
6
13
|
|
7
14
|
* Defer load errors.
|
data/README
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
== VERSION
|
4
4
|
|
5
|
-
This documentation refers to hen version 0.6.
|
5
|
+
This documentation refers to hen version 0.6.2
|
6
6
|
|
7
7
|
|
8
8
|
== DESCRIPTION
|
@@ -15,12 +15,12 @@ Rake tasks by placing a little snippet like the following in your Rakefile:
|
|
15
15
|
require 'your/lib/version'
|
16
16
|
|
17
17
|
Hen.lay! {{
|
18
|
-
:
|
19
|
-
:
|
20
|
-
:
|
21
|
-
:
|
22
|
-
:
|
23
|
-
:
|
18
|
+
gem: {
|
19
|
+
name: 'gem_name',
|
20
|
+
version: Your::Lib::VERSION,
|
21
|
+
summary: 'Project summary',
|
22
|
+
author: 'Your Name',
|
23
|
+
email: 'you@e.mail'
|
24
24
|
}
|
25
25
|
}}
|
26
26
|
|
data/Rakefile
CHANGED
@@ -6,8 +6,8 @@ Hen.lay! {{
|
|
6
6
|
:gem => {
|
7
7
|
:name => %q{hen},
|
8
8
|
:version => Hen::VERSION,
|
9
|
-
:summary =>
|
10
|
-
|
9
|
+
:summary => %q{Just another project helper that integrates with Rake.},
|
10
|
+
:description => %q{A Rake helper framework, similar to Hoe or Echoe.},
|
11
11
|
:author => %q{Jens Wille},
|
12
12
|
:email => %q{jens.wille@gmail.com},
|
13
13
|
:license => %q{AGPL-3.0},
|
data/example/project/README
CHANGED
@@ -1,12 +1,14 @@
|
|
1
|
-
= <%= progname %> - <%=
|
1
|
+
= <%= progname %> - <%= progsumm %>
|
2
2
|
|
3
3
|
== VERSION
|
4
4
|
|
5
|
-
This documentation refers to <%= progname %> version 0.0.0
|
5
|
+
This documentation refers to <%= progname %> version 0.0.0.
|
6
6
|
|
7
7
|
|
8
8
|
== DESCRIPTION
|
9
9
|
|
10
|
+
<%= progdesc %>.
|
11
|
+
|
10
12
|
### PLACE YOUR DESCRIPTION HERE ###
|
11
13
|
|
12
14
|
|
@@ -24,7 +26,7 @@ RubyGem:: https://rubygems.org/gems/<%= progname %>
|
|
24
26
|
|
25
27
|
== LICENSE AND COPYRIGHT
|
26
28
|
|
27
|
-
|
29
|
+
Copyright (C) <%= Date.today.year %> <%= fullname %>
|
28
30
|
|
29
31
|
<%= progname %> is free software: you can redistribute it and/or modify it
|
30
32
|
under the terms of the GNU Affero General Public License as published by
|
data/example/project/Rakefile
CHANGED
@@ -7,7 +7,8 @@ begin
|
|
7
7
|
gem: {
|
8
8
|
name: %q{<%= progname %>},
|
9
9
|
version: <%= classname %>::VERSION,
|
10
|
-
summary: %q{<%=
|
10
|
+
summary: %q{<%= progsumm %>.},
|
11
|
+
description: %q{<%= progdesc %>.},
|
11
12
|
author: %q{<%= fullname %>},
|
12
13
|
email: %q{<%= emailaddress %>},
|
13
14
|
license: %q{AGPL-3.0},
|
data/example/project/_travis.yml
CHANGED
@@ -2,9 +2,9 @@ language:
|
|
2
2
|
ruby
|
3
3
|
|
4
4
|
rvm:
|
5
|
-
- '1.9
|
6
|
-
- '2.0
|
7
|
-
- '2.1
|
5
|
+
- '1.9'
|
6
|
+
- '2.0'
|
7
|
+
- '2.1'
|
8
8
|
- ruby-head
|
9
9
|
- jruby-19mode
|
10
10
|
- jruby-head
|
@@ -23,7 +23,7 @@ script:
|
|
23
23
|
rake spec
|
24
24
|
|
25
25
|
install:
|
26
|
-
gem install --development <%= progname %>
|
26
|
+
gem install --prerelease --development <%= progname %>
|
27
27
|
|
28
28
|
### PLACE YOUR EXTERNAL DEPENDENCIES HERE ###
|
29
29
|
#before_install:
|
@@ -1,2 +1,30 @@
|
|
1
|
+
#--
|
2
|
+
###############################################################################
|
3
|
+
# #
|
4
|
+
# <%= progname %> -- <%= progsumm %> #
|
5
|
+
# #
|
6
|
+
# Copyright (C) <%= Date.today.year %> <%= fullname %> #
|
7
|
+
# #
|
8
|
+
# Authors: #
|
9
|
+
# <%= fullname %> <<%= emailaddress %>> #
|
10
|
+
# #
|
11
|
+
# <%= progname %> is free software; you can redistribute it and/or modify it #
|
12
|
+
# under the terms of the GNU Affero General Public License as published by #
|
13
|
+
# the Free Software Foundation; either version 3 of the License, or (at your #
|
14
|
+
# option) any later version. #
|
15
|
+
# #
|
16
|
+
# <%= progname %> is distributed in the hope that it will be useful, but #
|
17
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY #
|
18
|
+
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public #
|
19
|
+
# License for more details. #
|
20
|
+
# #
|
21
|
+
# You should have received a copy of the GNU Affero General Public License #
|
22
|
+
# along with <%= progname %>. If not, see <http://www.gnu.org/licenses/>. #
|
23
|
+
# #
|
24
|
+
###############################################################################
|
25
|
+
#++
|
26
|
+
|
1
27
|
module <%= classname %>
|
2
28
|
end
|
29
|
+
|
30
|
+
require_relative '<%= progname %>/version'
|
data/lib/hen/cli.rb
CHANGED
@@ -79,11 +79,16 @@ class Hen
|
|
79
79
|
ask!("Project's name", default)
|
80
80
|
end
|
81
81
|
|
82
|
-
# A short
|
83
|
-
def
|
82
|
+
# A short summary of the project's description. (Required)
|
83
|
+
def progsumm(default = nil)
|
84
84
|
ask!("Program's description summary", default)
|
85
85
|
end
|
86
86
|
|
87
|
+
# A long description of the project. (Optional)
|
88
|
+
def progdesc(default = nil)
|
89
|
+
ask("Program's full description", default)
|
90
|
+
end
|
91
|
+
|
87
92
|
# The project's namespace. (Required)
|
88
93
|
#
|
89
94
|
# Namespaces SHOULD match the project name in SnakeCase.
|
data/lib/hen/dsl.rb
CHANGED
@@ -53,16 +53,21 @@ class Hen
|
|
53
53
|
}
|
54
54
|
end
|
55
55
|
|
56
|
+
# Get a handle on the currently defined tasks.
|
57
|
+
def tasks
|
58
|
+
Rake.application.instance_variable_get(:@tasks)
|
59
|
+
end
|
60
|
+
|
56
61
|
# Define task +t+, but overwrite any existing task of that name!
|
57
62
|
# (Rake usually just adds them up.)
|
58
63
|
def task!(t, *args, &block)
|
59
|
-
|
64
|
+
tasks.delete(t.to_s)
|
60
65
|
task(t, *args, &block)
|
61
66
|
end
|
62
67
|
|
63
68
|
# Return true if task +t+ is defined, false otherwise.
|
64
69
|
def have_task?(t)
|
65
|
-
|
70
|
+
tasks.key?(t.to_s)
|
66
71
|
end
|
67
72
|
|
68
73
|
# Find a command that is executable and run it. Intended for
|
data/lib/hen/version.rb
CHANGED
data/lib/hens/gem.rake
CHANGED
@@ -126,6 +126,7 @@ Hen :gem => :rdoc do
|
|
126
126
|
development_dependencies = Array(gem_options.delete(:development_dependencies))
|
127
127
|
|
128
128
|
default_dependencies = %w[hen rake]
|
129
|
+
default_dependencies << 'rake-compiler' unless gem_options[:extensions].empty?
|
129
130
|
|
130
131
|
unless (test_files = gem_options[:files].grep(/\A(?:test|spec)s?\//)).empty?
|
131
132
|
test_dependency = case test_files.first.split(File::SEPARATOR).first
|
@@ -326,7 +327,7 @@ Hen :gem => :rdoc do
|
|
326
327
|
end
|
327
328
|
|
328
329
|
desc 'Build native gems'
|
329
|
-
task 'gem:native' => %w[cross compile native gem]
|
330
|
+
task 'gem:native' => %w[cross compile rake:native gem]
|
330
331
|
end
|
331
332
|
|
332
333
|
extension_task = Rake::ExtensionTask.new(nil, gem_spec) { |ext|
|
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.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jens Wille
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: highline
|
@@ -66,8 +66,7 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
description:
|
70
|
-
style.
|
69
|
+
description: A Rake helper framework, similar to Hoe or Echoe.
|
71
70
|
email: jens.wille@gmail.com
|
72
71
|
executables:
|
73
72
|
- hen
|
@@ -107,13 +106,16 @@ licenses:
|
|
107
106
|
metadata: {}
|
108
107
|
post_install_message: |2+
|
109
108
|
|
110
|
-
hen-0.6.
|
109
|
+
hen-0.6.2 [2014-05-13]:
|
111
110
|
|
112
|
-
*
|
111
|
+
* Avoid circular dependency for 'gem:native' task.
|
112
|
+
* Added default dependency for rake-compiler.
|
113
|
+
* Updated sample project skeleton.
|
114
|
+
* New DSL method 'tasks'.
|
113
115
|
|
114
116
|
rdoc_options:
|
115
117
|
- "--title"
|
116
|
-
- hen Application documentation (v0.6.
|
118
|
+
- hen Application documentation (v0.6.2)
|
117
119
|
- "--charset"
|
118
120
|
- UTF-8
|
119
121
|
- "--line-numbers"
|
@@ -137,5 +139,5 @@ rubyforge_project:
|
|
137
139
|
rubygems_version: 2.2.2.x
|
138
140
|
signing_key:
|
139
141
|
specification_version: 4
|
140
|
-
summary:
|
142
|
+
summary: Just another project helper that integrates with Rake.
|
141
143
|
test_files: []
|