jgrouper 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ebdf58326f3d4603a2fa1a5c5c4c3d4fd8465d08
4
- data.tar.gz: 8cc466039a9c092e38e258eece5d55ce79afc05f
3
+ metadata.gz: 0bc143410b56c2bf8941c1304cbd80299b97dec6
4
+ data.tar.gz: 0edd86910443f5ab7fa85af5b5fb6759b0cc72a3
5
5
  SHA512:
6
- metadata.gz: 7063017395e37a2e1a3dd53792568236c27d8275ca7f8d13401879fe90cec873d63c8a539cfe196dcac52c4a5bdc912699a768e582ea7cca8383540a0749e1bd
7
- data.tar.gz: 6f115a9aa0673619b5deab7ad9d367eeca6746d8840498b5bff26659380e2d0693453f825dd376ac117f8840747e8a854218e726f1dc8de53f4948c59cd32e71
6
+ metadata.gz: adb1d29896b87a270060d69ca9b504928444d63fd0cb630951a9b37dcf30220b1c430ca492fd82346d5fd6a285a9fcebf8ca56768b00018f690031f53d557abb
7
+ data.tar.gz: 661aedc9bc6ed135bbb95d95130b5f5c5290472b0cbabaeb366a34af41006995254ca8b27f427e2c2560b48139c34668e8ba94c50a9f2c8cdfe8ab4f74fab975
data/HISTORY.md CHANGED
@@ -1,6 +1,11 @@
1
1
  JGrouper History
2
2
  ================
3
3
 
4
+ 2013-05-15 JGrouper v0.1.1
5
+ --------------------------
6
+ * Fix executables to make runnable
7
+
8
+
4
9
  2013-05-15 JGrouper v0.1.0
5
10
  --------------------------
6
11
  Starting over with a more clear design in mind.
@@ -5,34 +5,32 @@ require 'jgrouper/audit_archiver'
5
5
  require 'optparse'
6
6
 
7
7
 
8
- if __FILE__ == $0
9
- JGrouper::AuditArchiver.new do |archiver|
10
-
11
- opts = OptionParser.new do |opts|
12
- opts.banner = "USAGE: #{ File.basename(__FILE__) } [-h] [-s col1,colN] [-v]"
13
-
14
- opts.on( '-s', '--skip COLUMNS', Array, 'Exclude these GROUPER_AUDIT_ENTRY comma-separated column names from archive [DEFAULT: none]' ) do |columns|
15
- archiver.skip_columns = columns.collect { |c| c.downcase.to_sym }
16
- end
17
- opts.on( '-v', '--[no-]verbose', 'Enable verbose mode [DEFAULT: no]' ) do |verbose|
18
- archiver.verbose = verbose
19
- end
20
- opts.on_tail('-h', '--help', "Show this message") do
21
- puts opts
22
- exit
23
- end
24
- end.parse!
25
-
26
- # TODO DRY
27
- if ENV['GROUPER_HOME']
28
- JGrouper.home! ENV['GROUPER_HOME']
29
- else
30
- warn "ERROR: GROUPER_HOME not set"
31
- exit 1
32
- end
8
+ JGrouper::AuditArchiver.new do |archiver|
9
+
10
+ opts = OptionParser.new do |opts|
11
+ opts.banner = "USAGE: #{ File.basename(__FILE__) } [-h] [-s col1,colN] [-v]"
33
12
 
34
- archiver.archive
13
+ opts.on( '-s', '--skip COLUMNS', Array, 'Exclude these GROUPER_AUDIT_ENTRY comma-separated column names from archive [DEFAULT: none]' ) do |columns|
14
+ archiver.skip_columns = columns.collect { |c| c.downcase.to_sym }
15
+ end
16
+ opts.on( '-v', '--[no-]verbose', 'Enable verbose mode [DEFAULT: no]' ) do |verbose|
17
+ archiver.verbose = verbose
18
+ end
19
+ opts.on_tail('-h', '--help', "Show this message") do
20
+ puts opts
21
+ exit
22
+ end
23
+ end.parse!
24
+
25
+ # TODO DRY
26
+ if ENV['GROUPER_HOME']
27
+ JGrouper.home! ENV['GROUPER_HOME']
28
+ else
29
+ warn "ERROR: GROUPER_HOME not set"
30
+ exit 1
35
31
  end
32
+
33
+ archiver.archive
36
34
  end
37
35
 
38
36
  # vim: syntax=ruby
data/bin/jgrouper-export CHANGED
@@ -5,34 +5,29 @@ require 'jgrouper/exporter'
5
5
  require 'optparse'
6
6
 
7
7
 
8
- if __FILE__ == $0
9
- JGrouper::Exporter.new do |exporter|
10
-
11
- opts = OptionParser.new do |opts|
12
- opts.banner = "USAGE: #{ File.basename(__FILE__) } [-h]"
13
-
14
- # opts.on( '-s', '--skip COLUMNS', Array, 'Exclude these GROUPER_AUDIT_ENTRY comma-separated column names from archive [DEFAULT: none]' ) do |columns|
15
- # archiver.skip_columns = columns.collect { |c| c.downcase.to_sym }
16
- # end
17
- opts.on_tail('-h', '--help', "Show this message") do
18
- puts opts
19
- exit
20
- end
21
- opts.on_tail( '-v', '--[no-]verbose', 'Enable verbose mode [DEFAULT: no]' ) do |verbose|
22
- exporter.verbose = verbose
23
- end
24
- end.parse!
25
-
26
- # TODO DRY
27
- if ENV['GROUPER_HOME']
28
- JGrouper.home! ENV['GROUPER_HOME']
29
- else
30
- warn "ERROR: GROUPER_HOME not set"
31
- exit 1
32
- end
8
+ JGrouper::Exporter.new do |exporter|
9
+
10
+ opts = OptionParser.new do |opts|
11
+ opts.banner = "USAGE: #{ File.basename(__FILE__) } [-h]"
33
12
 
34
- exporter.export ARGV.shift
13
+ opts.on_tail('-h', '--help', "Show this message") do
14
+ puts opts
15
+ exit
16
+ end
17
+ opts.on_tail( '-v', '--[no-]verbose', 'Enable verbose mode [DEFAULT: no]' ) do |verbose|
18
+ exporter.verbose = verbose
19
+ end
20
+ end.parse!
21
+
22
+ # TODO DRY
23
+ if ENV['GROUPER_HOME']
24
+ JGrouper.home! ENV['GROUPER_HOME']
25
+ else
26
+ warn "ERROR: GROUPER_HOME not set"
27
+ exit 1
35
28
  end
29
+
30
+ exporter.export ARGV.shift
36
31
  end
37
32
 
38
33
  # vim: syntax=ruby
@@ -1,4 +1,4 @@
1
1
  module JGrouper
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jgrouper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - blair christensen