cmxl 0.0.3 → 0.0.4

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: e6c1cc630ddfa936396515babfa8c5d6ee77b0d0
4
- data.tar.gz: 89940db8aa878f76b1658997702f690db182377d
3
+ metadata.gz: 099dfa2701305989d3afe020ee6fee473d75a50e
4
+ data.tar.gz: 74e6f6ee642e4d3680b17b977ac470ef6ed1b1a5
5
5
  SHA512:
6
- metadata.gz: 8d6749415fb5ebee5f8e98f49a337d0000e19556500b5682546783de3835ec33e09fc59235dd87e800b792bd6928f6b1e05d204f8e705ef169f9f6e0c7231c74
7
- data.tar.gz: 18358ac839e9cf4c65357b651c33cb5d6c670a334ae50a56c0e8060d3a9688bc5e63f3f24f64eba0cc8034f41389107675261fbeec73353151762a97a65903ac
6
+ metadata.gz: 3635643d3f1966515e350da68bff1c46b0960508b085953338ad2f275eccb87e80fad2b8e7723ddbc526c64b4e2e036a9771e9c0343300e9fe5f613c34333364
7
+ data.tar.gz: 74761935463086b4464f94d64bf77a06d6ec5b5914f5def5ce1840ec491a01ee67a544643096454a15998977184ad174090fd959a1c26007dd857cfd27acb478
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.0.0
5
+ - 2.1.2
6
+ - jruby
@@ -6,7 +6,7 @@ module Cmxl
6
6
 
7
7
  def sub_fields
8
8
  @sub_fields ||= if self.data['details'] =~ /#{Regexp.escape(self.data['seperator'])}(\d{2})/
9
- self.data['details'].split(/#{Regexp.escape(self.data['seperator'])}(\d{2})/).reject(&:empty?).each_slice(2).to_h
9
+ Hash[*self.data['details'].split(/#{Regexp.escape(self.data['seperator'])}(\d{2})/).reject(&:empty?)]
10
10
  else
11
11
  {}
12
12
  end
@@ -23,7 +23,7 @@ module Cmxl
23
23
 
24
24
  def sepa
25
25
  if self.information =~ /([A-Z]{4})\+/
26
- self.information.split(/([A-Z]{4})\+/).reject(&:empty?).each_slice(2).to_h
26
+ Hash[*self.information.split(/([A-Z]{4})\+/).reject(&:empty?)]
27
27
  else
28
28
  {}
29
29
  end
data/lib/cmxl/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cmxl
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cmxl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bumann
@@ -61,6 +61,7 @@ extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
63
  - ".gitignore"
64
+ - ".travis.yml"
64
65
  - Gemfile
65
66
  - LICENSE.txt
66
67
  - README.md