phper 0.8.1 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +4 -0
- data/Gemfile +2 -3
- data/Gemfile.lock +52 -0
- data/Rakefile +0 -19
- data/VERSION +1 -1
- data/bin/markdown +26 -0
- data/lib/phper/agent.rb +9 -0
- data/lib/phper/commands.rb +35 -13
- data/man.md +193 -0
- data/phper.gemspec +14 -17
- metadata +47 -61
data/.travis.yml
ADDED
data/Gemfile
CHANGED
@@ -14,8 +14,7 @@ gem 'rdoc'
|
|
14
14
|
# Include everything needed to run rake, tests, features, etc.
|
15
15
|
group :development do
|
16
16
|
gem "shoulda", ">= 0"
|
17
|
-
gem "bundler"
|
18
|
-
gem "jeweler"
|
19
|
-
gem "rcov", ">= 0"
|
17
|
+
gem "bundler"
|
18
|
+
gem "jeweler"
|
20
19
|
gem 'mocha'
|
21
20
|
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
activesupport (3.2.8)
|
5
|
+
i18n (~> 0.6)
|
6
|
+
multi_json (~> 1.0)
|
7
|
+
addressable (2.3.2)
|
8
|
+
command-line-utils (0.0.7)
|
9
|
+
git (1.2.5)
|
10
|
+
highline (1.6.14)
|
11
|
+
i18n (0.6.1)
|
12
|
+
jeweler (1.8.4)
|
13
|
+
bundler (~> 1.0)
|
14
|
+
git (>= 1.2.5)
|
15
|
+
rake
|
16
|
+
rdoc
|
17
|
+
json (1.7.5)
|
18
|
+
keystorage (0.4.8)
|
19
|
+
launchy (2.1.2)
|
20
|
+
addressable (~> 2.3)
|
21
|
+
metaclass (0.0.1)
|
22
|
+
mime-types (1.19)
|
23
|
+
mocha (0.12.4)
|
24
|
+
metaclass (~> 0.0.1)
|
25
|
+
multi_json (1.3.6)
|
26
|
+
rake (0.9.2.2)
|
27
|
+
rdoc (3.12)
|
28
|
+
json (~> 1.4)
|
29
|
+
rest-client (1.6.7)
|
30
|
+
mime-types (>= 1.16)
|
31
|
+
shoulda (3.1.1)
|
32
|
+
shoulda-context (~> 1.0)
|
33
|
+
shoulda-matchers (~> 1.2)
|
34
|
+
shoulda-context (1.0.0)
|
35
|
+
shoulda-matchers (1.3.0)
|
36
|
+
activesupport (>= 3.0.0)
|
37
|
+
|
38
|
+
PLATFORMS
|
39
|
+
ruby
|
40
|
+
|
41
|
+
DEPENDENCIES
|
42
|
+
bundler
|
43
|
+
command-line-utils (>= 0.0.1)
|
44
|
+
highline (> 1.6)
|
45
|
+
jeweler
|
46
|
+
json
|
47
|
+
keystorage (> 0.1)
|
48
|
+
launchy
|
49
|
+
mocha
|
50
|
+
rdoc
|
51
|
+
rest-client
|
52
|
+
shoulda
|
data/Rakefile
CHANGED
@@ -33,23 +33,4 @@ Rake::TestTask.new(:test) do |test|
|
|
33
33
|
test.verbose = true
|
34
34
|
end
|
35
35
|
|
36
|
-
require 'rcov/rcovtask'
|
37
|
-
Rcov::RcovTask.new do |test|
|
38
|
-
test.libs << 'test'
|
39
|
-
test.pattern = 'test/**/test_*.rb'
|
40
|
-
test.verbose = true
|
41
|
-
test.rcov_opts << '-x /usr -x .rvm -x rvm -x vendor'
|
42
|
-
end
|
43
|
-
|
44
36
|
task :default => :test
|
45
|
-
|
46
|
-
require 'rdoc/task'
|
47
|
-
|
48
|
-
RDoc::Task.new do |rdoc|
|
49
|
-
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
50
|
-
|
51
|
-
rdoc.rdoc_dir = 'rdoc'
|
52
|
-
rdoc.title = "phper #{version}"
|
53
|
-
rdoc.rdoc_files.include('README*')
|
54
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
55
|
-
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.
|
1
|
+
0.8.3
|
data/bin/markdown
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# -*- coding: utf-8 -*-
|
3
|
+
$:.unshift(File.join(File.dirname(__FILE__),'..','lib'))
|
4
|
+
require 'phper'
|
5
|
+
|
6
|
+
phper = File.join(File.dirname(__FILE__),"phper")
|
7
|
+
puts "# phper CLI commands"
|
8
|
+
cmds = Phper::Commands.new
|
9
|
+
|
10
|
+
puts "<div>"
|
11
|
+
cmds.commands.sort { |a,b| a <=> b }.each { |cmd|
|
12
|
+
puts "<a href='#commands_#{cmd}'/>#{cmd}</a> "
|
13
|
+
}
|
14
|
+
puts "</div>"
|
15
|
+
|
16
|
+
cmds.commands.sort { |a,b| a <=> b }.each { |cmd|
|
17
|
+
puts "<a name='commands_#{cmd}'/>"
|
18
|
+
puts "## #{cmd}"
|
19
|
+
puts ""
|
20
|
+
`#{phper} help #{cmd}`.each_line { |line|
|
21
|
+
puts " #{line}"
|
22
|
+
}
|
23
|
+
# %x{#{phper} help #{cmd}}
|
24
|
+
}
|
25
|
+
|
26
|
+
exit
|
data/lib/phper/agent.rb
CHANGED
@@ -27,6 +27,11 @@ class Phper::Agent
|
|
27
27
|
@login
|
28
28
|
end
|
29
29
|
|
30
|
+
# gitリポジトリ名からprojectを返す
|
31
|
+
def project_from_git git
|
32
|
+
get("/gits/#{git}")
|
33
|
+
end
|
34
|
+
|
30
35
|
def projects id = nil
|
31
36
|
if id
|
32
37
|
get("/projects/%s" % id)
|
@@ -61,6 +66,10 @@ class Phper::Agent
|
|
61
66
|
put("/projects/#{project}/versions", {:version => ver})
|
62
67
|
end
|
63
68
|
|
69
|
+
def exec project, command
|
70
|
+
post("/projects/#{project}/exec", {:command => command})
|
71
|
+
end
|
72
|
+
|
64
73
|
def logs_tail project,server,name
|
65
74
|
get("/projects/%s/servers/%s/logs/%s" %
|
66
75
|
[project,server["server"]["id"],name])
|
data/lib/phper/commands.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# -*- coding: utf-8 -*-
|
3
3
|
require 'phper'
|
4
|
-
require "parsedate"
|
4
|
+
require "parsedate" if RUBY_VERSION < '1.9'
|
5
5
|
require "time"
|
6
6
|
require 'base64'
|
7
7
|
|
@@ -526,6 +526,10 @@ class Phper::Commands < CommandLineUtils::Commands
|
|
526
526
|
end
|
527
527
|
|
528
528
|
def exec_report cmd
|
529
|
+
Phper::Commands.exec_report cmd
|
530
|
+
end
|
531
|
+
|
532
|
+
def self.exec_report cmd
|
529
533
|
%x{#{cmd}}
|
530
534
|
puts "--> #{cmd}"
|
531
535
|
end
|
@@ -537,15 +541,19 @@ class Phper::Commands < CommandLineUtils::Commands
|
|
537
541
|
* [CLI] .phper/rsync_exclude.txt
|
538
542
|
=end
|
539
543
|
def init_phper_dir
|
544
|
+
Phper::Commands.init_phper_dir git_root
|
545
|
+
end
|
546
|
+
|
547
|
+
def self.init_phper_dir root
|
540
548
|
files = {}
|
541
|
-
files[:deploy] = File.join(
|
542
|
-
files[:initdb] = File.join(
|
543
|
-
files[:httpd] = File.join(
|
544
|
-
files[:rsync] = File.join(
|
545
|
-
FileUtils.mkdir_p(File.join(
|
546
|
-
puts File.join(
|
549
|
+
files[:deploy] = File.join(root,".phper","deploy")
|
550
|
+
files[:initdb] = File.join(root,".phper","initdb")
|
551
|
+
files[:httpd] = File.join(root,".phper","httpd.conf")
|
552
|
+
files[:rsync] = File.join(root,".phper","rsync_exclude.txt")
|
553
|
+
FileUtils.mkdir_p(File.join(root,".phper"))
|
554
|
+
puts File.join(root,".phper")
|
547
555
|
# deploy
|
548
|
-
unless File.file?(files[:deploy])
|
556
|
+
unless File.file?(files[:deploy])
|
549
557
|
File.open(files[:deploy],"w"){ |f|
|
550
558
|
f.puts <<EOF
|
551
559
|
# deploy script here
|
@@ -553,12 +561,11 @@ if [ ! -f .phper.deployed ] ; then
|
|
553
561
|
# when 1st deployed.
|
554
562
|
true
|
555
563
|
fi
|
556
|
-
|
557
564
|
EOF
|
558
565
|
}
|
559
|
-
File::chmod(0100755,files[:deploy])
|
560
|
-
exec_report("git add -f #{files[:deploy]}")
|
561
566
|
end
|
567
|
+
File::chmod(0100755,files[:deploy])
|
568
|
+
Phper::Commands.exec_report("git add -f #{files[:deploy]}")
|
562
569
|
# initdb
|
563
570
|
unless File.file?(files[:initdb])
|
564
571
|
File.open(files[:initdb],"w"){ |f|
|
@@ -672,8 +679,8 @@ EOF
|
|
672
679
|
def versions_set
|
673
680
|
project = nil
|
674
681
|
OptionParser.new { |opt|
|
675
|
-
@summery = "
|
676
|
-
@banner = "
|
682
|
+
@summery = "set versions"
|
683
|
+
@banner = "<ver>"
|
677
684
|
project = extract_project(opt)
|
678
685
|
return opt if @help
|
679
686
|
}
|
@@ -685,4 +692,19 @@ EOF
|
|
685
692
|
puts "--> version:#{ver}"
|
686
693
|
end
|
687
694
|
|
695
|
+
def exec
|
696
|
+
project = nil
|
697
|
+
OptionParser.new { |opt|
|
698
|
+
@summery = "execute command"
|
699
|
+
@banner = "<command>"
|
700
|
+
project = extract_project(opt)
|
701
|
+
return opt if @help
|
702
|
+
}
|
703
|
+
raise "project is not specified." unless project
|
704
|
+
command = @command_options.shift
|
705
|
+
start
|
706
|
+
puts "--> exec:#{command}"
|
707
|
+
puts @agent.exec(project,command)
|
708
|
+
end
|
709
|
+
|
688
710
|
end
|
data/man.md
ADDED
@@ -0,0 +1,193 @@
|
|
1
|
+
# phper CLI commands
|
2
|
+
<div>
|
3
|
+
<a href='#commands_create'/>create</a>
|
4
|
+
<a href='#commands_db:init'/>db:init</a>
|
5
|
+
<a href='#commands_deploy'/>deploy</a>
|
6
|
+
<a href='#commands_destroy'/>destroy</a>
|
7
|
+
<a href='#commands_files'/>files</a>
|
8
|
+
<a href='#commands_files:dump'/>files:dump</a>
|
9
|
+
<a href='#commands_files:get'/>files:get</a>
|
10
|
+
<a href='#commands_files:modified'/>files:modified</a>
|
11
|
+
<a href='#commands_files:modified:get'/>files:modified:get</a>
|
12
|
+
<a href='#commands_help'/>help</a>
|
13
|
+
<a href='#commands_hosts'/>hosts</a>
|
14
|
+
<a href='#commands_info'/>info</a>
|
15
|
+
<a href='#commands_keys'/>keys</a>
|
16
|
+
<a href='#commands_keys:add'/>keys:add</a>
|
17
|
+
<a href='#commands_keys:clear'/>keys:clear</a>
|
18
|
+
<a href='#commands_keys:remove'/>keys:remove</a>
|
19
|
+
<a href='#commands_list'/>list</a>
|
20
|
+
<a href='#commands_login'/>login</a>
|
21
|
+
<a href='#commands_logout'/>logout</a>
|
22
|
+
<a href='#commands_logs'/>logs</a>
|
23
|
+
<a href='#commands_logs:tail'/>logs:tail</a>
|
24
|
+
<a href='#commands_open'/>open</a>
|
25
|
+
<a href='#commands_servers'/>servers</a>
|
26
|
+
<a href='#commands_servers:add'/>servers:add</a>
|
27
|
+
<a href='#commands_servers:remove'/>servers:remove</a>
|
28
|
+
<a href='#commands_versions'/>versions</a>
|
29
|
+
<a href='#commands_versions:set'/>versions:set</a>
|
30
|
+
</div>
|
31
|
+
<a name='commands_create'/>
|
32
|
+
## create
|
33
|
+
|
34
|
+
Summery: craete project
|
35
|
+
Usage: phper [options] create [<name>]
|
36
|
+
<a name='commands_db:init'/>
|
37
|
+
## db:init
|
38
|
+
|
39
|
+
Summery: Initialize project database.
|
40
|
+
Usage: phper [options] db:init
|
41
|
+
--project=PROJECT project
|
42
|
+
<a name='commands_deploy'/>
|
43
|
+
## deploy
|
44
|
+
|
45
|
+
Summery: Deploy project
|
46
|
+
Usage: phper [options] deploy
|
47
|
+
--project=PROJECT project
|
48
|
+
<a name='commands_destroy'/>
|
49
|
+
## destroy
|
50
|
+
|
51
|
+
Summery: destroy project
|
52
|
+
Usage: phper [options] destroy command [--project=<project>]
|
53
|
+
-y, --yes answer yes for all questions
|
54
|
+
--project=PROJECT project
|
55
|
+
<a name='commands_files'/>
|
56
|
+
## files
|
57
|
+
|
58
|
+
Summery: list project files
|
59
|
+
Usage: phper [options] files command [--project=<project>]
|
60
|
+
-h, --host=HOST host
|
61
|
+
--project=PROJECT project
|
62
|
+
<a name='commands_files:dump'/>
|
63
|
+
## files:dump
|
64
|
+
|
65
|
+
Summery: dump file.
|
66
|
+
Usage: phper [options] files:dump <filename> [--project=<project>]
|
67
|
+
-h, --host=HOST host
|
68
|
+
--project=PROJECT project
|
69
|
+
<a name='commands_files:get'/>
|
70
|
+
## files:get
|
71
|
+
|
72
|
+
Summery: get and put file.
|
73
|
+
Usage: phper [options] files:get <filename> [--project=<project>]
|
74
|
+
-h, --host=HOST host
|
75
|
+
--project=PROJECT project
|
76
|
+
<a name='commands_files:modified'/>
|
77
|
+
## files:modified
|
78
|
+
|
79
|
+
Summery: list modified files since last deploy.
|
80
|
+
Usage: phper [options] files:modified command [--project=<project>]
|
81
|
+
-h, --host=HOST host
|
82
|
+
--project=PROJECT project
|
83
|
+
<a name='commands_files:modified:get'/>
|
84
|
+
## files:modified:get
|
85
|
+
|
86
|
+
Summery: get modified files since last deploy.
|
87
|
+
Usage: phper [options] files:modified:get command [--project=<project>]
|
88
|
+
-h, --host=HOST host
|
89
|
+
--project=PROJECT project
|
90
|
+
<a name='commands_help'/>
|
91
|
+
## help
|
92
|
+
|
93
|
+
Summery: Show command helps.
|
94
|
+
Usage: phper [options] help command
|
95
|
+
<a name='commands_hosts'/>
|
96
|
+
## hosts
|
97
|
+
|
98
|
+
Summery: list project hosts
|
99
|
+
Usage: phper [options] hosts command [--project=<project>]
|
100
|
+
--project=PROJECT project
|
101
|
+
<a name='commands_info'/>
|
102
|
+
## info
|
103
|
+
|
104
|
+
Summery: show project info
|
105
|
+
Usage: phper [options] info command [--project=<project>]
|
106
|
+
--project=PROJECT project
|
107
|
+
<a name='commands_keys'/>
|
108
|
+
## keys
|
109
|
+
|
110
|
+
Summery: list keys
|
111
|
+
Usage: phper [options] keys
|
112
|
+
<a name='commands_keys:add'/>
|
113
|
+
## keys:add
|
114
|
+
|
115
|
+
Summery: add keys
|
116
|
+
Usage: phper [options] keys:add <public key file>
|
117
|
+
<a name='commands_keys:clear'/>
|
118
|
+
## keys:clear
|
119
|
+
|
120
|
+
Summery: remove all keys
|
121
|
+
Usage: phper [options] keys:clear
|
122
|
+
<a name='commands_keys:remove'/>
|
123
|
+
## keys:remove
|
124
|
+
|
125
|
+
Summery: remove key
|
126
|
+
Usage: phper [options] keys:remove <user@host>
|
127
|
+
<a name='commands_list'/>
|
128
|
+
## list
|
129
|
+
|
130
|
+
Summery: get project list
|
131
|
+
Usage: phper [options] list
|
132
|
+
<a name='commands_login'/>
|
133
|
+
## login
|
134
|
+
|
135
|
+
Summery: Login to phper.jp.
|
136
|
+
Usage: phper [options] login
|
137
|
+
<a name='commands_logout'/>
|
138
|
+
## logout
|
139
|
+
|
140
|
+
Summery: Logout from phper.jp .
|
141
|
+
Usage: phper [options] logout
|
142
|
+
<a name='commands_logs'/>
|
143
|
+
## logs
|
144
|
+
|
145
|
+
Summery: list logs
|
146
|
+
Usage: phper [options] logs [--project=<project>]
|
147
|
+
--project=PROJECT project
|
148
|
+
<a name='commands_logs:tail'/>
|
149
|
+
## logs:tail
|
150
|
+
|
151
|
+
Summery: list logs
|
152
|
+
Usage: phper [options] logs:tail command [--project=<project>]
|
153
|
+
-s, --server=SERVER server
|
154
|
+
-n, --name=NAME log name
|
155
|
+
--project=PROJECT project
|
156
|
+
<a name='commands_open'/>
|
157
|
+
## open
|
158
|
+
|
159
|
+
Summery: Open URL
|
160
|
+
Usage: phper [options] open [<host or name pattern>]
|
161
|
+
--project=PROJECT project
|
162
|
+
<a name='commands_servers'/>
|
163
|
+
## servers
|
164
|
+
|
165
|
+
Summery: list servers
|
166
|
+
Usage: phper [options] servers command [--project=<project>]
|
167
|
+
--project=PROJECT project
|
168
|
+
<a name='commands_servers:add'/>
|
169
|
+
## servers:add
|
170
|
+
|
171
|
+
Summery: add server
|
172
|
+
Usage: phper [options] servers:add [<host>]
|
173
|
+
--name=NAME Name of this server
|
174
|
+
--root=ROOT Document Root
|
175
|
+
--project=PROJECT project
|
176
|
+
<a name='commands_servers:remove'/>
|
177
|
+
## servers:remove
|
178
|
+
|
179
|
+
Summery: remove server
|
180
|
+
Usage: phper [options] servers:remove [<host or name>]
|
181
|
+
--project=PROJECT project
|
182
|
+
<a name='commands_versions'/>
|
183
|
+
## versions
|
184
|
+
|
185
|
+
Summery: list available versions
|
186
|
+
Usage: phper [options] versions command [--project=<project>]
|
187
|
+
--project=PROJECT project
|
188
|
+
<a name='commands_versions:set'/>
|
189
|
+
## versions:set
|
190
|
+
|
191
|
+
Summery: set versions
|
192
|
+
Usage: phper [options] versions:set <ver> [--project=<project>]
|
193
|
+
--project=PROJECT project
|
data/phper.gemspec
CHANGED
@@ -5,30 +5,34 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "phper"
|
8
|
-
s.version = "0.8.
|
8
|
+
s.version = "0.8.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Yoshihiro TAKAHARA"]
|
12
|
-
s.date = "2012-
|
12
|
+
s.date = "2012-09-13"
|
13
13
|
s.description = "phper"
|
14
14
|
s.email = "y.takahara@gmail.com"
|
15
|
-
s.executables = ["phper"]
|
15
|
+
s.executables = ["phper", "markdown"]
|
16
16
|
s.extra_rdoc_files = [
|
17
17
|
"LICENSE.txt",
|
18
18
|
"README.md"
|
19
19
|
]
|
20
20
|
s.files = [
|
21
21
|
".document",
|
22
|
+
".travis.yml",
|
22
23
|
"Gemfile",
|
24
|
+
"Gemfile.lock",
|
23
25
|
"LICENSE.txt",
|
24
26
|
"README.md",
|
25
27
|
"Rakefile",
|
26
28
|
"VERSION",
|
29
|
+
"bin/markdown",
|
27
30
|
"bin/phper",
|
28
31
|
"lib/phper.rb",
|
29
32
|
"lib/phper/agent.rb",
|
30
33
|
"lib/phper/cli.rb",
|
31
34
|
"lib/phper/commands.rb",
|
35
|
+
"man.md",
|
32
36
|
"phper.gemspec",
|
33
37
|
"test/helper.rb",
|
34
38
|
"test/test_phper.rb"
|
@@ -36,12 +40,8 @@ Gem::Specification.new do |s|
|
|
36
40
|
s.homepage = "http://github.com/tumf/phper"
|
37
41
|
s.licenses = ["MIT"]
|
38
42
|
s.require_paths = ["lib"]
|
39
|
-
s.rubygems_version = "1.8.
|
43
|
+
s.rubygems_version = "1.8.21"
|
40
44
|
s.summary = "phper"
|
41
|
-
s.test_files = [
|
42
|
-
"test/helper.rb",
|
43
|
-
"test/test_phper.rb"
|
44
|
-
]
|
45
45
|
|
46
46
|
if s.respond_to? :specification_version then
|
47
47
|
s.specification_version = 3
|
@@ -55,9 +55,8 @@ Gem::Specification.new do |s|
|
|
55
55
|
s.add_runtime_dependency(%q<json>, [">= 0"])
|
56
56
|
s.add_runtime_dependency(%q<rdoc>, [">= 0"])
|
57
57
|
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
58
|
-
s.add_development_dependency(%q<bundler>, ["
|
59
|
-
s.add_development_dependency(%q<jeweler>, ["
|
60
|
-
s.add_development_dependency(%q<rcov>, [">= 0"])
|
58
|
+
s.add_development_dependency(%q<bundler>, [">= 0"])
|
59
|
+
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
61
60
|
s.add_development_dependency(%q<mocha>, [">= 0"])
|
62
61
|
else
|
63
62
|
s.add_dependency(%q<rest-client>, [">= 0"])
|
@@ -68,9 +67,8 @@ Gem::Specification.new do |s|
|
|
68
67
|
s.add_dependency(%q<json>, [">= 0"])
|
69
68
|
s.add_dependency(%q<rdoc>, [">= 0"])
|
70
69
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
71
|
-
s.add_dependency(%q<bundler>, ["
|
72
|
-
s.add_dependency(%q<jeweler>, ["
|
73
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
70
|
+
s.add_dependency(%q<bundler>, [">= 0"])
|
71
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
74
72
|
s.add_dependency(%q<mocha>, [">= 0"])
|
75
73
|
end
|
76
74
|
else
|
@@ -82,9 +80,8 @@ Gem::Specification.new do |s|
|
|
82
80
|
s.add_dependency(%q<json>, [">= 0"])
|
83
81
|
s.add_dependency(%q<rdoc>, [">= 0"])
|
84
82
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
85
|
-
s.add_dependency(%q<bundler>, ["
|
86
|
-
s.add_dependency(%q<jeweler>, ["
|
87
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
83
|
+
s.add_dependency(%q<bundler>, [">= 0"])
|
84
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
88
85
|
s.add_dependency(%q<mocha>, [">= 0"])
|
89
86
|
end
|
90
87
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 57
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 8
|
9
|
-
-
|
10
|
-
version: 0.8.
|
9
|
+
- 3
|
10
|
+
version: 0.8.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Yoshihiro TAKAHARA
|
@@ -15,10 +15,10 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-09-13 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
-
|
21
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
22
22
|
none: false
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
@@ -27,12 +27,12 @@ dependencies:
|
|
27
27
|
segments:
|
28
28
|
- 0
|
29
29
|
version: "0"
|
30
|
-
type: :runtime
|
31
30
|
name: rest-client
|
32
|
-
|
31
|
+
type: :runtime
|
33
32
|
prerelease: false
|
33
|
+
requirement: *id001
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
|
-
|
35
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
36
36
|
none: false
|
37
37
|
requirements:
|
38
38
|
- - ">"
|
@@ -42,12 +42,12 @@ dependencies:
|
|
42
42
|
- 0
|
43
43
|
- 1
|
44
44
|
version: "0.1"
|
45
|
-
type: :runtime
|
46
45
|
name: keystorage
|
47
|
-
|
46
|
+
type: :runtime
|
48
47
|
prerelease: false
|
48
|
+
requirement: *id002
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
|
-
|
50
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ">"
|
@@ -57,12 +57,12 @@ dependencies:
|
|
57
57
|
- 1
|
58
58
|
- 6
|
59
59
|
version: "1.6"
|
60
|
-
type: :runtime
|
61
60
|
name: highline
|
62
|
-
|
61
|
+
type: :runtime
|
63
62
|
prerelease: false
|
63
|
+
requirement: *id003
|
64
64
|
- !ruby/object:Gem::Dependency
|
65
|
-
|
65
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
66
66
|
none: false
|
67
67
|
requirements:
|
68
68
|
- - ">="
|
@@ -73,12 +73,12 @@ dependencies:
|
|
73
73
|
- 0
|
74
74
|
- 1
|
75
75
|
version: 0.0.1
|
76
|
-
type: :runtime
|
77
76
|
name: command-line-utils
|
78
|
-
|
77
|
+
type: :runtime
|
79
78
|
prerelease: false
|
79
|
+
requirement: *id004
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
|
-
|
81
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
82
82
|
none: false
|
83
83
|
requirements:
|
84
84
|
- - ">="
|
@@ -87,12 +87,12 @@ dependencies:
|
|
87
87
|
segments:
|
88
88
|
- 0
|
89
89
|
version: "0"
|
90
|
-
type: :runtime
|
91
90
|
name: launchy
|
92
|
-
|
91
|
+
type: :runtime
|
93
92
|
prerelease: false
|
93
|
+
requirement: *id005
|
94
94
|
- !ruby/object:Gem::Dependency
|
95
|
-
|
95
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
96
96
|
none: false
|
97
97
|
requirements:
|
98
98
|
- - ">="
|
@@ -101,12 +101,12 @@ dependencies:
|
|
101
101
|
segments:
|
102
102
|
- 0
|
103
103
|
version: "0"
|
104
|
-
type: :runtime
|
105
104
|
name: json
|
106
|
-
|
105
|
+
type: :runtime
|
107
106
|
prerelease: false
|
107
|
+
requirement: *id006
|
108
108
|
- !ruby/object:Gem::Dependency
|
109
|
-
|
109
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
110
110
|
none: false
|
111
111
|
requirements:
|
112
112
|
- - ">="
|
@@ -115,12 +115,12 @@ dependencies:
|
|
115
115
|
segments:
|
116
116
|
- 0
|
117
117
|
version: "0"
|
118
|
-
type: :runtime
|
119
118
|
name: rdoc
|
120
|
-
|
119
|
+
type: :runtime
|
121
120
|
prerelease: false
|
121
|
+
requirement: *id007
|
122
122
|
- !ruby/object:Gem::Dependency
|
123
|
-
|
123
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
124
124
|
none: false
|
125
125
|
requirements:
|
126
126
|
- - ">="
|
@@ -129,44 +129,26 @@ dependencies:
|
|
129
129
|
segments:
|
130
130
|
- 0
|
131
131
|
version: "0"
|
132
|
-
type: :development
|
133
132
|
name: shoulda
|
134
|
-
|
133
|
+
type: :development
|
135
134
|
prerelease: false
|
135
|
+
requirement: *id008
|
136
136
|
- !ruby/object:Gem::Dependency
|
137
|
-
|
137
|
+
version_requirements: &id009 !ruby/object:Gem::Requirement
|
138
138
|
none: false
|
139
139
|
requirements:
|
140
|
-
- -
|
140
|
+
- - ">="
|
141
141
|
- !ruby/object:Gem::Version
|
142
|
-
hash:
|
142
|
+
hash: 3
|
143
143
|
segments:
|
144
|
-
- 1
|
145
|
-
- 0
|
146
144
|
- 0
|
147
|
-
version:
|
148
|
-
type: :development
|
145
|
+
version: "0"
|
149
146
|
name: bundler
|
150
|
-
version_requirements: *id009
|
151
|
-
prerelease: false
|
152
|
-
- !ruby/object:Gem::Dependency
|
153
|
-
requirement: &id010 !ruby/object:Gem::Requirement
|
154
|
-
none: false
|
155
|
-
requirements:
|
156
|
-
- - ~>
|
157
|
-
- !ruby/object:Gem::Version
|
158
|
-
hash: 7
|
159
|
-
segments:
|
160
|
-
- 1
|
161
|
-
- 5
|
162
|
-
- 2
|
163
|
-
version: 1.5.2
|
164
147
|
type: :development
|
165
|
-
name: jeweler
|
166
|
-
version_requirements: *id010
|
167
148
|
prerelease: false
|
149
|
+
requirement: *id009
|
168
150
|
- !ruby/object:Gem::Dependency
|
169
|
-
|
151
|
+
version_requirements: &id010 !ruby/object:Gem::Requirement
|
170
152
|
none: false
|
171
153
|
requirements:
|
172
154
|
- - ">="
|
@@ -175,12 +157,12 @@ dependencies:
|
|
175
157
|
segments:
|
176
158
|
- 0
|
177
159
|
version: "0"
|
160
|
+
name: jeweler
|
178
161
|
type: :development
|
179
|
-
name: rcov
|
180
|
-
version_requirements: *id011
|
181
162
|
prerelease: false
|
163
|
+
requirement: *id010
|
182
164
|
- !ruby/object:Gem::Dependency
|
183
|
-
|
165
|
+
version_requirements: &id011 !ruby/object:Gem::Requirement
|
184
166
|
none: false
|
185
167
|
requirements:
|
186
168
|
- - ">="
|
@@ -189,14 +171,15 @@ dependencies:
|
|
189
171
|
segments:
|
190
172
|
- 0
|
191
173
|
version: "0"
|
192
|
-
type: :development
|
193
174
|
name: mocha
|
194
|
-
|
175
|
+
type: :development
|
195
176
|
prerelease: false
|
177
|
+
requirement: *id011
|
196
178
|
description: phper
|
197
179
|
email: y.takahara@gmail.com
|
198
180
|
executables:
|
199
181
|
- phper
|
182
|
+
- markdown
|
200
183
|
extensions: []
|
201
184
|
|
202
185
|
extra_rdoc_files:
|
@@ -204,16 +187,20 @@ extra_rdoc_files:
|
|
204
187
|
- README.md
|
205
188
|
files:
|
206
189
|
- .document
|
190
|
+
- .travis.yml
|
207
191
|
- Gemfile
|
192
|
+
- Gemfile.lock
|
208
193
|
- LICENSE.txt
|
209
194
|
- README.md
|
210
195
|
- Rakefile
|
211
196
|
- VERSION
|
197
|
+
- bin/markdown
|
212
198
|
- bin/phper
|
213
199
|
- lib/phper.rb
|
214
200
|
- lib/phper/agent.rb
|
215
201
|
- lib/phper/cli.rb
|
216
202
|
- lib/phper/commands.rb
|
203
|
+
- man.md
|
217
204
|
- phper.gemspec
|
218
205
|
- test/helper.rb
|
219
206
|
- test/test_phper.rb
|
@@ -246,10 +233,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
246
233
|
requirements: []
|
247
234
|
|
248
235
|
rubyforge_project:
|
249
|
-
rubygems_version: 1.8.
|
236
|
+
rubygems_version: 1.8.21
|
250
237
|
signing_key:
|
251
238
|
specification_version: 3
|
252
239
|
summary: phper
|
253
|
-
test_files:
|
254
|
-
|
255
|
-
- test/test_phper.rb
|
240
|
+
test_files: []
|
241
|
+
|