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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6df355f11420c3c4592a1c983033fb024157e46b326f9dbaac776cb0d96b72c4
4
- data.tar.gz: c2458b4228997b296a3571f322196423311717cd522ae9db9c1765166fcf2a08
3
+ metadata.gz: 1e370070e342179170354d0288f86a7c729f1c2760a13fe12b45eef0f117f8a0
4
+ data.tar.gz: 48a983f4c956106027c2c5e1fd645d506813e4c3835b3952d7dc08746e21369a
5
5
  SHA512:
6
- metadata.gz: 1ab1430d8d3d0a24b3ad03bba211754f49d85912dbecb8c56d886c6b6e5680e26bbe2fffe1a276dd0dae154a96219635853fc98949481d04b5296835d4c49431
7
- data.tar.gz: daffc67abc3780d480889bc34411c9add61071aabfd60ae8e8fe3c3ea21bc8c6eb33563c02e9d98848ed4e9ae4cdb96f62bc1e89f8d6b606c8633fa532fa7a8d
6
+ metadata.gz: ef0e5057cedf97751f57c1c44f4d2389310785139b389f1fd711cbab363e1e6d8a9f64eba5cab3fc3f71c0739cf20d52bbd6239410a655fbe0f418e86d57e5cd
7
+ data.tar.gz: d3800e78d83ac5b6a12e94b84ea62c483e837f1bb72d214ebd62487c8293c39fa3a4eb638c08459db5581ee26665fa98ce34d7f5ca896f34fca7b26f7c300297
@@ -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
 
@@ -98,8 +98,14 @@ class Info
98
98
  @@valid_operators = ['is']
99
99
 
100
100
  def self.init
101
- # copy the default yaml to the current dir
102
- FileUtils.cp(__dir__/"default_info.yaml", Dir.pwd/"info.yaml")
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
@@ -1,3 +1,3 @@
1
1
  module AtkToolbox
2
- VERSION = '0.0.70'
2
+ VERSION = '0.0.71'
3
3
  end
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.70
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-08-29 00:00:00.000000000 Z
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.6.2
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