cheesy-gallery 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/publish.yaml +20 -0
  3. data/.github/workflows/tests.yaml +39 -0
  4. data/CHANGELOG.md +5 -0
  5. data/cheesy-gallery.gemspec +0 -2
  6. data/lib/cheesy-gallery/base_image_file.rb +2 -9
  7. data/lib/cheesy-gallery/gallery_index.rb +2 -5
  8. data/lib/cheesy-gallery/generator.rb +1 -5
  9. data/lib/cheesy-gallery/image_file.rb +4 -7
  10. data/lib/cheesy-gallery/image_thumb.rb +3 -7
  11. data/lib/cheesy-gallery/version.rb +1 -2
  12. data/lib/cheesy-gallery.rb +0 -2
  13. metadata +5 -79
  14. data/.travis.yml +0 -33
  15. data/sorbet/config +0 -2
  16. data/sorbet/rbi/gems/addressable.rbi +0 -147
  17. data/sorbet/rbi/gems/ast.rbi +0 -49
  18. data/sorbet/rbi/gems/codecov.rbi +0 -49
  19. data/sorbet/rbi/gems/coderay.rbi +0 -285
  20. data/sorbet/rbi/gems/colorator.rbi +0 -60
  21. data/sorbet/rbi/gems/concurrent-ruby.rbi +0 -225
  22. data/sorbet/rbi/gems/docile.rbi +0 -36
  23. data/sorbet/rbi/gems/ffi.rbi +0 -560
  24. data/sorbet/rbi/gems/forwardable-extended.rbi +0 -24
  25. data/sorbet/rbi/gems/i18n.rbi +0 -108
  26. data/sorbet/rbi/gems/jekyll-sass-converter.rbi +0 -61
  27. data/sorbet/rbi/gems/jekyll.rbi +0 -726
  28. data/sorbet/rbi/gems/kramdown.rbi +0 -250
  29. data/sorbet/rbi/gems/liquid.rbi +0 -649
  30. data/sorbet/rbi/gems/method_source.rbi +0 -64
  31. data/sorbet/rbi/gems/parallel.rbi +0 -83
  32. data/sorbet/rbi/gems/parser.rbi +0 -1429
  33. data/sorbet/rbi/gems/pathutil.rbi +0 -188
  34. data/sorbet/rbi/gems/pry.rbi +0 -1898
  35. data/sorbet/rbi/gems/public_suffix.rbi +0 -104
  36. data/sorbet/rbi/gems/rainbow.rbi +0 -118
  37. data/sorbet/rbi/gems/rake.rbi +0 -647
  38. data/sorbet/rbi/gems/regexp_parser.rbi +0 -926
  39. data/sorbet/rbi/gems/rexml.rbi +0 -599
  40. data/sorbet/rbi/gems/rmagick.rbi +0 -1249
  41. data/sorbet/rbi/gems/rspec-core.rbi +0 -1894
  42. data/sorbet/rbi/gems/rspec-expectations.rbi +0 -1148
  43. data/sorbet/rbi/gems/rspec-mocks.rbi +0 -1091
  44. data/sorbet/rbi/gems/rspec-support.rbi +0 -280
  45. data/sorbet/rbi/gems/rspec.rbi +0 -15
  46. data/sorbet/rbi/gems/rubocop-ast.rbi +0 -1357
  47. data/sorbet/rbi/gems/rubocop.rbi +0 -8027
  48. data/sorbet/rbi/gems/ruby-progressbar.rbi +0 -304
  49. data/sorbet/rbi/gems/safe_yaml.rbi +0 -124
  50. data/sorbet/rbi/gems/sassc.rbi +0 -532
  51. data/sorbet/rbi/gems/simplecov-html.rbi +0 -35
  52. data/sorbet/rbi/gems/simplecov.rbi +0 -419
  53. data/sorbet/rbi/gems/unicode-display_width.rbi +0 -22
  54. data/sorbet/rbi/hidden-definitions/errors.txt +0 -6233
  55. data/sorbet/rbi/hidden-definitions/hidden.rbi +0 -13059
  56. data/sorbet/rbi/rmagick.rbi +0 -18
  57. data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +0 -276
  58. data/sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi +0 -645
  59. data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +0 -1891
  60. data/sorbet/rbi/sorbet-typed/lib/rubocop/>=1.8/rubocop.rbi +0 -7799
  61. data/sorbet/rbi/todo.rbi +0 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 19931d133435a6a55017ecac411db830706130e548d194cb46acd26a252adfd1
