theme-juice 0.9.7 → 0.9.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/theme-juice/config.rb +3 -4
- data/lib/theme-juice/io.rb +6 -1
- data/lib/theme-juice/man/tj +1 -1
- data/lib/theme-juice/man/tj.txt +10 -9
- data/lib/theme-juice/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a78d9b710b2fd73ccfad9223ff4256dc048268e
|
4
|
+
data.tar.gz: 9cd07c6930b9a568b6bc9f019f647d25b05b1f7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c06da13bd82e39141e2f21824d0f04327d9922d15559c19a45a264bbf19541cc3b5848a2e78cd7ce285f3887da8af5f1ab6de8c1c7f031d303b71c6874fa9ef7
|
7
|
+
data.tar.gz: 783d935180e14437be70e84acf2264571cea70a1888a856afd36dc7506560b1eeba4635d2a630cbd51059a18cd4640f383f35a090a8b5fa57e8f21a02b4eb26d
|
data/lib/theme-juice/config.rb
CHANGED
@@ -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
|
18
|
-
@io.say
|
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
|
data/lib/theme-juice/io.rb
CHANGED
@@ -106,7 +106,11 @@ module ThemeJuice
|
|
106
106
|
|
107
107
|
yield if block_given?
|
108
108
|
|
109
|
-
|
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
|
|
data/lib/theme-juice/man/tj
CHANGED
data/lib/theme-juice/man/tj.txt
CHANGED
@@ -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
|
86
|
+
to your Vagrant installation so that they can be run from any
|
86
87
|
directory.
|
87
88
|
|
88
89
|
CONFIG COMMANDS
|
89
|
-
These
|
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
|
116
|
-
monly-used
|
117
|
-
an
|
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
|
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
|
158
|
-
.tj.yaml
|
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)?$)/
|
data/lib/theme-juice/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|