jekyll-js-converter 1.1.0 → 1.2.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
  SHA256:
3
- metadata.gz: 46e4f09c7076cad7fb5dfc7c811e826cce1ad8358db66f3bb3e99a85577ca4ab
4
- data.tar.gz: cc313145326fd00006785f91df5f3fd7277c5f97b5fba35e2fe8e66edc50ce97
3
+ metadata.gz: 1dc8dfcfed6a9a51b78bec81e580b218faff7ba5858914e84a9962b98ac8f0da
4
+ data.tar.gz: e6d4e0c7fa1a30e6be3d02877f4f2f28d55823d861f5e2139ce316331bc6fbfc
5
5
  SHA512:
6
- metadata.gz: f3c7dfac1fd68634f4e0a6ade3a6429127e9e183a752e2f06a0cec311c989fecb82d14c6d4c0a3df5840131000e4ca68b51f672d2acbe5f082e66cc51aeb66ef
7
- data.tar.gz: fe2e8bd2d8a2b7cbccfbd7d2f03d3ed38951268fafc5131d18a4688f284cdce9e87e030920660fb23ff2722788e888443a0f0aca42eb4e39ec21dccaee26f20a
6
+ metadata.gz: 5fa5f3683d9c4d23b2f8b12d9e03597bace30e1204b2ac17433c20ae38f42a99148cbeba0271c20b5a77a85a58ad2f1ad9a6d99b6eb49e316d5e38f03a9e14db
7
+ data.tar.gz: fcfbbd9448898862985788dd5ce8419d4bd3cd465beca861e364197d0932119f9f3b299f3323a0d8544fb20e62791f7455532548580fe313c0e8f8a477afaab3
@@ -22,7 +22,11 @@ module Jekyll
22
22
  end
23
23
 
24
24
  def javascript_config
25
- @javascript_config ||= @config['javascript'].deep_symbolize_keys || {}
25
+ @javascript_config ||= begin
26
+ options = @config['javascript'] || {}
27
+
28
+ options.deep_symbolize_keys
29
+ end
26
30
  end
27
31
 
28
32
  def javascript_dir
@@ -70,18 +74,16 @@ module Jekyll
70
74
 
71
75
  def convert(content)
72
76
  if generate_source_map?
73
- config = Jekyll::Utils.symbolize_hash_keys(
74
- Jekyll::Utils.deep_merge_hashes(
75
- { :uglifier => {
76
- :source_map => {
77
- :map_url => @source_map_page.name,
78
- :sources_content => true,
79
- :filename => @page.name
80
- }
77
+ config = Jekyll::Utils.deep_merge_hashes(
78
+ { :uglifier => {
79
+ :source_map => {
80
+ :map_url => @source_map_page.name,
81
+ :sources_content => true,
82
+ :filename => @page.name
81
83
  }
82
- },
83
- javascript_config
84
- )
84
+ }
85
+ },
86
+ javascript_config
85
87
  )
86
88
 
87
89
  uglified, source_map = Uglifier.new(config[:uglifier]).compile_with_map(insert_imports(content))
@@ -91,11 +93,9 @@ module Jekyll
91
93
 
92
94
  uglified
93
95
  else
94
- config = Jekyll::Utils.symbolize_hash_keys(
95
- Jekyll::Utils.deep_merge_hashes(
96
- { :uglifier => {} },
97
- javascript_config
98
- )
96
+ config = Jekyll::Utils.deep_merge_hashes(
97
+ { :uglifier => {} },
98
+ javascript_config
99
99
  )
100
100
 
101
101
  Uglifier.new(config[:uglifier]).compile(insert_imports(content))
@@ -1,3 +1,3 @@
1
1
  module JekyllJsConverter
2
- VERSION = '1.1.0'
2
+ VERSION = '1.2.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-js-converter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Susco
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-23 00:00:00.000000000 Z
11
+ date: 2024-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: uglifier
@@ -72,16 +72,16 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0.4'
75
+ version: '0.13'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0.4'
83
- description:
84
- email:
82
+ version: '0.13'
83
+ description:
84
+ email:
85
85
  executables: []
86
86
  extensions: []
87
87
  extra_rdoc_files: []
@@ -95,7 +95,7 @@ homepage: https://github.com/dsusco/jekyll-js-converter
95
95
  licenses:
96
96
  - MIT
97
97
  metadata: {}
98
- post_install_message:
98
+ post_install_message:
99
99
  rdoc_options: []
100
100
  require_paths:
101
101
  - lib
@@ -103,15 +103,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
103
103
  requirements:
104
104
  - - ">="
105
105
  - !ruby/object:Gem::Version
106
- version: 2.5.0
106
+ version: 3.2.0
107
107
  required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  requirements:
109
109
  - - ">="
110
110
  - !ruby/object:Gem::Version
111
111
  version: '0'
112
112
  requirements: []
113
- rubygems_version: 3.1.4
114
- signing_key:
113
+ rubygems_version: 3.4.19
114
+ signing_key:
115
115
  specification_version: 4
116
116
  summary: A JavaScript converter for Jekyll.
117
117
  test_files: []