theme-juice 0.27.0 → 0.27.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
  SHA1:
3
- metadata.gz: 290cdb9fdc0a7207ea88f2fb585739bb55292df5
4
- data.tar.gz: 25f14c0e4f8f24f2eedeaeec05fa676448cfcfce
3
+ metadata.gz: 211a3118a9984e05bc39a5829876068e91c78dd5
4
+ data.tar.gz: bea6f50269ab5ddee35412c894a30398dbf79c1a
5
5
  SHA512:
6
- metadata.gz: 775f94c36331cb9b3aa8efce9c4fb5c38efa8a6a4c3f98ab374aacfd8f8a309ab4ec2035d04318e8cab4c8ac2a75f8de777d7e55d4858a66c4ffa1dac11ba9ff
7
- data.tar.gz: b530f9705253ec34e80512d58d5e3b80319e08554f09b3dd2368393b3eaef67ce997f470befd2c0084dbced47d576be14e6241a8f6310e78cf9c59bdc88a5b2b
6
+ metadata.gz: cca5f278f91ebaf3b92edff67e282a97e2f3822d4692ad8fe6df312aa405c69dfb5aec4c762a1edd9b7beb0f352ead8f3252a9ffeaef243384188070fc474024
7
+ data.tar.gz: bbcae94a5bcf68c25690a4f1b06974a1f943977aca333fde30e7b709c2d32b520414f3a927287b58c745192611bfdf0e2e9667859b919865ddd5f293741990c9
@@ -50,14 +50,6 @@ module ThemeJuice
50
50
  private
51
51
 
52
52
  def init_project
53
-
54
- # Assume bare if the project path isn't empty (template install will fail)
55
- unless @opts[:bare] || Dir["#{@project.location}/*"].empty?
56
- @opts[:template] = false
57
- @opts[:bare] = true
58
- @io.notice "Project location is not empty. Assuming you meant to run a setup..."
59
- end
60
-
61
53
  @project.use_defaults = @opts.fetch("use_defaults") { false }
62
54
  @project.bare = @opts.fetch("bare") { false }
63
55
  @project.skip_repo = @opts.fetch("skip_repo") { false }
@@ -71,6 +63,14 @@ module ThemeJuice
71
63
  @project.no_env = @opts.fetch("no_env") { @project.wp_config_modify }
72
64
  @project.name = @opts.fetch("name") { name }
73
65
  @project.location = @opts.fetch("location") { location }
66
+
67
+ # Assume bare if the project path isn't empty (template install will fail)
68
+ unless @project.bare || Dir["#{@project.location}/*"].empty?
69
+ @project.template = false
70
+ @project.bare = true
71
+ @io.notice "Project location is not empty. Assuming you meant to run a setup..."
72
+ end
73
+
74
74
  @project.url = @opts.fetch("url") { url }
75
75
  @project.xip_url = @opts.fetch("xip_url") { xip_url }
76
76
  @project.template = @opts.fetch("template") { template }
@@ -98,6 +98,7 @@ module ThemeJuice
98
98
  def name
99
99
  name =
100
100
  begin
101
+ raise NoMethodError unless @config.exist?
101
102
  @io.say "Inferred project name '#{@config.project.name}' from existing config...", {
102
103
  :color => :yellow, :icon => :notice }
103
104
  @config.project.name
@@ -146,6 +147,7 @@ module ThemeJuice
146
147
  def url
147
148
  url =
148
149
  begin
150
+ raise NoMethodError unless @config.exist?
149
151
  @io.say "Inferred project url '#{@config.project.url}' from existing config...", {
150
152
  :color => :yellow, :icon => :notice }
151
153
  @config.project.url
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module ThemeJuice
4
- VERSION = "0.27.0"
4
+ VERSION = "0.27.1"
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.27.0
4
+ version: 0.27.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezekiel Gabrielse