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 CHANGED
@@ -1,6 +1,6 @@
1
1
  require "mite-backup/version"
2
2
  require "multi_json"
3
- require "net/http"
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 ||= Net::HTTP.new(URI.parse("http://#{@account}.mite.yo.lk/").host)
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)
@@ -1,3 +1,3 @@
1
1
  class MiteBackup
2
- VERSION = "0.0.2"
2
+ VERSION = "0.1.0"
3
3
  end
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.2
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: &2167794720 !ruby/object:Gem::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: *2167794720
24
+ version_requirements: *2170014760
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &2167794300 !ruby/object:Gem::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: *2167794300
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: -1264802230694611080
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: -1264802230694611080
77
+ hash: 1027709733883102799
78
78
  requirements: []
79
79
  rubyforge_project: mite-backup
80
80
  rubygems_version: 1.8.10