myrails 1.0.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 (78) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE.txt +21 -0
  4. data/README.md +74 -0
  5. data/Rakefile +6 -0
  6. data/bin/console +14 -0
  7. data/bin/myrails +3 -0
  8. data/bin/setup +8 -0
  9. data/lib/myrails/templates/assets/animate.scss +3340 -0
  10. data/lib/myrails/templates/assets/application.css.sass +6 -0
  11. data/lib/myrails/templates/assets/application.js +10 -0
  12. data/lib/myrails/templates/assets/bootstrap_themes/cerulean.scss +11 -0
  13. data/lib/myrails/templates/assets/bootstrap_themes/cosmo.scss +11 -0
  14. data/lib/myrails/templates/assets/bootstrap_themes/cyborg.scss +11 -0
  15. data/lib/myrails/templates/assets/bootstrap_themes/darkly.scss +11 -0
  16. data/lib/myrails/templates/assets/bootstrap_themes/flatly.scss +11 -0
  17. data/lib/myrails/templates/assets/bootstrap_themes/journal.scss +11 -0
  18. data/lib/myrails/templates/assets/bootstrap_themes/lumen.scss +11 -0
  19. data/lib/myrails/templates/assets/bootstrap_themes/paper.scss +11 -0
  20. data/lib/myrails/templates/assets/bootstrap_themes/readable.scss +11 -0
  21. data/lib/myrails/templates/assets/bootstrap_themes/sandstone.scss +11 -0
  22. data/lib/myrails/templates/assets/bootstrap_themes/simplex.scss +11 -0
  23. data/lib/myrails/templates/assets/bootstrap_themes/slate.scss +11 -0
  24. data/lib/myrails/templates/assets/bootstrap_themes/spacelab.scss +11 -0
  25. data/lib/myrails/templates/assets/bootstrap_themes/superhero.scss +11 -0
  26. data/lib/myrails/templates/assets/bootstrap_themes/united.scss +11 -0
  27. data/lib/myrails/templates/assets/bootstrap_themes/yeti.scss +11 -0
  28. data/lib/myrails/templates/assets/will_paginate.scss +104 -0
  29. data/lib/myrails/templates/db/mysql_database.yml +55 -0
  30. data/lib/myrails/templates/db/sqlite3_database.yml +28 -0
  31. data/lib/myrails/templates/heroku/Procfile +1 -0
  32. data/lib/myrails/templates/heroku/puma.rb +15 -0
  33. data/lib/myrails/templates/layout/_error_messages.html.haml +6 -0
  34. data/lib/myrails/templates/layout/_info_messages.html.haml +9 -0
  35. data/lib/myrails/templates/layout/_nav.html.haml +24 -0
  36. data/lib/myrails/templates/layout/_success_message.html.haml +3 -0
  37. data/lib/myrails/templates/layout/application.html.haml +14 -0
  38. data/lib/myrails/templates/layout/footers/css/footer-distributed-with-address-and-phones.scss +168 -0
  39. data/lib/myrails/templates/layout/footers/css/footer-distributed-with-contact-form.scss +200 -0
  40. data/lib/myrails/templates/layout/footers/css/footer-distributed-with-search.scss +140 -0
  41. data/lib/myrails/templates/layout/footers/css/footer-distributed.scss +74 -0
  42. data/lib/myrails/templates/layout/footers/footer-distributed-with-address-and-phones.html.haml +45 -0
  43. data/lib/myrails/templates/layout/footers/footer-distributed-with-contact-form.html.haml +33 -0
  44. data/lib/myrails/templates/layout/footers/footer-distributed-with-search.html.haml +19 -0
  45. data/lib/myrails/templates/layout/footers/footer-distributed.html.haml +24 -0
  46. data/lib/myrails/templates/mailer/dev_mail_interceptor.rb +27 -0
  47. data/lib/myrails/templates/mailer/sendgrid.rb +8 -0
  48. data/lib/myrails/templates/presenters/base.rb +33 -0
  49. data/lib/myrails/templates/presenters/presenter.rb +19 -0
  50. data/lib/myrails/templates/presenters/presenter_config.rb +4 -0
  51. data/lib/myrails/templates/presenters/presenter_spec.rb +17 -0
  52. data/lib/myrails/templates/rails/application_helper.rb +49 -0
  53. data/lib/myrails/templates/rails/controller.rb +12 -0
  54. data/lib/myrails/templates/rails/model.rb +2 -0
  55. data/lib/myrails/templates/rails/pundit.rb +26 -0
  56. data/lib/myrails/templates/rspec/controller.rb +98 -0
  57. data/lib/myrails/templates/rspec/database_cleaner.rb +18 -0
  58. data/lib/myrails/templates/rspec/devise.rb +38 -0
  59. data/lib/myrails/templates/rspec/factory.rb +5 -0
  60. data/lib/myrails/templates/rspec/factory_girl.rb +3 -0
  61. data/lib/myrails/templates/rspec/files.rb +3 -0
  62. data/lib/myrails/templates/rspec/javascript.rb +8 -0
  63. data/lib/myrails/templates/rspec/mailer.rb +7 -0
  64. data/lib/myrails/templates/rspec/model.rb +5 -0
  65. data/lib/myrails/templates/rspec/pundit.rb +28 -0
  66. data/lib/myrails/templates/rspec/pundit_matchers.rb +47 -0
  67. data/lib/myrails/templates/rspec/router.rb +7 -0
  68. data/lib/myrails/templates/rspec/shoulda_matchers.rb +16 -0
  69. data/lib/myrails/templates/rspec/silence_backtrace.rb +8 -0
  70. data/lib/myrails/templates/ui/index.html.haml +6 -0
  71. data/lib/myrails/templates/ui/ui_controller.rb +8 -0
  72. data/lib/myrails/version.rb +3 -0
  73. data/lib/myrails.rb +399 -0
  74. data/myrails.gemspec +37 -0
  75. data/spec/controllers/sam_controller_spec.rb +98 -0
  76. data/spec/myrails_spec.rb +11 -0
  77. data/spec/spec_helper.rb +2 -0
  78. metadata +197 -0
metadata ADDED
@@ -0,0 +1,197 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: myrails
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Vell
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-09-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.13'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.13'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: activesupport
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 5.0.0.1
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 5.0.0.1
69
+ - !ruby/object:Gem::Dependency
70
+ name: thor
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.19.1
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.19.1
83
+ description: Generates files with with boiler plate code. Supports pundit, presenters,
84
+ installing of themes from bootswatch and others.
85
+ email:
86
+ - lovell.mcilwain@gmail.com
87
+ executables:
88
+ - myrails
89
+ extensions: []
90
+ extra_rdoc_files: []
91
+ files:
92
+ - Gemfile
93
+ - LICENSE.txt
94
+ - README.md
95
+ - Rakefile
96
+ - bin/console
97
+ - bin/myrails
98
+ - bin/setup
99
+ - lib/myrails.rb
100
+ - lib/myrails/templates/assets/animate.scss
101
+ - lib/myrails/templates/assets/application.css.sass
102
+ - lib/myrails/templates/assets/application.js
103
+ - lib/myrails/templates/assets/bootstrap_themes/cerulean.scss
104
+ - lib/myrails/templates/assets/bootstrap_themes/cosmo.scss
105
+ - lib/myrails/templates/assets/bootstrap_themes/cyborg.scss
106
+ - lib/myrails/templates/assets/bootstrap_themes/darkly.scss
107
+ - lib/myrails/templates/assets/bootstrap_themes/flatly.scss
108
+ - lib/myrails/templates/assets/bootstrap_themes/journal.scss
109
+ - lib/myrails/templates/assets/bootstrap_themes/lumen.scss
110
+ - lib/myrails/templates/assets/bootstrap_themes/paper.scss
111
+ - lib/myrails/templates/assets/bootstrap_themes/readable.scss
112
+ - lib/myrails/templates/assets/bootstrap_themes/sandstone.scss
113
+ - lib/myrails/templates/assets/bootstrap_themes/simplex.scss
114
+ - lib/myrails/templates/assets/bootstrap_themes/slate.scss
115
+ - lib/myrails/templates/assets/bootstrap_themes/spacelab.scss
116
+ - lib/myrails/templates/assets/bootstrap_themes/superhero.scss
117
+ - lib/myrails/templates/assets/bootstrap_themes/united.scss
118
+ - lib/myrails/templates/assets/bootstrap_themes/yeti.scss
119
+ - lib/myrails/templates/assets/will_paginate.scss
120
+ - lib/myrails/templates/db/mysql_database.yml
121
+ - lib/myrails/templates/db/sqlite3_database.yml
122
+ - lib/myrails/templates/heroku/Procfile
123
+ - lib/myrails/templates/heroku/puma.rb
124
+ - lib/myrails/templates/layout/_error_messages.html.haml
125
+ - lib/myrails/templates/layout/_info_messages.html.haml
126
+ - lib/myrails/templates/layout/_nav.html.haml
127
+ - lib/myrails/templates/layout/_success_message.html.haml
128
+ - lib/myrails/templates/layout/application.html.haml
129
+ - lib/myrails/templates/layout/footers/css/footer-distributed-with-address-and-phones.scss
130
+ - lib/myrails/templates/layout/footers/css/footer-distributed-with-contact-form.scss
131
+ - lib/myrails/templates/layout/footers/css/footer-distributed-with-search.scss
132
+ - lib/myrails/templates/layout/footers/css/footer-distributed.scss
133
+ - lib/myrails/templates/layout/footers/footer-distributed-with-address-and-phones.html.haml
134
+ - lib/myrails/templates/layout/footers/footer-distributed-with-contact-form.html.haml
135
+ - lib/myrails/templates/layout/footers/footer-distributed-with-search.html.haml
136
+ - lib/myrails/templates/layout/footers/footer-distributed.html.haml
137
+ - lib/myrails/templates/mailer/dev_mail_interceptor.rb
138
+ - lib/myrails/templates/mailer/sendgrid.rb
139
+ - lib/myrails/templates/presenters/base.rb
140
+ - lib/myrails/templates/presenters/presenter.rb
141
+ - lib/myrails/templates/presenters/presenter_config.rb
142
+ - lib/myrails/templates/presenters/presenter_spec.rb
143
+ - lib/myrails/templates/rails/application_helper.rb
144
+ - lib/myrails/templates/rails/controller.rb
145
+ - lib/myrails/templates/rails/model.rb
146
+ - lib/myrails/templates/rails/pundit.rb
147
+ - lib/myrails/templates/rspec/controller.rb
148
+ - lib/myrails/templates/rspec/database_cleaner.rb
149
+ - lib/myrails/templates/rspec/devise.rb
150
+ - lib/myrails/templates/rspec/factory.rb
151
+ - lib/myrails/templates/rspec/factory_girl.rb
152
+ - lib/myrails/templates/rspec/files.rb
153
+ - lib/myrails/templates/rspec/javascript.rb
154
+ - lib/myrails/templates/rspec/mailer.rb
155
+ - lib/myrails/templates/rspec/model.rb
156
+ - lib/myrails/templates/rspec/pundit.rb
157
+ - lib/myrails/templates/rspec/pundit_matchers.rb
158
+ - lib/myrails/templates/rspec/router.rb
159
+ - lib/myrails/templates/rspec/shoulda_matchers.rb
160
+ - lib/myrails/templates/rspec/silence_backtrace.rb
161
+ - lib/myrails/templates/ui/index.html.haml
162
+ - lib/myrails/templates/ui/ui_controller.rb
163
+ - lib/myrails/version.rb
164
+ - myrails.gemspec
165
+ - spec/controllers/sam_controller_spec.rb
166
+ - spec/myrails_spec.rb
167
+ - spec/spec_helper.rb
168
+ homepage: https://github.com/vmcilwain/myrails
169
+ licenses:
170
+ - MIT
171
+ metadata:
172
+ allowed_push_host: https://rubygems.org
173
+ post_install_message:
174
+ rdoc_options: []
175
+ require_paths:
176
+ - lib
177
+ required_ruby_version: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - ">="
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
182
+ required_rubygems_version: !ruby/object:Gem::Requirement
183
+ requirements:
184
+ - - ">="
185
+ - !ruby/object:Gem::Version
186
+ version: '0'
187
+ requirements: []
188
+ rubyforge_project:
189
+ rubygems_version: 2.5.1
190
+ signing_key:
191
+ specification_version: 4
192
+ summary: A thor backed generator for generating rails related files based on my style
193
+ of coding
194
+ test_files:
195
+ - spec/controllers/sam_controller_spec.rb
196
+ - spec/myrails_spec.rb
197
+ - spec/spec_helper.rb