yjit 0.0.1 → 0.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
  SHA256:
3
- metadata.gz: 20b472fccd3f835230a40804f88d9a44f59e4b6d5617db05578fe40139fb16db
4
- data.tar.gz: 9999564567d7065253d4935f6f0839c4b0cb8aeed91492033741dbd6ab5d9552
3
+ metadata.gz: 2274e0d477bb96c22d754f2c5694578d39cb4359d4695442d7bd1330ef27280a
4
+ data.tar.gz: 20b73c2ef1b8f2655a4498b204ea2ac860ef8d2c8d1d0dfbcf643b289a4aab8d
5
5
  SHA512:
6
- metadata.gz: b6fc21fc812b6bedcb1a35e3e318c658736f5b37bdb992ddaedc195d6f67f06c40250c6c64ee7b02cab6f3a956b8c6bbeace1ad748e6aa2103e7cae168232125
7
- data.tar.gz: e3ded0f6d29b6beeff0e525ba57d5610a52d162cdf978c474f10bb35b0703cf57fb74b6bf64f2ca6b857d5b1b7f09f19b9cfa91317cec4406e50d1ce422548af
6
+ metadata.gz: 7f05f5cfbc4e20b3bb9e90061fd750467d1e81ef8880034f402e65dd8f7876a593bb3b9b1fb4660d9a8c97ae0657517c1d50680f083f5fad73216baba5722c1c
7
+ data.tar.gz: 120e6f03308fe4eeb174c6740561f8c5f73eaf6e96c9482bdcd840bf90f3295288ada9b8eb5ed30affdb10c2de70e5e24534bc70b44e4a7460b8b54a73fdc591
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2024-10-31
4
+
5
+ - Initial release
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 Takashi Kokubun
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md CHANGED
@@ -1,31 +1,11 @@
1
- # Yjit
1
+ # YJIT
2
2
 
3
- TODO: Delete this and the text below, and describe your gem
4
-
5
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/yjit`. To experiment with that code, run `bin/console` for an interactive prompt.
6
-
7
- ## Installation
8
-
9
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
-
11
- Install the gem and add to the application's Gemfile by executing:
12
-
13
- $ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
14
-
15
- If bundler is not being used to manage dependencies, install the gem by executing:
16
-
17
- $ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
3
+ Gem that enables YJIT for you.
18
4
 
19
5
  ## Usage
20
6
 
21
- TODO: Write usage instructions here
22
-
23
- ## Development
24
-
25
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
26
-
27
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
7
+ `require "yjit"` calls `RubyVM::YJIT.enable`. That's it.
28
8
 
29
- ## Contributing
9
+ ## License
30
10
 
31
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/yjit.
11
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/lib/yjit.rb CHANGED
@@ -1,8 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "yjit/version"
4
-
5
- module Yjit
6
- class Error < StandardError; end
7
- # Your code goes here...
8
- end
3
+ RubyVM::YJIT.enable
metadata CHANGED
@@ -1,50 +1,50 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yjit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-13 00:00:00.000000000 Z
11
+ date: 2024-10-31 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: Placeholder to gemify YJIT
13
+ description: RubyVM::YJIT.enable
14
14
  email:
15
15
  - takashikkbn@gmail.com
16
16
  executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
- - Gemfile
20
+ - CHANGELOG.md
21
+ - LICENSE.txt
21
22
  - README.md
22
23
  - Rakefile
23
24
  - lib/yjit.rb
24
- - lib/yjit/version.rb
25
- - sig/yjit.rbs
26
- - yjit.gemspec
27
- homepage: https://github.com/ruby/ruby
28
- licenses: []
25
+ homepage: https://github.com/k0kubun/yjit
26
+ licenses:
27
+ - MIT
29
28
  metadata:
30
- homepage_uri: https://github.com/ruby/ruby
29
+ homepage_uri: https://github.com/k0kubun/yjit
30
+ source_code_uri: https://github.com/k0kubun/yjit
31
31
  post_install_message:
32
32
  rdoc_options: []
33
33
  require_paths:
34
34
  - lib
35
35
  required_ruby_version: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - '='
37
+ - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: '3.3'
39
+ version: 3.3.0
40
40
  required_rubygems_version: !ruby/object:Gem::Requirement
41
41
  requirements:
42
42
  - - ">="
43
43
  - !ruby/object:Gem::Version
44
44
  version: '0'
45
45
  requirements: []
46
- rubygems_version: 3.4.6
46
+ rubygems_version: 3.5.16
47
47
  signing_key:
48
48
  specification_version: 4
49
- summary: Placeholder to gemify YJIT
49
+ summary: Enable YJIT
50
50
  test_files: []
data/Gemfile DELETED
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- # Specify your gem's dependencies in yjit.gemspec
6
- gemspec
7
-
8
- gem "rake", "~> 13.0"
data/lib/yjit/version.rb DELETED
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Yjit
4
- VERSION = "0.0.1"
5
- end
data/sig/yjit.rbs DELETED
@@ -1,4 +0,0 @@
1
- module Yjit
2
- VERSION: String
3
- # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
- end
data/yjit.gemspec DELETED
@@ -1,34 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "lib/yjit/version"
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = "yjit"
7
- spec.version = Yjit::VERSION
8
- spec.authors = ["Takashi Kokubun"]
9
- spec.email = ["takashikkbn@gmail.com"]
10
-
11
- spec.summary = "Placeholder to gemify YJIT"
12
- spec.description = "Placeholder to gemify YJIT"
13
- spec.homepage = "https://github.com/ruby/ruby"
14
- spec.required_ruby_version = "3.3"
15
-
16
- spec.metadata["homepage_uri"] = spec.homepage
17
-
18
- # Specify which files should be added to the gem when it is released.
19
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
20
- spec.files = Dir.chdir(__dir__) do
21
- `git ls-files -z`.split("\x0").reject do |f|
22
- (File.expand_path(f) == __FILE__) || f.start_with?(*%w[bin/ test/ spec/ features/ .git .circleci appveyor])
23
- end
24
- end
25
- spec.bindir = "exe"
26
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
27
- spec.require_paths = ["lib"]
28
-
29
- # Uncomment to register a new dependency of your gem
30
- # spec.add_dependency "example-gem", "~> 1.0"
31
-
32
- # For more information and examples about making a new gem, check out our
33
- # guide at: https://bundler.io/guides/creating_gem.html
34
- end