standard_view 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +31 -10
  3. data/Rakefile +3 -8
  4. data/app/helpers/standard_view/application_helper.rb +38 -0
  5. data/app/helpers/standard_view/badge_helper.rb +22 -0
  6. data/app/helpers/standard_view/flash_helper.rb +16 -0
  7. data/app/helpers/standard_view/formatting_helper.rb +21 -0
  8. data/app/helpers/standard_view/masthead_helper.rb +27 -0
  9. data/app/helpers/standard_view/navigation_helper.rb +51 -0
  10. data/app/views/application/_attributes_card.html.erb +32 -0
  11. data/app/views/application/_flash_messages.html.erb +7 -0
  12. data/app/views/application/_icon.html.erb +5 -0
  13. data/app/views/application/_javascripts.html.erb +25 -0
  14. data/app/views/application/_list_item.html.erb +11 -0
  15. data/app/views/application/_masthead.html.erb +21 -0
  16. data/app/views/application/_masthead_brand.html.erb +1 -0
  17. data/app/views/application/_masthead_nav.html.erb +6 -0
  18. data/app/views/application/_masthead_nav_items.html.erb +8 -0
  19. data/app/views/application/_masthead_nav_menu.html.erb +8 -0
  20. data/app/views/application/_masthead_nav_menu_icon.html.erb +1 -0
  21. data/app/views/application/_masthead_nav_menu_items.html.erb +10 -0
  22. data/app/views/application/_stylesheet_font_awesome.html.erb +6 -0
  23. data/app/views/application/_stylesheets.html.erb +12 -0
  24. data/app/views/application/index.html.erb +1 -0
  25. data/app/views/application/show.html.erb +1 -0
  26. data/app/views/layouts/standard_view/application.html.erb +8 -7
  27. data/app/views/standard_view/_breadcrumbs.html.erb +48 -0
  28. data/app/views/standard_view/_index.html.erb +83 -0
  29. data/app/views/standard_view/_list_item.html.erb +29 -0
  30. data/app/views/standard_view/_navigation_aside.html.erb +5 -0
  31. data/app/views/standard_view/_navigation_tabs.html.erb +5 -0
  32. data/app/views/standard_view/_page_content.html.erb +8 -0
  33. data/app/views/standard_view/_paginated_collection.html.erb +8 -0
  34. data/app/views/standard_view/_show.html.erb +48 -0
  35. data/config/initializers/material.rb +9 -0
  36. data/config/initializers/simple_form.rb +184 -0
  37. data/config/initializers/simple_form_bootstrap.rb +457 -0
  38. data/config/initializers/will_paginate.rb +57 -0
  39. data/config/locales/en.yml +12 -0
  40. data/lib/standard_view/engine.rb +11 -0
  41. data/lib/standard_view/version.rb +3 -1
  42. data/lib/standard_view.rb +7 -3
  43. metadata +169 -21
  44. data/app/assets/config/standard_view_manifest.js +0 -2
  45. data/app/assets/javascripts/standard_view/application.js +0 -14
  46. data/app/assets/stylesheets/standard_view/application.css +0 -15
  47. data/app/controllers/standard_view/application_controller.rb +0 -5
  48. data/app/jobs/standard_view/application_job.rb +0 -4
  49. data/app/mailers/standard_view/application_mailer.rb +0 -6
  50. data/app/models/standard_view/application_record.rb +0 -5
metadata CHANGED
@@ -1,29 +1,123 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standard_view
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Garside
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-01 00:00:00.000000000 Z
11
+ date: 2020-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 5.2.3
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 5.2.3
27
+ - !ruby/object:Gem::Dependency
28
+ name: material
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 0.3.1
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '1.0'
37
+ type: :runtime
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 0.3.1
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '1.0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: spicery
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: 0.22.3.1
54
+ - - "<"
55
+ - !ruby/object:Gem::Version
56
+ version: '1.0'
57
+ type: :runtime
58
+ prerelease: false
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: 0.22.3.1
64
+ - - "<"
65
+ - !ruby/object:Gem::Version
66
+ version: '1.0'
67
+ - !ruby/object:Gem::Dependency
68
+ name: law
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: 0.1.1
74
+ - - "<"
75
+ - !ruby/object:Gem::Version
76
+ version: '1.0'
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: 0.1.1
84
+ - - "<"
85
+ - !ruby/object:Gem::Version
86
+ version: '1.0'
87
+ - !ruby/object:Gem::Dependency
88
+ name: simple_form
89
+ requirement: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: '4.1'
94
+ - - "<"
95
+ - !ruby/object:Gem::Version
96
+ version: '5.1'
97
+ type: :runtime
98
+ prerelease: false
99
+ version_requirements: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '4.1'
104
+ - - "<"
105
+ - !ruby/object:Gem::Version
106
+ version: '5.1'
107
+ - !ruby/object:Gem::Dependency
108
+ name: will_paginate
109
+ requirement: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - "~>"
112
+ - !ruby/object:Gem::Version
113
+ version: 3.1.1
114
+ type: :runtime
115
+ prerelease: false
116
+ version_requirements: !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - - "~>"
119
+ - !ruby/object:Gem::Version
120
+ version: 3.1.1
27
121
  - !ruby/object:Gem::Dependency
