movewin 1.9 → 1.10

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,15 +1,7 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NWFkNzU4Yzc0MzdjNGJhMDhmOTIxMzdmNDVmNGZmMjI4MTQ2ODIxNA==
5
- data.tar.gz: !binary |-
6
- N2VmYjRiN2M5NzEyZWI3MzAzYTU5ZDExZjNkNjlkN2MwMTQ4NWRjZA==
7
- SHA512:
8
- metadata.gz: !binary |-
9
- OTMwZWRiNWUzNzYxMDUzNmQ3NjkwZmM1ZGRjYTcxZmU2ODU0ZjE1ODYwMDJj
10
- ZDUwZjYyNDZkYzVlM2ZlZDM2MDI2N2I5NGYxYmI5MTg1Y2FlYmExNTcyMWE5
11
- ZTZiZThlMzFhZWVkMjFjYzFkMDE1MWQ5NzczY2RhZWU5MDk4NTE=
12
- data.tar.gz: !binary |-
13
- ZWEyY2IyMTgxOWNiNzE0NjQ0Njc3NWRlNjdjNDNiMGFhNDJjNjM2ZjFhMTY5
14
- NjIyMjAwMzIwN2Y5N2YyMDUwMmUxOTQ4ZGIxNjJjMjA3NjVhYTc3MjU4MTVk
15
- ZDExYmY0MTlkMTMyN2ZmZTUxMGUwOWViN2I5ZTEzNTJmY2YwYmE=
1
+ ---
2
+ SHA512:
3
+ metadata.gz: 80a8494844c5958c53d6d95060d4942d19b978c813b6f2569438ca7cc57516cf1e25c0bd60d9515627913459aed73e5cc53c50182e844618b0e35fd017a842b3
4
+ data.tar.gz: 87ae9e2412066d7f0bca5d371b3c8d4da8e2a66a27a57110800bc44ed3a60ee76b35fb163a71725b4f764733cd86990d0bf04f39ffbfea96d8c84fc9cb7aae48
5
+ SHA1:
6
+ metadata.gz: 80b22a01e6acf8334ac76fe89ee6b7ebafcf067b
7
+ data.tar.gz: b9541fed9f61d491565af58df6e056f7293ab110
@@ -56,6 +56,7 @@ def fix_dispatch_object_header!
56
56
  else
57
57
  $CFLAGS += " -I#{File.dirname(__FILE__)}"
58
58
  end
59
+ # TODO: Ruby 2.2 mkmf doesn't seem to actually use CLEANINGS any more
59
60
  set_constant! :CLEANINGS,
60
61
  "DISTCLEANFILES += dispatch/object.h\n" + CLEANINGS
61
62
  status = "patched #{destfile}"
@@ -135,12 +136,12 @@ def run_command(cmd, *args)
135
136
  end
136
137
 
137
138
  # Redefine constant without warning (http://stackoverflow.com/q/3375360)
138
- class Object
139
- def set_constant!(const, value)
140
- mod = self.is_a?(Module) ? self : self.class
141
- mod.send(:remove_const, const) if mod.const_defined?(const)
142
- mod.const_set(const, value)
139
+ def set_constant!(const, value)
140
+ unless Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.0')
141
+ # Ruby 2.0.0 and newer no longer warn when const_set() redefines constant
142
+ Object::send(:remove_const, const) if Object::const_defined?(const)
143
143
  end
144
+ Object::send(:const_set, const, value)
144
145
  end
145
146
 
146
147
  # Run main loop and exit
@@ -2,7 +2,7 @@
2
2
  * movewin_ext.c - Ruby extension to list and move OS X windows
3
3
  * Andrew Ho (andrew@zeuscat.com)
4
4
  *
5
- * Copyright (c) 2014, Andrew Ho.
5
+ * Copyright (c) 2014-2015, Andrew Ho.
6
6
  * All rights reserved.
7
7
  *
8
8
  * Redistribution and use in source and binary forms, with or without
@@ -2,7 +2,7 @@
2
2
  * winutils.c - utility functions for listing and moving windows
3
3
  * Andrew Ho (andrew@zeuscat.com)
4
4
  *
5
- * Copyright (c) 2014, Andrew Ho.
5
+ * Copyright (c) 2014-2015, Andrew Ho.
6
6
  * All rights reserved.
7
7
  *
8
8
  * Redistribution and use in source and binary forms, with or without
@@ -2,7 +2,7 @@
2
2
  # movewin.rb - Ruby native code that augments movewin_ext Ruby extension
3
3
  # Andrew Ho (andrew@zeuscat.com)
4
4
  #
5
- # Copyright (c) 2014, Andrew Ho.
5
+ # Copyright (c) 2014-2015, Andrew Ho.
6
6
  # All rights reserved.
7
7
  #
8
8
  # Redistribution and use in source and binary forms, with or without
@@ -36,7 +36,7 @@
36
36
  require 'movewin/movewin_ext'
37
37
 
38
38
  module MoveWin
39
- VERSION = '1.9'
39
+ VERSION = '1.10'
40
40
 
41
41
  # Individual accessors for display size components
42
42
  def self.display_width; MoveWin.display_size[0]; end
metadata CHANGED
@@ -1,50 +1,57 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: movewin
3
- version: !ruby/object:Gem::Version
4
- version: '1.9'
3
+ version: !ruby/object:Gem::Version
4
+ version: "1.10"
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - Andrew Ho
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-07 00:00:00.000000000 Z
11
+
12
+ date: 2015-04-28 00:00:00 Z
12
13
  dependencies: []
14
+
13
15
  description: List and move OS X windows from Ruby via the OS X accessibility APIs.
14
16
  email: andrew@zeuscat.com
15
17
  executables: []
16
- extensions:
18
+
19
+ extensions:
17
20
  - ext/movewin/extconf.rb
18
21
  extra_rdoc_files: []
19
- files:
20
- - ext/movewin/dispatch/empty.rb
21
- - ext/movewin/extconf.rb
22
+
23
+ files:
24
+ - lib/movewin.rb
22
25
  - ext/movewin/movewin_ext.c
23
26
  - ext/movewin/winutils.c
24
27
  - ext/movewin/winutils.h
25
- - lib/movewin.rb
28
+ - ext/movewin/dispatch/empty.rb
29
+ - ext/movewin/extconf.rb
26
30
  homepage: https://github.com/andrewgho/movewin-ruby
27
- licenses:
31
+ licenses:
28
32
  - BSD-3-Clause
29
33
  metadata: {}
34
+
30
35
  post_install_message:
31
36
  rdoc_options: []
32
- require_paths:
37
+
38
+ require_paths:
33
39
  - lib
34
- required_ruby_version: !ruby/object:Gem::Requirement
35
- requirements:
36
- - - ! '>='
37
- - !ruby/object:Gem::Version
38
- version: '0'
39
- required_rubygems_version: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - ! '>='
42
- - !ruby/object:Gem::Version
43
- version: '0'
40
+ required_ruby_version: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - &id001
43
+ - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: "0"
46
+ required_rubygems_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - *id001
44
49
  requirements: []
50
+
45
51
  rubyforge_project:
46
- rubygems_version: 2.4.2
52
+ rubygems_version: 2.0.15
47
53
  signing_key:
48
54
  specification_version: 4
49
55
  summary: List and move OS X windows from Ruby
50
56
  test_files: []
57
+