strip_comments 0.2.0 → 0.3.0

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: 24843c0b9b7dd3bdf82bd0e951cb3ce0c981f294d7a6324577e84bccffb7362e
4
- data.tar.gz: 2d6e82506144c68b5ad333c21cd41dad14df6f6eb988e77f8e280df538dba88b
3
+ metadata.gz: 467eeea86bc98782dcb2e27b5da9433d5e2a9f828179ddee79a1109d213b4240
4
+ data.tar.gz: d0a33c9f55e6dda57f77e6d769cec5641880acd8130352664d08b1d6f193a0b7
5
5
  SHA512:
6
- metadata.gz: 0d675f04fef958452d383dbde97048cd46e074b7678508d24bf060e2f88a6d73d3fa3b39a33959b0bdd05f0cd536d46d8ade823162fac3750600e88e652aa181
7
- data.tar.gz: '099ca0984bebe01c6eef730d5877272642acbcdb0c6a4e5337b7c18c1d092dfae8fc2f488fa5e829270fe9f492364d62e82d3db672bcb2bff330b8a8189ebf14'
6
+ metadata.gz: bb1e184ae7e6136f6cf2830a3f7b7a207b0bdc957e5d233be1fef64a103d50c1fd9994c8f88666631f7a806a11b10748edf0c722ea9a2da40e482c30d4f64a1c
7
+ data.tar.gz: 661358114b7747313b2d1ddab3f8b73eda96a4d656985467acb39029691ff95a64d2d914d21dd7fbb3a21faabfdf0a60ddcfe6c90dea77fe8dbf2296732989e7
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Uses regular expressions to strip things that look like comments from strings.
4
4
 
5
+ **Supported extensions:** css, glsl, html, properties, yml
6
+
5
7
  ## Installation
6
8
 
7
9
  Add this line to your application's Gemfile:
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module StripComments
4
- VERSION = "0.2.0"
4
+ VERSION = "0.3.0"
5
5
  end
@@ -47,7 +47,7 @@ module StripComments
47
47
  end
48
48
 
49
49
  def self.strip_properties(str)
50
- str.gsub(/(\n)[\t ]*#[^\n]+/, '\\1')
50
+ str.gsub(/(\n)[\t ]*#[^\n]+/, '\\1').gsub(/^#[^\n]+/, '\\1')
51
51
  end
52
52
 
53
53
  def self.strip_glsl(str)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strip_comments
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jevon Wright
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-19 00:00:00.000000000 Z
11
+ date: 2022-10-25 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Uses regular expressions to strip things that look like comments from
14
14
  strings