da-suspenders 1.0.3 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. data/.gitignore +5 -4
  2. data/CHANGELOG.md +39 -30
  3. data/LICENSE +21 -21
  4. data/README.md +64 -66
  5. data/Rakefile +41 -40
  6. data/bin/da-suspenders +1 -1
  7. data/da-suspenders.gemspec +26 -26
  8. data/features/running_cucumber.feature +17 -17
  9. data/features/step_definitions/shell.rb +30 -30
  10. data/features/support/env.rb +0 -1
  11. data/lib/create.rb +57 -55
  12. data/lib/da-suspenders/version.rb +2 -2
  13. data/lib/errors.rb +12 -12
  14. data/template/da-suspenders.rb +159 -172
  15. data/template/files/factory_girl_steps.rb +1 -1
  16. data/template/files/mysql_database.yml.erb +39 -39
  17. data/template/trout/Gemfile +66 -43
  18. data/template/trout/app/assets/javascripts/application.js.coffee +10 -0
  19. data/template/trout/app/assets/stylesheets/application.css.scss +16 -0
  20. data/template/trout/app/assets/stylesheets/ie6.css.scss +4 -0
  21. data/template/trout/app/assets/stylesheets/ie7.css.scss +4 -0
  22. data/template/trout/app/helpers/body_class_helper.rb +6 -6
  23. data/template/trout/app/views/layouts/application.html.erb +16 -15
  24. data/template/trout/app/views/shared/_flashes.html.erb +5 -5
  25. data/template/trout/config/initializers/errors.rb +26 -26
  26. data/template/trout/config/initializers/will_paginate.rb +3 -3
  27. data/template/trout/config/locales/de.yml +54 -11
  28. data/template/trout/features/step_definitions/js_steps.rb +3 -3
  29. data/template/trout/vendor/assets/javascripts/jquery-ui-1.8.16.js +791 -0
  30. data/template/trout/vendor/{sprockets/modernizr/src → assets/javascripts}/modernizr.js +29 -29
  31. metadata +12 -14
  32. data/template/trout/app/javascripts/application.js +0 -10
  33. data/template/trout/app/stylesheets/application.scss +0 -14
  34. data/template/trout/app/stylesheets/ie.scss +0 -2
  35. data/template/trout/lib/templates/erb/scaffold/_form.html.erb +0 -13
  36. data/template/trout/vendor/sprockets/jquery-ujs/src/rails.js +0 -169
@@ -1 +1 @@
1
- require 'factory_girl/step_definitions'
1
+ require 'factory_girl/step_definitions'
@@ -1,39 +1,39 @@
1
- development:
2
- adapter: mysql
3
- encoding: utf8
4
- reconnect: false
5
- database: <%= app_name %>_dev
6
- pool: 5
7
- username: root
8
- password: root
9
- host: localhost
10
-
11
- test:
12
- adapter: mysql
13
- encoding: utf8
14
- reconnect: false
15
- database: <%= app_name %>_test
16
- pool: 5
17
- username: root
18
- password: root
19
- host: localhost
20
-
21
- staging:
22
- adapter: mysql
23
- encoding: utf8
24
- reconnect: false
25
- database: <%= app_name %>_staging
26
- pool: 5
27
- username: <%= app_name %>_s
28
- password:
29
- host: localhost
30
-
31
- production:
32
- adapter: mysql
33
- encoding: utf8
34
- reconnect: false
35
- database: <%= app_name %>
36
- pool: 5
37
- username: <%= app_name %>
38
- password:
39
- host: localhost
1
+ development:
2
+ adapter: mysql
3
+ encoding: utf8
4
+ reconnect: false
5
+ database: <%= app_name %>_dev
6
+ pool: 5
7
+ username: root
8
+ password: root
9
+ host: localhost
10
+
11
+ test:
12
+ adapter: mysql
13
+ encoding: utf8
14
+ reconnect: false
15
+ database: <%= app_name %>_test
16
+ pool: 5
17
+ username: root
18
+ password: root
19
+ host: localhost
20
+
21
+ staging:
22
+ adapter: mysql
23
+ encoding: utf8
24
+ reconnect: false
25
+ database: <%= app_name %>_staging
26
+ pool: 5
27
+ username: <%= app_name %>_s
28
+ password:
29
+ host: localhost
30
+
31
+ production:
32
+ adapter: mysql
33
+ encoding: utf8
34
+ reconnect: false
35
+ database: <%= app_name %>
36
+ pool: 5
37
+ username: <%= app_name %>
38
+ password:
39
+ host: localhost
@@ -1,43 +1,66 @@
1
- source :rubygems
2
-
3
- gem "rake", "0.8.7"
4
- gem "rails", "3.0.7"
5
- gem "mysql"
6
-
7
- gem "app_config", :git => "git://github.com/die-antwort/app_config.git"
8
- gem "compass", "~> 0.11.1"
9
- gem "formtastic", "~> 1.2.3"
10
- gem "hoptoad_notifier"
11
- gem "sprockets", "~> 1.0.2"
12
- gem "will_paginate", "~> 3.0.pre2"
13
-
14
-
15
- # Uncomment if you want to use any of those
16
-
17
- #gem "paperclip"
18
- #gem "carrierwave"
19
- #gem "devise"
20
- #gem "cancan"
21
-
22
- ## RMagick as used by RefineryCMS, to make sure it works on Windows
23
- #rmagick_options = { :require => false }
24
- #if Bundler::WINDOWS
25
- # rmagick_options.merge!(:git => 'git://github.com/refinerycms/rmagick.git', :branch => 'windows')
26
- #end
27
- #gem "rmagick", "2.12.0", rmagick_options
28
-
29
- # RSpec needs to be in :development group to expose generators
30
- # and rake tasks without having to type RAILS_ENV=test.
31
- group :development, :test do
32
- gem "rspec-rails", "~> 2.4.0"
33
- end
34
-
35
- group :test do
36
- gem "akephalos", :git => "git://github.com/die-antwort/akephalos.git"
37
- gem "cucumber-rails"
38
- gem "factory_girl_rails"
39
- gem "capybara"
40
- gem "database_cleaner"
41
- gem "launchy"
42
- gem "timecop"
43
- end
1
+ source :rubygems
2
+
3
+ gem "rails", "3.1.1"
4
+ gem "json"
5
+ gem "jquery-rails"
6
+ gem "mysql"
7
+
8
+ # Gems used only for assets and not required
9
+ # in production environments by default.
10
+ group :assets do
11
+ gem 'sass-rails', '~> 3.1.4'
12
+ gem 'coffee-rails', '~> 3.1.1'
13
+ gem 'uglifier', '>= 1.0.3'
14
+ gem "compass", "~> 0.12.alpha"
15
+ end
16
+
17
+ gem "app_config", :git => "git://github.com/die-antwort/app_config.git"
18
+ gem "formtastic", "~> 2.0.0"
19
+ gem "airbrake"
20
+ gem "will_paginate", "~> 3.0"
21
+
22
+ # Optional gems (from Rails 3.1 default Gemfile):
23
+
24
+ # To use ActiveModel has_secure_password
25
+ # gem 'bcrypt-ruby', '~> 3.0.0'
26
+
27
+ # Use unicorn as the web server
28
+ # gem 'unicorn'
29
+
30
+ # Deploy with Capistrano
31
+ # gem 'capistrano'
32
+
33
+ # To use debugger
34
+ # gem 'ruby-debug'
35
+
36
+
37
+ # More optional gems that we use quite often
38
+
39
+ # gem "paperclip"
40
+ # gem "carrierwave"
41
+ # gem "devise"
42
+ # gem "cancan"
43
+
44
+
45
+ ## RMagick as used by RefineryCMS, to make sure it works on Windows
46
+ #rmagick_options = { :require => false }
47
+ #if Bundler::WINDOWS
48
+ # rmagick_options.merge!(:git => 'git://github.com/refinerycms/rmagick.git', :branch => 'windows')
49
+ #end
50
+ #gem "rmagick", "2.12.0", rmagick_options
51
+
52
+ # RSpec needs to be in :development group to expose generators
53
+ # and rake tasks without having to type RAILS_ENV=test.
54
+ group :development, :test do
55
+ gem "rspec-rails", "~> 2.6.0"
56
+ end
57
+
58
+ group :test do
59
+ gem "akephalos", :git => "git://github.com/die-antwort/akephalos.git"
60
+ gem "cucumber-rails"
61
+ gem "factory_girl_rails"
62
+ gem "capybara"
63
+ gem "database_cleaner"
64
+ gem "launchy"
65
+ gem "timecop"
66
+ end
@@ -0,0 +1,10 @@
1
+ #= require modernizr
2
+ #= require jquery
3
+ #= require jquery_ujs
4
+
5
+ # Activate if you want to use jquery-ui
6
+ # require jquery-ui
7
+ # require jquery-ui-i18n
8
+
9
+ #= require_tree .
10
+
@@ -0,0 +1,16 @@
1
+ $ie6: false !default;
2
+ $ie7: false !default;
3
+
4
+ @import 'compass/reset';
5
+ @import 'compass/utilities';
6
+ @import 'compass/css3';
7
+
8
+ @import 'formtastic';
9
+
10
+ // Use following syntax for IE6/7-specific rules:
11
+ // .foobar {
12
+ // float: left;
13
+ // margin-left: 20px;
14
+ // @if $ie6 { margin-left: 10px; }
15
+ // @if $ie7 { margin-left: 15px; }
16
+ // }
@@ -0,0 +1,4 @@
1
+ $ie6: true;
2
+
3
+ @import 'application';
4
+ @import 'formtastic_ie6';
@@ -0,0 +1,4 @@
1
+ $ie7: true;
2
+
3
+ @import 'application';
4
+ @import 'formtastic_ie7';
@@ -1,6 +1,6 @@
1
- module BodyClassHelper
2
- def body_class
3
- qualified_controller_name = controller.controller_path.gsub('/','-')
4
- "#{qualified_controller_name} #{controller.action_name}"
5
- end
6
- end
1
+ module BodyClassHelper
2
+ def body_class
3
+ qualified_controller_name = controller.controller_path.gsub('/','-')
4
+ "#{qualified_controller_name} #{controller.action_name}"
5
+ end
6
+ end
@@ -1,16 +1,17 @@
1
- <!DOCTYPE html>
2
- <html lang="de" class="no-js">
3
- <head>
4
- <title>Testapp</title>
5
- <%= stylesheet_link_tag "application", :media => "all" %>
6
- <!--[if lte IE 7]><%= stylesheet_link_tag "ie", :media => "all" %><![endif]-->
7
- <%= sprockets_include_tag %>
8
- <%= javascript_tag "$.ajaxSetup({ async: false });" if Rails.env.test? %>
9
- <%= csrf_meta_tag %>
10
- </head>
11
- <body class="<%= body_class %>">
12
- <%= render :partial => "shared/flashes" %>
13
- <%= yield %>
14
- </body>
15
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="de" class="no-js">
3
+ <head>
4
+ <title>Testapp</title>
5
+ <%= stylesheet_link_tag "application", :media => "all" %>
6
+ <!--[if IE 6]><%= stylesheet_link_tag "ie6", :media => "all" %><![endif]-->
7
+ <!--[if IE 7]><%= stylesheet_link_tag "ie7", :media => "all" %><![endif]-->
8
+ <%= javascript_include_tag "application" %>
9
+ <%= javascript_tag "$.ajaxSetup({ async: false });" if Rails.env.test? %>
10
+ <%= csrf_meta_tags %>
11
+ </head>
12
+ <body class="<%= body_class %>">
13
+ <%= render :partial => "shared/flashes" %>
14
+ <%= yield %>
15
+ </body>
16
+ </html>
16
17
  <!-- Created with care by DIE ANTWORT · Büro für Informationstechnik GmbH -->
@@ -1,5 +1,5 @@
1
- <div id="flash">
2
- <% flash.each do |key, value| -%>
3
- <div id="flash_<%= key %>"><%= value %></div>
4
- <% end -%>
5
- </div>
1
+ <div id="flash">
2
+ <% flash.each do |key, value| -%>
3
+ <div id="flash_<%= key %>"><%= value %></div>
4
+ <% end -%>
5
+ </div>
@@ -1,26 +1,26 @@
1
- require 'net/smtp'
2
- # Example:
3
- # begin
4
- # some http call
5
- # rescue *HTTP_ERRORS => error
6
- # notify_hoptoad error
7
- # end
8
-
9
- HTTP_ERRORS = [Timeout::Error,
10
- Errno::EINVAL,
11
- Errno::ECONNRESET,
12
- EOFError,
13
- Net::HTTPBadResponse,
14
- Net::HTTPHeaderSyntaxError,
15
- Net::ProtocolError]
16
-
17
- SMTP_SERVER_ERRORS = [TimeoutError,
18
- IOError,
19
- Net::SMTPUnknownError,
20
- Net::SMTPServerBusy,
21
- Net::SMTPAuthenticationError]
22
-
23
- SMTP_CLIENT_ERRORS = [Net::SMTPFatalError,
24
- Net::SMTPSyntaxError]
25
-
26
- SMTP_ERRORS = SMTP_SERVER_ERRORS + SMTP_CLIENT_ERRORS
1
+ require 'net/smtp'
2
+ # Example:
3
+ # begin
4
+ # some http call
5
+ # rescue *HTTP_ERRORS => error
6
+ # notify_hoptoad error
7
+ # end
8
+
9
+ HTTP_ERRORS = [Timeout::Error,
10
+ Errno::EINVAL,
11
+ Errno::ECONNRESET,
12
+ EOFError,
13
+ Net::HTTPBadResponse,
14
+ Net::HTTPHeaderSyntaxError,
15
+ Net::ProtocolError]
16
+
17
+ SMTP_SERVER_ERRORS = [TimeoutError,
18
+ IOError,
19
+ Net::SMTPUnknownError,
20
+ Net::SMTPServerBusy,
21
+ Net::SMTPAuthenticationError]
22
+
23
+ SMTP_CLIENT_ERRORS = [Net::SMTPFatalError,
24
+ Net::SMTPSyntaxError]
25
+
26
+ SMTP_ERRORS = SMTP_SERVER_ERRORS + SMTP_CLIENT_ERRORS
@@ -1,4 +1,4 @@
1
- WillPaginate::ViewHelpers.pagination_options.merge!(
2
- :previous_label => '« Vorige Seite',
3
- :next_label => 'Nächste Seite »'
1
+ WillPaginate::ViewHelpers.pagination_options.merge!(
2
+ :previous_label => '« Vorige Seite',
3
+ :next_label => 'Nächste Seite »'
4
4
  )
@@ -7,12 +7,55 @@ de:
7
7
  long: "%e. %B %Y"
8
8
  only_day: "%e"
9
9
 
10
- day_names: [Sonntag, Montag, Dienstag, Mittwoch, Donnerstag, Freitag, Samstag]
11
- abbr_day_names: [So, Mo, Di, Mi, Do, Fr, Sa]
12
- month_names: [~, Jänner, Februar, März, April, Mai, Juni, Juli, August, September, Oktober, November, Dezember]
13
- abbr_month_names: [~, Jän, Feb, Mär, Apr, Mai, Jun, Jul, Aug, Sep, Okt, Nov, Dez]
14
- order: [ :day, :month, :year ]
15
-
10
+ day_names:
11
+ - Sonntag
12
+ - Montag
13
+ - Dienstag
14
+ - Mittwoch
15
+ - Donnerstag
16
+ - Freitag
17
+ - Samstag
18
+ abbr_day_names:
19
+ - So
20
+ - Mo
21
+ - Di
22
+ - Mi
23
+ - Do
24
+ - Fr
25
+ - Sa
26
+ month_names:
27
+ - ~
28
+ - Jänner
29
+ - Februar
30
+ - März
31
+ - April
32
+ - Mai
33
+ - Juni
34
+ - Juli
35
+ - August
36
+ - September
37
+ - Oktober
38
+ - November
39
+ - Dezember
40
+ abbr_month_names:
41
+ - ~
42
+ - Jän
43
+ - Feb
44
+ - Mär
45
+ - Apr
46
+ - Mai
47
+ - Jun
48
+ - Jul
49
+ - Aug
50
+ - Sep
51
+ - Okt
52
+ - Nov
53
+ - Dez
54
+ order:
55
+ - :day
56
+ - :month
57
+ - :year
58
+
16
59
  time:
17
60
  formats:
18
61
  default: "%A, %d. %B %Y, %H:%M Uhr"
@@ -22,7 +65,7 @@ de:
22
65
 
23
66
  am: "vormittags"
24
67
  pm: "nachmittags"
25
-
68
+
26
69
  datetime:
27
70
  distance_in_words:
28
71
  half_a_minute: 'eine halbe Minute'
@@ -75,10 +118,10 @@ de:
75
118
  currency:
76
119
  format:
77
120
  unit: '€'
78
- format: '%n%u'
79
- separator:
80
- delimiter:
81
- precision:
121
+ format: '%u %n'
122
+ separator: '.'
123
+ delimiter: ','
124
+ precision: 2
82
125
  percentage:
83
126
  format:
84
127
  delimiter: ""
@@ -1,3 +1,3 @@
1
- Then 'the javascript expression "$expression" should return "$result"' do |expression, result|
2
- page.evaluate_script(expression).to_s.should == result
3
- end
1
+ Then 'the javascript expression "$expression" should return "$result"' do |expression, result|
2
+ page.evaluate_script(expression).to_s.should == result
3
+ end