geoblacklight_admin 0.0.1 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +27 -3
  3. data/Rakefile +30 -12
  4. data/app/assets/javascripts/geoblacklight_admin.js +1 -0
  5. data/app/assets/stylesheets/geoblacklight_admin/_core.scss +5 -0
  6. data/app/assets/stylesheets/geoblacklight_admin/modules/_chosen.scss +425 -0
  7. data/app/controllers/admin/admin_controller.rb +4 -2
  8. data/app/controllers/admin/advanced_search_controller.rb +123 -103
  9. data/app/controllers/admin/api_controller.rb +123 -108
  10. data/app/controllers/admin/bookmarks_controller.rb +4 -4
  11. data/app/controllers/admin/bulk_actions_controller.rb +9 -4
  12. data/app/controllers/admin/concerns/upload_util.rb +2 -0
  13. data/app/controllers/admin/document_accesses_controller.rb +10 -4
  14. data/app/controllers/admin/document_assets_controller.rb +14 -11
  15. data/app/controllers/admin/document_downloads_controller.rb +12 -10
  16. data/app/controllers/admin/documents_controller.rb +16 -8
  17. data/app/controllers/admin/elements_controller.rb +6 -5
  18. data/app/controllers/admin/form_elements_controller.rb +4 -4
  19. data/app/controllers/admin/ids_controller.rb +107 -87
  20. data/app/controllers/admin/import_documents_controller.rb +1 -1
  21. data/app/controllers/admin/imports_controller.rb +7 -3
  22. data/app/controllers/admin/mappings_controller.rb +6 -4
  23. data/app/controllers/admin/notifications_controller.rb +1 -1
  24. data/app/controllers/admin/search_controller.rb +1 -1
  25. data/app/controllers/admin/users_controller.rb +1 -1
  26. data/app/helpers/form_input_helper.rb +4 -4
  27. data/app/helpers/geoblacklight_admin_helper.rb +1 -1
  28. data/app/jobs/export_job.rb +2 -1
  29. data/app/models/admin/bookmark.rb +18 -0
  30. data/app/models/api_search_builder.rb +3 -1
  31. data/app/models/document/bbox_validator.rb +9 -5
  32. data/app/models/document/date_range_validator.rb +13 -10
  33. data/app/models/document/geom_validator.rb +4 -2
  34. data/app/models/document.rb +15 -7
  35. data/app/models/element.rb +9 -7
  36. data/app/models/form_control.rb +2 -0
  37. data/app/models/form_element.rb +2 -0
  38. data/app/models/form_feature.rb +2 -0
  39. data/app/models/form_group.rb +2 -0
  40. data/app/models/form_header.rb +2 -0
  41. data/app/models/geoblacklight_admin/schema.rb +5 -2
  42. data/app/models/geoblacklight_admin.rb +2 -0
  43. data/app/models/import/csv_duplicates_validator.rb +2 -1
  44. data/app/models/import/csv_header_validator.rb +2 -1
  45. data/app/models/import.rb +4 -7
  46. data/app/models/user.rb +1 -1
  47. data/app/services/export_csv_service.rb +5 -1
  48. data/app/views/admin/advanced_search/facets.json.jbuilder +9 -8
  49. data/app/views/admin/advanced_search/index.json.jbuilder +8 -7
  50. data/app/views/admin/api/_field.json.jbuilder +1 -1
  51. data/app/views/admin/api/fetch.json.jbuilder +8 -7
  52. data/app/views/admin/api/index.json.jbuilder +8 -7
  53. data/app/views/admin/bookmarks/index.html.erb +2 -2
  54. data/app/views/admin/bulk_actions/index.html.erb +3 -3
  55. data/app/views/admin/bulk_actions/show.html.erb +1 -1
  56. data/app/views/admin/document_accesses/_form.html.erb +1 -1
  57. data/app/views/admin/document_accesses/destroy_all.html.erb +2 -2
  58. data/app/views/admin/document_accesses/edit.html.erb +1 -1
  59. data/app/views/admin/document_accesses/import.html.erb +2 -2
  60. data/app/views/admin/document_accesses/index.html.erb +9 -9
  61. data/app/views/admin/document_accesses/new.html.erb +1 -1
  62. data/app/views/admin/document_downloads/_form.html.erb +1 -1
  63. data/app/views/admin/document_downloads/destroy_all.html.erb +1 -1
  64. data/app/views/admin/document_downloads/edit.html.erb +2 -3
  65. data/app/views/admin/document_downloads/import.html.erb +1 -1
  66. data/app/views/admin/document_downloads/index.html.erb +9 -9
  67. data/app/views/admin/document_downloads/new.html.erb +1 -1
  68. data/app/views/admin/document_downloads/show.html.erb +2 -2
  69. data/app/views/admin/documents/_document_bookmark.html.erb +1 -1
  70. data/app/views/admin/documents/_form_nav.html.erb +1 -1
  71. data/app/views/admin/documents/_json_btaa_aardvark.jbuilder +1 -3
  72. data/app/views/admin/documents/edit.html.erb +1 -1
  73. data/app/views/admin/documents/features/_multiple_download_links.html.erb +2 -2
  74. data/app/views/admin/documents/index.html.erb +2 -4
  75. data/app/views/admin/documents/versions.html.erb +1 -1
  76. data/app/views/admin/elements/_element.json.jbuilder +4 -1
  77. data/app/views/admin/elements/_form.html.erb +1 -1
  78. data/app/views/admin/elements/edit.html.erb +2 -2
  79. data/app/views/admin/elements/index.html.erb +3 -3
  80. data/app/views/admin/elements/index.json.jbuilder +2 -0
  81. data/app/views/admin/elements/new.html.erb +1 -1
  82. data/app/views/admin/elements/show.html.erb +6 -6
  83. data/app/views/admin/elements/show.json.jbuilder +2 -0
  84. data/app/views/admin/form_elements/_form.html.erb +1 -1
  85. data/app/views/admin/form_elements/_form_element.json.jbuilder +2 -0
  86. data/app/views/admin/form_elements/edit.html.erb +2 -2
  87. data/app/views/admin/form_elements/index.html.erb +1 -1
  88. data/app/views/admin/form_elements/index.json.jbuilder +2 -0
  89. data/app/views/admin/form_elements/new.html.erb +1 -1
  90. data/app/views/admin/form_elements/show.html.erb +2 -2
  91. data/app/views/admin/form_elements/show.json.jbuilder +2 -0
  92. data/app/views/admin/ids/fetch.json.jbuilder +8 -7
  93. data/app/views/admin/ids/index.json.jbuilder +3 -2
  94. data/app/views/admin/import_documents/show.html.haml +1 -1
  95. data/app/views/admin/imports/_import.json.jbuilder +2 -1
  96. data/app/views/admin/imports/_show_failed_tab.html.erb +2 -2
  97. data/app/views/admin/imports/_show_success_tab.html.erb +1 -1
  98. data/app/views/admin/imports/edit.html.erb +3 -3
  99. data/app/views/admin/imports/index.html.erb +3 -3
  100. data/app/views/admin/layouts/application.html.erb +4 -4
  101. data/app/views/admin/mappings/_form.html.erb +1 -1
  102. data/app/views/admin/mappings/_mapping.json.jbuilder +2 -1
  103. data/app/views/admin/mappings/edit.html.erb +2 -2
  104. data/app/views/admin/mappings/new.html.erb +1 -1
  105. data/app/views/admin/mappings/show.html.erb +2 -2
  106. data/app/views/admin/notifications/index.html.erb +3 -3
  107. data/app/views/admin/search/index.html.erb +2 -2
  108. data/app/views/admin/shared/_navbar.html.erb +8 -3
  109. data/app/views/catalog/_show_gbl_admin.html.erb +3 -0
  110. data/config/routes.rb +37 -33
  111. data/db/migrate/20230316183001_add_geoblacklight_admin_gem.rb +408 -0
  112. data/db/seeds.rb +7 -5
  113. data/lib/generators/geoblacklight_admin/config_generator.rb +43 -31
  114. data/lib/generators/geoblacklight_admin/install_generator.rb +2 -3
  115. data/lib/generators/geoblacklight_admin/jobs_generator.rb +3 -2
  116. data/lib/generators/geoblacklight_admin/models_generator.rb +0 -1
  117. data/lib/generators/geoblacklight_admin/templates/_show_sidebar.html.erb +19 -0
  118. data/lib/generators/geoblacklight_admin/templates/_user_util_links.html.erb +1 -1
  119. data/lib/generators/geoblacklight_admin/templates/config/database.yml +9 -5
  120. data/lib/generators/geoblacklight_admin/templates/config/initializers/geoblacklight_admin.rb +1 -2
  121. data/lib/generators/geoblacklight_admin/templates/config/initializers/pagy.rb +150 -68
  122. data/lib/generators/geoblacklight_admin/templates/config/settings.yml +241 -0
  123. data/lib/generators/geoblacklight_admin/templates/package.json +1 -0
  124. data/lib/generators/geoblacklight_admin/views_generator.rb +0 -1
  125. data/lib/geoblacklight_admin/engine.rb +5 -6
  126. data/lib/geoblacklight_admin/version.rb +1 -1
  127. data/lib/geoblacklight_admin.rb +1 -1
  128. data/lib/tasks/geoblacklight_admin.rake +10 -6
  129. metadata +79 -48
  130. data/.editorconfig +0 -18
  131. data/.gitignore +0 -75
  132. data/.standard.yml +0 -4
  133. data/Gemfile +0 -59
  134. data/LICENSE +0 -21
  135. data/app/assets/images/.keep +0 -0
  136. data/app/controllers/admin/concerns/.keep +0 -0
  137. data/app/models/bookmark.rb +0 -17
  138. data/app/models/concerns/.keep +0 -0
  139. data/db/migrate/20230316183001_add_geoblacklight_admin.rb +0 -399
  140. data/geoblacklight_admin.gemspec +0 -67
  141. data/lib/generators/geoblacklight_admin/templates/.env.development.example +0 -28
  142. data/lib/generators/geoblacklight_admin/templates/.solr_wrapper.yml +0 -7
  143. data/lib/generators/geoblacklight_admin/templates/solr/snapshots/.keep +0 -0
  144. data/lib/tasks/.keep +0 -0
  145. data/spec/test_app_templates/lib/generators/test_app_generator.rb +0 -35
  146. data/template.rb +0 -16
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geoblacklight_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Larson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-12 00:00:00.000000000 Z
11
+ date: 2023-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_storage_validations
@@ -39,35 +39,49 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: bootstrap
42
+ name: blacklight
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '4.0'
47
+ version: '7.33'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '4.0'
54
+ version: '7.33'
55
55
  - !ruby/object:Gem::Dependency
56
- name: cocoon
56
+ name: blacklight_advanced_search
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '1.2'
61
+ version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '1.2'
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: config
70
+ name: blacklight_range_limit
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: bootstrap
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
87
  - - "~>"
@@ -95,75 +109,89 @@ dependencies:
95
109
  - !ruby/object:Gem::Version
96
110
  version: '1.0'
97
111
  - !ruby/object:Gem::Dependency
98
- name: devise
112
+ name: cocoon
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
115
  - - "~>"
102
116
  - !ruby/object:Gem::Version
103
- version: '4.7'
117
+ version: '1.2'
104
118
  type: :runtime
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
122
  - - "~>"
109
123
  - !ruby/object:Gem::Version
110
- version: '4.7'
124
+ version: '1.2'
111
125
  - !ruby/object:Gem::Dependency
112
- name: devise-bootstrap-views
126
+ name: config
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
129
  - - "~>"
116
130
  - !ruby/object:Gem::Version
117
- version: '1.0'
131
+ version: '4.0'
118
132
  type: :runtime
119
133
  prerelease: false
120
134
  version_requirements: !ruby/object:Gem::Requirement
121
135
  requirements:
122
136
  - - "~>"
123
137
  - !ruby/object:Gem::Version
124
- version: '1.0'
138
+ version: '4.0'
125
139
  - !ruby/object:Gem::Dependency
126
- name: devise_invitable
140
+ name: devise
127
141
  requirement: !ruby/object:Gem::Requirement
128
142
  requirements:
129
143
  - - "~>"
130
144
  - !ruby/object:Gem::Version
131
- version: '2.0'
145
+ version: '4.7'
132
146
  type: :runtime
133
147
  prerelease: false
134
148
  version_requirements: !ruby/object:Gem::Requirement
135
149
  requirements:
136
150
  - - "~>"
137
151
  - !ruby/object:Gem::Version
138
- version: '2.0'
152
+ version: '4.7'
139
153
  - !ruby/object:Gem::Dependency
140
- name: blacklight
154
+ name: devise-bootstrap-views
141
155
  requirement: !ruby/object:Gem::Requirement
142
156
  requirements:
143
157
  - - "~>"
144
158
  - !ruby/object:Gem::Version
145
- version: '7.33'
159
+ version: '1.0'
146
160
  type: :runtime
147
161
  prerelease: false
148
162
  version_requirements: !ruby/object:Gem::Requirement
149
163
  requirements:
150
164
  - - "~>"
151
165
  - !ruby/object:Gem::Version
152
- version: '7.33'
166
+ version: '1.0'
153
167
  - !ruby/object:Gem::Dependency
154
- name: blacklight_advanced_search
168
+ name: devise_invitable
155
169
  requirement: !ruby/object:Gem::Requirement
156
170
  requirements:
157
- - - ">="
171
+ - - "~>"
158
172
  - !ruby/object:Gem::Version
159
- version: '0'
173
+ version: '2.0'
160
174
  type: :runtime
161
175
  prerelease: false
162
176
  version_requirements: !ruby/object:Gem::Requirement
163
177
  requirements:
164
- - - ">="
178
+ - - "~>"
165
179
  - !ruby/object:Gem::Version
166
- version: '0'
180
+ version: '2.0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: dotenv-rails
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '2.8'
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '2.8'
167
195
  - !ruby/object:Gem::Dependency
168
196
  name: geoblacklight
169
197
  requirement: !ruby/object:Gem::Requirement
@@ -268,14 +296,14 @@ dependencies:
268
296
  requirements:
269
297
  - - "~>"
270
298
  - !ruby/object:Gem::Version
271
- version: '3.8'
299
+ version: '6.0'
272
300
  type: :runtime
273
301
  prerelease: false
274
302
  version_requirements: !ruby/object:Gem::Requirement
275
303
  requirements:
276
304
  - - "~>"
277
305
  - !ruby/object:Gem::Version
278
- version: '3.8'
306
+ version: '6.0'
279
307
  - !ruby/object:Gem::Dependency
280
308
  name: paper_trail
281
309
  requirement: !ruby/object:Gem::Requirement
@@ -660,6 +688,20 @@ dependencies:
660
688
  - - ">="
661
689
  - !ruby/object:Gem::Version
662
690
  version: '0'
691
+ - !ruby/object:Gem::Dependency
692
+ name: web-console
693
+ requirement: !ruby/object:Gem::Requirement
694
+ requirements:
695
+ - - ">="
696
+ - !ruby/object:Gem::Version
697
+ version: '0'
698
+ type: :development
699
+ prerelease: false
700
+ version_requirements: !ruby/object:Gem::Requirement
701
+ requirements:
702
+ - - ">="
703
+ - !ruby/object:Gem::Version
704
+ version: '0'
663
705
  description:
664
706
  email:
665
707
  - ewlarson@gmail.com
@@ -667,14 +709,8 @@ executables: []
667
709
  extensions: []
668
710
  extra_rdoc_files: []
669
711
  files:
670
- - ".editorconfig"
671
- - ".gitignore"
672
- - ".standard.yml"
673
- - Gemfile
674
- - LICENSE
675
712
  - README.md
676
713
  - Rakefile
677
- - app/assets/images/.keep
678
714
  - app/assets/images/aerial_photo.jpg
679
715
  - app/assets/images/archive-solid.svg
680
716
  - app/assets/images/bookmark-regular.svg
@@ -699,6 +735,7 @@ files:
699
735
  - app/assets/stylesheets/geoblacklight_admin/_core.scss
700
736
  - app/assets/stylesheets/geoblacklight_admin/modules/_autocomplete.scss
701
737
  - app/assets/stylesheets/geoblacklight_admin/modules/_blazer.scss
