keycounter 0.1.0 → 0.1.4
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 +4 -4
- data/lib/keycounter.rb +1 -6
- data/lib/version.rb +6 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 946e0a063f9ac8be24217da0bf391af0a297142a
|
4
|
+
data.tar.gz: be8650c906d4dc0085dd22d25aab6dee67a257c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0dbb1dca9301a8c7c8844d8474a2847549c5922860fade10b9635d687b2ee9bb39dd4e4e5984a7efe3a757d1cf26a7bb456432df26e23145824b0177b806376
|
7
|
+
data.tar.gz: d322bc09d0b667564e14916313fecdb7f83b0572bfc82be0f4e22aa3f81ce5b15de44a35ae7755ef7ac2cae00c78542683586bfe7530530135f61a35c27e0f29
|
data/lib/keycounter.rb
CHANGED
@@ -43,11 +43,6 @@ class Keycounter
|
|
43
43
|
return valnum
|
44
44
|
end
|
45
45
|
|
46
|
-
# Reset a key to zero
|
47
|
-
def keycount_reset(key)
|
48
|
-
instance_variable_set("@#{key}", 0)
|
49
|
-
end
|
50
|
-
|
51
46
|
# Compile in array with the totals of all instance variables
|
52
47
|
def keycount_compile
|
53
48
|
keycounts = Array.new
|
@@ -70,7 +65,7 @@ class Keycounter
|
|
70
65
|
instance_variable_set("@#{key}", 0)
|
71
66
|
end
|
72
67
|
|
73
|
-
def
|
68
|
+
def keycounter_remove(key)
|
74
69
|
remove_instance_variable("@#{key}")
|
75
70
|
end
|
76
71
|
|
data/lib/version.rb
CHANGED
@@ -1,12 +1,14 @@
|
|
1
|
-
|
2
|
-
module Keycounter
|
1
|
+
module Keycounter #:nodoc:
|
3
2
|
|
4
3
|
module VERSION #:nodoc:
|
4
|
+
|
5
5
|
MAJOR = 0
|
6
6
|
MINOR = 1
|
7
|
-
TINY =
|
8
|
-
CODENAME = "
|
7
|
+
TINY = 4
|
8
|
+
CODENAME = "Its all Giraffes my son!"
|
9
|
+
|
9
10
|
STRING = [MAJOR, MINOR, TINY].join('.')
|
11
|
+
|
10
12
|
end
|
11
13
|
|
12
14
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: keycounter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Hood
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Counter for reoccuring data using instance variables
|
14
14
|
email: brianh6854@googlemail.com
|
@@ -21,7 +21,7 @@ files:
|
|
21
21
|
- lib/version.rb
|
22
22
|
homepage: http://rubygems.org/gems/keycounter
|
23
23
|
licenses:
|
24
|
-
-
|
24
|
+
- MIT
|
25
25
|
metadata: {}
|
26
26
|
post_install_message:
|
27
27
|
rdoc_options: []
|