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.
Files changed (127) hide show
  1. data/.gitignore +13 -0
  2. data/.travis.yml +16 -0
  3. data/Gemfile +6 -0
  4. data/Gemfile.lock +37 -0
  5. data/README.rdoc +19 -25
  6. data/Rakefile +9 -38
  7. data/environments/rails-2.3/README +243 -0
  8. data/environments/rails-2.3/Rakefile +10 -0
  9. data/environments/rails-2.3/app/controllers/application_controller.rb +10 -0
  10. data/environments/rails-2.3/app/helpers/application_helper.rb +3 -0
  11. data/environments/rails-2.3/config/boot.rb +114 -0
  12. data/environments/rails-2.3/config/database.yml +22 -0
  13. data/environments/rails-2.3/config/environment.rb +43 -0
  14. data/environments/rails-2.3/config/environments/development.rb +17 -0
  15. data/environments/rails-2.3/config/environments/production.rb +28 -0
  16. data/environments/rails-2.3/config/environments/test.rb +28 -0
  17. data/environments/rails-2.3/config/initializers/backtrace_silencers.rb +7 -0
  18. data/environments/rails-2.3/config/initializers/cookie_verification_secret.rb +7 -0
  19. data/environments/rails-2.3/config/initializers/inflections.rb +10 -0
  20. data/environments/rails-2.3/config/initializers/mime_types.rb +5 -0
  21. data/environments/rails-2.3/config/initializers/new_rails_defaults.rb +21 -0
  22. data/environments/rails-2.3/config/initializers/session_store.rb +15 -0
  23. data/environments/rails-2.3/config/locales/en.yml +5 -0
  24. data/environments/rails-2.3/config/routes.rb +43 -0
  25. data/environments/rails-2.3/db/seeds.rb +7 -0
  26. data/environments/rails-2.3/doc/README_FOR_APP +2 -0
  27. data/environments/rails-2.3/public/404.html +30 -0
  28. data/environments/rails-2.3/public/422.html +30 -0
  29. data/environments/rails-2.3/public/500.html +30 -0
  30. data/environments/rails-2.3/public/favicon.ico +0 -0
  31. data/environments/rails-2.3/public/images/rails.png +0 -0
  32. data/environments/rails-2.3/public/index.html +275 -0
  33. data/environments/rails-2.3/public/javascripts/application.js +2 -0
  34. data/environments/rails-2.3/public/javascripts/controls.js +963 -0
  35. data/environments/rails-2.3/public/javascripts/dragdrop.js +973 -0
  36. data/environments/rails-2.3/public/javascripts/effects.js +1128 -0
  37. data/environments/rails-2.3/public/javascripts/prototype.js +4320 -0
  38. data/environments/rails-2.3/public/robots.txt +5 -0
  39. data/environments/rails-2.3/script/about +4 -0
  40. data/environments/rails-2.3/script/console +3 -0
  41. data/environments/rails-2.3/script/dbconsole +3 -0
  42. data/environments/rails-2.3/script/destroy +3 -0
  43. data/environments/rails-2.3/script/generate +3 -0
  44. data/environments/rails-2.3/script/performance/benchmarker +3 -0
  45. data/environments/rails-2.3/script/performance/profiler +3 -0
  46. data/environments/rails-2.3/script/plugin +3 -0
  47. data/environments/rails-2.3/script/runner +3 -0
  48. data/environments/rails-2.3/script/server +3 -0
  49. data/environments/rails-2.3/test/performance/browsing_test.rb +9 -0
  50. data/environments/rails-2.3/test/test_helper.rb +38 -0
  51. data/environments/rails-3.1/.gitignore +15 -0
  52. data/environments/rails-3.1/README +261 -0
  53. data/environments/rails-3.1/Rakefile +7 -0
  54. data/environments/rails-3.1/app/assets/images/rails.png +0 -0
  55. data/environments/rails-3.1/app/assets/javascripts/application.js +9 -0
  56. data/environments/rails-3.1/app/assets/stylesheets/application.css +7 -0
  57. data/environments/rails-3.1/app/controllers/application_controller.rb +3 -0
  58. data/environments/rails-3.1/app/helpers/application_helper.rb +2 -0
  59. data/environments/rails-3.1/app/mailers/.gitkeep +0 -0
  60. data/environments/rails-3.1/app/models/.gitkeep +0 -0
  61. data/environments/rails-3.1/app/views/layouts/application.html.erb +14 -0
  62. data/environments/rails-3.1/config.ru +4 -0
  63. data/environments/rails-3.1/config/application.rb +48 -0
  64. data/environments/rails-3.1/config/boot.rb +6 -0
  65. data/environments/rails-3.1/config/database.yml +25 -0
  66. data/environments/rails-3.1/config/environment.rb +5 -0
  67. data/environments/rails-3.1/config/environments/development.rb +30 -0
  68. data/environments/rails-3.1/config/environments/production.rb +60 -0
  69. data/environments/rails-3.1/config/environments/test.rb +39 -0
  70. data/environments/rails-3.1/config/initializers/backtrace_silencers.rb +7 -0
  71. data/environments/rails-3.1/config/initializers/inflections.rb +10 -0
  72. data/environments/rails-3.1/config/initializers/mime_types.rb +5 -0
  73. data/environments/rails-3.1/config/initializers/secret_token.rb +7 -0
  74. data/environments/rails-3.1/config/initializers/session_store.rb +8 -0
  75. data/environments/rails-3.1/config/initializers/wrap_parameters.rb +14 -0
  76. data/environments/rails-3.1/config/locales/en.yml +5 -0
  77. data/environments/rails-3.1/config/routes.rb +58 -0
  78. data/environments/rails-3.1/db/seeds.rb +7 -0
  79. data/environments/rails-3.1/doc/README_FOR_APP +2 -0
  80. data/environments/rails-3.1/lib/assets/.gitkeep +0 -0
  81. data/environments/rails-3.1/lib/tasks/.gitkeep +0 -0
  82. data/environments/rails-3.1/public/404.html +26 -0
  83. data/environments/rails-3.1/public/422.html +26 -0
  84. data/environments/rails-3.1/public/500.html +26 -0
  85. data/environments/rails-3.1/public/favicon.ico +0 -0
  86. data/environments/rails-3.1/public/index.html +241 -0
  87. data/environments/rails-3.1/public/robots.txt +5 -0
  88. data/environments/rails-3.1/script/rails +6 -0
  89. data/environments/rails-3.1/test/fixtures/.gitkeep +0 -0
  90. data/environments/rails-3.1/test/functional/.gitkeep +0 -0
  91. data/environments/rails-3.1/test/integration/.gitkeep +0 -0
  92. data/environments/rails-3.1/test/performance/browsing_test.rb +12 -0
  93. data/environments/rails-3.1/test/test_helper.rb +13 -0
  94. data/environments/rails-3.1/test/unit/.gitkeep +0 -0
  95. data/environments/rails-3.1/vendor/assets/stylesheets/.gitkeep +0 -0
  96. data/environments/rails-3.1/vendor/plugins/.gitkeep +0 -0
  97. data/environments/rails.rb +26 -0
  98. data/gemfiles/rails-2.3.14 +5 -0
  99. data/gemfiles/rails-2.3.14.lock +55 -0
  100. data/gemfiles/rails-3.1.3 +5 -0
  101. data/gemfiles/rails-3.1.3.lock +110 -0
  102. data/gravatar-ultimate.gemspec +13 -53
  103. data/lib/gravatar.rb +68 -30
  104. data/lib/gravatar/cache.rb +27 -21
  105. data/lib/gravatar/dependencies.rb +1 -18
  106. data/lib/gravatar/test_case.rb +105 -0
  107. data/lib/gravatar/version.rb +8 -0
  108. data/spec/fixtures/image.jpg +0 -0
  109. data/spec/fixtures/responses/grav.addresses +24 -0
  110. data/spec/fixtures/responses/grav.deleteUserimage +18 -0
  111. data/spec/fixtures/responses/grav.exists +20 -0
  112. data/spec/fixtures/responses/grav.exists.invalid +20 -0
  113. data/spec/fixtures/responses/grav.exists.multiple_invalid +21 -0
  114. data/spec/fixtures/responses/grav.removeImage +20 -0
  115. data/spec/fixtures/responses/grav.saveData +18 -0
  116. data/spec/fixtures/responses/grav.saveUrl +18 -0
  117. data/spec/fixtures/responses/grav.test +22 -0
  118. data/spec/fixtures/responses/grav.useUserimage +20 -0
  119. data/spec/fixtures/responses/grav.userimages +27 -0
  120. data/spec/lib/gravatar/cache_setup_spec.rb +2 -0
  121. data/spec/lib/gravatar/{cache_and_logger_spec.rb → cache_spec.rb} +12 -1
  122. data/spec/lib/gravatar/test_case_spec.rb +40 -0
  123. data/spec/lib/gravatar_spec.rb +97 -61
  124. data/spec/spec_helper.rb +37 -9
  125. metadata +208 -38
  126. data/VERSION +0 -1
  127. data/spec/lib/gravatar/dependencies_spec.rb +0 -33
