wordless 2.0.0 → 2.1.0
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/Gemfile.lock +8 -8
- data/LICENSE +1 -1
- data/README.mdown +6 -0
- data/lib/wordless/version.rb +1 -1
- data/lib/wordless/wordless_cli.rb +14 -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: dd708bd16e7afbffc60aa2535aae764b62f0897a
|
|
4
|
+
data.tar.gz: ee329a0acee2891526b676f5fe1ee6b4cc599bae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3379801cededc13b2aa65dffd315c9bcfcb0baf82b4a6e618258045ee07e0a2435f3f447d15155bfa610381c7f0dc43e9935df30c47aa654185c8768db0918b4
|
|
7
|
+
data.tar.gz: 46968e02508ee714a797aa165cd6147d1fd3069f2ec909c8193a3555731382be202a8a8043b52d34a588c30c89c21ee07270a630efa250e4bbe9f12302543a27
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
wordless (2.
|
|
4
|
+
wordless (2.1.0)
|
|
5
5
|
activesupport
|
|
6
6
|
coffee-script
|
|
7
7
|
compass
|
|
@@ -13,9 +13,9 @@ PATH
|
|
|
13
13
|
GEM
|
|
14
14
|
remote: https://rubygems.org/
|
|
15
15
|
specs:
|
|
16
|
-
activesupport (5.
|
|
16
|
+
activesupport (5.2.0)
|
|
17
17
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
18
|
-
i18n (
|
|
18
|
+
i18n (>= 0.7, < 2)
|
|
19
19
|
minitest (~> 5.1)
|
|
20
20
|
tzinfo (~> 1.1)
|
|
21
21
|
ast (2.3.0)
|
|
@@ -42,12 +42,12 @@ GEM
|
|
|
42
42
|
concurrent-ruby (1.0.5)
|
|
43
43
|
diff-lcs (1.3)
|
|
44
44
|
execjs (2.7.0)
|
|
45
|
-
ffi (1.9.
|
|
45
|
+
ffi (1.9.21)
|
|
46
46
|
gem-release (1.0.0)
|
|
47
|
-
i18n (0.
|
|
47
|
+
i18n (1.0.1)
|
|
48
48
|
concurrent-ruby (~> 1.0)
|
|
49
49
|
method_source (0.9.0)
|
|
50
|
-
minitest (5.
|
|
50
|
+
minitest (5.11.3)
|
|
51
51
|
multi_json (1.12.2)
|
|
52
52
|
parallel (1.12.1)
|
|
53
53
|
parser (2.4.0.2)
|
|
@@ -96,7 +96,7 @@ GEM
|
|
|
96
96
|
rack (> 1, < 3)
|
|
97
97
|
thor (0.19.4)
|
|
98
98
|
thread_safe (0.3.6)
|
|
99
|
-
tzinfo (1.2.
|
|
99
|
+
tzinfo (1.2.5)
|
|
100
100
|
thread_safe (~> 0.1)
|
|
101
101
|
unicode-display_width (1.3.0)
|
|
102
102
|
wordpress_tools (1.4.1)
|
|
@@ -117,4 +117,4 @@ DEPENDENCIES
|
|
|
117
117
|
wordless!
|
|
118
118
|
|
|
119
119
|
BUNDLED WITH
|
|
120
|
-
1.
|
|
120
|
+
1.16.1
|
data/LICENSE
CHANGED
data/README.mdown
CHANGED
data/lib/wordless/version.rb
CHANGED
|
@@ -62,7 +62,7 @@ module Wordless
|
|
|
62
62
|
|
|
63
63
|
def install_global_node_modules
|
|
64
64
|
info("Check for necessary global NPM packages")
|
|
65
|
-
|
|
65
|
+
which('npm') ||
|
|
66
66
|
error("Node isn't installed. Head to https://nodejs.org/en/download/package-manager")
|
|
67
67
|
|
|
68
68
|
global_node_modules = GLOBAL_NODE_MODULES.dup
|
|
@@ -155,5 +155,18 @@ module Wordless
|
|
|
155
155
|
success("Done!")
|
|
156
156
|
end
|
|
157
157
|
end
|
|
158
|
+
|
|
159
|
+
def which(cmd)
|
|
160
|
+
exts = ENV['PATHEXT'] ? ENV['PATHEXT'].split(';') : ['']
|
|
161
|
+
|
|
162
|
+
ENV['PATH'].split(File::PATH_SEPARATOR).each do |path|
|
|
163
|
+
exts.each do |ext|
|
|
164
|
+
exe = File.join(path, "#{cmd}#{ext}")
|
|
165
|
+
return exe if File.executable?(exe) && !File.directory?(exe)
|
|
166
|
+
end
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
nil
|
|
170
|
+
end
|
|
158
171
|
end
|
|
159
172
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wordless
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Étienne Després
|
|
@@ -12,7 +12,7 @@ authors:
|
|
|
12
12
|
autorequire:
|
|
13
13
|
bindir: exe
|
|
14
14
|
cert_chain: []
|
|
15
|
-
date: 2018-
|
|
15
|
+
date: 2018-09-12 00:00:00.000000000 Z
|
|
16
16
|
dependencies:
|
|
17
17
|
- !ruby/object:Gem::Dependency
|
|
18
18
|
name: activesupport
|