cnab150 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +3 -0
- data/cnab150.gemspec +1 -1
- data/lib/cnab150.rb +7 -0
- data/lib/cnab150/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4031bb0e08749ff15d5fa2bb5cc5dbd3c19ade1
|
4
|
+
data.tar.gz: 18c0864d488bb07341d8ffe78123196a36d0a903
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c00ea7b91dc235c45c894208ed4e8d4f8a13cb48f2038cd45f55f35c15dc9ae436ed0257779b5c58076d65b3d9dc974f0b1db23d7df44335c3545eb7420a8e9
|
7
|
+
data.tar.gz: 33fe44caa56db463a4dfd5e84a4e0c20e3b8c44a3dfff53619140d85c71aeaf567b6d9ffd456427d501ead7877a15175b7358cbfaac0798ef666eebfd80959a5
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,10 @@
|
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/cnab150.svg)](https://badge.fury.io/rb/cnab150)
|
1
2
|
[![Build Status](https://travis-ci.org/marcomoura/cnab150.svg)](https://travis-ci.org/marcomoura/cnab150)
|
2
3
|
[![Coverage Status](https://coveralls.io/repos/marcomoura/cnab150/badge.svg?branch=master&service=github)](https://coveralls.io/github/marcomoura/cnab150?branch=master)
|
3
4
|
[![Code Climate](https://codeclimate.com/repos/562fd3b8e30ba04a3a00025f/badges/13ce3a3234d50e80222e/gpa.svg)](https://codeclimate.com/repos/562fd3b8e30ba04a3a00025f/feed)
|
4
5
|
[![Inline docs](http://inch-ci.org/github/marcomoura/cnab150.svg?branch=master)](http://inch-ci.org/github/marcomoura/cnab150)
|
6
|
+
[![Dependency Status](https://gemnasium.com/marcomoura/cnab150.svg)](https://gemnasium.com/marcomoura/cnab150)
|
7
|
+
|
5
8
|
|
6
9
|
# Cnab150
|
7
10
|
|
data/cnab150.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
|
|
11
11
|
|
12
12
|
s.summary = 'Return File CNAB 150.'
|
13
13
|
s.description = 'Return File CNAB 150.'
|
14
|
-
s.homepage =
|
14
|
+
s.homepage = 'https://github.com/marcomoura/cnab150'
|
15
15
|
|
16
16
|
s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec)/}) }
|
17
17
|
s.bindir = 'exe'
|
data/lib/cnab150.rb
CHANGED
@@ -31,6 +31,13 @@ module Cnab150
|
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
+
def self.select(type, raw)
|
35
|
+
registries = parse_registries(raw)
|
36
|
+
registries.select do |r|
|
37
|
+
r.registry_code.eql?(type.to_s.upcase)
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
34
41
|
def self.find(registries, type)
|
35
42
|
registries.find { |r| r.registry_code.eql?(type) }
|
36
43
|
end
|
data/lib/cnab150/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cnab150
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marco Moura
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|