active_window_x 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 97ef4550a91070bec7d56786f92c096d5447e884
4
+ data.tar.gz: 8680c5d13786f4f9d263d3618b04b090231b065d
5
+ SHA512:
6
+ metadata.gz: 22c73c5aff2df0f86e14e4c06b8fce87d380b6b96a3d6114583f790aff7b7f6bbd7e85fbba0a21eba864ce94e87a571fbc71942ed780da16e15afbd88b5470cf
7
+ data.tar.gz: b849d91abcf3d42f80cc9ac2bca8ab30f472c630de5972718f65a789d86f6e7a6a998e28122e3b114aa46c95d913e156d16e629f5c7c1f81ea20550a0cd76197
@@ -3,6 +3,8 @@ require "mkmf"
3
3
  map = {
4
4
  '1.8.' => 'RUBY_1_8',
5
5
  '1.9.' => 'RUBY_1_9',
6
+ '2.0.' => 'RUBY_1_9',
7
+ '2.1.' => 'RUBY_1_9',
6
8
  }
7
9
  version, micro = map.find do |v, m|
8
10
  RUBY_VERSION.start_with? v
@@ -34,9 +34,10 @@ int error_handler(Display* d, XErrorEvent* error_event){
34
34
 
35
35
  #define ERROR_MESSAGE_BUFF 256
36
36
  int raise_if_xerror_occurred(){
37
+ char desc[ERROR_MESSAGE_BUFF];
38
+
37
39
  if (xerror == NULL) return 0;
38
40
 
39
- char desc[ERROR_MESSAGE_BUFF];
40
41
  XGetErrorText(xerror->display, xerror->error_code, desc, ERROR_MESSAGE_BUFF);
41
42
  xerror = NULL;
42
43
  rb_raise(x_error_event_class, "%s", desc);
@@ -1,3 +1,3 @@
1
1
  module ActiveWindowX
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,76 +1,67 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: active_window_x
3
- version: !ruby/object:Gem::Version
4
- hash: 21
5
- prerelease:
6
- segments:
7
- - 0
8
- - 2
9
- - 1
10
- version: 0.2.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.2
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Keiichiro Ui
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2014-02-11 00:00:00 +09:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
11
+ date: 2014-03-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
22
14
  name: rake
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
27
17
  - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
33
20
  type: :development
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: bundler
37
21
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
41
24
  - - ">="
42
- - !ruby/object:Gem::Version
43
- hash: 3
44
- segments:
45
- - 0
46
- version: "0"
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
47
34
  type: :development
48
- version_requirements: *id002
49
- - !ruby/object:Gem::Dependency
50
- name: rspec
51
35
  prerelease: false
52
- requirement: &id003 !ruby/object:Gem::Requirement
53
- none: false
54
- requirements:
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
55
38
  - - ">="
56
- - !ruby/object:Gem::Version
57
- hash: 3
58
- segments:
59
- - 0
60
- version: "0"
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
61
48
  type: :development
62
- version_requirements: *id003
63
- description: ActiveWindowX is a gem to observe an active window on Linux (X Window System).
64
- email:
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: ActiveWindowX is a gem to observe an active window on Linux (X Window
56
+ System).
57
+ email:
65
58
  - keiichiro.ui@gmail.com
66
59
  executables: []
67
-
68
- extensions:
60
+ extensions:
69
61
  - ext/active_window_x/extconf.rb
70
62
  extra_rdoc_files: []
71
-
72
- files:
73
- - .gitignore
63
+ files:
64
+ - ".gitignore"
74
65
  - Gemfile
75
66
  - LICENSE
76
67
  - README.md
@@ -96,41 +87,30 @@ files:
96
87
  - spec/root_window_spec.rb
97
88
  - spec/window_spec.rb
98
89
  - spec/xlib_spec.rb
99
- has_rdoc: true
100
90
  homepage: https://github.com/kui/active_window_x
101
91
  licenses: []
102
-
92
+ metadata: {}
103
93
  post_install_message:
104
94
  rdoc_options: []
105
-
106
- require_paths:
95
+ require_paths:
107
96
  - lib
108
- required_ruby_version: !ruby/object:Gem::Requirement
109
- none: false
110
- requirements:
97
+ required_ruby_version: !ruby/object:Gem::Requirement
98
+ requirements:
111
99
  - - ">="
112
- - !ruby/object:Gem::Version
113
- hash: 3
114
- segments:
115
- - 0
116
- version: "0"
117
- required_rubygems_version: !ruby/object:Gem::Requirement
118
- none: false
119
- requirements:
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ required_rubygems_version: !ruby/object:Gem::Requirement
103
+ requirements:
120
104
  - - ">="
121
- - !ruby/object:Gem::Version
122
- hash: 3
123
- segments:
124
- - 0
125
- version: "0"
105
+ - !ruby/object:Gem::Version
106
+ version: '0'
126
107
  requirements: []
127
-
128
108
  rubyforge_project:
129
- rubygems_version: 1.6.2
109
+ rubygems_version: 2.2.2
130
110
  signing_key:
131
- specification_version: 3
111
+ specification_version: 4
132
112
  summary: observer an active window on Linux (X Window System).
133
- test_files:
113
+ test_files:
134
114
  - spec/atom_spec.rb
135
115
  - spec/display_spec.rb
136
116
  - spec/root_window_spec.rb