condensr 0.1.2 → 0.1.3.1
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 +4 -4
- data/.env +11 -10
- data/lib/condensr.rb +3 -3
- data/lib/condensr/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87474fb316601cf7ec20467081e924ea954bbf3d
|
4
|
+
data.tar.gz: ba8e363e3c26eaf2141324470c8a15c88343ea8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df002cb2ae86f371cd0d4b38f15269c06e8570566308adb99c095c67b3aeb9a2c6ac1c166f7b76e08826ab4d2ecef21d5da108f939cf71a959dbec3f4e0ba43c
|
7
|
+
data.tar.gz: 9721f387b2908c07947b767404d0e4a79d707070f114b94f6e40e2f7f44defc209dd80741088f6d303dae464de6c9aca34e4d4d12703966d8a675bd2a5d25713
|
data/.env
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
# export environment variables
|
2
|
-
ACCESS_KEY_ID=
|
3
|
-
SECRET_ACCESS_KEY=
|
4
|
-
AWS_REGION=
|
5
|
-
AWS_BUCKET=
|
6
|
-
PROJECT_ID=
|
7
|
-
KEY_FILE=
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
2
|
+
ACCESS_KEY_ID=access_key_id
|
3
|
+
SECRET_ACCESS_KEY=secret_key_id
|
4
|
+
AWS_REGION=region
|
5
|
+
AWS_BUCKET=bucket
|
6
|
+
PROJECT_ID=project_id
|
7
|
+
KEY_FILE=key_file
|
8
|
+
GCLOUD_KEY=gcloud_key
|
9
|
+
GCLOUD_BUCKET=gcloud_bucket
|
10
|
+
ACL_TYPE=acl
|
11
|
+
TEST_FILE_URL=file_url
|
12
|
+
DESTINATION_NAME=destination_name
|
data/lib/condensr.rb
CHANGED
@@ -20,7 +20,7 @@ class Condensr
|
|
20
20
|
# },
|
21
21
|
# gcloud: {
|
22
22
|
# project_id:project_Id,
|
23
|
-
# key_file: path to key.json
|
23
|
+
# key_file: path to key.json relative from the present working dir,
|
24
24
|
# bucket: bucket_name
|
25
25
|
# }
|
26
26
|
# })
|
@@ -35,8 +35,8 @@ class Condensr
|
|
35
35
|
end
|
36
36
|
|
37
37
|
if (@client_options[:gcloud])
|
38
|
-
key_file =
|
39
|
-
@gcloud = Gcloud.new(@client_options[:gcloud][:project_id], key_file)
|
38
|
+
key_file = Pathname.pwd + @client_options[:gcloud][:key_file] if @client_options[:gcloud][:key_file]
|
39
|
+
@gcloud = Gcloud.new(@client_options[:gcloud][:project_id], @client_options[:gcloud][:key] || key_file)
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
data/lib/condensr/version.rb
CHANGED