occson-rails 1.0.1 → 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 22d7f8387fecf7e73cc51bf4ab7739102478e7d609a4dc1496df581905167705
4
- data.tar.gz: 6f7b9f5dd419868f3a46806406b5433d9136026a196442325825fa0fcda9f2b9
3
+ metadata.gz: f5ff9124416bbd292e2159f758535dceee846724944a2e266f36fc970c81c0a0
4
+ data.tar.gz: 69fbfdaca2aa7945159597fd6a0ac0edd671dfa7af6fa1af761a40befd439456
5
5
  SHA512:
6
- metadata.gz: c5497d18089c522b840c40fc8a16f35d7e2cb8af8927791df6bc5aa812dae33e307b9946917c7f71ee60852f1bac6ecba4ec4078350dd942c33ef2811ed85e99
7
- data.tar.gz: c131bc9270b96855bdb9d8ee7ce4be57277c66dd92a9a1ffd39b08f3a1efd54577afe9f170940e5a10474e364227c045469c964683536380307c93482850bd6d
6
+ metadata.gz: f262aa1d6d4783320053579a219f92f7639fe95fae9795e36fcb872d39c8c48e2475a23585ad2590bbbd756e5b63bf75f79cd26e512e35abf61da737564aeaeb
7
+ data.tar.gz: d5a4f0805068558e407bdb891328ba32ee97899351eb48b7232927f53bd97bcd9c1786613da1b30c69f1acdc441e6d9aca1fa12ed922f6c36f331453e957dd87
@@ -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.1.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.1.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-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails