contador 1.0.0 → 1.0.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.
- data/README.md +24 -5
- data/VERSION +1 -1
- data/contador.gemspec +2 -2
- metadata +4 -4
data/README.md
CHANGED
@@ -3,25 +3,44 @@ TALLY
|
|
3
3
|
|
4
4
|
It a way to count the amount of times each word appears on a string.
|
5
5
|
|
6
|
+
|
7
|
+
INSTALL
|
8
|
+
-------
|
9
|
+
|
10
|
+
`gem install contador`
|
11
|
+
|
6
12
|
USAGE
|
7
13
|
-----
|
8
14
|
|
9
|
-
|
15
|
+
`require contador`
|
16
|
+
|
17
|
+
`@sentence = Contador.new("Esto sale todo")`
|
10
18
|
|
11
|
-
`=> #<Contador:
|
19
|
+
`=> #<Contador:0x10212a860 @final={:esto=>1, :sale=>1, :todo=>1}, @string="Esto sale todo", @omit=[]>`
|
12
20
|
|
13
21
|
`@sentence.multiplicity`
|
14
22
|
|
15
|
-
`=> {:
|
23
|
+
`=> {:esto=>1, :sale=>1, :todo=>1}`
|
16
24
|
|
17
|
-
OMITING
|
25
|
+
OMITING FREQUENT WORDS
|
18
26
|
----------------------
|
19
27
|
|
20
28
|
We use a global for omiting frequent words. For example:
|
21
29
|
|
22
|
-
`$omit = "yo no"`
|
23
30
|
|
31
|
+
`$omits = "esto no sale"`
|
24
32
|
|
33
|
+
`=> "esto no sale"`
|
34
|
+
|
35
|
+
`@sentence = Contador.new("Esto sale todo")`
|
36
|
+
|
37
|
+
`=> #<Contador:0x102110b68 @final={:todo=>1}, @string="Esto sale todo", @omit=[]>`
|
38
|
+
|
39
|
+
`@sentence.multiplicity`
|
25
40
|
|
41
|
+
`=> {:todo=>1}`
|
26
42
|
|
43
|
+
THANKS TO
|
44
|
+
---------
|
27
45
|
|
46
|
+
Bakedweb.net to allow me to write ruby during work. Esturisti.co for needing the reports that allowed me to extract the functionality on this gem.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
data/contador.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{contador}
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ivan Acosta-Rubio"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-04-01}
|
13
13
|
s.description = %q{This gem counts the numbers of words in a string. It returns each word and the multiplicity}
|
14
14
|
s.email = %q{ivan@bakedweb.net}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contador
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ivan Acosta-Rubio
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-04-01 00:00:00 -06:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|