wikipedia-client 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -0
- data/MIT-LICENSE +20 -0
- data/README.textile +81 -0
- data/Rakefile +60 -0
- data/VERSION +1 -0
- data/init.rb +1 -0
- data/install.rb +1 -0
- data/lib/wikipedia.rb +37 -0
- data/lib/wikipedia/client.rb +91 -0
- data/lib/wikipedia/configuration.rb +25 -0
- data/lib/wikipedia/page.rb +109 -0
- data/lib/wikipedia/url.rb +14 -0
- data/script/add_sanitization_test +22 -0
- data/spec/fixtures/Edsger_Dijkstra.json +1 -0
- data/spec/fixtures/Edsger_Dijkstra.yaml +184 -0
- data/spec/fixtures/Edsger_Dijkstra_section_0.json +1 -0
- data/spec/fixtures/Edsger_content.txt +1 -0
- data/spec/fixtures/File_Edsger_Wybe_Dijkstra_jpg.json +1 -0
- data/spec/fixtures/sanitization_samples/Ceawlin_of_Wessex-raw.txt +19 -0
- data/spec/fixtures/sanitization_samples/Ceawlin_of_Wessex-sanitized.txt +3 -0
- data/spec/fixtures/sanitization_samples/Edsger_W_Dijkstra-raw.txt +26 -0
- data/spec/fixtures/sanitization_samples/Edsger_W_Dijkstra-sanitized.txt +2 -0
- data/spec/fixtures/sanitization_samples/Flower_video_game-raw.txt +25 -0
- data/spec/fixtures/sanitization_samples/Flower_video_game-sanitized.txt +2 -0
- data/spec/fixtures/sanitization_samples/How_to_Lose_Friends__Alienate_People_film-raw.txt +28 -0
- data/spec/fixtures/sanitization_samples/How_to_Lose_Friends__Alienate_People_film-sanitized.txt +2 -0
- data/spec/fixtures/sanitization_samples/Kirsten_Dunst-raw.txt +16 -0
- data/spec/fixtures/sanitization_samples/Kirsten_Dunst-sanitized.txt +3 -0
- data/spec/fixtures/sanitization_samples/Large_Hadron_Collider-raw.txt +104 -0
- data/spec/fixtures/sanitization_samples/Large_Hadron_Collider-sanitized.txt +4 -0
- data/spec/fixtures/sanitization_samples/Metro_Goldwyn_Mayer-raw.txt +18 -0
- data/spec/fixtures/sanitization_samples/Metro_Goldwyn_Mayer-sanitized.txt +1 -0
- data/spec/fixtures/sanitization_samples/Middle_Ages-raw.txt +10 -0
- data/spec/fixtures/sanitization_samples/Middle_Ages-sanitized.txt +3 -0
- data/spec/fixtures/sanitization_samples/SMS_Elbing-raw.txt +51 -0
- data/spec/fixtures/sanitization_samples/SMS_Elbing-sanitized.txt +1 -0
- data/spec/fixtures/sanitization_samples/Sashimi-raw.txt +16 -0
- data/spec/fixtures/sanitization_samples/Sashimi-sanitized.txt +7 -0
- data/spec/fixtures/sanitization_samples/Superb_Fairywren-raw.txt +35 -0
- data/spec/fixtures/sanitization_samples/Superb_Fairywren-sanitized.txt +3 -0
- data/spec/fixtures/sanitization_samples/Velociraptor-raw.txt +28 -0
- data/spec/fixtures/sanitization_samples/Velociraptor-sanitized.txt +3 -0
- data/spec/lib/client_spec.rb +108 -0
- data/spec/lib/sanitize_spec.rb +14 -0
- data/spec/lib/url_spec.rb +8 -0
- data/spec/lib/wikipedia_spec.rb +20 -0
- data/spec/spec_helper.rb +4 -0
- data/tasks/wikipedia_tasks.rake +4 -0
- data/uninstall.rb +1 -0
- data/wikipedia-client.gemspec +96 -0
- metadata +134 -0
metadata
ADDED
@@ -0,0 +1,134 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: wikipedia-client
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 23
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
- 0
|
10
|
+
version: 1.0.0
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Cyril David
|
14
|
+
- Ken Pratt
|
15
|
+
autorequire:
|
16
|
+
bindir: bin
|
17
|
+
cert_chain: []
|
18
|
+
|
19
|
+
date: 2010-08-09 00:00:00 +03:00
|
20
|
+
default_executable:
|
21
|
+
dependencies:
|
22
|
+
- !ruby/object:Gem::Dependency
|
23
|
+
name: thoughtbot-shoulda
|
24
|
+
prerelease: false
|
25
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ">="
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
hash: 3
|
31
|
+
segments:
|
32
|
+
- 0
|
33
|
+
version: "0"
|
34
|
+
type: :development
|
35
|
+
version_requirements: *id001
|
36
|
+
description: Ruby client for the Wikipedia API
|
37
|
+
email: christian.hellsten@gmail.com
|
38
|
+
executables: []
|
39
|
+
|
40
|
+
extensions: []
|
41
|
+
|
42
|
+
extra_rdoc_files:
|
43
|
+
- README.textile
|
44
|
+
files:
|
45
|
+
- .gitignore
|
46
|
+
- MIT-LICENSE
|
47
|
+
- README.textile
|
48
|
+
- Rakefile
|
49
|
+
- VERSION
|
50
|
+
- init.rb
|
51
|
+
- install.rb
|
52
|
+
- lib/wikipedia.rb
|
53
|
+
- lib/wikipedia/client.rb
|
54
|
+
- lib/wikipedia/configuration.rb
|
55
|
+
- lib/wikipedia/page.rb
|
56
|
+
- lib/wikipedia/url.rb
|
57
|
+
- script/add_sanitization_test
|
58
|
+
- spec/fixtures/Edsger_Dijkstra.json
|
59
|
+
- spec/fixtures/Edsger_Dijkstra.yaml
|
60
|
+
- spec/fixtures/Edsger_Dijkstra_section_0.json
|
61
|
+
- spec/fixtures/Edsger_content.txt
|
62
|
+
- spec/fixtures/File_Edsger_Wybe_Dijkstra_jpg.json
|
63
|
+
- spec/fixtures/sanitization_samples/Ceawlin_of_Wessex-raw.txt
|
64
|
+
- spec/fixtures/sanitization_samples/Ceawlin_of_Wessex-sanitized.txt
|
65
|
+
- spec/fixtures/sanitization_samples/Edsger_W_Dijkstra-raw.txt
|
66
|
+
- spec/fixtures/sanitization_samples/Edsger_W_Dijkstra-sanitized.txt
|
67
|
+
- spec/fixtures/sanitization_samples/Flower_video_game-raw.txt
|
68
|
+
- spec/fixtures/sanitization_samples/Flower_video_game-sanitized.txt
|
69
|
+
- spec/fixtures/sanitization_samples/How_to_Lose_Friends__Alienate_People_film-raw.txt
|
70
|
+
- spec/fixtures/sanitization_samples/How_to_Lose_Friends__Alienate_People_film-sanitized.txt
|
71
|
+
- spec/fixtures/sanitization_samples/Kirsten_Dunst-raw.txt
|
72
|
+
- spec/fixtures/sanitization_samples/Kirsten_Dunst-sanitized.txt
|
73
|
+
- spec/fixtures/sanitization_samples/Large_Hadron_Collider-raw.txt
|
74
|
+
- spec/fixtures/sanitization_samples/Large_Hadron_Collider-sanitized.txt
|
75
|
+
- spec/fixtures/sanitization_samples/Metro_Goldwyn_Mayer-raw.txt
|
76
|
+
- spec/fixtures/sanitization_samples/Metro_Goldwyn_Mayer-sanitized.txt
|
77
|
+
- spec/fixtures/sanitization_samples/Middle_Ages-raw.txt
|
78
|
+
- spec/fixtures/sanitization_samples/Middle_Ages-sanitized.txt
|
79
|
+
- spec/fixtures/sanitization_samples/SMS_Elbing-raw.txt
|
80
|
+
- spec/fixtures/sanitization_samples/SMS_Elbing-sanitized.txt
|
81
|
+
- spec/fixtures/sanitization_samples/Sashimi-raw.txt
|
82
|
+
- spec/fixtures/sanitization_samples/Sashimi-sanitized.txt
|
83
|
+
- spec/fixtures/sanitization_samples/Superb_Fairywren-raw.txt
|
84
|
+
- spec/fixtures/sanitization_samples/Superb_Fairywren-sanitized.txt
|
85
|
+
- spec/fixtures/sanitization_samples/Velociraptor-raw.txt
|
86
|
+
- spec/fixtures/sanitization_samples/Velociraptor-sanitized.txt
|
87
|
+
- spec/lib/client_spec.rb
|
88
|
+
- spec/lib/sanitize_spec.rb
|
89
|
+
- spec/lib/url_spec.rb
|
90
|
+
- spec/lib/wikipedia_spec.rb
|
91
|
+
- spec/spec_helper.rb
|
92
|
+
- tasks/wikipedia_tasks.rake
|
93
|
+
- uninstall.rb
|
94
|
+
- wikipedia-client.gemspec
|
95
|
+
has_rdoc: true
|
96
|
+
homepage: http://github.com/christianhellsten/wikipedia-client
|
97
|
+
licenses: []
|
98
|
+
|
99
|
+
post_install_message:
|
100
|
+
rdoc_options:
|
101
|
+
- --charset=UTF-8
|
102
|
+
require_paths:
|
103
|
+
- lib
|
104
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
hash: 3
|
110
|
+
segments:
|
111
|
+
- 0
|
112
|
+
version: "0"
|
113
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
115
|
+
requirements:
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
hash: 3
|
119
|
+
segments:
|
120
|
+
- 0
|
121
|
+
version: "0"
|
122
|
+
requirements: []
|
123
|
+
|
124
|
+
rubyforge_project:
|
125
|
+
rubygems_version: 1.3.7
|
126
|
+
signing_key:
|
127
|
+
specification_version: 3
|
128
|
+
summary: Ruby client for the Wikipedia API
|
129
|
+
test_files:
|
130
|
+
- spec/lib/client_spec.rb
|
131
|
+
- spec/lib/sanitize_spec.rb
|
132
|
+
- spec/lib/url_spec.rb
|
133
|
+
- spec/lib/wikipedia_spec.rb
|
134
|
+
- spec/spec_helper.rb
|