theme-juice 0.7.4 → 0.7.5

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: e089d5f19266fc3bd0c576b07f1c54756ad93ab5
4
- data.tar.gz: f85b3657237ae422fd2d096f37ce32ae7d67a7a0
3
+ metadata.gz: 885cc7b8cbb4e35b9a8c1c97fbcb0031131e1ba5
4
+ data.tar.gz: ec17f04a2d409d259373be6d961667d5100e2645
5
5
  SHA512:
6
- metadata.gz: e5f3c4160b2f13f28fc09eb24c0e66f4e37d664eaf25e3657c204e28553a599b62de9273bdaaee06f339f2b40b231bc55c7fbb0478c205224392adf687be45cc
7
- data.tar.gz: aaaddf7a1b04b566817033a21604429b1f2c663ddcd4129e7934749e68d8687c0aceb703e790f2cf7515ed75af3b793d6f083adc87dfe8928e607c30d9b1aefa
6
+ metadata.gz: cc3a762ee08780da5ce286d30a7ac358d2fdd6cf695805b65fe749f814475948ec984970b9b0e5a081fea1cbf8a061a573f12f5827ca459023cd6430d06e59b9
7
+ data.tar.gz: 91cab191d53c060db510a5437d4ea07a9e8dd8aa341d2122d58f9d3880a3cea5a23cf23c8b784ba3c8e9f80160f7423dd9214c76eaf24013207cfdd9ca54ce44
data/README.md CHANGED
@@ -42,7 +42,7 @@ commands:
42
42
  - tar -zcvf dist.tar.gz .
43
43
  ```
44
44
 
45
- Each list of commands is run within a single execution, with all `%args%`/`%argN%` being replaced by the passed command; i.e. `cmd1 %args% && cmd2 %arg1% %arg2% %arg3% && echo "%arg4%"`.
45
+ Each list of commands is run within a single execution, with all `%args%`/`%argN%` being replaced by the passed command; i.e. `cmd1 %args%; cmd2 %arg1% %arg2% %arg3%; cmd3 "%arg4%"`.
46
46
 
47
47
  You can specify an unlimited number of commands with an unlimited number of arguments; however, should be careful with how this is used. Don't do something like including `sudo rm -rf %arg1%` in a command, and then passing `/` as an argument. Keep it simple. These are meant to make your life easier by managing build tools, not to do fancy scripting.
48
48
 
@@ -23,7 +23,8 @@ module ThemeJuice
23
23
  end
24
24
  end
25
25
 
26
- def format_command(cmd, args)
26
+ def format_command(cmd, args = [])
27
+ return cmd if args.empty?
27
28
 
28
29
  if %r{(%args%)|(%arguments%)} =~ cmd
29
30
  cmd.gsub! %r{(%args%)|(%arguments%)}, args.join(" ")
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module ThemeJuice
4
- VERSION = "0.7.4"
4
+ VERSION = "0.7.5"
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.7.4
4
+ version: 0.7.5
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-05-06 00:00:00.000000000 Z
11
+ date: 2015-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor