rails-brotli-cache 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 7d098c81efe4a27494a1fe24ca629a6b15626b422562d0a730a49391bfda6c89
4
+ data.tar.gz: fa966f9fed6b7b3af70b4813c1913f90e1f8676fdcca1002be50fa0489d22829
5
+ SHA512:
6
+ metadata.gz: 8243b75dcc06ce8be2abe75b205257a2c753392fd12e29490d55b2c8137a8ce9c5ab6742da28adf4de5469cdf87670bf4fa65eafc1264aee20e73addceef8314
7
+ data.tar.gz: 5db4acf073dcbc191acc8cfa60397c95009e6630fb6243bb7bebe78951516d85565b445d28ab9b6522883f09b20f44fabd4dfd31e7f171c4fcbaca3bf444f751
data/.gitignore ADDED
@@ -0,0 +1,3 @@
1
+ .tool-versions
2
+ coverage/
3
+
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,172 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rails-brotli-cache (0.0.1)
5
+ rails
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actioncable (7.0.4.3)
11
+ actionpack (= 7.0.4.3)
12
+ activesupport (= 7.0.4.3)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (>= 0.6.1)
15
+ actionmailbox (7.0.4.3)
16
+ actionpack (= 7.0.4.3)
17
+ activejob (= 7.0.4.3)
18
+ activerecord (= 7.0.4.3)
19
+ activestorage (= 7.0.4.3)
20
+ activesupport (= 7.0.4.3)
21
+ mail (>= 2.7.1)
22
+ net-imap
23
+ net-pop
24
+ net-smtp
25
+ actionmailer (7.0.4.3)
26
+ actionpack (= 7.0.4.3)
27
+ actionview (= 7.0.4.3)
28
+ activejob (= 7.0.4.3)
29
+ activesupport (= 7.0.4.3)
30
+ mail (~> 2.5, >= 2.5.4)
31
+ net-imap
32
+ net-pop
33
+ net-smtp
34
+ rails-dom-testing (~> 2.0)
35
+ actionpack (7.0.4.3)
36
+ actionview (= 7.0.4.3)
37
+ activesupport (= 7.0.4.3)
38
+ rack (~> 2.0, >= 2.2.0)
39
+ rack-test (>= 0.6.3)
40
+ rails-dom-testing (~> 2.0)
41
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
42
+ actiontext (7.0.4.3)
43
+ actionpack (= 7.0.4.3)
44
+ activerecord (= 7.0.4.3)
45
+ activestorage (= 7.0.4.3)
46
+ activesupport (= 7.0.4.3)
47
+ globalid (>= 0.6.0)
48
+ nokogiri (>= 1.8.5)
49
+ actionview (7.0.4.3)
50
+ activesupport (= 7.0.4.3)
51
+ builder (~> 3.1)
52
+ erubi (~> 1.4)
53
+ rails-dom-testing (~> 2.0)
54
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
55
+ activejob (7.0.4.3)
56
+ activesupport (= 7.0.4.3)
57
+ globalid (>= 0.3.6)
58
+ activemodel (7.0.4.3)
59
+ activesupport (= 7.0.4.3)
60
+ activerecord (7.0.4.3)
61
+ activemodel (= 7.0.4.3)
62
+ activesupport (= 7.0.4.3)
63
+ activestorage (7.0.4.3)
64
+ actionpack (= 7.0.4.3)
65
+ activejob (= 7.0.4.3)
66
+ activerecord (= 7.0.4.3)
67
+ activesupport (= 7.0.4.3)
68
+ marcel (~> 1.0)
69
+ mini_mime (>= 1.1.0)
70
+ activesupport (7.0.4.3)
71
+ concurrent-ruby (~> 1.0, >= 1.0.2)
72
+ i18n (>= 1.6, < 2)
73
+ minitest (>= 5.1)
74
+ tzinfo (~> 2.0)
75
+ builder (3.2.4)
76
+ concurrent-ruby (1.2.2)
77
+ crass (1.0.6)
78
+ date (3.3.3)
79
+ diff-lcs (1.5.0)
80
+ erubi (1.12.0)
81
+ globalid (1.1.0)
82
+ activesupport (>= 5.0)
83
+ i18n (1.13.0)
84
+ concurrent-ruby (~> 1.0)
85
+ loofah (2.20.0)
86
+ crass (~> 1.0.2)
87
+ nokogiri (>= 1.5.9)
88
+ mail (2.8.1)
89
+ mini_mime (>= 0.1.1)
90
+ net-imap
91
+ net-pop
92
+ net-smtp
93
+ marcel (1.0.2)
94
+ method_source (1.0.0)
95
+ mini_mime (1.1.2)
96
+ mini_portile2 (2.8.2)
97
+ minitest (5.18.0)
98
+ net-imap (0.3.4)
99
+ date
100
+ net-protocol
101
+ net-pop (0.1.2)
102
+ net-protocol
103
+ net-protocol (0.2.1)
104
+ timeout
105
+ net-smtp (0.3.3)
106
+ net-protocol
107
+ nio4r (2.5.9)
108
+ nokogiri (1.14.3)
109
+ mini_portile2 (~> 2.8.0)
110
+ racc (~> 1.4)
111
+ racc (1.6.2)
112
+ rack (2.2.7)
113
+ rack-test (2.1.0)
114
+ rack (>= 1.3)
115
+ rails (7.0.4.3)
116
+ actioncable (= 7.0.4.3)
117
+ actionmailbox (= 7.0.4.3)
118
+ actionmailer (= 7.0.4.3)
119
+ actionpack (= 7.0.4.3)
120
+ actiontext (= 7.0.4.3)
121
+ actionview (= 7.0.4.3)
122
+ activejob (= 7.0.4.3)
123
+ activemodel (= 7.0.4.3)
124
+ activerecord (= 7.0.4.3)
125
+ activestorage (= 7.0.4.3)
126
+ activesupport (= 7.0.4.3)
127
+ bundler (>= 1.15.0)
128
+ railties (= 7.0.4.3)
129
+ rails-dom-testing (2.0.3)
130
+ activesupport (>= 4.2.0)
131
+ nokogiri (>= 1.6)
132
+ rails-html-sanitizer (1.5.0)
133
+ loofah (~> 2.19, >= 2.19.1)
134
+ railties (7.0.4.3)
135
+ actionpack (= 7.0.4.3)
136
+ activesupport (= 7.0.4.3)
137
+ method_source
138
+ rake (>= 12.2)
139
+ thor (~> 1.0)
140
+ zeitwerk (~> 2.5)
141
+ rake (13.0.6)
142
+ rspec (3.12.0)
143
+ rspec-core (~> 3.12.0)
144
+ rspec-expectations (~> 3.12.0)
145
+ rspec-mocks (~> 3.12.0)
146
+ rspec-core (3.12.2)
147
+ rspec-support (~> 3.12.0)
148
+ rspec-expectations (3.12.3)
149
+ diff-lcs (>= 1.2.0, < 2.0)
150
+ rspec-support (~> 3.12.0)
151
+ rspec-mocks (3.12.5)
152
+ diff-lcs (>= 1.2.0, < 2.0)
153
+ rspec-support (~> 3.12.0)
154
+ rspec-support (3.12.0)
155
+ thor (1.2.1)
156
+ timeout (0.3.2)
157
+ tzinfo (2.0.6)
158
+ concurrent-ruby (~> 1.0)
159
+ websocket-driver (0.7.5)
160
+ websocket-extensions (>= 0.1.0)
161
+ websocket-extensions (0.1.5)
162
+ zeitwerk (2.6.8)
163
+
164
+ PLATFORMS
165
+ ruby
166
+
167
+ DEPENDENCIES
168
+ rails-brotli-cache!
169
+ rspec
170
+
171
+ BUNDLED WITH
172
+ 2.1.4
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2023 pawurb
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # Rails Brotli Cache
2
+
3
+ WIP
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task default: :spec
@@ -0,0 +1,5 @@
1
+ #encoding: UTF-8
2
+ module RailsBrotliCache
3
+ class Main
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ module RailsBrotliCache
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,5 @@
1
+ require 'rails-brotli-cache/main'
2
+ require 'rails-brotli-cache/version'
3
+
4
+ module RailsBrotliCache
5
+ end
@@ -0,0 +1,20 @@
1
+ # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'rails-brotli-cache/version'
5
+
6
+ Gem::Specification.new do |gem|
7
+ gem.name = "rails-brotli-cache"
8
+ gem.version = RailsBrotliCache::VERSION
9
+ gem.authors = ["pawurb"]
10
+ gem.email = ["contact@pawelurbanek.com"]
11
+ gem.summary = %q{ Rails cache using Brotli compression algorithm }
12
+ gem.description = %q{ rails-brotli-cache allows to reduce storage needed for Rails cache by using Brotli compression which can produce outputs smaller by ~20% }
13
+ gem.homepage = "https://github.com/pawurb/rails-brotli-cache"
14
+ gem.files = `git ls-files`.split("\n")
15
+ gem.test_files = gem.files.grep(%r{^(spec)/})
16
+ gem.require_paths = ["lib"]
17
+ gem.license = "MIT"
18
+ gem.add_dependency "rails"
19
+ gem.add_development_dependency "rspec"
20
+ end
@@ -0,0 +1,10 @@
1
+ #encoding: UTF-8
2
+ require 'spec_helper'
3
+
4
+ describe RailsBrotliCache::Main do
5
+ describe "it" do
6
+ it "works" do
7
+ expect(true).to be true
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,7 @@
1
+ require 'rubygems'
2
+ require 'bundler/setup'
3
+ require_relative '../lib/rails-brotli-cache'
4
+
5
+ RSpec.configure do |config|
6
+ end
7
+
metadata ADDED
@@ -0,0 +1,86 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails-brotli-cache
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - pawurb
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-05-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: " rails-brotli-cache allows to reduce storage needed for Rails cache
42
+ by using Brotli compression which can produce outputs smaller by ~20% "
43
+ email:
44
+ - contact@pawelurbanek.com
45
+ executables: []
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - ".gitignore"
50
+ - Gemfile
51
+ - Gemfile.lock
52
+ - LICENSE.txt
53
+ - README.md
54
+ - Rakefile
55
+ - lib/rails-brotli-cache.rb
56
+ - lib/rails-brotli-cache/main.rb
57
+ - lib/rails-brotli-cache/version.rb
58
+ - rails-brotli-cache.gemspec
59
+ - spec/rails-brotli-cache/main_spec.rb
60
+ - spec/spec_helper.rb
61
+ homepage: https://github.com/pawurb/rails-brotli-cache
62
+ licenses:
63
+ - MIT
64
+ metadata: {}
65
+ post_install_message:
66
+ rdoc_options: []
67
+ require_paths:
68
+ - lib
69
+ required_ruby_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ required_rubygems_version: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
79
+ requirements: []
80
+ rubygems_version: 3.1.6
81
+ signing_key:
82
+ specification_version: 4
83
+ summary: Rails cache using Brotli compression algorithm
84
+ test_files:
85
+ - spec/rails-brotli-cache/main_spec.rb
86
+ - spec/spec_helper.rb