pah 0.0.10 → 0.0.11

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 (40) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/CHANGELOG.md +35 -2
  4. data/README.md +2 -9
  5. data/lib/pah/files/Gemfile +39 -46
  6. data/lib/pah/files/README.md +47 -0
  7. data/lib/pah/files/app/assets/javascripts/application.js +33 -0
  8. data/lib/pah/files/app/assets/stylesheets/_variables.scss +42 -0
  9. data/lib/pah/files/app/assets/stylesheets/application.scss +6 -0
  10. data/lib/pah/files/app/assets/stylesheets/form.scss +259 -0
  11. data/lib/pah/files/app/assets/stylesheets/general.scss +22 -0
  12. data/lib/pah/files/app/assets/stylesheets/reset.scss +64 -0
  13. data/lib/pah/files/app/assets/stylesheets/responsive.scss +108 -0
  14. data/lib/pah/files/app/views/application/_error_messages.html.haml +3 -3
  15. data/lib/pah/files/app/views/layouts/application.html.haml +3 -3
  16. data/lib/pah/files/config/initializers/jumpup_heroku.rb +3 -0
  17. data/lib/pah/files/lib/tasks/jumpup.rake +13 -0
  18. data/lib/pah/files/spec/support/vcr.rb +3 -2
  19. data/lib/pah/partials/_assets.rb +13 -0
  20. data/lib/pah/partials/_cleanup.rb +2 -3
  21. data/lib/pah/partials/_config.rb +36 -0
  22. data/lib/pah/partials/_git.rb +3 -1
  23. data/lib/pah/partials/_heroku.rb +15 -37
  24. data/lib/pah/partials/_jumpup.rb +12 -0
  25. data/lib/pah/partials/_layout.rb +9 -0
  26. data/lib/pah/partials/_locale.rb +5 -0
  27. data/lib/pah/partials/_readme.rb +9 -0
  28. data/lib/pah/partials/_rspec.rb +1 -1
  29. data/lib/pah/partials/_ruby_env.rb +5 -1
  30. data/lib/pah/partials/_unicorn.rb +3 -0
  31. data/lib/pah/template.rb +8 -6
  32. data/lib/pah/version.rb +1 -1
  33. data/pah.gemspec +2 -2
  34. metadata +30 -21
  35. data/lib/pah/files/app/assets/stylesheets/application.css.scss +0 -6
  36. data/lib/pah/files/app/assets/stylesheets/reset.css +0 -40
  37. data/lib/pah/files/lib/tasks/integration.rake +0 -109
  38. data/lib/pah/partials/_default.rb +0 -15
  39. data/lib/pah/partials/_integration.rb +0 -9
  40. data/lib/pah/partials/_stylesheets.rb +0 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c6212ca852515a5d3a319e26a2679fbfabd8cedf
4
- data.tar.gz: 926e305615e898e0c88197ae16acd5ee60d23c6f
3
+ metadata.gz: e443008c366c4a377139c6e6ee0fad0f11867f07
4
+ data.tar.gz: bded89719d4e6696e84315d903206ef9011f9f11
5
5
  SHA512:
6
- metadata.gz: 49d22795028acb466ca5995350d91ee7c141758ad7629c39968fa94e90136db571e4587fa3f48559fa3a456e08029b0f6c74057dbd21670d11c7ee2c30fe6377
7
- data.tar.gz: cbff55dc3313b7d9f4079d6a883fb751a035afd90650a06af2b2514251a8e495bb9e56729a2fb78b7b9544a32214c48025743081709344d1af41365286545923
6
+ metadata.gz: 886c4c764e41b25bbbaf2669228464ec4a1c774a35324e575c34d69d9c6fca4235b29ef82fa98053588c22c193a3bf550eeab8ebd0df23d0211d5364160d403b
7
+ data.tar.gz: b98a5f949e9ae291ef0d3c7360e787fe706db4371b548d0e8de20607bee90c6c9ee118fa5f0768234b972d7c2907b9da5df87e781ca85985bb327c1db52852c1
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.0.0
1
+ ruby-2.1.0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.0.11 (January 8, 2014)
4
+
5
+ ### features
6
+
7
+ - Created two kind of responsive forms (form-fluid and form-fixed)
8
+ - Created a default JS file;
9
+ - Created CSS and JS for Hint;
10
+ - Created focus effect on fields;
11
+
12
+ ### improvements
13
+
14
+ - Updated CSS Reset;
15
+ - Clean up HTML on application.html;
16
+ - Created a new CSS file structure;
17
+ - Update to rails 4.0.1
18
+ - Better vcr default on support
19
+ - Update gem dependencies
20
+ - Cleanup Gemfile
21
+ - Update project to Rails 4.0.2
22
+ - Update project gem versions
23
+ - Move rails_12factor to a group block
24
+ - Not remove favicon.ico from generated app
25
+ - Set ruby 2.1.0 as default
26
+ - Use jumpup-heroku gem on integration
27
+ - Moved old name "integration" to "jumpup"
28
+ - Update jumpup.rake to comply jumpup gem.
29
+
30
+ ### bug fixes
31
+
32
+ - Fix git commits after removing files to reflect the changes of Git 2.0
33
+ - Fixed CSS files execution on default.rb
34
+
35
+
3
36
  ## 0.0.10 (November 5, 2013)
4
37
 
5
38
  ### features
@@ -9,7 +42,7 @@
9
42
  - Remove rvm dependency
10
43
  - Remove staging app
11
44
  - Remove ominiauth integration
12
- - Refactoring bundle files
45
+ - Refactoring bundle files
13
46
  - Refactoring integration files
14
47
  - Remove password from db config
15
48
 
@@ -36,7 +69,7 @@
36
69
  ### bug fixes
37
70
 
38
71
  - Check app has database before migrate
39
- - Remove `--force` on deploy to heroku
72
+ - Remove `--force` on deploy to heroku
40
73
  - Add app name on check for deploy into production
41
74
 
42
75
  ## 0.0.7 (October 11, 2013)
data/README.md CHANGED
@@ -19,25 +19,18 @@ Run:
19
19
 
20
20
  pah projectname
21
21
 
22
- This will create a Rails 4.0 app in `projectname` with ruby 2.0.0. This script creates a new git repository. It is not meant to be used against an existing repo.
22
+ This will create a Rails 4.0 app in `projectname` with ruby 2.1.0. This script creates a new git repository. It is not meant to be used against an existing repo.
23
23
 
24
24
  ### RVM
25
25
 
26
26
  If using the rvm is recomended before using pah, create and use a gemset, with the project name.
27
27
 
28
28
  ```bash
29
- $ rvm use 2.0.0@projectname --create
29
+ $ rvm use 2.1.0@projectname --create
30
30
  ```
31
31
 
32
32
  Pah automatically create the .ruby-version and .ruby-gemset files.
33
33
 
34
- ### Canonical host
35
-
36
- Be sure to set your canonical domain on Heroku:
37
- ```shell
38
- heroku config:add CANONICAL_HOST=yourdomain.com #or www.yourdomain.com
39
- ```
40
-
41
34
  ## Dependencies
42
35
 
43
36
  ### heroku toolbelt
@@ -1,60 +1,53 @@
1
1
  source 'https://rubygems.org'
2
- ruby "2.0.0"
3
-
4
- gem 'rails', '4.0.0'
5
- gem 'unicorn', '4.6.2'
6
- gem 'unicorn-worker-killer', '0.4.1'
7
- gem 'secure_headers', '1.0.0'
8
- gem 'jquery-rails', '3.0.4'
9
- gem 'turbolinks'
10
- gem 'jbuilder', '~> 1.2'
11
- gem 'haml-rails', '0.4'
12
- gem 'pg', '0.15.1'
13
- gem 'sass-rails', '~> 4.0.0'
14
- gem 'coffee-rails', '~> 4.0.0'
15
- gem 'uglifier', '>= 1.3.0'
16
- gem 'rack-canonical-host', '0.0.8'
17
- gem 'bourbon', '3.1.8'
18
- gem "rails_12factor", "0.0.2", group: :production
19
- # gem 'paperclip', '3.4.2'
20
- # gem 'aws-sdk', '1.11.2'
21
- # gem 'paranoia', '1.2.0'
22
- # gem 'omniauth', '1.1.4'
23
- # gem 'omniauth-facebook', '1.4.1'
24
- # gem 'kaminari', '0.14.1'
25
- # gem 'acts_as_hashed', '1.0.0'
2
+ ruby '2.1.0'
3
+
4
+ gem 'rails', '4.0.2'
5
+ gem 'unicorn', '4.7.0'
6
+ gem 'unicorn-worker-killer', '0.4.2'
7
+ gem 'secure_headers', '1.1.0'
8
+ gem 'jquery-rails', '3.0.4'
9
+ gem 'turbolinks', '2.0.0'
10
+ gem 'jbuilder', '1.5.3'
11
+ gem 'haml-rails', '0.5.2'
12
+ gem 'pg', '0.17.0'
13
+ gem 'sass-rails', '4.0.1'
14
+ gem 'coffee-rails', '4.0.1'
15
+ gem 'uglifier', '2.3.2'
16
+ gem 'rack-canonical-host', '0.0.8'
17
+ gem 'bourbon', '3.1.8'
18
+ gem 'simple_form', '3.0.1'
19
+
20
+
21
+ group :production do
22
+ gem 'rails_12factor', '0.0.2'
23
+ end
26
24
 
