theme-juice 0.9.7 → 0.9.8

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: afd26c37004596edc3249f31d72388c43f5ec330
4
- data.tar.gz: ae71043f9647ddb74d49daab299f0af609d9e465
3
+ metadata.gz: 8a78d9b710b2fd73ccfad9223ff4256dc048268e
4
+ data.tar.gz: 9cd07c6930b9a568b6bc9f019f647d25b05b1f7f
5
5
  SHA512:
6
- metadata.gz: 4b0bd0cf193b687626636b4b636164af8c10f1b71c28891a725aa27ed02ca6f8618156a552fde4f9c87e61399534ea1ab14263a6603eb81b7def694d0eccd40f
7
- data.tar.gz: f103d4e5bcf87a0e9c038f1c8023395555ec5be2ac5d4691b48a7ca193bee795c573f7c3fe4e39207c73945efb99b71d4e651c991ea64c3836f3df119f190886
6
+ metadata.gz: c06da13bd82e39141e2f21824d0f04327d9922d15559c19a45a264bbf19541cc3b5848a2e78cd7ce285f3887da8af5f1ab6de8c1c7f031d303b71c6874fa9ef7
7
+ data.tar.gz: 783d935180e14437be70e84acf2264571cea70a1888a856afd36dc7506560b1eeba4635d2a630cbd51059a18cd4640f383f35a090a8b5fa57e8f21a02b4eb26d
@@ -14,9 +14,8 @@ module ThemeJuice
14
14
  config.fetch("commands", {})
15
15
  .fetch("#{method}") { @io.error "Command '#{method}' not found in config", NotImplementedError }
16
16
  .each { |cmd| run format_command(cmd, *args) }
17
- rescue Exception => error
18
- @io.say error, :color => :red if @env.verbose
19
- @io.notice "Skipping..."
17
+ rescue NoMethodError
18
+ @io.say "Skipping...", :color => :yellow, :icon => :notice
20
19
  end
21
20
  end
22
21
 
@@ -47,7 +46,7 @@ module ThemeJuice
47
46
  @io.error "Config file contains invalid YAML", SyntaxError do
48
47
  puts err
49
48
  end
50
- rescue LoadError
49
+ rescue LoadError, SystemExit
51
50
  nil
52
51
  end
53
52
  end
@@ -106,7 +106,11 @@ module ThemeJuice
106
106
 
107
107
  yield if block_given?
108
108
 
109
- raise code
109
+ if @env.verbose
110
+ raise code
111
+ else
112
+ exit 1
113
+ end
110
114
  end
111
115
 
112
116
  def hello(opts = {})
@@ -131,6 +135,7 @@ module ThemeJuice
131
135
  "Go home, developer, you're drunk",
132
136
  "Okay, this is getting a little out of hand...",
133
137
  "I don't like it when you press my buttons",
138
+ "Look at you, dev'n up a storm!",
134
139
  "Ouch!",
135
140
  ]
136
141
 
@@ -60,7 +60,7 @@ Disable automatic port forwarding
60
60
  .
61
61
  .TP
62
62
  \fB\-\-verbose\fR
63
- Prints out additional logging information
63
+ Prints out additional logging information and raises any exception caught during runtime
64
64
  .
65
65
  .TP
66
66
  \fB\-\-dryrun\fR, \fB\-\-dry\-run\fR
@@ -50,7 +50,8 @@ GLOBAL OPTIONS
50
50
  Disable automatic port forwarding
51
51
 
52
52
  --verbose
53
- Prints out additional logging information
53
+ Prints out additional logging information and raises any excep-
54
+ tion caught during runtime
54
55
 
55
56
  --dryrun, --dry-run
56
57
  Run a command without actually doing anything
@@ -82,11 +83,11 @@ SECONDARY COMMANDS
82
83
 
83
84
  vm, vagrant, vvv=[command[,command]...]
84
85
  Manage development environment via vagrant. Commands are proxied
85
- to your Vagrant installation so that they can be run from any
86
+ to your Vagrant installation so that they can be run from any
86
87
  directory.
87
88
 
88
89
  CONFIG COMMANDS
89
- These run the corresponding command from your project's config file.
90
+ These run the corresponding command from your project's config file.
90
91
  They accept any number of arguments, since the behavior and handling of
91
92
  input is defined within the config file itself.
92
93
 
@@ -112,9 +113,9 @@ CONFIG COMMANDS
112
113
  Manage and run project tests
113
114
 
114
115
  CONFIG FILE
115
- A YAML configuration file (Juicefile) can be used to store com-
116
- monly-used build scripts. Each command block sequence can be mapped to
117
- an individual project's build tool, allowing a streamlined set of com-
116
+ A YAML configuration file (Juicefile) can be used to store com-
117
+ monly-used build scripts. Each command block sequence can be mapped to
118
+ an individual project's build tool, allowing a streamlined set of com-
118
119
  mands to be used across multiple projects that utilize different tools.
119
120
 
120
121
  commands
@@ -144,7 +145,7 @@ CONFIG FILE
144
145
  deployment
145
146
  Coming soon
146
147
 
147
- Placeholder arguments can be used within any command block sequence to
148
+ Placeholder arguments can be used within any command block sequence to
148
149
  allow splat or indexed arguments to be passed to the corresponding com-
149
150
  mand when executed.
150
151
 
@@ -154,8 +155,8 @@ CONFIG FILE
154
155
  %argN%, %argumentN%
155
156
  Where n is the argument index e.g. cmd %arg1% | cmd %arg2%
156
157
 
157
- When naming your configuration file, use the recommended Juicefile, or
158
- .tj.yaml naming convention. The raw filename regex matcher is below if
158
+ When naming your configuration file, use the recommended Juicefile, or
159
+ .tj.yaml naming convention. The raw filename regex matcher is below if
159
160
  you want to be a little different.
160
161
 
161
162
  /^(((\.)?(tj)|((J|j)uicefile))(.y(a)?ml)?$)/
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module ThemeJuice
4
- VERSION = "0.9.7"
4
+ VERSION = "0.9.8"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: theme-juice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezekiel Gabrielse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-18 00:00:00.000000000 Z
11
+ date: 2015-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor