mite-backup 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mite-backup.rb +6 -2
- data/lib/mite-backup/version.rb +1 -1
- metadata +7 -7
data/lib/mite-backup.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require "mite-backup/version"
|
2
2
|
require "multi_json"
|
3
|
-
require "net/
|
3
|
+
require "net/https"
|
4
4
|
require "uri"
|
5
5
|
require 'zlib'
|
6
6
|
require 'yaml'
|
@@ -91,7 +91,11 @@ class MiteBackup
|
|
91
91
|
end
|
92
92
|
|
93
93
|
def mite
|
94
|
-
@mite ||=
|
94
|
+
@mite ||= begin
|
95
|
+
mite = Net::HTTP.new(URI.parse("https://#{@account}.mite.yo.lk/").host, 443)
|
96
|
+
mite.use_ssl = true
|
97
|
+
mite
|
98
|
+
end
|
95
99
|
end
|
96
100
|
|
97
101
|
def failed(reason)
|
data/lib/mite-backup/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mite-backup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-11-18 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_json
|
16
|
-
requirement: &
|
16
|
+
requirement: &2170014760 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2170014760
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rake
|
27
|
-
requirement: &
|
27
|
+
requirement: &2170014340 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2170014340
|
36
36
|
description: Download a backup of your mite.account from the command-line.
|
37
37
|
email:
|
38
38
|
- sebastian@yo.lk
|
@@ -65,7 +65,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
65
65
|
version: '0'
|
66
66
|
segments:
|
67
67
|
- 0
|
68
|
-
hash:
|
68
|
+
hash: 1027709733883102799
|
69
69
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
70
|
none: false
|
71
71
|
requirements:
|
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
74
|
version: '0'
|
75
75
|
segments:
|
76
76
|
- 0
|
77
|
-
hash:
|
77
|
+
hash: 1027709733883102799
|
78
78
|
requirements: []
|
79
79
|
rubyforge_project: mite-backup
|
80
80
|
rubygems_version: 1.8.10
|