inventory-rake 1.5.3 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README +1 -5
- data/Rakefile +1 -5
- data/lib/inventory-rake-1.0/tasks/gem.rb +11 -5
- data/lib/inventory-rake-1.0/version.rb +14 -2
- metadata +38 -40
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb1e28676dee50af7220c9c0c6fb5232b1fe85df
|
4
|
+
data.tar.gz: b8b24f29b9fd2f45d904544e570acf0e743f491c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a04db643522050afe3e17901c85b39594ef60daf9f065e03ca6f5693d881afd7d04ee578506664631874f7f9f658346a816c1eec2476fa67e84acb7fbb795d10
|
7
|
+
data.tar.gz: dbfa4066da148ce4f9ae8ecf00f5f9cd1075086a2e5a6251e5b0c552da499232880b9e595619d9ad5c6ec1947fd0d8823c719c7b34308ee13c60096f2d2970fb
|
data/README
CHANGED
@@ -23,11 +23,7 @@
|
|
23
23
|
|
24
24
|
load File.expand_path('../lib/package/version.rb', __FILE__)
|
25
25
|
|
26
|
-
Inventory::Rake::Tasks.define Package::Version
|
27
|
-
s.author = 'Your Name'
|
28
|
-
s.email = 'you@example.com'
|
29
|
-
s.homepage = 'http://example.com/'
|
30
|
-
}
|
26
|
+
Inventory::Rake::Tasks.define Package::Version
|
31
27
|
|
32
28
|
Inventory::Rake::Tasks.unless_installing_dependencies do
|
33
29
|
# Any additional tasks that your project’s dependencies provide
|
data/Rakefile
CHANGED
@@ -3,11 +3,7 @@
|
|
3
3
|
$:.unshift File.expand_path('../lib', __FILE__)
|
4
4
|
require 'inventory-rake-1.0'
|
5
5
|
|
6
|
-
Inventory::Rake::Tasks.define Inventory::Rake::Version
|
7
|
-
s.author = 'Nikolai Weibull'
|
8
|
-
s.email = 'now@bitwi.se'
|
9
|
-
s.homepage = 'https://github.com/now/inventory-rake'
|
10
|
-
}
|
6
|
+
Inventory::Rake::Tasks.define Inventory::Rake::Version
|
11
7
|
|
12
8
|
Inventory::Rake::Tasks.unless_installing_dependencies do
|
13
9
|
require 'lookout-rake-3.0'
|
@@ -11,11 +11,11 @@ class Inventory::Rake::Tasks::Gem
|
|
11
11
|
# task object and the gem specification for further customization, then
|
12
12
|
# {#define}s the tasks.
|
13
13
|
#
|
14
|
-
# The default for SPECIFICATION is to use the name, version,
|
15
|
-
# inventory, use all of `README` as the
|
16
|
-
#
|
17
|
-
# extension of the inventory’s extconf
|
18
|
-
# inventory’s dependencies.
|
14
|
+
# The default for SPECIFICATION is to use the name, version, authors, email,
|
15
|
+
# homepage, licenses, and files of the inventory, use all of `README` as the
|
16
|
+
# description, set the summary to the first sentence of the description, set
|
17
|
+
# the require paths to “lib”, add each extension of the inventory’s extconf
|
18
|
+
# to the extensions, and finally add inventory’s dependencies.
|
19
19
|
#
|
20
20
|
# @param [Hash] options
|
21
21
|
# @option options [Inventory] :inventory (Inventory::Rake::Tasks.inventory)
|
@@ -37,6 +37,12 @@ class Inventory::Rake::Tasks::Gem
|
|
37
37
|
s.description = IO.read('README')
|
38
38
|
s.summary = s.description[/^.*?\./].lstrip
|
39
39
|
|
40
|
+
s.authors = @inventory.authors.map(&:name)
|
41
|
+
s.email = @inventory.authors.map(&:email)
|
42
|
+
s.homepage = @inventory.homepage
|
43
|
+
|
44
|
+
s.licenses = @inventory.licenses.map(&:abbreviation)
|
45
|
+
|
40
46
|
s.files = @inventory.files # TODO: We can skip #files and rely on #to_a
|
41
47
|
|
42
48
|
s.require_paths = @inventory.lib_directories
|
@@ -3,7 +3,19 @@
|
|
3
3
|
require 'inventory-1.0'
|
4
4
|
|
5
5
|
module Inventory::Rake
|
6
|
-
Version = Inventory.new(1,
|
6
|
+
Version = Inventory.new(1, 6, 1){
|
7
|
+
authors{
|
8
|
+
author 'Nikolai Weibull', 'now@disu.se'
|
9
|
+
}
|
10
|
+
|
11
|
+
homepage 'http://disu.se/software/inventory-rake'
|
12
|
+
|
13
|
+
licenses{
|
14
|
+
license 'LGPLv3+',
|
15
|
+
'GNU Lesser General Public License, version 3 or later',
|
16
|
+
'http://www.gnu.org/licenses/'
|
17
|
+
}
|
18
|
+
|
7
19
|
def dependencies
|
8
20
|
super + Inventory::Dependencies.new{
|
9
21
|
development 'inventory-rake-tasks-yard', 1, 3, 0
|
@@ -11,7 +23,7 @@ module Inventory::Rake
|
|
11
23
|
development 'lookout-rake', 3, 0, 0
|
12
24
|
development 'yard', 0, 8, 0
|
13
25
|
development 'yard-heuristics', 1, 1, 0
|
14
|
-
runtime 'rake',
|
26
|
+
runtime 'rake', 10, 0, 0, :feature => 'rake'
|
15
27
|
}
|
16
28
|
end
|
17
29
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inventory-rake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nikolai Weibull
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: inventory
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.5'
|
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.5'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: inventory-rake-tasks-yard
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,51 +100,47 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - ~>
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0
|
103
|
+
version: '10.0'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - ~>
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0
|
110
|
+
version: '10.0'
|
111
111
|
description: |2
|
112
112
|
Inventory-Rake
|
113
113
|
|
114
|
-
Inventory-Rake provides Rake
|
114
|
+
Inventory-Rake provides Rake┬╣ tasks for your Inventory┬▓. This includes tasks
|
115
115
|
for cleaning up our project, compiling extensions, installing dependencies,
|
116
116
|
installing and uninstalling the project itself, and creating and pushing
|
117
117
|
distribution files to distribution points.
|
118
118
|
|
119
|
-
|
120
|
-
|
119
|
+
┬╣ See http://rake.rubyforge.org/
|
120
|
+
┬▓ See http://disu.se/software/inventory/
|
121
121
|
|
122
|
-
|
122
|
+
§ Installation
|
123
123
|
|
124
124
|
Install Inventory-Rake with
|
125
125
|
|
126
126
|
% gem install inventory-rake
|
127
127
|
|
128
|
-
|
128
|
+
§ Usage
|
129
129
|
|
130
|
-
Include the following code in your
|
130
|
+
Include the following code in your ‹Rakefile›, where ‹Package› is the
|
131
131
|
top-level module of your project:
|
132
132
|
|
133
133
|
require 'inventory-rake-3.0'
|
134
134
|
|
135
135
|
load File.expand_path('../lib/package/version.rb', __FILE__)
|
136
136
|
|
137
|
-
Inventory::Rake::Tasks.define Package::Version
|
138
|
-
s.author = 'Your Name'
|
139
|
-
s.email = 'you@example.com'
|
140
|
-
s.homepage = 'http://example.com/'
|
141
|
-
}
|
137
|
+
Inventory::Rake::Tasks.define Package::Version
|
142
138
|
|
143
139
|
Inventory::Rake::Tasks.unless_installing_dependencies do
|
144
|
-
# Any additional tasks that your project
|
140
|
+
# Any additional tasks that your projectΓÇÖs dependencies provide
|
145
141
|
end
|
146
142
|
|
147
|
-
|
143
|
+
‹Inventory::Rake::Tasks.define› does the heavy lifting. It takes our
|
148
144
|
inventory and sets up the tasks mentioned above. We also do some
|
149
145
|
additional customization of the gem specification.
|
150
146
|
|
@@ -153,23 +149,23 @@ description: |2
|
|
153
149
|
#unless_installing_dependencies, which, as the name certainly implies,
|
154
150
|
executes its block unless the task being run is the one that installs our
|
155
151
|
dependencies. This becomes relevant if we want to, for example, set up
|
156
|
-
Travis
|
152
|
+
Travis┬╣ integration. To do so, simply add
|
157
153
|
|
158
154
|
before_script:
|
159
155
|
- gem install inventory-rake -v '~> VERSION' --no-rdoc --no-ri
|
160
156
|
- rake gem:deps:install
|
161
157
|
|
162
|
-
to your
|
163
|
-
development, runtime, and optional dependencies that you
|
158
|
+
to your ‹.travis.yml› file. This’ll make sure that Travis installs all
|
159
|
+
development, runtime, and optional dependencies that youΓÇÖve listed in your
|
164
160
|
inventory before running any tests.
|
165
161
|
|
166
|
-
There
|
162
|
+
ThereΓÇÖs more information in the {API documentation}┬▓ that youΓÇÖll likely
|
167
163
|
want to read up on if anything is unclear.
|
168
164
|
|
169
|
-
|
170
|
-
|
165
|
+
┬╣ See http://travis-ci.org/
|
166
|
+
┬▓ See http://disu.se/software/inventory/api/inventory-rake/
|
171
167
|
|
172
|
-
|
168
|
+
§ Tasks
|
173
169
|
|
174
170
|
The tasks that are created if you use Inventory-Rake are:
|
175
171
|
|
@@ -187,7 +183,7 @@ description: |2
|
|
187
183
|
= ext/name/Makefile. = Makefile for extension /name/; depends on inventory
|
188
184
|
path, ext/name/extconf.rb file, and ext/name/depend file. Will be
|
189
185
|
created by extconf.rb, which may take options from environment variable
|
190
|
-
name#upcase_EXTCONF_OPTIONS or
|
186
|
+
name#upcase_EXTCONF_OPTIONS or ‹EXTCONF_OPTIONS› if defined.
|
191
187
|
= clean:name. = Clean files built for extension /name/; depended upon by
|
192
188
|
clean.
|
193
189
|
= spec. = Create specifications; depends on gem:spec.
|
@@ -199,7 +195,7 @@ description: |2
|
|
199
195
|
file.
|
200
196
|
= inventory:check. = Check that the inventory is correct by looking for files
|
201
197
|
not listed in the inventory that match the pattern and for files listed
|
202
|
-
in the inventory that don
|
198
|
+
in the inventory that donΓÇÖt exist; depends on distclean.
|
203
199
|
= gem (file). = Gem file; depends on files included in gem.
|
204
200
|
= dist:check. = Check files before distribution; depends on dist and
|
205
201
|
gem:dist:check.
|
@@ -223,7 +219,7 @@ description: |2
|
|
223
219
|
= push. = Push distribution files to distribution hubs.
|
224
220
|
= gem:push. = Push gem to rubygems.org.
|
225
221
|
|
226
|
-
|
222
|
+
§ Financing
|
227
223
|
|
228
224
|
Currently, most of my time is spent at my day job and in my rather busy
|
229
225
|
private life. Please motivate me to spend time on this piece of software
|
@@ -233,22 +229,23 @@ description: |2
|
|
233
229
|
to have other people give me the things that I need to continue living
|
234
230
|
under the rules of said society. So, if you feel that this piece of
|
235
231
|
software has helped you out enough to warrant a reward, please PayPal a
|
236
|
-
donation to now@disu.se
|
232
|
+
donation to now@disu.se┬╣. Thanks! Your support wonΓÇÖt go unnoticed!
|
237
233
|
|
238
|
-
|
234
|
+
┬╣ Send a donation:
|
239
235
|
https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=now%40disu%2ese&item_name=Nikolai%20Weibull%20Software%20Services
|
240
236
|
|
241
|
-
|
237
|
+
§ Reporting Bugs
|
242
238
|
|
243
|
-
Please report any bugs that you encounter to the {issue tracker}
|
239
|
+
Please report any bugs that you encounter to the {issue tracker}┬╣.
|
244
240
|
|
245
|
-
|
241
|
+
┬╣ See https://github.com/now/inventory-rake/issues
|
246
242
|
|
247
|
-
|
243
|
+
§ Authors
|
248
244
|
|
249
245
|
Nikolai Weibull wrote the code, the tests, the manual pages, and this
|
250
246
|
README.
|
251
|
-
email:
|
247
|
+
email:
|
248
|
+
- now@disu.se
|
252
249
|
executables: []
|
253
250
|
extensions: []
|
254
251
|
extra_rdoc_files: []
|
@@ -272,8 +269,9 @@ files:
|
|
272
269
|
- test/unit/inventory-rake-1.0/version.rb
|
273
270
|
- README
|
274
271
|
- Rakefile
|
275
|
-
homepage:
|
276
|
-
licenses:
|
272
|
+
homepage: http://disu.se/software/inventory-rake
|
273
|
+
licenses:
|
274
|
+
- LGPLv3+
|
277
275
|
metadata: {}
|
278
276
|
post_install_message:
|
279
277
|
rdoc_options: []
|
@@ -291,8 +289,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
291
289
|
version: '0'
|
292
290
|
requirements: []
|
293
291
|
rubyforge_project:
|
294
|
-
rubygems_version: 2.0.
|
292
|
+
rubygems_version: 2.0.2
|
295
293
|
signing_key:
|
296
294
|
specification_version: 4
|
297
|
-
summary: Inventory-Rake provides Rake
|
295
|
+
summary: Inventory-Rake provides Rake┬╣ tasks for your Inventory┬▓.
|
298
296
|
test_files: []
|