lazy-auth 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b5b3367ab5f4d5d7b688a9cf24559c33488934453925173b637e2df3f9e52167
4
- data.tar.gz: dec70a06e4da0f20ab31a472aeb6d5c6ed3c7b4472d61b6245b838e5c9792bae
3
+ metadata.gz: e9d2da0ce209297d9ec0cb40c096577ed3bf410f1b2a548c2e6686f4d661fa19
4
+ data.tar.gz: fef1570f103e5f91119378c840af9ef8bffd6b74856d07c2d145d60ee911dada
5
5
  SHA512:
6
- metadata.gz: 9c665c15e472e73a6ffb43c993787f6b75b10192a36b8e9f5c38f67b67214a49202f42bc1116be0186de0cc67597f5ece5f1e8436f7184630292a8502aa26606
7
- data.tar.gz: 830fb74d89df4f2f22647e58070b07b1281c92fb0b952ff4e956d54e3c42707754b0c4076da5d2ed9aa2c113b35113e738c62fba32efcf128bcea3c66f9a848b
6
+ metadata.gz: 2da064bd14222160d62c74cd4048b084ce62179b5ec3b0f68496ecb62cb056e5a6726420a9500cb3be19de83a89920f936f4e0cd2d5248d1d18a6ff582dcd4ac
7
+ data.tar.gz: f8b51d22b90aa436f45b9d5bf2b51a0f1ecb2bed39353473ab9b717bd18fd684cc1350f42650bb34646b9df2dfba08580688961099b1b03b6019f9aaafa06fa3
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  begin
2
4
  require 'bundler/setup'
3
5
  rescue LoadError
@@ -1,4 +1,5 @@
1
- require "lazy/auth/railtie"
1
+ # frozen_string_literal: true
2
+
2
3
  require 'signet/oauth_2/client'
3
4
  require 'lazy/config_for'
4
5
  require 'ostruct'
@@ -11,12 +12,12 @@ module Lazy
11
12
 
12
13
  def signet
13
14
  client = Signet::OAuth2::Client.new(
14
- :authorization_uri => 'https://accounts.google.com/o/oauth2/auth',
15
- :token_credential_uri => 'https://oauth2.googleapis.com/token',
16
- :client_id => config.client_id,
17
- :client_secret => config.client_secret,
18
- :scope => config.scope,
19
- :redirect_uri => config.redirect_uri
15
+ authorization_uri: 'https://accounts.google.com/o/oauth2/auth',
16
+ token_credential_uri: 'https://oauth2.googleapis.com/token',
17
+ client_id: config.client_id,
18
+ client_secret: config.client_secret,
19
+ scope: config.scope,
20
+ redirect_uri: config.redirect_uri
20
21
  )
21
22
  end
22
23
  end
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Lazy
2
4
  class Auth
3
- VERSION = '0.1.0'
5
+ VERSION = '0.1.1'
4
6
  end
5
7
  end
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lazy-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Ladachowski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-12 00:00:00.000000000 Z
11
+ date: 2019-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
14
+ name: lazy-config_for
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 5.2.3
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
- version: 5.2.3
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: lazy-config_for
28
+ name: rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 5.2.3
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
- version: '0'
40
+ version: 5.2.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: signet
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -63,9 +63,7 @@ files:
63
63
  - README.md
64
64
  - Rakefile
65
65
  - lib/lazy/auth.rb
66
- - lib/lazy/auth/railtie.rb
67
66
  - lib/lazy/auth/version.rb
68
- - lib/tasks/lazy/auth_tasks.rake
69
67
  homepage: https://github.com/aladac
70
68
  licenses:
71
69
  - MIT
@@ -1,6 +0,0 @@
1
- module Lazy
2
- class Auth
3
- class Railtie < ::Rails::Railtie
4
- end
5
- end
6
- end
@@ -1,4 +0,0 @@
1
- # desc "Explaining what the task does"
2
- # task :lazy_auth do
3
- # # Task goes here
4
- # end