isin_code_generator 0.0.1 → 0.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8cba26a07410c58347bfc09b8574fa871cacea56
4
- data.tar.gz: d0320ad6098b45796ae80e444643b022bc04a90e
3
+ metadata.gz: 3864efadbef6257e90b08dab6f2d71b04eca92c2
4
+ data.tar.gz: 3be75c811d4a4dda058385677e14271db4cf323f
5
5
  SHA512:
6
- metadata.gz: 92e900e4922e783ecd1e31299080d966850b4660b65019a583dc829d5364b7d310c71d2b7b3cf1c84569335a694e08c931fc022e1086b18b783196fc6f275abb
7
- data.tar.gz: e60eceeb72b84f0b4bdf4fb49164ca6a87da6ad357d20c16ec2e037927483615e7a9f229a85def73ded756a310ddf0a18e3392326eaf2de028ab9b46bcf4a2f0
6
+ metadata.gz: c8e6abc8b3cf31f413a12ac11ee06b8eceaaa600248549c11f821ae961d8ed6d84242a0eb4b571359dfd5a5c0596902c7ef4dc711391b9dd9bec14e2b1946db3
7
+ data.tar.gz: 26de0e80c45a225f603849818b662b47365b9375abd2ee312b12877712e3f5a75981bcf1a47c9b621b08047721ad2aac5abc61260bfeb280aefbdc4b9b658207
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2013 Guillaume Hain
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # IsinCodeGenerator
2
2
 
3
- TODO: Write a gem description
3
+ Simple random ISIN Code generator.
4
+
5
+ See http://en.wikipedia.org/wiki/International_Securities_Identification_Number.
4
6
 
5
7
  ## Installation
6
8
 
@@ -18,7 +20,16 @@ Or install it yourself as:
18
20
 
19
21
  ## Usage
20
22
 
21
- TODO: Write usage instructions here
23
+ In an irb session:
24
+
25
+ require 'isin_code_generator'
26
+ IsinCodeGenerator.make("LU")
27
+ #=> LU7994567430
28
+
29
+ Or from the console:
30
+
31
+ $ isin_gen LU
32
+ LU2870209652
22
33
 
23
34
  ## Contributing
24
35
 
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/ruby
2
+ require "isin_code_generator"
3
+
4
+ ARGV.map{|home_country_iso| puts IsinCodeGenerator.make(home_country_iso)}
@@ -1,3 +1,3 @@
1
1
  module IsinCodeGenerator
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isin_code_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - zedtux
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-19 00:00:00.000000000 Z
11
+ date: 2013-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -69,7 +69,8 @@ dependencies:
69
69
  description: Simple random ISIN Code generator
70
70
  email:
71
71
  - zedtux@zedroot.org
72
- executables: []
72
+ executables:
73
+ - isin_gen
73
74
  extensions: []
74
75
  extra_rdoc_files: []
75
76
  files:
@@ -78,9 +79,11 @@ files:
78
79
  - .ruby-gemset
79
80
  - .ruby-version
80
81
  - Gemfile
82
+ - LICENSE
81
83
  - LICENSE.txt
82
84
  - README.md
83
85
  - Rakefile
86
+ - bin/isin_gen
84
87
  - isin_code_generator.gemspec
85
88
  - lib/isin_code_generator.rb
86
89
  - lib/isin_code_generator/version.rb