occson-rails 1.0.0 → 1.1.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: 07b0665776282195bcd0b00fd3ca2472a4808580a201d0df3b61eafa647911df
4
- data.tar.gz: f5c68769f0189a668c8845ddaad5f5c846a12444e0e6ecd43be213ab94cebe1e
3
+ metadata.gz: f5ff9124416bbd292e2159f758535dceee846724944a2e266f36fc970c81c0a0
4
+ data.tar.gz: 69fbfdaca2aa7945159597fd6a0ac0edd671dfa7af6fa1af761a40befd439456
5
5
  SHA512:
6
- metadata.gz: 86cefd539d2548b273b597b45e221ccf8813ace01b0d99544ff988a1ab29712e8968331165307a41e0a89593763669125bbdb739f1d8e49882312345a10c29ff
7
- data.tar.gz: 4d7266bfa6a3ca9c2b8b94eab44302978a676ed58ff1cfbd45caa7585db832cb1f32659e907cf7e5c96a140a27813e010fdd1aca4a4305d4717d7c8100a4c705
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.0'
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.0
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: 2022-10-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
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 4.1.0
33
+ version: 4.1.1
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.0
40
+ version: 4.1.1
41
41
  description: ''
42
42
  email:
43
43
  - me@tkowalewski.pl