effuse 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/ChangeLog.md +15 -0
  2. data/README.md +3 -1
  3. data/bin/effuse +9 -3
  4. data/effuse.gemspec +1 -1
  5. metadata +2 -1
data/ChangeLog.md ADDED
@@ -0,0 +1,15 @@
1
+ # Change Log
2
+
3
+ ## 0.2.0 (22 January 2012)
4
+
5
+ * Added `--include` option
6
+
7
+ * Fix: Ignore `.git`, `.gitignore`, `.gitmodules` instead of `.git*`
8
+
9
+ ## 0.1.2 (21 January 2012)
10
+
11
+ * Fix: Ruby 1.8 compatibility
12
+
13
+ ## 0.1.1 (21 January 2012)
14
+
15
+ * Fix: Ruby 1.8 compatibility
data/README.md CHANGED
@@ -36,9 +36,11 @@ opinion on the matter using `effuse -e file`?
36
36
  ```
37
37
  Usage: effuse [OPTION...] [DEST]
38
38
  -c, --clean Remove symlinks
39
+
39
40
  -e, --exclude GLOB Exclude GLOB from symlinking
40
- -v, --verbose Show verbose output
41
+ -i, --include GLOB Include GLOB in symlinking
41
42
 
43
+ -v, --verbose Show verbose output
42
44
  -h, --help Show this message
43
45
  ```
44
46
 
data/bin/effuse CHANGED
@@ -4,7 +4,7 @@ require 'optparse'
4
4
  require 'ostruct'
5
5
  require 'fileutils'
6
6
 
7
- options = OpenStruct.new(:verbose => false, :exclude => ['.git*', '*~', '.*.swp'], :clean => false)
7
+ options = OpenStruct.new(:verbose => false, :exclude => ['.git', '.gitignore', '.gitmodules', '*~', '.*.swp'], :clean => false)
8
8
 
9
9
  OptionParser.new do |o|
10
10
  o.banner = 'Usage: effuse [OPTION...] [DEST]'
@@ -13,16 +13,22 @@ OptionParser.new do |o|
13
13
  options.clean = true
14
14
  end
15
15
 
16
+ o.separator ''
17
+
16
18
  o.on('-e', '--exclude GLOB', 'Exclude GLOB from symlinking') do |glob|
17
19
  options.exclude << glob
18
20
  end
19
21
 
20
- o.on('-v', '--verbose', 'Show verbose output') do
21
- options.verbose = true
22
+ o.on('-i', '--include GLOB', 'Include GLOB in symlinking') do |glob|
23
+ options.exclude.delete(glob)
22
24
  end
23
25
 
24
26
  o.separator ''
25
27
 
28
+ o.on('-v', '--verbose', 'Show verbose output') do
29
+ options.verbose = true
30
+ end
31
+
26
32
  o.on_tail("-h", "--help", "Show this message") do
27
33
  puts o
28
34
  exit
data/effuse.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'effuse'
3
- s.version = '0.1.2'
3
+ s.version = '0.2.0'
4
4
  s.authors = ['Curtis McEnroe']
5
5
  s.email = ['programble@gmail.com']
6
6
  s.homepage = 'https://github.com/programble/effuse'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effuse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -20,6 +20,7 @@ extensions: []
20
20
  extra_rdoc_files: []
21
21
  files:
22
22
  - .gitignore
23
+ - ChangeLog.md
23
24
  - README.md
24
25
  - bin/effuse
25
26
  - effuse.gemspec