google-scholar 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +18 -0
- data/.rspec +2 -0
- data/Gemfile +4 -0
- data/Guardfile +8 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +5 -0
- data/google-scholar.gemspec +29 -0
- data/lib/google/scholar.rb +29 -0
- data/lib/google/scholar/article_enumerator.rb +32 -0
- data/lib/google/scholar/article_summary.rb +27 -0
- data/lib/google/scholar/author.rb +31 -0
- data/lib/google/scholar/author_enumerator.rb +32 -0
- data/lib/google/scholar/author_search.rb +10 -0
- data/lib/google/scholar/base.rb +15 -0
- data/lib/google/scholar/document.rb +31 -0
- data/lib/google/scholar/document/authors_document.rb +25 -0
- data/lib/google/scholar/document/authors_profile_document.rb +14 -0
- data/lib/google/scholar/scraper.rb +44 -0
- data/lib/google/scholar/version.rb +5 -0
- data/spec/fixtures/article_part.htm +1 -0
- data/spec/fixtures/author_profile_page.htm +1 -0
- data/spec/fixtures/author_result_page.htm +1 -0
- data/spec/fixtures/author_result_page_has_next.htm +1 -0
- data/spec/fixtures/full_article.htm +1 -0
- data/spec/fixtures/single_author_page.htm +14 -0
- data/spec/lib/google/scholar/article_enumerator_spec.rb +32 -0
- data/spec/lib/google/scholar/article_summary_spec.rb +41 -0
- data/spec/lib/google/scholar/author_enumerator_spec.rb +33 -0
- data/spec/lib/google/scholar/author_search_spec.rb +20 -0
- data/spec/lib/google/scholar/author_spec.rb +66 -0
- data/spec/lib/google/scholar/base_spec.rb +15 -0
- data/spec/lib/google/scholar/document/authors_document_spec.rb +103 -0
- data/spec/lib/google/scholar/document/authors_profile_document_spec.rb +40 -0
- data/spec/lib/google/scholar/scraper_spec.rb +39 -0
- data/spec/lib/google/scholar_spec.rb +21 -0
- data/spec/spec_helper.rb +19 -0
- metadata +196 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
2
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
3
|
+
# Require this file using `require "spec_helper"` to ensure that it is only
|
4
|
+
# loaded once.
|
5
|
+
#
|
6
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
7
|
+
require 'google/scholar'
|
8
|
+
SPEC_DIR = File.dirname(__FILE__)
|
9
|
+
FIXTURE_DIR = File.join(SPEC_DIR,"fixtures")
|
10
|
+
RSpec.configure do |config|
|
11
|
+
config.treat_symbols_as_metadata_keys_with_true_values = true
|
12
|
+
config.run_all_when_everything_filtered = true
|
13
|
+
config.filter_run :focus
|
14
|
+
# Run specs in random order to surface order dependencies. If you find an
|
15
|
+
# order dependency and want to debug it, you can fix the order by providing
|
16
|
+
# the seed, which is printed after each run.
|
17
|
+
# --seed 1234
|
18
|
+
config.order = 'random'
|
19
|
+
end
|
metadata
ADDED
@@ -0,0 +1,196 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: google-scholar
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Trey Terrell
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-05-21 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: nokogiri
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.5.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.5.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.3'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.3'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.13'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2.13'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: guard
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.8.0
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.8.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: guard-rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ! '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ! '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: wdm
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ! '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.1.0
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.1.0
|
111
|
+
description: Google Scholar interface. Currently only works for Author searches.
|
112
|
+
email:
|
113
|
+
- trey.terrell@oregonstate.edu
|
114
|
+
executables: []
|
115
|
+
extensions: []
|
116
|
+
extra_rdoc_files: []
|
117
|
+
files:
|
118
|
+
- .gitignore
|
119
|
+
- .rspec
|
120
|
+
- Gemfile
|
121
|
+
- Guardfile
|
122
|
+
- LICENSE.txt
|
123
|
+
- README.md
|
124
|
+
- Rakefile
|
125
|
+
- google-scholar.gemspec
|
126
|
+
- lib/google/scholar.rb
|
127
|
+
- lib/google/scholar/article_enumerator.rb
|
128
|
+
- lib/google/scholar/article_summary.rb
|
129
|
+
- lib/google/scholar/author.rb
|
130
|
+
- lib/google/scholar/author_enumerator.rb
|
131
|
+
- lib/google/scholar/author_search.rb
|
132
|
+
- lib/google/scholar/base.rb
|
133
|
+
- lib/google/scholar/document.rb
|
134
|
+
- lib/google/scholar/document/authors_document.rb
|
135
|
+
- lib/google/scholar/document/authors_profile_document.rb
|
136
|
+
- lib/google/scholar/scraper.rb
|
137
|
+
- lib/google/scholar/version.rb
|
138
|
+
- spec/fixtures/article_part.htm
|
139
|
+
- spec/fixtures/author_profile_page.htm
|
140
|
+
- spec/fixtures/author_result_page.htm
|
141
|
+
- spec/fixtures/author_result_page_has_next.htm
|
142
|
+
- spec/fixtures/full_article.htm
|
143
|
+
- spec/fixtures/single_author_page.htm
|
144
|
+
- spec/lib/google/scholar/article_enumerator_spec.rb
|
145
|
+
- spec/lib/google/scholar/article_summary_spec.rb
|
146
|
+
- spec/lib/google/scholar/author_enumerator_spec.rb
|
147
|
+
- spec/lib/google/scholar/author_search_spec.rb
|
148
|
+
- spec/lib/google/scholar/author_spec.rb
|
149
|
+
- spec/lib/google/scholar/base_spec.rb
|
150
|
+
- spec/lib/google/scholar/document/authors_document_spec.rb
|
151
|
+
- spec/lib/google/scholar/document/authors_profile_document_spec.rb
|
152
|
+
- spec/lib/google/scholar/scraper_spec.rb
|
153
|
+
- spec/lib/google/scholar_spec.rb
|
154
|
+
- spec/spec_helper.rb
|
155
|
+
homepage: ''
|
156
|
+
licenses:
|
157
|
+
- MIT
|
158
|
+
metadata: {}
|
159
|
+
post_install_message:
|
160
|
+
rdoc_options: []
|
161
|
+
require_paths:
|
162
|
+
- lib
|
163
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
164
|
+
requirements:
|
165
|
+
- - ! '>='
|
166
|
+
- !ruby/object:Gem::Version
|
167
|
+
version: '0'
|
168
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - ! '>='
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '0'
|
173
|
+
requirements: []
|
174
|
+
rubyforge_project:
|
175
|
+
rubygems_version: 2.0.3
|
176
|
+
signing_key:
|
177
|
+
specification_version: 4
|
178
|
+
summary: Google Scholar interface. Currently only works for Author searches.
|
179
|
+
test_files:
|
180
|
+
- spec/fixtures/article_part.htm
|
181
|
+
- spec/fixtures/author_profile_page.htm
|
182
|
+
- spec/fixtures/author_result_page.htm
|
183
|
+
- spec/fixtures/author_result_page_has_next.htm
|
184
|
+
- spec/fixtures/full_article.htm
|
185
|
+
- spec/fixtures/single_author_page.htm
|
186
|
+
- spec/lib/google/scholar/article_enumerator_spec.rb
|
187
|
+
- spec/lib/google/scholar/article_summary_spec.rb
|
188
|
+
- spec/lib/google/scholar/author_enumerator_spec.rb
|
189
|
+
- spec/lib/google/scholar/author_search_spec.rb
|
190
|
+
- spec/lib/google/scholar/author_spec.rb
|
191
|
+
- spec/lib/google/scholar/base_spec.rb
|
192
|
+
- spec/lib/google/scholar/document/authors_document_spec.rb
|
193
|
+
- spec/lib/google/scholar/document/authors_profile_document_spec.rb
|
194
|
+
- spec/lib/google/scholar/scraper_spec.rb
|
195
|
+
- spec/lib/google/scholar_spec.rb
|
196
|
+
- spec/spec_helper.rb
|