-
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.
Merge pull request #1 from apainintheneck/add-ci
Add CI
- Loading branch information
Showing
15 changed files
with
552 additions
and
506 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
day: "sunday" | ||
open-pull-requests-limit: 2 | ||
- package-ecosystem: "bundler" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
day: "sunday" | ||
open-pull-requests-limit: 5 |
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,27 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: main | ||
pull_request: | ||
jobs: | ||
tests: | ||
strategy: | ||
matrix: | ||
platform: ["ubuntu-latest", "macos-latest"] | ||
ruby: [3.0, 3.1, 3.2, 3.3] | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- name: Set up Git repository | ||
uses: actions/checkout@main | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
|
||
- name: Run linter | ||
run: bundle exec standardrb | ||
|
||
- name: Run tests | ||
run: bundle exec rspec |
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 |
---|---|---|
|
@@ -8,17 +8,17 @@ Gem::Specification.new do |spec| | |
spec.authors = ["apainintheneck"] | ||
spec.email = ["[email protected]"] | ||
|
||
spec.summary = "TODO: Write a short summary, because RubyGems requires one." | ||
spec.description = "TODO: Write a longer description or delete this line." | ||
spec.homepage = "TODO: Put your gem's website or public repo URL here." | ||
spec.summary = "An unofficial CLI interface to browse rubygems.org" | ||
spec.description = <<~DESCRIPTION | ||
An unofficial CLI interface to browse rubygems.org. Search for gems by name, see which ones have been recently updated and look at their dependencies. | ||
DESCRIPTION | ||
spec.homepage = "https://github.com/apainintheneck/gemview" | ||
spec.license = "MIT" | ||
spec.required_ruby_version = ">= 3.0.0" | ||
|
||
spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'" | ||
|
||
spec.metadata["homepage_uri"] = spec.homepage | ||
spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here." | ||
spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here." | ||
spec.metadata["source_code_uri"] = spec.homepage | ||
spec.metadata["changelog_uri"] = "https://github.com/apainintheneck/gemview/blob/main/CHANGELOG.md" | ||
|
||
# Specify which files should be added to the gem when it is released. | ||
# The `git ls-files -z` loads the files in the RubyGem that have been added into git. | ||
|
@@ -33,6 +33,7 @@ Gem::Specification.new do |spec| | |
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) } | ||
spec.require_paths = ["lib"] | ||
|
||
# Direct dependencies | ||
spec.add_dependency "dry-cli", "~> 1.2.0" | ||
spec.add_dependency "dry-struct", "~> 1.6.0" | ||
spec.add_dependency "gems", "~> 1.3.0" | ||
|
@@ -41,6 +42,6 @@ Gem::Specification.new do |spec| | |
spec.add_dependency "tty-pager", "~> 0.14.0" | ||
spec.add_dependency "tty-prompt", "~> 0.23.1" | ||
|
||
# For more information and examples about making a new gem, check out our | ||
# guide at: https://bundler.io/guides/creating_gem.html | ||
# Transitive dependencies | ||
spec.add_dependency "zeitwerk", "< 2.7" | ||
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
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 |
---|---|---|
@@ -1,39 +1,38 @@ | ||
[36;1;4mruby-ble[0m | ||
ruby-ble | ||
Bluetooth Low Energy for Ruby | ||
[90m(Gem Version - https://badge.fury.io/rb/ble.svg)[0m » [33;4mhttps://badge.fury.io/rb/ble[0m | ||
(Gem Version - https://badge.fury.io/rb/ble.svg) » https://badge.fury.io/rb/ble | ||
|
||
[36;1mRequirements[0m | ||
[33m●[0m ruby >= 2.3 | ||
[33m●[0m Dbus | ||
[33m●[0m bluez >= 5.36 (available on debian testing) | ||
[33m●[0m [38;5;230mbluetoothd[39m started with option [38;5;230m-E[39m (experimental) | ||
Requirements | ||
● ruby >= 2.3 | ||
● Dbus | ||
● bluez >= 5.36 (available on debian testing) | ||
● bluetoothd started with option -E (experimental) | ||
|
||
[36;1mExamples[0m | ||
[38;5;67;04m# Selecter adapter[39;00m[38;5;230m[39m | ||
[38;5;230m[39m[38;5;153;01m$a[39;00m[38;5;230m [39m[38;5;87;01m=[39;00m[38;5;230m [39m[38;5;155;01mBLE[39;00m[38;5;87;01m::[39;00m[38;5;155;01mAdapter[39;00m[38;5;87m.[39m[38;5;153mnew[39m[38;5;87m([39m[38;5;229;01m'hci0'[39;00m[38;5;87m)[39m[38;5;230m[39m | ||
[38;5;230m[39m[01mputs[00m[38;5;230m [39m[38;5;229;01m"Info: [39;00m[38;5;87;01m#{[39;00m[38;5;153;01m$a[39;00m[38;5;87m.[39m[38;5;153miface[39m[38;5;87;01m}[39;00m[38;5;229;01m [39;00m[38;5;87;01m#{[39;00m[38;5;153;01m$a[39;00m[38;5;87m.[39m[38;5;153maddress[39m[38;5;87;01m}[39;00m[38;5;229;01m [39;00m[38;5;87;01m#{[39;00m[38;5;153;01m$a[39;00m[38;5;87m.[39m[38;5;153mname[39m[38;5;87;01m}[39;00m[38;5;229;01m"[39;00m[38;5;230m[39m | ||
[38;5;230m[39m | ||
[38;5;230m[39m[38;5;67;04m# Run discovery[39;00m[38;5;230m[39m | ||
[38;5;230m[39m[38;5;153;01m$a[39;00m[38;5;87m.[39m[38;5;153mstart_discovery[39m[38;5;230m[39m | ||
[38;5;230m[39m[01msleep[00m[38;5;87m([39m[38;5;212;01m2[39;00m[38;5;87m)[39m[38;5;230m[39m | ||
[38;5;230m[39m[38;5;153;01m$a[39;00m[38;5;87m.[39m[38;5;153mstop_discovery[39m[38;5;230m[39m | ||
[38;5;230m[39m | ||
[38;5;230m[39m[38;5;67;04m# Get device and connect to it[39;00m[38;5;230m[39m | ||
[38;5;230m[39m[38;5;153;01m$d[39;00m[38;5;230m [39m[38;5;87;01m=[39;00m[38;5;230m [39m[38;5;153;01m$a[39;00m[38;5;87m[[39m[38;5;229;01m'F4:AD:CB:FB:B4:85'[39;00m[38;5;87m][39m[38;5;230m[39m | ||
[38;5;230m[39m[38;5;153;01m$d[39;00m[38;5;87m.[39m[38;5;153mconnect[39m[38;5;230m[39m | ||
[38;5;230m[39m | ||
[38;5;230m[39m[38;5;67;04m# Get temperature from the environmental sensing service[39;00m[38;5;230m[39m | ||
[38;5;230m[39m[38;5;153;01m$d[39;00m[38;5;87m[[39m[38;5;212;01m:environmental_sensing[39;00m[38;5;87m,[39m[38;5;230m [39m[38;5;212;01m:temperature[39;00m[38;5;87m][39m[38;5;230m[39m | ||
[38;5;230m[39m | ||
[38;5;230m[39m[38;5;67;04m# Dump device information[39;00m[38;5;230m[39m | ||
[38;5;230m[39m[38;5;230msrv[39m[38;5;230m [39m[38;5;87;01m=[39;00m[38;5;230m [39m[38;5;212;01m:device_information[39;00m[38;5;230m[39m | ||
[38;5;230m[39m[38;5;153;01m$d[39;00m[38;5;87m.[39m[38;5;153mcharacteristics[39m[38;5;87m([39m[38;5;230msrv[39m[38;5;87m).[39m[38;5;153meach[39m[38;5;230m [39m[38;5;87m{[39m[38;5;87;01m|[39;00m[38;5;230muuid[39m[38;5;87;01m|[39;00m[38;5;230m[39m | ||
[38;5;230m [39m[38;5;230minfo[39m[38;5;230m [39m[38;5;87;01m=[39;00m[38;5;230m [39m[38;5;155;01mBLE[39;00m[38;5;87;01m::[39;00m[38;5;155;01mCharacteristic[39;00m[38;5;87m[[39m[38;5;230muuid[39m[38;5;87m][39m[38;5;230m[39m | ||
[38;5;230m [39m[01mname[00m[38;5;230m [39m[38;5;87;01m=[39;00m[38;5;230m [39m[38;5;230minfo[39m[38;5;87m.[39m[38;5;153mnil?[39m[38;5;230m [39m[38;5;87m?[39m[38;5;230m [39m[38;5;230muuid[39m[38;5;230m [39m[38;5;87m:[39m[38;5;230m [39m[38;5;230minfo[39m[38;5;87m[[39m[38;5;212;01m:name[39;00m[38;5;87m][39m[38;5;230m[39m | ||
[38;5;230m [39m[38;5;230mvalue[39m[38;5;230m [39m[38;5;87;01m=[39;00m[38;5;230m [39m[38;5;153;01m$d[39;00m[38;5;87m[[39m[38;5;230msrv[39m[38;5;87m,[39m[38;5;230m [39m[38;5;230muuid[39m[38;5;87m][39m[38;5;230m [39m[38;5;221;01mrescue[39;00m[38;5;230m [39m[38;5;229;01m'/!\\ not-readable /!\\'[39;00m[38;5;230m[39m | ||
[38;5;230m [39m[01mputs[00m[38;5;230m [39m[38;5;229;01m"%-30s: %s"[39;00m[38;5;230m [39m[38;5;87;01m%[39;00m[38;5;230m [39m[38;5;87m[[39m[38;5;230m [39m[01mname[00m[38;5;87m,[39m[38;5;230m [39m[38;5;230mvalue[39m[38;5;230m [39m[38;5;87m][39m[38;5;230m[39m | ||
[38;5;230m[39m[38;5;87m}[39m[38;5;230m[39m | ||
[38;5;230m[39m | ||
[38;5;230m[39m | ||
[36;1mContributors[0m | ||
[33m●[0m Oliver Valls (tramuntanal): Bug fixes / BLE Notification support | ||
Examples | ||
# Selecter adapter | ||
$a = BLE::Adapter.new('hci0') | ||
puts "Info: #{$a.iface} #{$a.address} #{$a.name}" | ||
|
||
# Run discovery | ||
$a.start_discovery | ||
sleep(2) | ||
$a.stop_discovery | ||
|
||
# Get device and connect to it | ||
$d = $a['F4:AD:CB:FB:B4:85'] | ||
$d.connect | ||
|
||
# Get temperature from the environmental sensing service | ||
$d[:environmental_sensing, :temperature] | ||
|
||
# Dump device information | ||
srv = :device_information | ||
$d.characteristics(srv).each {|uuid| | ||
info = BLE::Characteristic[uuid] | ||
name = info.nil? ? uuid : info[:name] | ||
value = $d[srv, uuid] rescue '/!\\ not-readable /!\\' | ||
puts "%-30s: %s" % [ name, value ] | ||
} | ||
|
||
Contributors | ||
● Oliver Valls (tramuntanal): Bug fixes / BLE Notification support |
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 |
---|---|---|
@@ -1,19 +1,18 @@ | ||
[36;1m[Dependencies][0m | ||
[Dependencies] | ||
|
||
[36;1mRuntime Dependencies:[0m | ||
[38;5;230mgem[39m[38;5;230m [39m[38;5;229;01m"actioncable"[39;00m[38;5;87m,[39m[38;5;230m [39m[38;5;229;01m"= 8.0.0"[39;00m[38;5;230m[39m | ||
[38;5;230m[39m[38;5;230mgem[39m[38;5;230m [39m[38;5;229;01m"actionmailbox"[39;00m[38;5;87m,[39m[38;5;230m [39m[38;5;229;01m"= 8.0.0"[39;00m[38;5;230m[39m | ||
[38;5;230m[39m[38;5;230mgem[39m[38;5;230m [39m[38;5;229;01m"actionmailer"[39;00m[38;5;87m,[39m[38;5;230m [39m[38;5;229;01m"= 8.0.0"[39;00m[38;5;230m[39m | ||
[38;5;230m[39m[38;5;230mgem[39m[38;5;230m [39m[38;5;229;01m"actionpack"[39;00m[38;5;87m,[39m[38;5;230m [39m[38;5;229;01m"= 8.0.0"[39;00m[38;5;230m[39m | ||
[38;5;230m[39m[38;5;230mgem[39m[38;5;230m [39m[38;5;229;01m"actiontext"[39;00m[38;5;87m,[39m[38;5;230m [39m[38;5;229;01m"= 8.0.0"[39;00m[38;5;230m[39m | ||
[38;5;230m[39m[38;5;230mgem[39m[38;5;230m [39m[38;5;229;01m"actionview"[39;00m[38;5;87m,[39m[38;5;230m [39m[38;5;229;01m"= 8.0.0"[39;00m[38;5;230m[39m | ||
[38;5;230m[39m[38;5;230mgem[39m[38;5;230m [39m[38;5;229;01m"activejob"[39;00m[38;5;87m,[39m[38;5;230m [39m[38;5;229;01m"= 8.0.0"[39;00m[38;5;230m[39m | ||
[38;5;230m[39m[38;5;230mgem[39m[38;5;230m [39m[38;5;229;01m"activemodel"[39;00m[38;5;87m,[39m[38;5;230m [39m[38;5;229;01m"= 8.0.0"[39;00m[38;5;230m[39m | ||
[38;5;230m[39m[38;5;230mgem[39m[38;5;230m [39m[38;5;229;01m"activerecord"[39;00m[38;5;87m,[39m[38;5;230m [39m[38;5;229;01m"= 8.0.0"[39;00m[38;5;230m[39m | ||
[38;5;230m[39m[38;5;230mgem[39m[38;5;230m [39m[38;5;229;01m"activestorage"[39;00m[38;5;87m,[39m[38;5;230m [39m[38;5;229;01m"= 8.0.0"[39;00m[38;5;230m[39m | ||
[38;5;230m[39m[38;5;230mgem[39m[38;5;230m [39m[38;5;229;01m"activesupport"[39;00m[38;5;87m,[39m[38;5;230m [39m[38;5;229;01m"= 8.0.0"[39;00m[38;5;230m[39m | ||
[38;5;230m[39m[38;5;230mgem[39m[38;5;230m [39m[38;5;229;01m"bundler"[39;00m[38;5;87m,[39m[38;5;230m [39m[38;5;229;01m">= 1.15.0"[39;00m[38;5;230m[39m | ||
[38;5;230m[39m[38;5;230mgem[39m[38;5;230m [39m[38;5;229;01m"railties"[39;00m[38;5;87m,[39m[38;5;230m [39m[38;5;229;01m"= 8.0.0"[39;00m[38;5;230m[39m | ||
[38;5;230m[39m | ||
[36;1mDevelopment Dependencies:[0m | ||
Runtime Dependencies: | ||
gem "actioncable", "= 8.0.0" | ||
gem "actionmailbox", "= 8.0.0" | ||
gem "actionmailer", "= 8.0.0" | ||
gem "actionpack", "= 8.0.0" | ||
gem "actiontext", "= 8.0.0" | ||
gem "actionview", "= 8.0.0" | ||
gem "activejob", "= 8.0.0" | ||
gem "activemodel", "= 8.0.0" | ||
gem "activerecord", "= 8.0.0" | ||
gem "activestorage", "= 8.0.0" | ||
gem "activesupport", "= 8.0.0" | ||
gem "bundler", ">= 1.15.0" | ||
gem "railties", "= 8.0.0" | ||
Development Dependencies: | ||
(none) |
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 |
---|---|---|
@@ -1,17 +1,16 @@ | ||
[36;1m[8.0.0] rails[0m | ||
[8.0.0] rails | ||
|
||
Ruby on Rails is a full-stack web framework optimized for programmer happiness | ||
and sustainable productivity. It encourages beautiful code by favoring | ||
Ruby on Rails is a full-stack web framework optimized for programmer happiness | ||
and sustainable productivity. It encourages beautiful code by favoring | ||
convention over configuration. | ||
|
||
[33m┌─────────────────┬─────────────────────────────────┐[0m | ||
[33m│[0m Updated at [33m│[0m 2024-11-07 22:30:42 UTC [33m│[0m | ||
[33m├─────────────────┼─────────────────────────────────┤[0m | ||
[33m│[0m Total Downloads [33m│[0m 567,406,953 [33m│[0m | ||
[33m├─────────────────┼─────────────────────────────────┤[0m | ||
[33m│[0m Authors [33m│[0m David Heinemeier Hansson [33m│[0m | ||
[33m├─────────────────┼─────────────────────────────────┤[0m | ||
[33m│[0m Licenses [33m│[0m [“MIT”] [33m│[0m | ||
[33m├─────────────────┼─────────────────────────────────┤[0m | ||
[33m│[0m Project URI [33m│[0m https://rubygems.org/gems/rails [33m│[0m | ||
[33m└─────────────────┴─────────────────────────────────┘[0m | ||
┌─────────────────┬─────────────────────────────────┐ | ||
│ Updated at │ 2024-11-07 22:30:42 UTC │ | ||
├─────────────────┼─────────────────────────────────┤ | ||
│ Total Downloads │ 567,406,953 │ | ||
├─────────────────┼─────────────────────────────────┤ | ||
│ Authors │ David Heinemeier Hansson │ | ||
├─────────────────┼─────────────────────────────────┤ | ||
│ Licenses │ [“MIT”] │ | ||
├─────────────────┼─────────────────────────────────┤ | ||
│ Project URI │ https://rubygems.org/gems/rails │ | ||
└─────────────────┴─────────────────────────────────┘ |
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 |
---|---|---|
@@ -1,11 +1,10 @@ | ||
[36;1m[Dependencies][0m | ||
[Dependencies] | ||
|
||
[36;1mRuntime Dependencies:[0m | ||
[38;5;230mgem[39m[38;5;230m [39m[38;5;229;01m"language_server-protocol"[39;00m[38;5;87m,[39m[38;5;230m [39m[38;5;229;01m"~> 3.17.0.2"[39;00m[38;5;230m[39m | ||
[38;5;230m[39m[38;5;230mgem[39m[38;5;230m [39m[38;5;229;01m"lint_roller"[39;00m[38;5;87m,[39m[38;5;230m [39m[38;5;229;01m"~> 1.0"[39;00m[38;5;230m[39m | ||
[38;5;230m[39m[38;5;230mgem[39m[38;5;230m [39m[38;5;229;01m"rubocop"[39;00m[38;5;87m,[39m[38;5;230m [39m[38;5;229;01m"~> 1.68.0"[39;00m[38;5;230m[39m | ||
[38;5;230m[39m[38;5;230mgem[39m[38;5;230m [39m[38;5;229;01m"standard-custom"[39;00m[38;5;87m,[39m[38;5;230m [39m[38;5;229;01m"~> 1.0.0"[39;00m[38;5;230m[39m | ||
[38;5;230m[39m[38;5;230mgem[39m[38;5;230m [39m[38;5;229;01m"standard-performance"[39;00m[38;5;87m,[39m[38;5;230m [39m[38;5;229;01m"~> 1.5"[39;00m[38;5;230m[39m | ||
[38;5;230m[39m | ||
[36;1mDevelopment Dependencies:[0m | ||
Runtime Dependencies: | ||
gem "language_server-protocol", "~> 3.17.0.2" | ||
gem "lint_roller", "~> 1.0" | ||
gem "rubocop", "~> 1.68.0" | ||
gem "standard-custom", "~> 1.0.0" | ||
gem "standard-performance", "~> 1.5" | ||
Development Dependencies: | ||
(none) |
Oops, something went wrong.