texd 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e81fb33476966032e12c55d7078c824f82e249ad5191bb499a6f0047e6748603
4
- data.tar.gz: 41860606ab46c0006a33b740120c8441a8a29d2b48b577ef133a4acff8a5bd8a
3
+ metadata.gz: f6bbbe0b3497e37a0c6aad0d14c4869642b3f515082a3527ce176f7a043b868d
4
+ data.tar.gz: 36dc2ada8433384db1e2e39534a9a43d54290e7189398942e92911e7b4801da3
5
5
  SHA512:
6
- metadata.gz: 352f6eca45f3e55b0e0df036d59f21f4d77dd7567a6c92853ae5766b6a6b3e2d751a9d9a68f4f353c95435caf6cdfed843f0774a4fd64d3fc0ba0ec33a90405d
7
- data.tar.gz: 71f761e43adf6268567cd49285a8fe542887e4654499dc297fe7d26feb6882803474702704f6493ece465a339e8ba2283cfd4e0e114f6ed153b7e2c98f2c99b5
6
+ metadata.gz: 1aadeb5f3c91bb5894d9c207a8f42e34ae359463f22921fc83299157c01b63bbcb7fe3f4ac466f982ae7571aa4081542ba33e6b631811aa48ca03db527af993a
7
+ data.tar.gz: b904d72f6f4630665f263a3d4a57ef1fe53e38f3ed46c162bb546bad33d7e555d3d6734e65148e97111e1077279fcb9150998142d371c19cad969b5bfe5c3e64
data/.rubocop.yml CHANGED
@@ -329,3 +329,18 @@ Style/TrailingCommaInArrayLiteral:
329
329
  Style/TrailingCommaInHashLiteral:
330
330
  EnforcedStyleForMultiline: comma
331
331
 
332
+ ## RSpec Cops - https://docs.rubocop.org/rubocop-rspec/cops_rspec.html
333
+
334
+ RSpec/ExampleLength:
335
+ Max: 10
336
+ CountAsOne: [array, hash, heredoc]
337
+
338
+ RSpec/ExpectActual:
339
+ Exclude:
340
+ - spec/lib/texd/lookup_context_spec.rb # creative use of expect(...) with custom matcher
341
+
342
+ RSpec/MultipleExpectations:
343
+ Max: 6
344
+
345
+ RSpec/NestedGroups:
346
+ Max: 5
data/CHANGELOG.md CHANGED
@@ -1,6 +1,14 @@
1
1
  ## Unreleased
2
2
 
3
- [Compare changes](https://github.com/digineo/texd-ruby/compare/v0.4.1...master)
3
+ [Compare changes](https://github.com/digineo/texd-ruby/compare/v0.4.2...master)
4
+
5
+ ## v0.4.2 - 2022-06-16
6
+
7
+ [Compare changes](https://github.com/digineo/texd-ruby/compare/v0.4.1...v0.4.2)
8
+
9
+ **Changes**
10
+
11
+ - fix deprecation warning ("constant ::UploadIO is deprecated")
4
12
 
5
13
  ## v0.4.1 - 2022-06-16
6
14
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- texd (0.4.1)
4
+ texd (0.4.2)
5
5
  multipart-post (~> 2.0)
6
6
  rails (>= 6.0, < 8)
7
7
 
@@ -99,7 +99,7 @@ GEM
99
99
  method_source (1.0.0)
100
100
  mini_mime (1.1.2)
101
101
  mini_portile2 (2.8.0)
102
- minitest (5.16.0)
102
+ minitest (5.16.1)
103
103
  multipart-post (2.2.3)
104
104
  net-imap (0.2.3)
105
105
  digest
@@ -132,8 +132,8 @@ GEM
132
132
  pry (~> 0.13.0)
133
133
  racc (1.6.0)
134
134
  rack (2.2.3.1)
135
- rack-test (1.1.0)
136
- rack (>= 1.0, < 3)
135
+ rack-test (2.0.1)
136
+ rack (>= 1.3)
137
137
  rails (7.0.3)
138
138
  actioncable (= 7.0.3)
139
139
  actionmailbox (= 7.0.3)
@@ -185,7 +185,7 @@ GEM
185
185
  rspec-mocks (~> 3.10)
186
186
  rspec-support (~> 3.10)
187
187
  rspec-support (3.11.0)
188
- rubocop (1.30.1)
188
+ rubocop (1.31.0)
189
189
  parallel (~> 1.10)
190
190
  parser (>= 3.1.0.0)
191
191
  rainbow (>= 2.2.2, < 4.0)
@@ -196,7 +196,7 @@ GEM
196
196
  unicode-display_width (>= 1.4.0, < 3.0)
197
197
  rubocop-ast (1.18.0)
198
198
  parser (>= 3.1.1.0)
199
- rubocop-rails (2.15.0)
199
+ rubocop-rails (2.15.1)
200
200
  activesupport (>= 4.2.0)
201
201
  rack (>= 1.1)
202
202
  rubocop (>= 1.7.0, < 2.0)
@@ -210,7 +210,7 @@ GEM
210
210
  timeout (0.3.0)
211
211
  tzinfo (2.0.4)
212
212
  concurrent-ruby (~> 1.0)
213
- unicode-display_width (2.1.0)
213
+ unicode-display_width (2.2.0)
214
214
  webrick (1.7.0)
215
215
  websocket-driver (0.7.5)
216
216
  websocket-extensions (>= 0.1.0)
data/Makefile CHANGED
@@ -36,7 +36,7 @@ update:
36
36
 
37
37
  .PHONY: rubocop
38
38
  rubocop:
39
- export BUNDLE_GEMFILE=Gemfile && bundle --quiet && bundle exec rake rubocop:auto_correct
39
+ export BUNDLE_GEMFILE=Gemfile && bundle --quiet && bundle exec rake rubocop:autocorrect
40
40
 
41
41
  .PHONY: docs
42
42
  docs:
data/Rakefile CHANGED
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "bundler/gem_tasks"
4
+ Bundler.require(:development)
4
5
 
5
6
  require "rspec/core/rake_task"
6
7
  RSpec::Core::RakeTask.new(:spec)
@@ -12,5 +13,5 @@ begin
12
13
  task default: %i[spec rubocop]
13
14
  rescue LoadError
14
15
  # we're likely running `make test`
15
- task default: :spec
16
+ task default: :spec # rubocop:disable Rake/DuplicateTask
16
17
  end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- texd (0.4.1)
4
+ texd (0.4.2)
5
5
  multipart-post (~> 2.0)
6
6
  rails (>= 6.0, < 8)
7
7
 
@@ -87,7 +87,7 @@ GEM
87
87
  method_source (1.0.0)
88
88
  mini_mime (1.1.2)
89
89
  mini_portile2 (2.8.0)
90
- minitest (5.16.0)
90
+ minitest (5.16.1)
91
91
  multipart-post (2.2.3)
92
92
  nio4r (2.5.8)
93
93
  nokogiri (1.13.6)
@@ -103,8 +103,8 @@ GEM
103
103
  pry (~> 0.13.0)
104
104
  racc (1.6.0)
105
105
  rack (2.2.3.1)
106
- rack-test (1.1.0)
107
- rack (>= 1.0, < 3)
106
+ rack-test (2.0.1)
107
+ rack (>= 1.3)
108
108
  rails (6.0.5)
109
109
  actioncable (= 6.0.5)
110
110
  actionmailbox (= 6.0.5)
@@ -153,7 +153,7 @@ GEM
153
153
  rspec-mocks (~> 3.10)
154
154
  rspec-support (~> 3.10)
155
155
  rspec-support (3.11.0)
156
- sprockets (4.0.3)
156
+ sprockets (4.1.1)
157
157
  concurrent-ruby (~> 1.0)
158
158
  rack (> 1, < 3)
159
159
  sprockets-rails (3.4.2)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- texd (0.4.1)
4
+ texd (0.4.2)
5
5
  multipart-post (~> 2.0)
6
6
  rails (>= 6.0, < 8)
7
7
 
@@ -91,7 +91,7 @@ GEM
91
91
  method_source (1.0.0)
92
92
  mini_mime (1.1.2)
93
93
  mini_portile2 (2.8.0)
94
- minitest (5.16.0)
94
+ minitest (5.16.1)
95
95
  multipart-post (2.2.3)
96
96
  nio4r (2.5.8)
97
97
  nokogiri (1.13.6)
@@ -107,8 +107,8 @@ GEM
107
107
  pry (~> 0.13.0)
108
108
  racc (1.6.0)
109
109
  rack (2.2.3.1)
110
- rack-test (1.1.0)
111
- rack (>= 1.0, < 3)
110
+ rack-test (2.0.1)
111
+ rack (>= 1.3)
112
112
  rails (6.1.6)
113
113
  actioncable (= 6.1.6)
114
114
  actionmailbox (= 6.1.6)
@@ -157,7 +157,7 @@ GEM
157
157
  rspec-mocks (~> 3.10)
158
158
  rspec-support (~> 3.10)
159
159
  rspec-support (3.11.0)
160
- sprockets (4.0.3)
160
+ sprockets (4.1.1)
161
161
  concurrent-ruby (~> 1.0)
162
162
  rack (> 1, < 3)
163
163
  sprockets-rails (3.4.2)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- texd (0.4.1)
4
+ texd (0.4.2)
5
5
  multipart-post (~> 2.0)
6
6
  rails (>= 6.0, < 8)
7
7
 
@@ -98,7 +98,7 @@ GEM
98
98
  method_source (1.0.0)
99
99
  mini_mime (1.1.2)
100
100
  mini_portile2 (2.8.0)
101
- minitest (5.16.0)
101
+ minitest (5.16.1)
102
102
  multipart-post (2.2.3)
103
103
  net-imap (0.2.3)
104
104
  digest
@@ -128,8 +128,8 @@ GEM
128
128
  pry (~> 0.13.0)
129
129
  racc (1.6.0)
130
130
  rack (2.2.3.1)
131
- rack-test (1.1.0)
132
- rack (>= 1.0, < 3)
131
+ rack-test (2.0.1)
132
+ rack (>= 1.3)
133
133
  rails (7.0.3)
134
134
  actioncable (= 7.0.3)
135
135
  actionmailbox (= 7.0.3)
@@ -132,7 +132,7 @@ module Texd
132
132
 
133
133
  Dynamic = Struct.new(:name, :contents) do
134
134
  def to_upload_io(**)
135
- UploadIO.new(StringIO.new(contents), nil, name).tap { |io|
135
+ Multipart::Post::UploadIO.new(StringIO.new(contents), nil, name).tap { |io|
136
136
  io.instance_variable_set :@original_filename, name
137
137
  }
138
138
  end
@@ -177,7 +177,7 @@ module Texd
177
177
  class File < Base
178
178
  # @api private
179
179
  def to_upload_io(**)
180
- UploadIO.new(absolute_path.open("rb"), nil, name).tap { |io|
180
+ Multipart::Post::UploadIO.new(absolute_path.open("rb"), nil, name).tap { |io|
181
181
  io.instance_variable_set :@original_filename, name
182
182
  }
183
183
  end
@@ -197,7 +197,7 @@ module Texd
197
197
  f = full ? absolute_path.open("rb") : StringIO.new(checksum)
198
198
  ct = full ? STORE_REF : USE_REF
199
199
 
200
- UploadIO.new(f, ct, name).tap { |io|
200
+ Multipart::Post::UploadIO.new(f, ct, name).tap { |io|
201
201
  io.instance_variable_set :@original_filename, name
202
202
  }
203
203
  end
data/lib/texd/config.rb CHANGED
@@ -146,8 +146,8 @@ module Texd
146
146
  end
147
147
 
148
148
  def to_h
149
- DEFAULT_CONFIGURATION.keys.each_with_object({}) do |key, hash|
150
- hash[key] = public_send(key)
149
+ DEFAULT_CONFIGURATION.keys.index_with do |key|
150
+ public_send(key)
151
151
  end
152
152
  end
153
153
 
data/lib/texd/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Texd
4
- VERSION = "0.4.1"
4
+ VERSION = "0.4.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: texd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominik Menke
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-16 00:00:00.000000000 Z
11
+ date: 2022-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multipart-post
@@ -141,7 +141,7 @@ metadata:
141
141
  rubygems_mfa_required: 'true'
142
142
  homepage_uri: https://github.com/digineo/texd-ruby
143
143
  source_code_uri: https://github.com/digineo/texd-ruby
144
- changelog_uri: https://github.com/digineo/texd-ruby/blob/v0.4.1/CHANGELOG.md
144
+ changelog_uri: https://github.com/digineo/texd-ruby/blob/v0.4.2/CHANGELOG.md
145
145
  post_install_message:
146
146
  rdoc_options: []
147
147
  require_paths: