rcpm 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/rcpm +12 -6
- data/lib/rcpm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4da120accd370ff8ed280276987933da5d7b094e
|
4
|
+
data.tar.gz: ae6ca222401bcf3bd0945a18c815038a025a7d13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
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
|
data/lib/rcpm/version.rb
CHANGED
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.
|
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
|
+
date: 2015-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|