occson-rails 1.0.1 → 1.2.0

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: 22d7f8387fecf7e73cc51bf4ab7739102478e7d609a4dc1496df581905167705
4
- data.tar.gz: 6f7b9f5dd419868f3a46806406b5433d9136026a196442325825fa0fcda9f2b9
3
+ metadata.gz: bd7740a792397c3ee4d43fe53a30b02c8c2e5b25e6d5301f5892b86e13650afb
4
+ data.tar.gz: a067dbb23b7a6f651979c7a4da48e06afb4468b84b4134fcd3a662a72ed361c4
5
5
  SHA512:
6
- metadata.gz: c5497d18089c522b840c40fc8a16f35d7e2cb8af8927791df6bc5aa812dae33e307b9946917c7f71ee60852f1bac6ecba4ec4078350dd942c33ef2811ed85e99
7
- data.tar.gz: c131bc9270b96855bdb9d8ee7ce4be57277c66dd92a9a1ffd39b08f3a1efd54577afe9f170940e5a10474e364227c045469c964683536380307c93482850bd6d
6
+ metadata.gz: d2ae170cc5e7e6c16504597c8a2d2be0a53377ca957aee3c4bbf94989cf46d973582f87810cda31bfd17d1162a8bf9cb62d329005691c8fd5d731a52d28672aa
7
+ data.tar.gz: 0b73a45664226147d0d08648c6b115ef893e0700cd25afc7a33bc652c78284905a4738b6cbfa006f63bbd5a05208d54d3897106431d271d0c1c0d0a6136eaf78
@@ -19,8 +19,13 @@ module Occson
19
19
  next
20
20
  end
21
21
 
22
- version = ApplicationVersion.new(::Rails.application).call
23
- uri = "occson://#{version}/.env"
22
+ if ENV.key?('OCCSON_DOCUMENT_URI')
23
+ uri = ENV.fetch('OCCSON_DOCUMENT_URI')
24
+ else
25
+ version = ApplicationVersion.new(::Rails.application).call
26
+ uri = "occson://#{version}/.env"
27
+ end
28
+
24
29
  access_token = ENV.fetch('OCCSON_ACCESS_TOKEN')
25
30
  passphrase = ENV.fetch('OCCSON_PASSPHRASE')
26
31
 
@@ -1,5 +1,5 @@
1
1
  module Occson
2
2
  module Rails
3
- VERSION = '1.0.1'
3
+ VERSION = '1.2.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: occson-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomasz Kowalewski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-09 00:00:00.000000000 Z
11
+ date: 2023-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 4.1.1
33
+ version: 4.2.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
- version: 4.1.1
40
+ version: 4.2.0
41
41
  description: ''
42
42
  email:
43
43
  - me@tkowalewski.pl