eco-helpers 1.0.4 → 1.0.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 +4 -4
- data/lib/eco/api/session/config.rb +9 -1
- data/lib/eco/api/session/config/apis.rb +1 -1
- data/lib/eco/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: db7768619b97c307a3bed9edede57a9cc0fc32defce50ddbe43972544cc5b915
|
|
4
|
+
data.tar.gz: f4c69c66654881629ce0d070f1b912982d73df87d3b608e428cd12182c5f3729
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e2d69f4364ad41db88ceb7d7876251d0fc560dbd027cc79e5e6f7640c7f830a3680722c482eaed2c8647938bb7e6d8961b336c195ec0d53192ec856ec332440e
|
|
7
|
+
data.tar.gz: de56af0c58ef50d7caadc1162cf30a04137c8fd35af6453c0a970473be9e9c98ff3192c29460fbc2085805d4a914706dfe0e34c37f9b2defe790765a11188690
|
|
@@ -117,9 +117,17 @@ module Eco
|
|
|
117
117
|
files.working_directory = path
|
|
118
118
|
end
|
|
119
119
|
|
|
120
|
-
def working_directory(mode:
|
|
120
|
+
def working_directory(mode: nil)
|
|
121
|
+
unless mode
|
|
122
|
+
wd = files.working_directory
|
|
123
|
+
return wd unless wd.to_s.strip.empty?
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
mode ||= :active_api
|
|
121
127
|
if mode == :active_api
|
|
122
128
|
apis.active_root_name
|
|
129
|
+
elsif mode == :raw_api_name
|
|
130
|
+
apis.active_name
|
|
123
131
|
else
|
|
124
132
|
files.working_directory
|
|
125
133
|
end
|
data/lib/eco/version.rb
CHANGED