terrier 1.0.1 → 1.0.2

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
  SHA1:
3
- metadata.gz: 8d5db9a930b0e7613577840fd0baab3304d685e7
4
- data.tar.gz: d5f21a1ca92b7320f801cffd8b88adb6dcd2acc8
3
+ metadata.gz: 0899b6b779254a034fc839f5bc28478f2203e560
4
+ data.tar.gz: 0f11e9fcb853d14ec516c373f59f301fdf796a5a
5
5
  SHA512:
6
- metadata.gz: f5920676d492c32a8b9dd2c4d2d836513fe6a6a0c6497296c00942f13e55e318f713430731d364a1d9b2646315d0145675113b9f92d6b46b1837af53bcd95f65
7
- data.tar.gz: 0c7b2f7a445fa2f6eee95017f3ec92a7eba983fe7c9573fb2ecaeff0a84e5419f14f6bd97e856d9286fb58dd443aba8981c3c24e246f43a744e6245c1c4845b5
6
+ metadata.gz: f2e4fd4b6329389a658b720b5e362d9bc3e834dcb2532ef618509d70a5ba01ad72265cc7c40298c8110c2459f1265c3e668d5397a2dab3e8ed9a9e0e0043b4ed
7
+ data.tar.gz: e8e2ecb4dbbb31a6006184e1e16240723e5aaa0cadd891307f772e1daa8dca0feba3d3c6447dff635cabc82a9f71cfd132695bbfc20d6b49729c50d6c558f34c
data/README.md CHANGED
@@ -6,7 +6,7 @@ Terrier is used to retrieve metadata of scholarly works from a variety of source
6
6
 
7
7
  Terrier can be used to pull metadata on any article that has been issued a digital object identifier (DOI) or that is hosted on the Zenodo Repository, maintained by CERN.
8
8
 
9
- With Terrier you can enter any scholarly article URL or DOI to retrieve scholarly information about that article. Terrier will pull full PDFs of scholarly content if it is hosted on the Zenodo repository. The production of Terrier was funded by [OpenAire](https://www.openaire.eu/openaire-open-peer-review-tenders) and developed by [The Winnower](thewinnower.com)
9
+ With Terrier you can enter any scholarly article URL or DOI to retrieve scholarly information about that article. Terrier will pull full PDFs of scholarly content if it is hosted on the Zenodo repository. The production of Terrier was funded by [OpenAire](https://www.openaire.eu/openaire-open-peer-review-tenders) and developed by [The Winnower](https://thewinnower.com)
10
10
 
11
11
 
12
12
  ## Installation
@@ -0,0 +1,4 @@
1
+ 2016/03/23 Version 1.0.2
2
+
3
+ Fix for Journal metadata
4
+ Added Publisher Metadata to DOI parser
@@ -0,0 +1,7 @@
1
+ General format is: contributor, github handle, email. In some cases, the contributor field is an organization instead of an actual person---this is for cases where the work was done on behalf of the organization, ie as part of their job. In others, no contributor field and/or email is shown---this is because this list was partially (mostly) reconstructed from github commit information and the person's real life name and email are unknown.
2
+
3
+ Listed in no particular order:
4
+
5
+ * Matthew Bergman @fotoverte matthew.z.bergman@gmail.com
6
+ * Amy Gimma @amygimma
7
+ * Bastian Greshake @gedankenstuecke bgreshake@googlemail.com
@@ -10,7 +10,8 @@ class Terrier::DoiData
10
10
  @citation_info = doi_citation_info
11
11
  {
12
12
  url: citation_info["URL"],
13
- journal: citation_info["publisher"],
13
+ journal: citation_info["container-title"],
14
+ publisher: citation_info["publisher"],
14
15
  title: citation_info["title"],
15
16
  authors: authors,
16
17
  publication_year: publication_year,
@@ -1,3 +1,3 @@
1
1
  class Terrier
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
@@ -16,8 +16,12 @@ describe Terrier::DoiData do
16
16
  expect(Terrier::DoiData.new('doi:10.1186/1479-5868-10-79').data[:url]).to eq('http://dx.doi.org/10.1186/1479-5868-10-79')
17
17
  end
18
18
 
19
+ it "returns a collection containing the journal name" do
20
+ expect(Terrier::DoiData.new('doi:10.1186/1479-5868-10-79').data[:journal]).to eq('Int J Behav Nutr Phys Act')
21
+ end
22
+
19
23
  it "returns a collection containing the journal publisher" do
20
- expect(Terrier::DoiData.new('doi:10.1186/1479-5868-10-79').data[:journal]).to eq('Springer Science + Business Media')
24
+ expect(Terrier::DoiData.new('doi:10.1186/1479-5868-10-79').data[:publisher]).to eq('Springer Science + Business Media')
21
25
  end
22
26
 
23
27
  it "returns a collection containing the journal title" do
@@ -42,4 +46,4 @@ describe Terrier::DoiData do
42
46
 
43
47
  end
44
48
 
45
- end
49
+ end
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
7
7
  spec.name = "terrier"
8
8
  spec.homepage = 'https://github.com/thewinnower/terrier'
9
9
  spec.version = Terrier::VERSION
10
- spec.authors = ["Matthew Bergman", "The Winnower"]
10
+ spec.authors = ["Matthew Bergman", "The Winnower", "Amy Gimma"]
11
11
  spec.email = ["matthew.z.bergman@gmail.com"]
12
12
  spec.summary = %q{Terrier: Import Doi and Zenodo Papers}
13
13
  spec.description = %q{Terrier is used to retrieve metadata of scholarly works from a variety of sources. Terrier can be used to pull metadata on any article that has been issued a digital object identifier (DOI) or that is hosted on the Zenodo Repository, maintained by CERN.}
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terrier
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Bergman
8
8
  - The Winnower
9
+ - Amy Gimma
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2016-03-02 00:00:00.000000000 Z
13
+ date: 2016-03-23 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: httparty
@@ -126,6 +127,8 @@ files:
126
127
  - LICENSE.txt
127
128
  - README.md
128
129
  - Rakefile
130
+ - lib/CHANGELOG.md
131
+ - lib/CONTRIBUTORS.md
129
132
  - lib/terrier.rb
130
133
  - lib/terrier/doi_data.rb
131
134
  - lib/terrier/html_data.rb