4
- data.tar.gz: a1051c7f17f276558d65f681ae61bffb74f3ec3ae6d0089d4f2e1e963f83587a
3
+ metadata.gz: 0af87d93a01619b196b1c7bfb162ee12d309f53961e3a04f523eed0e9c178f52
4
+ data.tar.gz: 1c52d18ca5e5eff07b51224b0b67f9ae16b6e58304ff76d09de53cbfd4488655
5
5
  SHA512:
6
- metadata.gz: 9b13062ca2c8117769df7e288aa285a67dcb467c56818faf6a92292492dd9c12f1319159b09c0f936edef88cec566075d3fa1807b15dfc0332e72e17372cedfa
7
- data.tar.gz: cae163728e4f9ca11d2dc5059027f39d1c42930f6802d4917850d7e726c603682adbb47dc986d1d6f6363a5cdce3a4627a40e1bd5888c49c9e61a814b083087f
6
+ metadata.gz: d876cfc12640e0d2688ac2c51d636c38083624d278031e32bfbbf6ce5ad54157c9e5299cfb0cd733d0b368006c5d32eb060f41907b3d05eeb1b308ad496e037d
7
+ data.tar.gz: a2ccf221f4575749a555f6d8a9e7d46c050327bd41ad30861c58f3ed20365e52373a3227c4b7960c052eea3675e7b00fbaa82db2baa2664cfc9ad11ff8245070
@@ -0,0 +1,20 @@
1
+ name: Publish Gem
2
+ on:
3
+ push:
4
+ tags:
5
+ - "*"
6
+ workflow_dispatch:
7
+
8
+ jobs:
9
+ publish:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v3
13
+ - uses: ruby/setup-ruby@v1
14
+ with:
15
+ ruby-version: "3.0"
16
+ bundler-cache: true
17
+ - uses: dawidd6/action-publish-gem@v1
18
+ with:
19
+ api_key: ${{secrets.RUBYGEMS_API_KEY}}
20
+ github_token: ${{secrets.GITHUB_TOKEN}}
@@ -0,0 +1,39 @@
1
+ name: Tests
2
+ on: [push, pull_request]
3
+ jobs:
4
+ base-test:
5
+ strategy:
6
+ fail-fast: false
7
+ matrix:
8
+ # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
9
+ ruby: ["2.7", "3.0", "3.1"]
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v3
13
+ - uses: ruby/setup-ruby@v1
14
+ with:
15
+ ruby-version: ${{ matrix.ruby }}
16
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
17
+ - run: bundle exec rake
18
+ test-site:
19
+ strategy:
20
+ fail-fast: false
21
+ matrix:
22
+ # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
23
+ ruby: ["2.7", "3.0", "3.1"]
24
+ runs-on: ubuntu-latest
25
+ steps:
26
+ - uses: actions/checkout@v3
27
+ - uses: ruby/setup-ruby@v1
28
+ with:
29
+ ruby-version: ${{ matrix.ruby }}
30
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
31
+ working-directory: spec/fixtures/test_site
32
+ - id: build-test-site
33
+ working-directory: spec/fixtures/test_site
34
+ run: |
35
+ bundle exec jekyll build --strict --trace --verbose
36
+ find _site -type f
37
+ echo -e '\n===\n'
38
+ cat _site/gallery_one/index.html
39
+ file _site/gallery_two/third/Morgenspaziergang-3.jpg_thumb.jpg
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 1.1.1
2
+
3
+ * Address some deprecations warnings thanks to @pdxmph
4
+ * CI housekeeping: move to GHA from travis
5
+
1
6
  # 1.1.0
2
7
 
3
8
  * Adds aggressive caching to reduce rebuild times.
@@ -38,9 +38,7 @@ Gem::Specification.new do |spec|
38
38
  spec.add_development_dependency 'rake', '~> 13.0'
39
39
  spec.add_development_dependency 'rspec', '~> 3.0'
40
40
  spec.add_development_dependency 'rubocop'
41
- spec.add_development_dependency 'sorbet'
42
41
 
43
42
  spec.add_dependency 'jekyll', '~> 4.0'
44
43
  spec.add_dependency 'rmagick', '~> 4.0'
45
- spec.add_dependency 'sorbet-runtime'
46
44
  end
@@ -1,4 +1,3 @@
1
- # typed: strict
2
1
  # frozen_string_literal: true
3
2
 
4
3
  require 'rmagick'
@@ -6,25 +5,20 @@ require 'rmagick'
6
5
  # This StaticFile subclass adds additional functionality for images in the
7
6
  # gallery
8
7
  class CheesyGallery::BaseImageFile < Jekyll::StaticFile
9
- extend T::Sig
8
+ @@render_cache = Jekyll::Cache.new('CheesyGallery::Render') # don't need to worry about inheritance here # rubocop:disable Style/ClassVars
10
9
 
11
- @@render_cache = T.let(Jekyll::Cache.new('CheesyGallery::Render'), Jekyll::Cache) # don't need to worry about inheritance here # rubocop:disable Style/ClassVars
12
-
13
- sig { params(site: Jekyll::Site, collection: Jekyll::Collection, file: Jekyll::StaticFile, dest_path: T.nilable(String)).void }
14
10
  def initialize(site, collection, file, dest_path = nil)
15
- @source_file = T.let(file, Jekyll::StaticFile)
11
+ @source_file = file
16
12
  super(site, site.source, File.dirname(file.relative_path), dest_path || file.name, collection)
17
13
  end
18
14
 
19
15
  # use the source file's path for this, as this value is used all over the
20
16
  # place for mtime checking
21
- sig { returns String }
22
17
  def path
23
18
  @source_file.path
24
19
  end
25
20
 
26
21
  # overwrite this method to add additional processing
27
- sig { params(img: Magick::ImageList, path: String).void }
28
22
  def process_and_write(img, path)
29
23
  img.write(path) {}
30
24
  end
@@ -52,7 +46,6 @@ class CheesyGallery::BaseImageFile < Jekyll::StaticFile
52
46
 
53
47
  # instead of copying, allow rmagick processing
54
48
  # this is only called if the mtime doesn't match
55
- sig { params(dest_path: String).void }
56
49
  def copy_file(dest_path)
57
50
  source = Magick::ImageList.new(path)
58
51
  begin
@@ -1,14 +1,11 @@
1
- # typed: strict
2
1
  # frozen_string_literal: true
3
2
 
4
3
  # This Document subclass is used to stand in for gallery indices which do not have a `index.html`
5
4
  class CheesyGallery::GalleryIndex < Jekyll::Document
6
- extend T::Sig
7
-
8
5
  DEFAULT_CONTENT = "This page intentionally left plank.\n"
6
+
9
7
  # skip reading content, as there is by definition no backing file for this
10
- sig { params(_opts: T.untyped).returns(String) }
11
- def read_content(_opts)
8
+ def read_content(_opts = nil)
12
9
  self.content = DEFAULT_CONTENT
13
10
  end
14
11
  end
@@ -1,4 +1,3 @@
1
- # typed: strict
2
1
  # frozen_string_literal: true
3
2
 
4
3
  require 'jekyll'
@@ -9,11 +8,8 @@ require 'cheesy-gallery/image_thumb'
9
8
 
