gemCNS 0.1.0 → 0.1.2
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/README.md +10 -2
- data/gemCNS.gemspec +3 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a90b9895fda138a2c8fea5ad4e8af6841b5c1eda
|
4
|
+
data.tar.gz: 499d10baf02ecdac99c872685e904f34c5c34609
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a158299803c96aa4f21177b45d3fee25e7d19b905dd5de1054ed86a84d95b84f6ce466d116b101ab7ff91b1b6ae4e2db6a803251598ab152972db4e7079f6507
|
7
|
+
data.tar.gz: 548f9221d187e5e1c2717970fbcea1ec9d67f0aed644ca29a8e91cfa67914288a8523d29fb1cc1f880806cd65035ee06bd96960de4862475732f422dcc072783
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/gemCNS`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
4
|
|
5
|
-
|
5
|
+
A simple way to generate and validate CNS numbers
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
@@ -22,7 +22,15 @@ Or install it yourself as:
|
|
22
22
|
|
23
23
|
## Usage
|
24
24
|
|
25
|
-
|
25
|
+
```ruby
|
26
|
+
require "gemCNS"
|
27
|
+
|
28
|
+
GemCNS.generate # Generate a random CNS number
|
29
|
+
Result => "225011671660003"
|
30
|
+
|
31
|
+
GemCNS.isValid('225011671660003') # Check if a CNS number is valid
|
32
|
+
Result => true
|
33
|
+
```
|
26
34
|
|
27
35
|
## Development
|
28
36
|
|
data/gemCNS.gemspec
CHANGED
@@ -5,13 +5,13 @@ require 'gemCNS/version'
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "gemCNS"
|
8
|
-
spec.version =
|
9
|
-
spec.authors = ["Edson"]
|
8
|
+
spec.version = "0.1.2"
|
9
|
+
spec.authors = ["Edson S Santos"]
|
10
10
|
spec.email = ["edsonssantos@gmail.com"]
|
11
11
|
|
12
12
|
spec.summary = %q{Generate CNS number.}
|
13
13
|
spec.description = %q{A simple way to generate and validate CNS numbers}
|
14
|
-
spec.homepage = "http://edsonssantos.blogspot.com"
|
14
|
+
spec.homepage = "http://edsonssantos.blogspot.com.br/2014/07/gerador-de-cnscartao-nacional-de-saude.html"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
17
|
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gemCNS
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Edson
|
7
|
+
- Edson S Santos
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -56,7 +56,7 @@ files:
|
|
56
56
|
- gemCNS.gemspec
|
57
57
|
- lib/gemCNS.rb
|
58
58
|
- lib/gemCNS/version.rb
|
59
|
-
homepage: http://edsonssantos.blogspot.com
|
59
|
+
homepage: http://edsonssantos.blogspot.com.br/2014/07/gerador-de-cnscartao-nacional-de-saude.html
|
60
60
|
licenses:
|
61
61
|
- MIT
|
62
62
|
metadata: {}
|