mislav_contacts 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,6 +23,12 @@ starters); feel free to contribute.
23
23
 
24
24
  Author: <b>Mislav Marohnić</b> (mislav.marohnic@gmail.com)
25
25
 
26
+ == Installation
27
+
28
+ This fork of the contacts codebase is available as a gem, prefixed with 'mislav' to avoid conflicts with the original contacts gem. Do
29
+ gem install mislav_contacts
30
+ to install.
31
+
26
32
  == Dependencies
27
33
 
28
34
  Please note that you will need to install the json gem if you are not using this gem as part of a Rails project.
@@ -1,6 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'hpricot'
3
- require 'md5'
3
+ RUBY_VERSION < '1.9' ? (require 'md5') : (require 'digest/md5')
4
4
  require 'cgi'
5
5
  require 'time'
6
6
  require 'zlib'
@@ -2,7 +2,7 @@ module Contacts
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- TINY = 7
5
+ TINY = 8
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -1,6 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'hpricot'
3
- require 'md5'
3
+ RUBY_VERSION < '1.9' ? (require 'md5') : (require 'digest/md5')
4
4
  require 'net/https'
5
5
  require 'uri'
6
6
  require 'yaml'
@@ -52,6 +52,7 @@ module Contacts
52
52
  # 2. Import contacts from Yahoo Mail and deliver it inside an Array
53
53
  #
54
54
  class Yahoo
55
+ MD5 = Digest::MD5 unless RUBY_VERSION < '1.9'
55
56
  AUTH_DOMAIN = "https://api.login.yahoo.com"
56
57
  AUTH_PATH = "/WSLogin/V1/wslogin?appid=#appid&ts=#ts"
57
58
  CREDENTIAL_PATH = "/WSLogin/V1/wspwtoken_login?appid=#appid&ts=#ts&token=#token"
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mislav_contacts
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 2
9
- - 7
10
- version: 0.2.7
8
+ - 8
9
+ version: 0.2.8
11
10
  platform: ruby
12
11
  authors:
13
12
  - "Mislav Marohni\xC4\x87"
@@ -15,7 +14,7 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-08-24 00:00:00 +05:30
17
+ date: 2010-10-28 00:00:00 +05:30
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
@@ -26,7 +25,6 @@ dependencies:
26
25
  requirements:
27
26
  - - ~>
28
27
  - !ruby/object:Gem::Version
29
- hash: 59
30
28
  segments:
31
29
  - 0
32
30
  - 8
@@ -42,7 +40,6 @@ dependencies:
42
40
  requirements:
43
41
  - - ~>
44
42
  - !ruby/object:Gem::Version
45
- hash: 21
46
43
  segments:
47
44
  - 1
48
45
  - 1
@@ -58,7 +55,6 @@ dependencies:
58
55
  requirements:
59
56
  - - ~>
60
57
  - !ruby/object:Gem::Version
61
- hash: 59
62
58
  segments:
63
59
  - 0
64
60
  - 9
@@ -74,7 +70,6 @@ dependencies:
74
70
  requirements:
75
71
  - - ~>
76
72
  - !ruby/object:Gem::Version
77
- hash: 23
78
73
  segments:
79
74
  - 1
80
75
  - 2
@@ -117,7 +112,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
117
112
  requirements:
118
113
  - - ">="
119
114
  - !ruby/object:Gem::Version
120
- hash: 3
121
115
  segments:
122
116
  - 0
123
117
  version: "0"
@@ -126,7 +120,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
120
  requirements:
127
121
  - - ">="
128
122
  - !ruby/object:Gem::Version
129
- hash: 23
130
123
  segments:
131
124
  - 1
132
125
  - 3