Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increment version #1430

Merged
merged 1 commit into from
Sep 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,29 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a

## [Unreleased]

## [0.11.0] - 2023-09-08

### Added

- `Node#inspect` is much improved.
- `YARP::Pattern` is introduced, which can construct procs to match against nodes.
- `BlockLocalVariableNode` is introduced to take the place of the locations array on `BlockParametersNode`.
- `ParseResult#attach_comments!` is now provided to attach comments to locations in the tree.
- `MultiTargetNode` is introduced as the target of multi writes and for loops.
- `Node#comment_targets` is introduced to return the list of objects that can have attached comments.

### Changed

- **BREAKING**: `GlobalVariable*Node#name` now returns a symbol.
- **BREAKING**: `Constant*Node#name` now returns a symbol.
- **BREAKING**: `BlockParameterNode`, `KeywordParameterNode`, `KeywordRestParameterNode`, `RestParameterNode`, `DefNode` all have their `name` methods returning symbols now.
- **BREAKING**: `ClassNode#name` and `ModuleNode#name` now return symbols.
- **BREAKING**: `Location#end_column` is now exclusive instead of inclusive.
- `Location#slice` now returns a properly encoded string.
- `CallNode#operator_loc` is now `CallNode#call_operator_loc`.
- `CallOperatorAndWriteNode` is renamed to `CallAndWriteNode` and its structure has changed.
- `CallOperatorOrWriteNode` is renamed to `CallOrWriteNode` and its structure has changed.

## [0.10.0] - 2023-09-01

### Added
Expand Down Expand Up @@ -94,7 +117,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a

- 🎉 Initial release! 🎉

[unreleased]: https://github.com/ruby/yarp/compare/v0.10.0...HEAD
[unreleased]: https://github.com/ruby/yarp/compare/v0.11.0...HEAD
[0.11.0]: https://github.com/ruby/yarp/compare/v0.10.0...v0.11.0
[0.10.0]: https://github.com/ruby/yarp/compare/v0.9.0...v0.10.0
[0.9.0]: https://github.com/ruby/yarp/compare/v0.8.0...v0.9.0
[0.8.0]: https://github.com/ruby/yarp/compare/v0.7.0...v0.8.0
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
yarp (0.10.0)
yarp (0.11.0)

GEM
remote: https://rubygems.org/
Expand Down
2 changes: 1 addition & 1 deletion ext/yarp/extension.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef YARP_EXT_NODE_H
#define YARP_EXT_NODE_H

#define EXPECTED_YARP_VERSION "0.10.0"
#define EXPECTED_YARP_VERSION "0.11.0"

#include <ruby.h>
#include <ruby/encoding.h>
Expand Down
4 changes: 2 additions & 2 deletions include/yarp/version.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define YP_VERSION_MAJOR 0
#define YP_VERSION_MINOR 10
#define YP_VERSION_MINOR 11
#define YP_VERSION_PATCH 0
#define YP_VERSION "0.10.0"
#define YP_VERSION "0.11.0"
2 changes: 1 addition & 1 deletion rust/yarp-sys/tests/utils_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fn version_test() {
CStr::from_ptr(version)
};

assert_eq!(&cstring.to_string_lossy(), "0.10.0");
assert_eq!(&cstring.to_string_lossy(), "0.11.0");
}

#[test]
Expand Down
2 changes: 1 addition & 1 deletion templates/java/org/yarp/Loader.java.erb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public class Loader {
expect((byte) 'P');

expect((byte) 0);
expect((byte) 10);
expect((byte) 11);
expect((byte) 0);

// This loads the name of the encoding. We don't actually do anything
Expand Down
2 changes: 1 addition & 1 deletion templates/lib/yarp/serialize.rb.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ end
module YARP
module Serialize
MAJOR_VERSION = 0
MINOR_VERSION = 10
MINOR_VERSION = 11
PATCH_VERSION = 0

def self.load(input, serialized)
Expand Down
2 changes: 1 addition & 1 deletion yarp.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |spec|
spec.name = "yarp"
spec.version = "0.10.0"
spec.version = "0.11.0"
spec.authors = ["Shopify"]
spec.email = ["ruby@shopify.com"]

Expand Down