gravatar-ultimate 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +13 -0
- data/.travis.yml +16 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +37 -0
- data/README.rdoc +19 -25
- data/Rakefile +9 -38
- data/environments/rails-2.3/README +243 -0
- data/environments/rails-2.3/Rakefile +10 -0
- data/environments/rails-2.3/app/controllers/application_controller.rb +10 -0
- data/environments/rails-2.3/app/helpers/application_helper.rb +3 -0
- data/environments/rails-2.3/config/boot.rb +114 -0
- data/environments/rails-2.3/config/database.yml +22 -0
- data/environments/rails-2.3/config/environment.rb +43 -0
- data/environments/rails-2.3/config/environments/development.rb +17 -0
- data/environments/rails-2.3/config/environments/production.rb +28 -0
- data/environments/rails-2.3/config/environments/test.rb +28 -0
- data/environments/rails-2.3/config/initializers/backtrace_silencers.rb +7 -0
- data/environments/rails-2.3/config/initializers/cookie_verification_secret.rb +7 -0
- data/environments/rails-2.3/config/initializers/inflections.rb +10 -0
- data/environments/rails-2.3/config/initializers/mime_types.rb +5 -0
- data/environments/rails-2.3/config/initializers/new_rails_defaults.rb +21 -0
- data/environments/rails-2.3/config/initializers/session_store.rb +15 -0
- data/environments/rails-2.3/config/locales/en.yml +5 -0
- data/environments/rails-2.3/config/routes.rb +43 -0
- data/environments/rails-2.3/db/seeds.rb +7 -0
- data/environments/rails-2.3/doc/README_FOR_APP +2 -0
- data/environments/rails-2.3/public/404.html +30 -0
- data/environments/rails-2.3/public/422.html +30 -0
- data/environments/rails-2.3/public/500.html +30 -0
- data/environments/rails-2.3/public/favicon.ico +0 -0
- data/environments/rails-2.3/public/images/rails.png +0 -0
- data/environments/rails-2.3/public/index.html +275 -0
- data/environments/rails-2.3/public/javascripts/application.js +2 -0
- data/environments/rails-2.3/public/javascripts/controls.js +963 -0
- data/environments/rails-2.3/public/javascripts/dragdrop.js +973 -0
- data/environments/rails-2.3/public/javascripts/effects.js +1128 -0
- data/environments/rails-2.3/public/javascripts/prototype.js +4320 -0
- data/environments/rails-2.3/public/robots.txt +5 -0
- data/environments/rails-2.3/script/about +4 -0
- data/environments/rails-2.3/script/console +3 -0
- data/environments/rails-2.3/script/dbconsole +3 -0
- data/environments/rails-2.3/script/destroy +3 -0
- data/environments/rails-2.3/script/generate +3 -0
- data/environments/rails-2.3/script/performance/benchmarker +3 -0
- data/environments/rails-2.3/script/performance/profiler +3 -0
- data/environments/rails-2.3/script/plugin +3 -0
- data/environments/rails-2.3/script/runner +3 -0
- data/environments/rails-2.3/script/server +3 -0
- data/environments/rails-2.3/test/performance/browsing_test.rb +9 -0
- data/environments/rails-2.3/test/test_helper.rb +38 -0
- data/environments/rails-3.1/.gitignore +15 -0
- data/environments/rails-3.1/README +261 -0
- data/environments/rails-3.1/Rakefile +7 -0
- data/environments/rails-3.1/app/assets/images/rails.png +0 -0
- data/environments/rails-3.1/app/assets/javascripts/application.js +9 -0
- data/environments/rails-3.1/app/assets/stylesheets/application.css +7 -0
- data/environments/rails-3.1/app/controllers/application_controller.rb +3 -0
- data/environments/rails-3.1/app/helpers/application_helper.rb +2 -0
- data/environments/rails-3.1/app/mailers/.gitkeep +0 -0
- data/environments/rails-3.1/app/models/.gitkeep +0 -0
- data/environments/rails-3.1/app/views/layouts/application.html.erb +14 -0
- data/environments/rails-3.1/config.ru +4 -0
- data/environments/rails-3.1/config/application.rb +48 -0
- data/environments/rails-3.1/config/boot.rb +6 -0
- data/environments/rails-3.1/config/database.yml +25 -0
- data/environments/rails-3.1/config/environment.rb +5 -0
- data/environments/rails-3.1/config/environments/development.rb +30 -0
- data/environments/rails-3.1/config/environments/production.rb +60 -0
- data/environments/rails-3.1/config/environments/test.rb +39 -0
- data/environments/rails-3.1/config/initializers/backtrace_silencers.rb +7 -0
- data/environments/rails-3.1/config/initializers/inflections.rb +10 -0
- data/environments/rails-3.1/config/initializers/mime_types.rb +5 -0
- data/environments/rails-3.1/config/initializers/secret_token.rb +7 -0
- data/environments/rails-3.1/config/initializers/session_store.rb +8 -0
- data/environments/rails-3.1/config/initializers/wrap_parameters.rb +14 -0
- data/environments/rails-3.1/config/locales/en.yml +5 -0
- data/environments/rails-3.1/config/routes.rb +58 -0
- data/environments/rails-3.1/db/seeds.rb +7 -0
- data/environments/rails-3.1/doc/README_FOR_APP +2 -0
- data/environments/rails-3.1/lib/assets/.gitkeep +0 -0
- data/environments/rails-3.1/lib/tasks/.gitkeep +0 -0
- data/environments/rails-3.1/public/404.html +26 -0
- data/environments/rails-3.1/public/422.html +26 -0
- data/environments/rails-3.1/public/500.html +26 -0
- data/environments/rails-3.1/public/favicon.ico +0 -0
- data/environments/rails-3.1/public/index.html +241 -0
- data/environments/rails-3.1/public/robots.txt +5 -0
- data/environments/rails-3.1/script/rails +6 -0
- data/environments/rails-3.1/test/fixtures/.gitkeep +0 -0
- data/environments/rails-3.1/test/functional/.gitkeep +0 -0
- data/environments/rails-3.1/test/integration/.gitkeep +0 -0
- data/environments/rails-3.1/test/performance/browsing_test.rb +12 -0
- data/environments/rails-3.1/test/test_helper.rb +13 -0
- data/environments/rails-3.1/test/unit/.gitkeep +0 -0
- data/environments/rails-3.1/vendor/assets/stylesheets/.gitkeep +0 -0
- data/environments/rails-3.1/vendor/plugins/.gitkeep +0 -0
- data/environments/rails.rb +26 -0
- data/gemfiles/rails-2.3.14 +5 -0
- data/gemfiles/rails-2.3.14.lock +55 -0
- data/gemfiles/rails-3.1.3 +5 -0
- data/gemfiles/rails-3.1.3.lock +110 -0
- data/gravatar-ultimate.gemspec +13 -53
- data/lib/gravatar.rb +68 -30
- data/lib/gravatar/cache.rb +27 -21
- data/lib/gravatar/dependencies.rb +1 -18
- data/lib/gravatar/test_case.rb +105 -0
- data/lib/gravatar/version.rb +8 -0
- data/spec/fixtures/image.jpg +0 -0
- data/spec/fixtures/responses/grav.addresses +24 -0
- data/spec/fixtures/responses/grav.deleteUserimage +18 -0
- data/spec/fixtures/responses/grav.exists +20 -0
- data/spec/fixtures/responses/grav.exists.invalid +20 -0
- data/spec/fixtures/responses/grav.exists.multiple_invalid +21 -0
- data/spec/fixtures/responses/grav.removeImage +20 -0
- data/spec/fixtures/responses/grav.saveData +18 -0
- data/spec/fixtures/responses/grav.saveUrl +18 -0
- data/spec/fixtures/responses/grav.test +22 -0
- data/spec/fixtures/responses/grav.useUserimage +20 -0
- data/spec/fixtures/responses/grav.userimages +27 -0
- data/spec/lib/gravatar/cache_setup_spec.rb +2 -0
- data/spec/lib/gravatar/{cache_and_logger_spec.rb → cache_spec.rb} +12 -1
- data/spec/lib/gravatar/test_case_spec.rb +40 -0
- data/spec/lib/gravatar_spec.rb +97 -61
- data/spec/spec_helper.rb +37 -9
- metadata +208 -38
- data/VERSION +0 -1
- data/spec/lib/gravatar/dependencies_spec.rb +0 -33
data/spec/spec_helper.rb
CHANGED
@@ -1,16 +1,19 @@
|
|
1
|
+
require 'bundler'
|
2
|
+
Bundler.setup
|
3
|
+
|
4
|
+
require File.expand_path('../environments/rails', File.dirname(__FILE__))
|
1
5
|
require File.expand_path("../../lib/gravatar", __FILE__)
|
2
|
-
|
3
|
-
gem 'rspec'
|
4
|
-
require 'spec'
|
5
|
-
end
|
6
|
+
require 'rspec'
|
6
7
|
|
7
|
-
def
|
8
|
-
File.read(File.expand_path("../fixtures/image.jpg", __FILE__))
|
8
|
+
def mock_image_data
|
9
|
+
data = File.read(File.expand_path("../fixtures/image.jpg", __FILE__))
|
10
|
+
data.respond_to?(:force_encoding) ? data.force_encoding("BINARY") : data
|
9
11
|
end
|
10
12
|
|
11
13
|
require 'fakeweb'
|
12
|
-
FakeWeb.
|
13
|
-
|
14
|
+
FakeWeb.allow_net_connect = false
|
15
|
+
FakeWeb.register_uri(:get, "http://www.gravatar.com/avatar/ef23bdc1f1fb9e3f46843a00e5832d98", :response =>
|
16
|
+
"HTTP/1.1 200 OK\nContent-Type: image/jpg\n\n" +mock_image_data)
|
14
17
|
|
15
18
|
def new_cache
|
16
19
|
ActiveSupport::Cache::MemoryStore.new
|
@@ -27,4 +30,29 @@ class Net::HTTP
|
|
27
30
|
end
|
28
31
|
end
|
29
32
|
|
30
|
-
|
33
|
+
Gravatar::TestCase.fixtures_path = File.expand_path("fixtures/responses", File.dirname(__FILE__))
|
34
|
+
|
35
|
+
RSpec.configure do |c|
|
36
|
+
c.include Gravatar::TestCase
|
37
|
+
end
|
38
|
+
|
39
|
+
class XMLRPC::Client
|
40
|
+
def set_debug
|
41
|
+
@http.set_debug_output $stderr
|
42
|
+
end
|
43
|
+
alias _initialize initialize
|
44
|
+
def initialize(*a,&b) _initialize(*a,&b); set_debug; end
|
45
|
+
end
|
46
|
+
|
47
|
+
require 'yaml'
|
48
|
+
creds = File.expand_path("../credentials.yml", __FILE__)
|
49
|
+
if File.file?(creds)
|
50
|
+
$credentials = YAML::load(File.read(creds)).with_indifferent_access
|
51
|
+
else
|
52
|
+
$credentials = {
|
53
|
+
:primary_email => 'gravatartest123@gmail.com',
|
54
|
+
:email => 'gravatartest123@gmail.com',
|
55
|
+
:password => 'aPassword',
|
56
|
+
:email_hash => 'anEmailHash'
|
57
|
+
}.with_indifferent_access
|
58
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gravatar-ultimate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 17
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 3
|
10
|
+
version: 1.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Colin MacKenzie IV
|
@@ -15,57 +15,104 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-08-30 00:00:00
|
19
|
-
default_executable:
|
18
|
+
date: 2010-08-30 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
|
-
|
23
|
-
prerelease: false
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
21
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
25
22
|
none: false
|
26
23
|
requirements:
|
27
24
|
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
26
|
+
hash: 27
|
30
27
|
segments:
|
31
28
|
- 1
|
32
|
-
-
|
29
|
+
- 3
|
33
30
|
- 0
|
34
|
-
version: 1.
|
35
|
-
|
36
|
-
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: rspec
|
31
|
+
version: 1.3.0
|
32
|
+
requirement: *id001
|
33
|
+
type: :development
|
39
34
|
prerelease: false
|
40
|
-
|
35
|
+
name: rspec
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
41
38
|
none: false
|
42
39
|
requirements:
|
43
40
|
- - ">="
|
44
41
|
- !ruby/object:Gem::Version
|
45
|
-
hash:
|
42
|
+
hash: 15
|
46
43
|
segments:
|
47
44
|
- 1
|
45
|
+
- 2
|
46
|
+
- 8
|
47
|
+
version: 1.2.8
|
48
|
+
requirement: *id002
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
name: fakeweb
|
52
|
+
- !ruby/object:Gem::Dependency
|
53
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
hash: 31
|
59
|
+
segments:
|
60
|
+
- 2
|
48
61
|
- 3
|
49
|
-
-
|
50
|
-
version:
|
62
|
+
- 14
|
63
|
+
version: 2.3.14
|
64
|
+
requirement: *id003
|
51
65
|
type: :development
|
52
|
-
|
66
|
+
prerelease: false
|
67
|
+
name: activesupport
|
53
68
|
- !ruby/object:Gem::Dependency
|
54
|
-
|
69
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
70
|
+
none: false
|
71
|
+
requirements:
|
72
|
+
- - ~>
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
hash: 7
|
75
|
+
segments:
|
76
|
+
- 0
|
77
|
+
- 6
|
78
|
+
- 0
|
79
|
+
version: 0.6.0
|
80
|
+
requirement: *id004
|
81
|
+
type: :development
|
55
82
|
prerelease: false
|
56
|
-
|
83
|
+
name: i18n
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
57
86
|
none: false
|
58
87
|
requirements:
|
59
|
-
- -
|
88
|
+
- - ~>
|
60
89
|
- !ruby/object:Gem::Version
|
61
|
-
hash:
|
90
|
+
hash: 11
|
62
91
|
segments:
|
63
|
-
-
|
92
|
+
- 0
|
93
|
+
- 9
|
64
94
|
- 2
|
65
|
-
-
|
66
|
-
version:
|
95
|
+
- 2
|
96
|
+
version: 0.9.2.2
|
97
|
+
requirement: *id005
|
67
98
|
type: :development
|
68
|
-
|
99
|
+
prerelease: false
|
100
|
+
name: rake
|
101
|
+
- !ruby/object:Gem::Dependency
|
102
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
103
|
+
none: false
|
104
|
+
requirements:
|
105
|
+
- - ~>
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
hash: 17
|
108
|
+
segments:
|
109
|
+
- 3
|
110
|
+
- 11
|
111
|
+
version: "3.11"
|
112
|
+
requirement: *id006
|
113
|
+
type: :development
|
114
|
+
prerelease: false
|
115
|
+
name: rdoc
|
69
116
|
description: |-
|
70
117
|
The Ultimate Gravatar Gem!
|
71
118
|
|
@@ -83,25 +130,134 @@ extra_rdoc_files:
|
|
83
130
|
files:
|
84
131
|
- .document
|
85
132
|
- .gitignore
|
133
|
+
- .travis.yml
|
134
|
+
- Gemfile
|
135
|
+
- Gemfile.lock
|
86
136
|
- LICENSE
|
87
137
|
- README.rdoc
|
88
138
|
- Rakefile
|
89
|
-
-
|
139
|
+
- environments/rails-2.3/README
|
140
|
+
- environments/rails-2.3/Rakefile
|
141
|
+
- environments/rails-2.3/app/controllers/application_controller.rb
|
142
|
+
- environments/rails-2.3/app/helpers/application_helper.rb
|
143
|
+
- environments/rails-2.3/config/boot.rb
|
144
|
+
- environments/rails-2.3/config/database.yml
|
145
|
+
- environments/rails-2.3/config/environment.rb
|
146
|
+
- environments/rails-2.3/config/environments/development.rb
|
147
|
+
- environments/rails-2.3/config/environments/production.rb
|
148
|
+
- environments/rails-2.3/config/environments/test.rb
|
149
|
+
- environments/rails-2.3/config/initializers/backtrace_silencers.rb
|
150
|
+
- environments/rails-2.3/config/initializers/cookie_verification_secret.rb
|
151
|
+
- environments/rails-2.3/config/initializers/inflections.rb
|
152
|
+
- environments/rails-2.3/config/initializers/mime_types.rb
|
153
|
+
- environments/rails-2.3/config/initializers/new_rails_defaults.rb
|
154
|
+
- environments/rails-2.3/config/initializers/session_store.rb
|
155
|
+
- environments/rails-2.3/config/locales/en.yml
|
156
|
+
- environments/rails-2.3/config/routes.rb
|
157
|
+
- environments/rails-2.3/db/seeds.rb
|
158
|
+
- environments/rails-2.3/doc/README_FOR_APP
|
159
|
+
- environments/rails-2.3/public/404.html
|
160
|
+
- environments/rails-2.3/public/422.html
|
161
|
+
- environments/rails-2.3/public/500.html
|
162
|
+
- environments/rails-2.3/public/favicon.ico
|
163
|
+
- environments/rails-2.3/public/images/rails.png
|
164
|
+
- environments/rails-2.3/public/index.html
|
165
|
+
- environments/rails-2.3/public/javascripts/application.js
|
166
|
+
- environments/rails-2.3/public/javascripts/controls.js
|
167
|
+
- environments/rails-2.3/public/javascripts/dragdrop.js
|
168
|
+
- environments/rails-2.3/public/javascripts/effects.js
|
169
|
+
- environments/rails-2.3/public/javascripts/prototype.js
|
170
|
+
- environments/rails-2.3/public/robots.txt
|
171
|
+
- environments/rails-2.3/script/about
|
172
|
+
- environments/rails-2.3/script/console
|
173
|
+
- environments/rails-2.3/script/dbconsole
|
174
|
+
- environments/rails-2.3/script/destroy
|
175
|
+
- environments/rails-2.3/script/generate
|
176
|
+
- environments/rails-2.3/script/performance/benchmarker
|
177
|
+
- environments/rails-2.3/script/performance/profiler
|
178
|
+
- environments/rails-2.3/script/plugin
|
179
|
+
- environments/rails-2.3/script/runner
|
180
|
+
- environments/rails-2.3/script/server
|
181
|
+
- environments/rails-2.3/test/performance/browsing_test.rb
|
182
|
+
- environments/rails-2.3/test/test_helper.rb
|
183
|
+
- environments/rails-3.1/.gitignore
|
184
|
+
- environments/rails-3.1/README
|
185
|
+
- environments/rails-3.1/Rakefile
|
186
|
+
- environments/rails-3.1/app/assets/images/rails.png
|
187
|
+
- environments/rails-3.1/app/assets/javascripts/application.js
|
188
|
+
- environments/rails-3.1/app/assets/stylesheets/application.css
|
189
|
+
- environments/rails-3.1/app/controllers/application_controller.rb
|
190
|
+
- environments/rails-3.1/app/helpers/application_helper.rb
|
191
|
+
- environments/rails-3.1/app/mailers/.gitkeep
|
192
|
+
- environments/rails-3.1/app/models/.gitkeep
|
193
|
+
- environments/rails-3.1/app/views/layouts/application.html.erb
|
194
|
+
- environments/rails-3.1/config.ru
|
195
|
+
- environments/rails-3.1/config/application.rb
|
196
|
+
- environments/rails-3.1/config/boot.rb
|
197
|
+
- environments/rails-3.1/config/database.yml
|
198
|
+
- environments/rails-3.1/config/environment.rb
|
199
|
+
- environments/rails-3.1/config/environments/development.rb
|
200
|
+
- environments/rails-3.1/config/environments/production.rb
|
201
|
+
- environments/rails-3.1/config/environments/test.rb
|
202
|
+
- environments/rails-3.1/config/initializers/backtrace_silencers.rb
|
203
|
+
- environments/rails-3.1/config/initializers/inflections.rb
|
204
|
+
- environments/rails-3.1/config/initializers/mime_types.rb
|
205
|
+
- environments/rails-3.1/config/initializers/secret_token.rb
|
206
|
+
- environments/rails-3.1/config/initializers/session_store.rb
|
207
|
+
- environments/rails-3.1/config/initializers/wrap_parameters.rb
|
208
|
+
- environments/rails-3.1/config/locales/en.yml
|
209
|
+
- environments/rails-3.1/config/routes.rb
|
210
|
+
- environments/rails-3.1/db/seeds.rb
|
211
|
+
- environments/rails-3.1/doc/README_FOR_APP
|
212
|
+
- environments/rails-3.1/lib/assets/.gitkeep
|
213
|
+
- environments/rails-3.1/lib/tasks/.gitkeep
|
214
|
+
- environments/rails-3.1/public/404.html
|
215
|
+
- environments/rails-3.1/public/422.html
|
216
|
+
- environments/rails-3.1/public/500.html
|
217
|
+
- environments/rails-3.1/public/favicon.ico
|
218
|
+
- environments/rails-3.1/public/index.html
|
219
|
+
- environments/rails-3.1/public/robots.txt
|
220
|
+
- environments/rails-3.1/script/rails
|
221
|
+
- environments/rails-3.1/test/fixtures/.gitkeep
|
222
|
+
- environments/rails-3.1/test/functional/.gitkeep
|
223
|
+
- environments/rails-3.1/test/integration/.gitkeep
|
224
|
+
- environments/rails-3.1/test/performance/browsing_test.rb
|
225
|
+
- environments/rails-3.1/test/test_helper.rb
|
226
|
+
- environments/rails-3.1/test/unit/.gitkeep
|
227
|
+
- environments/rails-3.1/vendor/assets/stylesheets/.gitkeep
|
228
|
+
- environments/rails-3.1/vendor/plugins/.gitkeep
|
229
|
+
- environments/rails.rb
|
230
|
+
- gemfiles/rails-2.3.14
|
231
|
+
- gemfiles/rails-2.3.14.lock
|
232
|
+
- gemfiles/rails-3.1.3
|
233
|
+
- gemfiles/rails-3.1.3.lock
|
90
234
|
- gravatar-ultimate.gemspec
|
91
235
|
- lib/gravatar-ultimate.rb
|
92
236
|
- lib/gravatar.rb
|
93
237
|
- lib/gravatar/cache.rb
|
94
238
|
- lib/gravatar/dependencies.rb
|
239
|
+
- lib/gravatar/test_case.rb
|
240
|
+
- lib/gravatar/version.rb
|
95
241
|
- lib/gravatar_ultimate.rb
|
96
242
|
- spec/credentials.yml.example
|
97
243
|
- spec/fixtures/image.jpg
|
98
|
-
- spec/
|
244
|
+
- spec/fixtures/responses/grav.addresses
|
245
|
+
- spec/fixtures/responses/grav.deleteUserimage
|
246
|
+
- spec/fixtures/responses/grav.exists
|
247
|
+
- spec/fixtures/responses/grav.exists.invalid
|
248
|
+
- spec/fixtures/responses/grav.exists.multiple_invalid
|
249
|
+
- spec/fixtures/responses/grav.removeImage
|
250
|
+
- spec/fixtures/responses/grav.saveData
|
251
|
+
- spec/fixtures/responses/grav.saveUrl
|
252
|
+
- spec/fixtures/responses/grav.test
|
253
|
+
- spec/fixtures/responses/grav.useUserimage
|
254
|
+
- spec/fixtures/responses/grav.userimages
|
99
255
|
- spec/lib/gravatar/cache_setup_spec.rb
|
100
|
-
- spec/lib/gravatar/
|
256
|
+
- spec/lib/gravatar/cache_spec.rb
|
257
|
+
- spec/lib/gravatar/test_case_spec.rb
|
101
258
|
- spec/lib/gravatar_spec.rb
|
102
259
|
- spec/spec.opts
|
103
260
|
- spec/spec_helper.rb
|
104
|
-
has_rdoc: true
|
105
261
|
homepage: http://www.thoughtsincomputation.com/
|
106
262
|
licenses: []
|
107
263
|
|
@@ -131,13 +287,27 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
131
287
|
requirements: []
|
132
288
|
|
133
289
|
rubyforge_project:
|
134
|
-
rubygems_version: 1.
|
290
|
+
rubygems_version: 1.8.10
|
135
291
|
signing_key:
|
136
292
|
specification_version: 3
|
137
293
|
summary: "A gem for interfacing with the entire Gravatar API: not just images, but the XML-RPC API too!"
|
138
294
|
test_files:
|
139
|
-
- spec/
|
140
|
-
- spec/
|
141
|
-
- spec/
|
142
|
-
- spec/
|
295
|
+
- spec/credentials.yml.example
|
296
|
+
- spec/fixtures/image.jpg
|
297
|
+
- spec/fixtures/responses/grav.addresses
|
298
|
+
- spec/fixtures/responses/grav.deleteUserimage
|
299
|
+
- spec/fixtures/responses/grav.exists
|
300
|
+
- spec/fixtures/responses/grav.exists.invalid
|
301
|
+
- spec/fixtures/responses/grav.exists.multiple_invalid
|
302
|
+
- spec/fixtures/responses/grav.removeImage
|
303
|
+
- spec/fixtures/responses/grav.saveData
|
304
|
+
- spec/fixtures/responses/grav.saveUrl
|
305
|
+
- spec/fixtures/responses/grav.test
|
306
|
+
- spec/fixtures/responses/grav.useUserimage
|
307
|
+
- spec/fixtures/responses/grav.userimages
|
143
308
|
- spec/lib/gravatar/cache_setup_spec.rb
|
309
|
+
- spec/lib/gravatar/cache_spec.rb
|
310
|
+
- spec/lib/gravatar/test_case_spec.rb
|
311
|
+
- spec/lib/gravatar_spec.rb
|
312
|
+
- spec/spec.opts
|
313
|
+
- spec/spec_helper.rb
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
1.0.2
|
@@ -1,33 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
|
3
|
-
describe "Dependencies" do
|
4
|
-
context "within Rails" do
|
5
|
-
before(:each) do
|
6
|
-
module ::Rails
|
7
|
-
def self.configuration
|
8
|
-
return @config if @config
|
9
|
-
@config = Object.new
|
10
|
-
klass = class << @config; self; end
|
11
|
-
klass.instance_eval do
|
12
|
-
def gem(*a, &b); end
|
13
|
-
public :gem
|
14
|
-
end
|
15
|
-
@config
|
16
|
-
end
|
17
|
-
|
18
|
-
module VERSION
|
19
|
-
STRING = "2.3.5"
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
it "should set a Rails gem dependency" do
|
25
|
-
Rails.configuration.should_receive(:gem, :with => ["sc-core-ext", ">= 1.2.0"])
|
26
|
-
load File.expand_path("../../../../lib/gravatar/dependencies.rb", __FILE__)
|
27
|
-
end
|
28
|
-
|
29
|
-
after(:each) { silence_warnings { Object.send(:remove_const, :Rails) } }
|
30
|
-
end
|
31
|
-
|
32
|
-
# Don't know how to test the inclusion of sc-core-ext via rubygems, but I suppose there's no reason that should fail.
|
33
|
-
end
|