xkbcommon 0.1.0 → 0.1.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: a33e1dab78a94efb73575ca12f53fc05b456699c
4
- data.tar.gz: ae8dce5f97d43acc6548c5a8f94338d7510a54c6
3
+ metadata.gz: 561af60d6207fb6e33d9c565b55c761a4789667f
4
+ data.tar.gz: a95dc0d988f6e6c4dd8d94ae1b1fd11fc5264406
5
5
  SHA512:
6
- metadata.gz: 237bad6821313b087c490928cb8dd0c9871594a65ea6c2ab115380d8c9c7f11bfed8376da53a5cda3190d8e2ebb07a6149fad2b012ffd1a01268c7047fa22f15
7
- data.tar.gz: c88eeb0d8ef13831d705db505cbae076be058cfcbfba27c984ad2b42551b3840de11d797ce9fd6fc25bd13f45a0d3b3053f1c6f09d87196c87f7dd10cc1ad501
6
+ metadata.gz: 08fd2b87532e58c6ebde9b04a5c2b388cec705131b8677fb8320836d79f6d485640ed6c14f9a4f31697412c855ff219ce2fdfac8cc98ece8f81e1a9dfa40fe66
7
+ data.tar.gz: 9f5e7906f8ec1818595fa5e1d7d93bb6aef7e9c0abf47907941eca31abc7584019ffbbc314975e329de989d54998614a169bd4cd9562c1e6d77c708c6127246f
data/Gemfile CHANGED
@@ -1,5 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
- gem 'libxkbcommon', path: '../ruby-libxkbcommon'
5
- gem 'uinput', path: '../ruby-uinput'
@@ -48,5 +48,7 @@ module Xkbcommon
48
48
  flags: Libxkbcommon::XKB_KEYMAP_COMPILE_NO_FLAGS)
49
49
  Keymap.new(self, Libxkbcommon.xkb_keymap_new_from_buffer(to_native, buffer, length, format, flags))
50
50
  end
51
+
52
+ alias_method :inspect, :to_s
51
53
  end
52
54
  end
@@ -30,5 +30,9 @@ module Xkbcommon
30
30
  end
31
31
 
32
32
  attr_reader :keymap, :code, :scan_code, :name
33
+
34
+ def inspect
35
+ "#<#{self.class.name}:0x#{'%014x' % __id__} @code=#{code} @name=#{name.inspect}>"
36
+ end
33
37
  end
34
38
  end
@@ -24,5 +24,9 @@ module Xkbcommon
24
24
  def to_s(format: Libxkbcommon::XKB_KEYMAP_USE_ORIGINAL_FORMAT)
25
25
  Libxkbcommon.xkb_keymap_get_as_string(to_native, format)
26
26
  end
27
+
28
+ def inspect
29
+ "#<#{self.class.name}:0x#{'%014x' % __id__} @producible_characters=#{characters.keys}>"
30
+ end
27
31
  end
28
32
  end
@@ -47,5 +47,9 @@ module Xkbcommon
47
47
  return if @keys
48
48
  @keys = [*keys].freeze
49
49
  end
50
+
51
+ def inspect
52
+ "#<#{self.class.name}:0x#{'%014x' % __id__} @name=#{name.inspect} @keys=#{keys.map(&:code).inspect}>"
53
+ end
50
54
  end
51
55
  end
@@ -28,5 +28,9 @@ module Xkbcommon
28
28
  char.read_string.force_encoding('UTF-8')
29
29
  end
30
30
  end
31
+
32
+ def inspect
33
+ "#<#{self.class.name}:0x#{'%014x' % __id__} @name=#{name.inspect} @character=#{character.inspect} @keys=#{keys.map(&:code).inspect}>"
34
+ end
31
35
  end
32
36
  end
@@ -1,3 +1,3 @@
1
1
  module Xkbcommon
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xkbcommon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Aue
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-23 00:00:00.000000000 Z
11
+ date: 2016-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -110,8 +110,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  version: '0'
111
111
  requirements: []
112
112
  rubyforge_project:
113
- rubygems_version: 2.4.8
113
+ rubygems_version: 2.5.1
114
114
  signing_key:
115
115
  specification_version: 4
116
116
  summary: xkbcommon bindings for ruby
117
117
  test_files: []
118
+ has_rdoc: