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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c0280fc4768cea08a6f5d6e5a9dcbdedc68bfb1b
4
- data.tar.gz: 6603288d4ff5b9e48e0a829f4f2e9e47650ed3c7
3
+ metadata.gz: a4031bb0e08749ff15d5fa2bb5cc5dbd3c19ade1
4
+ data.tar.gz: 18c0864d488bb07341d8ffe78123196a36d0a903
5
5
  SHA512:
6
- metadata.gz: d27b8f6163578d1b224004edc1482f1879beb2ab0f1220defcb05cde5cce88444fe4961a3d54bd88b40fc936993cce2e1b831c70232ee8ee11050db446db185b
7
- data.tar.gz: 77ab502df280ab5e28722ecc2e5432e63f283ba1058c4ab011f1c37bb7b5f37af04b194e5e710c15aee66aced758b3c19dcd330360ad416f8a05fa8088190bc7
6
+ metadata.gz: 2c00ea7b91dc235c45c894208ed4e8d4f8a13cb48f2038cd45f55f35c15dc9ae436ed0257779b5c58076d65b3d9dc974f0b1db23d7df44335c3545eb7420a8e9
7
+ data.tar.gz: 33fe44caa56db463a4dfd5e84a4e0c20e3b8c44a3dfff53619140d85c71aeaf567b6d9ffd456427d501ead7877a15175b7358cbfaac0798ef666eebfd80959a5
data/Gemfile CHANGED
@@ -3,5 +3,5 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in cnab150.gemspec
4
4
  gemspec
5
5
 
6
- gem 'coveralls', require: false
6
+ gem 'coveralls', require: false, group: [:development, :test]
7
7
  gem 'rubocop', require: false, group: [:development, :test]
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 = "https://github.com/marcomoura/cnab150"
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
@@ -1,4 +1,4 @@
1
1
  # The version of gem
2
2
  module Cnab150
3
- VERSION = '1.0.0'
3
+ VERSION = '1.1.0'
4
4
  end
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.0.0
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-10-30 00:00:00.000000000 Z
11
+ date: 2015-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler