pit 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ 2012-12-04 SATOH Hiroh <cho45@lowreal.net>
2
+
3
+ * [release]:
4
+ Released 0.07: Fix releng by hotchpotch
5
+
1
6
  2008-07-15 SATOH Hiroh <cho45@lowreal.net>
2
7
 
3
8
  * [release]:
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in text_bracket_expander.gemspec
4
+ gemspec
5
+
6
+ gem 'rake'
data/Rakefile CHANGED
@@ -1,128 +1,9 @@
1
- require 'rubygems'
2
- require 'rake'
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
- Rake::GemPackageTask.new(spec) do |p|
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
- require "shipit"
116
- Rake::ShipitTask.new do |s|
117
- s.Step.new {
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
@@ -1,10 +1,10 @@
1
1
 
2
+ require 'pit/version'
2
3
  require "yaml"
3
4
  require "pathname"
4
5
  require "tempfile"
5
6
 
6
7
  module Pit
7
- VERSION = "0.0.6"
8
8
  Directory = Pathname.new("~/.pit").expand_path
9
9
  @@config = Directory + "pit.yaml"
10
10
  @@profile = Directory + "default.yaml"
@@ -0,0 +1,4 @@
1
+
2
+ module Pit
3
+ VERSION = '0.0.7'
4
+ end
@@ -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
@@ -15,7 +15,7 @@ end
15
15
 
16
16
  dir = Pathname.tempname
17
17
  dir.mkpath
18
- ENV["HOME"] = dir
18
+ ENV["HOME"] = dir.to_s
19
19
 
20
20
  require File.dirname(__FILE__) + '/test_helper.rb'
21
21
 
metadata CHANGED
@@ -1,71 +1,77 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
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: pit
14
+ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2008-07-15 00:00:00 +09:00
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: cho45@lowreal.net
22
+ email:
23
+ - cho45@lowreal.net
18
24
  executables:
19
25
  - pit
20
26
  extensions: []
21
27
 
22
- extra_rdoc_files:
23
- - README
24
- - ChangeLog
28
+ extra_rdoc_files: []
29
+
25
30
  files:
26
- - README
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
- - lib/pit.rb
33
- has_rdoc: true
34
- homepage: http://lowreal.rubyforge.org
42
+ homepage: http://github.com/cho45/pit
43
+ licenses: []
44
+
35
45
  post_install_message:
36
- rdoc_options:
37
- - --title
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: lowreal
66
- rubygems_version: 1.2.0
70
+ rubyforge_project:
71
+ rubygems_version: 1.8.22
67
72
  signing_key:
68
- specification_version: 2
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