strip-tags 1.1.0 → 1.1.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: b1896482a379f20b235dc7950a39bfe3b12a64f8965bb8a06670b92347d7f2f3
4
- data.tar.gz: c4baff69c4e00728f18bbc1dda018c438ac63469041a84202e94cbd7155d4c7f
3
+ metadata.gz: '0028c1ad9d486eef4c972747922e9a484fc7ff2356b488c31175eee5f08774ce'
4
+ data.tar.gz: b2cb48f07cb9e2d12e0d21bb128038c3d22fb46ef40cf36762ff5dd92c8d4804
5
5
  SHA512:
6
- metadata.gz: d3a504cf1cff70eafb985d5f9874d7bb1e2cb92754d487116ccdda2df363acda7620ed701ef5549cb1dd258667e5159a8b3e961c2a8501c170931298884ba924
7
- data.tar.gz: 8d0e77a218f49b9e2719862f44e8fb66cfe9eecd31056e8383ec400e9385896216cd94d90882af8c06c599928c56f87b8f9430afc7c11b81a1cadd21b7820ec3
6
+ metadata.gz: 6cc80ad2c09f2df5eb7e6fb45c2bc50dc2d7233ce6ec4aa37ccf17690f7d7f88a3bf6fec8b547e05c2ff9c771df7db1c2ccd3a52528fdcfa05b3855d71825729
7
+ data.tar.gz: 4a0d4e2b8f0bb28024c2aea463359c7b094fd89b6b6f5de434878dad8f566a06c64f2c96289af8f84a2bc52abea96630c18085d27ddea77145938b9601d04367
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- strip-tags (1.1.0)
4
+ strip-tags (1.1.1)
5
5
  activemodel (>= 5.2)
6
6
 
7
7
  GEM
@@ -30,10 +30,10 @@ module StripTags
30
30
  @attribute = attribute
31
31
  subject.send("#{@attribute}=", "foo> & <<script>alert('xss')</script>")
32
32
  subject.valid?
33
- if Rails::VERSION::MAJOR <= 7.0
34
- subject.send(@attribute) == "foo> & <"
33
+ if Gem::Version.new(Rails.version) >= Gem::Version.new("7.1")
34
+ subject.send(@attribute) == "foo> & <alert('xss')"
35
35
  else
36
- subject.send(@attribute) == "foo> & alert('xss')"
36
+ subject.send(@attribute) == "foo> & <"
37
37
  end
38
38
  end
39
39
  end
@@ -1,3 +1,3 @@
1
1
  module StripTags
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strip-tags
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Moen Wulffeld
@@ -53,8 +53,6 @@ files:
53
53
  - LICENSE
54
54
  - README.md
55
55
  - Rakefile
56
- - gemfiles/activemodel-7.0.gemfile
57
- - gemfiles/activemodel-7.1.gemfile
58
56
  - lib/strip-tags.rb
59
57
  - lib/strip-tags/matchers.rb
60
58
  - lib/strip-tags/version.rb
@@ -1,7 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem "activemodel", "~> 7.0.0"
4
-
5
- eval_gemfile File.expand_path('../Gemfile', __FILE__)
6
-
7
- gemspec path: "../"
@@ -1,7 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem "activemodel", "~> 7.1.0"
4
-
5
- eval_gemfile File.expand_path('../../Gemfile', __FILE__)
6
-
7
- gemspec path: "../"