mailru_target 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7f2da545e5769b74e31046f9782ca9528eea02c5
4
- data.tar.gz: 950a4eaec9e90d7761c25855c5e176dfbb600940
3
+ metadata.gz: b4a5e16145224da3d38e2600a35fcbc867cc8f2a
4
+ data.tar.gz: cc9cf029d6ca48d78e0f8c95ccc354fa71e5d49b
5
5
  SHA512:
6
- metadata.gz: bf789b9dec26f289b7b1605a1e1c02fe485d2588affc832f12de39d363ff7bc7f748518883d3ded4470cae53022161c947da9e4c6ef6ffba0be116e306408fd8
7
- data.tar.gz: 9e5f0de5b5b9947168ede71d8ca126c9c8c330866326553b5d5caf7fca453a660e425ac05493477c098b318284ef37f096a237c0c1cf86c6cb5e5dac5d9afce1
6
+ metadata.gz: 907b37d5d7d369eb62237feb380aff8c53ddf574bfd652ad56fac17645b39c55b85476d5f78a5cd48a9f345779bf5b9f1c9e79e09f7eb05d62d95c136d49ee26
7
+ data.tar.gz: d24f90befd091f224d64b2ae522ac2ea9a9558c327dbfc7aa1d14db5f407c27943d8fe5aea8483dfa0e4f22d1e8a7554ac2329538c4745db920fbfd8fa2703ea
@@ -1,4 +1,4 @@
1
- # see https://target.mail.ru/doc/api/oauth2
1
+ # see https://target.my.com/doc/api/oauth2
2
2
 
3
3
  module MailruTarget
4
4
  class Auth
@@ -7,7 +7,7 @@ module MailruTarget
7
7
 
8
8
  def authorize_url
9
9
  state = (0...32).map { (65 + rand(26)).chr }.join.downcase
10
- "https://target.mail.ru/oauth2/authorize?response_type=code" <<
10
+ "https://target.my.com/oauth2/authorize?response_type=code" <<
11
11
  "&client_id=#{MailruTarget.client_id}&state=#{state}&scope=#{MailruTarget.scopes}"
12
12
  end
13
13
 
@@ -22,4 +22,4 @@ module MailruTarget
22
22
  end
23
23
  end
24
24
  end
25
- end
25
+ end
@@ -1,7 +1,7 @@
1
1
  module MailruTarget
2
2
  module Request
3
- API_URI = "https://target.mail.ru/"
4
- SUDO_API_URI = "https://target.mail.ru/users/"
3
+ API_URI = "https://target.my.com/"
4
+ SUDO_API_URI = "https://target.my.com/users/"
5
5
 
6
6
  def request(method, path, params = {}, headers = {})
7
7
  JSON.parse make_request(method, path, params, headers).to_s
@@ -1,4 +1,4 @@
1
- # see https://target.mail.ru/doc/api/detailed/
1
+ # see https://target.my.com/doc/api/detailed/
2
2
 
3
3
  module MailruTarget
4
4
  class Session
@@ -14,4 +14,4 @@ module MailruTarget
14
14
  super method, path, params.merge({ token: token })
15
15
  end
16
16
  end
17
- end
17
+ end
@@ -1,3 +1,3 @@
1
1
  module MailruTarget
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailru_target
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugeniy Belyaev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-28 00:00:00.000000000 Z
11
+ date: 2015-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: json
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.6'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.6'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description: Target.Mail.ru api via oauth2
@@ -73,7 +73,7 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
- - .gitignore
76
+ - ".gitignore"
77
77
  - Gemfile
78
78
  - LICENSE.txt
79
79
  - README.md
@@ -96,17 +96,17 @@ require_paths:
96
96
  - lib
97
97
  required_ruby_version: !ruby/object:Gem::Requirement
98
98
  requirements:
99
- - - '>='
99
+ - - ">="
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0'
102
102
  required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  requirements:
104
- - - '>='
104
+ - - ">="
105
105
  - !ruby/object:Gem::Version
106
106
  version: '0'
107
107
  requirements: []
108
108
  rubyforge_project:
109
- rubygems_version: 2.0.3
109
+ rubygems_version: 2.2.2
110
110
  signing_key:
111
111
  specification_version: 4
112
112
  summary: Target.Mail.ru api via oauth2