Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Oct 16, 2018
1 parent 75ed72f commit 7d437a6
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
19 changes: 13 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
PATH
remote: .
specs:
isobib (0.3.1)
isobib (0.4.0)
algoliasearch
iso-bib-item (~> 0.3.0)
iecbib (~> 0.2.0)
iso-bib-item (~> 0.4.0)

GEM
remote: https://rubygems.org/
specs:
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
algoliasearch (1.23.2)
httpclient (~> 2.8, >= 2.8.3)
json (>= 1.5.1)
Expand All @@ -18,30 +21,34 @@ GEM
equivalent-xml (0.6.0)
nokogiri (>= 1.4.3)
httpclient (2.8.3)
iso-bib-item (0.3.0)
iecbib (0.2.0)
addressable
iso-bib-item (~> 0.4.0)
iso-bib-item (0.4.0)
isoics (~> 0.1.6)
nokogiri (~> 1.8.4)
ruby_deep_clone (~> 0.8.0)
isoics (0.1.7)
json (2.1.0)
method_source (0.9.0)
mini_portile2 (2.3.0)
nokogiri (1.8.4)
nokogiri (1.8.5)
mini_portile2 (~> 2.3.0)
pry (0.11.3)
coderay (~> 1.1.0)
method_source (~> 0.9.0)
pry-byebug (3.6.0)
byebug (~> 10.0)
pry (~> 0.10)
public_suffix (3.0.3)
rake (10.5.0)
rspec (3.8.0)
rspec-core (~> 3.8.0)
rspec-expectations (~> 3.8.0)
rspec-mocks (~> 3.8.0)
rspec-core (3.8.0)
rspec-support (~> 3.8.0)
rspec-expectations (3.8.1)
rspec-expectations (3.8.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.8.0)
rspec-mocks (3.8.0)
Expand Down Expand Up @@ -69,4 +76,4 @@ DEPENDENCIES
simplecov

BUNDLED WITH
1.16.2
1.16.6
3 changes: 2 additions & 1 deletion isobib.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "equivalent-xml", "~> 0.6"

spec.add_dependency 'algoliasearch'
spec.add_dependency 'iso-bib-item', '~> 0.3.0'
spec.add_dependency 'iso-bib-item', '~> 0.4.0'
spec.add_dependency 'iecbib', '~> 0.2.0'
end
4 changes: 3 additions & 1 deletion lib/isobib/iso_bibliography.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# require 'isobib/iso_bibliographic_item'
require 'isobib/scrapper'
require 'isobib/hit_pages'
require 'iecbib'

module Isobib
# Class methods for search ISO standards.
Expand All @@ -27,11 +28,12 @@ def search_and_fetch(text)
# @return [String] Relaton XML serialisation of reference
def get(code, year, opts)
code += '-1' if opts[:all_parts]
return Iecbib::IecBibliography.get(code, year, opts) if %r[^ISO/IEC DIR].match code
ret = isobib_get1(code, year, opts)
return nil if ret.nil?
ret.to_most_recent_reference unless year || opts[:keep_year]
ret.to_all_parts if opts[:all_parts]
ret # .to_xml
ret
end

private
Expand Down
2 changes: 1 addition & 1 deletion lib/isobib/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Isobib
VERSION = '0.3.1'
VERSION = '0.4.0'
end

0 comments on commit 7d437a6

Please sign in to comment.