theme-juice 0.20.6 → 0.20.7

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
  SHA1:
3
- metadata.gz: 053bfab86a011906587a1d927215701bf098e334
4
- data.tar.gz: 8c63726d95e6626d8e6103850ead6c0625d7e481
3
+ metadata.gz: 00cc64ebbbb195b02b059113c00c87682eafeefa
4
+ data.tar.gz: a58715a1ad2613d2191f488e6818cd67b01e06a6
5
5
  SHA512:
6
- metadata.gz: 240829b5fd0c655c08867322a63ebbb9ecec313f2d10229bc0459d31c2a476cf77b91000a735e4ff1e7520c94ea782042a5edf9cb1142fdad81abb98033bbf59
7
- data.tar.gz: 9b167b1512a1358f5d316dff14d76502b2220ee3c40ab48239f86caaee9524785e8cdda91dbc21237b7ca41f60a4b632ae61eff23287238e29d2c681746329fd
6
+ metadata.gz: 47ba97802797ab68ae0b4b82e238058e862e0085f363b43905b046fd7f9ba3de5d59ab5ddcf9f727d17c32b8cfedfc6cc440901f4af3e33a7ecca36a62c5aff8
7
+ data.tar.gz: aadc35ab094d95fd0fdb567d57904fa5865e18443117d9371ef790b815b4849c7c71fd1b936f6379cf2aaa6383de8cf0d909d901633345ba1ec0807de6f382af
@@ -29,7 +29,7 @@ module ThemeJuice
29
29
 
30
30
  def create_entry(&block)
31
31
  return if entry_is_setup?
32
-
32
+
33
33
  @io.log "Creating #{@entry.fetch(:name)} entry"
34
34
  @util.append_to_file @entry.fetch(:file), { :verbose => @env.verbose,
35
35
  :capture => @env.quiet } do
@@ -43,6 +43,8 @@ module ThemeJuice
43
43
  end
44
44
 
45
45
  def remove_entry
46
+ return unless entry_file_is_setup?
47
+
46
48
  @io.log "Removing #{@entry.fetch(:name)} entry"
47
49
  @util.gsub_file @entry.fetch(:file), /(#(#*)? Begin '#{@entry.fetch(:project)}' #{@entry.fetch(:id)})(.*?)(#(#*)? End '#{@entry.fetch(:project)}' #{@entry.fetch(:id)})\n+/m,
48
50
  "", { :verbose => @env.verbose, :capture => @env.quiet }
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module ThemeJuice
4
- VERSION = "0.20.6"
4
+ VERSION = "0.20.7"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: theme-juice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.6
4
+ version: 0.20.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezekiel Gabrielse