rubyscholar 0.2 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/rubyscholar-main.rb +2 -2
- data/lib/rubyscholar-version.rb +1 -1
- data/lib/rubyscholar-version.rb.~1~ +3 -0
- data/lib/rubyscholar-version.rb.~2~ +3 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f7db0710c0835e4f8d93423eede63c1db2c5748
|
4
|
+
data.tar.gz: f24d2d053c03f3f7cda92f5b86350326b90cfdc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49c3fbd79b904060ee224c531955004bf2787859c4c5b9c2cea34c3c07bbce18c6999d36fd685043bf6b2db12acfe0772ef5596e8e8a8b21c834c12543abe7b0
|
7
|
+
data.tar.gz: 3c616cbc1cfae34c46b84845c8f2eae6ca24f342a7afc15da67d506936885352bcb7b6000c7d313d9d65c74c71e4e0b9a76b3071db1d5d0df15673393b2d3708
|
data/README.md
CHANGED
@@ -14,11 +14,11 @@ Some features:
|
|
14
14
|
# How to use:
|
15
15
|
|
16
16
|
### As a ruby script:
|
17
|
-
1. Configure "config.
|
17
|
+
1. Configure "config.yaml"
|
18
18
|
If you want DOI retreival to work (including Altmetrics), you need to be
|
19
19
|
registered at crossref (its free).
|
20
|
-
2. Run `ruby bin/
|
21
|
-
3. A
|
20
|
+
2. Run `ruby bin/rubyscholar`
|
21
|
+
3. A publications.html file is created with your publications from google scholar.
|
22
22
|
4. Thats it.
|
23
23
|
|
24
24
|
# Potential for improvement:
|
data/lib/rubyscholar-main.rb
CHANGED
@@ -39,9 +39,9 @@ module Rubyscholar
|
|
39
39
|
authors.gsub!("...", "et al")
|
40
40
|
|
41
41
|
journal = paper.children[0].children[2].text rescue ''
|
42
|
-
journalName = journal.split(/,|\d/).first.clean
|
42
|
+
journalName = journal.split(/,|\d/).first.clean rescue ''
|
43
43
|
journalDetails = journal.gsub(journalName, '').clean
|
44
|
-
year = journalDetails.match(/, \d+$/)[0]
|
44
|
+
year = journalDetails.match(/, \d+$/)[0] rescue ''
|
45
45
|
journalDetails = journalDetails.gsub(year, '').clean
|
46
46
|
year = year.clean
|
47
47
|
|
data/lib/rubyscholar-version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubyscholar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yannick Wurm
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-10-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
@@ -67,6 +67,8 @@ files:
|
|
67
67
|
- example.config.yml
|
68
68
|
- lib/rubyscholar-main.rb
|
69
69
|
- lib/rubyscholar-version.rb
|
70
|
+
- lib/rubyscholar-version.rb.~1~
|
71
|
+
- lib/rubyscholar-version.rb.~2~
|
70
72
|
- lib/rubyscholar-version.rb~
|
71
73
|
- lib/rubyscholar.rb~
|
72
74
|
- rubyscholar.gemspec
|