macos 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e57ccde4764a60cb95d02db81cb77b9020fc9a49485ceb9cd072372b83a49771
4
- data.tar.gz: 35fa614ea29cbd22514e399421e020bd31b53684ff873557b2c473997f138622
3
+ metadata.gz: 423a1401afca3af5d7e80af2653462f51c8a94b2b38e2b886eecf7d958e33f59
4
+ data.tar.gz: b5a9a30edef68dccea9f734befd4638b3c1ca0c176360f250a322a4f0ea00e50
5
5
  SHA512:
6
- metadata.gz: bd6b361dc972f420b4dddd63e26a6526c613c958e2e4d7468968ad1aeb14f9040582b60e8d63ddf7b0b8b4d26f785279882b0df7dfbe472ceeb95fbd152c6f00
7
- data.tar.gz: 95cb05ce401e150b188bbd5fa5dc1201b298d27fbeaa3d10b0ae3de4d46bbc8072f6cd4412f2f1ffe2303a47918b302207d407287047e0ba4ba4d74ddc283239
6
+ metadata.gz: 39d70e2ef94ebf0af0aab4a33c2d68f3daa49de8faa38a9fc7e3fde2deac2face88a7cd9a45e2e7fa5f772976a6ead402671d29269b5140e5f8d492ccbc0fb45
7
+ data.tar.gz: 31219d6687186afda87061b43274bb75c85ef2b4b8589625d0bce96e1522782efc6461a3d45aaec749c1f547cb0a7b38dd17f8edc195db12761d354104124ce2
data/Gemfile ADDED
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gemspec
6
+
7
+ gem "rake"
8
+ gem "rspec"
9
+ gem "rspec_junit_formatter"
10
+ gem "rubocop"
11
+ gem "rubocop-basic"
12
+ gem "rubocop-rake"
13
+ gem "rubocop-rspec"
14
+ gem "simplecov"
15
+ gem "yard"
data/README.md CHANGED
@@ -1,39 +1,48 @@
1
- # Macos
1
+ # MacOS
2
2
 
