linecook-gem 0.1.4 → 0.1.5

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
  SHA1:
3
- metadata.gz: b8a07f258d0c00c7c8741e7879072ca58d094379
4
- data.tar.gz: 114f88677ce7f42036ffd353f176246757321325
3
+ metadata.gz: 3890b7bac9016028f98b6967d21b9f60518ac84f
4
+ data.tar.gz: c3e4bfe870cf93ea51aa28cfb44f0a12ed330c26
5
5
  SHA512:
6
- metadata.gz: 0b47c80754f7af6d185718ab3512338322b4538a02f0521e74b119e1b2c76ca0e949b3c34f9cdae53a0405cba85b2fe1fc9f19f2de59407964849d354118eb13
7
- data.tar.gz: 0902ad2198a2d04188a874170a3e8cb7d1d9f205db3c3c997f7595124f1ec47a1b875f100153df7dc661bfb805c847436dbb52a6928c5fe48aea63013cb84810
6
+ metadata.gz: f18cdad769a08a53c6ce845da61cecdab88f57d75ba762175327809a17bf57905bf7f7bb854a448e7d04d839726e005aba5f5a2d05a8a941e56875cea2262878
7
+ data.tar.gz: 59bf75141b3503ee285ad9cde5532f74cdc2a2b697f49cde355325f87abce4bec39890cbb465a978ddb0307a84db6f7f521d05b76e9661b2950157f189e1cac5
@@ -65,11 +65,9 @@ module Linecook
65
65
  def secrets
66
66
  @secrets ||= begin
67
67
  if File.exists?(SECRETS_PATH)
68
- ejson_path = `which ejson`.strip
68
+ ejson_path = File.join(Gem::Specification.find_by_name('ejson').gem_dir, 'build', "#{Linecook::Config.platform}-amd64", 'ejson' )
69
69
  command = "#{ejson_path} decrypt #{SECRETS_PATH}"
70
- secrets = JSON.load(`#{command}`)
71
- # if we can't read the ejson key, try again with sudo
72
- secrets = JSON.load(`sudo #{command}`) if secrets.empty?
70
+ secrets = JSON.load(`sudo #{command}`)
73
71
  secrets.deep_symbolize_keys
74
72
  else
75
73
  {}
@@ -1,3 +1,3 @@
1
1
  module Linecook
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linecook-gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dale Hamel