godmin-activestorage 1.0.0

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: 70a61edd680e3b1841e05ef45e8976a3e05107668dee21b61ade5eb020bf1134
4
+ data.tar.gz: 4938d8e80d3d3fda1897ea0a014c6b54e4d8cb7b519c3f047b730985f7115867
5
+ SHA512:
6
+ metadata.gz: 3623e40438bebcffc464d5b363c215fc45c34fdde19b0fe5dcd6a3aaf40b2d48b1583d034755eeeb324af1c2fee2c074b0cb10a61df9ced0b47afb672368d101
7
+ data.tar.gz: 1c2639d65ecb2938ad496db8a659373fedf48308cec06234751ad960dee35116d8ececb4b5cdb18cde069aabf62b051c69512c9217138232d9870750502aeaaa
data/.gitignore ADDED
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ Gemfile.lock
10
+ /test/dummy/tmp/*
11
+ /test/dummy/storage/*
12
+ /test/dummy/log/*
data/.rubocop.yml ADDED
@@ -0,0 +1,17 @@
1
+ Rails:
2
+ Enabled: true
3
+
4
+ Documentation:
5
+ Enabled: false
6
+
7
+ Metrics/LineLength:
8
+ Max: 120
9
+
10
+ Metrics/ClassLength:
11
+ Max: 300
12
+
13
+ Metrics/MethodLength:
14
+ Max: 25
15
+
16
+ Style/StringLiterals:
17
+ EnforcedStyle: double_quotes
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.6.2
7
+ before_install: gem install bundler -v 2.0.2
@@ -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 johan.halse@varvet.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 ADDED
@@ -0,0 +1,10 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "godmin", git: "https://github.com/varvet/godmin"
4
+
5
+ # Specify your gem's dependencies in godmin-activestorage.gemspec
6
+ gemspec
7
+
8
+ # The dummy app loads whatever is specified in this gemfile, therefore
9
+ # we add the admin engine used by the dummy app here
10
+ gem "admin", path: "test/dummy/admin", group: %i[test development]
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Johan Halse
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,70 @@
1
+ # Godmin Activestorage
2
+
3
+ [![Gem Version](http://img.shields.io/gem/v/godmin-activestorage.svg)](https://rubygems.org/gems/godmin-activestorage)
4
+
5
+ Godmin Activestorage is a file upload component for [Godmin](https://github.com/varvet/godmin) that uses [Active Storage](https://edgeguides.rubyonrails.org/active_storage_overview.html) for uploads.
6
+
7
+ ## Installation
8
+
9
+ Add the gem to the application's `Gemfile`:
10
+
11
+ ```ruby
12
+ gem "godmin-activestorage"
13
+ ```
14
+
15
+ Or to the admin engine's `gemspec`:
16
+
17
+ ```ruby
18
+ s.add_dependency "godmin-activestorage", "~> x.x.x"
19
+ ```
20
+
21
+ Require the gem's stylesheet and javascript:
22
+
23
+ ```css
24
+ *= require godmin
25
+ *= require godmin-activestorage
26
+ ```
27
+
28
+ ```javascript
29
+ //= require godmin
30
+ //= require godmin-activestorage
31
+ ```
32
+
33
+ ## Usage
34
+
35
+ See the [Active Storage](https://edgeguides.rubyonrails.org/active_storage_overview.html) documentation for info on how to configure storage location, set up your model etc. Once that is done, require `godmin-activestorage` in your application.js and application.css.
36
+
37
+ Then, simply use the `uploader` in your form like so:
38
+
39
+ ```erb
40
+ <%= form_for(@resource) do |f| %>
41
+ <%= f.input_field :title %>
42
+ <%= f.text_field :body %>
43
+
44
+ <%= f.uploader :attachment, preview: true, remove: false %>
45
+ <% end %>
46
+ ```
47
+
48
+ The `preview` option should only be used for image attachments.
49
+
50
+ By setting `remove: false` the uploader's remove image action is hidden.
51
+
52
+ ## (Lack of) Direct uploads
53
+
54
+ This gem is supposed to be a drop-in replacement for [godmin-uploads](https://github.com/varvet/godmin-uploads) which uses [refile](https://github.com/refile/refile). But unlike that gem, godmin-activestorage does not yet support direct uploads. Image files can be previewed but the actual upload won't happen until the form is submitted. There's great support for direct uploads inside Active Storage, we just haven't been able to make them work within the Godmin engine yet.
55
+
56
+ ## Contributing
57
+
58
+ Bug reports and pull requests are welcome on GitHub at https://github.com/varvet/godmin-activestorage. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
59
+
60
+ ## License
61
+
62
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
63
+
64
+ ## Code of Conduct
65
+
66
+ Everyone interacting in the Godmin::Activestorage project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/varvet/godmin-activestorage/blob/master/CODE_OF_CONDUCT.md).
67
+
68
+ ## Contributors
69
+
70
+ https://github.com/varvet/godmin-activestorage/graphs/contributors
data/Rakefile ADDED
@@ -0,0 +1,27 @@
1
+ begin
2
+ require 'bundler/setup'
3
+ rescue LoadError
4
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
+ end
6
+
7
+ require 'rdoc/task'
8
+
9
+ RDoc::Task.new(:rdoc) do |rdoc|
10
+ rdoc.rdoc_dir = 'rdoc'
11
+ rdoc.title = 'Godmin::Activestorage'
12
+ rdoc.options << '--line-numbers'
13
+ rdoc.rdoc_files.include('README.md')
14
+ rdoc.rdoc_files.include('lib/**/*.rb')
15
+ end
16
+
17
+ require 'bundler/gem_tasks'
18
+
19
+ require 'rake/testtask'
20
+
21
+ Rake::TestTask.new(:test) do |t|
22
+ t.libs << 'test'
23
+ t.pattern = 'test/**/*_test.rb'
24
+ t.verbose = false
25
+ end
26
+
27
+ task default: :test
@@ -0,0 +1,19 @@
1
+ window.onload = function() {
2
+ function readURL(input, $form) {
3
+ if (input.files && input.files[0]) {
4
+ var reader = new FileReader();
5
+
6
+ reader.onload = function(e) {
7
+ $form
8
+ .find(".js-godmin-activestorage-preview")
9
+ .attr("src", e.target.result);
10
+ };
11
+
12
+ reader.readAsDataURL(input.files[0]);
13
+ }
14
+ }
15
+
16
+ $(".js-godmin-activestorage-field").change(function() {
17
+ readURL(this, $(this).parents("form"));
18
+ });
19
+ };
@@ -0,0 +1,46 @@
1
+ .godmin-activestorage__image {
2
+ display: block;
3
+ margin-bottom: 1em;
4
+ max-height: 100%;
5
+ max-width: 100%;
6
+ min-height: 150px;
7
+ min-width: 150px;
8
+ }
9
+
10
+ .direct-upload {
11
+ display: inline-block;
12
+ position: relative;
13
+ padding: 2px 4px;
14
+ margin: 0 3px 3px 0;
15
+ border: 1px solid rgba(0, 0, 0, 0.3);
16
+ border-radius: 3px;
17
+ font-size: 11px;
18
+ line-height: 13px;
19
+ }
20
+
21
+ .direct-upload--pending {
22
+ opacity: 0.6;
23
+ }
24
+
25
+ .direct-upload__progress {
26
+ position: absolute;
27
+ top: 0;
28
+ left: 0;
29
+ bottom: 0;
30
+ opacity: 0.2;
31
+ background: #0076ff;
32
+ transition: width 120ms ease-out, opacity 60ms 60ms ease-in;
33
+ transform: translate3d(0, 0, 0);
34
+ }
35
+
36
+ .direct-upload--complete .direct-upload__progress {
37
+ opacity: 0.4;
38
+ }
39
+
40
+ .direct-upload--error {
41
+ border-color: red;
42
+ }
43
+
44
+ input[type="file"][data-direct-upload-url][disabled] {
45
+ display: none;
46
+ }
@@ -0,0 +1,6 @@
1
+ <div class="godmin-activestorage js-godmin-activestorage">
2
+ <% if preview && f.object.send(attachment).attached? %>
3
+ <%= image_tag main_app.url_for(f.object.send(attachment).variant(resize_to_limit: [600, 600])), class: "godmin-activestorage__image js-godmin-activestorage-preview" %>
4
+ <% end %>
5
+ <%= f.file_field attachment, class: "js-godmin-activestorage-field" %>
6
+ </div>
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "godmin/activestorage"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path("lib", __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require "godmin/activestorage/version"
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = "godmin-activestorage"
9
+ spec.version = Godmin::Activestorage::VERSION
10
+ spec.authors = ["Johan Halse"]
11
+ spec.email = ["johan.halse@varvet.com"]
12
+
13
+ spec.summary = "A Godmin plugin for Active Storage instead of Refile"
14
+ spec.description = "Handles uploads for you, using your app's Active Storage configuration."
15
+ spec.homepage = "https://github.com/varvet/godmin-activestorage"
16
+ spec.license = "MIT"
17
+
18
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
19
+
20
+ spec.metadata["homepage_uri"] = spec.homepage
21
+ spec.metadata["source_code_uri"] = "https://github.com/varvet/godmin-activestorage"
22
+ spec.metadata["changelog_uri"] = "https://github.com/varvet/godmin-activestorage/CHANGELOG.md"
23
+
24
+ # Specify which files should be added to the gem when it is released.
25
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
26
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
27
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
28
+ end
29
+ spec.bindir = "exe"
30
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
+ spec.require_paths = ["lib"]
32
+
33
+ spec.add_dependency "activestorage", ">= 5.2.0", "< 7.0.0"
34
+ spec.add_dependency "godmin", ">= 2.0.0", "<= 3.0.0"
35
+ spec.add_dependency "image_processing", "1.9.3"
36
+ spec.add_dependency "rails", ">= 5.2.0", "< 7.0.0"
37
+
38
+ spec.add_development_dependency "bundler", ">= 1.7", "< 3.0.0"
39
+ spec.add_development_dependency "byebug", "11.0.1"
40
+ spec.add_development_dependency "capybara", ">= 3.0.0", "<= 4.0.0"
41
+ spec.add_development_dependency "mini_magick", ">= 4.9.0", "<= 5.0.0"
42
+ spec.add_development_dependency "minitest", "5.12.2"
43
+ spec.add_development_dependency "puma", "4.2.0"
44
+ spec.add_development_dependency "rake", ">= 10.0.0", "<= 14.0.0"
45
+ spec.add_development_dependency "sqlite3", ">= 1.4.0", "<= 2.0.0"
46
+ spec.add_development_dependency "webdrivers", ">= 4.0.0", "<= 5.0.0"
47
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "godmin/activestorage/version"
4
+ require "godmin/activestorage/engine"
5
+ require "godmin/activestorage/helper"
6
+
7
+ module Godmin
8
+ module Activestorage
9
+ class Error < StandardError; end
10
+ end
11
+ end
@@ -0,0 +1,6 @@
1
+ module Godmin
2
+ module ActiveStorage
3
+ class Engine < ::Rails::Engine
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Godmin
4
+ module Activestorage
5
+ module Helper
6
+ def uploader(attachment, preview: false, remove: true)
7
+ @template.render partial: "godmin/activestorage/uploader", locals: {
8
+ f: self, attachment: attachment, preview: preview, remove: remove
9
+ }
10
+ end
11
+ end
12
+ end
13
+
14
+ FormBuilders::FormBuilder.send(:include, Activestorage::Helper)
15
+ end
@@ -0,0 +1,5 @@
1
+ module Godmin
2
+ module Activestorage
3
+ VERSION = "1.0.0"
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,301 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: godmin-activestorage
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Johan Halse
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-10-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activestorage
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 5.2.0
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 7.0.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 5.2.0
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: 7.0.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: godmin
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: 2.0.0
40
+ - - "<="
41
+ - !ruby/object:Gem::Version
42
+ version: 3.0.0
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: 2.0.0
50
+ - - "<="
51
+ - !ruby/object:Gem::Version
52
+ version: 3.0.0
53
+ - !ruby/object:Gem::Dependency
54
+ name: image_processing
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - '='
58
+ - !ruby/object:Gem::Version
59
+ version: 1.9.3
60
+ type: :runtime
61
+ prerelease: false
62
+ version_requirements: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - '='
65
+ - !ruby/object:Gem::Version
66
+ version: 1.9.3
67
+ - !ruby/object:Gem::Dependency
68
+ name: rails
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: 5.2.0
74
+ - - "<"
75
+ - !ruby/object:Gem::Version
76
+ version: 7.0.0
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: 5.2.0
84
+ - - "<"
85
+ - !ruby/object:Gem::Version
86
+ version: 7.0.0
87
+ - !ruby/object:Gem::Dependency
88
+ name: bundler
89
+ requirement: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: '1.7'
94
+ - - "<"
95
+ - !ruby/object:Gem::Version
96
+ version: 3.0.0
97
+ type: :development
98
+ prerelease: false
99
+ version_requirements: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '1.7'
104
+ - - "<"
105
+ - !ruby/object:Gem::Version
106
+ version: 3.0.0
107
+ - !ruby/object:Gem::Dependency
108
+ name: byebug
109
+ requirement: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - '='
112
+ - !ruby/object:Gem::Version
113
+ version: 11.0.1
114
+ type: :development
115
+ prerelease: false
116
+ version_requirements: !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - - '='
119
+ - !ruby/object:Gem::Version
120
+ version: 11.0.1
121
+ - !ruby/object:Gem::Dependency
122
+ name: capybara
123
+ requirement: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - ">="
126
+ - !ruby/object:Gem::Version
127
+ version: 3.0.0
128
+ - - "<="
129
+ - !ruby/object:Gem::Version
130
+ version: 4.0.0
131
+ type: :development
132
+ prerelease: false
133
+ version_requirements: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ version: 3.0.0
138
+ - - "<="
139
+ - !ruby/object:Gem::Version
140
+ version: 4.0.0
141
+ - !ruby/object:Gem::Dependency
142
+ name: mini_magick
143
+ requirement: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - ">="
146
+ - !ruby/object:Gem::Version
147
+ version: 4.9.0
148
+ - - "<="
149
+ - !ruby/object:Gem::Version
150
+ version: 5.0.0
151
+ type: :development
152
+ prerelease: false
153
+ version_requirements: !ruby/object:Gem::Requirement
154
+ requirements:
155
+ - - ">="
156
+ - !ruby/object:Gem::Version
157
+ version: 4.9.0
158
+ - - "<="
159
+ - !ruby/object:Gem::Version
160
+ version: 5.0.0
161
+ - !ruby/object:Gem::Dependency
162
+ name: minitest
163
+ requirement: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - '='
166
+ - !ruby/object:Gem::Version
167
+ version: 5.12.2
168
+ type: :development
169
+ prerelease: false
170
+ version_requirements: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - '='
173
+ - !ruby/object:Gem::Version
174
+ version: 5.12.2
175
+ - !ruby/object:Gem::Dependency
176
+ name: puma
177
+ requirement: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - '='
180
+ - !ruby/object:Gem::Version
181
+ version: 4.2.0
182
+ type: :development
183
+ prerelease: false
184
+ version_requirements: !ruby/object:Gem::Requirement
185
+ requirements:
186
+ - - '='
187
+ - !ruby/object:Gem::Version
188
+ version: 4.2.0
189
+ - !ruby/object:Gem::Dependency
190
+ name: rake
191
+ requirement: !ruby/object:Gem::Requirement
192
+ requirements:
193
+ - - ">="
194
+ - !ruby/object:Gem::Version
195
+ version: 10.0.0
196
+ - - "<="
197
+ - !ruby/object:Gem::Version
198
+ version: 14.0.0
199
+ type: :development
200
+ prerelease: false
201
+ version_requirements: !ruby/object:Gem::Requirement
202
+ requirements:
203
+ - - ">="
204
+ - !ruby/object:Gem::Version
205
+ version: 10.0.0
206
+ - - "<="
207
+ - !ruby/object:Gem::Version
208
+ version: 14.0.0
209
+ - !ruby/object:Gem::Dependency
210
+ name: sqlite3
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: 1.4.0
216
+ - - "<="
217
+ - !ruby/object:Gem::Version
218
+ version: 2.0.0
219
+ type: :development
220
+ prerelease: false
221
+ version_requirements: !ruby/object:Gem::Requirement
222
+ requirements:
223
+ - - ">="
224
+ - !ruby/object:Gem::Version
225
+ version: 1.4.0
226
+ - - "<="
227
+ - !ruby/object:Gem::Version
228
+ version: 2.0.0
229
+ - !ruby/object:Gem::Dependency
230
+ name: webdrivers
231
+ requirement: !ruby/object:Gem::Requirement
232
+ requirements:
233
+ - - ">="
234
+ - !ruby/object:Gem::Version
235
+ version: 4.0.0
236
+ - - "<="
237
+ - !ruby/object:Gem::Version
238
+ version: 5.0.0
239
+ type: :development
240
+ prerelease: false
241
+ version_requirements: !ruby/object:Gem::Requirement
242
+ requirements:
243
+ - - ">="
244
+ - !ruby/object:Gem::Version
245
+ version: 4.0.0
246
+ - - "<="
247
+ - !ruby/object:Gem::Version
248
+ version: 5.0.0
249
+ description: Handles uploads for you, using your app's Active Storage configuration.
250
+ email:
251
+ - johan.halse@varvet.com
252
+ executables: []
253
+ extensions: []
254
+ extra_rdoc_files: []
255
+ files:
256
+ - ".gitignore"
257
+ - ".rubocop.yml"
258
+ - ".travis.yml"
259
+ - CODE_OF_CONDUCT.md
260
+ - Gemfile
261
+ - LICENSE.txt
262
+ - README.md
263
+ - Rakefile
264
+ - app/assets/javascripts/godmin-activestorage/index.js
265
+ - app/assets/stylesheets/godmin-activestorage.css.scss
266
+ - app/views/godmin/activestorage/_uploader.html.erb
267
+ - bin/console
268
+ - bin/setup
269
+ - godmin-activestorage.gemspec
270
+ - lib/godmin/activestorage.rb
271
+ - lib/godmin/activestorage/engine.rb
272
+ - lib/godmin/activestorage/helper.rb
273
+ - lib/godmin/activestorage/version.rb
274
+ homepage: https://github.com/varvet/godmin-activestorage
275
+ licenses:
276
+ - MIT
277
+ metadata:
278
+ allowed_push_host: https://rubygems.org
279
+ homepage_uri: https://github.com/varvet/godmin-activestorage
280
+ source_code_uri: https://github.com/varvet/godmin-activestorage
281
+ changelog_uri: https://github.com/varvet/godmin-activestorage/CHANGELOG.md
282
+ post_install_message:
283
+ rdoc_options: []
284
+ require_paths:
285
+ - lib
286
+ required_ruby_version: !ruby/object:Gem::Requirement
287
+ requirements:
288
+ - - ">="
289
+ - !ruby/object:Gem::Version
290
+ version: '0'
291
+ required_rubygems_version: !ruby/object:Gem::Requirement
292
+ requirements:
293
+ - - ">="
294
+ - !ruby/object:Gem::Version
295
+ version: '0'
296
+ requirements: []
297
+ rubygems_version: 3.0.3
298
+ signing_key:
299
+ specification_version: 4
300
+ summary: A Godmin plugin for Active Storage instead of Refile
301
+ test_files: []