trestle-active_storage 2.2.1 → 3.0.0

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: 2e351faed30c8315acb3e638156cc8084fea706599af9939cdd15621a004105d
4
- data.tar.gz: 47e0fd92dc1b9b7266703e7c07f221f7367930d26bdab4d284d16f573735e1e0
3
+ metadata.gz: cb04373f55898190ff541b714e60a76339a9973d6c685e0361d81372e3ac51f7
4
+ data.tar.gz: 7c21f06234ffa638875cf25053ab5cc4748a2b754ae7c26177dc989f279725b5
5
5
  SHA512:
6
- metadata.gz: dcf17540416899f11c90380469f1587c448d1bf82effecb32db4d5976b9356b229eaa7118479770feb21e0b24e34a73458d57629b764930f0976096ec623dd0c
7
- data.tar.gz: eb2cced2a99499076de4b3b008f8794ade3954e03fede92685da01d7cf64d4db1b35d9236e0a89488656746549929baf13c16ad8ce4abd1a15fcd57dc5f48b16
6
+ metadata.gz: 1f64a0a1b8b7f3c473fc52c0bc8750f7b30ae37781298963e00a66b9162422d6234eb09d3f5164b4349150854b8d622da4c2aaa770b25d1d7305e7d818844b5a
7
+ data.tar.gz: d6b98ed4b70d17116d477ba9bcb77ffc56de015918c3bf0de9acb4ddf843e56db6187999d25d591521c4dfabf32a30b323a534729c47c4d48ed0bcef641fb15d
data/README.md CHANGED
@@ -52,16 +52,21 @@ If you'd like to get up and running on Heroku, check out their [documentation on
52
52
 
53
53
  Thanks goes out to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
54
54
  <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
55
- <!-- prettier-ignore -->
55
+ <!-- prettier-ignore-start -->
56
+ <!-- markdownlint-disable -->
56
57
  <table>
57
58
  <tr>
58
- <td align="center"><a href="https://www.cityspotters.com"><img src="https://avatars1.githubusercontent.com/u/75705?v=4" width="100px;" alt="Richard Venneman"/><br /><sub><b>Richard Venneman</b></sub></a><br /><a href="#ideas-richardvenneman" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/richardvenneman/trestle-active_storage/commits?author=richardvenneman" title="Code">💻</a> <a href="https://github.com/richardvenneman/trestle-active_storage/commits?author=richardvenneman" title="Documentation">📖</a> <a href="#question-richardvenneman" title="Answering Questions">💬</a> <a href="#review-richardvenneman" title="Reviewed Pull Requests">👀</a></td>
59
- <td align="center"><a href="http://aboobacker.in"><img src="https://avatars1.githubusercontent.com/u/3112976?v=4" width="100px;" alt="Aboobacker MK"/><br /><sub><b>Aboobacker MK</b></sub></a><br /><a href="#ideas-tachyons" title="Ideas, Planning, & Feedback">🤔</a></td>
60
- <td align="center"><a href="http://euodeiovoce.com.br"><img src="https://avatars2.githubusercontent.com/u/1027961?v=4" width="100px;" alt="Rafael Porto"/><br /><sub><b>Rafael Porto</b></sub></a><br /><a href="https://github.com/richardvenneman/trestle-active_storage/commits?author=PunkMaldito" title="Code">💻</a></td>
61
- <td align="center"><a href="https://github.com/hoenth"><img src="https://avatars2.githubusercontent.com/u/62977?v=4" width="100px;" alt="Tom Hoen"/><br /><sub><b>Tom Hoen</b></sub></a><br /><a href="https://github.com/richardvenneman/trestle-active_storage/issues?q=author%3Ahoenth" title="Bug reports">🐛</a> <a href="https://github.com/richardvenneman/trestle-active_storage/commits?author=hoenth" title="Code">💻</a></td>
59
+ <td align="center"><a href="https://www.cityspotters.com"><img src="https://avatars1.githubusercontent.com/u/75705?v=4" width="100px;" alt=""/><br /><sub><b>Richard Venneman</b></sub></a><br /><a href="#ideas-richardvenneman" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/richardvenneman/trestle-active_storage/commits?author=richardvenneman" title="Code">💻</a> <a href="https://github.com/richardvenneman/trestle-active_storage/commits?author=richardvenneman" title="Documentation">📖</a> <a href="#question-richardvenneman" title="Answering Questions">💬</a> <a href="https://github.com/richardvenneman/trestle-active_storage/pulls?q=is%3Apr+reviewed-by%3Arichardvenneman" title="Reviewed Pull Requests">👀</a></td>
60
+ <td align="center"><a href="http://aboobacker.in"><img src="https://avatars1.githubusercontent.com/u/3112976?v=4" width="100px;" alt=""/><br /><sub><b>Aboobacker MK</b></sub></a><br /><a href="#ideas-tachyons" title="Ideas, Planning, & Feedback">🤔</a></td>
61
+ <td align="center"><a href="http://euodeiovoce.com.br"><img src="https://avatars2.githubusercontent.com/u/1027961?v=4" width="100px;" alt=""/><br /><sub><b>Rafael Porto</b></sub></a><br /><a href="https://github.com/richardvenneman/trestle-active_storage/commits?author=PunkMaldito" title="Code">💻</a></td>
62
+ <td align="center"><a href="https://github.com/hoenth"><img src="https://avatars2.githubusercontent.com/u/62977?v=4" width="100px;" alt=""/><br /><sub><b>Tom Hoen</b></sub></a><br /><a href="https://github.com/richardvenneman/trestle-active_storage/issues?q=author%3Ahoenth" title="Bug reports">🐛</a> <a href="https://github.com/richardvenneman/trestle-active_storage/commits?author=hoenth" title="Code">💻</a></td>
63
+ <td align="center"><a href="https://github.com/basharabdullah"><img src="https://avatars3.githubusercontent.com/u/167290?v=4" width="100px;" alt=""/><br /><sub><b>Bashar Abdullah</b></sub></a><br /><a href="https://github.com/richardvenneman/trestle-active_storage/issues?q=author%3Abasharabdullah" title="Bug reports">🐛</a></td>
64
+ <td align="center"><a href="https://github.com/McRipper"><img src="https://avatars2.githubusercontent.com/u/58031?v=4" width="100px;" alt=""/><br /><sub><b>Emanuele Barban</b></sub></a><br /><a href="https://github.com/richardvenneman/trestle-active_storage/commits?author=McRipper" title="Code">💻</a></td>
62
65
  </tr>
63
66
  </table>
64
67
 
68
+ <!-- markdownlint-enable -->
69
+ <!-- prettier-ignore-end -->
65
70
  <!-- ALL-CONTRIBUTORS-LIST:END -->
66
71
  This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification.
67
72
 
@@ -1,14 +1,15 @@
1
- require 'trestle/active_storage/version'
1
+ require_relative 'active_storage/version'
2
+
2
3
  require 'trestle'
3
4
 
4
5
  module Trestle
5
6
  module ActiveStorage
6
- extend ActiveSupport::Autoload
7
7
 
8
- autoload :Builder
9
- autoload :ControllerConcern
10
- autoload :Resource
8
+ require_relative "active_storage/builder"
9
+ require_relative "active_storage/resource"
10
+ require_relative "active_storage/controller_concern"
11
+
11
12
  end
12
13
  end
13
14
 
14
- require 'trestle/active_storage/engine' if defined?(Rails)
15
+ require_relative 'active_storage/engine' if defined?(Rails)
@@ -3,10 +3,13 @@ module Trestle
3
3
  class Engine < Rails::Engine
4
4
  config.assets.precompile << 'activestorage.js' << 'trestle/active_storage_fields.js'
5
5
 
6
+ config.to_prepare do
7
+ Trestle::ResourceController.send(:include, Trestle::ActiveStorage::ControllerConcern)
8
+ end
9
+
6
10
  initializer :extensions do
7
11
  Trestle::Resource.send(:include, Trestle::ActiveStorage::Resource)
8
12
  Trestle::Resource::Builder.send(:include, Trestle::ActiveStorage::Builder)
9
- Trestle::Resource::Controller.send(:include, Trestle::ActiveStorage::ControllerConcern)
10
13
  end
11
14
  end
12
15
  end
@@ -1,5 +1,5 @@
1
1
  module Trestle
2
2
  module ActiveStorage
3
- VERSION = '2.2.1'
3
+ VERSION = '3.0.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trestle-active_storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Venneman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-07 00:00:00.000000000 Z
11
+ date: 2020-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -36,14 +36,20 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '0.8'
39
+ version: 0.9.0
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 0.9.3
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: '0.8'
49
+ version: 0.9.0
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 0.9.3
47
53
  description: ActiveStorage integration plugin for the Trestle admin framework.
48
54
  email:
49
55
  - richardvenneman@me.com
@@ -85,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
91
  - !ruby/object:Gem::Version
86
92
  version: '0'
87
93
  requirements: []
88
- rubygems_version: 3.0.3
94
+ rubygems_version: 3.1.2
89
95
  signing_key:
90
96
  specification_version: 4
91
97
  summary: ActiveStorage integration plugin for the Trestle admin framework