dog_biscuits 0.5.1 → 0.5.2
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf2975c48dd0558618b9701d7c581b953c5d8113
|
4
|
+
data.tar.gz: 64ac38bc281bca2999e04453e21fea84b022482c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0720cf503ee9e34fded096b69519c90d6c937f7d89f4508451ea8fb7548fbf6837e6372e58c4cd6a9f5d1f17bad0ad26bdac774c8a84750345a2f23b2c3d3b15
|
7
|
+
data.tar.gz: 5b232aba351277c072be16a5cd78e41c442fc2ca28925e4a4e6b2826ac93ed45a51102c84189093edf5fbf7333f4d7551cd27bfe552711164712ea016ce39d29
|
data/README.md
CHANGED
@@ -24,17 +24,13 @@ For use within [Hyrax 2](https://github.com/samvera/hyrax) applications.
|
|
24
24
|
Add this line to your application's Gemfile:
|
25
25
|
|
26
26
|
```ruby
|
27
|
-
gem 'dog_biscuits', :git => 'git://github.com/
|
27
|
+
gem 'dog_biscuits', :git => 'git://github.com/samvera-labs/dog_biscuits.git'
|
28
28
|
```
|
29
29
|
|
30
30
|
And then execute:
|
31
31
|
|
32
32
|
$ bundle install
|
33
33
|
|
34
|
-
Or install it yourself as:
|
35
|
-
|
36
|
-
$ gem install dog_biscuits
|
37
|
-
|
38
34
|
Run the generator
|
39
35
|
|
40
36
|
$ rails generate dog_biscuits:install
|
data/lib/dog_biscuits/version.rb
CHANGED
@@ -16,6 +16,10 @@ This generator makes the following changes to your application:
|
|
16
16
|
def banner
|
17
17
|
say_status("info", "Re-generating catalog_controller, locales, attribute_rows and schema_org", :blue)
|
18
18
|
end
|
19
|
+
|
20
|
+
def create_indexers
|
21
|
+
directory 'app/indexers', 'app/indexers'
|
22
|
+
end
|
19
23
|
|
20
24
|
def generate_works
|
21
25
|
DogBiscuits.config.selected_models.each do |model|
|
File without changes
|
@@ -63,16 +63,10 @@ This generator makes the following changes to your application:
|
|
63
63
|
|
64
64
|
def create_form
|
65
65
|
template('form.rb.erb', File.join('app/forms/hyrax', class_path, "#{file_name}_form.rb"))
|
66
|
-
rescue NameError
|
67
|
-
create_indexer
|
68
|
-
create_form
|
69
66
|
end
|
70
67
|
|
71
68
|
def create_presenter
|
72
69
|
template('presenter.rb.erb', File.join('app/presenters/hyrax', class_path, "#{file_name}_presenter.rb"))
|
73
|
-
rescue NameError
|
74
|
-
create_indexer
|
75
|
-
create_presenter
|
76
70
|
end
|
77
71
|
|
78
72
|
def create_actor
|
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
|
+
version: 0.5.2
|
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-01-
|
11
|
+
date: 2019-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hyrax
|
@@ -441,6 +441,7 @@ files:
|
|
441
441
|
- lib/generators/dog_biscuits/templates/_date_template.html.erb
|
442
442
|
- lib/generators/dog_biscuits/templates/app/controllers/catalog_controller.rb
|
443
443
|
- lib/generators/dog_biscuits/templates/app/helpers/dog_biscuits_helper.rb
|
444
|
+
- lib/generators/dog_biscuits/templates/app/indexers/.keep
|
444
445
|
- lib/generators/dog_biscuits/templates/app/renderers/package_ids_renderer.rb
|
445
446
|
- lib/generators/dog_biscuits/templates/app/renderers/packaged_by_ids_renderer.rb
|
446
447
|
- lib/generators/dog_biscuits/templates/app/renderers/publication_status_renderer.rb
|