tinnef 0.2.0 → 0.3.0

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: 05dda225e532442a7eb032e915a8ccd5dff80a23
4
- data.tar.gz: a4298b76c207d537ac538064b2541eac097aa95b
3
+ metadata.gz: e419562a03a9ef2888ee6a32bffac7b89b131344
4
+ data.tar.gz: 07a3bb05e5d449cdac1bc93c908b08150356e20d
5
5
  SHA512:
6
- metadata.gz: 5da68efc24cfa6a6017b83c1e3272f30d0de1fa1601db6db8990e8fda15a1dea3428b33a4c20f3ae2984e3e3188bb29b09f8ce63b569aa31ccad7716c901fa7b
7
- data.tar.gz: 486d4bcf8a3bbb755746f2f0239f5828930900b00b925c03d0936ec41d35a74fbd49b2361e334b5d90696740952b963d8f03c93bf1702116523c8e7c17527b26
6
+ metadata.gz: 1ad9599ab05b3051ef1f49a1b7f64c353bc3242c84111e59156c787cbbb182fc4475de46d147b229859d9bf4b309f476cc1af9bb4fb7ee5707ecdeda184f9356
7
+ data.tar.gz: c06ce1e75d3ba999be46e5484a8865655151c563d499930c5a03c275c8739e22b56f730f168cbfee4e310d23a79529d69f09da51685d5ac1d03446d410f17072
@@ -1,6 +1,12 @@
1
+ language: ruby
1
2
  rvm:
2
- - 1.8.7
3
3
  - 1.9.3
4
4
  - 2.0.0
5
+ - 2.1.10
6
+ - 2.2.5
7
+ - 2.3.1
5
8
  before_script:
6
9
  - "sudo apt-get install tnef -y"
10
+ before_install:
11
+ - gem update --system
12
+ - gem install bundler
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source "http://rubygems.org"
1
+ source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in tinnef.gemspec
4
4
  gemspec
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # tinnef
2
2
 
