atk_toolbox 0.0.74 → 0.0.77

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: 7403dd233701d10fefcee9fa72ae46ec1ead1764e8a814e374ab34f048eba329
4
- data.tar.gz: 5f7ca2acfe876cc3c429bb4fc84750f38e145fb98e1350741d5933e5f1318ba6
3
+ metadata.gz: 29735664d5cc0f00e2cf8c1ff98bf127e87b5c5c2828e7bd0d792ee1e91e46c8
4
+ data.tar.gz: 6b44a438173c7bdcae246965ca79d66e589792e8ce4decd77d28f1c311c85be2
5
5
  SHA512:
6
- metadata.gz: b76f19d5370a792110b770ada87d6bbca04bc74e7977658149810c0e9557a8f65d4f6e05f84fa8b243a7d4e4b9c8ab016c4172da49f19438088c03617a9d3faa
7
- data.tar.gz: 9a1fe9abd1643634c2d2371b389d49f55c7964310ee37a52724ed1f66d7904d1cc3003a046e2e658832ce3f674a6a29851e3414182e4e57bcbc9828f2172832b
6
+ metadata.gz: 17cc61f128ff06e10f51cfbb35a032afc992ef9dd02301c5a111da3778c66e3fb85bae21b46d5802a060e0f20cbab2ba8e1c0981286b508cd9880da74f8365c9
7
+ data.tar.gz: 823fbe66a961d9869e5714728399f4267c2f5afa51cf9ca745099cb3f859d076aa64f6d17b5cd6622b1e7f83988a19a0bd7d20f6d62333811a7f09fa4b5c6054
data/lib/atk/file_sys.rb CHANGED
@@ -199,10 +199,10 @@ class FileSys
199
199
  Dir.glob(path, File::FNM_DOTMATCH) - %w[. ..]
200
200
  end
201
201
  def self.list_files(path=".")
202
- Dir.children(path).map{|each| FS.dirname(path)/each }.select {|each| FileSys.file?(each)}
202
+ Dir.children(path).map{|each| path/each }.select {|each| FileSys.file?(each)}
203
203
  end
204
204
  def self.list_folders(path=".")
205
- Dir.children(path).map{|each| FS.dirname(path)/each }.select {|each| FileSys.directory?(each)}
205
+ Dir.children(path).map{|each| path/each }.select {|each| FileSys.directory?(each)}
206
206
  end
207
207
  def self.ls(path=".")
208
208
  Dir.children(path)
data/lib/atk/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # create a variable for the current ruby version
2
2
 
3
3
  class Version
4
- attr_accessor :major, :minor, :patch, :levels
4
+ attr_accessor :levels
5
5
 
6
6
  def initialize(version_as_string)
7
7
  @levels = version_as_string.split('.')
@@ -17,6 +17,19 @@ class Version
17
17
  @major, @minor, @patch, *_ = @levels
18
18
  end
19
19
 
20
+ def patch() @patch end
21
+ def patch=(new_value)
22
+ @levels[2] = new_value
23
+ end
24
+ def minor() @minor end
25
+ def minor=(new_value)
26
+ @levels[1] = new_value
27
+ end
28
+ def major() @major end
29
+ def major=(new_value)
30
+ @levels[0] = new_value
31
+ end
32
+
20
33
  def comparable?
21
34
  return @comparable
22
35
  end
@@ -226,12 +226,11 @@ class Info
226
226
  begin
227
227
  @@data = YAML.load_file(Info.source_path)
228
228
  rescue => exception
229
- puts "\n\nI'm having trouble loading the info.yaml file. Here's the error: #{exception}"
230
- exit
229
+ puts "\n\nI'm having trouble loading the info.yaml file. Here's the error:\n"
230
+ raise exception
231
231
  end
232
232
  else
233
- puts "Couldn't find an info.yaml file in #{Dir.pwd}"
234
- exit
233
+ raise "Couldn't find an info.yaml file in #{Dir.pwd}"
235
234
  end
236
235
  @@project = @@data['(project)']
237
236
  if @@project == nil
@@ -1,3 +1,3 @@
1
1
  module AtkToolbox
2
- VERSION = '0.0.74'
2
+ VERSION = '0.0.77'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atk_toolbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.74
4
+ version: 0.0.77
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Hykin