3
- TODO: Delete this and the text below, and describe your gem
3
+ [![LICENSE](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/ksylvest/macos/blob/main/LICENSE)
4
+ [![RubyGems](https://img.shields.io/gem/v/macos)](https://rubygems.org/gems/macos)
5
+ [![GitHub](https://img.shields.io/badge/github-repo-blue.svg)](https://github.com/ksylvest/macos)
6
+ [![Yard](https://img.shields.io/badge/docs-site-blue.svg)](https://macos.ksylvest.com)
7
+ [![CircleCI](https://img.shields.io/circleci/build/github/ksylvest/macos)](https://circleci.com/gh/ksylvest/macos)
4
8
 
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/macos`. To experiment with that code, run `bin/console` for an interactive prompt.
9
+ A library for interacting with your Mac through ruby.
6
10
 
7
11
  ## Installation
8
12
 
9
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_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
- ```bash
14
- bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
13
+ ```ruby
14
+ gem install macos
15
15
  ```
16
16
 
17
- If bundler is not being used to manage dependencies, install the gem by executing:
17
+ ## Usage
18
18
 
19
- ```bash
20
- gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
21
- ```
19
+ ### Mouse
22
20
 
23
- ## Usage
21
+ ```ruby
22
+ require 'macos'
24
23
 
25
- TODO: Write usage instructions here
24
+ mouse = MacOS.mouse
26
25
 
27
- ## Development
26
+ mouse.move(x: 0, y: 0)
27
+ position = mouse.position
28
+ puts "#{position.x},#{position.y}"
28
29
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+ mouse.move(x: 2, y: 3)
31
+ position = mouse.position
32
+ puts "#{position.x},#{position.y}"
33
+ ```
30
34
 
31
- 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).
35
+ ### Display
32
36
 
33
- ## Contributing
37
+ ```ruby
38
+ require 'macos'
34
39
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/macos.
40
+ display = MacOS.display
41
+ bounds = display.bounds
36
42
 
37
- ## License
43
+ puts "#{bounds.width}×#{bounds.height}"
38
44
 
39
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
45
+ display.capture do |tempfile|
46
+ # ...
47
+ end
48
+ ```
data/bin/console ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "macos"
6
+
7
+ require "irb"
8
+ IRB.start(__FILE__)
data/bin/demo ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "macos"
6
+
7
+ mouse = MacOS.mouse
8
+
9
+ loop do
10
+ puts mouse.position
11
+
12
+ mouse.move(x: 20.0, y: 20.0)
13
+ sleep 5
14
+ end
data/bin/setup ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module MacOS
4
+ module CG
5
+ # https://developer.apple.com/documentation/coregraphics/cgeventtaplocation
6
+ module EventTapLocation
7
+ HID_EVENT_TAP = 0 # https://developer.apple.com/documentation/coregraphics/cgeventtaplocation/cghideventtap
8
+ SESSSION_EVENT_TAP = 1 # https://developer.apple.com/documentation/coregraphics/cgeventtaplocation/sessioneventtap
9
+ ANNOTATED_SESSION_EVENT_TAP = 2 # https://developer.apple.com/documentation/coregraphics/cgeventtaplocation/annotatedsessioneventtap
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module MacOS
4
+ module CG
5
+ # https://developer.apple.com/documentation/coregraphics/cgeventtype
6
+ module EventType
7
+ NULL = 0 # https://developer.apple.com/documentation/coregraphics/cgeventtype/null
8
+ LEFT_MOUSE_DOWN = 1 # https://developer.apple.com/documentation/coregraphics/cgeventtype/leftmousedown
9
+ LEFT_MOUSE_UP = 2 # https://developer.apple.com/documentation/coregraphics/cgeventtype/leftmouseup
10
+ RIGHT_MOUSE_DOWN = 3 # https://developer.apple.com/documentation/coregraphics/cgeventtype/rightmousedown
11
+ RIGHT_MOUSE_UP = 4 # https://developer.apple.com/documentation/coregraphics/cgeventtype/rightmouseup
12
+ MOUSE_MOVED = 5 # https://developer.apple.com/documentation/coregraphics/cgeventtype/mousemoved
13
+ LEFT_MOUSE_DRAGGED = 6 # https://developer.apple.com/documentation/coregraphics/cgeventtype/leftmousedragged
14
+ RIGHT_MOUSE_DRAGGED = 7 # https://developer.apple.com/documentation/coregraphics/cgeventtype/rightmousedragged
15
+ KEY_DOWN = 10 # https://developer.apple.com/documentation/coregraphics/cgeventtype/keydown
16
+ KEY_UP = 11 # https://developer.apple.com/documentation/coregraphics/cgeventtype/keyup
17
+ OTHER_MOUSE_DOWN = 25 # https://developer.apple.com/documentation/coregraphics/cgeventtype/othermousedown
18
+ OTHER_MOUSE_UP = 26 # https://developer.apple.com/documentation/coregraphics/cgeventtype/othermouseup
19
+ OTHER_MOUSE_DRAGGED = 27 # https://developer.apple.com/documentation/coregraphics/cgeventtype/othermousedragged
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module MacOS
4
+ module CG
5
+ # https://developer.apple.com/documentation/coregraphics/cgmousebutton
6
+ module MouseButton
7
+ LEFT = 0 # https://developer.apple.com/documentation/coregraphics/cgmousebutton/left
8
+ RIGHT = 1 # https://developer.apple.com/documentation/coregraphics/cgmousebutton/right
9
+ CENTER = 2 # https://developer.apple.com/documentation/coregraphics/cgmousebutton/center
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "ffi"
4
+
5
+ module MacOS
6
+ module CG
7
+ # https://developer.apple.com/documentation/corefoundation/cgpoint
8
+ class Point < FFI::Struct
9
+ layout :x, :double, :y, :double
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "ffi"
4
+
5
+ module MacOS
6
+ module CG
7
+ # https://developer.apple.com/documentation/corefoundation/cgrect
8
+ class Rect < FFI::Struct
9
+ layout :origin, MacOS::CG::Point, :size, MacOS::CG::Size
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "ffi"
4
+
5
+ module MacOS
6
+ module CG
7
+ # https://developer.apple.com/documentation/corefoundation/cgsize
8
+ class Size < FFI::Struct
9
+ layout :width, :double, :height, :double
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ module MacOS
4
+ # Simulates a macOS display.
5
+ class Display
6
+ Size = Struct.new(:width, :height)
7
+
8
+ def self.main
9
+ id = Library.CGMainDisplayID
10
+ new(id:)
11
+ end
12
+
13
+ # @param id [Integer
14
+ def initialize(id:)
15
+ @id = id
16
+ end
17
+
18
+ # @return [Size]
19
+ def bounds
20
+ bounds = Library.CGDisplayBounds(@id)
21
+
22
+ width = Integer(bounds[:size][:width])
23
+ height = Integer(bounds[:size][:height])
24
+
25
+ Size.new(width, height)
26
+ end
27
+
28
+ # @yield [tempfile]
29
+ # @yieldparam tempfile [Tempfile]
30
+ def capture
31
+ tempfile = Tempfile.new(["screenshot", ".png"])
32
+ system("screencapture -o -x #{tempfile.path}")
33
+ yield tempfile
34
+ ensure
35
+ tempfile.close
36
+ tempfile.unlink
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module MacOS
4
+ # Simulates a macOS keyboard.
5
+ class Keyboard
6
+ def type(text)
7
+ text.chars.each do |character|
8
+ key_down(character)
9
+ key_up(character)
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "ffi"
4
+
5
+ module MacOS
6
+ # https://developer.apple.com/documentation/coregraphics
7
+ module Library
8
+ extend ::FFI::Library
9
+ ffi_lib "/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics"
10
+
11
+ attach_function :CGEventCreate, %i[pointer], :pointer
12
+ attach_function :CGEventGetLocation, %i[pointer], CG::Point.by_value
13
+ attach_function :CFRelease, %i[pointer], :void
14
+ attach_function :CGEventCreateMouseEvent, [:pointer, :uint32, CG::Point.by_value, :uint32], :pointer
15
+ attach_function :CGEventPost, %i[uint32 pointer], :void
16
+ attach_function :CGWarpMouseCursorPosition, [CG::Point.by_value], :pointer
17
+ attach_function :CGEventCreateKeyboardEvent, %i[pointer uint16 bool bool], :pointer
18
+ attach_function :CGMainDisplayID, [], :uint32
19
+ attach_function :CGDisplayBounds, [:uint32], CG::Rect.by_value
20
+ end
21
+ end
@@ -0,0 +1,99 @@
1
+ # frozen_string_literal: true
2
+
3
+ module MacOS
4
+ # Simulates a macOS mouse.
5
+ class Mouse
6
+ Position = Data.define(:x, :y)
7
+
8
+ # @return [Position]
9
+ def position
10
+ event = Library.CGEventCreate(nil)
11
+ position = Library.CGEventGetLocation(event)
12
+ Library.CFRelease(event)
13
+
14
+ x = position[:x]
15
+ y = position[:y]
16
+
17
+ Position.new(x, y)
18
+ end
19
+
20
+ # @param type [Integer] e.g. `MacOS::CG::EventType::MOUSE_MOVED`
21
+ # @param x [Float]
22
+ # @param y [Float]
23
+ # @param button [Integer] e.g. `MacOS::CG::MouseButton::LEFT` / `MacOS::CG::MouseButton::RIGHT` / etc.
24
+ def trigger(type:, x:, y:, button: 0)
25
+ position = CG::Point.new
26
+ position[:x] = x
27
+ position[:y] = y
28
+ event = Library.CGEventCreateMouseEvent(nil, type, position, button)
29
+ Library.CGEventPost(CG::EventTapLocation::HID_EVENT_TAP, event)
30
+ Library.CFRelease(event)
31
+ end
32
+
33
+ # @param x [Float]
34
+ # @param y [Float]
35
+ def move(x:, y:)
36
+ position = CG::Point.new
37
+ position[:x] = x
38
+ position[:y] = y
39
+ Library.CGWarpMouseCursorPosition(position)
40
+ end
41
+
42
+ # @param x [Float]
43
+ # @param y [Float]
44
+ def left_mouse_down(x:, y:)
45
+ trigger(type: CG::EventType::LEFT_MOUSE_DOWN, x:, y:, button: CG::MouseButton::LEFT)
46
+ end
47
+
48
+ # @param x [Float]
49
+ # @param y [Float]
50
+ def left_mouse_up(x:, y:)
51
+ trigger(type: CG::EventType::LEFT_MOUSE_UP, x:, y:, button: CG::MouseButton::LEFT)
52
+ end
53
+
54
+ # @param x [Float]
55
+ # @param y [Float]
56
+ def left_mouse_click(x:, y:)
57
+ left_mouse_down(x:, y:)
58
+ left_mouse_up(x:, y:)
59
+ end
60
+
61
+ # @param x [Float]
62
+ # @param y [Float]
63
+ def right_mouse_down(x:, y:)
64
+ trigger(type: CG::EventType::RIGHT_MOUSE_DOWN, x:, y:, button: CG::MouseButton::RIGHT)
65
+ end
66
+
67
+ # @param x [Float]
68
+ # @param y [Float]
69
+ def right_mouse_up(x:, y:)
70
+ trigger(type: CG::EventType::RIGHT_MOUSE_UP, x:, y:, button: CG::MouseButton::RIGHT)
71
+ end
72
+
73
+ # @param x [Float]
74
+ # @param y [Float]
75
+ def right_mouse_click(x:, y:)
76
+ right_mouse_down(x:, y:)
77
+ right_mouse_up(x:, y:)
78
+ end
79
+
80
+ # @param x [Float]
81
+ # @param y [Float]
82
+ def middle_mouse_down(x:, y:)
83
+ trigger(type: CG::EventType::OTHER_MOUSE_DOWN, x:, y:, button: CG::MouseButton::CENTER)
84
+ end
85
+
86
+ # @param x [Float]
87
+ # @param y [Float]
88
+ def middle_mouse_up(x:, y:)
89
+ trigger(type: CG::EventType::OTHER_MOUSE_UP, x:, y:, button: CG::MouseButton::CENTER)
90
+ end
91
+
92
+ # @param x [Float]
93
+ # @param y [Float]
94
+ def middle_mouse_click(x:, y:)
95
+ middle_mouse_down(x:, y:)
96
+ middle_mouse_up(x:, y:)
97
+ end
98
+ end
99
+ end
data/lib/macos/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module Macos
4
- VERSION = "0.1.0"
3
+ module MacOS
4
+ VERSION = "0.1.2"
5
5
  end
data/lib/macos.rb CHANGED
@@ -1,8 +1,41 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "macos/version"
3
+ require "fiddle"
4
+ require "zeitwerk"
4
5
 
5
- module Macos
6
+ loader = Zeitwerk::Loader.for_gem
7
+ loader.inflector.inflect "cg" => "CG"
8
+ loader.inflector.inflect "macos" => "MacOS"
9
+ loader.setup
10
+
11
+ # Interacts with macOS.
12
+ module MacOS
6
13
  class Error < StandardError; end
7
- # Your code goes here...
14
+
15
+ # @example
16
+ # MacOS.keyboard.type('Hello, World!')
17
+ # MacOS.keyboard.key_down('a')
18
+ # MacOS.keyboard.key_up('a')
19
+ #
20
+ # @return [MacOS::Keyboard]
21
+ def self.keyboard
22
+ Keyboard.new
23
+ end
24
+
25
+ # @example
26
+ # mouse = MacOS.mouse
27
+ # mouse.move(x: 4, y: 8)
28
+ # position = mouse.position
29
+ # mouse.left_mouse_click(x: position.x, y: position.y)
30
+ # mouse.right_mouse_click(x: position.x, y: position.y)
31
+ #
32
+ # @return [MacOS::Mouse]
33
+ def self.mouse
34
+ Mouse.new
35
+ end
36
+
37
+ # @return [MacOS::Display]
38
+ def self.display
39
+ Display.main
40
+ end
8
41
  end
metadata CHANGED
@@ -1,15 +1,56 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: macos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Sylvestre
8
- autorequire:
9
- bindir: exe
8
+ bindir: bin
10
9
  cert_chain: []
11
- date: 2024-11-18 00:00:00.000000000 Z
12
- dependencies: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: ffi
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '0'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: '0'
26
+ - !ruby/object:Gem::Dependency
27
+ name: fiddle
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ - !ruby/object:Gem::Dependency
41
+ name: zeitwerk
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ type: :runtime
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
13
54
  description: An interface (designed for LLMs) to macOS.
14
55
  email:
15
56
  - kevin@ksylvest.com
@@ -17,22 +58,31 @@ executables: []
17
58
  extensions: []
18
59
  extra_rdoc_files: []
19
60
  files:
20
- - ".rspec"
21
- - ".rubocop.yml"
22
- - LICENSE.txt
61
+ - Gemfile
23
62
  - README.md
24
- - Rakefile
63
+ - bin/console
64
+ - bin/demo
65
+ - bin/setup
25
66
  - lib/macos.rb
67
+ - lib/macos/cg/event_tap_location.rb
68
+ - lib/macos/cg/event_type.rb
69
+ - lib/macos/cg/mouse_button.rb
70
+ - lib/macos/cg/point.rb
71
+ - lib/macos/cg/rect.rb
72
+ - lib/macos/cg/size.rb
73
+ - lib/macos/display.rb
74
+ - lib/macos/keyboard.rb
75
+ - lib/macos/library.rb
76
+ - lib/macos/mouse.rb
26
77
  - lib/macos/version.rb
27
- - sig/macos.rbs
28
78
  homepage: https://github.com/ksylvest/macos
29
79
  licenses:
30
80
  - MIT
31
81
  metadata:
32
82
  homepage_uri: https://github.com/ksylvest/macos
33
83
  source_code_uri: https://github.com/ksylvest/macos
34
- changelog_uri: https://github.com/ksylvest/macos
35
- post_install_message:
84
+ changelog_uri: https://github.com/ksylvest/macos/releases
85
+ rubygems_mfa_required: 'true'
36
86
  rdoc_options: []
37
87
  require_paths:
38
88
  - lib
@@ -40,15 +90,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
40
90
  requirements:
41
91
  - - ">="
42
92
  - !ruby/object:Gem::Version
43
- version: 3.0.0
93
+ version: 3.2.0
44
94
  required_rubygems_version: !ruby/object:Gem::Requirement
45
95
  requirements:
46
96
  - - ">="
47
97
  - !ruby/object:Gem::Version
48
98
  version: '0'
49
99
  requirements: []
50
- rubygems_version: 3.5.22
51
- signing_key:
100
+ rubygems_version: 3.6.7
52
101
  specification_version: 4
53
102
  summary: An interface with macOS.
54
103
  test_files: []
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
data/.rubocop.yml DELETED
@@ -1,8 +0,0 @@
1
- AllCops:
2
- TargetRubyVersion: 3.0
3
-
4
- Style/StringLiterals:
5
- EnforcedStyle: double_quotes
6
-
7
- Style/StringLiteralsInInterpolation:
8
- EnforcedStyle: double_quotes
data/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2024 Kevin Sylvestre
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/Rakefile DELETED
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/gem_tasks"
4
- require "rspec/core/rake_task"
5
-
6
- RSpec::Core::RakeTask.new(:spec)
7
-
8
- require "rubocop/rake_task"
9
-
10
- RuboCop::RakeTask.new
11
-
12
- task default: %i[spec rubocop]
data/sig/macos.rbs DELETED
@@ -1,4 +0,0 @@
1
- module Macos
2
- VERSION: String
3
- # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
- end