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.
- data/.gitignore +5 -4
- data/CHANGELOG.md +39 -30
- data/LICENSE +21 -21
- data/README.md +64 -66
- data/Rakefile +41 -40
- data/bin/da-suspenders +1 -1
- data/da-suspenders.gemspec +26 -26
- data/features/running_cucumber.feature +17 -17
- data/features/step_definitions/shell.rb +30 -30
- data/features/support/env.rb +0 -1
- data/lib/create.rb +57 -55
- data/lib/da-suspenders/version.rb +2 -2
- data/lib/errors.rb +12 -12
- data/template/da-suspenders.rb +159 -172
- data/template/files/factory_girl_steps.rb +1 -1
- data/template/files/mysql_database.yml.erb +39 -39
- data/template/trout/Gemfile +66 -43
- data/template/trout/app/assets/javascripts/application.js.coffee +10 -0
- data/template/trout/app/assets/stylesheets/application.css.scss +16 -0
- data/template/trout/app/assets/stylesheets/ie6.css.scss +4 -0
- data/template/trout/app/assets/stylesheets/ie7.css.scss +4 -0
- data/template/trout/app/helpers/body_class_helper.rb +6 -6
- data/template/trout/app/views/layouts/application.html.erb +16 -15
- data/template/trout/app/views/shared/_flashes.html.erb +5 -5
- data/template/trout/config/initializers/errors.rb +26 -26
- data/template/trout/config/initializers/will_paginate.rb +3 -3
- data/template/trout/config/locales/de.yml +54 -11
- data/template/trout/features/step_definitions/js_steps.rb +3 -3
- data/template/trout/vendor/assets/javascripts/jquery-ui-1.8.16.js +791 -0
- data/template/trout/vendor/{sprockets/modernizr/src → assets/javascripts}/modernizr.js +29 -29
- metadata +12 -14
- data/template/trout/app/javascripts/application.js +0 -10
- data/template/trout/app/stylesheets/application.scss +0 -14
- data/template/trout/app/stylesheets/ie.scss +0 -2
- data/template/trout/lib/templates/erb/scaffold/_form.html.erb +0 -13
- 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
|
data/template/trout/Gemfile
CHANGED
@@ -1,43 +1,66 @@
|
|
1
|
-
source :rubygems
|
2
|
-
|
3
|
-
gem "
|
4
|
-
gem "
|
5
|
-
gem "
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
gem
|
12
|
-
gem
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
#
|
25
|
-
#
|
26
|
-
|
27
|
-
#
|
28
|
-
|
29
|
-
|
30
|
-
#
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
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,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
|
+
// }
|
@@ -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
|
7
|
-
|
8
|
-
<%=
|
9
|
-
<%=
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
<%=
|
14
|
-
|
15
|
-
</
|
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:
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
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
|
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
|