gemCNS 0.1.0 → 0.1.2

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/README.md +10 -2
  3. data/gemCNS.gemspec +3 -3
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f3b12b5e534c7bed2563c0abf2e4ff8120d47ff9
4
- data.tar.gz: 953fbe412d315ed3bbabc44243769436cd2c70ee
3
+ metadata.gz: a90b9895fda138a2c8fea5ad4e8af6841b5c1eda
4
+ data.tar.gz: 499d10baf02ecdac99c872685e904f34c5c34609
5
5
  SHA512:
6
- metadata.gz: 43d36bb1ba97c4ae411071f383856eaec6c9b4190c614fea93ef5a2d242355b150bb241b2a82bb5133e202cb5bc5bfed43a0885c9009cfe32332a04db36b25b8
7
- data.tar.gz: 455b19e9eb917faa0aefa3ef4ee801fd92724de0e2d13a26bbd5f32f3c58f0e88c551cd3e0979907af963cb74b598b75c1e313c3122c1b7aabdc33c480e5a999
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
- TODO: Delete this and the text above, and describe your gem
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
- TODO: Write usage instructions here
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
 
@@ -5,13 +5,13 @@ require 'gemCNS/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "gemCNS"
8
- spec.version = GemCNS::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.0
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-10-30 00:00:00.000000000 Z
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: {}