rfc2047 0.2 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/rfc2047.rb +1 -3
  3. metadata +37 -39
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f4b292cc51a8a4965cffcaa44b675bf91b6cfbcf
4
+ data.tar.gz: 26218a166d080718dac139529be43b2add8dff7c
5
+ SHA512:
6
+ metadata.gz: aa444bd28d1d53a15f513af4592b058134d16d16a6845021ae2cd280b976942618b819d3606f919bba9770a0a148c7f1083420e7acfbe2db7bfe3dd813273855
7
+ data.tar.gz: 4268dad500acf6bf8baff381daff63f7aa59a4cb5d8c39bc1309b9d540158c775bb3ae07ca8e84e829b1bb1736ff1606ad81adfc3a7fbea5a8e86b39c71cbdcd
@@ -10,8 +10,6 @@
10
10
  #
11
11
  # This file is distributed under the same terms as Ruby.
12
12
 
13
- require 'iconv'
14
-
15
13
  module Rfc2047
16
14
 
17
15
  WORD = /=\?([!#$\%&'*+-\/0-9A-Z\\^\`a-z{|}~]+)\?([BbQq])\?([!->@-~]+)\?=/ # :nodoc:
@@ -45,7 +43,7 @@ module Rfc2047
45
43
  #
46
44
  # Remember: Iconv.open(to, from)
47
45
  begin
48
- text = Iconv.open(target, cs) {|i| i.iconv(text)}
46
+ text = text.encode(target, cs)
49
47
  rescue
50
48
  raise Unparseable, from
51
49
  end
metadata CHANGED
@@ -1,63 +1,61 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rfc2047
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 2
8
- version: "0.2"
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.3'
9
5
  platform: ruby
10
- authors:
6
+ authors:
11
7
  - Sam Roberts
12
8
  - Conrad Irwin
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2011-04-10 00:00:00 -07:00
18
- default_executable:
19
- dependencies: []
20
-
21
- description: Provides a method Rfc2047.decode that can decode individual headers encoded with this format.
12
+ date: 2015-07-03 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
21
+ type: :development
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
28
+ description: Provides a method Rfc2047.decode that can decode individual headers encoded
29
+ with this format.
22
30
  email: conrad.irwin@gmail.com
23
31
  executables: []
24
-
25
32
  extensions: []
26
-
27
33
  extra_rdoc_files: []
28
-
29
- files:
30
- - lib/rfc2047.rb
34
+ files:
31
35
  - README.md
32
- has_rdoc: true
36
+ - lib/rfc2047.rb
33
37
  homepage: http://github.com/ConradIrwin/rfc2047-ruby/
34
- licenses:
38
+ licenses:
35
39
  - Ruby
40
+ metadata: {}
36
41
  post_install_message:
37
42
  rdoc_options: []
38
-
39
- require_paths:
43
+ require_paths:
40
44
  - lib
41
- required_ruby_version: !ruby/object:Gem::Requirement
42
- requirements:
45
+ required_ruby_version: !ruby/object:Gem::Requirement
46
+ requirements:
43
47
  - - ">="
44
- - !ruby/object:Gem::Version
45
- segments:
46
- - 0
47
- version: "0"
48
- required_rubygems_version: !ruby/object:Gem::Requirement
49
- requirements:
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
50
+ required_rubygems_version: !ruby/object:Gem::Requirement
51
+ requirements:
50
52
  - - ">="
51
- - !ruby/object:Gem::Version
52
- segments:
53
- - 0
54
- version: "0"
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
55
  requirements: []
56
-
57
56
  rubyforge_project:
58
- rubygems_version: 1.3.6
57
+ rubygems_version: 2.4.5
59
58
  signing_key:
60
- specification_version: 3
59
+ specification_version: 4
61
60
  summary: Decodes email headers according to RFC2047
62
61
  test_files: []
63
-