paper_summary 0.0.2 → 0.0.3

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
- !binary "U0hBMQ==":
3
- metadata.gz: a3f442065d0e285e7f36c8e18d4782c72a7bfada
4
- data.tar.gz: 4fd9980660937ef88cc2b94ee45a6fb44f554f9a
5
- !binary "U0hBNTEy":
6
- metadata.gz: 10bec08d6844e9462984f6f234cd49736b10b121c46c2e4b923db878d55aa07c0e5cba1194b85eafc73cef0b13f21ae2ca14cf7489bc138d43b3dd86c185b38e
7
- data.tar.gz: e37afd60b797b0757ffc701987b2b337a995faa4e3043f48bd2f9f04bc3a39a8c8796a5ddb1644f95967b3b94e98fc10a3df3e9404f0ab313fffe5f45a107cd8
2
+ SHA1:
3
+ metadata.gz: 55a307af72c6f835b8a3f888a179389fed33d2b7
4
+ data.tar.gz: c208eeccd01ea0e59b148d07b3bcaadb0e2c653b
5
+ SHA512:
6
+ metadata.gz: 1d2d61f545296373a4b9c4ad56e2923983d70fc3f170a3db4a9e83b28b9e8c66ab0bca505dedf86618fa8d3b4682bdae89d94c337ebd5e6b890331f8fc783dfe
7
+ data.tar.gz: 1c152910e335130fe68ecba048e7cd888782e8f20f6ba0a78d24a20c088b95c8617e06f03904c87eb9de7f02658c5483103999018ece8aea6c2a93094689739c
data/README.md CHANGED
@@ -1,12 +1,12 @@
1
- # PaperMetadata
1
+ # PaperSummary
2
2
 
3
- PaperMetadata is a gem that gets a publication's metadata by accessing the CrossRef OpenURL API.
3
+ PaperSummary is a gem that gets a publication's summary by accessing eLife's content. We'll add more sources as we go along.
4
4
 
5
5
  ## Installation
6
6
 
7
7
  Add this line to your application's Gemfile:
8
8
 
9
- gem 'paper_metadata'
9
+ gem 'paper_summary'
10
10
 
11
11
  And then execute:
12
12
 
@@ -14,25 +14,19 @@ And then execute:
14
14
 
15
15
  Or install it yourself as:
16
16
 
17
- $ gem install paper_metadata
17
+ $ gem install paper_summary
18
18
 
19
19
  ## Usage
20
20
 
21
- You can use PaperMetadata like this:
21
+ You can use PaperSummary like this:
22
22
 
23
- result = PaperMetadata.metadata_for('doi:10.1021/ac1014832')
23
+ result = PaperSummary.summary_for('doi:10.7554/eLife.00013')
24
24
 
25
25
  The result will be a hash similar to this one:
26
26
 
27
- { :volume=>"82",
28
- :isssue=>"19",
29
- :first_page=>"8153",
30
- :last_page=>"8160",
31
- :title=>
32
- "Basic Modeling Approach To Optimize Elemental Imaging by Laser Ablation ICPMS",
33
- :authors=>"Jure Triglav, Johannes T. van Elteren, Vid S. Šelih",
34
- :journal=>"Anal. Chem. 2010",
35
- :resource=>"http://pubs.acs.org/doi/abs/10.1021/ac1014832" }
27
+ { summary_text: 'Short summary text',
28
+ summary_html: '<p>Short summary html</p>'
29
+ }
36
30
 
37
31
  ## Contributing
38
32
 
@@ -43,3 +37,7 @@ The result will be a hash similar to this one:
43
37
  5. Create new Pull Request
44
38
 
45
39
  Be sure to run the specs too.
40
+
41
+ ## License
42
+
43
+ This gem is licensed under the MIT license.
@@ -1,3 +1,3 @@
1
1
  module PaperSummary
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -8,10 +8,10 @@ Gem::Specification.new do |gem|
8
8
  gem.version = PaperSummary::VERSION
9
9
  gem.authors = ["Jure Triglav"]
10
10
  gem.email = ["juretriglav@gmail.com"]
11
- gem.summary = %q{Paper_summary gem gets the summary for papers with a DOI or an arXiv identifier}
12
- gem.description = %q{Summary getter for scientific papers}
11
+ gem.summary = %q{Paper_summary gem gets the summary for papers with a DOI or an arXiv identifier}
12
+ gem.description = %q{Summary getter for scientific papers}
13
13
  gem.homepage = "http://github.com/jure/paper_summary"
14
-
14
+ gem.license = 'MIT'
15
15
  gem.files = `git ls-files`.split($/)
16
16
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paper_summary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jure Triglav
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-24 00:00:00.000000000 Z
11
+ date: 2013-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: webmock
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
@@ -88,7 +88,8 @@ files:
88
88
  - test/test_helper.rb
89
89
  - test/test_paper_summary.rb
90
90
  homepage: http://github.com/jure/paper_summary
91
- licenses: []
91
+ licenses:
92
+ - MIT
92
93
  metadata: {}
93
94
  post_install_message:
94
95
  rdoc_options: []
@@ -96,12 +97,12 @@ require_paths:
96
97
  - lib
97
98
  required_ruby_version: !ruby/object:Gem::Requirement
98
99
  requirements:
99
- - - ! '>='
100
+ - - '>='
100
101
  - !ruby/object:Gem::Version
101
102
  version: '0'
102
103
  required_rubygems_version: !ruby/object:Gem::Requirement
103
104
  requirements:
104
- - - ! '>='
105
+ - - '>='
105
106
  - !ruby/object:Gem::Version
106
107
  version: '0'
107
108
  requirements: []
@@ -117,4 +118,3 @@ test_files:
117
118
  - test/fluiddb.json
118
119
  - test/test_helper.rb
119
120
  - test/test_paper_summary.rb
120
- has_rdoc: