rails-cloud-tasks 0.0.7 → 0.0.8

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
  SHA256:
3
- metadata.gz: e5c0ccb60060c536355871363149f8de556e58b02d291df55d97523eb7bbf19f
4
- data.tar.gz: 001f4d65d8bd99f50ff8dd26effb28d20627deff7377dd3b33aaed3bd1418e3a
3
+ metadata.gz: a0a927e98f448694a013a81f2c49b7c29d98ae25a6e5dc7fab721d2cd9da6412
4
+ data.tar.gz: e7121d86e71dbf30c69b22eb751a34bc8242308a81e1815e5529bf89f611d640
5
5
  SHA512:
6
- metadata.gz: dbefd470b602eadb6e0a5b4089eb8a690fde6176a221d3c6909f2ac51778c9b5233f8a77315551355f633df46c9c430c3a1e7d68c70ebc4e39f4799c7bdfdfc2
7
- data.tar.gz: 104087dd434acb527c79044db63ad6ddd947062b69d833db7ad1984333850083b198d67dd4c5dcd33b381fe0999362173ccdd79aa36058528e8f90f5dc024eef
6
+ metadata.gz: 953fe7f7bedb2174b5030e4d71f85bd393f5c57526efd01086bb3175485a9fc3d7e9a28f588073cde7d1799285c6508151a7f483b4380c366719119b536f4711
7
+ data.tar.gz: b6347af198ff733ed55bd3f281ce45094ffe298b0bce26711b6f54aa2668bff2cba47a5846761593f72f6ec034a7a99153f7c9dcf067471c8a2238ca2b61a7e3
@@ -1,7 +1,6 @@
1
1
  module RailsCloudTasks
2
2
  class Credentials
3
3
  require 'googleauth'
4
- require 'google/apis/cloudscheduler_v1'
5
4
  require 'google/apis/iamcredentials_v1'
6
5
 
7
6
  DEFAULT_SCOPES = ['https://www.googleapis.com/auth/cloud-platform'].freeze
@@ -25,9 +25,10 @@ module RailsCloudTasks
25
25
  end
26
26
 
27
27
  def client
28
- @client ||= Google::Cloud::Scheduler.cloud_scheduler.configure do |config|
29
- config.credentials = credentials.generate(service_account_email)
30
- end
28
+ configure = lambda { |client|
29
+ client.configure.credentials = credentials.generate(service_account_email)
30
+ }
31
+ @client ||= Google::Cloud::Scheduler.cloud_scheduler.tap(&configure)
31
32
  end
32
33
 
33
34
  protected
@@ -1,3 +1,3 @@
1
1
  module RailsCloudTasks
2
- VERSION = '0.0.7'.freeze
2
+ VERSION = '0.0.8'.freeze
3
3
  end
@@ -23,7 +23,6 @@ Gem::Specification.new do |spec|
23
23
  end
24
24
 
25
25
  spec.add_dependency 'activesupport', '>= 4'
26
- spec.add_dependency 'google-apis-cloudscheduler_v1'
27
26
  spec.add_dependency 'google-apis-iamcredentials_v1'
28
27
  spec.add_dependency 'google-cloud-scheduler', '>= 2'
29
28
  spec.add_dependency 'google-cloud-tasks', '>= 2'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-cloud-tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guilherme Araújo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-01 00:00:00.000000000 Z
11
+ date: 2021-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4'
27
- - !ruby/object:Gem::Dependency
28
- name: google-apis-cloudscheduler_v1
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: google-apis-iamcredentials_v1
43
29
  requirement: !ruby/object:Gem::Requirement