ruby-next 1.0.0.rc.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -1
- data/README.md +5 -6
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d26ef909e11997d79223a36e0ac594e73574060796e5de0d135eb5c339ec2d36
|
4
|
+
data.tar.gz: bc9100fe52bc36e372381a5be59c99d08802180bf2ab1e3be15ed9d309273ab6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a2c894863c60fd0ade672b24956225963ef93d9441cdd33fc7074285e995bd6eff842b0da7d5a5991df87975b2ca4e7d9ca6f1ef84e234ed321a57d41e74c83
|
7
|
+
data.tar.gz: d2e1f2d1814088549d4451dc50fcefb9c89cf886167bcaff7cb19afe7cd51e55568927ca2299ec1daa0b0b37b92b62063788d6d712596484c2a702ca5dd2b2d7
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
## master
|
4
4
|
|
5
|
+
## 1.0.0 🎄
|
6
|
+
|
5
7
|
- Add `it` block parameter support. ([@palkan][])
|
6
8
|
|
7
9
|
- Deprecate AST transpiling mode. ([@palkan][])
|
@@ -20,7 +22,7 @@
|
|
20
22
|
|
21
23
|
- Use `.rbnextrc` arguments for runtime transpiling and auto-transpiling gems. ([@palkan][])
|
22
24
|
|
23
|
-
- Stop testing Ruby <2.
|
25
|
+
- Stop testing Ruby <2.4. ([@palkan][])
|
24
26
|
|
25
27
|
- Extract `require-hooks`. ([@palkan][])
|
26
28
|
|
data/README.md
CHANGED
@@ -127,7 +127,7 @@ First, install a gem:
|
|
127
127
|
gem "ruby-next-core"
|
128
128
|
|
129
129
|
# gemspec
|
130
|
-
spec.add_dependency "ruby-next-core"
|
130
|
+
spec.add_dependency "ruby-next-core", "~> 1.0"
|
131
131
|
```
|
132
132
|
|
133
133
|
**NOTE:** we use a different gem for _distribution_, `ruby-next-core`, to provide a zero-dependency, polyfills-only version.
|
@@ -182,10 +182,10 @@ Installation:
|
|
182
182
|
|
183
183
|
```ruby
|
184
184
|
# Gemfile
|
185
|
-
gem "ruby-next"
|
185
|
+
gem "ruby-next", "~> 1.0"
|
186
186
|
|
187
187
|
# gemspec
|
188
|
-
spec.add_dependency "ruby-next"
|
188
|
+
spec.add_dependency "ruby-next", "~> 1.0"
|
189
189
|
```
|
190
190
|
|
191
191
|
```sh
|
@@ -222,7 +222,6 @@ Usage: ruby-next nextify DIRECTORY_OR_FILE [options]
|
|
222
222
|
--overwrite Overwrites the original file with one version of --single-version (works only with --single-version or --rewrite)
|
223
223
|
--edge Enable edge (master) Ruby features
|
224
224
|
--proposed Enable proposed/experimental Ruby features
|
225
|
-
--transpile-mode=MODE Transpiler mode (ast or rewrite). Default: ast
|
226
225
|
--[no-]refine Do not inject `using RubyNext`
|
227
226
|
--list-rewriters List available rewriters
|
228
227
|
--rewrite=REWRITERS... Specify particular Ruby features to rewrite
|
@@ -234,7 +233,7 @@ Usage: ruby-next nextify DIRECTORY_OR_FILE [options]
|
|
234
233
|
|
235
234
|
The behaviour depends on whether you transpile a single file or a directory:
|
236
235
|
|
237
|
-
- When transpiling a directory, the `.rbnext` subfolder is created within the target folder with subfolders for each supported Ruby versions (e.g., `.rbnext/2.
|
236
|
+
- When transpiling a directory, the `.rbnext` subfolder is created within the target folder with subfolders for each supported Ruby versions (e.g., `.rbnext/2.7`, `.rbnext/3.1`, `.rbnext/3.4`, etc.). If you want to create only a single version (the smallest), you can also pass `--single-version` flag. In that case, no version directory is created (i.e., transpiled files go into `.rbnext`).
|
238
237
|
|
239
238
|
- When transpiling a file and providing the output path as a _file_ path, only a single version is created. For example:
|
240
239
|
|
@@ -300,7 +299,7 @@ Configuration file is a YAML with commands as keys and options as multiline stri
|
|
300
299
|
# ./.rbnextrc
|
301
300
|
|
302
301
|
nextify: |
|
303
|
-
--
|
302
|
+
--min-version=2.7
|
304
303
|
--edge
|
305
304
|
```
|
306
305
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-next
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladimir Dementyev
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.0.0
|
19
|
+
version: 1.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.0.0
|
26
|
+
version: 1.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: ruby-next-parser
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -112,9 +112,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
112
112
|
version: 2.2.0
|
113
113
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - "
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: '0'
|
118
118
|
requirements: []
|
119
119
|
rubygems_version: 3.4.20
|
120
120
|
signing_key:
|