Categories: None [Edit]
inventory-rake
Inventory-Rake
Inventory-Rake provides Rake¹ tasks for your Inventory². This includes tasks
for cleaning up our project, compiling extensions, installing dependencies,
installing and uninstalling the project itself, and creating and pushing
distribution files to distribution points.
¹ See http://rake.rubyforge.org/
² See http://disu.se/software/inventory-1.0/
§ Installation
Install Inventory-Rake with
% gem install inventory-rake
§ Usage
Include the following code in your ‹Rakefile›, where ‹Package› is the
top-level module of your project:
require 'inventory-rake-3.0'
load File.expand_path('../lib/package/version.rb', __FILE__)
Inventory::Rake::Tasks.define Package::Version
Inventory::Rake::Tasks.unless_installing_dependencies do
# Any additional tasks that your project’s dependencies provide
end
‹Inventory::Rake::Tasks.define› does the heavy lifting. It takes our
inventory and sets up the tasks mentioned above. We also do some
additional customization of the gem specification.
As we want to be able to use our Rakefile to install our dependencies for
us, the rest of the Rakefile is inside the conditional
#unless_installing_dependencies, which, as the name certainly implies,
executes its block unless the task being run is the one that installs our
dependencies. This becomes relevant if we want to, for example, set up
Travis¹ integration. To do so, simply add
before_script:
- gem install inventory-rake -v '~> VERSION' --no-rdoc --no-ri
- rake gem:deps:install
to your ‹.travis.yml› file. This’ll make sure that Travis installs all
development, runtime, and optional dependencies that you’ve listed in your
inventory before running any tests.
There’s more information in the {API documentation}² that you’ll likely
want to read up on if anything is unclear.
¹ See http://travis-ci.org/
² See http://disu.se/software/inventory-rak...
Total
Ranking: 34,575 of 183,107
Downloads: 32,744
Daily
Ranking: 19,470 of 183,092
Downloads: 13
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
22,630 | 58,827 | inventory |
33,429 | 34,289 | lookout |
34,879 | 32,346 | inventory-rake-tasks-yard |
40,638 | 26,534 | value |
51,549 | 19,282 | yard-heuristics |
54,369 | 17,931 | yard-value |
61,713 | 15,140 | lookout-rake |
67,556 | 13,309 | ame |
77,690 | 10,829 | u |
99,593 | 7,289 | lookout-rack |
133,240 | 4,157 | value-yard |
Depends on
Rank | Downloads | Name |
---|---|---|
10 | 953,844,246 | rake |
224 | 158,681,269 | yard |
22,630 | 58,827 | inventory |
33,429 | 34,289 | lookout |
34,879 | 32,346 | inventory-rake-tasks-yard |
51,549 | 19,282 | yard-heuristics |
61,713 | 15,140 | lookout-rake |
Owners
# | Gravatar | Handle |
---|---|---|
1 | now |