atk_toolbox 0.0.141 → 0.0.142

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: a67b7004ab8a7b4b35cc19e901de6014abcc77040a9b036bdcb36e66d854f884
4
- data.tar.gz: f8e3c8095334ae41cc453faa8b1f22e173231f97bdf90b7149d90ff2cc866769
3
+ metadata.gz: 510dd1c33a5de04b325b524b67a8e31a2c861b483e110c490d7d333ae33fae80
4
+ data.tar.gz: b70cc2d3ec2c8b8701b20d02eeacc288da020346957afcf6b35c33bdc493a41e
5
5
  SHA512:
6
- metadata.gz: 8fde714bf9e3e16796fb58d549df564db9aae5df9c1f8d2f12f9cbc22120fb5914abef98ce67fff31ed23304f9c38455f2e4eb49449e41d62c539ca6cf52d05d
7
- data.tar.gz: ea85b214c7d6f75f8c4b6147d32a0c25738a0f8c67387eb7880f0e35628f65e3cb6138d8a6f73ac4f7bb7ef80fe205e8928c923f40a35ce39126f168482146fd
6
+ metadata.gz: 74fe699a9a666b48466a5d48d0694165b89f4e77871fc4d2cd1723da7e7ac6891e4434527fb397d83118eb93aabc862839a0461d3143d62c5806f27cd94f2ad8
7
+ data.tar.gz: 014552d0967d99593f060f6b2fb4152dd2ab9295670df75e920f5e566749d08719c9ff3d21083cae31604c7b0c69d5ee2531f1ae38a9110db80f6e6e33a384de
@@ -1,7 +1,7 @@
1
1
  require 'atk_toolbox'
2
2
 
3
3
  previous_version = Console.args[0]
4
- puts "previous_version is: #{previous_version} "
4
+ # TODO: previous_version is currently always null
5
5
 
6
6
  # helper function
7
7
  download_and_install_command = ->(command) do
@@ -1,6 +1,9 @@
1
1
  require_relative '../atk_info'
2
2
 
3
3
  module Atk
4
+ class ExecFailed < Exception
5
+ end
6
+
4
7
  def self.project(args)
5
8
  #
6
9
  # no arguments
@@ -146,7 +149,7 @@ module Atk
146
149
  # if command resulted in error then raise an error
147
150
  if not result
148
151
  colored_command_name = command_name.color_as :key_term
149
- raise <<-HEREDOC.remove_indent
152
+ raise ExecFailed, <<-HEREDOC.remove_indent
150
153
 
151
154
  When running: #{"project execute ".color_as :code}#{colored_command_name}
152
155
  The script for #{colored_command_name} hit an error and had an exit code of: #{$?.exitstatus}
data/lib/atk/info.rb CHANGED
@@ -152,6 +152,7 @@ class Info
152
152
  rescue => exception
153
153
  # if no version, then don't worry about parsing
154
154
  end
155
+
155
156
  if @version.is_a?(Version)
156
157
  begin
157
158
  if @version <= Version.new("1.0.0")
@@ -1,3 +1,3 @@
1
1
  module AtkToolbox
2
- VERSION = '0.0.141'
2
+ VERSION = '0.0.142'
3
3
  end
data/test/info.yaml CHANGED
@@ -1,46 +1,15 @@
1
- (using_atk_version): 1.0
1
+ (using_atk_version): 1.1.0
2
2
  (project):
3
3
  name: A Project
4
4
  description: A new project
5
5
 
6
- paths: &paths
7
- root: ./
8
- testing_folder: &tests ./code/tests
9
- cpp_tests: [ *tests, cpp ]
10
-
11
- commands: &commands # if you dont know what the & means, see https://blog.daemonl.com/2016/02/yaml.html
12
- build_mac: !language/ruby |
13
- require 'atk_toolbox'
14
- file = FS.read('./mac/setup_readable_version.sh')
15
- # remove comments
16
- file.gsub!(/^ *#.+\n/, "")
17
- # make everything a single line
18
- file = file.split("\n").join(";")
19
- # save
20
- FS.write(file, to: './mac/setup.sh')
21
-
22
- dependencies: &dependencies
23
- atk: 0.0.1
24
-
25
- (advanced_setup):
26
- (paths):
27
- <<: *paths
28
- (put_new_dependencies_under): [ '(project)', 'basic_info', 'dependencies' ]
29
- # caveats for a specific OS
30
- when(--os is 'mac'):
31
- (project_commands):
32
- <<: *commands
33
- (dependencies):
34
- <<: *dependencies
35
-
36
- when(--os is 'windows'):
37
- (project_commands):
38
- <<: *commands
39
- (dependencies):
40
- <<: *dependencies
41
-
42
- when(--os is 'linux'):
43
- (project_commands):
44
- <<: *commands
45
- (dependencies):
46
- <<: *dependencies
6
+ (commands): &commands # if you dont know what the & means, see https://blog.daemonl.com/2016/02/yaml.html
7
+ test_commands:
8
+ ruby test/main.rb
9
+ (setup):
10
+ # a library that helps with publishing
11
+ gem install gem-release
12
+ publish:
13
+ ruby scripts/publish.rb
14
+ test_changes:
15
+ ruby scripts/test_changes.rb && ruby ./lib/after_gem_update.rb
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.141
4
+ version: 0.0.142
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Hykin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-03 00:00:00.000000000 Z
11
+ date: 2020-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tty-prompt