purplish-frame 0.0.10 → 0.0.11

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
  SHA1:
3
- metadata.gz: 90876eb06332ec791c11d93c4bee5b9525782de9
4
- data.tar.gz: a2857542fb38da5ee9f93be0f5c20fcc752297a6
3
+ metadata.gz: 4242a91b541e0fd3656215299bbcf84f550304c1
4
+ data.tar.gz: 95556d10ca6da7f808d9caf5231ba4b2a523166e
5
5
  SHA512:
6
- metadata.gz: 03025a3938eccd8791f3fcb056df132153ca38f2903466f96165dfa232dddd9458169fe7374bc0bae965f95256dfae77858a67ec3e8dd55b8c19bbfaea1f84fc
7
- data.tar.gz: 6283dcfe6f86c6dac17b064ad7b4c0ce26d8b70a68dfb5160275236d45d01a5b0b6cf3440eac3ad55cdc8d10c2b82b0e21957a6dcb0da1ea95d79185b99f5b9c
6
+ metadata.gz: 46fe5b1816c922e9b2ab1c5b14057a2776d176c616f3af882390ba2be33d550b4524a24c431d8c23b8f54edab5f4b4f81eed7c16dd441b8d097a6605363badab
7
+ data.tar.gz: 783636d032e57f072e4e5f66848afb6327a1e32e3eb2e5b11b4fa429b785709c4b00c1b4e4b5e3cddf392bb6a6d72745e60a8a222fe4d5b92568f2eefec25a14
@@ -45,5 +45,37 @@ module PurplishFrame
45
45
  def height
46
46
  size.height
47
47
  end
48
+
49
+ def top_left
50
+ [left, top].to_point
51
+ end
52
+
53
+ def top_right
54
+ [right, top].to_point
55
+ end
56
+
57
+ def bottom_left
58
+ [left, bottom].to_point
59
+ end
60
+
61
+ def bottom_right
62
+ [right, bottom].to_point
63
+ end
64
+
65
+ def top_center
66
+ [center_x, top].to_point
67
+ end
68
+
69
+ def bottom_center
70
+ [center_x, bottom].to_point
71
+ end
72
+
73
+ def left_center
74
+ [left, center_y].to_point
75
+ end
76
+
77
+ def right_center
78
+ [right, center_y].to_point
79
+ end
48
80
  end
49
81
  end
@@ -1,3 +1,3 @@
1
1
  module PurplishFrame
2
- VERSION = '0.0.10'
2
+ VERSION = '0.0.11'
3
3
  end
@@ -4,7 +4,7 @@ require File.expand_path('../lib/purplish-frame/version.rb', __FILE__)
4
4
  Gem::Specification.new do |gem|
5
5
  gem.name = 'purplish-frame'
6
6
  gem.version = PurplishFrame::VERSION
7
- gem.licenses = ['BSD']
7
+ gem.licenses = ['BSD-2-Clause']
8
8
 
9
9
  gem.authors = ['Hwee-Boon Yar']
10
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: purplish-frame
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hwee-Boon Yar
@@ -67,7 +67,7 @@ files:
67
67
  - spec/ui/osx/ns_view_spec.rb
68
68
  homepage: https://github.com/hboon/purplish-frame
69
69
  licenses:
70
- - BSD
70
+ - BSD-2-Clause
71
71
  metadata: {}
72
72
  post_install_message:
73
73
  rdoc_options: []