accessibility_core 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e42fc16e3829c4c43ace67dbd68040bb41a48beb
4
- data.tar.gz: f82c3f7057e715a44bd105f42d6129be88cb8abe
3
+ metadata.gz: 9c02ae668648db03e4f2317f3f4fba44429f0355
4
+ data.tar.gz: 6f7f29fa9c18530e32e40b83aabf2da78e9fb336
5
5
  SHA512:
6
- metadata.gz: 3ed18266aaf9ff994fee995f833afebbe17e10d879c9f2b45867a20917dd758c9bf184b084f2fb880e750f3665d5a665d118015e896501e8add5639b91666ae0
7
- data.tar.gz: caaa05abc95e4cd96bfaf1620b3c9d456f0daf3b9d22828575e62fd229095c95e7458ed2973475927cff7a61e449cfeab22e7e967454957df7fbdf69aa6f1ca2
6
+ metadata.gz: 3a51c31d3e136470751bc530f9f7a0fbd35c15ec3727efcd38c5a9f93f50bbd4e374a5fff1837c55643024da553a1c08a3a66c6f176492cf72197ddf6cf6af0e
7
+ data.tar.gz: 63fab29f432cd2d6ce6e1f43d417440bed808762d501b16ad6306421c878c88a655ca4280390187b104de6632546e42f9772224f38cc821bdbe795238537b5a9
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,7 @@
1
+ # 0.6.1 - Fix Screen Shooting
2
+
3
+ * Fix building of the ScreenShooter extension
4
+
1
5
  # 0.6.0 - Screen Shooting
2
6
 
3
7
  * Add a ScreenShooter module for taking screenshots
@@ -15,7 +15,7 @@ unless RbConfig::CONFIG['CC'].match(/clang/)
15
15
  RbConfig::MAKEFILE_CONFIG['CXX'] = clang
16
16
  end
17
17
 
18
- create_makefile 'screen_shooter/screen_shooter'
18
+ create_makefile 'accessibility/screen_shooter/screen_shooter'
19
19
 
20
20
  makefile = File.read 'Makefile'
21
21
  makefile.gsub! '$(DLLIB): $(OBJS) Makefile', '$(DLLIB): $(OBJS) Makefile ../bridge/bridge.o'
@@ -6,6 +6,6 @@ module Accessibility
6
6
  # Namespace for `accessibility_core` specific classes
7
7
  module Core
8
8
  # return [String]
9
- VERSION = '0.6.0'
9
+ VERSION = '0.6.1'
10
10
  end
11
11
  end
@@ -3,13 +3,15 @@ require 'accessibility/screen_shooter/screen_shooter.bundle'
3
3
 
4
4
  module ScreenShooter
5
5
 
6
- def shoot rect = nil, path = '~/Downloads'
6
+ def shoot rect = CGRect.new(CGPoint.new(0, 0), CGSize.new(-1, -1)),
7
+ path = '~/Downloads'
8
+
7
9
  path = File.expand_path path.to_s
8
10
  path = "#{path}/AXElements-ScreenShot-#{Time.now.strftime '%Y%m%d%H%M%S'}.png"
9
11
 
10
- rect ||= CGRect.new(CGPoint.new(0, 0), CGSize.new(-1, -1))
12
+ raise 'Failed to save screenshot' unless screenshot rect, path
11
13
 
12
- screenshot rect, path
14
+ path
13
15
  end
14
16
 
15
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: accessibility_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Rada
@@ -47,6 +47,7 @@ extensions:
47
47
  - ext/accessibility/bridge/extconf.rb
48
48
  - ext/accessibility/extras/extconf.rb
49
49
  - ext/accessibility/highlighter/extconf.rb
50
+ - ext/accessibility/screen_shooter/extconf.rb
50
51
  extra_rdoc_files: []
51
52
  files:
52
53
  - ".yardopts"
@@ -74,6 +75,7 @@ files:
74
75
  - lib/accessibility/extras/common.rb
75
76
  - lib/accessibility/highlighter.rb
76
77
  - lib/accessibility/screen_shooter.rb
78
+ - lib/accessibility/screen_shooter/version.rb
77
79
  - test/helper.rb
78
80
  homepage: https://github.com/AXElements/accessibility_core
79
81
  licenses:
metadata.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- H���ħ���m� "�*_:�3��>�ɲJ��������kB�gQ�b�v��qqC�ɹ�;��jx�1a��`�0�^Z,^\��A p �J�C� �5w���%/�=�\o�1��j았�� (m�I# $�
2
- 76�؆zUZBHK
1
+ `L`�+CTp iM}��/���,����Z�Z��<��C��Z}����uHmJ
2
+ E a�i ���omL