administrate-field-hidden 0.0.3 → 0.1.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
- SHA1:
3
- metadata.gz: 60928784eecf164d131341612bf1d2576b56b4b2
4
- data.tar.gz: f66751cbb2a1bc7a24070a45ee4697169df56c00
2
+ SHA256:
3
+ metadata.gz: 10f05c86f6eb84e5842475e8761ae6337802d5779f5e0667cc4d9ed50a727aec
4
+ data.tar.gz: 135773c7d2f6262686c040c20fbabe56be432f11637a905f95df3ef6f9ded88b
5
5
  SHA512:
6
- metadata.gz: bfaf0321ede3d9d78a6842c39268e9a111e21a75b6314e224984f8b5090fce84e968fc78dc14a6654aa1326b6eb93d817e19c11ee4dfae7578b39749b65756fd
7
- data.tar.gz: f3681b8345a937b93c46850ae8357ef9f60bfc550ec0d14752de9287fb1790b256d4b57ce80f7ad1f466ed978b8e5f7ca311de6c6f03ff66e08504a3b507f626
6
+ metadata.gz: 9bace39964ec61f9e044a608b716fa4f80ec9d4efa8e1cdd7c9f340ca2198a86f625262ceeedb95f47bd4205c2a84b7a456ddf732d7098f9c15c6b6e29569b30
7
+ data.tar.gz: 8713aa6a2ef4f79e414f66a2301ce0fc43f404d28c5298d693e13854feb7f42d1e2a464f25d1c84585e89cd7d8f1bfd20e1cbe9a691b8873a68156ac3ed50ce0
data/.gitignore CHANGED
@@ -1 +1,4 @@
1
+ .prettierrc
2
+ .ruby-gemset
1
3
  *.gem
4
+ Gemfile.lock
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.7.5
data/.travis.yml ADDED
@@ -0,0 +1 @@
1
+ language: ruby
data/CHANGELOG.md CHANGED
@@ -1,14 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.1.0](https://github.com/zooppa/administrate-field-hidden/tree/v0.1.0) (2022-01-06)
4
+
5
+ [Full Changelog](https://github.com/zooppa/administrate-field-hidden/compare/v0.0.3...v0.1.0)
6
+
7
+ - Add support for Rails 7
8
+
3
9
  ## [v0.0.3](https://github.com/zooppa/administrate-field-hidden/tree/v0.0.3) (2017-04-03)
10
+
4
11
  [Full Changelog](https://github.com/zooppa/administrate-field-hidden/compare/v0.0.2...v0.0.3)
5
12
 
6
- * Bump up Administrate dependency
13
+ - Bump up Administrate dependency
7
14
 
8
15
  ## [v0.0.2](https://github.com/zooppa/administrate-field-hidden/tree/v0.0.2) (2017-03-20)
16
+
9
17
  [Full Changelog](https://github.com/zooppa/administrate-field-hidden/compare/v0.0.1...v0.0.2)
10
18
 
11
- * Bump up Administrate dependency
19
+ - Bump up Administrate dependency
12
20
 
13
21
  ## [v0.0.1](https://github.com/zooppa/administrate-field-hidden/tree/v0.0.1) (2016-12-07)
22
+
14
23
  First release
data/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
- The MIT License (MIT)
1
+ MIT License
2
2
 
3
- Copyright (c) 2015-2016 z.productions.
3
+ Copyright (c) 2018 Zooppa
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -9,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
9
  copies of the Software, and to permit persons to whom the Software is
10
10
  furnished to do so, subject to the following conditions:
11
11
 
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
14
 
15
15
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
16
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
17
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
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.
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -1,15 +1,26 @@
1
1
  # Administrate::Field::Hidden
2
2
 
3
+ [![Build Status](https://travis-ci.com/zooppa/administrate-field-hidden.svg?branch=master)](https://travis-ci.com/zooppa/administrate-field-hidden)
3
4
  [![Code Climate](https://codeclimate.com/github/zooppa/administrate-field-hidden/badges/gpa.svg)](https://codeclimate.com/github/zooppa/administrate-field-hidden)
4
5
 
5
6
  A plugin for hidden fields in [Administrate].
6
7
 
8
+ ---
9
+
10
+ ### IMPORTANT NOTICE
11
+
12
+ **This gem is not actively maintained anymore**.
13
+
14
+ If you’re interested in taking over and steward the project moving forward, please get in touch.
15
+
16
+ ---
17
+
7
18
  ## Usage
8
19
 
9
20
  Add it to your `Gemfile`:
10
21
 
11
22
  ```ruby
12
- gem 'administrate-field-hidden', '~> 0.0.3'
23
+ gem 'administrate-field-hidden', '~> 0.1.0'
13
24
  ```
14
25
 
15
26
  Run:
@@ -28,7 +39,9 @@ ATTRIBUTE_TYPES = {
28
39
 
29
40
  ## About
30
41
 
31
- Administrate::Field::Hidden is maintained by [z.productions].
42
+ Administrate::Field::Hidden is maintained by [Zooppa].
43
+
44
+ See also the list of [contributors](https://github.com/zooppa/administrate-field-hidden/contributors) who participated in this project.
32
45
 
33
- [Administrate]: https://github.com/thoughtbot/administrate
34
- [z.productions]: https://www.z.productions/
46
+ [administrate]: https://github.com/thoughtbot/administrate
47
+ [zooppa]: https://www.zooppa.com/
data/Rakefile ADDED
@@ -0,0 +1,4 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+ RSpec::Core::RakeTask.new(:spec)
4
+ task default: :spec
@@ -2,12 +2,12 @@ $:.push File.expand_path('../lib', __FILE__)
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'administrate-field-hidden'
5
- gem.version = '0.0.3'
6
- gem.authors = ['Michele Gerarduzzi']
7
- gem.email = ['michele.gerarduzzi@gmail.com']
5
+ gem.version = '0.1.0'
6
+ gem.authors = ['Zooppa']
7
+ gem.email = ['dev@zooppa.com']
8
8
  gem.homepage = 'https://github.com/zooppa/administrate-field-hidden'
9
- gem.summary = 'A plugin for hidden fields in Administrate'
10
- gem.description = gem.summary
9
+ gem.summary = 'Hidden fields plugin for Administrate'
10
+ gem.description = 'A plugin for hidden fields in Administrate'
11
11
  gem.license = 'MIT'
12
12
 
13
13
  gem.require_paths = ['lib']
@@ -15,5 +15,8 @@ Gem::Specification.new do |gem|
15
15
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
16
 
17
17
  gem.add_runtime_dependency 'administrate', '< 1.0.0'
18
- gem.add_runtime_dependency 'rails', '>= 4.2'
18
+ gem.add_runtime_dependency 'rails', '>= 4.2', '< 8'
19
+
20
+ gem.add_development_dependency 'rake', '~> 13.0'
21
+ gem.add_development_dependency 'rspec', '~> 3.8'
19
22
  end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+ describe Administrate::Field::Hidden do
3
+ subject { Administrate::Field::Hidden.new(:field, data, :show) }
4
+ describe '#to_partial_path' do
5
+ let(:data) { true }
6
+ it 'returns a partial based on the page being rendered' do
7
+ path = subject.to_partial_path
8
+ expect(path).to eq('/fields/hidden/show')
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,2 @@
1
+ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
+ require 'administrate/field/hidden'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: administrate-field-hidden
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
- - Michele Gerarduzzi
8
- autorequire:
7
+ - Zooppa
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-03 00:00:00.000000000 Z
11
+ date: 2022-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: administrate
@@ -31,6 +31,9 @@ dependencies:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '4.2'
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '8'
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
@@ -38,29 +41,65 @@ dependencies:
38
41
  - - ">="
39
42
  - !ruby/object:Gem::Version
40
43
  version: '4.2'
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '8'
47
+ - !ruby/object:Gem::Dependency
48
+ name: rake
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '13.0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '13.0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: rspec
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '3.8'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '3.8'
41
75
  description: A plugin for hidden fields in Administrate
42
76
  email:
43
- - michele.gerarduzzi@gmail.com
77
+ - dev@zooppa.com
44
78
  executables: []
45
79
  extensions: []
46
80
  extra_rdoc_files: []
47
81
  files:
48
82
  - ".gitignore"
83
+ - ".rspec"
84
+ - ".ruby-version"
85
+ - ".travis.yml"
49
86
  - CHANGELOG.md
50
87
  - Gemfile
51
- - Gemfile.lock
52
88
  - LICENSE.md
53
89
  - README.md
90
+ - Rakefile
54
91
  - administrate-field-hidden.gemspec
55
92
  - app/views/fields/hidden/_form.html.erb
56
93
  - app/views/fields/hidden/_index.html.erb
57
94
  - app/views/fields/hidden/_show.html.erb
58
95
  - lib/administrate/field/hidden.rb
96
+ - spec/lib/administrate/field/hidden_spec.rb
97
+ - spec/spec_helper.rb
59
98
  homepage: https://github.com/zooppa/administrate-field-hidden
60
99
  licenses:
61
100
  - MIT
62
101
  metadata: {}
63
- post_install_message:
102
+ post_install_message:
64
103
  rdoc_options: []
65
104
  require_paths:
66
105
  - lib
@@ -75,9 +114,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
114
  - !ruby/object:Gem::Version
76
115
  version: '0'
77
116
  requirements: []
78
- rubyforge_project:
79
- rubygems_version: 2.6.11
80
- signing_key:
117
+ rubygems_version: 3.1.6
118
+ signing_key:
81
119
  specification_version: 4
82
- summary: A plugin for hidden fields in Administrate
83
- test_files: []
120
+ summary: Hidden fields plugin for Administrate
121
+ test_files:
122
+ - spec/lib/administrate/field/hidden_spec.rb
123
+ - spec/spec_helper.rb
data/Gemfile.lock DELETED
@@ -1,159 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- administrate-field-hidden (0.0.3)
5
- administrate (< 1.0.0)
6
- rails (>= 4.2)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- actioncable (5.0.2)
12
- actionpack (= 5.0.2)
13
- nio4r (>= 1.2, < 3.0)
14
- websocket-driver (~> 0.6.1)
15
- actionmailer (5.0.2)
16
- actionpack (= 5.0.2)
17
- actionview (= 5.0.2)
18
- activejob (= 5.0.2)
19
- mail (~> 2.5, >= 2.5.4)
20
- rails-dom-testing (~> 2.0)
21
- actionpack (5.0.2)
22
- actionview (= 5.0.2)
23
- activesupport (= 5.0.2)
24
- rack (~> 2.0)
25
- rack-test (~> 0.6.3)
26
- rails-dom-testing (~> 2.0)
27
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
- actionview (5.0.2)
29
- activesupport (= 5.0.2)
30
- builder (~> 3.1)
31
- erubis (~> 2.7.0)
32
- rails-dom-testing (~> 2.0)
33
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
- activejob (5.0.2)
35
- activesupport (= 5.0.2)
36
- globalid (>= 0.3.6)
37
- activemodel (5.0.2)
38
- activesupport (= 5.0.2)
39
- activerecord (5.0.2)
40
- activemodel (= 5.0.2)
41
- activesupport (= 5.0.2)
42
- arel (~> 7.0)
43
- activesupport (5.0.2)
44
- concurrent-ruby (~> 1.0, >= 1.0.2)
45
- i18n (~> 0.7)
46
- minitest (~> 5.1)
47
- tzinfo (~> 1.1)
48
- administrate (0.4.0)
49
- autoprefixer-rails (~> 6.0)
50
- bourbon (~> 4.2)
51
- datetime_picker_rails (~> 0.0.7)
52
- jquery-rails (~> 4.0)
53
- kaminari (~> 0.16)
54
- momentjs-rails (~> 2.8)
55
- neat (~> 1.1)
56
- normalize-rails (~> 3.0)
57
- rails (>= 4.2, < 5.1)
58
- sass-rails (~> 5.0)
59
- selectize-rails (~> 0.6)
60
- arel (7.1.4)
61
- autoprefixer-rails (6.7.7)
62
- execjs
63
- bourbon (4.3.3)
64
- sass (~> 3.4)
65
- thor (~> 0.19)
66
- builder (3.2.3)
67
- concurrent-ruby (1.0.5)
68
- datetime_picker_rails (0.0.7)
69
- momentjs-rails (>= 2.8.1)
70
- erubis (2.7.0)
71
- execjs (2.7.0)
72
- globalid (0.3.7)
73
- activesupport (>= 4.1.0)
74
- i18n (0.8.1)
75
- jquery-rails (4.2.2)
76
- rails-dom-testing (>= 1, < 3)
77
- railties (>= 4.2.0)
78
- thor (>= 0.14, < 2.0)
79
- kaminari (0.17.0)
80
- actionpack (>= 3.0.0)
81
- activesupport (>= 3.0.0)
82
- loofah (2.0.3)
83
- nokogiri (>= 1.5.9)
84
- mail (2.6.4)
85
- mime-types (>= 1.16, < 4)
86
- method_source (0.8.2)
87
- mime-types (3.1)
88
- mime-types-data (~> 3.2015)
89
- mime-types-data (3.2016.0521)
90
- mini_portile2 (2.1.0)
91
- minitest (5.10.1)
92
- momentjs-rails (2.17.1)
93
- railties (>= 3.1)
94
- neat (1.8.0)
95
- sass (>= 3.3)
96
- thor (~> 0.19)
97
- nio4r (2.0.0)
98
- nokogiri (1.7.1)
99
- mini_portile2 (~> 2.1.0)
100
- normalize-rails (3.0.3)
101
- rack (2.0.1)
102
- rack-test (0.6.3)
103
- rack (>= 1.0)
104
- rails (5.0.2)
105
- actioncable (= 5.0.2)
106
- actionmailer (= 5.0.2)
107
- actionpack (= 5.0.2)
108
- actionview (= 5.0.2)
109
- activejob (= 5.0.2)
110
- activemodel (= 5.0.2)
111
- activerecord (= 5.0.2)
112
- activesupport (= 5.0.2)
113
- bundler (>= 1.3.0, < 2.0)
114
- railties (= 5.0.2)
115
- sprockets-rails (>= 2.0.0)
116
- rails-dom-testing (2.0.2)
117
- activesupport (>= 4.2.0, < 6.0)
118
- nokogiri (~> 1.6)
119
- rails-html-sanitizer (1.0.3)
120
- loofah (~> 2.0)
121
- railties (5.0.2)
122
- actionpack (= 5.0.2)
123
- activesupport (= 5.0.2)
124
- method_source
125
- rake (>= 0.8.7)
126
- thor (>= 0.18.1, < 2.0)
127
- rake (12.0.0)
128
- sass (3.4.23)
129
- sass-rails (5.0.6)
130
- railties (>= 4.0.0, < 6)
131
- sass (~> 3.1)
132
- sprockets (>= 2.8, < 4.0)
133
- sprockets-rails (>= 2.0, < 4.0)
134
- tilt (>= 1.1, < 3)
135
- selectize-rails (0.12.4)
136
- sprockets (3.7.1)
137
- concurrent-ruby (~> 1.0)
138
- rack (> 1, < 3)
139
- sprockets-rails (3.2.0)
140
- actionpack (>= 4.0)
141
- activesupport (>= 4.0)
142
- sprockets (>= 3.0.0)
143
- thor (0.19.4)
144
- thread_safe (0.3.6)
145
- tilt (2.0.7)
146
- tzinfo (1.2.2)
147
- thread_safe (~> 0.1)
148
- websocket-driver (0.6.5)
149
- websocket-extensions (>= 0.1.0)
150
- websocket-extensions (0.1.2)
151
-
152
- PLATFORMS
153
- ruby
154
-
155
- DEPENDENCIES
156
- administrate-field-hidden!
157
-
158
- BUNDLED WITH
159
- 1.14.6