ci_uy 0.0.5 → 0.0.6
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.
- data/bin/ci_uy +17 -0
- data/lib/ci_uy.rb +0 -1
- metadata +13 -8
- checksums.yaml +0 -7
data/bin/ci_uy
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'ci_uy'
|
4
|
+
|
5
|
+
args = ARGV.dup
|
6
|
+
|
7
|
+
case args[0]
|
8
|
+
when ("validate" || "validate_ci")
|
9
|
+
puts CiUY.validate args[1].dup
|
10
|
+
when ("random" || "get_random_ci")
|
11
|
+
puts CiUY.random
|
12
|
+
when ("validation_digit" || "get_validation_digit")
|
13
|
+
puts CiUY.validation_digit args[1].dup
|
14
|
+
else
|
15
|
+
puts "You're wrong"
|
16
|
+
end
|
17
|
+
CiUY.validate("36089925")
|
data/lib/ci_uy.rb
CHANGED
metadata
CHANGED
@@ -1,44 +1,49 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ci_uy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Fernando Briano
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2014-
|
12
|
+
date: 2014-03-04 00:00:00.000000000 Z
|
12
13
|
dependencies: []
|
13
14
|
description: A gem to validate Uruguayan Identity Documents (Cedula de Identidad Uruguaya)
|
14
15
|
email: fernando@picandocodigo.net
|
15
|
-
executables:
|
16
|
+
executables:
|
17
|
+
- ci_uy
|
16
18
|
extensions: []
|
17
19
|
extra_rdoc_files: []
|
18
20
|
files:
|
19
21
|
- lib/ci_uy.rb
|
22
|
+
- bin/ci_uy
|
20
23
|
homepage: https://github.com/picandocodigo/ci_uy
|
21
24
|
licenses:
|
22
25
|
- GPL-3
|
23
|
-
metadata: {}
|
24
26
|
post_install_message: Thanks for installing CiUY!
|
25
27
|
rdoc_options: []
|
26
28
|
require_paths:
|
27
29
|
- lib
|
28
30
|
required_ruby_version: !ruby/object:Gem::Requirement
|
31
|
+
none: false
|
29
32
|
requirements:
|
30
|
-
- - '>='
|
33
|
+
- - ! '>='
|
31
34
|
- !ruby/object:Gem::Version
|
32
35
|
version: '0'
|
33
36
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
37
|
+
none: false
|
34
38
|
requirements:
|
35
|
-
- - '>='
|
39
|
+
- - ! '>='
|
36
40
|
- !ruby/object:Gem::Version
|
37
41
|
version: '0'
|
38
42
|
requirements: []
|
39
43
|
rubyforge_project:
|
40
|
-
rubygems_version:
|
44
|
+
rubygems_version: 1.8.23
|
41
45
|
signing_key:
|
42
|
-
specification_version:
|
46
|
+
specification_version: 3
|
43
47
|
summary: CiUY Validate Uruguayan cedula numbers
|
44
48
|
test_files: []
|
49
|
+
has_rdoc:
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: c125f60f9714fde73887557d169977417513218b
|
4
|
-
data.tar.gz: 48b8590e3dc320dd1530021f1b4f2bc541cdb87f
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: d04b8575254d9de4b87a621eb7e672ed894f240e5dc3403cabc45fb57231406ca5ed151adb748c2c454a12d3df06be26c2266b889aca238dc56466c60ad56fc0
|
7
|
-
data.tar.gz: 626520056d660ee2afd7742a82f4a54efc5062349dc40685f109584ea4682f93dbbd9afa593b6d85407914779e799cf289964d8a6018e9066e2add9ba79e7aec
|