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 +4 -4
- data/lib/theme-juice/tasks/entry.rb +3 -1
- data/lib/theme-juice/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00cc64ebbbb195b02b059113c00c87682eafeefa
|
4
|
+
data.tar.gz: a58715a1ad2613d2191f488e6818cd67b01e06a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 }
|
data/lib/theme-juice/version.rb
CHANGED