dbalatero-evri_rpx 0.1.0

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.
@@ -0,0 +1,7 @@
1
+ {
2
+ "err": {
3
+ "msg": "Data not found",
4
+ "code": 2
5
+ },
6
+ "stat": "fail"
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "err": {
3
+ "msg": "Service Temporarily Unavailable",
4
+ "code": -1
5
+ },
6
+ "stat": "fail"
7
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "stat": "ok"
3
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "profile": {
3
+ "name": {
4
+ "givenName": "David",
5
+ "familyName": "Balatero",
6
+ "formatted": "David Balatero"
7
+ },
8
+ "address": {
9
+ "region": "Washington",
10
+ "country": "United States",
11
+ "postalCode": "98115",
12
+ "locality": "Seattle"
13
+ },
14
+ "photo": "http:\/\/profile.ak.facebook.com\/v230\/745\/68\/n10701789_1299.jpg",
15
+ "displayName": "David Balatero",
16
+ "preferredUsername": "DavidBalatero",
17
+ "url": "http:\/\/www.facebook.com\/profile.php?id=10701789",
18
+ "utcOffset": "-07:00",
19
+ "gender": "male",
20
+ "birthday": "1986-08-31",
21
+ "providerName": "Facebook",
22
+ "identifier": "http:\/\/www.facebook.com\/profile.php?id=10701789"
23
+ },
24
+ "accessCredentials": {
25
+ "expires": "1244930400",
26
+ "uid": "10701789",
27
+ "type": "Facebook",
28
+ "sessionKey": "--------snip---------"
29
+ },
30
+ "stat": "ok"
31
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "profile": {
3
+ "verifiedEmail": "dbalatero@gmail.com",
4
+ "name": {
5
+ "givenName": "David",
6
+ "familyName": "Balatero",
7
+ "formatted": "David Balatero"
8
+ },
9
+ "address": {
10
+ "country": "United States"
11
+ },
12
+ "displayName": "dbalatero",
13
+ "preferredUsername": "dbalatero",
14
+ "providerName": "Google",
15
+ "primaryKey": "DavidBalateroTestRPXX",
16
+ "identifier": "https:\/\/www.google.com\/accounts\/o8\/id?id=AItOawm4ssnouvp4V-snip",
17
+ "email": "dbalatero@gmail.com"
18
+ },
19
+ "stat": "ok"
20
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "profile": {
3
+ "name": {
4
+ "formatted": "David Balatero"
5
+ },
6
+ "photo": "http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/196887137\/n10704766_41523711_7282_normal.jpg",
7
+ "displayName": "David Balatero",
8
+ "preferredUsername": "dbalatero",
9
+ "url": "http:\/\/twitter.com\/dbalatero",
10
+ "providerName": "Twitter",
11
+ "identifier": "http:\/\/twitter.com\/account\/profile?user_id=35834683"
12
+ },
13
+ "accessCredentials": {
14
+ "oauthToken": "snip-Wd0QIbFJ34wDunsyB0H7t-snip",
15
+ "type": "OAuth",
16
+ "oauthTokenSecret": "snip-uJ6WOmJMuPRXZx-snip"
17
+ },
18
+ "stat": "ok"
19
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "profile": {
3
+ "verifiedEmail": "dbalatero@yahoo.com",
4
+ "name": {
5
+ "formatted": "David Balatero"
6
+ },
7
+ "displayName": "David Balatero",
8
+ "preferredUsername": "David",
9
+ "utcOffset": "-08:00",
10
+ "gender": "male",
11
+ "providerName": "Yahoo!",
12
+ "primaryKey": "David",
13
+ "identifier": "https:\/\/me.yahoo.com\/a\/fkoI_0kArtImhTBCf4HkPq7r42jX5w--#84c57",
14
+ "email": "dbalatero@yahoo.com"
15
+ },
16
+ "stat": "ok"
17
+ }
@@ -0,0 +1,20 @@
1
+ require 'spec'
2
+
3
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
4
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
5
+ require 'evri_rpx'
6
+
7
+ Spec::Runner.configure do |config|
8
+
9
+ end
10
+
11
+ require 'fakeweb'
12
+ FakeWeb.allow_net_connect = false
13
+
14
+ def json_fixture(path)
15
+ JSON.parse(File.read(fixture_path(path)))
16
+ end
17
+
18
+ def fixture_path(path)
19
+ File.expand_path(File.join(File.dirname(__FILE__), 'fixtures', path))
20
+ end
metadata ADDED
@@ -0,0 +1,81 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: dbalatero-evri_rpx
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - David Balatero
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-06-15 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description:
17
+ email: dbalatero@evri.com
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files:
23
+ - LICENSE
24
+ - README.rdoc
25
+ files:
26
+ - .document
27
+ - .gitignore
28
+ - LICENSE
29
+ - README.rdoc
30
+ - Rakefile
31
+ - VERSION
32
+ - certs/curl-ca-bundle.crt
33
+ - lib/evri/rpx.rb
34
+ - lib/evri/rpx/mappings.rb
35
+ - lib/evri/rpx/session.rb
36
+ - lib/evri/rpx/user.rb
37
+ - lib/evri_rpx.rb
38
+ - spec/evri/rpx/mappings_spec.rb
39
+ - spec/evri/rpx/session_spec.rb
40
+ - spec/evri/rpx/user_spec.rb
41
+ - spec/fixtures/mappings/identifiers.json
42
+ - spec/fixtures/session/map.json
43
+ - spec/fixtures/session/normal_error.json
44
+ - spec/fixtures/session/service_down_error.json
45
+ - spec/fixtures/session/unmap.json
46
+ - spec/fixtures/user/dbalatero_facebook.json
47
+ - spec/fixtures/user/dbalatero_gmail.json
48
+ - spec/fixtures/user/dbalatero_twitter.json
49
+ - spec/fixtures/user/dbalatero_yahoo.json
50
+ - spec/spec_helper.rb
51
+ has_rdoc: false
52
+ homepage: http://github.com/dbalatero/evri_rpx
53
+ post_install_message:
54
+ rdoc_options:
55
+ - --charset=UTF-8
56
+ require_paths:
57
+ - lib
58
+ required_ruby_version: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: "0"
63
+ version:
64
+ required_rubygems_version: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: "0"
69
+ version:
70
+ requirements: []
71
+
72
+ rubyforge_project:
73
+ rubygems_version: 1.2.0
74
+ signing_key:
75
+ specification_version: 3
76
+ summary: An API wrapper for the RPXNow.com login service.
77
+ test_files:
78
+ - spec/evri/rpx/mappings_spec.rb
79
+ - spec/evri/rpx/session_spec.rb
80
+ - spec/evri/rpx/user_spec.rb
81
+ - spec/spec_helper.rb