ricogen 0.2 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/Rakefile +0 -3
  2. data/VERSION +1 -1
  3. data/templates/Gemfile +28 -19
  4. data/test/hamgen_test.rb +1 -1
  5. data/test_app/Gemfile +68 -0
  6. data/test_app/Rakefile +7 -0
  7. data/test_app/app/controllers/application_controller.rb +3 -0
  8. data/test_app/app/helpers/application_helper.rb +2 -0
  9. data/test_app/app/stylesheets/_setup.sass +12 -0
  10. data/test_app/app/stylesheets/application.sass +15 -0
  11. data/test_app/app/stylesheets/lib/_extend.sass +87 -0
  12. data/test_app/app/stylesheets/lib/_mixins.sass +78 -0
  13. data/test_app/app/stylesheets/lib/_reset.sass +150 -0
  14. data/test_app/app/stylesheets/lib/_variables.sass +26 -0
  15. data/test_app/app/stylesheets/styles/_common.sass +1 -0
  16. data/test_app/app/stylesheets/styles/_extend.sass +1 -0
  17. data/test_app/app/stylesheets/styles/_mixins.sass +1 -0
  18. data/test_app/app/stylesheets/styles/_template.sass +1 -0
  19. data/test_app/app/stylesheets/styles/_variables.sass +1 -0
  20. data/test_app/app/views/layouts/application.html.haml +28 -0
  21. data/test_app/config/app.yml +5 -0
  22. data/test_app/config/application.rb +52 -0
  23. data/test_app/config/auth_providers.yml +55 -0
  24. data/test_app/config/boot.rb +6 -0
  25. data/test_app/config/compass.config +15 -0
  26. data/test_app/config/database.yml +22 -0
  27. data/test_app/config/environment.rb +18 -0
  28. data/test_app/config/environments/development.rb +26 -0
  29. data/test_app/config/environments/production.rb +49 -0
  30. data/test_app/config/environments/test.rb +35 -0
  31. data/test_app/config/initializers/_config.rb +49 -0
  32. data/test_app/config/initializers/backtrace_silencers.rb +7 -0
  33. data/test_app/config/initializers/compass.rb +5 -0
  34. data/test_app/config/initializers/inflections.rb +10 -0
  35. data/test_app/config/initializers/mime_types.rb +5 -0
  36. data/test_app/config/initializers/mongo.rb +10 -0
  37. data/test_app/config/locales/en.yml +5 -0
  38. data/test_app/config/magent.yml +13 -0
  39. data/test_app/config/mongoid.yml +23 -0
  40. data/test_app/config/routes.rb +58 -0
  41. data/test_app/config.ru +4 -0
  42. data/test_app/db/seeds.rb +7 -0
  43. data/test_app/doc/README_FOR_APP +2 -0
  44. data/test_app/log/development.log +0 -0
  45. data/test_app/log/production.log +0 -0
  46. data/test_app/log/server.log +0 -0
  47. data/test_app/log/test.log +0 -0
  48. data/test_app/public/404.html +26 -0
  49. data/test_app/public/422.html +26 -0
  50. data/test_app/public/500.html +26 -0
  51. data/test_app/public/javascripts/application.js +7 -0
  52. data/test_app/public/javascripts/rails.js +1 -0
  53. data/test_app/script/rails +6 -0
  54. data/test_app/test/performance/browsing_test.rb +9 -0
  55. data/test_app/test/test_helper.rb +13 -0
  56. metadata +54 -3
data/Rakefile CHANGED
@@ -2,9 +2,6 @@ require 'rake'
2
2
  require 'rake/gempackagetask'
3
3
  require 'rake/testtask'
4
4
 
5
- desc 'Default: run unit tests.'
6
- task :default => :test
7
-
8
5
  desc 'Run tests'
9
6
  Rake::TestTask.new(:test) do |t|
10
7
  t.libs << 'test'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2
1
+ 0.3
data/templates/Gemfile CHANGED
@@ -1,17 +1,18 @@
1
1
  source "http://gemcutter.org"
2
2
 
3
- gem "rails", "3.0.3"
3
+ gem "rails", "~> 3.0.8"
4
4
 
5
5
  # ui
6
- gem "haml"
7
- gem 'compass', '0.10.6.pre.1'
6
+ gem "haml", "~> 3.1.2"
7
+ gem "sass" "~> 3.1.4"
8
+ gem 'compass', '0.11.4'
8
9
 
9
10
  # utils
10
11
  gem 'magic', '~> 0.2.6'
11
12
  gem 'ruby-stemmer', '~> 0.8.2'
12
- gem 'magent', '~> 0.5.2'
13
+ gem 'magent', '~> 0.6.2'
13
14
  gem 'uuidtools'
14
- gem 'sanitize', '~> 1.2.1'
15
+ gem 'sanitize', '~> 2.0.3'
15
16
  gem 'dynamic_form'
16
17
  gem 'will_paginate', :git => 'git://github.com/mislav/will_paginate.git', :branch => "rails3"
17
18
  gem 'rdiscount'
@@ -21,39 +22,47 @@ gem "twitter-text", "1.1.8"
21
22
  gem "twitter_oauth"
22
23
 
23
24
  # mongodb
24
- gem 'bson', '1.1.2'
25
- gem 'bson_ext', '1.1.2'
25
+ gem 'bson', '1.3.1'
26
+ gem 'bson_ext', '1.3.1'
26
27
 
27
- gem 'mongo', '1.1.2'
28
- gem 'mongoid', '2.0.0.beta.20'
28
+ gem 'mongo', '1.3.1'
29
+ gem 'mongoid', '2.0.2'
29
30
  gem 'mongoid_ext', :git => "git://github.com/dcu/mongoid_ext.git"
30
31
 
31
32
  # authentication
32
- gem 'omniauth', '~> 0.1.6'
33
+ gem 'omniauth', '~> 0.2.6'
33
34
  gem 'multiauth', :git => "http://github.com/dcu/multiauth.git"
34
35
 
35
36
  gem 'orm_adapter'
36
- gem 'devise', :git => 'http://github.com/plataformatec/devise.git'
37
+ gem 'devise', '~> 1.4.2'
37
38
 
38
39
 
39
40
  group :scripts do
40
41
  gem 'eventmachine', '~> 0.12.10'
41
- gem 'em-websocket', '~> 0.1.4'
42
+ gem 'em-websocket', '~> 0.3.0'
42
43
  gem 'cronedit'
43
44
  end
44
45
 
46
+ group :test do
47
+ gem 'rspec', '2.6.0'
48
+ gem 'rspec-rails', '2.6.0'
49
+ gem 'capybara', '1.0.0'
50
+ #gem "capybara-webkit", '1.0.0.beta4'
51
+ gem "autotest"
52
+ gem 'factory_girl'
53
+ gem 'ffaker'
54
+ gem 'launchy'
55
+ gem "remarkable_mongoid", ">= 0.6.0"
56
+ gem 'simplecov'
57
+ end
58
+
45
59
  group :development do
46
- gem 'rspec', '2.0.0'
47
- gem 'rspec-rails', '2.0.0'
48
60
  gem 'mongrel', '1.2.0.pre2'
49
- gem 'nifty-generators', '~> 0.4.2'
61
+ gem 'nifty-generators', '~> 0.4.6'
50
62
  gem 'capistrano'
51
- gem "fabrication"
52
- gem "autotest"
53
- gem "remarkable_mongoid", ">= 0.5.0"
54
63
  gem 'hpricot'
55
64
  gem 'ruby_parser'
56
65
  gem "database_cleaner"
57
-
66
+ gem 'rails-dev-boost', :git => 'git://github.com/thedarkone/rails-dev-boost.git', :require => 'rails_development_boost'
58
67
  end
59
68
 
data/test/hamgen_test.rb CHANGED
@@ -6,7 +6,7 @@ require 'fileutils'
6
6
  class HamgenTest < Test::Unit::TestCase
7
7
  def initialize(arg)
