arxivsync 0.0.7 → 0.0.8

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: e4740ba9f085fd55b17a97e1cb7b099e8fabc4bd
4
- data.tar.gz: 5d553c2ad86dd557feebc12bf2587ec0d7688217
3
+ metadata.gz: 6f23b2225a55b6369e6c84961b6328247289573b
4
+ data.tar.gz: dfc6064821a4a6d7c12434cff5ae551c4f784600
5
5
  SHA512:
6
- metadata.gz: b2fd8209dabbec8e2f08c5c598beffbf4ebea908ebed8cad6a4041f8e411f50b71dbc827852e431ac364ce79ce060b7133d71c3e9d67f1b125376030ecccbe1a
7
- data.tar.gz: 50ab8a9c48776167c8c4cea1c4351faa4686fbd1c4382b73fd5b1dc3c3536fd516da25d091aa0f3eb06220def9e1ac8b8d4f680e46dca58ecb7123208c294fdb
6
+ metadata.gz: 44ccf8d910693b46719262f0778b76e9933a5d7bd521bd75dfb6c1a17205f8efc61d2549f0e7a16d62b2b4b74ff966df5b52ece62997219e4251595ad90f0054
7
+ data.tar.gz: 249f809cfc44b4bf32a5fadf072bc87be91a98fb6a4fcf23f1dddd00f171402cf78fdb44e44fd23b3bcf11d49bcedbc8cd28ba872d4e89f3f1760845ec0feb68
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # arxivsync 0.0.7
1
+ # arxivsync 0.0.8
2
2
 
3
3
  Ruby OAI interface for harvesting the arXiv. Can be used to store and update an XML mirror of paper metadata, and parse the XML into Ruby objects to allow conversion into a friendlier format.
4
4
 
@@ -54,7 +54,8 @@ module ArxivSync
54
54
  when :title
55
55
  @model.title = clean(str)
56
56
  when :authors
57
- @model.authors = clean(str).split(/,| and /)
57
+ regex = /(?:,| and )(?![^\(\)]*+\))/
58
+ @model.authors = clean(str).split(regex)
58
59
  .map { |s| LaTeX.decode(clean(s)) }.reject { |s| s.empty? }
59
60
  when :categories
60
61
  @model.categories = clean(str).split(/\s/)
@@ -1,3 +1,3 @@
1
1
  module ArxivSync
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arxivsync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaiden Mispy