unit-hosting 0.1.2 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- command-line-utils (0.0.1)
4
+ command-line-utils (0.0.6)
5
5
  git (1.2.5)
6
6
  highline (1.6.1)
7
7
  httpclient (2.1.6.1)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.4
data/lib/unit-hosting.rb CHANGED
@@ -1,2 +1,9 @@
1
+ require "highline/import"
2
+ require "keystorage"
3
+ require 'command-line-utils'
4
+ require 'xmlrpc/client'
5
+ require 'rexml/document'
6
+ require 'openssl'
7
+
1
8
  require 'unit-hosting/agent'
2
9
  require 'unit-hosting/commands'
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- coding: utf-8 -*-
3
- require "rubygems"
4
3
  require "mechanize"
5
4
 
6
5
  module UnitHosting
@@ -1,9 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # vim:set fileencoding=utf-8:
3
- require 'xmlrpc/client'
4
- require 'rexml/document'
5
- require 'openssl'
6
-
3
+ require 'unit-hosting'
7
4
  module UnitHosting
8
5
  module Api
9
6
  def keypath instance_id
@@ -24,7 +21,9 @@ module UnitHosting
24
21
  self
25
22
  end
26
23
  def self.load(instance_id)
27
- self.new.load(instance_id)
24
+ obj = self.new.load(instance_id)
25
+ yield obj if block_given?
26
+ obj
28
27
  end
29
28
  def load(instance_id)
30
29
  load_key(UnitHosting::Api::keypath(instance_id))
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- coding: utf-8 -*-
3
- require 'command-line-utils'
4
3
  require 'unit-hosting/commands'
5
4
  module UnitHosting
6
5
  class CLI < CommandLineUtils::CLI
@@ -1,16 +1,12 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- coding: utf-8 -*-
3
- require "rubygems"
4
- require "highline/import"
5
-
6
- require "keystorage"
3
+ #require "rubygems"
7
4
 
8
5
  require "unit-hosting"
9
6
  require "unit-hosting/api"
10
7
  require "unit-hosting/agent"
11
8
  require "unit-hosting/cache"
12
- #require "unit-hosting/api"
13
- require "command-line-utils"
9
+
14
10
 
15
11
  module UnitHosting
16
12
  class Commands < CommandLineUtils::Commands
data/unit-hosting.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{unit-hosting}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.4"
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 = %q{2011-02-17}
12
+ s.date = %q{2011-03-08}
13
13
  s.default_executable = %q{unit-hosting}
