cloudenv-hq 0.1.3 → 0.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: 61908e7704a50ec6b47dbd0338a6e1543011a5608397b8f249eed13ef7f2f53b
4
- data.tar.gz: 9943a3960721ccf85fc6c26a000e224d82c16069cf099fa04cd9ab91377c4bb8
3
+ metadata.gz: 2b5dd3d415383867dfcd30c58d3e67da659f42ef5f2d5148a4d126b12afb046b
4
+ data.tar.gz: 57507d4f73d276419d3cacc39e9a5541f778a9a938d4a23aeabeb826ea82fb65
5
5
  SHA512:
6
- metadata.gz: c0c26bc92380a56a37af75131c90f52066e270662ea6d32c255d7ebf098e92dff913cd99ce3416ad4f4951352f4eada91f1a5f6d09e87f54a38324b9f9bf2f65
7
- data.tar.gz: 5f52495103a3f2f3dffc2e802ef3b7fee43dd116536c2b64c59cfa2b5d8bfa5353cf488d90cb536eb14d125a571d6ff6c9280ca589ebd0929836cb694633f84d
6
+ metadata.gz: abdd25d1c92d5a6d77f25612b1c9c392fd402c56f11ab67133e8947e6e7decf07714dd2121f3fe79083765b1fe367d00e90ab3b2d0b896f07a1ee632a1301b6d
7
+ data.tar.gz: b055d7ead49fed1fe41d8818351b2d2933c0f3621cd4dc673638a81abe8354ca89520a5abed276eaae3ca855c22300bc610c9168b51c0699e4603758f72f76c5
data/cloudenv-hq.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cloudenv-hq"
3
- s.version = "0.1.3"
3
+ s.version = "0.2.0"
4
4
  s.license = "MIT"
5
5
  s.version = "#{s.version}-alpha-#{ENV['TRAVIS_BUILD_NUMBER']}" if ENV["TRAVIS"]
6
6
  s.date = "2020-10-10"
data/lib/cloudenv-hq.rb CHANGED
@@ -1,9 +1,10 @@
1
1
  require "pathname"
2
2
  require "dotenv"
3
3
  require "tempfile"
4
+ require "yaml"
4
5
 
5
6
  class CloudenvHQ
6
- VERSION = "0.1.3".freeze
7
+ VERSION = "0.2.0".freeze
7
8
 
8
9
  API_HOST = "https://app.cloudenv.com".freeze
9
10
  READ_PATH = "/api/v1/envs".freeze
@@ -19,7 +20,10 @@ class CloudenvHQ
19
20
  end
20
21
 
21
22
  if File.exists?(@secret_key)
22
- @app, @secret_key = IO.read(@secret_key).split
23
+ data = YAML.load(IO.read(@secret_key))
24
+
25
+ @app = data["slug"]
26
+ @secret_key = data["secret-key"]
23
27
 
24
28
  if @environment
25
29
  data = `curl -s -H "Authorization: Bearer #{@bearer}" "https://app.cloudenv.com/api/v1/envs?name=#{@app}&environment=#{@environment}&version=#{VERSION}&lang=ruby" | openssl enc -a -aes-256-cbc -md sha512 -d -pass pass:"#{@secret_key}" 2> /dev/null`
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudenv-hq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lucas Carlson
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2020-10-10 00:00:00.000000000 Z
@@ -84,7 +84,7 @@ homepage: https://github.com/cloudenvhq/cloudenv-ruby
84
84
  licenses:
85
85
  - MIT
86
86
  metadata: {}
87
- post_install_message:
87
+ post_install_message:
88
88
  rdoc_options: []
89
89
  require_paths:
90
90
  - lib
@@ -99,8 +99,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  requirements: []
102
- rubygems_version: 3.2.3
103
- signing_key:
102
+ rubygems_version: 3.0.3
103
+ signing_key:
104
104
  specification_version: 4
105
105
  summary: Keep your ENV vars synced between your team members
106
106
  test_files: []