tagen 1.1.6 → 1.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,23 +1,12 @@
1
- =begin
2
- * **gem**: rmagic
3
- =end
4
- module Magick
5
-
6
- =begin
7
- Method list
8
- -----------
9
- * \#width _alias from columns_
10
- * \#height _alias from rows_
11
- =end
12
- class Image
13
-
14
- alias width columns
15
- alias height rows
1
+ require "RMagick"
16
2
 
17
- # get width height
18
- #
19
- # @return [Array] [width, height]
20
- def wh; [columns, rows] end
21
-
22
- end
3
+ module Magick
4
+ class Image
5
+ # get columns, rows
6
+ #
7
+ # @return [Array] [width, height]
8
+ def cr
9
+ [columns, rows]
10
+ end
11
+ end
23
12
  end
@@ -1,3 +1,3 @@
1
1
  module Tagen
2
- VERSION = "1.1.6"
2
+ VERSION = "1.1.7"
3
3
  end
@@ -1,2 +1,35 @@
1
1
  require "xmpp4r"
2
- require_relative "xmpp4r/roster"
2
+ require "tagen/xmpp4r/roster"
3
+
4
+ # patch for https://github.com/ln/xmpp4r/issues/3#issuecomment-1739952
5
+
6
+ if RUBY_VERSION < "1.9"
7
+ # ...
8
+ else
9
+ # Encoding patch
10
+ require 'socket'
11
+ class TCPSocket
12
+ def external_encoding
13
+ Encoding::BINARY
14
+ end
15
+ end
16
+
17
+ require 'rexml/source'
18
+ class REXML::IOSource
19
+ alias_method :encoding_assign, :encoding=
20
+ def encoding=(value)
21
+ encoding_assign(value) if value
22
+ end
23
+ end
24
+
25
+ begin
26
+ # OpenSSL is optional and can be missing
27
+ require 'openssl'
28
+ class OpenSSL::SSL::SSLSocket
29
+ def external_encoding
30
+ Encoding::BINARY
31
+ end
32
+ end
33
+ rescue
34
+ end
35
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tagen
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6
4
+ version: 1.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-26 00:00:00.000000000 Z
12
+ date: 2012-02-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
16
- requirement: &25512740 !ruby/object:Gem::Requirement
16
+ requirement: &9557280 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *25512740
24
+ version_requirements: *9557280
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: i18n
27
- requirement: &25512320 !ruby/object:Gem::Requirement
27
+ requirement: &9591460 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *25512320
35
+ version_requirements: *9591460
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: pd
38
- requirement: &25511860 !ruby/object:Gem::Requirement
38
+ requirement: &9590200 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *25511860
46
+ version_requirements: *9590200
47
47
  description: ! "a core and extra extension to ruby library. \n"
48
48
  email: ywzhaifei@gmail.com
49
49
  executables: []