3
- [![Build Status](https://travis-ci.org/ledermann/tinnef.png?branch=master)](https://travis-ci.org/ledermann/tinnef)
4
- [![Code Climate](https://codeclimate.com/github/ledermann/tinnef.png)](https://codeclimate.com/github/ledermann/tinnef)
3
+ [![Build Status](https://travis-ci.org/ledermann/tinnef.svg?branch=master)](https://travis-ci.org/ledermann/tinnef)
4
+ [![Code Climate](https://codeclimate.com/github/ledermann/tinnef/badges/gpa.svg)](https://codeclimate.com/github/ledermann/tinnef)
5
5
 
6
6
  This gem handles e-mail attachments packaged in the Microsoft "application/ms-tnef" MIME type. It's a Ruby wrapper for the [tnef converter](http://tnef.sourceforge.net).
7
7
 
@@ -12,7 +12,7 @@ From [Wikipedia](http://en.wikipedia.org/wiki/Transport_Neutral_Encapsulation_Fo
12
12
 
13
13
  ### Ruby
14
14
 
15
- Tested with Ruby 1.8.7, 1.9.3 and 2.0.0
15
+ Tested with Ruby >= 1.9.3
16
16
 
17
17
  ### tnef
18
18
 
@@ -1,3 +1,3 @@
1
1
  module Tinnef
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -1,4 +1,2 @@
1
- require 'rubygems'
2
1
  require 'test/unit'
3
-
4
- require File.dirname(__FILE__) + '/../lib/tinnef'
2
+ require 'tinnef'
@@ -1,24 +1,5 @@
1
1
  require 'test_helper'
2
2
 
3
- class TestDir < Test::Unit::TestCase
4
- def test_mktmpdir_path
5
- dir = Dir.mktmpdir
6
-
7
- assert File.directory?(dir)
8
- assert_equal true, File.directory?(dir)
9
- end
10
-
11
- def test_mktmpdir_block
12
- directory = ''
13
- Dir.mktmpdir do |dir|
14
- directory = dir
15
- end
16
-
17
- assert !File.directory?(directory)
18
- assert_equal false, File.directory?(directory)
19
- end
20
- end
21
-
22
3
  class TestTinnef < Test::Unit::TestCase
23
4
  def setup
24
5
  @content = File.new(File.dirname(__FILE__) + '/fixtures/quick-winmail.dat').read
@@ -36,7 +17,7 @@ class TestTinnef < Test::Unit::TestCase
36
17
  def test_content
37
18
  TNEF.convert(@content) do |temp_file|
38
19
  if File.basename(temp_file.path) == 'quick.txt'
39
- assert_match /The quick brown fox jumps over the lazy dog/, temp_file.read
20
+ assert_match(/The quick brown fox jumps over the lazy dog/, temp_file.read)
40
21
  end
41
22
  end
42
23
  end
@@ -5,11 +5,13 @@ require "tinnef/version"
5
5
  Gem::Specification.new do |s|
6
6
  s.name = 'tinnef'
7
7
  s.version = Tinnef::VERSION
8
+ s.licenses = ['MIT']
8
9
  s.authors = ["Georg Ledermann"]
9
10
  s.email = ["mail@georg-ledermann.de"]
10
- s.homepage = ""
11
+ s.homepage = "https://github.com/ledermann/tinnef"
11
12
  s.summary = %q{Ruby wrapper for tnef, a tool for unpacking 'winmail.dat' files}
12
13
  s.description = %q{Handling e-mail attachments with MIME type 'application/ms-tnef'}
14
+ s.required_ruby_version = '>= 1.9.3'
13
15
 
14
16
  s.rubyforge_project = "."
15
17
 
@@ -18,5 +20,7 @@ Gem::Specification.new do |s|
18
20
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
21
  s.require_paths = ["lib"]
20
22
 
23
+ s.add_development_dependency 'bundler'
21
24
  s.add_development_dependency 'rake'
25
+ s.add_development_dependency 'test-unit'
22
26
  end
metadata CHANGED
@@ -1,27 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tinnef
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Georg Ledermann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-09 00:00:00.000000000 Z
11
+ date: 2016-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: rake
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
- - - '>='
31
+ - - ">="
18
32
  - !ruby/object:Gem::Version
19
33
  version: '0'
20
34
  type: :development
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
- - - '>='
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: test-unit
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
25
53
  - !ruby/object:Gem::Version
26
54
  version: '0'
27
55
  description: Handling e-mail attachments with MIME type 'application/ms-tnef'
@@ -31,8 +59,8 @@ executables: []
31
59
  extensions: []
32
60
  extra_rdoc_files: []
33
61
  files:
34
- - .gitignore
35
- - .travis.yml
62
+ - ".gitignore"
63
+ - ".travis.yml"
36
64
  - Gemfile
37
65
  - MIT-LICENSE
38
66
  - README.md
@@ -43,8 +71,9 @@ files:
43
71
  - test/test_helper.rb
44
72
  - test/tinnef_test.rb
45
73
  - tinnef.gemspec
46
- homepage: ''
47
- licenses: []
74
+ homepage: https://github.com/ledermann/tinnef
75
+ licenses:
76
+ - MIT
48
77
  metadata: {}
49
78
  post_install_message:
50
79
  rdoc_options: []
@@ -52,17 +81,17 @@ require_paths:
52
81
  - lib
53
82
  required_ruby_version: !ruby/object:Gem::Requirement
54
83
  requirements:
55
- - - '>='
84
+ - - ">="
56
85
  - !ruby/object:Gem::Version
57
- version: '0'
86
+ version: 1.9.3
58
87
  required_rubygems_version: !ruby/object:Gem::Requirement
59
88
  requirements:
60
- - - '>='
89
+ - - ">="
61
90
  - !ruby/object:Gem::Version
62
91
  version: '0'
63
92
  requirements: []
64
- rubyforge_project: .
65
- rubygems_version: 2.0.2
93
+ rubyforge_project: "."
94
+ rubygems_version: 2.6.6
66
95
  signing_key:
67
96
  specification_version: 4
68
97
  summary: Ruby wrapper for tnef, a tool for unpacking 'winmail.dat' files