wordless 2.0.0 → 2.1.0

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: abc51947354d14e441766bd2a3795c60e171d049
4
- data.tar.gz: 56f34355ea340cbe2a0dda9df2d67e5d6431aa85
3
+ metadata.gz: dd708bd16e7afbffc60aa2535aae764b62f0897a
4
+ data.tar.gz: ee329a0acee2891526b676f5fe1ee6b4cc599bae
5
5
  SHA512:
6
- metadata.gz: c5908ccfce224d730c70183fcc4b6329a464c262ce433c9b90a2767afc4384e51cedcbaef62dd0d52c1bf26c08c4dbed1f3ab8549b3de66b09ce148e0213ca96
7
- data.tar.gz: ecb3d891f91c47e952fe648a75fdd11410ad387e40ba0e414fb02797eb2c262496209ecef57fabe2cec5e285179f17870281decee0c8d8c73c18febae223df86
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.0.0)
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.1.4)
16
+ activesupport (5.2.0)
17
17
  concurrent-ruby (~> 1.0, >= 1.0.2)
18
- i18n (~> 0.7)
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.18)
45
+ ffi (1.9.21)
46
46
  gem-release (1.0.0)
47
- i18n (0.9.1)
47
+ i18n (1.0.1)
48
48
  concurrent-ruby (~> 1.0)
49
49
  method_source (0.9.0)
50
- minitest (5.10.3)
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.4)
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.15.4
120
+ 1.16.1
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012-2015 weLaika
1
+ Copyright (c) 2012-2018 weLaika
2
2
 
3
3
  MIT License
4
4
 
data/README.mdown CHANGED
@@ -111,3 +111,9 @@ Visit [Wordpress Tools](https://www.wptools.it).
111
111
  ## Author
112
112
 
113
113
  made with ❤️ and ☕️ by [weLaika](https://dev.welaika.com)
114
+
115
+ ## License
116
+
117
+ (The MIT License)
118
+
119
+ Copyright © 2012-2018 [weLaika](https://dev.welaika.com)
@@ -1,3 +1,3 @@
1
1
  module Wordless
2
- VERSION = "2.0.0".freeze
2
+ VERSION = "2.1.0".freeze
3
3
  end
@@ -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
- run_command('which npm') ||
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.0.0
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-01-04 00:00:00.000000000 Z
15
+ date: 2018-09-12 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: activesupport