rcpm 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/rcpm +12 -6
  3. data/lib/rcpm/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd5413cd9336419c4dab6c06745ddff8e68514a2
4
- data.tar.gz: bd5d61ce561202853985683326925e1c0d510b50
3
+ metadata.gz: 4da120accd370ff8ed280276987933da5d7b094e
4
+ data.tar.gz: ae6ca222401bcf3bd0945a18c815038a025a7d13
5
5
  SHA512:
6
- metadata.gz: ea2cf5ed3d58bb8451ec79fd0797d1f32063b8c9426d703484cd432e6845621f5e8002e30d7feef3be0e25f45571edfe039db9a3b944317e87e7a1e65f21b97c
7
- data.tar.gz: f86026e849499f54354a68847c31e1fd9fb19ffbb448d989b4508ba20720c5e0a89b08e748f480e0936c7b1676d7addfffd7188ddd0ce5dbeb17f3e34ea3ed48
6
+ metadata.gz: 89b02e3a7f3665c23e30efbcca7edf8bbd01d8450ab06a3c076e775a815ffcc882aa0e9aa082b0e061d682121d5bf85d5b32b7ec7d8c434521f4e1aa8f07c8fd
7
+ data.tar.gz: 8f6d4d11480ac45a32c8470b681845ea1feacb36563f3d26b9a16f3c7c419fb128edd1a70c6b73e7bff1dcba42a5edd58339e6fd2df89281bd1214b341a76633
data/bin/rcpm CHANGED
@@ -6,12 +6,12 @@ require 'csv'
6
6
  require 'set'
7
7
  require 'optparse'
8
8
 
9
- options = { k: 0, file: "", dump: false }
9
+ options = { k: 0, file: "", dump: false, quiet: false }
10
10
 
11
11
  optparse = OptionParser.new do |opts|
12
12
  opts.banner = "Usage: rcpm -k K -f file1"
13
13
 
14
- opts.on("-k K", Integer, "K value" ) do |k|
14
+ opts.on( "-k K", Integer, "K value" ) do |k|
15
15
  options[:k] = k
16
16
  end
17
17
 
@@ -23,6 +23,10 @@ optparse = OptionParser.new do |opts|
23
23
  options[:dump] = dump
24
24
  end
25
25
 
26
+ opts.on( "-q", "--quiet", "Hide output" ) do |quiet|
27
+ options[:quiet] = quiet
28
+ end
29
+
26
30
  end
27
31
 
28
32
  begin
@@ -64,9 +68,11 @@ if options[:dump]
64
68
  end
65
69
  end
66
70
 
67
- cpms.each_pair do |year, cliques|
68
- puts "Period: #{year}---------------"
69
- cliques.each do |clique|
70
- puts clique.to_a.join(",")
71
+ unless options[:quiet]
72
+ cpms.each_pair do |year, cliques|
73
+ puts "Period: #{year}---------------"
74
+ cliques.each do |clique|
75
+ puts clique.to_a.join(",")
76
+ end
71
77
  end
72
78
  end
@@ -1,3 +1,3 @@
1
1
  module RCPM
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rcpm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michel Boaventura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-11 00:00:00.000000000 Z
11
+ date: 2015-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler