bootstrap_leather 0.9.4 → 0.10.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (174) hide show
  1. checksums.yaml +4 -4
  2. data/.rspec +1 -0
  3. data/.rubocop.yml +23 -0
  4. data/.rubocop_todo.yml +12 -0
  5. data/.ruby-gemset +1 -1
  6. data/.ruby-version +1 -1
  7. data/.travis.yml +5 -0
  8. data/Gemfile +40 -7
  9. data/LICENSE.txt +1 -1
  10. data/README.md +260 -0
  11. data/Rakefile +35 -20
  12. data/VERSION +1 -1
  13. data/app/helpers/bootstrap_leather/alerts_helper.rb +36 -0
  14. data/app/helpers/bootstrap_leather/application_helper.rb +21 -0
  15. data/app/helpers/bootstrap_leather/badges_helper.rb +21 -0
  16. data/app/helpers/bootstrap_leather/carousels_helper.rb +32 -0
  17. data/app/helpers/bootstrap_leather/foot_helper.rb +14 -0
  18. data/app/helpers/bootstrap_leather/grid_helper.rb +10 -0
  19. data/app/helpers/bootstrap_leather/head_helper.rb +67 -0
  20. data/app/helpers/bootstrap_leather/hero_unit_helper.rb +14 -0
  21. data/app/helpers/bootstrap_leather/icons_helper.rb +33 -0
  22. data/app/helpers/bootstrap_leather/modals_helper.rb +20 -0
  23. data/app/helpers/bootstrap_leather/navigation_helper.rb +71 -0
  24. data/app/helpers/bootstrap_leather/tabs_helper.rb +28 -0
  25. data/app/helpers/bootstrap_leather/thumbnails_helper.rb +13 -0
  26. data/app/helpers/bootstrap_leather/typography_helper.rb +38 -0
  27. data/app/helpers/bootstrap_leather/widgets_helper.rb +29 -0
  28. data/app/views/bootstrap_leather/{_alert.html.haml → alerts/_alert.html.haml} +1 -1
  29. data/app/views/bootstrap_leather/{_alert_flash_messages.html.haml → alerts/_alert_flash_messages.html.haml} +0 -0
  30. data/app/views/bootstrap_leather/{_badge.html.haml → badges/_badge.html.haml} +1 -1
  31. data/app/views/bootstrap_leather/badges/_badge_to.html.haml +3 -0
  32. data/app/views/bootstrap_leather/{_carousel.html.haml → carousels/_carousel.html.haml} +0 -0
  33. data/app/views/bootstrap_leather/{_carousel_with_thumbnails.html.haml → carousels/_carousel_with_thumbnails.html.haml} +0 -0
  34. data/app/views/bootstrap_leather/{_footer_javascript.html.haml → foot/_footer_javascript.html.haml} +0 -0
  35. data/app/views/bootstrap_leather/{_head_css.html.haml → head/_head_css.html.haml} +0 -0
  36. data/app/views/bootstrap_leather/{_hero_unit.html.haml → hero_unit/_hero_unit.html.haml} +0 -0
  37. data/app/views/bootstrap_leather/{_icon.html.haml → icons/_icon.html.haml} +0 -0
  38. data/app/views/bootstrap_leather/{_icon_button_to.html.haml → icons/_icon_button_to.html.haml} +0 -0
  39. data/app/views/bootstrap_leather/{_icon_link_to.html.haml → icons/_icon_link_to.html.haml} +0 -0
  40. data/app/views/bootstrap_leather/{_modal.html.haml → modals/_modal.html.haml} +2 -2
  41. data/app/views/bootstrap_leather/navigation/_dropdown_nav_item.html.haml +6 -0
  42. data/app/views/bootstrap_leather/navigation/_hamburger_menu.html.haml +6 -0
  43. data/app/views/bootstrap_leather/{_logo_and_title.html.haml → navigation/_logo_and_title.html.haml} +0 -0
  44. data/app/views/bootstrap_leather/{_nav_heading.html.haml → navigation/_nav_heading.html.haml} +0 -0
  45. data/app/views/bootstrap_leather/{_nav_item.html.haml → navigation/_nav_item.html.haml} +0 -0
  46. data/app/views/bootstrap_leather/{_nav_list.html.haml → navigation/_nav_list.html.haml} +0 -0
  47. data/app/views/bootstrap_leather/navigation/_navbar.html.haml +14 -0
  48. data/app/views/bootstrap_leather/navigation/_navbar_contents.html.haml +5 -0
  49. data/app/views/bootstrap_leather/tabs/_tabs.html.haml +10 -0
  50. data/app/views/bootstrap_leather/{_thumbnail.html.haml → thumbnails/_thumbnail.html.haml} +0 -0
  51. data/app/views/bootstrap_leather/{_definition_list.html.haml → typography/_dl.html.haml} +0 -0
  52. data/app/views/bootstrap_leather/{_page_header.html.haml → typography/_page_header.html.haml} +1 -1
  53. data/app/views/bootstrap_leather/widgets/_widgets.html.haml +10 -0
  54. data/bin/rails +15 -0
  55. data/bootstrap_leather.gemspec +219 -57
  56. data/config/locales/en.yml +9 -0
  57. data/lib/bootstrap_leather/configuration.rb +16 -12
  58. data/lib/bootstrap_leather/engine.rb +19 -4
  59. data/lib/bootstrap_leather/localization.rb +20 -18
  60. data/lib/bootstrap_leather/version.rb +4 -1
  61. data/lib/bootstrap_leather.rb +6 -2
  62. data/lib/generators/bootstrap_leather/install/install_generator.rb +21 -19
  63. data/lib/generators/bootstrap_leather/install/templates/initializer.rb +3 -1
  64. data/lib/generators/bootstrap_leather/utils.rb +13 -4
  65. data/lib/templates/erb/scaffold/_form.html.erb +11 -0
  66. data/lib/templates/erb/scaffold/edit.html.erb +9 -0
  67. data/lib/templates/erb/scaffold/index.html.erb +29 -0
  68. data/lib/templates/erb/scaffold/new.html.erb +7 -0
  69. data/lib/templates/erb/scaffold/show.html.erb +12 -0
  70. data/lib/templates/haml/scaffold/_form.html.haml +10 -0
  71. data/lib/templates/haml/scaffold/edit.html.haml +8 -0
  72. data/lib/templates/haml/scaffold/index.html.haml +21 -0
  73. data/lib/templates/haml/scaffold/new.html.haml +6 -0
  74. data/lib/templates/haml/scaffold/show.html.haml +10 -0
  75. data/spec/dummy/Rakefile +9 -0
  76. data/spec/dummy/app/assets/images/.keep +0 -0
  77. data/spec/dummy/app/assets/javascripts/application.js +16 -0
  78. data/spec/dummy/app/assets/stylesheets/application.scss +19 -0
  79. data/spec/dummy/app/assets/stylesheets/bootstrap-everything.scss +54 -0
  80. data/spec/dummy/app/controllers/application_controller.rb +6 -0
  81. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  82. data/spec/dummy/app/controllers/doo_dads_controller.rb +58 -0
  83. data/spec/dummy/app/controllers/erbits_controller.rb +58 -0
  84. data/spec/dummy/app/controllers/whatzits_controller.rb +58 -0
  85. data/spec/dummy/app/helpers/application_helper.rb +4 -0
  86. data/spec/dummy/app/mailers/application_mailer.rb +6 -0
  87. data/spec/dummy/app/models/application_record.rb +5 -0
  88. data/spec/dummy/app/models/concerns/.keep +0 -0
  89. data/spec/dummy/app/models/doo_dad.rb +3 -0
  90. data/spec/dummy/app/models/erbit.rb +2 -0
  91. data/spec/dummy/app/models/whatzit.rb +2 -0
  92. data/spec/dummy/app/views/doo_dads/_form.html.haml +16 -0
  93. data/spec/dummy/app/views/doo_dads/edit.html.haml +7 -0
  94. data/spec/dummy/app/views/doo_dads/index.html.haml +23 -0
  95. data/spec/dummy/app/views/doo_dads/new.html.haml +5 -0
  96. data/spec/dummy/app/views/doo_dads/show.html.haml +12 -0
  97. data/spec/dummy/app/views/erbits/_form.html.erb +5 -0
  98. data/spec/dummy/app/views/erbits/edit.html.erb +9 -0
  99. data/spec/dummy/app/views/erbits/index.html.erb +27 -0
  100. data/spec/dummy/app/views/erbits/new.html.erb +7 -0
  101. data/spec/dummy/app/views/erbits/show.html.erb +12 -0
  102. data/spec/dummy/app/views/layouts/application.html.haml +22 -0
  103. data/spec/dummy/app/views/pages/index.html.haml +1 -0
  104. data/spec/dummy/app/views/pages/style_guide.html.haml +801 -0
  105. data/spec/dummy/app/views/whatzits/_form.html.haml +4 -0
  106. data/spec/dummy/app/views/whatzits/edit.html.haml +8 -0
  107. data/spec/dummy/app/views/whatzits/index.html.haml +19 -0
  108. data/spec/dummy/app/views/whatzits/new.html.haml +6 -0
  109. data/spec/dummy/app/views/whatzits/show.html.haml +10 -0
  110. data/spec/dummy/bin/bundle +5 -0
  111. data/spec/dummy/bin/rails +6 -0
  112. data/spec/dummy/bin/rake +6 -0
  113. data/spec/dummy/bin/setup +36 -0
  114. data/spec/dummy/bin/update +31 -0
  115. data/spec/dummy/config/application.rb +36 -0
  116. data/spec/dummy/config/boot.rb +7 -0
  117. data/spec/dummy/config/cable.yml +9 -0
  118. data/spec/dummy/config/database.yml +25 -0
  119. data/spec/dummy/config/environment.rb +7 -0
  120. data/spec/dummy/config/environments/development.rb +57 -0
  121. data/spec/dummy/config/environments/test.rb +45 -0
  122. data/spec/dummy/config/initializers/application_controller_renderer.rb +7 -0
  123. data/spec/dummy/config/initializers/assets.rb +14 -0
  124. data/spec/dummy/config/initializers/backtrace_silencers.rb +10 -0
  125. data/spec/dummy/config/initializers/bootstrap_leather.rb +9 -0
  126. data/spec/dummy/config/initializers/cookies_serializer.rb +7 -0
  127. data/spec/dummy/config/initializers/filter_parameter_logging.rb +6 -0
  128. data/spec/dummy/config/initializers/high_voltage.rb +5 -0
  129. data/spec/dummy/config/initializers/inflections.rb +17 -0
  130. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  131. data/spec/dummy/config/initializers/new_framework_defaults.rb +29 -0
  132. data/spec/dummy/config/initializers/session_store.rb +5 -0
  133. data/spec/dummy/config/initializers/wrap_parameters.rb +17 -0
  134. data/spec/dummy/config/locales/en.yml +23 -0
  135. data/spec/dummy/config/puma.rb +49 -0
  136. data/spec/dummy/config/routes.rb +8 -0
  137. data/spec/dummy/config/secrets.yml +22 -0
  138. data/spec/dummy/config/spring.rb +8 -0
  139. data/spec/dummy/config.ru +7 -0
  140. data/spec/dummy/db/migrate/20170407151055_create_doo_dads.rb +10 -0
  141. data/spec/dummy/db/migrate/20170408145839_create_whatzits.rb +10 -0
  142. data/spec/dummy/db/migrate/20170408161201_create_erbits.rb +10 -0
  143. data/spec/dummy/db/schema.rb +36 -0
  144. data/spec/dummy/db/seeds.rb +7 -0
  145. data/spec/dummy/db/test.sqlite3 +0 -0
  146. data/spec/factories/doo_dad.rb +6 -0
  147. data/spec/factories/erbit.rb +6 -0
  148. data/spec/factories/whatzit.rb +6 -0
  149. data/spec/helpers/bootstrap_leather/alerts_helper_spec.rb +62 -0
  150. data/spec/helpers/bootstrap_leather/badges_helper_spec.rb +41 -0
  151. data/spec/helpers/bootstrap_leather/carousels_helper_spec.rb +44 -0
  152. data/spec/helpers/bootstrap_leather/foot_helper_spec.rb +20 -0
  153. data/spec/helpers/bootstrap_leather/grid_helper_spec.rb +10 -0
  154. data/spec/helpers/bootstrap_leather/head_helper_spec.rb +82 -0
  155. data/spec/helpers/bootstrap_leather/hero_unit_helper_spec.rb +20 -0
  156. data/spec/helpers/bootstrap_leather/icon_helper_spec.rb +48 -0
  157. data/spec/helpers/bootstrap_leather/modals_helper_spec.rb +22 -0
  158. data/spec/helpers/bootstrap_leather/navigation_helper_spec.rb +110 -0
  159. data/spec/helpers/bootstrap_leather/tabs_helper_spec.rb +39 -0
  160. data/spec/helpers/bootstrap_leather/thumbnails_helper_spec.rb +20 -0
  161. data/spec/helpers/bootstrap_leather/typography_helper_spec.rb +43 -0
  162. data/spec/helpers/bootstrap_leather/widgets_helper_spec.rb +22 -0
  163. data/spec/rails_helper.rb +88 -0
  164. data/spec/spec_helper.rb +102 -0
  165. metadata +360 -44
  166. data/.document +0 -5
  167. data/README.rdoc +0 -194
  168. data/app/helpers/bootstrap_leather_helper.rb +0 -232
  169. data/app/views/bootstrap_leather/_badge_to.html.haml +0 -4
  170. data/app/views/bootstrap_leather/_dropdown_nav_item.html.haml +0 -11
  171. data/app/views/bootstrap_leather/_navbar.html.haml +0 -39
  172. data/app/views/bootstrap_leather/_tabs.html.haml +0 -10
  173. data/app/views/bootstrap_leather/_widgets.html.haml +0 -9
  174. data/lib/bootstrap_leather/railtie.rb +0 -9
@@ -1,93 +1,255 @@
1
- # Generated by jeweler
1
+ # Generated by juwelier
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
3
+ # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: bootstrap_leather 0.9.4 ruby lib
5
+ # stub: bootstrap_leather 0.10.4 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
- s.name = "bootstrap_leather"
9
- s.version = "0.9.4"
8
+ s.name = "bootstrap_leather".freeze
9
+ s.version = "0.10.4"
10
10
 
11
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
- s.require_paths = ["lib"]
13
- s.authors = ["Karen Lundgren"]
14
- s.date = "2017-03-17"
15
- s.description = "BootstrapLeather is a collection of view helpers that makes it easier to create apps using Twitter Bootstrap"
16
- s.email = "karen.e.lundgren@gmail.com"
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib".freeze]
13
+ s.authors = ["Karen Lundgren".freeze]
14
+ s.date = "2017-04-08"
15
+ s.description = "BootstrapLeather is a collection of view helpers and scaffold generators that makes it easier to create apps using Twitter Bootstrap".freeze
16
+ s.email = "karen.e.lundgren@gmail.com".freeze
17
+ s.executables = ["rails".freeze]
17
18
  s.extra_rdoc_files = [
18
19
  "LICENSE.txt",
19
- "README.rdoc"
20
+ "README.md"
20
21
  ]
21
22
  s.files = [
22
- ".document",
23
23
  ".rspec",
24
+ ".rubocop.yml",
25
+ ".rubocop_todo.yml",
24
26
  ".ruby-gemset",
25
27
  ".ruby-version",
28
+ ".travis.yml",
26
29
  "Gemfile",
27
30
  "LICENSE.txt",
28
- "README.rdoc",
31
+ "README.md",
29
32
  "Rakefile",
30
33
  "VERSION",
31
- "app/helpers/bootstrap_leather_helper.rb",
32
- "app/views/bootstrap_leather/_alert.html.haml",
33
- "app/views/bootstrap_leather/_alert_flash_messages.html.haml",
34
- "app/views/bootstrap_leather/_badge.html.haml",
35
- "app/views/bootstrap_leather/_badge_to.html.haml",
36
- "app/views/bootstrap_leather/_carousel.html.haml",
37
- "app/views/bootstrap_leather/_carousel_with_thumbnails.html.haml",
38
- "app/views/bootstrap_leather/_definition_list.html.haml",
39
- "app/views/bootstrap_leather/_dropdown_nav_item.html.haml",
40
- "app/views/bootstrap_leather/_footer_javascript.html.haml",
41
- "app/views/bootstrap_leather/_head_css.html.haml",
42
- "app/views/bootstrap_leather/_hero_unit.html.haml",
43
- "app/views/bootstrap_leather/_icon.html.haml",
44
- "app/views/bootstrap_leather/_icon_button_to.html.haml",
45
- "app/views/bootstrap_leather/_icon_link_to.html.haml",
46
- "app/views/bootstrap_leather/_logo_and_title.html.haml",
47
- "app/views/bootstrap_leather/_modal.html.haml",
48
- "app/views/bootstrap_leather/_nav_heading.html.haml",
49
- "app/views/bootstrap_leather/_nav_item.html.haml",
50
- "app/views/bootstrap_leather/_nav_list.html.haml",
51
- "app/views/bootstrap_leather/_navbar.html.haml",
52
- "app/views/bootstrap_leather/_page_header.html.haml",
53
- "app/views/bootstrap_leather/_tabs.html.haml",
54
- "app/views/bootstrap_leather/_thumbnail.html.haml",
55
- "app/views/bootstrap_leather/_widgets.html.haml",
34
+ "app/helpers/bootstrap_leather/alerts_helper.rb",
35
+ "app/helpers/bootstrap_leather/application_helper.rb",
36
+ "app/helpers/bootstrap_leather/badges_helper.rb",
37
+ "app/helpers/bootstrap_leather/carousels_helper.rb",
38
+ "app/helpers/bootstrap_leather/foot_helper.rb",
39
+ "app/helpers/bootstrap_leather/grid_helper.rb",
40
+ "app/helpers/bootstrap_leather/head_helper.rb",
41
+ "app/helpers/bootstrap_leather/hero_unit_helper.rb",
42
+ "app/helpers/bootstrap_leather/icons_helper.rb",
43
+ "app/helpers/bootstrap_leather/modals_helper.rb",
44
+ "app/helpers/bootstrap_leather/navigation_helper.rb",
45
+ "app/helpers/bootstrap_leather/tabs_helper.rb",
46
+ "app/helpers/bootstrap_leather/thumbnails_helper.rb",
47
+ "app/helpers/bootstrap_leather/typography_helper.rb",
48
+ "app/helpers/bootstrap_leather/widgets_helper.rb",
49
+ "app/views/bootstrap_leather/alerts/_alert.html.haml",
50
+ "app/views/bootstrap_leather/alerts/_alert_flash_messages.html.haml",
51
+ "app/views/bootstrap_leather/badges/_badge.html.haml",
52
+ "app/views/bootstrap_leather/badges/_badge_to.html.haml",
53
+ "app/views/bootstrap_leather/carousels/_carousel.html.haml",
54
+ "app/views/bootstrap_leather/carousels/_carousel_with_thumbnails.html.haml",
55
+ "app/views/bootstrap_leather/foot/_footer_javascript.html.haml",
56
+ "app/views/bootstrap_leather/head/_head_css.html.haml",
57
+ "app/views/bootstrap_leather/hero_unit/_hero_unit.html.haml",
58
+ "app/views/bootstrap_leather/icons/_icon.html.haml",
59
+ "app/views/bootstrap_leather/icons/_icon_button_to.html.haml",
60
+ "app/views/bootstrap_leather/icons/_icon_link_to.html.haml",
61
+ "app/views/bootstrap_leather/modals/_modal.html.haml",
62
+ "app/views/bootstrap_leather/navigation/_dropdown_nav_item.html.haml",
63
+ "app/views/bootstrap_leather/navigation/_hamburger_menu.html.haml",
64
+ "app/views/bootstrap_leather/navigation/_logo_and_title.html.haml",
65
+ "app/views/bootstrap_leather/navigation/_nav_heading.html.haml",
66
+ "app/views/bootstrap_leather/navigation/_nav_item.html.haml",
67
+ "app/views/bootstrap_leather/navigation/_nav_list.html.haml",
68
+ "app/views/bootstrap_leather/navigation/_navbar.html.haml",
69
+ "app/views/bootstrap_leather/navigation/_navbar_contents.html.haml",
70
+ "app/views/bootstrap_leather/tabs/_tabs.html.haml",
71
+ "app/views/bootstrap_leather/thumbnails/_thumbnail.html.haml",
72
+ "app/views/bootstrap_leather/typography/_dl.html.haml",
73
+ "app/views/bootstrap_leather/typography/_page_header.html.haml",
74
+ "app/views/bootstrap_leather/widgets/_widgets.html.haml",
75
+ "bin/rails",
56
76
  "bootstrap_leather.gemspec",
77
+ "config/locales/en.yml",
57
78
  "lib/bootstrap_leather.rb",
58
79
  "lib/bootstrap_leather/configuration.rb",
59
80
  "lib/bootstrap_leather/engine.rb",
60
81
  "lib/bootstrap_leather/localization.rb",
61
- "lib/bootstrap_leather/railtie.rb",
62
82
  "lib/bootstrap_leather/version.rb",
63
83
  "lib/generators/bootstrap_leather/install/install_generator.rb",
64
84
  "lib/generators/bootstrap_leather/install/templates/initializer.rb",
65
- "lib/generators/bootstrap_leather/utils.rb"
85
+ "lib/generators/bootstrap_leather/utils.rb",
86
+ "lib/templates/erb/scaffold/_form.html.erb",
87
+ "lib/templates/erb/scaffold/edit.html.erb",
88
+ "lib/templates/erb/scaffold/index.html.erb",
89
+ "lib/templates/erb/scaffold/new.html.erb",
90
+ "lib/templates/erb/scaffold/show.html.erb",
91
+ "lib/templates/haml/scaffold/_form.html.haml",
92
+ "lib/templates/haml/scaffold/edit.html.haml",
93
+ "lib/templates/haml/scaffold/index.html.haml",
94
+ "lib/templates/haml/scaffold/new.html.haml",
95
+ "lib/templates/haml/scaffold/show.html.haml",
96
+ "spec/dummy/Rakefile",
97
+ "spec/dummy/app/assets/images/.keep",
98
+ "spec/dummy/app/assets/javascripts/application.js",
99
+ "spec/dummy/app/assets/stylesheets/application.scss",
100
+ "spec/dummy/app/assets/stylesheets/bootstrap-everything.scss",
101
+ "spec/dummy/app/controllers/application_controller.rb",
102
+ "spec/dummy/app/controllers/concerns/.keep",
103
+ "spec/dummy/app/controllers/doo_dads_controller.rb",
104
+ "spec/dummy/app/controllers/erbits_controller.rb",
105
+ "spec/dummy/app/controllers/whatzits_controller.rb",
106
+ "spec/dummy/app/helpers/application_helper.rb",
107
+ "spec/dummy/app/mailers/application_mailer.rb",
108
+ "spec/dummy/app/models/application_record.rb",
109
+ "spec/dummy/app/models/concerns/.keep",
110
+ "spec/dummy/app/models/doo_dad.rb",
111
+ "spec/dummy/app/models/erbit.rb",
112
+ "spec/dummy/app/models/whatzit.rb",
113
+ "spec/dummy/app/views/doo_dads/_form.html.haml",
114
+ "spec/dummy/app/views/doo_dads/edit.html.haml",
115
+ "spec/dummy/app/views/doo_dads/index.html.haml",
116
+ "spec/dummy/app/views/doo_dads/new.html.haml",
117
+ "spec/dummy/app/views/doo_dads/show.html.haml",
118
+ "spec/dummy/app/views/erbits/_form.html.erb",
119
+ "spec/dummy/app/views/erbits/edit.html.erb",
120
+ "spec/dummy/app/views/erbits/index.html.erb",
121
+ "spec/dummy/app/views/erbits/new.html.erb",
122
+ "spec/dummy/app/views/erbits/show.html.erb",
123
+ "spec/dummy/app/views/layouts/application.html.haml",
124
+ "spec/dummy/app/views/pages/index.html.haml",
125
+ "spec/dummy/app/views/pages/style_guide.html.haml",
126
+ "spec/dummy/app/views/whatzits/_form.html.haml",
127
+ "spec/dummy/app/views/whatzits/edit.html.haml",
128
+ "spec/dummy/app/views/whatzits/index.html.haml",
129
+ "spec/dummy/app/views/whatzits/new.html.haml",
130
+ "spec/dummy/app/views/whatzits/show.html.haml",
131
+ "spec/dummy/bin/bundle",
132
+ "spec/dummy/bin/rails",
133
+ "spec/dummy/bin/rake",
134
+ "spec/dummy/bin/setup",
135
+ "spec/dummy/bin/update",
136
+ "spec/dummy/config.ru",
137
+ "spec/dummy/config/application.rb",
138
+ "spec/dummy/config/boot.rb",
139
+ "spec/dummy/config/cable.yml",
140
+ "spec/dummy/config/database.yml",
141
+ "spec/dummy/config/environment.rb",
142
+ "spec/dummy/config/environments/development.rb",
143
+ "spec/dummy/config/environments/test.rb",
144
+ "spec/dummy/config/initializers/application_controller_renderer.rb",
145
+ "spec/dummy/config/initializers/assets.rb",
146
+ "spec/dummy/config/initializers/backtrace_silencers.rb",
147
+ "spec/dummy/config/initializers/bootstrap_leather.rb",
148
+ "spec/dummy/config/initializers/cookies_serializer.rb",
149
+ "spec/dummy/config/initializers/filter_parameter_logging.rb",
150
+ "spec/dummy/config/initializers/high_voltage.rb",
151
+ "spec/dummy/config/initializers/inflections.rb",
152
+ "spec/dummy/config/initializers/mime_types.rb",
153
+ "spec/dummy/config/initializers/new_framework_defaults.rb",
154
+ "spec/dummy/config/initializers/session_store.rb",
155
+ "spec/dummy/config/initializers/wrap_parameters.rb",
156
+ "spec/dummy/config/locales/en.yml",
157
+ "spec/dummy/config/puma.rb",
158
+ "spec/dummy/config/routes.rb",
159
+ "spec/dummy/config/secrets.yml",
160
+ "spec/dummy/config/spring.rb",
161
+ "spec/dummy/db/migrate/20170407151055_create_doo_dads.rb",
162
+ "spec/dummy/db/migrate/20170408145839_create_whatzits.rb",
163
+ "spec/dummy/db/migrate/20170408161201_create_erbits.rb",
164
+ "spec/dummy/db/schema.rb",
165
+ "spec/dummy/db/seeds.rb",
166
+ "spec/dummy/db/test.sqlite3",
167
+ "spec/factories/doo_dad.rb",
168
+ "spec/factories/erbit.rb",
169
+ "spec/factories/whatzit.rb",
170
+ "spec/helpers/bootstrap_leather/alerts_helper_spec.rb",
171
+ "spec/helpers/bootstrap_leather/badges_helper_spec.rb",
172
+ "spec/helpers/bootstrap_leather/carousels_helper_spec.rb",
173
+ "spec/helpers/bootstrap_leather/foot_helper_spec.rb",
174
+ "spec/helpers/bootstrap_leather/grid_helper_spec.rb",
175
+ "spec/helpers/bootstrap_leather/head_helper_spec.rb",
176
+ "spec/helpers/bootstrap_leather/hero_unit_helper_spec.rb",
177
+ "spec/helpers/bootstrap_leather/icon_helper_spec.rb",
178
+ "spec/helpers/bootstrap_leather/modals_helper_spec.rb",
179
+ "spec/helpers/bootstrap_leather/navigation_helper_spec.rb",
180
+ "spec/helpers/bootstrap_leather/tabs_helper_spec.rb",
181
+ "spec/helpers/bootstrap_leather/thumbnails_helper_spec.rb",
182
+ "spec/helpers/bootstrap_leather/typography_helper_spec.rb",
183
+ "spec/helpers/bootstrap_leather/widgets_helper_spec.rb",
184
+ "spec/rails_helper.rb",
185
+ "spec/spec_helper.rb"
66
186
  ]
67
- s.homepage = "http://www.gemvein.com/museum/cases/bootstrap_leather"
68
- s.licenses = ["MIT"]
69
- s.rubygems_version = "2.4.5.1"
70
- s.summary = "BootstrapLeather makes it easier to create apps using Twitter Bootstrap"
187
+ s.homepage = "http://www.gemvein.com/museum/cases/bootstrap_leather".freeze
188
+ s.licenses = ["MIT".freeze]
189
+ s.rubygems_version = "2.6.11".freeze
190
+ s.summary = "BootstrapLeather helps create apps using Twitter Bootstrap".freeze
71
191
 
72
192
  if s.respond_to? :specification_version then
73
193
  s.specification_version = 4
74
194
 
75
195
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
76
- s.add_runtime_dependency(%q<bootstrap-sass>, ["< 4", ">= 3.1"])
77
- s.add_runtime_dependency(%q<rails>, ["< 6", ">= 4"])
78
- s.add_runtime_dependency(%q<haml>, ["~> 4"])
79
- s.add_runtime_dependency(%q<jeweler>, ["~> 2"])
196
+ s.add_runtime_dependency(%q<rails>.freeze, ["< 6", ">= 4"])
197
+ s.add_runtime_dependency(%q<rails-i18n>.freeze, ["< 6", ">= 4"])
198
+ s.add_runtime_dependency(%q<haml-rails>.freeze, ["~> 0.9"])
199
+ s.add_runtime_dependency(%q<jquery-rails>.freeze, ["~> 4"])
200
+ s.add_runtime_dependency(%q<bootstrap_form>.freeze, ["~> 2"])
201
+ s.add_development_dependency(%q<bundler>.freeze, ["~> 1.0"])
202
+ s.add_development_dependency(%q<juwelier>.freeze, ["~> 2"])
203
+ s.add_development_dependency(%q<rspec>.freeze, ["~> 3.5.0"])
204
+ s.add_development_dependency(%q<rubocop>.freeze, [">= 0.48"])
205
+ s.add_development_dependency(%q<bootstrap-sass>.freeze, ["~> 3.3"])
206
+ s.add_development_dependency(%q<byebug>.freeze, ["~> 9"])
207
+ s.add_development_dependency(%q<factory_girl_rails>.freeze, ["~> 4.5"])
208
+ s.add_development_dependency(%q<faker>.freeze, ["~> 1.4"])
209
+ s.add_development_dependency(%q<high_voltage>.freeze, ["~> 3"])
210
+ s.add_development_dependency(%q<rspec-its>.freeze, [">= 1"])
211
+ s.add_development_dependency(%q<rspec-rails>.freeze, ["~> 3.5"])
212
+ s.add_development_dependency(%q<seedbank>.freeze, ["~> 0.3"])
213
+ s.add_development_dependency(%q<sqlite3>.freeze, ["~> 1.3"])
80
214
  else
81
- s.add_dependency(%q<bootstrap-sass>, ["< 4", ">= 3.1"])
82
- s.add_dependency(%q<rails>, ["< 6", ">= 4"])
83
- s.add_dependency(%q<haml>, ["~> 4"])
84
- s.add_dependency(%q<jeweler>, ["~> 2"])
215
+ s.add_dependency(%q<rails>.freeze, ["< 6", ">= 4"])
216
+ s.add_dependency(%q<rails-i18n>.freeze, ["< 6", ">= 4"])
217
+ s.add_dependency(%q<haml-rails>.freeze, ["~> 0.9"])
218
+ s.add_dependency(%q<jquery-rails>.freeze, ["~> 4"])
219
+ s.add_dependency(%q<bootstrap_form>.freeze, ["~> 2"])
220
+ s.add_dependency(%q<bundler>.freeze, ["~> 1.0"])
221
+ s.add_dependency(%q<juwelier>.freeze, ["~> 2"])
222
+ s.add_dependency(%q<rspec>.freeze, ["~> 3.5.0"])
223
+ s.add_dependency(%q<rubocop>.freeze, [">= 0.48"])
224
+ s.add_dependency(%q<bootstrap-sass>.freeze, ["~> 3.3"])
225
+ s.add_dependency(%q<byebug>.freeze, ["~> 9"])
226
+ s.add_dependency(%q<factory_girl_rails>.freeze, ["~> 4.5"])
227
+ s.add_dependency(%q<faker>.freeze, ["~> 1.4"])
228
+ s.add_dependency(%q<high_voltage>.freeze, ["~> 3"])
229
+ s.add_dependency(%q<rspec-its>.freeze, [">= 1"])
230
+ s.add_dependency(%q<rspec-rails>.freeze, ["~> 3.5"])
231
+ s.add_dependency(%q<seedbank>.freeze, ["~> 0.3"])
232
+ s.add_dependency(%q<sqlite3>.freeze, ["~> 1.3"])
85
233
  end
86
234
  else
87
- s.add_dependency(%q<bootstrap-sass>, ["< 4", ">= 3.1"])
88
- s.add_dependency(%q<rails>, ["< 6", ">= 4"])
89
- s.add_dependency(%q<haml>, ["~> 4"])
90
- s.add_dependency(%q<jeweler>, ["~> 2"])
235
+ s.add_dependency(%q<rails>.freeze, ["< 6", ">= 4"])
236
+ s.add_dependency(%q<rails-i18n>.freeze, ["< 6", ">= 4"])
237
+ s.add_dependency(%q<haml-rails>.freeze, ["~> 0.9"])
238
+ s.add_dependency(%q<jquery-rails>.freeze, ["~> 4"])
239
+ s.add_dependency(%q<bootstrap_form>.freeze, ["~> 2"])
240
+ s.add_dependency(%q<bundler>.freeze, ["~> 1.0"])
241
+ s.add_dependency(%q<juwelier>.freeze, ["~> 2"])
242
+ s.add_dependency(%q<rspec>.freeze, ["~> 3.5.0"])
243
+ s.add_dependency(%q<rubocop>.freeze, [">= 0.48"])
244
+ s.add_dependency(%q<bootstrap-sass>.freeze, ["~> 3.3"])
245
+ s.add_dependency(%q<byebug>.freeze, ["~> 9"])
246
+ s.add_dependency(%q<factory_girl_rails>.freeze, ["~> 4.5"])
247
+ s.add_dependency(%q<faker>.freeze, ["~> 1.4"])
248
+ s.add_dependency(%q<high_voltage>.freeze, ["~> 3"])
249
+ s.add_dependency(%q<rspec-its>.freeze, [">= 1"])
250
+ s.add_dependency(%q<rspec-rails>.freeze, ["~> 3.5"])
251
+ s.add_dependency(%q<seedbank>.freeze, ["~> 0.3"])
252
+ s.add_dependency(%q<sqlite3>.freeze, ["~> 1.3"])
91
253
  end
92
254
  end
93
255
 
@@ -0,0 +1,9 @@
1
+ en:
2
+ are_you_sure: 'Are you sure?'
3
+ back: 'Back'
4
+ destroy: 'Destroy'
5
+ edit: 'Edit'
6
+ editing: 'Editing %{name}'
7
+ new: 'New %{name}'
8
+ show: 'Show'
9
+ showing: 'Showing %{name}'
@@ -1,24 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Configuration for the BootstrapLeather module
1
4
  module BootstrapLeather
2
5
  def self.configure(configuration = BootstrapLeather::Configuration.new)
3
- if block_given?
4
- yield configuration
5
- end
6
- @@configuration = configuration
6
+ yield configuration if block_given?
7
+ @configuration = configuration
7
8
  end
8
-
9
+
9
10
  def self.configuration
10
- @@configuration ||= BootstrapLeather::Configuration.new
11
+ @configuration ||= BootstrapLeather::Configuration.new
11
12
  end
12
-
13
+
14
+ # Configuration class
13
15
  class Configuration
14
- attr_accessor :application_title, :application_description, :application_keywords, :application_path, :application_logo
15
-
16
+ attr_accessor :application_title, :application_description,
17
+ :application_keywords, :application_path, :application_logo
18
+
16
19
  def initialize
17
20
  self.application_logo = '/assets/logo.svg'
18
21
  self.application_path = '/'
19
22
  self.application_title = 'Run the Generator, Config and Restart'
20
- self.application_description = 'Try it, very easy. `rails g bootstrap_leather:install` is the generator command.'
21
- self.application_keywords = 'Then,fix,your,config,file'
23
+ self.application_description = 'Try it, very easy. `rails g '\
24
+ 'bootstrap_leather:install` is the generator command.'
25
+ self.application_keywords = 'Then, fix, your, config, file'
22
26
  end
23
27
  end
24
- end
28
+ end
@@ -1,5 +1,20 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module BootstrapLeather
2
- class Engine < Rails::Engine
3
- # isolate_namespace BootstrapLeather
4
- end
5
- end
4
+ # Some documentation goes here
5
+ class Engine < ::Rails::Engine
6
+ isolate_namespace BootstrapLeather
7
+ config.app_generators do |g|
8
+ g.templates.unshift BootstrapLeather::Engine.root.join('lib/templates')
9
+ end
10
+ config.generators do |g|
11
+ g.templates.unshift BootstrapLeather::Engine.root.join('lib/templates')
12
+ g.hidden_namespaces << :test_unit << :mongoid
13
+ g.orm :active_record
14
+ g.template_engine :haml
15
+ g.test_framework :rspec, fixture: false
16
+ g.stylesheets false
17
+ g.javascripts false
18
+ end
19
+ end
20
+ end
@@ -1,31 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Enables 'text to translate'.l
1
4
  module StringExtension
2
5
  def localize(*args)
3
- if args.first.is_a? Symbol
4
- sym = args.shift
5
- else
6
- sym = underscore.tr(' ', '_').gsub(/[^a-z0-9_]+/i, '').to_sym
7
- end
8
- args << {:default => self}
9
-
6
+ sym = if args.first.is_a? Symbol
7
+ args.shift
8
+ else
9
+ underscore.tr(' ', '_').gsub(/[^a-z0-9_]+/i, '').to_sym
10
+ end
11
+ args << { default: self }
12
+
10
13
  I18n.t(sym, *args).html_safe
11
14
  end
12
- alias :l :localize
13
- end
15
+ alias l localize
16
+ end
17
+
14
18
  String.send :include, StringExtension
15
-
16
-
19
+
20
+ # Enables :text_to_translate.l
17
21
  module SymbolExtensionCustom
18
-
19
22
  def localize_with_debugging(*args)
20
23
  localized_sym = I18n.translate(self, *args)
21
24
  localized_sym.is_a?(String) ? localized_sym.html_safe : localized_sym
22
25
  end
23
- alias_method :l, :localize_with_debugging
24
-
26
+ alias l localize_with_debugging
27
+
25
28
  def l_with_args(*args)
26
- self.l(*args).html_safe
29
+ l(*args).html_safe
27
30
  end
28
-
29
31
  end
30
-
31
- Symbol.send :include, SymbolExtensionCustom
32
+
33
+ Symbol.send :include, SymbolExtensionCustom
@@ -1,6 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Message Train module
1
4
  module BootstrapLeather
2
5
  VERSION = File.read(File.expand_path('../../../VERSION', __FILE__))
3
-
6
+
4
7
  def self.version_string
5
8
  "BootstrapLeather version #{BootstrapLeather::VERSION}"
6
9
  end
@@ -1,10 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bootstrap_leather/engine'
4
+
5
+ # Bootstrap Leather module
1
6
  module BootstrapLeather
2
7
  require 'rails'
3
8
 
4
9
  require 'bootstrap_leather/configuration'
5
10
  require 'bootstrap_leather/engine'
6
11
  require 'bootstrap_leather/localization'
7
- require 'bootstrap_leather/railtie'
12
+ # require 'bootstrap_leather/railtie'
8
13
  require 'bootstrap_leather/version'
9
-
10
14
  end
@@ -1,28 +1,30 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module BootstrapLeather
4
+ # The methods in this class will be run in order
2
5
  class InstallGenerator < Rails::Generators::Base
3
- source_root File.expand_path("../templates", __FILE__)
6
+ source_root File.expand_path('../templates', __FILE__)
4
7
  require File.expand_path('../../utils', __FILE__)
5
8
  include Generators::Utils
6
9
  include Rails::Generators::Migration
7
10
 
8
- # all public methods in here will be run in order
9
-
10
11
  def add_initializer
11
- output "You'll be wanting an initializer. This is where you put your configuration options.", :magenta
12
- template "initializer.rb", "config/initializers/bootstrap_leather.rb"
13
- end
14
-
15
- def self.next_migration_number(dirname)
16
- if ActiveRecord::Base.timestamped_migrations
17
- unless @prev_migration_nr
18
- @prev_migration_nr = Time.now.utc.strftime("%Y%m%d%H%M%S").to_i
19
- else
20
- @prev_migration_nr += 1
21
- end
22
- @prev_migration_nr.to_s
23
- else
24
- "%.3d" % (current_migration_number(dirname) + 1)
25
- end
12
+ output "You'll be wanting an initializer. This is where you put your "\
13
+ 'configuration options.', :magenta
14
+ template 'initializer.rb', 'config/initializers/bootstrap_leather.rb'
26
15
  end
16
+
17
+ # def self.next_migration_number(dirname)
18
+ # if ActiveRecord::Base.timestamped_migrations
19
+ # if @prev_migration_nr
20
+ # @prev_migration_nr += 1
21
+ # else
22
+ # @prev_migration_nr = Time.now.utc.strftime('%Y%m%d%H%M%S').to_i
23
+ # end
24
+ # @prev_migration_nr.to_s
25
+ # else
26
+ # (current_migration_number(dirname) + 1).format('%.3d')
27
+ # end
28
+ # end
27
29
  end
28
- end
30
+ end
@@ -1,7 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  BootstrapLeather.configure do |config|
2
4
  config.application_logo = '/assets/logo.svg'
3
5
  config.application_path = '/'
4
6
  config.application_title = 'Change the Config'
5
7
  config.application_description = 'Remember to restart when done'
6
8
  config.application_keywords = 'unfinished, incomplete, unready'
7
- end
9
+ end
@@ -1,16 +1,25 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module BootstrapLeather
2
4
  module Generators
5
+ # Utilities for generators
3
6
  module Utils
4
7
  def output(output, color = :green)
5
8
  say(" - #{output}", color)
6
9
  end
7
10
 
8
11
  def ask_for(wording, default_value = nil, override_if_present_value = nil)
9
- override_if_present_value.present? ?
10
- display("Using [#{override_if_present_value}] for question '#{wording}'") && override_if_present_value :
11
- ask(" ? #{wording} Press <enter> for [#{default_value}] >", :yellow).presence || default_value
12
+ if override_if_present_value.present?
13
+ display(
14
+ "Using [#{override_if_present_value}] for question '#{wording}'"
15
+ ) && override_if_present_value
16
+ else
17
+ ask(
18
+ " ? #{wording} Press <enter> for [#{default_value}] >",
19
+ :yellow
20
+ ).presence || default_value
21
+ end
12
22
  end
13
23
  end
14
24
  end
15
25
  end
16
-
@@ -0,0 +1,11 @@
1
+ <%%= bootstrap_form_for(<%= singular_table_name %>) do |f| %>
2
+ <% attributes.each do |attribute| -%>
3
+ <% if attribute.password_digest? -%>
4
+ <%%= f.password_field :password %>
5
+ <%%= f.password_field :password_confirmation %>
6
+ <% else -%>
7
+ <%%= f.<%= attribute.field_type %> :<%= attribute.column_name %> %>
8
+ <% end -%>
9
+ <% end -%>
10
+ <%%= f.submit %>
11
+ <%% end %>
@@ -0,0 +1,9 @@
1
+ <%% add_title :editing.l(name: '<%= singular_table_name.titleize %>') %>
2
+
3
+ <%%= render 'form', <%= singular_table_name %>: @<%= singular_table_name %> %>
4
+
5
+ <p>
6
+ <%%= link_to :show.l, @<%= singular_table_name %> %>
7
+ |
8
+ <%%= link_to :back.l, <%= index_helper %>_path %>
9
+ </p>
@@ -0,0 +1,29 @@
1
+ <%% add_title '<%= plural_table_name.titleize %>' %>
2
+
3
+ <table class="table table-bordered">
4
+ <thead>
5
+ <tr>
6
+ <% attributes.reject(&:password_digest?).each do |attribute| -%>
7
+ <th><%= attribute.human_name %></th>
8
+ <% end -%>
9
+ <th colspan="3"></th>
10
+ </tr>
11
+ </thead>
12
+
13
+ <tbody>
14
+ <%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %>
15
+ <tr>
16
+ <% attributes.reject(&:password_digest?).each do |attribute| -%>
17
+ <td><%%= <%= singular_table_name %>.<%= attribute.name %> %></td>
18
+ <% end -%>
19
+ <td><%%= link_to :show.l, <%= singular_table_name %>, class: 'btn btn-success' %></td>
20
+ <td><%%= link_to :edit.l, edit_<%= singular_table_name %>_path(<%= singular_table_name %>), class: 'btn btn-info' %></td>
21
+ <td><%%= link_to :destroy.l, <%= singular_table_name %>, method: :delete, class: 'btn btn-danger', data: { confirm: :are_you_sure.l } %></td>
22
+ </tr>
23
+ <%% end %>
24
+ </tbody>
25
+ </table>
26
+
27
+ <p>
28
+ <%%= link_to :new.l(name: '<%= singular_table_name.titleize %>'), new_<%= singular_table_name %>_path, class: 'btn btn-primary' %>
29
+ </p>
@@ -0,0 +1,7 @@
1
+ <%% add_title :new.l(name: '<%= singular_table_name.titleize %>') %>
2
+
3
+ <%%= render 'form', <%= singular_table_name %>: @<%= singular_table_name %> %>
4
+
5
+ <p>
6
+ <%%= link_to :back.l, <%= index_helper %>_path %>
7
+ </p>
@@ -0,0 +1,12 @@
1
+ <%% add_title :showing.l(name: '<%= singular_table_name.titleize %>') %>
2
+ <dl>
3
+ <% attributes.reject(&:password_digest?).each do |attribute| -%>
4
+ <dt><%= attribute.human_name %>:</dt>
5
+ <dd><%%= @<%= singular_table_name %>.<%= attribute.name %> %></dd>
6
+ <% end -%>
7
+ </dl>
8
+ <p>
9
+ <%%= link_to :edit.l, edit_<%= singular_table_name %>_path(@<%= singular_table_name %>) %>
10
+ |
11
+ <%%= link_to :back.l, <%= index_helper %>_path %>
12
+ </p>