@@ -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
- unless defined?(Spec)
3
- gem 'rspec'
4
- require 'spec'
5
- end
6
+ require 'rspec'
6
7
 
7
- def image_data
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.register_uri(:get, "http://www.gravatar.com/avatar/5d8c7a8d951a28e10bd7407f33df6d63", :response =>
13
- "HTTP/1.1 200 OK\nContent-Type: image/jpg\n\n" +image_data)
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
- $credentials = YAML::load(File.read(File.expand_path("../credentials.yml", __FILE__))).with_indifferent_access
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: 19
5
- prerelease: false
4
+ hash: 17
5
+ prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 2
10
- version: 1.0.2
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 -04:00
19
- default_executable:
18
+ date: 2010-08-30 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
- name: sc-core-ext
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: 31
26
+ hash: 27
30
27
  segments:
31
28
  - 1
32
- - 2
29
+ - 3
33
30
  - 0
34
- version: 1.2.0
35
- type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: rspec
31
+ version: 1.3.0
32
+ requirement: *id001
33
+ type: :development
39
34
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
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: 27
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
- - 0
50
- version: 1.3.0
62
+ - 14
63
+ version: 2.3.14
64
+ requirement: *id003
51
65
  type: :development
52
- version_requirements: *id002
66
+ prerelease: false
67
+ name: activesupport
53
68
  - !ruby/object:Gem::Dependency
54
- name: fakeweb
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
- requirement: &id003 !ruby/object:Gem::Requirement
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: 15
90
+ hash: 11
62
91
  segments:
63
- - 1
92
+ - 0
93
+ - 9
64
94
  - 2
65
- - 8
66
- version: 1.2.8
95
+ - 2
96
+ version: 0.9.2.2
97
+ requirement: *id005
67
98
  type: :development
68
- version_requirements: *id003
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
- - VERSION
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/lib/gravatar/cache_and_logger_spec.rb
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/dependencies_spec.rb
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.3.7
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/spec_helper.rb
140
- - spec/lib/gravatar_spec.rb
141
- - spec/lib/gravatar/dependencies_spec.rb
142
- - spec/lib/gravatar/cache_and_logger_spec.rb
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