14
14
  s.description = %q{This is a command to manage virtual servers on UnitHosting(http://www.unit-hosting.com).}
15
15
  s.email = %q{y.takahara@gmail.com}
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
19
19
  "README.rdoc"
20
20
  ]
21
21
  s.files = [
22
+ ".document",
22
23
  "Gemfile",
23
24
  "Gemfile.lock",
24
25
  "LICENSE.txt",
@@ -44,7 +45,7 @@ Gem::Specification.new do |s|
44
45
  s.homepage = %q{http://github.com/tumf/unit-hosting}
45
46
  s.licenses = ["MIT"]
46
47
  s.require_paths = ["lib"]
47
- s.rubygems_version = %q{1.5.0}
48
+ s.rubygems_version = %q{1.6.1}
48
49
  s.summary = %q{unit-hosting command line tool}
49
50
  s.test_files = [
50
51
  "test/helper.rb",
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unit-hosting
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Yoshihiro TAKAHARA
@@ -15,11 +15,12 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-17 00:00:00 +09:00
18
+ date: 2011-03-08 00:00:00 +09:00
19
19
  default_executable: unit-hosting
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- requirement: &id001 !ruby/object:Gem::Requirement
22
+ type: :runtime
23
+ version_requirements: &id001 !ruby/object:Gem::Requirement
23
24
  none: false
24
25
  requirements:
25
26
  - - ">="
@@ -28,12 +29,12 @@ dependencies:
28
29
  segments:
29
30
  - 0
30
31
  version: "0"
31
- version_requirements: *id001
32
- name: mutter
32
+ requirement: *id001
33
33
  prerelease: false
34
- type: :runtime
34
+ name: mutter
35
35
  - !ruby/object:Gem::Dependency
36
- requirement: &id002 !ruby/object:Gem::Requirement
36
+ type: :runtime
37
+ version_requirements: &id002 !ruby/object:Gem::Requirement
37
38
  none: false
38
39
  requirements:
39
40
  - - ">"
@@ -43,12 +44,12 @@ dependencies:
43
44
  - 0
44
45
  - 1
45
46
  version: "0.1"
46
- version_requirements: *id002
47
- name: keystorage
47
+ requirement: *id002
48
48
  prerelease: false
49
- type: :runtime
49
+ name: keystorage
50
50
  - !ruby/object:Gem::Dependency
51
- requirement: &id003 !ruby/object:Gem::Requirement
51
+ type: :runtime
52
+ version_requirements: &id003 !ruby/object:Gem::Requirement
52
53
  none: false
53
54
  requirements:
54
55
  - - ">="
@@ -59,12 +60,12 @@ dependencies:
59
60
  - 0
60
61
  - 0
61
62
  version: 1.0.0
62
- version_requirements: *id003
63
- name: mechanize
63
+ requirement: *id003
64
64
  prerelease: false
65
- type: :runtime
65
+ name: mechanize
66
66
  - !ruby/object:Gem::Dependency
67
- requirement: &id004 !ruby/object:Gem::Requirement
67
+ type: :runtime
68
+ version_requirements: &id004 !ruby/object:Gem::Requirement
68
69
  none: false
69
70
  requirements:
70
71
  - - ">"
@@ -74,12 +75,12 @@ dependencies:
74
75
  - 1
75
76
  - 6
76
77
  version: "1.6"
77
- version_requirements: *id004
78
- name: highline
78
+ requirement: *id004
79
79
  prerelease: false
80
- type: :runtime
80
+ name: highline
81
81
  - !ruby/object:Gem::Dependency
82
- requirement: &id005 !ruby/object:Gem::Requirement
82
+ type: :runtime
83
+ version_requirements: &id005 !ruby/object:Gem::Requirement
83
84
  none: false
84
85
  requirements:
85
86
  - - ">="
@@ -90,12 +91,12 @@ dependencies:
90
91
  - 9
91
92
  - 0
92
93
  version: 0.9.0
93
- version_requirements: *id005
94
- name: progressbar
94
+ requirement: *id005
95
95
  prerelease: false
96
- type: :runtime
96
+ name: progressbar
97
97
  - !ruby/object:Gem::Dependency
98
- requirement: &id006 !ruby/object:Gem::Requirement
98
+ type: :runtime
99
+ version_requirements: &id006 !ruby/object:Gem::Requirement
99
100
  none: false
100
101
  requirements:
101
102
  - - ">="
@@ -107,12 +108,12 @@ dependencies:
107
108
  - 6
108
109
  - 1
109
110
  version: 2.1.6.1
110
- version_requirements: *id006
111
- name: httpclient
111
+ requirement: *id006
112
112
  prerelease: false
113
- type: :runtime
113
+ name: httpclient
114
114
  - !ruby/object:Gem::Dependency
115
- requirement: &id007 !ruby/object:Gem::Requirement
115
+ type: :runtime
116
+ version_requirements: &id007 !ruby/object:Gem::Requirement
116
117
  none: false
117
118
  requirements:
118
119
  - - ">="
@@ -123,12 +124,12 @@ dependencies:
123
124
  - 0
124
125
  - 1
125
126
  version: 0.0.1
126
- version_requirements: *id007
127
- name: command-line-utils
127
+ requirement: *id007
128
128
  prerelease: false
129
- type: :runtime
129
+ name: command-line-utils
130
130
  - !ruby/object:Gem::Dependency
131
- requirement: &id008 !ruby/object:Gem::Requirement
131
+ type: :development
132
+ version_requirements: &id008 !ruby/object:Gem::Requirement
132
133
  none: false
133
134
  requirements:
134
135
  - - ">="
@@ -137,12 +138,12 @@ dependencies:
137
138
  segments:
138
139
  - 0
139
140
  version: "0"
140
- version_requirements: *id008
141
- name: shoulda
141
+ requirement: *id008
142
142
  prerelease: false
143
- type: :development
143
+ name: shoulda
144
144
  - !ruby/object:Gem::Dependency
145
- requirement: &id009 !ruby/object:Gem::Requirement
145
+ type: :development
146
+ version_requirements: &id009 !ruby/object:Gem::Requirement
146
147
  none: false
147
148
  requirements:
148
149
  - - ~>
@@ -153,12 +154,12 @@ dependencies:
153
154
  - 0
154
155
  - 0
155
156
  version: 1.0.0
156
- version_requirements: *id009
157
- name: bundler
157
+ requirement: *id009
158
158
  prerelease: false
159
- type: :development
159
+ name: bundler
160
160
  - !ruby/object:Gem::Dependency
161
- requirement: &id010 !ruby/object:Gem::Requirement
161
+ type: :development
162
+ version_requirements: &id010 !ruby/object:Gem::Requirement
162
163
  none: false
163
164
  requirements:
164
165
  - - ~>
@@ -169,12 +170,12 @@ dependencies:
169
170
  - 5
170
171
  - 2
171
172
  version: 1.5.2
172
- version_requirements: *id010
173
- name: jeweler
173
+ requirement: *id010
174
174
  prerelease: false
175
- type: :development
175
+ name: jeweler
176
176
  - !ruby/object:Gem::Dependency
177
- requirement: &id011 !ruby/object:Gem::Requirement
177
+ type: :development
178
+ version_requirements: &id011 !ruby/object:Gem::Requirement
178
179
  none: false
179
180
  requirements:
180
181
  - - ">="
@@ -183,10 +184,9 @@ dependencies:
183
184
  segments:
184
185
  - 0
185
186
  version: "0"
186
- version_requirements: *id011
187
- name: rcov
187
+ requirement: *id011
188
188
  prerelease: false
189
- type: :development
189
+ name: rcov
190
190
  description: This is a command to manage virtual servers on UnitHosting(http://www.unit-hosting.com).
191
191
  email: y.takahara@gmail.com
192
192
  executables:
@@ -197,6 +197,7 @@ extra_rdoc_files:
197
197
  - LICENSE.txt
198
198
  - README.rdoc
199
199
  files:
200
+ - .document
200
201
  - Gemfile
201
202
  - Gemfile.lock
202
203
  - LICENSE.txt
@@ -248,7 +249,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
248
249
  requirements: []
249
250
 
250
251
  rubyforge_project:
251
- rubygems_version: 1.5.0
252
+ rubygems_version: 1.6.1
252
253
  signing_key:
253
254
  specification_version: 3
254
255
  summary: unit-hosting command line tool