keycounter 0.1.0 → 0.1.4

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/lib/keycounter.rb +1 -6
  3. data/lib/version.rb +6 -4
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 04aaf90f4b78eb9b9e2f79b239c7f43250cae5a1
4
- data.tar.gz: f8fbcd67963caed8bf2491864de263d9b3a9d2d7
3
+ metadata.gz: 946e0a063f9ac8be24217da0bf391af0a297142a
4
+ data.tar.gz: be8650c906d4dc0085dd22d25aab6dee67a257c0
5
5
  SHA512:
6
- metadata.gz: fbd5e67153569a402ab29956b88e0d31e090258d7fedd1d8edc895e5720b4052c6e774c2e22cccb805bf6142cd78f80f77fff66c14aa76707107961b79da2da3
7
- data.tar.gz: 3b14e20e839e3e6982e82bb19f29e5431017228d08ca142f9915f460fde80937e9e78d8765e7b3a0f0a849edbe6cad753a854b158b70bcdefa66023906c1d93b
6
+ metadata.gz: f0dbb1dca9301a8c7c8844d8474a2847549c5922860fade10b9635d687b2ee9bb39dd4e4e5984a7efe3a757d1cf26a7bb456432df26e23145824b0177b806376
7
+ data.tar.gz: d322bc09d0b667564e14916313fecdb7f83b0572bfc82be0f4e22aa3f81ce5b15de44a35ae7755ef7ac2cae00c78542683586bfe7530530135f61a35c27e0f29
@@ -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 keycount_remove(key)
68
+ def keycounter_remove(key)
74
69
  remove_instance_variable("@#{key}")
75
70
  end
76
71
 
@@ -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 = 0
8
- CODENAME = "Onion rings!"
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.0
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: 2016-01-29 00:00:00.000000000 Z
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
- - BSD
24
+ - MIT
25
25
  metadata: {}
26
26
  post_install_message:
27
27
  rdoc_options: []