dog_biscuits 0.5.4 → 0.5.5

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: f17983ec8770f6c7080416aedefa165ee70018d94f0457a1d857d814307e21ce
4
- data.tar.gz: 72122ac2dd4dfe006e9fc1c9db199d73db6ff57281649d2be48cb4529455fbcc
3
+ metadata.gz: '0509c8a392aedb1d7f6d239fde0188a315e6ec74c8dcb3f3fbfe6b05c5ba38b5'
4
+ data.tar.gz: 33ebc3f71aa281cd9b6e0f8a79cadce50585c99217f0503703dd6bf9fc8e9709
5
5
  SHA512:
6
- metadata.gz: 71b28ea032ac1e0385818489039c784e00415b2021cb36db938eb98e26252fdd57c70ab82c06f32894cb413cfde88e482696e1b13f8d6b6c6e75d97c8ced90be
7
- data.tar.gz: a65be3538d0fde51b4ccff147ed9c21ea78e036c5068e06b2fbe9b054ceaea3fc9428fa30c66024a08fe010f5a8fd125891745930fd199ebc81509fab88595b2
6
+ metadata.gz: 1ad74c758a037d24a6976eb5fd06e556e4465f88e35dd117fd58434b19da40799cce6eea40d880f3496c81d74ccbe10dde926a4cccb50a3998c50d863ce23c8a
7
+ data.tar.gz: 482b542e04c1dc9d1b73b06f8f4eeb910c939212d6abdc3be4cf2db5f551846e6d0242bc73cb0091a049c64b5143f211dea06f9e5780a0fedd3e91d8e6f33dfa
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DogBiscuits
4
- VERSION = '0.5.4'
4
+ VERSION = '0.5.5'
5
5
  end
@@ -61,11 +61,6 @@ This generator makes the following changes to your application:
61
61
  end
62
62
  end
63
63
 
64
- def create_form
65
- template('form.rb.erb', File.join('app/forms/hyrax', class_path, "#{file_name}_form.rb"))
66
- rescue StandardError
67
- end
68
-
69
64
  def create_presenter
70
65
  template('presenter.rb.erb', File.join('app/presenters/hyrax', class_path, "#{file_name}_presenter.rb"))
71
66
  end
@@ -90,6 +85,12 @@ This generator makes the following changes to your application:
90
85
  def imagify
91
86
  generate "dog_biscuits:imagify #{class_name}", '-f' if File.exist?('config/initializers/version.rb') && File.read('config/initializers/version.rb').include?('Hyku')
92
87
  end
88
+
89
+ # Sometimes we see a name error NameError because *_form.rb references the Model which hasn't yet been loaded
90
+ # rescue doesn't help, so run this last to ensure files are all in place before the error
91
+ def create_form
92
+ template('form.rb.erb', File.join('app/forms/hyrax', class_path, "#{file_name}_form.rb"))
93
+ end
93
94
 
94
95
  def display_readme
95
96
  readme 'README'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dog_biscuits
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julie Allinson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-18 00:00:00.000000000 Z
11
+ date: 2019-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hyrax