natural_number_string 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/changelog.md +12 -0
- data/lib/natural_number_string.rb +0 -4
- data/lib/natural_number_string/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42b9e07bfda6ebb1b1c3c5f5cacef8d6c761ff7b
|
4
|
+
data.tar.gz: 4e0b64598fd8900dfbce7121feb39853e3358138
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 783e0ec4ba9ed7a14050e154cdac6ea8c6fe1ec6f36349c455321cb8d993b0136b1334d561c7b5e913c4df784590bedb06213172719c95709d735ef0573235ea
|
7
|
+
data.tar.gz: 6d415ae4035cd192cf09dfc609e806e82713b4e1d829b849300778e1b843527e132db2fc52a545263115f1ba1aa8d36c5adbdfd1d44d08bf35116fc8c94d1777
|
data/changelog.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
<a name="0.3.0"></a>
|
2
|
+
# [0.3.0](https://github.com/packsaddle/ruby-natural_number_string/compare/v0.2.1...v0.3.0) (2015-09-26)
|
3
|
+
|
4
|
+
Drop `#natural_number_string?`.
|
5
|
+
Use `#positive_integer_string?` or `zero_or_positive_integer_string?`.
|
6
|
+
|
7
|
+
### Features
|
8
|
+
|
9
|
+
* **natural_number:** natural_number_string? is not clear ([bdd8a4c](https://github.com/packsaddle/ruby-natural_number_string/commit/bdd8a4c))
|
10
|
+
|
11
|
+
|
12
|
+
|
1
13
|
<a name="0.2.1"></a>
|
2
14
|
## [0.2.1](https://github.com/packsaddle/ruby-natural_number_string/compare/v0.2.0...v0.2.1) (2015-09-26)
|
3
15
|
|
@@ -3,10 +3,6 @@ require 'natural_number_string/version'
|
|
3
3
|
module NaturalNumberString
|
4
4
|
module_function
|
5
5
|
|
6
|
-
def natural_number_string?(value)
|
7
|
-
value.is_a?(String) && /^\d+$/ =~ value ? true : false
|
8
|
-
end
|
9
|
-
|
10
6
|
def zero_or_positive_integer_string?(value)
|
11
7
|
value.is_a?(String) && /^\d+$/ =~ value ? true : false
|
12
8
|
end
|