pit 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/ChangeLog +5 -0
- data/Gemfile +6 -0
- data/Rakefile +6 -125
- data/lib/pit.rb +1 -1
- data/lib/pit/version.rb +4 -0
- data/pit.gemspec +19 -0
- data/test/pit_test.rb +1 -1
- metadata +36 -30
data/.gitignore
ADDED
data/ChangeLog
CHANGED
data/Gemfile
ADDED
data/Rakefile
CHANGED
@@ -1,128 +1,9 @@
|
|
1
|
-
|
2
|
-
require
|
3
|
-
require 'rake/clean'
|
4
|
-
require 'rake/testtask'
|
5
|
-
require 'rake/packagetask'
|
6
|
-
require 'rake/gempackagetask'
|
7
|
-
require 'rake/rdoctask'
|
8
|
-
require 'rake/contrib/rubyforgepublisher'
|
9
|
-
require 'rake/contrib/sshpublisher'
|
10
|
-
require 'fileutils'
|
11
|
-
include FileUtils
|
12
|
-
|
13
|
-
require "lib/pit"
|
14
|
-
|
15
|
-
NAME = "pit"
|
16
|
-
AUTHOR = "cho45"
|
17
|
-
EMAIL = "cho45@lowreal.net"
|
18
|
-
DESCRIPTION = "pit: account management tool"
|
19
|
-
RUBYFORGE_PROJECT = "lowreal"
|
20
|
-
HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
|
21
|
-
BIN_FILES = %w( pit )
|
22
|
-
VERS = Pit::VERSION
|
23
|
-
|
24
|
-
|
25
|
-
REV = File.read(".svn/entries")[/committed-rev="(d+)"/, 1] rescue nil
|
26
|
-
CLEAN.include ['**/.*.sw?', '*.gem', '.config']
|
27
|
-
RDOC_OPTS = [
|
28
|
-
'--title', "#{NAME} documentation",
|
29
|
-
"--charset", "utf-8",
|
30
|
-
"--opname", "index.html",
|
31
|
-
"--line-numbers",
|
32
|
-
"--main", "README",
|
33
|
-
"--inline-source",
|
34
|
-
]
|
35
|
-
|
36
|
-
task :default => [:test]
|
37
|
-
task :package => [:clean]
|
38
|
-
|
39
|
-
Rake::TestTask.new("test") do |t|
|
40
|
-
t.libs << "test"
|
41
|
-
t.pattern = "test/**/*_test.rb"
|
42
|
-
t.verbose = true
|
43
|
-
end
|
44
|
-
|
45
|
-
spec = Gem::Specification.new do |s|
|
46
|
-
s.name = NAME
|
47
|
-
s.version = VERS
|
48
|
-
s.platform = Gem::Platform::RUBY
|
49
|
-
s.has_rdoc = true
|
50
|
-
s.extra_rdoc_files = ["README", "ChangeLog"]
|
51
|
-
s.rdoc_options += RDOC_OPTS + ['--exclude', '^(examples|extras)/']
|
52
|
-
s.summary = DESCRIPTION
|
53
|
-
s.description = DESCRIPTION
|
54
|
-
s.author = AUTHOR
|
55
|
-
s.email = EMAIL
|
56
|
-
s.homepage = HOMEPATH
|
57
|
-
s.executables = BIN_FILES
|
58
|
-
s.rubyforge_project = RUBYFORGE_PROJECT
|
59
|
-
s.bindir = "bin"
|
60
|
-
s.require_path = "lib"
|
61
|
-
s.autorequire = "pit"
|
62
|
-
s.test_files = Dir["test/test_*.rb"]
|
63
|
-
|
64
|
-
#s.add_dependency('activesupport', '>=1.3.1')
|
65
|
-
#s.required_ruby_version = '>= 1.8.2'
|
66
|
-
|
67
|
-
s.files = %w(README ChangeLog Rakefile) +
|
68
|
-
Dir.glob("{bin,doc,test,lib,templates,generator,extras,website,script}/**/*") +
|
69
|
-
Dir.glob("ext/**/*.{h,c,rb}") +
|
70
|
-
Dir.glob("examples/**/*.rb") +
|
71
|
-
Dir.glob("tools/*.rb")
|
72
|
-
|
73
|
-
s.extensions = FileList["ext/**/extconf.rb"].to_a
|
74
|
-
end
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
require "bundler/gem_tasks"
|
75
3
|
|
76
|
-
|
77
|
-
p.need_tar = true
|
78
|
-
p.gem_spec = spec
|
79
|
-
end
|
80
|
-
|
81
|
-
task :install do
|
82
|
-
name = "#{NAME}-#{VERS}.gem"
|
83
|
-
sh %{rake package}
|
84
|
-
sh %{sudo gem install pkg/#{name}}
|
85
|
-
end
|
86
|
-
|
87
|
-
task :uninstall => [:clean] do
|
88
|
-
sh %{sudo gem uninstall #{NAME}}
|
89
|
-
end
|
90
|
-
|
91
|
-
|
92
|
-
Rake::RDocTask.new do |rdoc|
|
93
|
-
rdoc.rdoc_dir = 'html'
|
94
|
-
rdoc.options += RDOC_OPTS
|
95
|
-
rdoc.template = "resh"
|
96
|
-
#rdoc.template = "#{ENV['template']}.rb" if ENV['template']
|
97
|
-
if ENV['DOC_FILES']
|
98
|
-
rdoc.rdoc_files.include(ENV['DOC_FILES'].split(/,\s*/))
|
99
|
-
else
|
100
|
-
rdoc.rdoc_files.include('README', 'ChangeLog')
|
101
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
102
|
-
rdoc.rdoc_files.include('ext/**/*.c')
|
103
|
-
end
|
104
|
-
end
|
105
|
-
|
106
|
-
desc "Publish to RubyForge"
|
107
|
-
task :rubyforge => [:rdoc, :package] do
|
108
|
-
require 'rubyforge'
|
109
|
-
@local_dir = "html"
|
110
|
-
@host = "cho45@rubyforge.org"
|
111
|
-
@remote_dir = "/var/www/gforge-projects/#{RUBYFORGE_PROJECT}/#{NAME}"
|
112
|
-
sh %{rsync -r --delete --verbose #{@local_dir}/ #{@host}:#{@remote_dir}}
|
113
|
-
end
|
4
|
+
require 'rake/testtask'
|
114
5
|
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
system("svn", "up")
|
119
|
-
}.and {}
|
120
|
-
s.Task :rubyforge
|
121
|
-
s.ChangeVersion "lib/pit.rb", "VERSION"
|
122
|
-
s.Commit
|
123
|
-
s.Task :clean, :package
|
124
|
-
s.RubyForge
|
125
|
-
s.Tag
|
126
|
-
s.Twitter
|
6
|
+
Rake::TestTask.new do |t|
|
7
|
+
t.libs << "test"
|
8
|
+
t.test_files = FileList['test/*_test.rb']
|
127
9
|
end
|
128
|
-
|
data/lib/pit.rb
CHANGED
data/lib/pit/version.rb
ADDED
data/pit.gemspec
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'pit/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |gem|
|
7
|
+
gem.name = "pit"
|
8
|
+
gem.version = Pit::VERSION
|
9
|
+
gem.authors = ["cho45"]
|
10
|
+
gem.email = ["cho45@lowreal.net"]
|
11
|
+
gem.description = %q|pit: account management tool|
|
12
|
+
gem.summary = %q|pit: account management tool|
|
13
|
+
gem.homepage = "http://github.com/cho45/pit"
|
14
|
+
|
15
|
+
gem.files = `git ls-files`.split($/)
|
16
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
17
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
|
+
gem.require_paths = ["lib"]
|
19
|
+
end
|
data/test/pit_test.rb
CHANGED
metadata
CHANGED
@@ -1,71 +1,77 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 17
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 7
|
10
|
+
version: 0.0.7
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- cho45
|
8
|
-
autorequire:
|
14
|
+
autorequire:
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date:
|
13
|
-
default_executable:
|
18
|
+
date: 2012-12-04 00:00:00 Z
|
14
19
|
dependencies: []
|
15
20
|
|
16
21
|
description: "pit: account management tool"
|
17
|
-
email:
|
22
|
+
email:
|
23
|
+
- cho45@lowreal.net
|
18
24
|
executables:
|
19
25
|
- pit
|
20
26
|
extensions: []
|
21
27
|
|
22
|
-
extra_rdoc_files:
|
23
|
-
|
24
|
-
- ChangeLog
|
28
|
+
extra_rdoc_files: []
|
29
|
+
|
25
30
|
files:
|
26
|
-
-
|
31
|
+
- .gitignore
|
27
32
|
- ChangeLog
|
33
|
+
- Gemfile
|
34
|
+
- README
|
28
35
|
- Rakefile
|
29
36
|
- bin/pit
|
37
|
+
- lib/pit.rb
|
38
|
+
- lib/pit/version.rb
|
39
|
+
- pit.gemspec
|
30
40
|
- test/pit_test.rb
|
31
41
|
- test/test_helper.rb
|
32
|
-
|
33
|
-
|
34
|
-
|
42
|
+
homepage: http://github.com/cho45/pit
|
43
|
+
licenses: []
|
44
|
+
|
35
45
|
post_install_message:
|
36
|
-
rdoc_options:
|
37
|
-
|
38
|
-
- pit documentation
|
39
|
-
- --charset
|
40
|
-
- utf-8
|
41
|
-
- --opname
|
42
|
-
- index.html
|
43
|
-
- --line-numbers
|
44
|
-
- --main
|
45
|
-
- README
|
46
|
-
- --inline-source
|
47
|
-
- --exclude
|
48
|
-
- ^(examples|extras)/
|
46
|
+
rdoc_options: []
|
47
|
+
|
49
48
|
require_paths:
|
50
49
|
- lib
|
51
50
|
required_ruby_version: !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
52
52
|
requirements:
|
53
53
|
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
+
hash: 3
|
56
|
+
segments:
|
57
|
+
- 0
|
55
58
|
version: "0"
|
56
|
-
version:
|
57
59
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
60
|
+
none: false
|
58
61
|
requirements:
|
59
62
|
- - ">="
|
60
63
|
- !ruby/object:Gem::Version
|
64
|
+
hash: 3
|
65
|
+
segments:
|
66
|
+
- 0
|
61
67
|
version: "0"
|
62
|
-
version:
|
63
68
|
requirements: []
|
64
69
|
|
65
|
-
rubyforge_project:
|
66
|
-
rubygems_version: 1.
|
70
|
+
rubyforge_project:
|
71
|
+
rubygems_version: 1.8.22
|
67
72
|
signing_key:
|
68
|
-
specification_version:
|
73
|
+
specification_version: 3
|
69
74
|
summary: "pit: account management tool"
|
70
75
|
test_files:
|
76
|
+
- test/pit_test.rb
|
71
77
|
- test/test_helper.rb
|