oc 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/oc +3 -4
- data/lib/oc/version.rb +1 -1
- data/lib/system/config.rb +2 -3
- data/lib/system/get.rb +5 -0
- data/lib/system/run/commands/droplets.rb +50 -58
- data/lib/system/run/commands/images.rb +28 -59
- data/lib/system/run/commands/info.rb +4 -6
- data/lib/system/run/commands/regions.rb +9 -5
- data/lib/system/run/commands/sizes.rb +18 -7
- data/oc.gemspec +2 -1
- metadata +19 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d117af6f190633d90c279830b34b373a6de057b5
|
4
|
+
data.tar.gz: da3130d2c44f668ff658c7ef18067ee62dc1c9ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c240c1c999e3f7e1423b8a304d3ef1e34c8864c9564906b72a2979e9984566f133be76fe71b447288eeb87648255a10a5ecd40ecbe2489d83b259b12e10e1f88
|
7
|
+
data.tar.gz: 8acfa9362414b7b348a045699680506c371c602cd99b6b1c0c35145d7b2081187f0a3018d4f7e3ec182f5cf26e6830c58036310c5cc533c86fd2fa3c1e9c9b20
|
data/bin/oc
CHANGED
@@ -11,11 +11,10 @@ bin_file = Pathname.new(__FILE__).realpath
|
|
11
11
|
$:.unshift File.expand_path("../../lib", bin_file)
|
12
12
|
|
13
13
|
config = Netrc.read("#{(ENV["HOME"] || "./")}/oc.netrc")
|
14
|
-
|
15
14
|
if config["api.digitalocean.com"].nil?
|
16
|
-
|
17
|
-
|
18
|
-
config["api.digitalocean.com"] =
|
15
|
+
api_key = [(print 'Access Tokens: '), STDIN.gets.rstrip][1]
|
16
|
+
client_id = "empty"
|
17
|
+
config["api.digitalocean.com"] = api_key, client_id
|
19
18
|
config.save
|
20
19
|
else
|
21
20
|
require 'oc'
|
data/lib/oc/version.rb
CHANGED
data/lib/system/config.rb
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
module Oc
|
2
2
|
class Config
|
3
3
|
def self.get(key)
|
4
|
-
config = Netrc.read("#{(ENV["HOME"] || "./")}/
|
4
|
+
config = Netrc.read("#{(ENV["HOME"] || "./")}/oc.netrc")
|
5
5
|
config = config["api.digitalocean.com"]
|
6
6
|
options = {
|
7
|
-
:
|
8
|
-
:api_key => config[1]
|
7
|
+
:api_key => config[0]
|
9
8
|
}
|
10
9
|
return options[:"#{key}"]
|
11
10
|
end
|
data/lib/system/get.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require "net/http"
|
2
2
|
require "json"
|
3
|
+
require "barge"
|
3
4
|
module Oc
|
4
5
|
class Get
|
5
6
|
def self.get_json path,filter=nil
|
@@ -10,6 +11,10 @@ module Oc
|
|
10
11
|
result = JSON.parse(data)
|
11
12
|
end
|
12
13
|
|
14
|
+
def self.get_barge
|
15
|
+
barge = ::Barge::Client.new(access_token: Oc::Config.get(:api_key))
|
16
|
+
end
|
17
|
+
|
13
18
|
|
14
19
|
def self.get_json_parameter path, sub_path = nil ,parameters=[]
|
15
20
|
url = "https://api.digitalocean.com/#{path}"
|
@@ -8,8 +8,8 @@ module Oc::Run
|
|
8
8
|
description "Show Droplets"
|
9
9
|
syntax "oc show"
|
10
10
|
def show
|
11
|
-
result =
|
12
|
-
if result
|
11
|
+
result = barge.droplet.all
|
12
|
+
if !result.success?
|
13
13
|
puts "Error: Please check your information".red
|
14
14
|
else
|
15
15
|
puts "Your Droplets".yellow
|
@@ -19,19 +19,17 @@ module Oc::Run
|
|
19
19
|
'ID',
|
20
20
|
'Name',
|
21
21
|
'IP Address',
|
22
|
-
'Private Ip Address',
|
23
22
|
'Status',
|
24
23
|
'Created At'
|
25
24
|
]
|
26
25
|
|
27
|
-
result
|
26
|
+
result.droplets.each do |droplet|
|
28
27
|
droplets << [
|
29
|
-
droplet
|
30
|
-
droplet
|
31
|
-
droplet
|
32
|
-
droplet
|
33
|
-
droplet
|
34
|
-
droplet["created_at"]
|
28
|
+
droplet.id,
|
29
|
+
droplet.name.to_s.red,
|
30
|
+
droplet.ip_address.to_s.red,
|
31
|
+
droplet.status == "active" ? "Active".green : "Deactive".red,
|
32
|
+
droplet.created_at
|
35
33
|
]
|
36
34
|
end
|
37
35
|
table = Terminal::Table.new :rows => droplets
|
@@ -56,10 +54,9 @@ module Oc::Run
|
|
56
54
|
raise ArgumentError, "Argument Error - #{size}" unless size =~ /\A[-+]?[0-9]*\.?[0-9]+\Z/
|
57
55
|
raise ArgumentError, "Argument Error - #{image_id}" unless image_id =~ /\A[-+]?[0-9]*\.?[0-9]+\Z/
|
58
56
|
|
59
|
-
|
60
|
-
result
|
61
|
-
|
62
|
-
puts "#{result["message"]}".red
|
57
|
+
result = barge.droplet.create({:name => name, :region => region_id, :size => size_id, :image => image_id})
|
58
|
+
if !result.success?
|
59
|
+
puts "#{result.message}".red
|
63
60
|
else
|
64
61
|
puts "Droplet created".green
|
65
62
|
end
|
@@ -77,10 +74,10 @@ module Oc::Run
|
|
77
74
|
puts "$ oc droplets reboot [DROPLET_ID]".yellow
|
78
75
|
else
|
79
76
|
raise ArgumentError, "Argument Error - #{id}" unless id =~ /\A[-+]?[0-9]*\.?[0-9]+\Z/
|
80
|
-
|
81
|
-
result =
|
82
|
-
if result
|
83
|
-
puts "#{result
|
77
|
+
|
78
|
+
result = barge.droplet.reboot(id)
|
79
|
+
if !result.success?
|
80
|
+
puts "#{result.message}".red
|
84
81
|
else
|
85
82
|
puts "Droplet rebooted".green
|
86
83
|
end
|
@@ -97,10 +94,9 @@ module Oc::Run
|
|
97
94
|
puts "$ oc droplets cycle [DROPLET_ID]".yellow
|
98
95
|
else
|
99
96
|
raise ArgumentError, "Argument Error - #{id}" unless id =~ /\A[-+]?[0-9]*\.?[0-9]+\Z/
|
100
|
-
|
101
|
-
result
|
102
|
-
|
103
|
-
puts "#{result["message"]}".red
|
97
|
+
result = barge.droplet.power_cycle(id)
|
98
|
+
if !result.success?
|
99
|
+
puts "#{result.message}".red
|
104
100
|
else
|
105
101
|
puts "Power cycle has been successful".green
|
106
102
|
end
|
@@ -118,10 +114,9 @@ module Oc::Run
|
|
118
114
|
puts "$ oc droplets down [DROPLET_ID]".yellow
|
119
115
|
else
|
120
116
|
raise ArgumentError, "Argument Error - #{id}" unless id =~ /\A[-+]?[0-9]*\.?[0-9]+\Z/
|
121
|
-
|
122
|
-
result
|
123
|
-
|
124
|
-
puts "#{result["message"]}".red
|
117
|
+
result = barge.droplet.shutdown(id)
|
118
|
+
if !result.success?
|
119
|
+
puts "#{result.message}".red
|
125
120
|
else
|
126
121
|
puts "Shut down has been successful".green
|
127
122
|
end
|
@@ -139,10 +134,9 @@ module Oc::Run
|
|
139
134
|
puts "$ oc droplets off [DROPLET_ID]".yellow
|
140
135
|
else
|
141
136
|
raise ArgumentError, "Argument Error - #{id}" unless id =~ /\A[-+]?[0-9]*\.?[0-9]+\Z/
|
142
|
-
|
143
|
-
result
|
144
|
-
|
145
|
-
puts "#{result["message"]}".red
|
137
|
+
result = barge.droplet.power_off(id)
|
138
|
+
if !result.success?
|
139
|
+
puts "#{result.message}".red
|
146
140
|
else
|
147
141
|
puts "Power off has been successful".green
|
148
142
|
end
|
@@ -160,10 +154,10 @@ module Oc::Run
|
|
160
154
|
puts "$ oc droplets on [DROPLET_ID]".yellow
|
161
155
|
else
|
162
156
|
raise ArgumentError, "Argument Error - #{id}" unless id =~ /\A[-+]?[0-9]*\.?[0-9]+\Z/
|
163
|
-
|
164
|
-
result =
|
165
|
-
if result
|
166
|
-
puts "#{result
|
157
|
+
|
158
|
+
result = barge.droplet.power_on(id)
|
159
|
+
if !result.success?
|
160
|
+
puts "#{result.message}".red
|
167
161
|
else
|
168
162
|
puts "Power on has been successful".green
|
169
163
|
end
|
@@ -182,10 +176,9 @@ module Oc::Run
|
|
182
176
|
puts "$ oc droplets reset_password [DROPLET_ID]".yellow
|
183
177
|
else
|
184
178
|
raise ArgumentError, "Argument Error - #{id}" unless id =~ /\A[-+]?[0-9]*\.?[0-9]+\Z/
|
185
|
-
|
186
|
-
result
|
187
|
-
|
188
|
-
puts "#{result["message"]}".red
|
179
|
+
result = barge.droplet.password_reset(id)
|
180
|
+
if !result.success?
|
181
|
+
puts "#{result.message}".red
|
189
182
|
else
|
190
183
|
puts "Password restored. Please check your email".green
|
191
184
|
end
|
@@ -205,10 +198,9 @@ module Oc::Run
|
|
205
198
|
else
|
206
199
|
raise ArgumentError, "Argument Error - #{id}" unless id =~ /\A[-+]?[0-9]*\.?[0-9]+\Z/
|
207
200
|
raise ArgumentError, "Argument Error - #{id}" unless size_id =~ /\A[-+]?[0-9]*\.?[0-9]+\Z/
|
208
|
-
|
209
|
-
result
|
210
|
-
|
211
|
-
puts "#{result["error_message"]}".red
|
201
|
+
result = barge.droplet.resize(id, size: size_id)
|
202
|
+
if !result.success?
|
203
|
+
puts "#{result.message}".red
|
212
204
|
else
|
213
205
|
puts "Droplet resized".green
|
214
206
|
end
|
@@ -226,10 +218,9 @@ module Oc::Run
|
|
226
218
|
puts "$ oc droplets snaphot [DROPLET_ID] [SNAPSHOT_NAME]".yellow
|
227
219
|
else
|
228
220
|
raise ArgumentError, "Argument Error - #{id}" unless id =~ /\A[-+]?[0-9]*\.?[0-9]+\Z/
|
229
|
-
|
230
|
-
result
|
231
|
-
|
232
|
-
puts "#{result["message"]}".red
|
221
|
+
result = barge.droplet.snapshot(id, name: name)
|
222
|
+
if !result.success?
|
223
|
+
puts "#{result.message}".red
|
233
224
|
else
|
234
225
|
puts "Snapshot generated.".green
|
235
226
|
end
|
@@ -250,10 +241,9 @@ module Oc::Run
|
|
250
241
|
raise ArgumentError, "Argument Error - #{id}" unless id =~ /\A[-+]?[0-9]*\.?[0-9]+\Z/
|
251
242
|
raise ArgumentError, "Argument Error - #{image_id}" unless id =~ /\A[-+]?[0-9]*\.?[0-9]+\Z/
|
252
243
|
|
253
|
-
|
254
|
-
result
|
255
|
-
|
256
|
-
puts "#{result["message"]}".red
|
244
|
+
result = barge.droplet.restore(id, image: image_id)
|
245
|
+
if !result.success?
|
246
|
+
puts "#{result.message}".red
|
257
247
|
else
|
258
248
|
puts "Droplets restored.".green
|
259
249
|
end
|
@@ -274,10 +264,9 @@ module Oc::Run
|
|
274
264
|
raise ArgumentError, "Argument Error - #{id}" unless id =~ /\A[-+]?[0-9]*\.?[0-9]+\Z/
|
275
265
|
raise ArgumentError, "Argument Error - #{image_id}" unless id =~ /\A[-+]?[0-9]*\.?[0-9]+\Z/
|
276
266
|
|
277
|
-
|
278
|
-
result
|
279
|
-
|
280
|
-
puts "#{result["message"]}".red
|
267
|
+
result = barge.droplet.rebuild(id, image: image_id)
|
268
|
+
if !result.success?
|
269
|
+
puts "#{result.message}".red
|
281
270
|
else
|
282
271
|
puts "Droplets rebuilded.".green
|
283
272
|
end
|
@@ -296,16 +285,19 @@ module Oc::Run
|
|
296
285
|
else
|
297
286
|
raise ArgumentError, "Argument Error - #{id}" unless id =~ /\A[-+]?[0-9]*\.?[0-9]+\Z/
|
298
287
|
|
299
|
-
|
300
|
-
result
|
301
|
-
|
302
|
-
puts "#{result["message"]}".red
|
288
|
+
result = barge.droplet.rename(id, name: name)
|
289
|
+
if !result.success?
|
290
|
+
puts "#{result.message}".red
|
303
291
|
else
|
304
292
|
puts "Droplets renamed.".green
|
305
293
|
end
|
306
294
|
end
|
307
295
|
end
|
308
296
|
|
297
|
+
def barge
|
298
|
+
puts "I'm thinking, please wait..".blue
|
299
|
+
Oc::Get.get_barge
|
300
|
+
end
|
309
301
|
|
310
302
|
private
|
311
303
|
def config(value)
|
@@ -2,12 +2,10 @@ module Oc::Run
|
|
2
2
|
class Images < Base
|
3
3
|
|
4
4
|
description "This method returns all the available images that can be accessed by your client ID. You will have access to all public images by default, and any snapshots or backups that you have created in your own account."
|
5
|
-
syntax "co images
|
5
|
+
syntax "co images"
|
6
6
|
def run(*args)
|
7
|
-
|
8
|
-
|
9
|
-
result = Oc::Get.get_json("images","my_images")
|
10
|
-
if result["status"] == "ERROR"
|
7
|
+
result = barge.image.all
|
8
|
+
if !result.success?
|
11
9
|
puts "Error: Please check your information".red
|
12
10
|
else
|
13
11
|
puts "Images".yellow
|
@@ -21,47 +19,18 @@ module Oc::Run
|
|
21
19
|
'Regions'
|
22
20
|
]
|
23
21
|
|
24
|
-
result
|
22
|
+
result.images.each do |image|
|
25
23
|
rows << [
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
24
|
+
image.id,
|
25
|
+
image.name.to_s.red,
|
26
|
+
image.distribution.to_s.red,
|
27
|
+
image.public.to_s == "true" ? "True".green : "False".red,
|
28
|
+
image.regions.join(",").yellow
|
31
29
|
]
|
32
30
|
end
|
33
31
|
table = Terminal::Table.new :rows => rows
|
34
32
|
puts table
|
35
33
|
end
|
36
|
-
else
|
37
|
-
result = Oc::Get.get_json("images")
|
38
|
-
if result["status"] == "ERROR"
|
39
|
-
puts "Error: Please check your information".red
|
40
|
-
else
|
41
|
-
puts "Images".yellow
|
42
|
-
rows = []
|
43
|
-
|
44
|
-
rows << [
|
45
|
-
'ID',
|
46
|
-
'Name',
|
47
|
-
'Distribution',
|
48
|
-
'Public',
|
49
|
-
'Regions'
|
50
|
-
]
|
51
|
-
|
52
|
-
result["images"].each do |images|
|
53
|
-
rows << [
|
54
|
-
images["id"],
|
55
|
-
images["name"].red,
|
56
|
-
images["distribution"].red,
|
57
|
-
images["public"] == true ? "True".green : "False".red,
|
58
|
-
images["regions"].join(",").yellow
|
59
|
-
]
|
60
|
-
end
|
61
|
-
table = Terminal::Table.new :rows => rows
|
62
|
-
puts table
|
63
|
-
end
|
64
|
-
end
|
65
34
|
end
|
66
35
|
|
67
36
|
description "This method displays the attributes of an image."
|
@@ -74,11 +43,9 @@ module Oc::Run
|
|
74
43
|
puts "$ oc images show [IMAGE_ID]".yellow
|
75
44
|
else
|
76
45
|
raise ArgumentError, "Argument Error - #{id}" unless id =~ /\A[-+]?[0-9]*\.?[0-9]+\Z/
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
if result["status"] == "ERROR"
|
81
|
-
puts "#{result["message"]}".red
|
46
|
+
result = barge.image.show(id)
|
47
|
+
if !result.success?
|
48
|
+
puts "#{result.message}".red
|
82
49
|
else
|
83
50
|
puts "Images".yellow
|
84
51
|
rows = []
|
@@ -91,14 +58,14 @@ module Oc::Run
|
|
91
58
|
'Regions'
|
92
59
|
]
|
93
60
|
|
94
|
-
|
61
|
+
image = result.image
|
95
62
|
|
96
63
|
rows << [
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
64
|
+
image.id,
|
65
|
+
image.name.to_s.red,
|
66
|
+
image.distribution.to_s.red,
|
67
|
+
image.public.to_s == "true" ? "True".green : "False".red,
|
68
|
+
image.regions.join(",").yellow
|
102
69
|
]
|
103
70
|
|
104
71
|
table = Terminal::Table.new :rows => rows
|
@@ -120,10 +87,9 @@ module Oc::Run
|
|
120
87
|
puts "$ oc images destroy [IMAGE_ID]".yellow
|
121
88
|
else
|
122
89
|
raise ArgumentError, "Argument Error - #{id}" unless id =~ /\A[-+]?[0-9]*\.?[0-9]+\Z/
|
123
|
-
|
124
|
-
result
|
125
|
-
|
126
|
-
puts "#{result["message"]}".red
|
90
|
+
result = barge.image.destroy(id)
|
91
|
+
if !result.success?
|
92
|
+
puts "#{result.message}".red
|
127
93
|
else
|
128
94
|
puts "Image destroyed".green
|
129
95
|
end
|
@@ -142,16 +108,19 @@ module Oc::Run
|
|
142
108
|
else
|
143
109
|
raise ArgumentError, "Argument Error - #{id}" unless id =~ /\A[-+]?[0-9]*\.?[0-9]+\Z/
|
144
110
|
raise ArgumentError, "Argument Error - #{id}" unless region_id =~ /\A[-+]?[0-9]*\.?[0-9]+\Z/
|
145
|
-
|
146
|
-
result
|
147
|
-
|
148
|
-
puts "#{result["message"]}".red
|
111
|
+
result = barge.image.transfer(id, region: region_id)
|
112
|
+
if !result.success?
|
113
|
+
puts "#{result.message}".red
|
149
114
|
else
|
150
115
|
puts "Image transfered".green
|
151
116
|
end
|
152
117
|
end
|
153
118
|
end
|
154
119
|
|
120
|
+
def barge
|
121
|
+
puts "I'm thinking, please wait..".blue
|
122
|
+
Oc::Get.get_barge
|
123
|
+
end
|
155
124
|
|
156
125
|
end
|
157
126
|
end
|
@@ -3,19 +3,17 @@ module Oc::Run
|
|
3
3
|
|
4
4
|
description "Show your API information"
|
5
5
|
def show
|
6
|
-
puts "
|
7
|
-
puts "API Key: #{Oc::Config.get("api_key")}".yellow
|
6
|
+
puts "Access Tokens: #{Oc::Config.get("api_key")}".yellow
|
8
7
|
end
|
9
8
|
|
10
9
|
description "Change your API information"
|
11
10
|
def change(*args)
|
12
11
|
config = Netrc.read("#{(ENV["HOME"] || "./")}/digitalocean.netrc")
|
13
|
-
|
14
|
-
api_key
|
15
|
-
if client_id.empty? and api_key.empty?
|
12
|
+
api_key = [(print 'Access Tokens: '), STDIN.gets.rstrip][1]
|
13
|
+
if api_key.empty?
|
16
14
|
puts "Please fill all fields".red
|
17
15
|
else
|
18
|
-
config["api.digitalocean.com"] =
|
16
|
+
config["api.digitalocean.com"] = api_key
|
19
17
|
config.save
|
20
18
|
puts "Informations is changed".red
|
21
19
|
end
|
@@ -3,8 +3,8 @@ module Oc::Run
|
|
3
3
|
description "This method will return all the available regions within the DigitalOcean cloud."
|
4
4
|
syntax "oc regions"
|
5
5
|
def run
|
6
|
-
result =
|
7
|
-
if result
|
6
|
+
result = barge.region.all
|
7
|
+
if !result.success?
|
8
8
|
puts "Error: Please check your information".red
|
9
9
|
else
|
10
10
|
puts "Regions".yellow
|
@@ -15,15 +15,19 @@ module Oc::Run
|
|
15
15
|
'Name'
|
16
16
|
]
|
17
17
|
|
18
|
-
result
|
18
|
+
result.regions.each do |region|
|
19
19
|
droplets << [
|
20
|
-
|
21
|
-
|
20
|
+
region.slug,
|
21
|
+
region.name.to_s.red,
|
22
22
|
]
|
23
23
|
end
|
24
24
|
table = Terminal::Table.new :rows => droplets
|
25
25
|
puts table
|
26
26
|
end
|
27
27
|
end
|
28
|
+
def barge
|
29
|
+
puts "I'm thinking, please wait..".blue
|
30
|
+
Oc::Get.get_barge
|
31
|
+
end
|
28
32
|
end
|
29
33
|
end
|
@@ -4,9 +4,8 @@ module Oc::Run
|
|
4
4
|
description "This method returns all the available sizes that can be used to create a droplet."
|
5
5
|
syntax "oc sizes"
|
6
6
|
def run
|
7
|
-
|
8
|
-
result
|
9
|
-
if result["status"] == "ERROR"
|
7
|
+
result = barge.size.all
|
8
|
+
if !result.success?
|
10
9
|
puts "Error: #{result["error_message"]}".red
|
11
10
|
else
|
12
11
|
puts "Sizes".yellow
|
@@ -14,18 +13,30 @@ module Oc::Run
|
|
14
13
|
|
15
14
|
rows << [
|
16
15
|
'ID',
|
17
|
-
'
|
16
|
+
'Memory',
|
17
|
+
'Disk',
|
18
|
+
'Cpu',
|
19
|
+
'Price (Monthly)',
|
20
|
+
'Price (Hourly)',
|
18
21
|
]
|
19
22
|
|
20
|
-
result
|
23
|
+
result.sizes.each do |size|
|
21
24
|
rows << [
|
22
|
-
|
23
|
-
|
25
|
+
size.slug,
|
26
|
+
size.memory.to_s + " MB",
|
27
|
+
size.disk.to_s + " GB",
|
28
|
+
size.vcpus,
|
29
|
+
"$ " + size.price_monthly.to_s,
|
30
|
+
"$ " + size.price_hourly.to_s
|
24
31
|
]
|
25
32
|
end
|
26
33
|
table = Terminal::Table.new :rows => rows
|
27
34
|
puts table
|
28
35
|
end
|
29
36
|
end
|
37
|
+
def barge
|
38
|
+
puts "I'm thinking, please wait..".blue
|
39
|
+
Oc::Get.get_barge
|
40
|
+
end
|
30
41
|
end
|
31
42
|
end
|
data/oc.gemspec
CHANGED
@@ -21,7 +21,8 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_runtime_dependency 'commander', '~> 4.2.0'
|
22
22
|
spec.add_runtime_dependency 'terminal-table', '~> 1.4.5'
|
23
23
|
spec.add_runtime_dependency 'netrc', '~> 0.7.7'
|
24
|
-
spec.add_runtime_dependency 'colorize'
|
24
|
+
spec.add_runtime_dependency 'colorize'
|
25
|
+
spec.add_runtime_dependency 'barge'
|
25
26
|
|
26
27
|
|
27
28
|
spec.add_development_dependency "bundler", "~> 1.5"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sedat Ciftci
|
@@ -56,16 +56,30 @@ dependencies:
|
|
56
56
|
name: colorize
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0
|
61
|
+
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: barge
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: bundler
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|