omniauth-mailup 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 6cc011eac3b197ccc4ef8bd52696f457fee81119
4
+ data.tar.gz: b2492ec856735d43aa49f932de4a277195810e99
5
+ SHA512:
6
+ metadata.gz: 037923c1b9124b861a49c5202bd16526ea424065e4f7cc0a8410ec5b26d51d886ac3b7f0f0cfc4514291b3713a3c78025e0151b29ca5f2e98cff31aa2dbd5204
7
+ data.tar.gz: 67fdcfcbe5432917d3dcbc9071c591ce58a83d77053b871b61f1e8f4cecac9c5d4832c4c804943af42c1f990f22d9dd2f24706c92bebddb72468404ba016a421
data/.gitignore CHANGED
@@ -16,5 +16,5 @@ test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
18
  .ruby-version
19
- .ruby-gemset
19
+ .ruby-gemsets
20
20
  .bashrc
data/.rbenv-gemsets ADDED
@@ -0,0 +1 @@
1
+ omniauth-mailup
@@ -8,9 +8,9 @@ module OmniAuth
8
8
  option :name, :mailup
9
9
 
10
10
  option :client_options, {
11
- :site => "https://services.mailup.com",
12
- :authorize_url => "/Authorization/OAuth/LogOn",
13
- :token_url => "/Authorization/OAuth/Token"
11
+ site: "https://services.mailup.com",
12
+ authorize_url: "/Authorization/OAuth/LogOn",
13
+ token_url: "/Authorization/OAuth/Token"
14
14
  }
15
15
 
16
16
  # TODO: Do we need this?
@@ -21,15 +21,16 @@ module OmniAuth
21
21
 
22
22
  info do
23
23
  {
24
- :company => raw_info["Company"],
25
- :nickname => raw_info["Username"],
26
- :is_trial => raw_info["IsTrial"]
24
+ company: raw_info["Company"],
25
+ nickname: raw_info["Username"],
26
+ version: raw_info["Version"],
27
+ is_trial: raw_info["IsTrial"]
27
28
  }
28
29
  end
29
30
 
30
31
  # Get more information about the user.
31
32
  def raw_info
32
- req = access_token.get('/API/v1/Rest/ConsoleService.svc/Console/Authentication/Info')
33
+ req = access_token.get('/API/v1.1/Rest/ConsoleService.svc/Console/Authentication/Info')
33
34
  @raw_info ||= MultiJson.load(req.body)
34
35
  end
35
36
  end
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module MailUp
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-mailup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
5
- prerelease:
4
+ version: 0.0.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Brian Getting
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-06-12 00:00:00.000000000 Z
11
+ date: 2014-01-07 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: omniauth-oauth2
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: multi_json
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
@@ -46,33 +41,29 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rspec
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rake
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - '>='
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - '>='
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  description: MailUp OAuth2 Strategy for OmniAuth 1.0.
@@ -83,6 +74,7 @@ extensions: []
83
74
  extra_rdoc_files: []
84
75
  files:
85
76
  - .gitignore
77
+ - .rbenv-gemsets
86
78
  - Gemfile
87
79
  - LICENSE.txt
88
80
  - README.md
@@ -98,27 +90,26 @@ files:
98
90
  - spec/support/shared_examples.rb
99
91
  homepage: https://github.com/tatemae-consultancy/omniauth-mailup
100
92
  licenses: []
93
+ metadata: {}
101
94
  post_install_message:
102
95
  rdoc_options: []
103
96
  require_paths:
104
97
  - lib
105
98
  required_ruby_version: !ruby/object:Gem::Requirement
106
- none: false
107
99
  requirements:
108
- - - ! '>='
100
+ - - '>='
109
101
  - !ruby/object:Gem::Version
110
102
  version: '0'
111
103
  required_rubygems_version: !ruby/object:Gem::Requirement
112
- none: false
113
104
  requirements:
114
- - - ! '>='
105
+ - - '>='
115
106
  - !ruby/object:Gem::Version
116
107
  version: '0'
117
108
  requirements: []
118
109
  rubyforge_project:
119
- rubygems_version: 1.8.24
110
+ rubygems_version: 2.0.14
120
111
  signing_key:
121
- specification_version: 3
112
+ specification_version: 4
122
113
  summary: OAuth2 Strategy for OmniAuth 1.0 for connecting to the MailUp REST API.
123
114
  test_files:
124
115
  - spec/omniauth/strategies/mailup_spec.rb