738
+ - app/assets/stylesheets/geoblacklight_admin/modules/_chosen.scss
702
739
  - app/assets/stylesheets/geoblacklight_admin/modules/_code.scss
703
740
  - app/assets/stylesheets/geoblacklight_admin/modules/_datepicker.scss
704
741
  - app/assets/stylesheets/geoblacklight_admin/modules/_elements.scss
@@ -715,7 +752,6 @@ files:
715
752
  - app/controllers/admin/api_controller.rb
716
753
  - app/controllers/admin/bookmarks_controller.rb
717
754
  - app/controllers/admin/bulk_actions_controller.rb
718
- - app/controllers/admin/concerns/.keep
719
755
  - app/controllers/admin/concerns/upload_util.rb
720
756
  - app/controllers/admin/document_accesses_controller.rb
721
757
  - app/controllers/admin/document_assets_controller.rb
@@ -747,19 +783,18 @@ files:
747
783
  - app/jobs/import_run_job.rb
748
784
  - app/models/active_storage_attachment.rb
749
785
  - app/models/active_storage_blob.rb
786
+ - app/models/admin/bookmark.rb
750
787
  - app/models/api_search_builder.rb
751
788
  - app/models/application_record.rb
752
789
  - app/models/blacklight_api.rb
753
790
  - app/models/blacklight_api_facets.rb
754
791
  - app/models/blacklight_api_ids.rb
755
- - app/models/bookmark.rb
756
792
  - app/models/bulk_action.rb
757
793
  - app/models/bulk_action_document.rb
758
794
  - app/models/bulk_action_document_state_machine.rb
759
795
  - app/models/bulk_action_document_transition.rb
760
796
  - app/models/bulk_action_state_machine.rb
761
797
  - app/models/bulk_action_transition.rb
762
- - app/models/concerns/.keep
763
798
  - app/models/document.rb
764
799
  - app/models/document/bbox_validator.rb
765
800
  - app/models/document/controlled_lists.rb
@@ -937,6 +972,7 @@ files:
937
972
  - app/views/admin/shared/_schema_timestamp.html.erb
938
973
  - app/views/admin/shared/_toast.html.erb
939
974
  - app/views/admin/users/index.html.erb
975
+ - app/views/catalog/_show_gbl_admin.html.erb
940
976
  - config/authorities/formats.yml
941
977
  - config/authorities/languages.yml
942
978
  - config/authorities/resource_type.yml
@@ -951,22 +987,20 @@ files:
951
987
  - config/locales/geoblacklight.en.yml
952
988
  - config/locales/simple_form.en.yml
953
989
  - config/routes.rb
954
- - db/migrate/20230316183001_add_geoblacklight_admin.rb
990
+ - db/migrate/20230316183001_add_geoblacklight_admin_gem.rb
955
991
  - db/seeds.rb
956
992
  - db/seeds_elements.csv
957
993
  - db/seeds_elements.numbers
958
994
  - db/seeds_form_elements.csv
959
995
  - db/seeds_form_elements.numbers
960
996
  - db/structure.sql
961
- - geoblacklight_admin.gemspec
962
997
  - lib/generators/geoblacklight_admin/config_generator.rb
963
998
  - lib/generators/geoblacklight_admin/example_docs_generator.rb
964
999
  - lib/generators/geoblacklight_admin/helpers_generator.rb
965
1000
  - lib/generators/geoblacklight_admin/install_generator.rb
966
1001
  - lib/generators/geoblacklight_admin/jobs_generator.rb
967
1002
  - lib/generators/geoblacklight_admin/models_generator.rb
968
- - lib/generators/geoblacklight_admin/templates/.env.development.example
969
- - lib/generators/geoblacklight_admin/templates/.solr_wrapper.yml
1003
+ - lib/generators/geoblacklight_admin/templates/_show_sidebar.html.erb
970
1004
  - lib/generators/geoblacklight_admin/templates/_user_util_links.html.erb
971
1005
  - lib/generators/geoblacklight_admin/templates/config/database.yml
972
1006
  - lib/generators/geoblacklight_admin/templates/config/geomg_aardvark_schema.json
