pah 0.0.14 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +23 -0
  3. data/CONTRIBUTING.md +2 -3
  4. data/LICENSE.txt +1 -1
  5. data/README.md +0 -1
  6. data/features/bourbon.feature +23 -0
  7. data/features/bullet.feature +2 -1
  8. data/features/canonical_host.feature +2 -1
  9. data/features/capybara.feature +2 -1
  10. data/features/database.feature +2 -1
  11. data/features/env.feature +2 -1
  12. data/features/gemfile.feature +3 -2
  13. data/features/generators.feature +2 -1
  14. data/features/git.feature +2 -1
  15. data/features/heroku.feature +2 -1
  16. data/features/jumpup.feature +2 -1
  17. data/features/layout.feature +2 -2
  18. data/features/letter_opener.feature +2 -1
  19. data/features/locale.feature +4 -3
  20. data/features/newrelic.feature +2 -1
  21. data/features/public.feature +2 -1
  22. data/features/puma.feature +2 -1
  23. data/features/rack_deflater.feature +2 -1
  24. data/features/rack_timeout.feature +2 -1
  25. data/features/rails_works.feature +4 -2
  26. data/features/readme.feature +2 -1
  27. data/features/remove_unused_files.feature +2 -1
  28. data/features/rollbar.feature +3 -2
  29. data/features/rspec.feature +3 -1
  30. data/features/run_specs.feature +2 -1
  31. data/features/runner.feature +42 -4
  32. data/features/secret_token.feature +2 -1
  33. data/features/secure_headers.feature +2 -1
  34. data/features/sendgrid.feature +2 -1
  35. data/features/simple_form.feature +2 -1
  36. data/features/step_definitions/create_simple_app.rb +19 -9
  37. data/features/step_definitions/file_content.rb +5 -0
  38. data/features/support/env.rb +3 -0
  39. data/lib/pah/files/Gemfile +24 -25
  40. data/lib/pah/files/app/views/application/_flash_messages.html.slim +3 -4
  41. data/lib/pah/files/app/views/layouts/application.html.slim +4 -33
  42. data/lib/pah/files/config/initializers/rack_timeout.rb +3 -1
  43. data/lib/pah/files/spec/acceptance/dummy_spec.rb +2 -2
  44. data/lib/pah/files/spec/rails_helper.rb +19 -0
  45. data/lib/pah/files/spec/spec_helper.rb +10 -43
  46. data/lib/pah/pah.rb +64 -0
  47. data/lib/pah/partials/_bourbon.rb +25 -0
  48. data/lib/pah/partials/_heroku.rb +16 -9
  49. data/lib/pah/partials/_layout.rb +1 -2
  50. data/lib/pah/partials/_locale.rb +2 -2
  51. data/lib/pah/partials/_rack_deflater.rb +1 -1
  52. data/lib/pah/partials/_rollbar.rb +1 -1
  53. data/lib/pah/partials/_rspec.rb +1 -0
  54. data/lib/pah/template.rb +2 -58
  55. data/lib/pah/version.rb +2 -2
  56. metadata +9 -15
  57. data/features/assets.feature +0 -13
  58. data/lib/pah/files/app/assets/javascripts/application.js +0 -33
  59. data/lib/pah/files/app/assets/stylesheets/_variables.scss +0 -39
  60. data/lib/pah/files/app/assets/stylesheets/application.scss +0 -5
  61. data/lib/pah/files/app/assets/stylesheets/form.scss +0 -248
  62. data/lib/pah/files/app/assets/stylesheets/general.scss +0 -47
  63. data/lib/pah/files/app/assets/stylesheets/reset.scss +0 -75
  64. data/lib/pah/files/app/assets/stylesheets/responsive.scss +0 -97
  65. data/lib/pah/files/app/views/application/_error_messages.html.slim +0 -5
  66. data/lib/pah/partials/_assets.rb +0 -12
@@ -1,47 +0,0 @@
1
- @charset "utf-8";
2
-
3
- /* General Styles */
4
- header {
5
- height: 50px;
6
- margin-bottom: 10px;
7
- background: $lighter-color;
8
- }
9
-
10
- html, body {
11
- height: 100%;
12
- margin: 0;
13
- padding: 0;
14
- }
15
-
16
- body {
17
- font-family: $sans_serif;
18
- }
19
-
20
- .holder {
21
- width: 960px;
22
- margin: auto;
23
- }
24
-
25
- #wrapper {
26
- min-height: 100%;
27
- position: absolute;
28
- width: 100%;
29
- // padding-bottom: 80px; // should be used if there are divs with float left on main content
30
- }
31
-
32
- #main-content {
33
- margin: 0 auto;
34
- padding-bottom: 100px;
35
- width: 960px;
36
- }
37
-
38
- footer {
39
- background: $darker-color;
40
- color: $lighter-color;
41
- bottom: 0px;
42
- height: 40px;
43
- left: 0;
44
- padding-top: 18px;
45
- position: absolute;
46
- width: 100%;
47
- }
@@ -1,75 +0,0 @@
1
- @charset "utf-8";
2
-
3
- /* Reset */
4
-
5
- body,
6
- h1, h2, h3, h4,
7
- form, input, textarea, label, a, img {
8
- vertical-align: baseline;
9
- font-style: normal;
10
- list-style-type: none;
11
- padding: 0;
12
- margin: 0;
13
- border: 0;
14
- }
15
-
16
- article, aside, details,
17
- figcaption, figure,
18
- footer, header, hgroup,
19
- menu, nav, section {
20
- display: block;
21
- }
22
-
23
- p {
24
- margin: 0 0 20px 0;
25
- }
26
-
27
- hr {
28
- height: 1px;
29
- border: 10px solid #eee;
30
- margin: 10px 0 10px 0;
31
- }
32
-
33
- em,
34
- dfn {
35
- font-style: italic;
36
- }
37
-
38
- b,
39
- strong {
40
- font-weight: bold;
41
- }
42
-
43
- table {
44
- border-collapse: collapse;
45
- border-spacing: 0;
46
- }
47
-
48
- fieldset {
49
- border: 1px solid #eee;
50
- margin: 0;
51
- padding: 5px;
52
- }
53
-
54
- button,
55
- html input[type="button"],
56
- input[type="submit"] {
57
- cursor: pointer;
58
- }
59
-
60
- button,
61
- input {
62
- line-height: normal;
63
- font-weight: normal;
64
- }
65
-
66
- abbr[title],
67
- dfn[title] {
68
- cursor: help;
69
- border-bottom: 1px dotted;
70
- }
71
-
72
- pre,
73
- code {
74
- font-family: monospace;
75
- }
@@ -1,97 +0,0 @@
1
- @charset "utf-8";
2
-
3
- /* Viewport Config */
4
-
5
- html,
6
- body {
7
- width: 100%;
8
- overflow-x: hidden;
9
- }
10
-
11
- @viewport {
12
- zoom: 1.0;
13
- width: extend-to-zoom;
14
- }
15
-
16
- @-ms-viewport {
17
- width: extend-to-zoom;
18
- zoom: 1.0;
19
- }
20
-
21
- /**
22
- * Max Width, 960px
23
- * Media Queries for Tablets and Kindle.
24
- */
25
-
26
- @media (max-width: 960px) {
27
- .holder {
28
- width: 700px;
29
- }
30
- }
31
-
32
- /**
33
- * Max Width, 686px
34
- * Media Queries for Smartphones.
35
- */
36
-
37
- @media only screen and (max-width: 686px) {
38
- .holder {
39
- width: 90%;
40
- padding: 0 5% 0 5%;
41
- }
42
-
43
- .simple_form {
44
- label {
45
- width: auto;
46
- display: block;
47
- text-align: left;
48
- float: none;
49
- }
50
- }
51
-
52
- /* Fixed and Responsive Form */
53
-
54
- .form-fixed {
55
- .checkbox {
56
- margin-left: 0;
57
- margin-bottom: 0;
58
- }
59
-
60
- .radio_buttons {
61
- margin-bottom: 0;
62
- clear: both;
63
- .control-label {
64
- margin-right: 0;
65
- }
66
- }
67
-
68
- .form-inputs {
69
- input[type="text"],
70
- input[type="password"],
71
- input[type="email"],
72
- input[type="tel"],
73
- input[type="number"],
74
- textarea {
75
- width: 95%;
76
- padding-left: 2%;
77
- padding-right: 2%;
78
- }
79
-
80
- textarea {
81
- min-width: 95%;
82
- max-width: 95%;
83
- }
84
- }
85
-
86
- .form-actions {
87
- margin-top: 20px;
88
- margin-left: 0;
89
- }
90
-
91
- .hint {
92
- width: 95%;
93
- padding: 10px 2% 10px 2%;
94
- left: 0;
95
- }
96
- }
97
- }
@@ -1,5 +0,0 @@
1
- - if object.errors.any?
2
- #error-messages
3
- ul
4
- - object.errors.full_messages.each do |message|
5
- li = message
@@ -1,12 +0,0 @@
1
- copy_static_file 'app/assets/javascripts/application.js'
2
- copy_static_file 'app/assets/stylesheets/_variables.scss'
3
- copy_static_file 'app/assets/stylesheets/application.scss'
4
- copy_static_file 'app/assets/stylesheets/reset.scss'
5
- copy_static_file 'app/assets/stylesheets/general.scss'
6
- copy_static_file 'app/assets/stylesheets/form.scss'
7
- copy_static_file 'app/assets/stylesheets/responsive.scss'
8
- remove_file 'app/assets/stylesheets/application.css'
9
-
10
- git rm: 'app/assets/stylesheets/application.css'
11
- git add: 'app/assets/'
12
- git_commit 'Add asset files.'