10
9
  # The generator modifies the `site` data structure to contain all data necessary by the layouts and tags to render the galleries
11
10
  class CheesyGallery::Generator < Jekyll::Generator
12
- extend T::Sig
13
-
14
- sig { params(site: Jekyll::Site).void }
15
11
  def generate(site)
16
- @site = T.let(site, T.nilable(Jekyll::Site))
12
+ @site = site
17
13
  (site.collections.values.find_all { |c| c.metadata['cheesy-gallery'] } || [site.collections['galleries']]).compact.each do |collection|
18
14
  collection.metadata['output'] = true unless collection.metadata.key? 'output'
19
15
 
@@ -1,4 +1,3 @@
1
- # typed: strict
2
1
  # frozen_string_literal: true
3
2
 
4
3
  require 'rmagick'
@@ -7,14 +6,13 @@ require 'cheesy-gallery/base_image_file'
7
6
  # This StaticFile subclass adds additional functionality for images in the
8
7
  # gallery
9
8
  class CheesyGallery::ImageFile < CheesyGallery::BaseImageFile
10
- @@geometry_cache = T.let(Jekyll::Cache.new('CheesyGallery::Geometry'), Jekyll::Cache) # don't need to worry about inheritance here # rubocop:disable Style/ClassVars
9
+ @@geometry_cache = Jekyll::Cache.new('CheesyGallery::Geometry') # don't need to worry about inheritance here # rubocop:disable Style/ClassVars
11
10
 
12
- sig { params(site: Jekyll::Site, collection: Jekyll::Collection, file: Jekyll::StaticFile, max_size: String, quality: Integer).void }
13
11
  def initialize(site, collection, file, max_size:, quality:)
14
12
  super(site, collection, file)
15
13
 
16
- @max_size = T.let(max_size, String)
17
- @quality = T.let(quality, Integer)
14
+ @max_size = max_size
15
+ @quality = quality
18
16
 
19
17
  realpath = File.realdirpath(path)
20
18
  mtime = File.mtime(realpath)
@@ -35,7 +33,6 @@ class CheesyGallery::ImageFile < CheesyGallery::BaseImageFile
35
33
  end
36
34
 
37
35
  # instead of copying, renders an optimised version
38
- sig { params(img: Magick::ImageList, path: String).void }
39
36
  def process_and_write(img, path)
40
37
  img.change_geometry!(@max_size) do |cols, rows, i|
41
38
  i.resize!(cols, rows)
@@ -47,6 +44,6 @@ class CheesyGallery::ImageFile < CheesyGallery::BaseImageFile
47
44
  img.strip!
48
45
  # workaround weird {self} initialisation pattern
49
46
  quality = @quality
50
- img.write(path) { self.quality = quality }
47
+ img.write(path) { |image| image.quality = quality }
51
48
  end
52
49
  end
@@ -1,4 +1,3 @@
1
- # typed: strict
2
1
  # frozen_string_literal: true
3
2
 
4
3
  require 'rmagick'
@@ -6,21 +5,18 @@ require 'cheesy-gallery/base_image_file'
6
5
 
7
6
  # This StaticFile subclass represents thumbnail images for each image. On `write()` it renders a 150x150 center crop of the source
8
7
  class CheesyGallery::ImageThumb < CheesyGallery::BaseImageFile
9
- sig { returns(Integer) }
10
8
  attr_reader :height, :width
11
9
 
12
- sig { params(site: Jekyll::Site, collection: Jekyll::Collection, file: Jekyll::StaticFile, postfix: String, height: Integer, width: Integer).void }
13
10
  def initialize(site, collection, file, postfix, height, width)
14
11
  super(site, collection, file, file.name + postfix)
15
12
 
16
- @height = T.let(height, Integer)
17
- @width = T.let(width, Integer)
13
+ @height = height
14
+ @width = width
18
15
  end
19
16
 
20
17
  # instead of copying, renders the thumbnail
