xlib-objects 0.7.5 → 0.7.6

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: f116435cd0ad86aefb7b0aad6177876f170b48b8
4
- data.tar.gz: 036010f306434fa996ed7572821d6510c66eb24f
3
+ metadata.gz: fb1888dc7c0eabdfa844ebc0d189f27c857d4bab
4
+ data.tar.gz: 7d6eda9013b359f1d28abd35722e0afd2ce77350
5
5
  SHA512:
6
- metadata.gz: e387f88d27913ab4b5fdc5128ce793aee26e8ea818aba6a7f261f224c130b2af1b05b9074dee4ded82c289aefec78ef139d99f6d918bb4525ed88aba691af1f8
7
- data.tar.gz: fddee9385777c5c2214554183ef27b2aa3bc00a6b9438e818288df482a11e89d3a84a577d6f9924c856af0efa60387bb584bfa63079bb4be2f97a85daea3cca1
6
+ metadata.gz: b776afc5cad6f66eb488d466f9c92a9ee8c18e9c82a354c124ab265c13f34db804f6793ff41ed02363bca9abb705bf09dd4235537f2b6bd804df1fb99e101a55
7
+ data.tar.gz: 55257683cb92ab866d491b0fd55caeb96edb55b366dae643592ce074784c65f5e9361eec4b66bc741765db4241a39b3c3dda24c56ef076936225a8db18cf41c9
@@ -0,0 +1,3 @@
1
+ module XlibObj
2
+ VERSION = '0.7.6'
3
+ end
@@ -58,8 +58,8 @@ module XlibObj
58
58
  end
59
59
 
60
60
  # Commands
61
- def set_property(name, value)
62
- Property.new(self, name).set(value)
61
+ def set_property(name, value, type = nil)
62
+ Property.new(self, name).set(value, type)
63
63
  end
64
64
 
65
65
  def delete_property(name)
@@ -150,7 +150,7 @@ module XlibObj
150
150
  elsif objects.all? { |o| o.is_a? Atom }
151
151
  :ATOM
152
152
  elsif objects.all? { |o| o.is_a? Integer }
153
- if objects.any? { |o| o <= 0 }
153
+ if objects.any? { |o| o < 0 }
154
154
  :INTEGER
155
155
  else
156
156
  :CARDINAL
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xlib-objects
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.5
4
+ version: 0.7.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Aue
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-21 00:00:00.000000000 Z
11
+ date: 2017-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xlib
@@ -104,6 +104,7 @@ files:
104
104
  - lib/screen.rb
105
105
  - lib/screen/crtc.rb
106
106
  - lib/screen/crtc/output.rb
107
+ - lib/version.rb
107
108
  - lib/window.rb
108
109
  - lib/window/event_handler.rb
109
110
  - lib/window/property.rb