lam_auth 1.0.0 → 1.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.
@@ -15,9 +15,9 @@ module LamAuth
15
15
 
16
16
  lam_uri = LamAuth.uri
17
17
  http = Net::HTTP.new(lam_uri.host, lam_uri.port)
18
- response, body = http.get("#{lam_uri.path}/users/me", {'Authorization' => "Token token=\"#{access_token}\""})
18
+ response = http.get("#{lam_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 LamAuth
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,36 +1,25 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: lam_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: 2011-12-22 00:00:00 +03:00
20
- default_executable:
13
+ date: 2012-06-27 00:00:00.000000000 Z
21
14
  dependencies: []
22
-
23
- description: ""
24
- email:
15
+ description: ''
16
+ email:
25
17
  - robotector@gmail.com
26
18
  - platosha@lookatme.ru
27
19
  executables: []
28
-
29
20
  extensions: []
30
-
31
21
  extra_rdoc_files: []
32
-
33
- files:
22
+ files:
34
23
  - .gitignore
35
24
  - Gemfile
36
25
  - README.rdoc
@@ -47,42 +36,28 @@ files:
47
36
  - lib/lam_auth/helpers.rb
48
37
  - lib/lam_auth/model.rb
49
38
  - lib/lam_auth/version.rb
50
- has_rdoc: true
51
39
  homepage: http://github.com/macovsky/lam_auth
52
40
  licenses: []
53
-
54
41
  post_install_message:
55
42
  rdoc_options: []
56
-
57
- require_paths:
43
+ require_paths:
58
44
  - lib
59
- required_ruby_version: !ruby/object:Gem::Requirement
45
+ required_ruby_version: !ruby/object:Gem::Requirement
60
46
  none: false
61
- requirements:
62
- - - ">="
63
- - !ruby/object:Gem::Version
64
- hash: 3
65
- segments:
66
- - 0
67
- version: "0"
68
- 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
69
52
  none: false
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- hash: 3
74
- segments:
75
- - 0
76
- version: "0"
53
+ requirements:
54
+ - - ! '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
77
57
  requirements: []
78
-
79
58
  rubyforge_project:
80
- rubygems_version: 1.6.2
59
+ rubygems_version: 1.8.23
81
60
  signing_key:
82
61
  specification_version: 3
83
- summary: !binary |
84
- 0JDRg9GC0LXQvdGC0LjRhNC40LrQsNGG0LjRjyDQtNC70Y8g0YHQv9C10YbQ
85
- v9GA0L7QtdC60YLQvtCyIExvb2thdG1l
86
-
62
+ summary: Аутентификация для спецпроектов Lookatme
87
63
  test_files: []
88
-