21
- sig { params(img: Magick::ImageList, path: String).void }
22
18
  def process_and_write(img, path)
23
19
  img.resize_to_fill!(height, width)
24
- img.write(path) {}
20
+ img.write(path)
25
21
  end
26
22
  end
@@ -1,6 +1,5 @@
1
- # typed: strong
2
1
  # frozen_string_literal: true
3
2
 
4
3
  module CheesyGallery
5
- VERSION = '1.1.0'
4
+ VERSION = '1.1.1'
6
5
  end
@@ -1,9 +1,7 @@
1
- # typed: strong
2
1
  # frozen_string_literal: true
3
2
 
4
3
  require 'jekyll'
5
4
  require 'fileutils'
6
- require 'sorbet-runtime'
7
5
 
8
6
  # Main holder of all things cheesy and gallery-y
9
7
  module CheesyGallery
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cheesy-gallery
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Schmitt
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-07-04 00:00:00.000000000 Z
11
+ date: 2022-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -94,20 +94,6 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: sorbet
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
97
  - !ruby/object:Gem::Dependency
112
98
  name: jekyll
113
99
  requirement: !ruby/object:Gem::Requirement
@@ -136,20 +122,6 @@ dependencies:
136
122
  - - "~>"
137
123
  - !ruby/object:Gem::Version
138
124
  version: '4.0'
139
- - !ruby/object:Gem::Dependency
140
- name: sorbet-runtime
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- version: '0'
146
- type: :runtime
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: '0'
153
125
  description:
154
126
  email:
155
127
  - david@black.co.at
@@ -158,10 +130,11 @@ extensions: []
158
130
  extra_rdoc_files: []
159
131
  files:
160
132
  - ".github/dependabot.yml"
133
+ - ".github/workflows/publish.yaml"
134
+ - ".github/workflows/tests.yaml"
161
135
  - ".gitignore"
162
136
  - ".rspec"
163
137
  - ".rubocop.yml"
164
- - ".travis.yml"
165
138
  - CHANGELOG.md
166
139
  - CODE_OF_CONDUCT.md
167
140
  - Gemfile
@@ -178,53 +151,6 @@ files:
178
151
  - lib/cheesy-gallery/image_file.rb
179
152
  - lib/cheesy-gallery/image_thumb.rb
180
153
  - lib/cheesy-gallery/version.rb
181
- - sorbet/config
182
- - sorbet/rbi/gems/addressable.rbi
183
- - sorbet/rbi/gems/ast.rbi
184
- - sorbet/rbi/gems/codecov.rbi
185
- - sorbet/rbi/gems/coderay.rbi
186
- - sorbet/rbi/gems/colorator.rbi
187
- - sorbet/rbi/gems/concurrent-ruby.rbi
188
- - sorbet/rbi/gems/docile.rbi
189
- - sorbet/rbi/gems/ffi.rbi
190
- - sorbet/rbi/gems/forwardable-extended.rbi
191
- - sorbet/rbi/gems/i18n.rbi
192
- - sorbet/rbi/gems/jekyll-sass-converter.rbi
193
- - sorbet/rbi/gems/jekyll.rbi
194
- - sorbet/rbi/gems/kramdown.rbi
195
- - sorbet/rbi/gems/liquid.rbi
196
- - sorbet/rbi/gems/method_source.rbi
197
- - sorbet/rbi/gems/parallel.rbi
198
- - sorbet/rbi/gems/parser.rbi
199
- - sorbet/rbi/gems/pathutil.rbi
200
- - sorbet/rbi/gems/pry.rbi
201
- - sorbet/rbi/gems/public_suffix.rbi
202
- - sorbet/rbi/gems/rainbow.rbi
203
- - sorbet/rbi/gems/rake.rbi
204
- - sorbet/rbi/gems/regexp_parser.rbi
205
- - sorbet/rbi/gems/rexml.rbi
206
- - sorbet/rbi/gems/rmagick.rbi
207
- - sorbet/rbi/gems/rspec-core.rbi
208
- - sorbet/rbi/gems/rspec-expectations.rbi
209
- - sorbet/rbi/gems/rspec-mocks.rbi
210
- - sorbet/rbi/gems/rspec-support.rbi
211
- - sorbet/rbi/gems/rspec.rbi
212
- - sorbet/rbi/gems/rubocop-ast.rbi
213
- - sorbet/rbi/gems/rubocop.rbi
214
- - sorbet/rbi/gems/ruby-progressbar.rbi
215
- - sorbet/rbi/gems/safe_yaml.rbi
216
- - sorbet/rbi/gems/sassc.rbi
217
- - sorbet/rbi/gems/simplecov-html.rbi
218
- - sorbet/rbi/gems/simplecov.rbi
219
- - sorbet/rbi/gems/unicode-display_width.rbi
220
- - sorbet/rbi/hidden-definitions/errors.txt
221
- - sorbet/rbi/hidden-definitions/hidden.rbi
222
- - sorbet/rbi/rmagick.rbi
223
- - sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi
224
- - sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi
225
- - sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi
226
- - sorbet/rbi/sorbet-typed/lib/rubocop/>=1.8/rubocop.rbi
227
- - sorbet/rbi/todo.rbi
228
154
  homepage: https://github.com/DavidS/cheesy-gallery
229
155
  licenses: []
230
156
  metadata:
@@ -246,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
246
172
  - !ruby/object:Gem::Version
247
173
  version: '0'
248
174
  requirements: []
249
- rubygems_version: 3.2.5
175
+ rubygems_version: 3.3.15
250
176
  signing_key:
251
177
  specification_version: 4
252
178
  summary: A jekyll plugin for building galleries.
data/.travis.yml DELETED
@@ -1,33 +0,0 @@
1
- ---
2
- os: linux
3
- dist: focal
4
- language: ruby
5
- cache: bundler
6
- rvm:
7
- - 2.7.1
8
-
9
- # adopt future bundler 3 config style
10
- before_install:
11
- - bundle config set path ${BUNDLE_PATH:-vendor/bundle}
12
- - bundle config set jobs 3
13
- - bundle config set retry 3
14
- install: bundle install
15
-
16
- jobs:
17
- include:
18
- - env: CHECK=ruby
19
- script:
20
- - bundle exec rake
21
- - env: CHECK=sorbet
22
- script:
23
- - bundle exec srb tc --ignore=/vendor
24
- - env: CHECK=build
25
- gemfile: spec/fixtures/test_site/Gemfile
26
- script:
27
- - (cd spec/fixtures/test_site && bundle exec jekyll build --strict --trace --verbose)
28
- - (cd spec/fixtures/test_site && find _site -type f && echo -e '\n===\n' && cat _site/gallery_one/index.html && file _site/gallery_two/third/Morgenspaziergang-3.jpg_thumb.jpg)
29
-
30
- # only branch-test merges to main
31
- branches:
32
- only:
33
- - main
data/sorbet/config DELETED
@@ -1,2 +0,0 @@
1
- --dir
2
- .
@@ -1,147 +0,0 @@
1
- # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
- # srb rbi gems
3
-
4
- # typed: strict
5
- #
6
- # If you would like to make changes to this file, great! Please create the gem's shim here:
7
- #
8
- # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/addressable/all/addressable.rbi
9
- #
10
- # addressable-2.7.0
11
-
12
- module Addressable
13
- end
14
- module Addressable::VERSION
15
- end
16
- module Addressable::IDNA
17
- def self.lookup_unicode_combining_class(codepoint); end
18
- def self.lookup_unicode_compatibility(codepoint); end
19
- def self.lookup_unicode_composition(unpacked); end
20
- def self.lookup_unicode_lowercase(codepoint); end
21
- def self.punycode_adapt(delta, numpoints, firsttime); end
22
- def self.punycode_basic?(codepoint); end
23
- def self.punycode_decode(punycode); end
24
- def self.punycode_decode_digit(codepoint); end
25
- def self.punycode_delimiter?(codepoint); end
26
- def self.punycode_encode(unicode); end
27
- def self.punycode_encode_digit(d); end
28
- def self.to_ascii(input); end
29
- def self.to_unicode(input); end
30
- def self.unicode_compose(unpacked); end
31
- def self.unicode_compose_pair(ch_one, ch_two); end
32
- def self.unicode_decompose(unpacked); end
33
- def self.unicode_decompose_hangul(codepoint); end
34
- def self.unicode_downcase(input); end
35
- def self.unicode_normalize_kc(input); end
36
- def self.unicode_sort_canonical(unpacked); end
37
- end
38
- class Addressable::IDNA::PunycodeBadInput < StandardError
39
- end
40
- class Addressable::IDNA::PunycodeBigOutput < StandardError
41
- end
42
- class Addressable::IDNA::PunycodeOverflow < StandardError
43
- end
44
- class Addressable::URI
45
- def +(uri); end
46
- def ==(uri); end
47
- def ===(uri); end
48
- def absolute?; end
49
- def authority; end
50
- def authority=(new_authority); end
51
- def basename; end
52
- def default_port; end
53
- def defer_validation; end
54
- def display_uri; end
55
- def domain; end
56
- def dup; end
57
- def empty?; end
58
- def eql?(uri); end
59
- def extname; end
60
- def fragment; end
61
- def fragment=(new_fragment); end
62
- def freeze; end
63
- def hash; end
64
- def host; end
65
- def host=(new_host); end
66
- def hostname; end
67
- def hostname=(new_hostname); end
68
- def inferred_port; end
69
- def initialize(options = nil); end
70
- def inspect; end
71
- def ip_based?; end
72
- def join!(uri); end
73
- def join(uri); end
74
- def merge!(uri); end
75
- def merge(hash); end
76
- def normalize!; end
77
- def normalize; end
78
- def normalized_authority; end
79
- def normalized_fragment; end
80
- def normalized_host; end
81
- def normalized_password; end
82
- def normalized_path; end
83
- def normalized_port; end
84
- def normalized_query(*flags); end
85
- def normalized_scheme; end
86
- def normalized_site; end
87
- def normalized_user; end
88
- def normalized_userinfo; end
89
- def omit!(*components); end
90
- def omit(*components); end
91
- def origin; end
92
- def origin=(new_origin); end
93
- def password; end
94
- def password=(new_password); end
95
- def path; end
96
- def path=(new_path); end
97
- def port; end
98
- def port=(new_port); end
99
- def query; end
100
- def query=(new_query); end
101
- def query_values(return_type = nil); end
102
- def query_values=(new_query_values); end
103
- def relative?; end
104
- def remove_composite_values; end
105
- def replace_self(uri); end
106
- def request_uri; end
107
- def request_uri=(new_request_uri); end
108
- def route_from(uri); end
109
- def route_to(uri); end
110
- def scheme; end
111
- def scheme=(new_scheme); end
112
- def self.convert_path(path); end
113
- def self.encode(uri, return_type = nil); end
114
- def self.encode_component(component, character_class = nil, upcase_encoded = nil); end
115
- def self.escape(uri, return_type = nil); end
116
- def self.form_encode(form_values, sort = nil); end
117
- def self.form_unencode(encoded_value); end
118
- def self.heuristic_parse(uri, hints = nil); end
119
- def self.ip_based_schemes; end
120
- def self.join(*uris); end
121
- def self.normalize_component(component, character_class = nil, leave_encoded = nil); end
122
- def self.normalize_path(path); end
123
- def self.normalized_encode(uri, return_type = nil); end
124
- def self.parse(uri); end
125
- def self.port_mapping; end
126
- def self.unencode(uri, return_type = nil, leave_encoded = nil); end
127
- def self.unencode_component(uri, return_type = nil, leave_encoded = nil); end
128
- def self.unescape(uri, return_type = nil, leave_encoded = nil); end
129
- def self.unescape_component(uri, return_type = nil, leave_encoded = nil); end
130
- def site; end
131
- def site=(new_site); end
132
- def split_path(path); end
133
- def tld; end
134
- def tld=(new_tld); end
135
- def to_hash; end
136
- def to_s; end
137
- def to_str; end
138
- def user; end
139
- def user=(new_user); end
140
- def userinfo; end
141
- def userinfo=(new_userinfo); end
142
- def validate; end
143
- end
144
- class Addressable::URI::InvalidURIError < StandardError
145
- end
146
- module Addressable::URI::CharacterClasses
147
- end
@@ -1,49 +0,0 @@
1
- # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
- # srb rbi gems
3
-
4
- # typed: strict
5
- #
6
- # If you would like to make changes to this file, great! Please create the gem's shim here:
7
- #
8
- # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/ast/all/ast.rbi
9
- #
10
- # ast-2.4.2
11
-
12
- module AST
13
- end
14
- class AST::Node
15
- def +(array); end
16
- def <<(element); end
17
- def ==(other); end
18
- def append(element); end
19
- def assign_properties(properties); end
20
- def children; end
21
- def clone; end
22
- def concat(array); end
23
- def deconstruct; end
24
- def dup; end
25
- def eql?(other); end
26
- def fancy_type; end
27
- def hash; end
28
- def initialize(type, children = nil, properties = nil); end
29
- def inspect(indent = nil); end
30
- def original_dup; end
31
- def to_a; end
32
- def to_ast; end
33
- def to_s(indent = nil); end
34
- def to_sexp(indent = nil); end
35
- def to_sexp_array; end
36
- def type; end
37
- def updated(type = nil, children = nil, properties = nil); end
38
- end
39
- class AST::Processor
40
- include AST::Processor::Mixin
41
- end
42
- module AST::Processor::Mixin
43
- def handler_missing(node); end
44
- def process(node); end
45
- def process_all(nodes); end
46
- end
47
- module AST::Sexp
48
- def s(type, *children); end
49
- end
@@ -1,49 +0,0 @@
1
- # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
- # srb rbi gems
3
-
4
- # typed: strict
5
- #
6
- # If you would like to make changes to this file, great! Please create the gem's shim here:
7
- #
8
- # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/codecov/all/codecov.rbi
9
- #
10
- # codecov-0.5.2
11
-
12
- module Codecov
13
- extend Codecov::Configuration
14
- end
15
- module Codecov::SimpleCov
16
- end
17
- class Codecov::SimpleCov::Formatter
18
- def file_network; end
19
- def file_to_codecov(file); end
20
- def format(report); end
21
- def result_to_codecov(result); end
22
- def result_to_codecov_coverage(result); end
23
- def result_to_codecov_messages(result); end
24
- def result_to_codecov_report(result); end
25
- def shortened_filename(file); end
26
- end
27
- module Codecov::Configuration
28
- def pass_ci_if_error; end
29
- def pass_ci_if_error=(arg0); end
30
- end
31
- class Codecov::Uploader
32
- def self.black(str); end
33
- def self.build_params(ci); end
34
- def self.detect_ci; end
35
- def self.display_header; end
36
- def self.green(str); end
37
- def self.gzip_report(report); end
38
- def self.handle_report_response(report); end
39
- def self.net_blockers(switch); end
40
- def self.red(str); end
41
- def self.retry_request(req, https); end
42
- def self.upload(report, disable_net_blockers = nil); end
43
- def self.upload_to_codecov(ci, report); end
44
- def self.upload_to_v2(url, report, query, query_without_token); end
45
- def self.upload_to_v4(url, report, query, query_without_token); end
46
- end
47
- class SimpleCov::Formatter::Codecov
48
- def format(result, disable_net_blockers = nil); end
49
- end