eivid 1.0.8 → 1.0.9
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 077c29117cf2cded883cfaa9a2fa6357ad7abe30f67c7bc98f2ce53a001bc696
|
4
|
+
data.tar.gz: 2968dca76bba1938d819fcdd44d982119f8e5811e8db15a91b1700ca1918a063
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d97c505a4859479a8046bc0dfdd07b4f291e577d359399e23a6a8e37a4277bb5bfb597cd0edc850e200ca9234409e5ebc89f81308301a96025f7b3788249f90
|
7
|
+
data.tar.gz: 3bac18de6b24adc6643c2615e889e8846d592b168da890bb4b244455ed9902d97467c72103b0b40d4bd0011fada3406e1a41bc4489e24bad3c787c0f5f04efa6
|
@@ -6,7 +6,7 @@ module Eivid::Concerns::RequestService::ManageFolder
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def create_folder(namespace:, id:)
|
9
|
-
body = { "name" => "#{
|
9
|
+
body = { "name" => "#{rails_environment}_#{namespace}_#{id}" }
|
10
10
|
|
11
11
|
@response = HTTParty.post Eivid::RequestService::FOLDER_URL, body: body.to_json, headers: default_headers
|
12
12
|
get_folder_id
|
@@ -20,6 +20,11 @@ module Eivid::Concerns::RequestService::ManageFolder
|
|
20
20
|
HTTParty.put endpoint, headers: default_headers
|
21
21
|
end
|
22
22
|
|
23
|
+
def rails_environment
|
24
|
+
return "test" if Figaro.env.IS_TEST_SERVER
|
25
|
+
Rails.env
|
26
|
+
end
|
27
|
+
|
23
28
|
private
|
24
29
|
|
25
30
|
def get_folder_id
|
data/lib/eivid/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eivid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jurriaan Schrofer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08-
|
11
|
+
date: 2021-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|