robotag 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/robotag.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab44b297b1fd2c5f003e7825deb734e12d46dc62470b02abd3da9feed0b9bdbc
4
- data.tar.gz: ab1d7b1ddae29e276e481a7c72d957c1526c5cac46414ba604e30132a5983d7d
3
+ metadata.gz: cb78c925af0fe07b9f1f9755931d591d1c07b453bb870f06f247c65ed364e3e2
4
+ data.tar.gz: 5bca231c2572f449cf6448c340de79838e0307691dd2d17f0b5bd71db26e09f4
5
5
  SHA512:
6
- metadata.gz: 2ea9fed578bce9a570ce0a526d0e5ec2c83d466a50eac068b5d95cdda7cdfb5cf3e741efe7ac011b6c9fc89b25c20496fd462fd02a2d431ac047ac69659d4919
7
- data.tar.gz: f22e93f4f1dfc97ee5851795214a3f909cf285466f306cd32bd0fc59f05bf192c71ebe17b81df86fbdcfc4ca14e8fe6a85d8038df6a382784b186c369e042cfc
6
+ metadata.gz: 2ff94d9b1e792b5983fbe1cac91eb345d234c42ed18cf4dd85e53aac3c381d7deb7d66f1070896934d515ef145ae98c9e54d9206e3319077edd86c795de4d15f
7
+ data.tar.gz: 26b738a36cf9c0fac70ecd97b27b93adc841916e830021c927eeb38e520cceff1676b069de98050d473e19ee625263c3ae9c7dc4563945eb9badeb0d686e0c85
data/lib/robotag.rb CHANGED
@@ -72,7 +72,7 @@ class Robotag
72
72
  if action == :add
73
73
  file_lines[tag_index] = "#{file_lines[tag_index].chomp} #{tag}\n"
74
74
  elsif action == :remove
75
- file_lines[tag_index].delete!(tag)
75
+ file_lines[tag_index].gsub!(tag, '')
76
76
  end
77
77
 
78
78
  self.write_directives[file_path] = file_lines.join
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: robotag
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David West
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-27 00:00:00.000000000 Z
11
+ date: 2023-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec