macos 0.1.3 → 0.1.4

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: f5f7eea4e2dd2200b9cf31edba5eeafb649c61f04c3ce97977e3b2b9eb7ac9ab
4
- data.tar.gz: 3a57005b465e9751bf0390fc077a916be95665b8e9b67dc3d2e550063bbd3d57
3
+ metadata.gz: a108d88ec5b706a9bc9839ded07b08849a2a232cb74ec9f9ec9e50f23f84734d
4
+ data.tar.gz: f55c8d91de3341d0d709a59cd921c96f4690dce88a0dd7568af617e084682c4e
5
5
  SHA512:
6
- metadata.gz: f5bbc37912e6e9e726c4d0f8e0b5315d2a5b1a79ad3d68e4399d575127e88b20b8adb4a1c7081ebf124a0fdb5cab274138882cfdcc6e0b49fa2dc87589dd8663
7
- data.tar.gz: 2324a3f60635e949c2d90ab30705a91047edbf78b4dbe7b12c8684783d54a8282c74e33fcae98f37be8cbe825b7fcd15b85046872239dbc3005dee8d9c3b1cdc
6
+ metadata.gz: 00aea0fa47b5dc3363fd3be123288ab12277429d0af9cd7db45066a9bc431421a3c966ab3d04401b6aa510a641378b1b58107577952a763b0b8f0e218956393f
7
+ data.tar.gz: 9530f04a0e57b4b22b78c46266ea9079f4e138c6238f8ac503764e72f106f281fd6ac7d9ccb1bc91f18cd81ee59fd4f2126e50e886bbbec75c52269469280970
data/README.md CHANGED
@@ -42,7 +42,7 @@ bounds = display.bounds
42
42
 
43
43
  puts "#{bounds.width}×#{bounds.height}"
44
44
 
45
- display.capture do |tempfile|
45
+ display.screenshot do |tempfile|
46
46
  # ...
47
47
  end
48
48
  ```
data/lib/macos/display.rb CHANGED
@@ -27,7 +27,7 @@ module MacOS
27
27
 
28
28
  # @yield [tempfile]
29
29
  # @yieldparam tempfile [Tempfile]
30
- def capture
30
+ def screenshot
31
31
  tempfile = Tempfile.new(["screenshot", ".png"])
32
32
  system("screencapture -o -x #{tempfile.path}")
33
33
  yield tempfile
data/lib/macos/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MacOS
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: macos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Sylvestre