27
25
  group :development do
28
- gem 'foreman', '0.63.0'
29
- gem 'jumpup', '0.0.1'
30
- gem 'better_errors', '0.9.0'
31
- gem 'binding_of_caller', '0.7.2'
32
- gem "letter_opener", '1.1.1'
33
- gem "colored", '1.2', require: false
34
- # gem 'guard-rspec', '3.0.2'
26
+ gem 'foreman', '0.63.0'
27
+ gem 'jumpup', '0.0.1'
28
+ gem 'jumpup-heroku', github: 'Helabs/jumpup-heroku'
29
+ gem 'better_errors', '1.0.1'
30
+ gem 'binding_of_caller', '0.7.2'
31
+ gem 'letter_opener', '1.1.2'
35
32
  end
36
33
 
37
34
  group :test do
38
- # See https://github.com/thoughtbot/shoulda-matchers/issues/270
39
- gem "shoulda-matchers", '2.4.0'
40
- gem 'simplecov', '0.7.1', require: false
41
- gem 'email_spec', '1.4.0'
42
- gem 'capybara', '2.1.0'
43
- gem 'poltergeist', '1.3.0'
44
- # gem 'webmock', '1.11.0'
45
- # gem 'timecop', '0.6.1'
35
+ gem 'shoulda-matchers', '2.4.0'
36
+ gem 'simplecov', '0.8.2', require: false
37
+ gem 'email_spec', '1.5.0'
38
+ gem 'capybara', '2.1.0'
39
+ gem 'poltergeist', '1.4.1'
46
40
  end
47
41
 
48
42
  group :development, :test do
49
- gem 'rspec-rails', '2.13.2'
50
- gem 'factory_girl_rails', '4.2.1'
51
- gem 'pry-rails', '0.3.1'
52
- gem 'dotenv-rails', '0.9.0'
53
- gem 'awesome_print', '1.1.0'
43
+ gem 'rspec-rails', '2.14.0'
44
+ gem 'factory_girl_rails', '4.3.0'
45
+ gem 'pry-rails', '0.3.2'
46
+ gem 'dotenv-rails', '0.9.0'
47
+ gem 'awesome_print', '1.2.0'
54
48
  end
55
49
 
56
50
  group :doc do
57
- # bundle exec rake doc:rails generates the API under doc/api.
58
- gem 'sdoc', require: false
51
+ gem 'sdoc', '0.3.20', require: false
59
52
  end
60
53
 
@@ -0,0 +1,47 @@
1
+ PROJECT
2
+ =======
3
+
4
+ ## How to run this project?
5
+
6
+ 1. ```git clone REPO_URL```
7
+ 2. ```cd PROJECT```
8
+ 3. ```bundle```
9
+ 4. ```rake db:setup```
10
+ 5. ```rake db:seed```
11
+ 6. ```foreman start```
12
+ 7. Go to http://localhost:3000
13
+
14
+ ## Sanity check!
15
+
16
+ Is your first time here? Ok, so you should check some stuff. If some of the checks fails, ask any of the contributors.
17
+
18
+ Checks you have to do:
19
+
20
+ 1. Do ```bundle``` works and install all gems accordingly?
21
+ 2. Do ```rake db:setup``` works?
22
+ 3. Do ```rake db:seed``` works?
23
+ 4. After run ```foreman start``` if you go to ```http://localhost:3000``` you see something that shows the project is working?
24
+ 5. Is code coverage 100%?
25
+ 6. Do ```rake integrate``` works and deploys to production?
26
+ 7. Do the project have Rollbar or Airbrake configured in production environment?
27
+
28
+ ## Create remote git repository
29
+
30
+ 1. Create git repo.
31
+ 2. Add remote ```$ git remote add origin REPO_URL```.
32
+ 3. Push to repo ```$ git push --set-upstream origin```.
33
+
34
+
35
+ ## Run specs
36
+
37
+ ```$ rspec .```
38
+
39
+ ## Run rake integrate
40
+
41
+ The project requires 100% of test coverage.
42
+
43
+ When you finish an implementation, run:
44
+
45
+ ```$ rake integrate```
46
+
47
+ This task will run all tasks described on 'jumpup.rake' file, check the file and verify the steps.
@@ -0,0 +1,33 @@
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 vendor/assets/javascripts of plugins, if any, 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.
9
+ //
10
+ // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require jquery
14
+ //= require jquery_ujs
15
+ //= require turbolinks
16
+
17
+ function ready() {
18
+
19
+ /* Form: Focus and Hint */
20
+
21
+ $('input[type="text"], input[type="password"], textarea').focus(function() {
22
+ $(this).parent().find('.hint').show();
23
+ $(this).css("box-shadow", "#ccc 0 0 5px");
24
+ });
25
+ $('input[type="text"], input[type="password"], textarea').blur(function() {
26
+ $(this).parent().find('.hint').hide();
27
+ $(this).css("box-shadow", "none");
28
+ });
29
+
30
+ }
31
+
32
+ $(document).ready(ready);
33
+ $(document).on('page:load', ready);
@@ -0,0 +1,42 @@
1
+ @charset "utf-8";
2
+
3
+
4
+ /* Font Variables */
5
+
6
+ $sans_serif: Arial, "Helvetica", sans-serif;
7
+
8
+ $font-small: 12px;
9
+ $font-medium: 15px;
10
+ $font-large: 19px;
11
+ $font-big: 29px;
12
+
13
+
14
+ /* Color Variables */
15
+
16
+ $grey1: #eee;
17
+ $grey2: #ddd;
18
+ $grey3: #999;
19
+ $grey4: #666;
20
+ $grey5: #333;
21
+
22
+
23
+ /* Mixins */
24
+
25
+ @mixin transition($property) {
26
+ -webkit-transition: $property 0.15s ease-in-out;
27
+ -moz-transition: $property 0.15s ease-in-out;
28
+ -o-transition: $property 0.15s ease-in-out;
29
+ transition: $property 0.15s ease-in-out;
30
+ }
31
+
32
+ @mixin clearfix {
33
+ &:after {
34
+ visibility: hidden;
35
+ display: block;
36
+ font-size: 0;
37
+ content: " ";
38
+ clear: both;
39
+ height: 0;
40
+ min-height: 0;
41
+ }
42
+ }
@@ -0,0 +1,6 @@
1
+ /*
2
+ *= require reset
3
+ *= require general
4
+ *= require form
5
+ *= require responsive
6
+ */
@@ -0,0 +1,259 @@
1
+ @charset "utf-8";
2
+ @import "variables";
3
+
4
+
5
+ /* Fluid Form */
6
+
7
+ .simple_form {
8
+
9
+ label {
10
+ font-weight: bold;
11
+ }
12
+
13
+ .radio {
14
+ width: auto;
15
+ }
16
+
17
+ }
18
+
19
+ .form-fluid {
20
+
21
+ label { display: block; }
22
+
23
+ .form-inputs {
24
+
25
+ input[type="text"],
26
+ input[type="password"],
27
+ input[type="email"],
28
+ input[type="tel"],
29
+ input[type="number"],
30
+ textarea {
31
+ width: 95%;
32
+ padding-left: 2%;
33
+ padding-right: 2%;
34
+ }
35
+
36
+ textarea {
37
+ min-width: 95%;
38
+ max-width: 95%;
39
+ }
40
+
41
+ }
42
+
43
+ .form-actions {
44
+ width: 96%;
45
+ text-align: left;
46
+ border-radius: 4px;
47
+ background: $grey1;
48
+ padding: 10px 2% 10px 2%;
49
+ float: left;
50
+ }
51
+
52
+ .hint {
53
+ width: 95%;
54
+ padding: 10px 2% 10px 2%;
55
+ left: 0;
56
+ }
57
+
58
+ }
59
+
60
+
61
+ /* Fixed and Responsive Form */
62
+
63
+ .form-fixed {
64
+
65
+ label {
66
+ width: 120px;
67
+ margin: 8px 15px 0 0;
68
+ text-align: right;
69
+ float: left;
70
+ }
71
+
72
+ .checkbox {
73
+ width: auto;
74
+ margin-left: 135px;
75
+ margin-bottom: 15px;
76
+ clear: both;
77
+ }
78
+
79
+ .radio_buttons {
80
+ margin-bottom: 25px;
81
+ clear: both;
82
+ .control-label { margin-right: 0; }
83
+ }
84
+
85
+ .form-inputs {
86
+
87
+ input[type="text"],
88
+ input[type="password"],
89
+ input[type="email"],
90
+ input[type="tel"],
91
+ input[type="number"],
92
+ textarea {
93
+ width: 320px;
94
+ padding-left: 10px;
95
+ padding-right: 10px;
96
+ }
97
+
98
+ textarea {
99
+ min-width: 320px;
100
+ max-width: 320px;
101
+ }
102
+
103
+ }
104
+
105
+ .form-actions {
106
+ margin-left: 135px;
107
+ clear: both;
108
+ }
109
+
110
+ .hint {
111
+ width: 320px;
112
+ padding: 10px;
113
+ left: 135px;
114
+ }
115
+
116
+ }
117
+
118
+
119
+ /* Labels */
120
+
121
+ input[type="checkbox"],
122
+ input[type="radio"] { margin-right: 7px; }
123
+
124
+ .radio_buttons {
125
+ .radio { margin-left: 20px; }
126
+ }
127
+
128
+
129
+ /* Fields */
130
+
131
+ .form-inputs {
132
+ font-size: $font-medium;
133
+ margin-top: 20px;
134
+
135
+ .input {
136
+ margin-bottom: 20px;
137
+ position: relative;
138
+ }
139
+
140
+ abbr {
141
+ border-bottom: none;
142
+ color: red;
143
+ }
144
+
145
+ input[type="text"],
146
+ input[type="password"],
147
+ input[type="email"],
148
+ input[type="tel"],
149
+ input[type="number"] {
150
+ border-radius: 4px;
151
+ border: 1px solid $grey2;
152
+ font: $font-medium $sans_serif;
153
+ height: 40px;
154
+ line-height: 40px;
155
+ color: $grey4;
156
+ outline: none;
157
+ }
158
+
159
+ input[type="text"],
160
+ input[type="password"],
161
+ input[type="email"],
162
+ input[type="tel"],
163
+ input[type="number"],
164
+ select,
165
+ textarea {
166
+ margin-top: 8px;
167
+ }
168
+
169
+ textarea {
170
+ border-radius: 4px;
171
+ border: 1px solid $grey2;
172
+ height: 80px;
173
+ max-height: 160px;
174
+ padding-top: 15px;
175
+ padding-bottom: 15px;
176
+ font: $font-medium $sans_serif;
177
+ outline: none;
178
+ }
179
+
180
+ }
181
+
182
+
183
+ /* Forms Actions */
184
+
185
+ .form-actions {
186
+
187
+ button,
188
+ input[type="submit"],
189
+ input[type="button"],
190
+ .btn {
191
+ border-radius: 4px;
192
+ height: 40px;
193
+ line-height: 40px;
194
+ background: white;
195
+ border: 1px solid $grey3;
196
+ padding: 0 10px 0 10px;
197
+ font: $font-medium $sans_serif;
198
+ outline: none;
199
+ color: $grey4;
200
+ &:hover { opacity: .7; }
201
+ }
202
+
203
+ }
204
+
205
+
206
+ /* Hint */
207
+
208
+ .hint {
209
+ border-radius: 4px;
210
+ background: $grey5;
211
+ border: 1px solid $grey5;
212
+ font-size: $font-small;
213
+ color: white;
214
+ display: block;
215
+ position: absolute;
216
+ z-index: 300;
217
+ opacity: .9;
218
+ display: none;
219
+ }
220
+
221
+ .hint:before,
222
+ .hint:after {
223
+ content: '';
224
+ position: absolute;
225
+ top: -5px;
226
+ left: 50%;
227
+ margin-left: -9px;
228
+ width: 0;
229
+ height: 0;
230
+ border-left: 10px solid transparent;
231
+ border-right: 10px solid transparent;
232
+ border-bottom: 10px solid $grey5;
233
+ }
234
+
235
+ .string .hint { bottom: -41px; }
236
+ .text .hint { bottom: -38px; }
237
+
238
+
239
+ /* Validation */
240
+
241
+ .validation-error {
242
+ border-top: 1px solid #ffbbb4;
243
+ border-bottom: 1px solid #ffbbb4;
244
+ background: #ffeae8;
245
+ padding: 10px;
246
+ margin: 0;
247
+ display: none;
248
+ li {
249
+ margin-left: 20px;
250
+ line-height: 19px;
251
+ font-size: $font-small;
252
+ color: #9e0000;
253
+ }
254
+ }
255
+
256
+
257
+ /* Othes Classes */
258
+
259
+ .disabled { display: none; }