pigeon_band 1.0.0 → 1.0.1

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: f9bb12b73441bd04685095520d4beb619b64b821
4
- data.tar.gz: db6173092cf90a4a29deb5ca97dc3bc602744114
3
+ metadata.gz: c068f38af42b53131bb136a6ad108e06de31f2d2
4
+ data.tar.gz: cb14f929059911297cd641889c7ee823fea2515a
5
5
  SHA512:
6
- metadata.gz: 855afe5fddec55de982a639dcef2fede78965998f28a14db6e0e737db3296a4d72fe668a0c64d2335d4760926bf4f5108f049b4f648cb5da32752c259da23bbc
7
- data.tar.gz: cd104cd192bc447279a57ff88d7ceb2e1e164b943a15d1d9ed07b6771bb6c9f7e85622359f618a448fac73140f1c1db51cb7bc4b221b3c1a4854c8e327c2789f
6
+ metadata.gz: 9e6d54d61de19af266e2a451ca497ff4d9dc173e741afa96165beaf29993f4bc71b12659b60a9f58298237952550f9fc32048c0d1eaa935bf746be97e5a7a84c
7
+ data.tar.gz: d40911654fd7f86e5ba15d390e0bfac2d44820be38152c8dd6050ddff0bf45ae402bc5f5d8caa0c78b8264e34ab1c7b4463c38749e6974bd644e0a6c1e48eb39
data/Makefile CHANGED
@@ -22,4 +22,5 @@ install: build
22
22
  build:
23
23
  git add lib
24
24
  git add test
25
+ rake test
25
26
 
data/README.md CHANGED
@@ -30,12 +30,23 @@ Or install it yourself as:
30
30
  ## Usage
31
31
 
32
32
  After loading the pigeon_band gem, there is a new object PigeonBand with one method #format.
33
- Given a band as a string, it returns a hash consisting of four fields. Thus, giben the
33
+ Given a band as a string, it returns a hash consisting of five fields. Thus, given the
34
34
  above bands a input, a call to PigeonBand#format would return the following hashes:
35
35
 
36
+ * band
37
+ * The normalized band as it should be displayed
38
+ * coll
39
+ * The band formatted for easy collation (filled e.g. with leading spaces)
40
+ * year
41
+ * The (four-digit) year as extracted from the band
42
+ * code
43
+ * The (ISO3166-1) country code as extracted from the band
44
+ * error
45
+ * The error message if the band is invalid, otherwise nil
46
+
36
47
  ```ruby
37
48
  PigeonBand.format("DV-06914-12-479")
38
- { band: "DV-06914-12-479" coll: "DV-06914-12-0479" year: 2012 code: "DE" }
49
+ { band: "DV-06914-12-479" coll: "DV-06914-12-0479" year: 2012 code: "DE" error: nil }
39
50
  ```
40
51
  ## Development
41
52
 
@@ -1,5 +1,5 @@
1
1
  module PigeonBand
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  COUNTRY = "DV"
4
4
  HOMEPAGE = "https://github.com/volkerwiegand/pigeon_band"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pigeon_band
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Volker Wiegand