mime_builder 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: c3bc85fb2a4fb507d444459978d274acd173ec68d1b0d3414878915fc9eba0b6
4
- data.tar.gz: bc9cca5bd9c220ff653a426b7587cbb718f435c6d4ba6ceb46017bfad96c014b
3
+ metadata.gz: d86ee822ea9dadb4e98c0bbbe494acf9c6a00fa76eeac02f5e170c1a1e3c8a39
4
+ data.tar.gz: 32475495b49cae1fea0e4810d60cbaf476f323d962a710ae59013a2c0ae01646
5
5
  SHA512:
6
- metadata.gz: f76bb1ef43d0a13ae765ba4afd3585c9d1f5535a5283731b1c5aa4cf409bdeec19e93a013053a4242def7aeb0b62e82b98a670d23db59377a955e2a232f31320
7
- data.tar.gz: 03204521aeb3731e27c5a886fbd6c07115c4f27f957bc73446a379ea534ee264ae3d82b1d075c1c601d632ff9b238d37744fd0409843a16dc549c44d71bc147c
6
+ metadata.gz: 6e29429fa339031e8aba37c4389302e4b2e433a853aa645917b27623da9a7e77ede688cb0be5d747f34a441eaa096b30b1127757da482ca1b6f3ae76af45696e
7
+ data.tar.gz: acf4126ef8887427ed3f630dd0742413dcc3ed3cfbaa19d0249e7dc77a65421ab63665d1c8d76c774cc280ffd3827f7a4554cfd4de2a531ec49056fa1568aa7d
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
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2016 John Wang
3
+ Copyright (c) 2016-2023 John Wang
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -7,7 +7,6 @@ MIMEBuilder Ruby
7
7
  [![Code Climate][codeclimate-status-svg]][codeclimate-status-link]
8
8
  [![Scrutinizer Code Quality][scrutinizer-status-svg]][scrutinizer-status-link]
9
9
 
10
- [![Downloads][downloads-svg]][downloads-link]
11
10
  [![Docs][docs-rubydoc-svg]][docs-rubydoc-link]
12
11
  [![License][license-svg]][license-link]
13
12
 
@@ -138,7 +137,7 @@ Please report these on [Github](https://github.com/grokify/mime-builder-ruby)
138
137
 
139
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
data/lib/mime_builder.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module MIMEBuilder
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
 
4
4
  autoload :Filepath, 'mime_builder/file'
5
5
  autoload :JSON, 'mime_builder/json'
@@ -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
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.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Wang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-28 00:00:00.000000000 Z
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.3
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.3
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.1'
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.1'
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.12.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,7 @@ dependencies:
63
69
  version: '1'
64
70
  - - ">="
65
71
  - !ruby/object:Gem::Version
66
- version: 1.12.1
72
+ version: 1.15.0
67
73
  - !ruby/object:Gem::Dependency
68
74
  name: coveralls
69
75
  requirement: !ruby/object:Gem::Requirement
@@ -84,28 +90,28 @@ dependencies:
84
90
  requirements:
85
91
  - - "~>"
86
92
  - !ruby/object:Gem::Version
87
- version: '1'
93
+ version: '2'
88
94
  type: :development
89
95
  prerelease: false
90
96
  version_requirements: !ruby/object:Gem::Requirement
91
97
  requirements:
92
98
  - - "~>"
93
99
  - !ruby/object:Gem::Version
94
- version: '1'
100
+ version: '2'
95
101
  - !ruby/object:Gem::Dependency
96
102
  name: rake
97
103
  requirement: !ruby/object:Gem::Requirement
98
104
  requirements:
99
105
  - - "~>"
100
106
  - !ruby/object:Gem::Version
101
- version: '12'
107
+ version: '13'
102
108
  type: :development
103
109
  prerelease: false
104
110
  version_requirements: !ruby/object:Gem::Requirement
105
111
  requirements:
106
112
  - - "~>"
107
113
  - !ruby/object:Gem::Version
108
- version: '12'
114
+ version: '13'
109
115
  - !ruby/object:Gem::Dependency
110
116
  name: simplecov
111
117
  requirement: !ruby/object:Gem::Requirement
@@ -143,6 +149,7 @@ files:
143
149
  - CHANGELOG.md
144
150
  - CODE_OF_CONDUCT.md
145
151
  - Gemfile
152
+ - Gemfile.lock
146
153
  - LICENSE.txt
147
154
  - README.md
148
155
  - Rakefile
@@ -150,6 +157,7 @@ files:
150
157
  - lib/mime_builder/file.rb
151
158
  - lib/mime_builder/json.rb
152
159
  - lib/mime_builder/text.rb
160
+ - mime_builder.gemspec
153
161
  - test/test_base.rb
154
162
  - test/test_file.pdf
155
163
  - test/test_file.rb
@@ -167,14 +175,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
167
175
  requirements:
168
176
  - - ">="
169
177
  - !ruby/object:Gem::Version
170
- version: '0'
178
+ version: 2.2.2
171
179
  required_rubygems_version: !ruby/object:Gem::Requirement
172
180
  requirements:
173
181
  - - ">="
174
182
  - !ruby/object:Gem::Version
175
183
  version: '0'
176
184
  requirements: []
177
- rubygems_version: 3.0.4
185
+ rubygems_version: 3.4.2
178
186
  signing_key:
179
187
  specification_version: 4
180
188
  summary: MIME Builder is a helper to build MIME parts