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 +4 -4
- data/README.adoc +7 -0
- data/lib/isobib/iso_bibliography.rb +1 -1
- data/lib/isobib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e3c5a4dc018e55ed8a98ed49a8cc0a4da7521d4ad2baf9cf1a9c11ff7edbb16
|
4
|
+
data.tar.gz: ee429c74035e97b77257e3efd9a5513642ea250551204dbbcba7167f6b688dd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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)
|
data/lib/isobib/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|