atk_toolbox 0.0.70 → 0.0.71
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/atk/default_info.yaml +3 -0
- data/lib/atk/yaml_info_parser.rb +8 -2
- data/lib/atk_toolbox/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e370070e342179170354d0288f86a7c729f1c2760a13fe12b45eef0f117f8a0
|
4
|
+
data.tar.gz: 48a983f4c956106027c2c5e1fd645d506813e4c3835b3952d7dc08746e21369a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef0e5057cedf97751f57c1c44f4d2389310785139b389f1fd711cbab363e1e6d8a9f64eba5cab3fc3f71c0739cf20d52bbd6239410a655fbe0f418e86d57e5cd
|
7
|
+
data.tar.gz: d3800e78d83ac5b6a12e94b84ea62c483e837f1bb72d214ebd62487c8293c39fa3a4eb638c08459db5581ee26665fa98ce34d7f5ca896f34fca7b26f7c300297
|
data/lib/atk/default_info.yaml
CHANGED
@@ -5,6 +5,9 @@
|
|
5
5
|
|
6
6
|
commands: &commands # if you dont know what the & means, see https://blog.daemonl.com/2016/02/yaml.html
|
7
7
|
run: echo 'no run command written yet'
|
8
|
+
run_ruby: !language/ruby |
|
9
|
+
puts 'this is just a default value'
|
10
|
+
puts 'replace this with your own ruby code'
|
8
11
|
dependencies: &dependencies
|
9
12
|
atk: 0.0.1
|
10
13
|
|
data/lib/atk/yaml_info_parser.rb
CHANGED
@@ -98,8 +98,14 @@ class Info
|
|
98
98
|
@@valid_operators = ['is']
|
99
99
|
|
100
100
|
def self.init
|
101
|
-
|
102
|
-
|
101
|
+
current_dir = Dir.pwd/"info.yaml"
|
102
|
+
# if there isn't a info.yaml then create one
|
103
|
+
if not FS.file?(current_dir)
|
104
|
+
# copy the default yaml to the current dir
|
105
|
+
FileUtils.cp(__dir__/"default_info.yaml", current_dir)
|
106
|
+
else
|
107
|
+
puts "There appears to already be an info.yaml file\nThe init method is not yet able to merge the ATK init data with the current data\n(this will be fixed in the future)"
|
108
|
+
end
|
103
109
|
end
|
104
110
|
|
105
111
|
# TODO: write tests for this function
|
data/lib/atk_toolbox/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: atk_toolbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.71
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Hykin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: zip
|
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
115
|
version: '0'
|
116
116
|
requirements: []
|
117
117
|
rubyforge_project:
|
118
|
-
rubygems_version: 2.7.
|
118
|
+
rubygems_version: 2.7.3
|
119
119
|
signing_key:
|
120
120
|
specification_version: 4
|
121
121
|
summary: The Ruby gem for all the standard tools ATK uses internally
|