@@ -974,6 +1008,7 @@ files:
974
1008
  - lib/generators/geoblacklight_admin/templates/config/initializers/kithe.rb
975
1009
  - lib/generators/geoblacklight_admin/templates/config/initializers/pagy.rb
976
1010
  - lib/generators/geoblacklight_admin/templates/config/initializers/statesman.rb
1011
+ - lib/generators/geoblacklight_admin/templates/config/settings.yml
977
1012
  - lib/generators/geoblacklight_admin/templates/javascript/channels/consumer.js
978
1013
  - lib/generators/geoblacklight_admin/templates/javascript/channels/export_channel.js
979
1014
  - lib/generators/geoblacklight_admin/templates/javascript/channels/index.js
@@ -1002,15 +1037,11 @@ files:
1002
1037
  - lib/generators/geoblacklight_admin/templates/solr/conf/xslt/example_atom.xsl
1003
1038
  - lib/generators/geoblacklight_admin/templates/solr/conf/xslt/example_rss.xsl
1004
1039
  - lib/generators/geoblacklight_admin/templates/solr/conf/xslt/luke.xsl
1005
- - lib/generators/geoblacklight_admin/templates/solr/snapshots/.keep
1006
1040
  - lib/generators/geoblacklight_admin/views_generator.rb
1007
1041
  - lib/geoblacklight_admin.rb
1008
1042
  - lib/geoblacklight_admin/engine.rb
1009
1043
  - lib/geoblacklight_admin/version.rb
1010
- - lib/tasks/.keep
1011
1044
  - lib/tasks/geoblacklight_admin.rake
1012
- - spec/test_app_templates/lib/generators/test_app_generator.rb
1013
- - template.rb
1014
1045
  homepage: https://github.com/geobtaa/geoblacklight_admin
1015
1046
  licenses:
1016
1047
  - MIT
@@ -1030,7 +1061,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1030
1061
  - !ruby/object:Gem::Version
1031
1062
  version: '0'
1032
1063
  requirements: []
1033
- rubygems_version: 3.1.6
1064
+ rubygems_version: 3.3.7
1034
1065
  signing_key:
1035
1066
  specification_version: 4
1036
1067
  summary: Administrative UI for GeoBlacklight. Built on Kithe.
data/.editorconfig DELETED
@@ -1,18 +0,0 @@
1
- # EditorConfig is awesome: http://EditorConfig.org
2
-
3
- # top-most EditorConfig file for the repo
4
- root = true
5
-
6
- # Quasi-universal defaults
7
- [*]
8
- end_of_line = lf
9
- insert_final_newline = true
10
- charset = utf-8
11
-
12
- # Defaults that seem fairly common
13
- indent_style = space
14
- indent_size = 2
15
-
16
- # file-specific overrides
17
- [CODEOWNERS]
18
- indent_size = 8
data/.gitignore DELETED
@@ -1,75 +0,0 @@
1
- *.gem
2
- .bundle/
3
- Gemfile.lock
4
- coverage
5
- .internal_test_app
6
- .ruby-version
7
- .byebug_history
8
-
9
- *.rbc
10
- capybara-*.html
11
- .rspec
12
- /db/*.sqlite3
13
- /db/*.sqlite3-journal
14
- /db/*.sqlite3-[0-9]*
15
- /public/system
16
- /coverage/
17
- /spec/tmp
18
- *.orig
19
- rerun.txt
20
- pickle-email-*.html
21
-
22
- # Ignore all logfiles and tempfiles.
23
- /log/*
24
- /tmp/*
25
- !/log/.keep
26
- !/tmp/.keep
27
-
28
- # TODO Comment out this rule if you are OK with secrets being uploaded to the repo
29
- config/initializers/secret_token.rb
30
- config/master.key
31
-
32
- # Only include if you have production secrets in this file, which is no longer a Rails default
33
- # config/secrets.yml
34
-
35
- # dotenv
36
- # TODO Comment out this rule if environment variables can be committed
37
- .env
38
-
39
- ## Environment normalization:
40
- /.bundle
41
- /vendor/bundle
42
-
43
- # these should all be checked in to normalize the environment:
44
- # Gemfile.lock, .ruby-version, .ruby-gemset
45
-
46
- # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
47
- .rvmrc
48
-
49
- # if using bower-rails ignore default bower_components path bower.json files
50
- /vendor/assets/bower_components
51
- *.bowerrc
52
- bower.json
53
-
54
- # Ignore pow environment settings
55
- .powenv
56
-
57
- # Ignore Byebug command history file.
58
- .byebug_history
59
-
60
- # Ignore node_modules
61
- node_modules/
62
-
63
- # Ignore precompiled javascript packs
64
- /public/packs
65
- /public/packs-test
66
- /public/assets
67
-
68
- # Ignore yarn files
69
- /yarn-error.log
70
- yarn-debug.log*
71
- .yarn-integrity
72
-
73
- # Ignore uploaded files in development
74
- /storage/*
75
- !/storage/.keep
data/.standard.yml DELETED
@@ -1,4 +0,0 @@
1
- format: progress
2
- ignore:
3
- - 'db/seeds.rb'
4
- - 'db/migrate/**'
data/Gemfile DELETED
@@ -1,59 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- # Declare your gem's dependencies in geoblacklight_admin.gemspec.
4
- # Bundler will treat runtime dependencies like base dependencies, and
5
- # development dependencies will be added by default to the :development group.
6
-
7
- # Please see geoblacklight_admin.gemspec for dependency information.
8
- gemspec
9
-
10
- # Declare any dependencies that are still in development here instead of in
11
- # your gemspec. These might include edge Rails or gems from your path or
12
- # Git. Remember to move these dependencies to your gemspec before releasing
13
- # your gem to rubygems.org.
14
-
15
- group :development, :test do
16
- end
17
-
18
- # To use a debugger
19
- # gem 'byebug', group: [:development, :test]
20
-
21
- # BEGIN ENGINE_CART BLOCK
22
- # engine_cart: 2.5.0
23
- # engine_cart stanza: 2.5.0
24
- # the below comes from engine_cart, a gem used to test this Rails engine gem in the context of a Rails app.
25
- file = File.expand_path('Gemfile', ENV['ENGINE_CART_DESTINATION'] || ENV['RAILS_ROOT'] || File.expand_path('.internal_test_app', File.dirname(__FILE__)))
26
- if File.exist?(file)
27
- begin
28
- eval_gemfile file
29
- rescue Bundler::GemfileError => e
30
- Bundler.ui.warn '[EngineCart] Skipping Rails application dependencies:'
31
- Bundler.ui.warn e.message
32
- end
33
- else
34
- Bundler.ui.warn "[EngineCart] Unable to find test application dependencies in #{file}, using placeholder dependencies"
35
- gem "blacklight", "~> 7.33"
36
- gem "blacklight_advanced_search"
37
- gem "geoblacklight", ">= 4.0"
38
- gem "statesman", ">= 3.4"
39
-
40
- if ENV['RAILS_VERSION']
41
- if ENV['RAILS_VERSION'] == 'edge'
42
- gem 'rails', github: 'rails/rails'
43
- ENV['ENGINE_CART_RAILS_OPTIONS'] = '--edge --skip-turbolinks'
44
- else
45
- gem 'rails', ENV['RAILS_VERSION']
46
- end
47
-
48
- case ENV['RAILS_VERSION']
49
- when /^6.0/
50
- gem 'sass-rails', '>= 6'
51
- gem 'webpacker', '~> 4.0'
52
- when /^5.[12]/
53
- gem 'sass-rails', '~> 5.0'
54
- gem 'sprockets', '~> 3.7'
55
- gem 'thor', '~> 0.20'
56
- end
57
- end
58
- end
59
- # END ENGINE_CART BLOCK
data/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 Big Ten Academic Alliance Geospatial Information Network
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
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 THE
21
- SOFTWARE.
File without changes
File without changes
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Bookmark
4
- class Bookmark < ApplicationRecord
5
- belongs_to :user, polymorphic: true
6
- belongs_to :document, polymorphic: true
7
-
8
- def document_type
9
- value = super if defined?(super)
10
- value &&= value.constantize
11
- value || default_document_type
12
- end
13
-
14
- def default_document_type
15
- SolrDocument
16
- end
17
- end
File without changes