28
122
  name: bundler
29
123
  requirement: !ruby/object:Gem::Requirement
@@ -53,19 +147,19 @@ dependencies:
53
147
  - !ruby/object:Gem::Version
54
148
  version: '10.0'
55
149
  - !ruby/object:Gem::Dependency
56
- name: rspec
150
+ name: rspec-rails
57
151
  requirement: !ruby/object:Gem::Requirement
58
152
  requirements:
59
153
  - - "~>"
60
154
  - !ruby/object:Gem::Version
61
- version: '3.0'
155
+ version: 3.8.2
62
156
  type: :development
63
157
  prerelease: false
64
158
  version_requirements: !ruby/object:Gem::Requirement
65
159
  requirements:
66
160
  - - "~>"
67
161
  - !ruby/object:Gem::Version
68
- version: '3.0'
162
+ version: 3.8.2
69
163
  - !ruby/object:Gem::Dependency
70
164
  name: simplecov
71
165
  requirement: !ruby/object:Gem::Requirement
@@ -94,13 +188,27 @@ dependencies:
94
188
  - - "~>"
95
189
  - !ruby/object:Gem::Version
96
190
  version: '1.8'
191
+ - !ruby/object:Gem::Dependency
192
+ name: sqlite3
193
+ requirement: !ruby/object:Gem::Requirement
194
+ requirements:
195
+ - - "~>"
196
+ - !ruby/object:Gem::Version
197
+ version: 1.3.6
198
+ type: :development
199
+ prerelease: false
200
+ version_requirements: !ruby/object:Gem::Requirement
201
+ requirements:
202
+ - - "~>"
203
+ - !ruby/object:Gem::Version
204
+ version: 1.3.6
97
205
  - !ruby/object:Gem::Dependency
98
206
  name: rspice
99
207
  requirement: !ruby/object:Gem::Requirement
100
208
  requirements:
101
209
  - - ">="
102
210
  - !ruby/object:Gem::Version
103
- version: 0.13.3
211
+ version: 0.22.3.1
104
212
  - - "<"
105
213
  - !ruby/object:Gem::Version
106
214
  version: '1.0'
@@ -110,7 +218,7 @@ dependencies:
110
218
  requirements:
111
219
  - - ">="
112
220
  - !ruby/object:Gem::Version
113
- version: 0.13.3
221
+ version: 0.22.3.1
114
222
  - - "<"
115
223
  - !ruby/object:Gem::Version
116
224
  version: '1.0'
@@ -120,7 +228,7 @@ dependencies:
120
228
  requirements:
121
229
  - - ">="
122
230
  - !ruby/object:Gem::Version
123
- version: 0.13.3
231
+ version: 0.22.3.1
124
232
  - - "<"
125
233
  - !ruby/object:Gem::Version
126
234
  version: '1.0'
@@ -130,13 +238,27 @@ dependencies:
130
238
  requirements:
131
239
  - - ">="
132
240
  - !ruby/object:Gem::Version
133
- version: 0.13.3
241
+ version: 0.22.3.1
134
242
  - - "<"
135
243
  - !ruby/object:Gem::Version
136
244
  version: '1.0'
245
+ - !ruby/object:Gem::Dependency
246
+ name: rspec-html-matchers
247
+ requirement: !ruby/object:Gem::Requirement
248
+ requirements:
249
+ - - ">="
250
+ - !ruby/object:Gem::Version
251
+ version: '0'
252
+ type: :development
253
+ prerelease: false
254
+ version_requirements: !ruby/object:Gem::Requirement
255
+ requirements:
256
+ - - ">="
257
+ - !ruby/object:Gem::Version
258
+ version: '0'
137
259
  description: Use Bootstrap to present a nicely standardized view for your models.
138
260
  email:
139
- - garside@gmail.com
261
+ - eric.garside@freshly.com
140
262
  executables: []
141
263
  extensions: []
142
264
  extra_rdoc_files: []
@@ -144,15 +266,42 @@ files:
144
266
  - MIT-LICENSE
145
267
  - README.md
146
268
  - Rakefile
147
- - app/assets/config/standard_view_manifest.js
148
- - app/assets/javascripts/standard_view/application.js
149
- - app/assets/stylesheets/standard_view/application.css
150
- - app/controllers/standard_view/application_controller.rb
151
269
  - app/helpers/standard_view/application_helper.rb
152
- - app/jobs/standard_view/application_job.rb
153
- - app/mailers/standard_view/application_mailer.rb
154
- - app/models/standard_view/application_record.rb
270
+ - app/helpers/standard_view/badge_helper.rb
271
+ - app/helpers/standard_view/flash_helper.rb
272
+ - app/helpers/standard_view/formatting_helper.rb
273
+ - app/helpers/standard_view/masthead_helper.rb
274
+ - app/helpers/standard_view/navigation_helper.rb
275
+ - app/views/application/_attributes_card.html.erb
276
+ - app/views/application/_flash_messages.html.erb
277
+ - app/views/application/_icon.html.erb
278
+ - app/views/application/_javascripts.html.erb
279
+ - app/views/application/_list_item.html.erb
280
+ - app/views/application/_masthead.html.erb
281
+ - app/views/application/_masthead_brand.html.erb
282
+ - app/views/application/_masthead_nav.html.erb
283
+ - app/views/application/_masthead_nav_items.html.erb
284
+ - app/views/application/_masthead_nav_menu.html.erb
285
+ - app/views/application/_masthead_nav_menu_icon.html.erb
286
+ - app/views/application/_masthead_nav_menu_items.html.erb
287
+ - app/views/application/_stylesheet_font_awesome.html.erb
288
+ - app/views/application/_stylesheets.html.erb
289
+ - app/views/application/index.html.erb
290
+ - app/views/application/show.html.erb
155
291
  - app/views/layouts/standard_view/application.html.erb
292
+ - app/views/standard_view/_breadcrumbs.html.erb
293
+ - app/views/standard_view/_index.html.erb
294
+ - app/views/standard_view/_list_item.html.erb
295
+ - app/views/standard_view/_navigation_aside.html.erb
296
+ - app/views/standard_view/_navigation_tabs.html.erb
297
+ - app/views/standard_view/_page_content.html.erb
298
+ - app/views/standard_view/_paginated_collection.html.erb
299
+ - app/views/standard_view/_show.html.erb
300
+ - config/initializers/material.rb
301
+ - config/initializers/simple_form.rb
302
+ - config/initializers/simple_form_bootstrap.rb
303
+ - config/initializers/will_paginate.rb
304
+ - config/locales/en.yml
156
305
  - config/routes.rb
157
306
  - lib/standard_view.rb
158
307
  - lib/standard_view/engine.rb
@@ -177,8 +326,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
326
  - !ruby/object:Gem::Version
178
327
  version: '0'
179
328
  requirements: []
180
- rubyforge_project:
181
- rubygems_version: 2.7.6
329
+ rubygems_version: 3.0.3
182
330
  signing_key:
183
331
  specification_version: 4
184
332
  summary: A highly functional and largely automated presentation layer.
@@ -1,2 +0,0 @@
1
- //= link_directory ../javascripts/standard_view .js
2
- //= link_directory ../stylesheets/standard_view .css
@@ -1,14 +0,0 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // compiled file. JavaScript code in this file should be added after the last require_* statement.
9
- //
10
- // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
- // about supported directives.
12
- //
13
- //= require rails-ujs
14
- //= require_tree .
@@ -1,15 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
- * files in this directory. Styles in this file should be added after the last require_* statement.
11
- * It is generally better to create a new file per style scope.
12
- *
13
- *= require_tree .
14
- *= require_self
15
- */
@@ -1,5 +0,0 @@
1
- module StandardView
2
- class ApplicationController < ActionController::Base
3
- protect_from_forgery with: :exception
4
- end
5
- end
@@ -1,4 +0,0 @@
1
- module StandardView
2
- class ApplicationJob < ActiveJob::Base
3
- end
4
- end
@@ -1,6 +0,0 @@
1
- module StandardView
2
- class ApplicationMailer < ActionMailer::Base
3
- default from: 'from@example.com'
4
- layout 'mailer'
5
- end
6
- end
@@ -1,5 +0,0 @@
1
- module StandardView
2
- class ApplicationRecord < ActiveRecord::Base
3
- self.abstract_class = true
4
- end
5
- end