ve_gravatar_image_tag 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gravatar_image_tag.rb +1 -1
- data/spec/gravatar_image_tag_spec.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8961fd71174510fa9aaa7619bc382e17506b6f26fc14117fbdedc266dc05a4af
|
4
|
+
data.tar.gz: 31fa8333067cbda56013680c52c58bc7618cbbc4798e2fe2ea81dba98ccfc96d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a20456853561a88abd0e93c423ab8204dbe5fb9ba5cb03823bb5075e20905852eb9bfebbac701cd90f3128293da8b68ca038966cef14834464df9e4f6b42849c
|
7
|
+
data.tar.gz: 281964d789e15af9f372f96bf168685b5e6a27fcfc9f258092526e8efe921ffd05379672f481e4d16ebadd284cf594321af962a3bcf8f94e7c76fcbe01703516
|
data/lib/gravatar_image_tag.rb
CHANGED
@@ -113,7 +113,7 @@ module GravatarImageTag
|
|
113
113
|
def self.url_params(gravatar_params)
|
114
114
|
return nil if gravatar_params.keys.size == 0
|
115
115
|
array = gravatar_params.map { |k, v| "#{k}=#{value_cleaner(v)}" }
|
116
|
-
"?#{array.join('&')}"
|
116
|
+
"?#{array.join('&')}"
|
117
117
|
end
|
118
118
|
|
119
119
|
def self.value_cleaner(value)
|
@@ -109,6 +109,10 @@ describe GravatarImageTag do
|
|
109
109
|
expect(view.gravatar_image_tag(" camelCaseEmail@example.com\t\n")).to eq(view.gravatar_image_tag('camelcaseemail@example.com'))
|
110
110
|
end
|
111
111
|
|
112
|
+
it 'concatinates the URL params with & which is the escaped & cahrachter' do
|
113
|
+
expect(view.gravatar_image_tag(email).match(/\&/)).to be_truthy
|
114
|
+
end
|
115
|
+
|
112
116
|
end
|
113
117
|
|
114
118
|
context '#gravatar_image_url' do
|