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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 68cc9491e42d735441cfd82e8e18c108a84ec05d
4
- data.tar.gz: 5cc483aa8e259775a599b588cf658a219d5389f9
3
+ metadata.gz: 3f7db0710c0835e4f8d93423eede63c1db2c5748
4
+ data.tar.gz: f24d2d053c03f3f7cda92f5b86350326b90cfdc3
5
5
  SHA512:
6
- metadata.gz: de91f4aa92392ce239fe9e093ca804f6725fa0ae05a1c6419ff49022cb3f12888961a8ea2f65c9fb35590b8b446620e5694385e2e35cf159b8beab632fc8e76d
7
- data.tar.gz: face85b2e90f71e9d6c37e281a81a4e78011975e1ae820449fb2b995863d7195219ad4794fd7137a5420d2ae5a2f6b19433bc90a51f55883ea70a50d4d4b47f9
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.yml"
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/scrape.rb`
21
- 3. A scholar.html file is created with your publications from google scholar.
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:
@@ -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 rescue ''
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
 
@@ -1,3 +1,3 @@
1
1
  module Rubyscholar
2
- VERSION = "0.2"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -0,0 +1,3 @@
1
+ module Rubyscholar
2
+ VERSION = "0.2"
3
+ end
@@ -0,0 +1,3 @@
1
+ module Rubyscholar
2
+ VERSION = "0.2"
3
+ end
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: '0.2'
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-09-20 00:00:00.000000000 Z
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