has_gravatar 0.0.1 → 0.0.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7dd48ea960895ae0720de73cc33f8d5cb1ac02f
|
4
|
+
data.tar.gz: 11b077455a547e9331cdcb384ba79e5293336244
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83a9534945e06f3847125ade40e6eefbc6eef6e364ae01ca87912b467ec570c4db815bbf8f2d552f35b313cbab94e8fa286a12c62ce073bbdedd5c7316a6e483
|
7
|
+
data.tar.gz: 976f5679674d8f7403191f4810ec2b63780a34beaf078b420817817aa21f7380c12edf6bc4b84b77ff7a042b4a7157ea64f8b1184fe70d96710b850798a94521
|
data/lib/has_gravatar/version.rb
CHANGED
@@ -5,24 +5,26 @@ describe 'Model' do
|
|
5
5
|
HasGravatar::VERSION.should_not be_nil
|
6
6
|
end
|
7
7
|
|
8
|
+
let(:user) { User.first }
|
9
|
+
|
8
10
|
it 'should respond to email_gravatar method' do
|
9
|
-
|
11
|
+
user.should respond_to :email_gravatar
|
10
12
|
end
|
11
13
|
|
12
14
|
it 'should return a valid gravatar url for the given email address' do
|
13
15
|
# Hash calculated by md5.cz
|
14
|
-
|
16
|
+
user.email_gravatar.should eq 'http://gravatar.com/avatar/23463b99b62a72f26ed677cc556c44e8'
|
15
17
|
end
|
16
18
|
|
17
19
|
it 'should support https gravatars' do
|
18
|
-
|
20
|
+
user.email_gravatar(secure: true).should start_with 'https://secure.gravatar'
|
19
21
|
end
|
20
22
|
|
21
23
|
it 'should support default images' do
|
22
|
-
|
24
|
+
user.email_gravatar(default_avatar: 'http://example.com/public/default_gravatar.png').should include 'example.com'
|
23
25
|
end
|
24
26
|
|
25
27
|
it 'should support gravatar size' do
|
26
|
-
|
28
|
+
user.email_gravatar(size: 128).should include '?s=128'
|
27
29
|
end
|
28
30
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: has_gravatar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Gama
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -100,7 +100,7 @@ files:
|
|
100
100
|
- lib/has_gravatar/extensions.rb
|
101
101
|
- lib/has_gravatar/version.rb
|
102
102
|
- spec/db/.gitkeep
|
103
|
-
- spec/lib/
|
103
|
+
- spec/lib/has_gravatar_spec.rb
|
104
104
|
- spec/spec_helper.rb
|
105
105
|
- spec/support/data.rb
|
106
106
|
- spec/support/models.rb
|
@@ -131,7 +131,7 @@ specification_version: 4
|
|
131
131
|
summary: Dead simple Gravatar URL generator
|
132
132
|
test_files:
|
133
133
|
- spec/db/.gitkeep
|
134
|
-
- spec/lib/
|
134
|
+
- spec/lib/has_gravatar_spec.rb
|
135
135
|
- spec/spec_helper.rb
|
136
136
|
- spec/support/data.rb
|
137
137
|
- spec/support/models.rb
|