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: 666144ab54a43142f8153d309b33d9da7deed3d7
4
- data.tar.gz: ae9978110b6b3902657e6b3145aecd3c8e04885c
3
+ metadata.gz: f7dd48ea960895ae0720de73cc33f8d5cb1ac02f
4
+ data.tar.gz: 11b077455a547e9331cdcb384ba79e5293336244
5
5
  SHA512:
6
- metadata.gz: 921c58028560835667bc5642711cf3cf922f00a13f1ace2ec74c4d78e6646378803f0416ea35058ebc9523e5273e17779b561333c4aba18d345726553dfaf19e
7
- data.tar.gz: 3042cada6b5f23a0d07a1d9581b39a7a9d6772a61cbd2e6e17fa4368d66a22629711d9fa58f625c2e2c6a67e5d45574a9dcbdfc1e2187cb23a984b548e89a065
6
+ metadata.gz: 83a9534945e06f3847125ade40e6eefbc6eef6e364ae01ca87912b467ec570c4db815bbf8f2d552f35b313cbab94e8fa286a12c62ce073bbdedd5c7316a6e483
7
+ data.tar.gz: 976f5679674d8f7403191f4810ec2b63780a34beaf078b420817817aa21f7380c12edf6bc4b84b77ff7a042b4a7157ea64f8b1184fe70d96710b850798a94521
@@ -1,3 +1,3 @@
1
1
  module HasGravatar
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -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
- User.first.should respond_to :email_gravatar
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
- User.first.email_gravatar.should eq 'http://gravatar.com/avatar/23463b99b62a72f26ed677cc556c44e8'
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
- User.first.email_gravatar(secure: true).should start_with 'https://secure.gravatar'
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
- User.first.email_gravatar(default_avatar: 'http://example.com/public/default_gravatar.png').should include 'example.com'
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
- User.first.email_gravatar(size: 128).should include '?s=128'
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.1
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-18 00:00:00.000000000 Z
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/model_caching_spec.rb
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/model_caching_spec.rb
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