-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added CHANGELOG * Add rubygems step to release workflow. Still needs some work - would like to build the release text from the changelog. Next commit ;)
- Loading branch information
Showing
6 changed files
with
127 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [0.3.0] - 2021-01-17 | ||
|
||
### Added | ||
- Finally got round to writing a changelog. | ||
- Released to rubygems.org | ||
- First version released to Github releases | ||
- 100% mutation coverage | ||
- Note: Versions prior to 0.3.0 were never tagged, built, nor released. | ||
|
||
### Changed | ||
- Correctly specified rubies supported for the first time. | ||
- Dropped support for Ruby 2.4 | ||
|
||
### Fixed | ||
- Fixed issue where `LIRC::Messages::ResponseParser#parse_line` could return | ||
`ArgumentError` instead of `ParseError` in rare circumstances. | ||
|
||
|
||
## [0.2.0] - 2020-ish [YANKED] | ||
|
||
### Added | ||
|
||
- `irsend` executable in `bin` dir, as an example for usage | ||
- `LIRC::Protocol`, including response parsing and command-sending. | ||
`#send_command` returns an `EM::Deferrable` that succeeds/fails after the LIRC | ||
server responds. | ||
|
||
|
||
## [0.1.0] - 2020-ish [YANKED] | ||
|
||
### Added | ||
|
||
- Sketch of project structure | ||
- Note: A 0.1.0 release was never made (nor a tag) - so it has been marked as | ||
[YANKED] above. | ||
|
||
|
||
[0.3.0]: https://github.com/telyn/ruby-lirc/releases/v0.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env ruby | ||
|
||
require "bundler/setup" | ||
require "lirc" | ||
|
||
version_number = LIRC::VERSION.gsub('.', '\\.') | ||
|
||
state = :waiting_for_version | ||
File.open('CHANGELOG.md', 'r').each_line do |line| | ||
case state | ||
when :waiting_for_version | ||
if line =~ /\A## \[(.+?)\]/ | ||
latest_version = Regexp.last_match[1] | ||
if latest_version == LIRC::VERSION | ||
puts line | ||
state = :reading_changelog | ||
else | ||
raise "Expected latest version in changelog to be '#{LIRC::VERSION}', was '#{latest_version}'" | ||
end | ||
end | ||
when :reading_changelog | ||
if line =~ /\A## / | ||
state = :done | ||
else | ||
puts line | ||
end | ||
end | ||
break if state == :done | ||
end | ||
if state != :done | ||
raise "Got to end of file in #{state} state?" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters