administrate-field-image 1.1.0 → 1.2.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: 7542731792022d74dfe88242061504d125059a44
4
- data.tar.gz: 8e966de59a67b2a16a165b44a149a7549e8366b5
2
+ SHA256:
3
+ metadata.gz: 22d50e30ce09fa1d8de5adb7cdfb0da08cf5ee09d3ab14e7ce2ff946bfa0ce62
4
+ data.tar.gz: 40d83b517d0d006d9fb0d579a4416fdb4398d49e920932ade9bbbcf501eb1a2a
5
5
  SHA512:
6
- metadata.gz: 848f486fa3db2ba5ae71da54cd74d9ab52ddd86d041a7a9eb8a86b302ecfc06fc30aa967628ebec6e549c32003189b422cff97e6d5bb11e60ab7f11f126a762c
7
- data.tar.gz: f41b5ed8c7771b9f3cbc317865a7e6969a8345b0b1c9a2ab5d3fa5ce9a476e7ab8c1445a3490470d4f9de58be55b0b726ab639be641370cb0f95c970667858d2
6
+ metadata.gz: 66eb1e098eea69927db230c3537ddb84487fecfebfa89bbc19b9370176c93406249845f93a2eaf497ca10cd9ae21a46e3f5ca19b7388fc77505f5836ada6b837
7
+ data.tar.gz: 5b324a632ce314f2c8adaac4cd3d529b8ec66b06c419085dbcaac6b534c2ca5b488edd0265852ce8c7dced93defcdd3843095a1212cb30470a4c6bc84b9a7946
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: CI
3
+ on: [push]
4
+
5
+ jobs:
6
+ test:
7
+ runs-on: ubuntu-latest
8
+
9
+ steps:
10
+ - uses: actions/checkout@v2
11
+ - name: Set up Ruby
12
+ uses: ruby/setup-ruby@v1
13
+ - name: Install dependencies
14
+ run: bundle install
15
+ - name: Run tests
16
+ run: bundle exec rspec
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-3.0.2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.2.0 (2022-07-11)
4
+
5
+ * Fix #index preview crash on when no image attached ([#23])
6
+ * Use file_field instead of text_field in the form ([#22]]
7
+ * Setup GitHub Actions for CI ([#21])
8
+
9
+ [#21]: https://github.com/thoughtbot/administrate-field-image/pull/21
10
+ [#22]: https://github.com/thoughtbot/administrate-field-image/pull/22
11
+ [#23]: https://github.com/thoughtbot/administrate-field-image/pull/23
12
+
3
13
  ## 1.1.0 (2017-03-24)
4
14
 
5
15
  * Don't crash if image is nil/blank ([#9][])
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "administrate-field-image"
5
- gem.version = "1.1.0"
5
+ gem.version = "1.2.0"
6
6
  gem.authors = ["Grayson Wright", "Nick Charlton"]
7
7
  gem.email = ["wright.grayson@gmail.com", "nick@nickcharlton.net"]
8
8
  gem.homepage = "https://github.com/graysonwright/administrate-field-image"
@@ -19,5 +19,5 @@ By default, the input is a text field for the image's URL.
19
19
  <%= f.label field.attribute %>
20
20
  </div>
21
21
  <div class="field-unit__field">
22
- <%= f.text_field field.attribute %>
22
+ <%= f.file_field field.attribute %>
23
23
  </div>
@@ -15,4 +15,4 @@ By default, the attribute is rendered as an image tag.
15
15
  [1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/Image
16
16
  %>
17
17
 
18
- <%= image_tag field.data %>
18
+ <%= image_tag field.data if field.data.present? %>
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: administrate-field-image
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grayson Wright
8
8
  - Nick Charlton
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-03-24 00:00:00.000000000 Z
12
+ date: 2022-07-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: administrate
@@ -47,7 +47,9 @@ executables: []
47
47
  extensions: []
48
48
  extra_rdoc_files: []
49
49
  files:
50
+ - ".github/workflows/main.yml"
50
51
  - ".gitignore"
52
+ - ".ruby-version"
51
53
  - CHANGELOG.md
52
54
  - Gemfile
53
55
  - LICENSE
@@ -63,7 +65,7 @@ homepage: https://github.com/graysonwright/administrate-field-image
63
65
  licenses:
64
66
  - MIT
65
67
  metadata: {}
66
- post_install_message:
68
+ post_install_message:
67
69
  rdoc_options: []
68
70
  require_paths:
69
71
  - lib
@@ -78,9 +80,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
80
  - !ruby/object:Gem::Version
79
81
  version: '0'
80
82
  requirements: []
81
- rubyforge_project:
82
- rubygems_version: 2.6.8
83
- signing_key:
83
+ rubygems_version: 3.2.22
84
+ signing_key:
84
85
  specification_version: 4
85
86
  summary: Official Image field plugin for Administrate
86
87
  test_files: