Skip to content

Commit

Permalink
bump new version
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew2net committed Jan 11, 2020
1 parent ed84801 commit 01b0a10
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
relaton-bib (0.4.1)
relaton-bib (0.5.0)
addressable
bibtex-ruby
iso639
Expand Down Expand Up @@ -29,7 +29,7 @@ GEM
nokogiri (1.10.7)
mini_portile2 (~> 2.4.0)
optout (0.0.2)
public_suffix (4.0.1)
public_suffix (4.0.3)
rake (10.5.0)
rspec (3.9.0)
rspec-core (~> 3.9.0)
Expand Down
2 changes: 1 addition & 1 deletion lib/relaton_bib/typed_title_string.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class TypedTitleString
# @param script [String]
def initialize(**args)
if args[:type] && !TITLE_TYPES.include?(args[:type])
raise ArgumentError, %{The type #{args[:type]} is invalid.}
warn %{[relaton-bib] title type "#{args[:type]}" is invalid.}
end

unless args[:title] || args[:content]
Expand Down
2 changes: 1 addition & 1 deletion lib/relaton_bib/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module RelatonBib
VERSION = "0.4.1".freeze
VERSION = "0.5.0".freeze
end
4 changes: 2 additions & 2 deletions spec/relaton_bib/typed_title_string_spec.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
RSpec.describe RelatonBib::TypedTitleString do
it "raises invalid type argument error" do
expect do
RelatonBib::TypedTitleString.new type: "type"
end.to raise_error ArgumentError
RelatonBib::TypedTitleString.new type: "type", content: "title"
end.to output(/title type "type" is invalid/).to_stderr
end

it "raises missed title or content argument error" do
Expand Down

0 comments on commit 01b0a10

Please sign in to comment.