8
8
  @path = File.dirname(__FILE__) + '/../'
9
- @exec = @path + "bin/hamgen"
9
+ @exec = @path + "bin/ricogen"
10
10
  @app_name = "test_app"
11
11
  @app_path = @path + "test_app"
12
12
  super(arg)
data/test_app/Gemfile ADDED
@@ -0,0 +1,68 @@
1
+ source "http://gemcutter.org"
2
+
3
+ gem "rails", "~> 3.0.8"
4
+
5
+ # ui
6
+ gem "haml", "~> 3.1.2"
7
+ gem "sass" "~> 3.1.4"
8
+ gem 'compass', '0.11.4'
9
+
10
+ # utils
11
+ gem 'magic', '~> 0.2.6'
12
+ gem 'ruby-stemmer', '~> 0.8.2'
13
+ gem 'magent', '~> 0.6.2'
14
+ gem 'uuidtools'
15
+ gem 'sanitize', '~> 2.0.3'
16
+ gem 'dynamic_form'
17
+ gem 'will_paginate', :git => 'git://github.com/mislav/will_paginate.git', :branch => "rails3"
18
+ gem 'rdiscount'
19
+
20
+ # twitter
21
+ gem "twitter-text", "1.1.8"
22
+ gem "twitter_oauth"
23
+
24
+ # mongodb
25
+ gem 'bson', '1.3.1'
26
+ gem 'bson_ext', '1.3.1'
27
+
28
+ gem 'mongo', '1.3.1'
29
+ gem 'mongoid', '2.0.2'
30
+ gem 'mongoid_ext', :git => "git://github.com/dcu/mongoid_ext.git"
31
+
32
+ # authentication
33
+ gem 'omniauth', '~> 0.2.6'
34
+ gem 'multiauth', :git => "http://github.com/dcu/multiauth.git"
35
+
36
+ gem 'orm_adapter'
37
+ gem 'devise', '~> 1.4.2'
38
+
39
+
40
+ group :scripts do
41
+ gem 'eventmachine', '~> 0.12.10'
42
+ gem 'em-websocket', '~> 0.3.0'
43
+ gem 'cronedit'
44
+ end
45
+
46
+ group :test do
47
+ gem 'rspec', '2.6.0'
48
+ gem 'rspec-rails', '2.6.0'
49
+ gem 'capybara', '1.0.0'
50
+ #gem "capybara-webkit", '1.0.0.beta4'
51
+ gem "autotest"
52
+ gem 'factory_girl'
53
+ gem 'ffaker'
54
+ gem 'launchy'
55
+ gem "remarkable_mongoid", ">= 0.6.0"
56
+ gem 'simplecov'
57
+ end
58
+
59
+ group :development do
60
+ gem 'mongrel', '1.2.0.pre2'
61
+ gem 'nifty-generators', '~> 0.4.6'
62
+ gem 'capistrano'
63
+ gem 'hpricot'
64
+ gem 'ruby_parser'
65
+ gem "database_cleaner"
66
+ gem 'rails-dev-boost', :git => 'git://github.com/thedarkone/rails-dev-boost.git', :require => 'rails_development_boost'
67
+ end
68
+
data/test_app/Rakefile ADDED
@@ -0,0 +1,7 @@
1
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
2
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
+
4
+ require File.expand_path('../config/application', __FILE__)
5
+ require 'rake'
6
+
7
+ TestApp::Application.load_tasks
@@ -0,0 +1,3 @@
1
+ class ApplicationController < ActionController::Base
2
+ protect_from_forgery
3
+ end
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
@@ -0,0 +1,12 @@
1
+ // setup.sass | BOOTSTRAP YOUR PROJECT
2
+
3
+ // Default Body Styles
4
+ $background: white
5
+ $font-family: $helvetica
6
+ $font-size: $medium
7
+ $colour: darken(white, 93%)
8
+
9
+ // Default link colours/styles
10
+ $link_colour: blue
11
+ $hover_colour: purple
12
+ $active_colour: red
@@ -0,0 +1,15 @@
1
+ // DEFAULT LIBRARIES
2
+ @import lib/mixins
3
+ @import lib/variables
4
+ @import styles/variables
5
+ @import setup
6
+ @import lib/reset
7
+ @import lib/extend
8
+
9
+ // DEFAULT BASE STYLES
10
+ @import styles/extend
11
+ @import styles/mixins
12
+ @import styles/common
13
+ @import styles/template
14
+
15
+
@@ -0,0 +1,87 @@
1
+ // extend.sass | LIBRARY @EXTEND CLASSES
2
+
3
+ // Clearing Floats
4
+ ----------------------------------------------
5
+ .clear => For non-floating element immediately below a floating element.
6
+
7
+ .clearfix => For floating children inside a parent.
8
+ Class goes on parent holding floating children.
9
+
10
+ // Use all of these classes with the @extend option
11
+ .zoom
12
+ :zoom 1
13
+
14
+ .left
15
+ :float left
16
+
17
+ .right
18
+ :float right
19
+
20
+ .block
21
+ :display block
22
+
23
+ .absolute
24
+ :position absolute
25
+
26
+ .relative
27
+ :position relative
28
+
29
+ .center
30
+ :text-align center
31
+
32
+ .hidden
33
+ :overflow hidden
34
+
35
+ .bold
36
+ :font-weight bold
37
+
38
+ .clear
39
+ :clear both
40
+
41
+ .clearfix:after
42
+ @extend .clear
43
+ @extend .block
44
+ :content ""
45
+
46
+ // Replacing text with a background image
47
+ .hide-text, .h
48
+ @extend .block
49
+ @extend .hidden
50
+ :font-size 0
51
+ :text-indent -9999em
52
+ :white-space nowrap
53
+ :.text-transform capitalize
54
+
55
+ // Reset some basic styling
56
+ .reset, .r
57
+ :border 0
58
+ :margin 0
59
+ :padding 0
60
+
61
+ // Consolidate fonts. Works with font $variables in lib/variables.
62
+ .font_x-small
63
+ :font-size $x-small
64
+
65
+ .font_small
66
+ :font-size $small
67
+
68
+ .font_medium
69
+ :font-size $medium
70
+
71
+ .font_x-medium
72
+ :font-size $x-medium
73
+
74
+ .font_large
75
+ :font-size $large
76
+
77
+ .font_x-large
78
+ :font-size $x-large
79
+
80
+ .font_xx-large
81
+ :font-size $xx-large
82
+
83
+ .font_huge
84
+ :font-size $huge
85
+
86
+ .font_x-huge
87
+ :font-size $x-huge
@@ -0,0 +1,78 @@
1
+ // mixins.sass | LIBRARY MIX-INS
2
+
3
+ // Quickly outline any tag for debug purposes
4
+ =o
5
+ :background rgba(255, 0, 0, 0.15) !important
6
+ :outline 1px solid red !important
7
+
8
+ // Cross browser box model resizing
9
+ =box-sizing( $box-sizing)
10
+ :-moz-box-sizing $box-sizing
11
+ :-webkit-box-sizing $box-sizing
12
+ :box-sizing $box-sizing
13
+
14
+ // Cross browser opacity
15
+ =opacity( $opacity)
16
+ :-ms-filter unquote("progid:DXImageTransform.Microsoft.Alpha(Opacity=") + $opacity + unquote(")")
17
+ :filter unquote("alpha(opacity=") + $opacity + unquote(")")
18
+ :opacity $opacity * 0.01
19
+
20
+ // Cross browser transition effect
21
+ =transition( $transition)
22
+ :-moz-transition $transition
23
+ :-o-transition $transition
24
+ :-webkit-transition $transition
25
+ :transition $transition
26
+
27
+ // Cross browser transform effect
28
+ =transform( $transform)
29
+ :-moz-transform $transform
30
+ :-o-transform $transform
31
+ :-webkit-transform $transform
32
+ :transform $transform
33
+
34
+ // Cross browser multi-column layout
35
+ // # of columns
36
+ =column-count( $count)
37
+ :-moz-column-count $count
38
+ :-webkit-column-count $count
39
+ :column-count $count
40
+ // Space between columns
41
+ =column-gap( $gap)
42
+ :-moz-column-gap $gap
43
+ :-webkit-column-gap $gap
44
+ :column-gap $gap
45
+ // Combine -count and -gap into one easy mixin
46
+ =columns( $count, $gap)
47
+ +column-count( $count)
48
+ +column-gap( $gap)
49
+
50
+ // Cross browser box shadow
51
+ // If you want to have multiple box shadows, you must enclose the values in quotes (" ").
52
+ =box-shadow( $shadow)
53
+ $shadow: unquote($shadow)
54
+ :-moz-box-shadow $shadow
55
+ :-webkit-box-shadow $shadow
56
+ :box-shadow $shadow
57
+
58
+ // Cross browser rounded corners
59
+ =border-radius( $radius)
60
+ :-moz-border-radius $radius
61
+ :-webkit-border-radius $radius
62
+ :border-radius $radius
63
+ =border-radius-top-left( $radius)
64
+ :-moz-border-radius-topleft $radius
65
+ :-webkit-border-top-left-radius $radius
66
+ :border-top-left-radius $radius
67
+ =border-radius-top-right( $radius)
68
+ :-moz-border-radius-topright $radius
69
+ :-webkit-border-top-right-radius $radius
70
+ :border-top-right-radius $radius
71
+ =border-radius-bottom-right( $radius)
72
+ :-moz-border-radius-bottomright $radius
73
+ :-webkit-border-bottom-right-radius $radius
74
+ :border-bottom-right-radius $radius
75
+ =border-radius-bottom-left( $radius)
76
+ :-moz-border-radius-bottomleft $radius
77
+ :-webkit-border-bottom-left-radius $radius
78
+ :border-bottom-left-radius $radius
@@ -0,0 +1,150 @@
1
+ // reset.sass | LIBRARY HTML TAG RESET
2
+
3
+ // Hard Tag Reset
4
+ a, article, aside, blockquote, body, button, dd, dl, dt, fieldset, figure, footer,
5
+ h1, h2, h3, h4, h5, h6, header, hgroup, html, img, input, label, legend, li, menu,
6
+ nav, ol, p, section, select, small, table, textarea, td, th, tr, ul
7
+ :font
8
+ :size 100%
9
+ :style normal
10
+ :weight normal
11
+ :line-height 1
12
+ :margin 0
13
+ :padding 0
14
+ :vertical-align baseline
15
+
16
+ // Setting Blocks
17
+ article, aside, figure, footer, header, hgroup, img, label, menu, nav, section
18
+ @extend .block
19
+
20
+ // Typography
21
+ h1, h2, h3, h4, h5, h6, p, table, li, fieldset
22
+ :margin-bottom $font-size
23
+
24
+ p
25
+ :line-height $font-size * 1.55
26
+
27
+ // <body> Reset
28
+ body, textarea, input, option, select, button
29
+ :font-family $font-family
30
+
31
+ body
32
+ :-webkit-text-stroke 1px transparent
33
+ :background $background
34
+ :font-size $font-size
35
+ :text-rendering optimizeLegibility
36
+
37
+ body, legend
38
+ :color $colour
39
+
40
+ // Links
41
+ a, abbr[title]
42
+ :padding-bottom 1px
43
+
44
+ a
45
+ :border-bottom 1px solid
46
+ :color $link_colour
47
+ :outline 0
48
+ :text-decoration none
49
+ &:hover
50
+ :color $hover_colour
51
+ &:hover, &:focus
52
+ :border-bottom 0
53
+ &:active
54
+ :color $active_colour
55
+ img
56
+ :border 0
57
+
58
+ // Tables + Forms
59
+ table
60
+ :border
61
+ :collapse collapse
62
+ :spacing 0
63
+ :width 100%
64
+
65
+ caption, legend, td, th
66
+ :text-align left
67
+
68
+ td, th, input, select
69
+ :vertical-align middle
70
+
71
+ fieldset, input[type="checkbox"], input[type="radio"]
72
+ :border 0
73
+
74
+ button, input[type="checkbox"], input[type="radio"], input[type="submit"], select
75
+ :cursor pointer
76
+
77
+ input[type="checkbox"] + label, input[type="radio"] + label
78
+ :display inline-block
79
+ :vertical-align -1px
80
+ :.vertical-align baseline
81
+
82
+ button
83
+ :.vertical-align middle
84
+ &::-moz-focus-inner
85
+ :border 0
86
+
87
+ input
88
+ &[type="submit"], &[type="button"]
89
+ :.padding 2px 0 0
90
+
91
+ legend
92
+ :.margin-left -6px
93
+
94
+ textarea
95
+ +box-sizing( border-box)
96
+ :overflow auto
97
+ :resize none
98
+
99
+ // Misc
100
+ abbr[title]
101
+ :border-bottom 1px dotted
102
+ :cursor help
103
+
104
+ ul, ol
105
+ :list-style none
106
+
107
+ // Be nice to IE...
108
+ a, div, li, li a
109
+ @extend .zoom
110
+
111
+ img
112
+ :-ms-interpolation-mode bicubic
113
+
114
+ // Modern Mobile Devices
115
+ @media only screen and (max-device-width: 480px), only screen and (min-device-width: 768px) and (max-device-width: 1024px)
116
+ *
117
+ :-webkit-box-shadow none !important
118
+ :text-shadow none !important
119
+
120
+ html
121
+ :-ms-text-size-adjust none
122
+ :-webkit
123
+ :text-size-adjust none
124
+ :touch-callout none
125
+ :user-select none
126
+
127
+ body
128
+ :-webkit-text-stroke 0 black
129
+
130
+ a
131
+ :-webkit-tap-highlight-color rgba(0,0,0,0)
132
+
133
+ // Printing
134
+ @media print
135
+ body
136
+ :color black !important
137
+ :background white !important
138
+ :font-size 12pt !important
139
+
140
+ a:after, abbr[title]:after
141
+ :font-size 75%
142
+
143
+ a:after
144
+ :content " (" attr(href) ") "
145
+
146
+ abbr[title]
147
+ :border 0
148
+ &:after
149
+ :content " (" attr(title) ") "
150
+
@@ -0,0 +1,26 @@
1
+ // variables.sass | LIBRARY VARIABLES
2
+
3
+ // FONT STACKS
4
+ // Sans Serif
5
+ $geneva: geneva, tahoma, "dejavu sans condensed", sans-serif
6
+ $helvetica: "helvetica neue", helvetica, arial, freesans, "liberation sans", "numbus sans l", sans-serif
7
+ $lucida: "lucida grande", "lucida sans unicode", "lucida sans", lucida, sans-serif
8
+ $verdana: verdana, "bitstream vera sans", "dejavu sans", "liberation sans", geneva, sans-serif
9
+ // Serif
10
+ $georgia: georgia, "bitstream charter", "century schoolbook l", "liberation serif", times, serif
11
+ $palatino: "palatino linotype", palatino, palladio, "urw palladio l", "book antiqua", "liberation serif", times, serif
12
+ $times: times, "times new roman", "nimbus roman no9 l", freeserif, "liberation serif", serif
13
+ // Monospace
14
+ $courier: "courier new", courier, freemono, "nimbus mono l", "liberation mono", monospace
15
+ $monaco: monaco, "lucida console", "dejavu sans mono", "bitstream vera sans mono", "liberation mono", monospace
16
+
17
+ // FONT SIZES
18
+ $x-small: 9px
19
+ $small: 11px
20
+ $medium: 13px
21
+ $x-medium: 17px
22
+ $large: 21px
23
+ $x-large: 34px
24
+ $xx-large: 55px
25
+ $huge: 72px
26
+ $x-huge: 89px
@@ -0,0 +1 @@
1
+ // common.sass -- project-specific .classes
@@ -0,0 +1 @@
1
+ // extend.sass -- project-specific @extend .classes
@@ -0,0 +1 @@
1
+ // mixins.sass -- project-specific +mixins
@@ -0,0 +1 @@
1
+ // template.sass -- project-specific layout #ids
@@ -0,0 +1 @@
1
+ // variables.sass -- project-specific $variables
@@ -0,0 +1,28 @@
1
+ !!!
2
+ %html{:lang => 'en'}
3
+ %head
4
+ %title #{@title}
5
+ %meta{:charset => 'utf-8'}
6
+ %meta{'http-equiv' => 'X-UA-Compatible', :content => 'IE=edge,chrome=1'}
7
+ %meta{:name => 'viewport', :content => 'width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0'}
8
+ = csrf_meta_tag
9
+ <!--[if ! lte IE 7]><!-->
10
+ %link{:rel => 'stylesheet', :href => '/stylesheets/application.css'}
11
+ <!--<![endif]-->
12
+ /[if lte IE 7]
13
+ %link{:rel => 'stylesheet', :href => 'http://universal-ie6-css.googlecode.com/files/ie6.0.3.css'}
14
+ /[if IE]
15
+ %script{:src => 'http://html5shiv.googlecode.com/svn/trunk/html5.js'}
16
+
17
+ %body{:class => page_class}
18
+ = yield
19
+
20
+ <!--[if ! lte IE 7]><!-->
21
+ %script{:src => 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'}
22
+ %script{:src => '/javascripts/application.js'}
23
+ <!--<![endif]-->
24
+ /[if lte IE 8]
25
+ //%script{:src => 'http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js'}
26
+
27
+ / Google Analytics | Don't forget to include your tracking number!!!!
28
+ %script var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-XXXXX-X']); _gaq.push(['_trackPageview']); (function() {var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);})();
@@ -0,0 +1,5 @@
1
+ ---
2
+ development:
3
+ session_secret: c625663d47263b4810bc4039f8c4fbdf943933e37a5dc830f1fa36db8904451ea1ed254b07393a7b5ae9ad14f2d0e16170042a2162aba9531da1a824529ab7c23f6ad078e158b8db4f2841c16db4840a
4
+ session_key: __app_session
5
+ domain: localhost
@@ -0,0 +1,52 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ require "action_controller/railtie"
4
+ require "action_mailer/railtie"
5
+ require "active_resource/railtie"
6
+
7
+ # If you have a Gemfile, require the gems listed there, including any gems
8
+ # you've limited to :test, :development, or :production.
9
+ Bundler.require(:default, Rails.env) if defined?(Bundler)
10
+
11
+ module TestApp
12
+ class Application < Rails::Application
13
+ # Settings in config/environments/* take precedence over those specified here.
14
+ # Application configuration should go into files in config/initializers
15
+ # -- all .rb files in that directory are automatically loaded.
16
+
17
+ # Custom directories with classes and modules you want to be autoloadable.
18
+ # config.autoload_paths += %W(#{config.root}/extras)
19
+
20
+ # Only load the plugins named here, in the order given (default is alphabetical).
21
+ # :all can be used as a placeholder for all plugins not explicitly named.
22
+ # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
23
+
24
+ # Activate observers that should always be running.
25
+ # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
26
+
27
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
28
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
29
+ # config.time_zone = 'Central Time (US & Canada)'
30
+
31
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
32
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
33
+ # config.i18n.default_locale = :de
34
+
35
+ # JavaScript files you want as :defaults (application.js is always included).
36
+ # config.action_view.javascript_expansions[:defaults] = %w(jquery rails)
37
+
38
+ # Configure the default encoding used in templates for Ruby 1.9.
39
+ config.encoding = "utf-8"
40
+
41
+ # Configure sensitive parameters which will be filtered from the log file.
42
+ config.filter_parameters += [:password]
43
+ config.generators do |g|
44
+ g.orm = :mongo_mapper
45
+ g.template_engine = :haml
46
+ g.test_framework = :rspec
47
+ end
48
+
49
+ config.middleware.use "MongoidExt::FileServer"
50
+
51
+ end
52
+ end