isobib 0.1.7 → 0.1.8

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
  SHA256:
3
- metadata.gz: a1b8d223cafdb296a3332ca76dabcaeeffbe8a4d5658b4cd821e2b6cbee6a8aa
4
- data.tar.gz: 443f128cee77c73bd940d55c68050f47863199419e90425b44c0fe5fc16034bb
3
+ metadata.gz: 1e3c5a4dc018e55ed8a98ed49a8cc0a4da7521d4ad2baf9cf1a9c11ff7edbb16
4
+ data.tar.gz: ee429c74035e97b77257e3efd9a5513642ea250551204dbbcba7167f6b688dd2
5
5
  SHA512:
6
- metadata.gz: b47023fc174c5ad11a8499aa98b17b9eaa60d5ba163afd110f86555625461239972d8b711fc981d2b6953756c4a0b2ff96ed3b95d5fe3d732f55f943ef0165f3
7
- data.tar.gz: 5c0cc7ec86313db6274793c14ea5493e2d16b44f9a6b13af14eca204b0f6e45706d1e8cb9874a2bc99470197abb1a28231579832f3c3b3fbef5ed207bbfe9417
6
+ metadata.gz: 35ac3e96978133fa1db5f513a4982b52e7ab11af0139a6b9c0bee540ff4a9e4538ae5fb0f30cc2d50debe5448e2f320543c17f1e847d5e560083ff9c4f4fefb0
7
+ data.tar.gz: 721c0282b6e4df3419e65f8b470e4ea356e45748908c34bfc2bf2030cc4766531446faeacab08da712f430b413caff1ae8d48ffd014788ab4215183665bb1e11
data/README.adoc CHANGED
@@ -149,6 +149,13 @@ item.to_xml
149
149
  </bibitem>"
150
150
  ----
151
151
 
152
+ === Get serialisation in response to code, year, and options
153
+
154
+ [source,ruby]
155
+ ----
156
+ Isobib::IsoBibliography.get('ISO 19115', "2003", {})
157
+ ----
158
+
152
159
  == Development
153
160
 
154
161
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -24,7 +24,7 @@ module Isobib
24
24
  # @param year [String] the year the standard was published (optional)
25
25
  # @param opts [Hash] options; restricted to :all_parts if all-parts reference is required
26
26
  # @return [String] Relaton XML serialisation of reference
27
- def isobib_get(code, year, opts)
27
+ def get(code, year, opts)
28
28
  return iev.to_xml if code.casecmp? "IEV"
29
29
  code += "-1" if opts[:all_parts]
30
30
  ret = isobib_get1(code, year, opts)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Isobib
4
- VERSION = '0.1.7'
4
+ VERSION = '0.1.8'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isobib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-06-25 00:00:00.000000000 Z
11
+ date: 2018-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler