village_auth 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,9 +15,9 @@ module VillageAuth
15
15
 
16
16
  village_uri = VillageAuth.uri
17
17
  http = Net::HTTP.new(village_uri.host, village_uri.port)
18
- response, body = http.get("#{village_uri.path}/users/me", {'Authorization' => "Token token=\"#{access_token}\""})
18
+ response = http.get("#{village_uri.path}/users/me", {'Authorization' => "Token token=\"#{access_token}\""})
19
19
  if response.code == "200"
20
- data = ActiveSupport::JSON.decode(body)
20
+ data = ActiveSupport::JSON.decode(response.body)
21
21
  Rails.logger.info("...success: #{data.inspect}")
22
22
  create_or_update_by_auth_data(data)
23
23
  else
@@ -1,3 +1,3 @@
1
1
  module VillageAuth
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,35 +1,25 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: village_auth
3
- version: !ruby/object:Gem::Version
4
- hash: 23
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.0
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 0
9
- - 0
10
- version: 1.0.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Max Macovsky
14
9
  - Anton Platonov
15
10
  autorequire:
16
11
  bindir: bin
17
12
  cert_chain: []
18
-
19
- date: 2012-06-25 00:00:00 Z
13
+ date: 2012-06-27 00:00:00.000000000 Z
20
14
  dependencies: []
21
-
22
- description: ""
23
- email:
15
+ description: ''
16
+ email:
24
17
  - robotector@gmail.com
25
18
  - platosha@lookatme.ru
26
19
  executables: []
27
-
28
20
  extensions: []
29
-
30
21
  extra_rdoc_files: []
31
-
32
- files:
22
+ files:
33
23
  - .gitignore
34
24
  - Gemfile
35
25
  - README.rdoc
@@ -48,39 +38,26 @@ files:
48
38
  - village_auth.gemspec
49
39
  homepage: http://github.com/macovsky/village_auth
50
40
  licenses: []
51
-
52
41
  post_install_message:
53
42
  rdoc_options: []
54
-
55
- require_paths:
43
+ require_paths:
56
44
  - lib
57
- required_ruby_version: !ruby/object:Gem::Requirement
45
+ required_ruby_version: !ruby/object:Gem::Requirement
58
46
  none: false
59
- requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- hash: 3
63
- segments:
64
- - 0
65
- version: "0"
66
- required_rubygems_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ! '>='
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
52
  none: false
68
- requirements:
69
- - - ">="
70
- - !ruby/object:Gem::Version
71
- hash: 3
72
- segments:
73
- - 0
74
- version: "0"
53
+ requirements:
54
+ - - ! '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
75
57
  requirements: []
76
-
77
58
  rubyforge_project:
78
- rubygems_version: 1.8.24
59
+ rubygems_version: 1.8.23
79
60
  signing_key:
80
61
  specification_version: 3
81
- summary: !binary |
82
- 0JDRg9GC0LXQvdGC0LjRhNC40LrQsNGG0LjRjyDQtNC70Y8g0YHQv9C10YbQ
83
- v9GA0L7QtdC60YLQvtCyIFRoZSBWaWxsYWdl
84
-
62
+ summary: Аутентификация для спецпроектов The Village
85
63
  test_files: []
86
-