execjs-pcruntime 0.2.2 → 0.4.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: 0ed5dacd1dab7ff7ef42dc43084d6c00da36cd3f228e02517cd0e33492bce55b
4
- data.tar.gz: 486214245b193a1000bd930758767776398c3f4f47f68a49086a09cf500300eb
3
+ metadata.gz: 5974c75992e0b4c71c8ed76df744f40b44db2d991b932447d3e32ffac21ddbab
4
+ data.tar.gz: 3695f40c2b0c3b270b58f7ee2d282eab26c1d7662c010eac78016da3aec7e4f2
5
5
  SHA512:
6
- metadata.gz: b625a73b8da1b28469a4df46500cba801b16279a81adde6479d0671d7f2a942d4d45f73552bd967422237bcc2dcc398083310dea69c24b81c7dc00f031f43d6d
7
- data.tar.gz: '088e05880ba92eaf812c25aac7c6e56935294c1af8cc36693fb1d7a3ae26da0f783c8307a7a3f283f976a43cff595bc1b0ec7101e921dc7c72ec8b991be421ac'
6
+ metadata.gz: ad4b53bddac86e7028b4e40fb345ea842e6503af7fa60b1468ad44b5ae6a0d07f4f44c7da9b57e8c5a30690e88cbf8ca7c9dc54bf9be0116e465dc17c5c364f8
7
+ data.tar.gz: 2fa9835c90356b87dbfc61217fa0a639a96759d425d706f6d62465cdbe9a5c6ef3c1a2b970f78317b8108363bcb08ef2740b4f7a3b2e6b9d6ca0985cc3bd9fdb
@@ -0,0 +1,23 @@
1
+ name: Check
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
+ branches: [ main ]
8
+
9
+ jobs:
10
+ rubocop:
11
+
12
+ runs-on: ubuntu-latest
13
+
14
+ steps:
15
+ - uses: actions/checkout@v3
16
+ - name: Set up Ruby
17
+ uses: ruby/setup-ruby@v1
18
+ with:
19
+ ruby-version: '3.4'
20
+ - name: Install dependencies
21
+ run: bundle install
22
+ - name: Run RuboCop
23
+ run: bundle exec rubocop
@@ -13,7 +13,8 @@ jobs:
13
13
 
14
14
  strategy:
15
15
  matrix:
16
- ruby-version: ['3.2', '3.1', '3.0']
16
+ ruby-version: ['4.0', '3.4', '3.3']
17
+ node-version: ['22', '24', '26']
17
18
 
18
19
  steps:
19
20
  - uses: actions/checkout@v3
@@ -21,7 +22,11 @@ jobs:
21
22
  uses: ruby/setup-ruby@v1
22
23
  with:
23
24
  ruby-version: ${{ matrix.ruby-version }}
25
+ - name: Set up Node.js ${{ matrix.node-version }}
26
+ uses: actions/setup-node@v4
27
+ with:
28
+ node-version: ${{ matrix.node-version }}
24
29
  - name: Install dependencies
25
30
  run: bundle install
26
31
  - name: Run tests
27
- run: bundle exec rake
32
+ run: bundle exec rake
data/Gemfile CHANGED
@@ -16,5 +16,5 @@ end
16
16
 
17
17
  group :test do
18
18
  gem 'minitest', '~> 5.0'
19
- gem 'rake', '~> 12.0'
19
+ gem 'rake', '~> 13.0'
20
20
  end
data/README.md CHANGED
@@ -60,7 +60,7 @@ bundle exec rake
60
60
 
61
61
  ## Contributing
62
62
 
63
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/execjs-pcruntime. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
63
+ Bug reports and pull requests are welcome on GitHub at https://github.com/heyinc/execjs-pcruntime. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
64
64
 
65
65
  ## License
66
66
 
@@ -68,4 +68,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
68
68
 
69
69
  ## Code of Conduct
70
70
 
71
- Everyone interacting in the Execjs::Pcruntime project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/execjs-pcruntime/blob/master/CODE_OF_CONDUCT.md).
71
+ Everyone interacting in the Execjs::Pcruntime project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/heyinc/execjs-pcruntime/blob/master/CODE_OF_CONDUCT.md).
@@ -8,12 +8,13 @@ Gem::Specification.new do |spec|
8
8
  spec.name = 'execjs-pcruntime'
9
9
  spec.version = Execjs::PCRuntime::VERSION
10
10
  spec.authors = ['White-Green']
11
- spec.required_ruby_version = '>=3.0.0'
11
+ spec.required_ruby_version = '>=3.3.0'
12
12
  spec.summary = 'Fast ExecJS Runtime using Process as a Context.'
13
13
  spec.homepage = 'https://rubygems.org/gems/execjs-pcruntime'
14
14
  spec.license = 'MIT'
15
15
 
16
16
  spec.add_dependency 'execjs', '~> 2.0'
17
+ spec.add_dependency 'json', '>= 2.0'
17
18
 
18
19
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
19
20
  # to allow pushing to a single host or delete this section to allow pushing to any host.
@@ -197,6 +197,7 @@ module ExecJS
197
197
  socket.write_timeout *= 100
198
198
 
199
199
  request = Net::HTTP::Post.new(path)
200
+ request['Host'] = 'localhost'
200
201
  request['Connection'] = 'close'
201
202
  unless content_type.nil?
202
203
  request['Content-Type'] = content_type
@@ -220,7 +221,7 @@ module ExecJS
220
221
  result = URI.decode_www_form_component response.body
221
222
 
222
223
  if response.code == '200'
223
- ::JSON.parse(result, create_additions: false) if /\S/.match?(result)
224
+ ::JSON.parse(result) if /\S/.match?(result)
224
225
  else
225
226
  # expects ErrorMessage\0StackTrace =~ response.body
226
227
  message, stack = result.split "\0"
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Execjs
4
4
  module PCRuntime
5
- VERSION = '0.2.2'
5
+ VERSION = '0.4.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: execjs-pcruntime
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - White-Green
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-08-09 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: execjs
@@ -24,12 +23,25 @@ dependencies:
24
23
  - - "~>"
25
24
  - !ruby/object:Gem::Version
26
25
  version: '2.0'
27
- description:
28
- email:
26
+ - !ruby/object:Gem::Dependency
27
+ name: json
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '2.0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '2.0'
29
40
  executables: []
30
41
  extensions: []
31
42
  extra_rdoc_files: []
32
43
  files:
44
+ - ".github/workflows/check.yml"
33
45
  - ".github/workflows/test.yml"
34
46
  - ".gitignore"
35
47
  - ".rubocop.yml"
@@ -61,7 +73,6 @@ metadata:
61
73
  allowed_push_host: https://rubygems.org
62
74
  source_code_uri: https://github.com/heyinc/execjs-pcruntime
63
75
  rubygems_mfa_required: 'true'
64
- post_install_message:
65
76
  rdoc_options: []
66
77
  require_paths:
67
78
  - lib
@@ -69,15 +80,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
69
80
  requirements:
70
81
  - - ">="
71
82
  - !ruby/object:Gem::Version
72
- version: 3.0.0
83
+ version: 3.3.0
73
84
  required_rubygems_version: !ruby/object:Gem::Requirement
74
85
  requirements:
75
86
  - - ">="
76
87
  - !ruby/object:Gem::Version
77
88
  version: '0'
78
89
  requirements: []
79
- rubygems_version: 3.3.26
80
- signing_key:
90
+ rubygems_version: 4.0.20
81
91
  specification_version: 4
82
92
  summary: Fast ExecJS Runtime using Process as a Context.
83
93
  test_files: []