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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b47a98200804c593e310756fc0db7925819ec9758043ab706635ebe2a364cdae
4
- data.tar.gz: 3c539d75cd5a2a4ccb57c7bb5c431119ba90acb6d1e9bb897cfcadaad30d9f07
3
+ metadata.gz: 8961fd71174510fa9aaa7619bc382e17506b6f26fc14117fbdedc266dc05a4af
4
+ data.tar.gz: 31fa8333067cbda56013680c52c58bc7618cbbc4798e2fe2ea81dba98ccfc96d
5
5
  SHA512:
6
- metadata.gz: e03e6f5f3324767c5d3590a120781d79700a22f0a96ffe29f9a4ccc5452cbd1a6450e390d734c5376429e3e4b3c6c48286d2fd0fdecaad57aeeb0ad60dbd7013
7
- data.tar.gz: 4181ba53b35e2e44c9ae871f8925890ff98c10c7630f88936b6b52f75c144c2be9ca63d9a7a47cd077ae54532a36548195ef5399897bbd6870ae0f3fa0f7689e
6
+ metadata.gz: a20456853561a88abd0e93c423ab8204dbe5fb9ba5cb03823bb5075e20905852eb9bfebbac701cd90f3128293da8b68ca038966cef14834464df9e4f6b42849c
7
+ data.tar.gz: 281964d789e15af9f372f96bf168685b5e6a27fcfc9f258092526e8efe921ffd05379672f481e4d16ebadd284cf594321af962a3bcf8f94e7c76fcbe01703516
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ve_gravatar_image_tag
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Deering