mime_builder 0.0.4 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +2 -2
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +1 -7
- data/Gemfile.lock +56 -0
- data/LICENSE.txt +1 -1
- data/README.md +10 -9
- data/lib/mime_builder/file.rb +4 -3
- data/lib/mime_builder/text.rb +4 -3
- data/lib/mime_builder.rb +1 -1
- data/mime_builder.gemspec +29 -0
- data/test/test_file.rb +0 -5
- data/test/test_json.rb +12 -2
- data/test/test_text.rb +3 -3
- metadata +93 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d86ee822ea9dadb4e98c0bbbe494acf9c6a00fa76eeac02f5e170c1a1e3c8a39
|
4
|
+
data.tar.gz: 32475495b49cae1fea0e4810d60cbaf476f323d962a710ae59013a2c0ae01646
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e29429fa339031e8aba37c4389302e4b2e433a853aa645917b27623da9a7e77ede688cb0be5d747f34a441eaa096b30b1127757da482ca1b6f3ae76af45696e
|
7
|
+
data.tar.gz: acf4126ef8887427ed3f630dd0742413dcc3ed3cfbaa19d0249e7dc77a65421ab63665d1c8d76c774cc280ffd3827f7a4554cfd4de2a531ec49056fa1568aa7d
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
CHANGELOG
|
2
2
|
---------
|
3
|
-
- **
|
3
|
+
- **2016-12-14**: 0.0.4
|
4
4
|
- Add JSON support
|
5
|
-
- **
|
5
|
+
- **2016-05-30**: 0.0.3
|
6
6
|
- Add Text support for arbitrary content types
|
7
7
|
- Add Text support for content disposition
|
8
8
|
- **2016-01-25**: 0.0.2
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at johncwang@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
mime_builder (0.1.1)
|
5
|
+
mime (~> 0.4, >= 0.4.4)
|
6
|
+
mime-types (~> 3.4, >= 3.4.1)
|
7
|
+
multi_json (~> 1, >= 1.15.0)
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: https://rubygems.org/
|
11
|
+
specs:
|
12
|
+
coveralls (0.7.2)
|
13
|
+
multi_json (~> 1.3)
|
14
|
+
rest-client (= 1.6.7)
|
15
|
+
simplecov (>= 0.7)
|
16
|
+
term-ansicolor (= 1.2.2)
|
17
|
+
thor (= 0.18.1)
|
18
|
+
docile (1.4.0)
|
19
|
+
mime (0.4.4)
|
20
|
+
mime-types (3.4.1)
|
21
|
+
mime-types-data (~> 3.2015)
|
22
|
+
mime-types-data (3.2022.0105)
|
23
|
+
mocha (2.0.2)
|
24
|
+
ruby2_keywords (>= 0.0.5)
|
25
|
+
multi_json (1.15.0)
|
26
|
+
power_assert (2.0.3)
|
27
|
+
rake (13.0.6)
|
28
|
+
rest-client (1.6.7)
|
29
|
+
mime-types (>= 1.16)
|
30
|
+
ruby2_keywords (0.0.5)
|
31
|
+
simplecov (0.22.0)
|
32
|
+
docile (~> 1.1)
|
33
|
+
simplecov-html (~> 0.11)
|
34
|
+
simplecov_json_formatter (~> 0.1)
|
35
|
+
simplecov-html (0.12.3)
|
36
|
+
simplecov_json_formatter (0.1.4)
|
37
|
+
term-ansicolor (1.2.2)
|
38
|
+
tins (~> 0.8)
|
39
|
+
test-unit (3.5.7)
|
40
|
+
power_assert
|
41
|
+
thor (0.18.1)
|
42
|
+
tins (0.13.2)
|
43
|
+
|
44
|
+
PLATFORMS
|
45
|
+
x86_64-darwin-21
|
46
|
+
|
47
|
+
DEPENDENCIES
|
48
|
+
coveralls (~> 0)
|
49
|
+
mime_builder!
|
50
|
+
mocha (~> 2)
|
51
|
+
rake (~> 13)
|
52
|
+
simplecov (~> 0)
|
53
|
+
test-unit (~> 3)
|
54
|
+
|
55
|
+
BUNDLED WITH
|
56
|
+
2.4.2
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -2,12 +2,11 @@ MIMEBuilder Ruby
|
|
2
2
|
================
|
3
3
|
|
4
4
|
[![Gem Version][gem-version-svg]][gem-version-link]
|
5
|
-
[![Build Status][build-status-svg]][build-status-
|
5
|
+
[![Build Status][build-status-svg]][build-status-url]
|
6
6
|
[![Coverage Status][coverage-status-svg]][coverage-status-link]
|
7
|
-
[![Dependency Status][dependency-status-svg]][dependency-status-link]
|
8
7
|
[![Code Climate][codeclimate-status-svg]][codeclimate-status-link]
|
9
8
|
[![Scrutinizer Code Quality][scrutinizer-status-svg]][scrutinizer-status-link]
|
10
|
-
|
9
|
+
|
11
10
|
[![Docs][docs-rubydoc-svg]][docs-rubydoc-link]
|
12
11
|
[![License][license-svg]][license-link]
|
13
12
|
|
@@ -107,7 +106,7 @@ Options:
|
|
107
106
|
|
108
107
|
```ruby
|
109
108
|
builder = MIMEBuilder::JSON.new(
|
110
|
-
'
|
109
|
+
{ foo: 'bar' },
|
111
110
|
content_id_disable: true, # remove auto-generated Content-Id header
|
112
111
|
base64_encode: false # disable default base64 encoding
|
113
112
|
)
|
@@ -136,16 +135,18 @@ Please report these on [Github](https://github.com/grokify/mime-builder-ruby)
|
|
136
135
|
|
137
136
|
## License
|
138
137
|
|
139
|
-
MIMEBuilder is available under an MIT-style license. See [LICENSE.
|
138
|
+
MIMEBuilder is available under an MIT-style license. See [LICENSE.md](LICENSE.md) for details.
|
140
139
|
|
141
|
-
MIMEBuilder © 2016 by John Wang
|
140
|
+
MIMEBuilder © 2016-2023 by John Wang
|
142
141
|
|
143
142
|
[gem-version-svg]: https://badge.fury.io/rb/mime_builder.svg
|
144
143
|
[gem-version-link]: http://badge.fury.io/rb/mime_builder
|
145
144
|
[downloads-svg]: http://ruby-gem-downloads-badge.herokuapp.com/mime_builder
|
146
145
|
[downloads-link]: https://rubygems.org/gems/mime_builder
|
147
|
-
[build-status-svg]: https://
|
148
|
-
[build-status-
|
146
|
+
[build-status-svg]: https://github.com/grokify/mime-builder-ruby/workflows/ruby%20build/badge.svg?branch=master
|
147
|
+
[build-status-url]: https://github.com/grokify/mime-builder-ruby/actions
|
148
|
+
[codacy-svg]: https://api.codacy.com/project/badge/Grade/fa30d602e8ec4eae806bb43430989d65
|
149
|
+
[codacy-link]: https://www.codacy.com/app/grokify/mime-builder-ruby
|
149
150
|
[coverage-status-svg]: https://coveralls.io/repos/grokify/mime-builder-ruby/badge.svg?branch=master
|
150
151
|
[coverage-status-link]: https://coveralls.io/r/grokify/mime-builder-ruby?branch=master
|
151
152
|
[dependency-status-svg]: https://gemnasium.com/grokify/mime-builder-ruby.svg
|
@@ -157,4 +158,4 @@ MIMEBuilder © 2016 by John Wang
|
|
157
158
|
[docs-rubydoc-svg]: https://img.shields.io/badge/docs-rubydoc-blue.svg
|
158
159
|
[docs-rubydoc-link]: http://www.rubydoc.info/gems/mime_builder/
|
159
160
|
[license-svg]: https://img.shields.io/badge/license-MIT-blue.svg
|
160
|
-
[license-link]: https://github.com/grokify/mime-builder-ruby/blob/master/LICENSE.
|
161
|
+
[license-link]: https://github.com/grokify/mime-builder-ruby/blob/master/LICENSE.md
|
data/lib/mime_builder/file.rb
CHANGED
@@ -65,9 +65,10 @@ module MIMEBuilder
|
|
65
65
|
|
66
66
|
def get_attachment_content_disposition(filepath = nil)
|
67
67
|
filename = File.basename(filepath.to_s)
|
68
|
-
|
69
|
-
|
70
|
-
|
68
|
+
if filename.to_s.length > 0
|
69
|
+
return "attachment; filename=\"#{filename}\""
|
70
|
+
end
|
71
|
+
'attachment'
|
71
72
|
end
|
72
73
|
end
|
73
74
|
end
|
data/lib/mime_builder/text.rb
CHANGED
@@ -33,9 +33,10 @@ module MIMEBuilder
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def get_attachment_content_disposition(filename = nil)
|
36
|
-
|
37
|
-
|
38
|
-
|
36
|
+
if filename.to_s.length > 0
|
37
|
+
return "attachment; filename=\"#{filename}\""
|
38
|
+
end
|
39
|
+
'attachment'
|
39
40
|
end
|
40
41
|
end
|
41
42
|
end
|
data/lib/mime_builder.rb
CHANGED
@@ -0,0 +1,29 @@
|
|
1
|
+
lib = 'mime_builder'
|
2
|
+
lib_file = File.expand_path("../lib/#{lib}.rb", __FILE__)
|
3
|
+
File.read(lib_file) =~ /\bVERSION\s*=\s*["'](.+?)["']/
|
4
|
+
version = $1
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = lib
|
8
|
+
s.version = version
|
9
|
+
s.date = '2023-02-15'
|
10
|
+
s.summary = 'MIME Builder is a helper to build MIME parts'
|
11
|
+
s.description = 'Helper library to build MIME parts'
|
12
|
+
s.authors = ['John Wang']
|
13
|
+
s.email = 'johncwang@gmail.com'
|
14
|
+
s.homepage = 'https://github.com/grokify/mime-builder-ruby'
|
15
|
+
s.licenses = ['MIT']
|
16
|
+
s.files = Dir['lib/**/**/*'] + Dir['[A-Z]*'] + Dir['test/**/*']
|
17
|
+
# s.files.reject! { |fn| fn.include? "CVS" }
|
18
|
+
# s.required_ruby_version = '>= 1.8.7' # 1.8.7+ is tested
|
19
|
+
s.required_ruby_version = '>= 2.2.2'
|
20
|
+
s.add_dependency 'mime', '~> 0.4', '>= 0.4.4'
|
21
|
+
s.add_dependency 'mime-types', '~> 3.4', '>= 3.4.1'
|
22
|
+
s.add_dependency 'multi_json', '~> 1', '>= 1.15.0'
|
23
|
+
|
24
|
+
s.add_development_dependency 'coveralls', '~> 0'
|
25
|
+
s.add_development_dependency 'mocha', '~> 2'
|
26
|
+
s.add_development_dependency 'rake', '~> 13'
|
27
|
+
s.add_development_dependency 'simplecov', '~> 0'
|
28
|
+
s.add_development_dependency 'test-unit', '~> 3'
|
29
|
+
end
|
data/test/test_file.rb
CHANGED
@@ -1,11 +1,6 @@
|
|
1
1
|
require './test/test_base.rb'
|
2
2
|
|
3
3
|
class MIMEBuilderFileTest < Test::Unit::TestCase
|
4
|
-
|
5
|
-
def test_file_one
|
6
|
-
#assert_equal "bXlfYXBwX2tleTpteV9hcHBfc2VjcmV0", @rcsdk.send(:get_api_key)
|
7
|
-
end
|
8
|
-
|
9
4
|
def test_basic
|
10
5
|
filepath = './test/test_file.pdf'
|
11
6
|
filename = 'test_file.pdf'
|
data/test/test_json.rb
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
require './test/test_base.rb'
|
2
2
|
|
3
3
|
require 'base64'
|
4
|
+
require 'multi_json'
|
4
5
|
|
5
6
|
class MIMEBuilderJsonTest < Test::Unit::TestCase
|
6
7
|
def test_base
|
7
8
|
test_json = { hello: 'world' }
|
8
9
|
|
9
|
-
json_part = MIMEBuilder::JSON.new
|
10
|
+
json_part = MIMEBuilder::JSON.new test_json
|
10
11
|
|
11
12
|
assert_equal 'application/json', json_part.mime.headers.get('Content-Type')
|
12
13
|
assert_equal Base64.encode64(MultiJson.encode(test_json)), json_part.mime.body.to_s
|
@@ -15,10 +16,19 @@ class MIMEBuilderJsonTest < Test::Unit::TestCase
|
|
15
16
|
|
16
17
|
def test_no_base64
|
17
18
|
test_json = { hello: 'world' }
|
18
|
-
test_json = MultiJson.encode
|
19
|
+
test_json = MultiJson.encode test_json
|
19
20
|
|
20
21
|
json_part = MIMEBuilder::JSON.new test_json, encode_base64: false
|
21
22
|
|
22
23
|
assert_equal test_json, json_part.mime.body.to_s
|
23
24
|
end
|
25
|
+
|
26
|
+
def test_base64_raw
|
27
|
+
info = { hello: 'world' }
|
28
|
+
|
29
|
+
builder = MIMEBuilder::JSON.new info, encode_base64: true
|
30
|
+
|
31
|
+
assert_equal 'eyJoZWxsbyI6IndvcmxkIn0='.encode('iso-8859-1'), builder.mime.body.to_s.strip
|
32
|
+
assert_equal true, builder.encode_base64?
|
33
|
+
end
|
24
34
|
end
|
data/test/test_text.rb
CHANGED
@@ -2,9 +2,9 @@ require './test/test_base.rb'
|
|
2
2
|
|
3
3
|
class MIMEBuilderTextTest < Test::Unit::TestCase
|
4
4
|
def test_contenttype
|
5
|
-
|
5
|
+
test_text = 'Hello world!'
|
6
6
|
|
7
|
-
filepart = MIMEBuilder::Text.new
|
7
|
+
filepart = MIMEBuilder::Text.new test_text
|
8
8
|
|
9
9
|
assert_equal 'text/plain', filepart.mime.headers.get('Content-Type')
|
10
10
|
|
@@ -16,4 +16,4 @@ class MIMEBuilderTextTest < Test::Unit::TestCase
|
|
16
16
|
|
17
17
|
assert_equal nil, filepart.mime.headers.get('Content-Id')
|
18
18
|
end
|
19
|
-
end
|
19
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mime_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Wang
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mime
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '0.4'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.4.
|
22
|
+
version: 0.4.4
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,21 +29,27 @@ dependencies:
|
|
29
29
|
version: '0.4'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0.4.
|
32
|
+
version: 0.4.4
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: mime-types
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '3.
|
39
|
+
version: '3.4'
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 3.4.1
|
40
43
|
type: :runtime
|
41
44
|
prerelease: false
|
42
45
|
version_requirements: !ruby/object:Gem::Requirement
|
43
46
|
requirements:
|
44
47
|
- - "~>"
|
45
48
|
- !ruby/object:Gem::Version
|
46
|
-
version: '3.
|
49
|
+
version: '3.4'
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 3.4.1
|
47
53
|
- !ruby/object:Gem::Dependency
|
48
54
|
name: multi_json
|
49
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,7 +59,7 @@ dependencies:
|
|
53
59
|
version: '1'
|
54
60
|
- - ">="
|
55
61
|
- !ruby/object:Gem::Version
|
56
|
-
version: 1.
|
62
|
+
version: 1.15.0
|
57
63
|
type: :runtime
|
58
64
|
prerelease: false
|
59
65
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -63,7 +69,77 @@ dependencies:
|
|
63
69
|
version: '1'
|
64
70
|
- - ">="
|
65
71
|
- !ruby/object:Gem::Version
|
66
|
-
version: 1.
|
72
|
+
version: 1.15.0
|
73
|
+
- !ruby/object:Gem::Dependency
|
74
|
+
name: coveralls
|
75
|
+
requirement: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - "~>"
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0'
|
80
|
+
type: :development
|
81
|
+
prerelease: false
|
82
|
+
version_requirements: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - "~>"
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
- !ruby/object:Gem::Dependency
|
88
|
+
name: mocha
|
89
|
+
requirement: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - "~>"
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '2'
|
94
|
+
type: :development
|
95
|
+
prerelease: false
|
96
|
+
version_requirements: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - "~>"
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: '2'
|
101
|
+
- !ruby/object:Gem::Dependency
|
102
|
+
name: rake
|
103
|
+
requirement: !ruby/object:Gem::Requirement
|
104
|
+
requirements:
|
105
|
+
- - "~>"
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '13'
|
108
|
+
type: :development
|
109
|
+
prerelease: false
|
110
|
+
version_requirements: !ruby/object:Gem::Requirement
|
111
|
+
requirements:
|
112
|
+
- - "~>"
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
version: '13'
|
115
|
+
- !ruby/object:Gem::Dependency
|
116
|
+
name: simplecov
|
117
|
+
requirement: !ruby/object:Gem::Requirement
|
118
|
+
requirements:
|
119
|
+
- - "~>"
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: '0'
|
122
|
+
type: :development
|
123
|
+
prerelease: false
|
124
|
+
version_requirements: !ruby/object:Gem::Requirement
|
125
|
+
requirements:
|
126
|
+
- - "~>"
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: '0'
|
129
|
+
- !ruby/object:Gem::Dependency
|
130
|
+
name: test-unit
|
131
|
+
requirement: !ruby/object:Gem::Requirement
|
132
|
+
requirements:
|
133
|
+
- - "~>"
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: '3'
|
136
|
+
type: :development
|
137
|
+
prerelease: false
|
138
|
+
version_requirements: !ruby/object:Gem::Requirement
|
139
|
+
requirements:
|
140
|
+
- - "~>"
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: '3'
|
67
143
|
description: Helper library to build MIME parts
|
68
144
|
email: johncwang@gmail.com
|
69
145
|
executables: []
|
@@ -71,7 +147,9 @@ extensions: []
|
|
71
147
|
extra_rdoc_files: []
|
72
148
|
files:
|
73
149
|
- CHANGELOG.md
|
150
|
+
- CODE_OF_CONDUCT.md
|
74
151
|
- Gemfile
|
152
|
+
- Gemfile.lock
|
75
153
|
- LICENSE.txt
|
76
154
|
- README.md
|
77
155
|
- Rakefile
|
@@ -79,16 +157,17 @@ files:
|
|
79
157
|
- lib/mime_builder/file.rb
|
80
158
|
- lib/mime_builder/json.rb
|
81
159
|
- lib/mime_builder/text.rb
|
160
|
+
- mime_builder.gemspec
|
82
161
|
- test/test_base.rb
|
83
162
|
- test/test_file.pdf
|
84
163
|
- test/test_file.rb
|
85
164
|
- test/test_json.rb
|
86
165
|
- test/test_text.rb
|
87
|
-
homepage: https://github.com/grokify/
|
166
|
+
homepage: https://github.com/grokify/mime-builder-ruby
|
88
167
|
licenses:
|
89
168
|
- MIT
|
90
169
|
metadata: {}
|
91
|
-
post_install_message:
|
170
|
+
post_install_message:
|
92
171
|
rdoc_options: []
|
93
172
|
require_paths:
|
94
173
|
- lib
|
@@ -96,16 +175,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
96
175
|
requirements:
|
97
176
|
- - ">="
|
98
177
|
- !ruby/object:Gem::Version
|
99
|
-
version:
|
178
|
+
version: 2.2.2
|
100
179
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
180
|
requirements:
|
102
181
|
- - ">="
|
103
182
|
- !ruby/object:Gem::Version
|
104
183
|
version: '0'
|
105
184
|
requirements: []
|
106
|
-
|
107
|
-
|
108
|
-
signing_key:
|
185
|
+
rubygems_version: 3.4.2
|
186
|
+
signing_key:
|
109
187
|
specification_version: 4
|
110
188
|
summary: MIME Builder is a helper to build MIME parts
|
111
189
|
test_files: []
|