jekyll-discord-visualizer 1.0.0 → 1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2463c76b18281e925bc2ca07af593c39a298edcfebd503f2811fedd5560b2f1b
4
- data.tar.gz: 9f713f48ea490105789b580db2cea716f65367dd8e629b9e562eed3c3998ddf8
3
+ metadata.gz: 0a932c188d3ea77e2541d33bebfec2c3df558d3a174092428ec7ad7dfcc94305
4
+ data.tar.gz: d24b84a9af0a745441f44a9f8e8a54f1e0b899aa8ad473e213e36097e6558a85
5
5
  SHA512:
6
- metadata.gz: f80277f60d9676ab52a44f2632882ff26c86cf689a7f1713710a11dd5af6b5e78f9c01df58f2c332fb61b9461df0b9f1ccef00a7a82c8c84d4ffd25ef1f1bbb0
7
- data.tar.gz: 1d18cb7ede12925efa570aa29a3fca903092d733371b55f9fb8e5cdf8f3ee9d9d86fc11c463ee6b15e93af9282bf4ef9f99ffb9d74b7d1fa327cdb9ad21ed273
6
+ metadata.gz: b5a6891ebc32adbbb7630ef4c1f538c93e13827367d9bc2d8a0e36847f1a237909d2963be48b8e8378201c5d8c43d39eaf0a3371dda1b99a4a146905d30e8963
7
+ data.tar.gz: a27812a51df2f578ef294e0ea4e8ecfe4a04093c58fb8f7acf7968aeef138f0e194cb7c45cebccef5e49de6245f3f516456a34178edaaa8f5354add0742adca6
data/ext/npm.rb ADDED
@@ -0,0 +1,5 @@
1
+ require "open3"
2
+
3
+ status_list = Open3.pipeline([{"NODE_ENV"=>"production"}, "npm", "ci"], ["node", "--version"])
4
+
5
+ raise "Unable to install dependencies, check you have npm and nodejs installed" if status_list.any? { |x| x != 0 }
@@ -17,8 +17,10 @@ Gem::Specification.new do |spec|
17
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
18
  spec.require_paths = ["lib"]
19
19
 
20
+ spec.extensions << 'ext/npm.rb'
21
+
20
22
  spec.add_dependency 'jekyll'
21
23
  spec.add_dependency 'open3'
22
- spec.add_development_dependency "bundler", "~> 2.3"
24
+ spec.add_development_dependency "bundler", "~> 2.1"
23
25
  spec.add_development_dependency "rake", "~> 10.0"
24
26
  end
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module DiscordVisualizer
3
- VERSION = "1.0.0"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-discord-visualizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Douile
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '2.3'
47
+ version: '2.1'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '2.3'
54
+ version: '2.1'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -70,7 +70,8 @@ description: jekyll plugin to generate html snippets for embedding Discord messa
70
70
  email:
71
71
  - 25043847+Douile@users.noreply.github.com
72
72
  executables: []
73
- extensions: []
73
+ extensions:
74
+ - ext/npm.rb
74
75
  extra_rdoc_files: []
75
76
  files:
76
77
  - ".github/workflows/gemdeploy.yml"
@@ -79,6 +80,7 @@ files:
79
80
  - Gemfile
80
81
  - LICENSE
81
82
  - Rakefile
83
+ - ext/npm.rb
82
84
  - jekyll-discord-visualizer.gemspec
83
85
  - lib/jekyll-discord-visualizer.rb
84
86
  - lib/jekyll-discord-visualizer/version.rb