attic-path 0.0.4 → 0.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.
Files changed (3) hide show
  1. data/README.md +3 -2
  2. data/lib/attic-path/input.rb +19 -1
  3. metadata +6 -6
data/README.md CHANGED
@@ -15,6 +15,7 @@ Notes
15
15
  =====
16
16
 
17
17
  Please note that this gem is still beta version, I am not responsible if something breaks when using this. Use at own risk.
18
+ This gem might not work on Windows.
18
19
 
19
20
  Bugs
20
21
  ====
@@ -60,7 +61,7 @@ Just require the gem and add this to your code to adjust the options.
60
61
 
61
62
  ## AtticPath Options
62
63
  ```ruby
63
- attic_c = AtticPathCommands.new do |c|
64
+ ATTIC_C = AtticPath::Commands.new do |c|
64
65
 
65
66
  c.submit = true # Set to true if user has to use the submit_command before submitting
66
67
 
@@ -108,7 +109,7 @@ end
108
109
  AtticPath Input Functions
109
110
  -------------------------
110
111
 
111
- # attic_path = AtticPathInput.new(attic_c)
112
+ # attic_path = AtticPath::Input.new(ATTIC_C)
112
113
  New input, you don't HAVE to repeat this if your app is straight forward
113
114
 
114
115
  # attic_path.input
@@ -365,7 +365,7 @@ module AtticPath
365
365
  if @grab_array.count != attic_c.grab_count
366
366
  check_file(@grab_file)
367
367
  @grab_array << @grab_file
368
- puts "Adding #{@grab_file} to array"
368
+ puts "Adding #{@grab_file} to array.."
369
369
  if attic_c.grab_count != true
370
370
  @grab_num += 1
371
371
  end
@@ -388,6 +388,24 @@ module AtticPath
388
388
  @grab_file = File.join(@the_dir, @input[1])
389
389
  if @input[1] == "--help"
390
390
  puts "grab help"
391
+ elsif @input[1] == "all"
392
+ if @all_files.count + @grab_num > attic_c.grab_count
393
+ puts attic_c.grab_full
394
+ command()
395
+ else
396
+ zecount = @all_files.count + @grab_num
397
+ puts zecount.to_s
398
+ @all_files.each do |a|
399
+ @grab_array << File.join(@the_dir, a)
400
+ puts "Adding " + File.join(@the_dir, a) + " to array.."
401
+ @grab_num += 1
402
+ end
403
+ if attic_c.grab_exit == true
404
+ flush()
405
+ else
406
+ command()
407
+ end
408
+ end
391
409
  else
392
410
  if attic_c.file_id == true && @input[1][0] == "#"
393
411
  grab_id()
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attic-path
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-01 00:00:00.000000000Z
12
+ date: 2011-12-02 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fileutils
16
- requirement: &70284620000200 !ruby/object:Gem::Requirement
16
+ requirement: &70093481720840 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70284620000200
24
+ version_requirements: *70093481720840
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: terminal-table
27
- requirement: &70284619999320 !ruby/object:Gem::Requirement
27
+ requirement: &70093481720060 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70284619999320
35
+ version_requirements: *70093481720060
36
36
  description:
37
37
  email: attichacker@gmail.com
38
38
  executables: []