package 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gemspec +19 -0
- data/Gemfile +2 -0
- data/LICENSE +21 -0
- data/README.rdoc +26 -0
- data/Rakefile +77 -0
- data/bin/pkg +3 -0
- data/lib/package.rb +7 -0
- data/lib/package/conf.rb +5 -0
- data/test/test_require.rb +11 -0
- metadata +56 -0
data/.gemspec
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
GemSpec = Gem::Specification.new do |gem|
|
4
|
+
gem.name = 'package'
|
5
|
+
gem.version = '0.0.1'
|
6
|
+
gem.license = 'MIT'
|
7
|
+
gem.required_ruby_version = '>= 1.9.1'
|
8
|
+
|
9
|
+
gem.authors << 'Ingy döt Net'
|
10
|
+
gem.email = 'ingy@ingy.net'
|
11
|
+
gem.summary = 'The Package package package package!'
|
12
|
+
gem.description = <<-'.'
|
13
|
+
Package is a general purpose tool for creating new packages.
|
14
|
+
.
|
15
|
+
gem.homepage = 'http://acmeism.org'
|
16
|
+
|
17
|
+
gem.files = `git ls-files`.lines.map{|l|l.chomp}
|
18
|
+
# gem.add_development_dependency 'testml-lite', '>= 0.0.1'
|
19
|
+
end
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
(The MIT License)
|
2
|
+
|
3
|
+
Copyright © 2013 Ingy döt Net
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
|
+
this software and associated documentation files (the ‘Software’), to deal in
|
7
|
+
the Software without restriction, including without limitation the rights to
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
9
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
10
|
+
so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
= Package - The Package package package package!
|
2
|
+
|
3
|
+
= Synopsis
|
4
|
+
|
5
|
+
pkg new foo-bar-rb from:~/pkg/rubygem
|
6
|
+
|
7
|
+
= Description
|
8
|
+
|
9
|
+
This is a general purpose tool for creating new packages.
|
10
|
+
|
11
|
+
In this context, a package is a directory of text files that serve some
|
12
|
+
purpose. This may be a Ruby gem, a CPAN module, a Python package, or even a
|
13
|
+
non programming related set of text files that are needed for some purpose.
|
14
|
+
|
15
|
+
If you are the type of person who is constantly packaging packages, then
|
16
|
+
this Package package is the package for you.
|
17
|
+
|
18
|
+
Package is used via a command line tool called +pkg+.
|
19
|
+
|
20
|
+
= How To Use +pkg+
|
21
|
+
|
22
|
+
… Coming Soon …
|
23
|
+
|
24
|
+
= Copyright
|
25
|
+
|
26
|
+
Copyright (c) 2013 Ingy döt Net. See LICENSE for further details.
|
data/Rakefile
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
# Load Gem constants from the gemspec
|
2
|
+
GemSpecFile = '.gemspec'
|
3
|
+
load GemSpecFile
|
4
|
+
GemName = GemSpec.name
|
5
|
+
GemVersion = GemSpec.version
|
6
|
+
GemDir = "#{GemName}-#{GemVersion}"
|
7
|
+
GemFile = "#{GemDir}.gem"
|
8
|
+
DevNull = '2>/dev/null'
|
9
|
+
|
10
|
+
# Require the Rake libraries
|
11
|
+
require 'rake'
|
12
|
+
require 'rake/testtask'
|
13
|
+
require 'rake/clean'
|
14
|
+
if File.exists? 'test/testml.yaml'
|
15
|
+
if File.exists? 'lib/rake/testml.rb'
|
16
|
+
$:.unshift "#{Dir.getwd}/lib"
|
17
|
+
end
|
18
|
+
require 'rake/testml'
|
19
|
+
end
|
20
|
+
|
21
|
+
task :default => 'help'
|
22
|
+
|
23
|
+
CLEAN.include GemDir, GemFile, 'data.tar.gz', 'metadata.gz'
|
24
|
+
|
25
|
+
desc 'Run the tests'
|
26
|
+
task :test do
|
27
|
+
Rake::TestTask.new do |t|
|
28
|
+
t.verbose = true
|
29
|
+
t.test_files = FileList['test/*.rb'].sort
|
30
|
+
# t.test_files = FileList[
|
31
|
+
# 'test/basic.rb',
|
32
|
+
# 'test/match.rb',
|
33
|
+
# 'test/plan.rb',
|
34
|
+
# 'test/semicolons.rb',
|
35
|
+
# 'test/test1.rb',
|
36
|
+
# ].sort
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
desc 'Build the gem'
|
41
|
+
task :build => [:clean, :test] do
|
42
|
+
sh "gem build #{GemSpecFile}"
|
43
|
+
end
|
44
|
+
|
45
|
+
desc 'Install the gem'
|
46
|
+
task :install => [:build] do
|
47
|
+
sh "gem install #{GemFile}"
|
48
|
+
end
|
49
|
+
|
50
|
+
desc 'Build, unpack and inspect the gem'
|
51
|
+
task :distdir => [:build] do
|
52
|
+
sh "tar xf #{GemFile} #{DevNull}"
|
53
|
+
Dir.mkdir GemDir
|
54
|
+
Dir.chdir GemDir
|
55
|
+
sh "tar xzf ../data.tar.gz #{DevNull}"
|
56
|
+
puts "\n>>> Entering sub-shell for #{GemDir}..."
|
57
|
+
system ENV['SHELL']
|
58
|
+
end
|
59
|
+
|
60
|
+
desc 'Build and push the gem'
|
61
|
+
task :release => [:build] do
|
62
|
+
sh "gem push #{GemFile}"
|
63
|
+
end
|
64
|
+
|
65
|
+
desc 'Print a description of the gem'
|
66
|
+
task :desc do
|
67
|
+
puts "Gem: '#{GemName}' (version #{GemVersion})"
|
68
|
+
puts
|
69
|
+
puts GemSpec.description.gsub /^/, ' '
|
70
|
+
end
|
71
|
+
|
72
|
+
desc 'List the Rakefile tasks'
|
73
|
+
task :help do
|
74
|
+
puts 'The following rake tasks are available:'
|
75
|
+
puts
|
76
|
+
puts `rake -T`.gsub /^/, ' '
|
77
|
+
end
|
data/bin/pkg
ADDED
data/lib/package.rb
ADDED
data/lib/package/conf.rb
ADDED
metadata
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: package
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Ingy döt Net
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-02-14 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
14
|
+
description: ! 'Package is a general purpose tool for creating new packages.
|
15
|
+
|
16
|
+
'
|
17
|
+
email: ingy@ingy.net
|
18
|
+
executables: []
|
19
|
+
extensions: []
|
20
|
+
extra_rdoc_files: []
|
21
|
+
files:
|
22
|
+
- .gemspec
|
23
|
+
- Gemfile
|
24
|
+
- LICENSE
|
25
|
+
- README.rdoc
|
26
|
+
- Rakefile
|
27
|
+
- bin/pkg
|
28
|
+
- lib/package.rb
|
29
|
+
- lib/package/conf.rb
|
30
|
+
- test/test_require.rb
|
31
|
+
homepage: http://acmeism.org
|
32
|
+
licenses:
|
33
|
+
- MIT
|
34
|
+
post_install_message:
|
35
|
+
rdoc_options: []
|
36
|
+
require_paths:
|
37
|
+
- lib
|
38
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 1.9.1
|
44
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
45
|
+
none: false
|
46
|
+
requirements:
|
47
|
+
- - ! '>='
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0'
|
50
|
+
requirements: []
|
51
|
+
rubyforge_project:
|
52
|
+
rubygems_version: 1.8.23
|
53
|
+
signing_key:
|
54
|
+
specification_version: 3
|
55
|
+
summary: The Package package package package!
|
56
|
+
test_files: []
|