ricogen 0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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,33 @@
1
+ require 'rubygems'
2
+ require 'test/unit'
3
+ require 'colored'
4
+ require 'fileutils'
5
+
6
+ class HamgenTest < Test::Unit::TestCase
7
+ def initialize(arg)
8
+ @path = File.dirname(__FILE__) + '/../'
9
+ @exec = @path + "bin/hamgen"
10
+ @app_name = "test_app"
11
+ @app_path = @path + "test_app"
12
+ super(arg)
13
+ end
14
+
15
+ def test_has_rvm_setup
16
+ list = `rvm list`
17
+ assert list.include?("ruby-1.8.7"), "Need rvm with 1.8.7 installed to run tests"
18
+ assert list.include?("ruby-1.9.2"), "Need rvm with 1.9.2 installed to run tests"
19
+ end
20
+
21
+ def test_runs_generator
22
+ result = build
23
+ assert !result.include?("Error"), "Threw an error"
24
+ end
25
+
26
+ def build(options = "")
27
+ `#{@exec} #{options} test_app`
28
+ end
29
+
30
+ def teardown
31
+ FileUtils.rm_rf(@app_path)
32
+ end
33
+ end
metadata ADDED
@@ -0,0 +1,154 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ricogen
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 1
8
+ version: "0.1"
9
+ platform: ruby
10
+ authors:
11
+ - Hampton Catlin
12
+ - David Cuadrado
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-10-28 00:00:00 -05:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: colored
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ~>
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 1
30
+ - 2
31
+ version: "1.2"
32
+ type: :runtime
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
35
+ name: rails
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ none: false
39
+ requirements:
40
+ - - ~>
41
+ - !ruby/object:Gem::Version
42
+ segments:
43
+ - 3
44
+ - 0
45
+ - 0
46
+ version: 3.0.0
47
+ type: :runtime
48
+ version_requirements: *id002
49
+ - !ruby/object:Gem::Dependency
50
+ name: haml
51
+ prerelease: false
52
+ requirement: &id003 !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ~>
56
+ - !ruby/object:Gem::Version
57
+ segments:
58
+ - 3
59
+ - 0
60
+ - 18
61
+ version: 3.0.18
62
+ type: :runtime
63
+ version_requirements: *id003
64
+ - !ruby/object:Gem::Dependency
65
+ name: rake
66
+ prerelease: false
67
+ requirement: &id004 !ruby/object:Gem::Requirement
68
+ none: false
69
+ requirements:
70
+ - - ~>
71
+ - !ruby/object:Gem::Version
72
+ segments:
73
+ - 0
74
+ - 8
75
+ - 7
76
+ version: 0.8.7
77
+ type: :development
78
+ version_requirements: *id004
79
+ description: " A Rails 3.0 generator (like for the whole project) that pre-generates\n a bunch of shit I like. Most of it is stolen directly from Hampton's Rails Template\n at http://github.com/hcatlin/hamgen but with changes just for ole' me\n"
80
+ email: krawek@gmail.com
81
+ executables:
82
+ - ricogen
83
+ extensions: []
84
+
85
+ extra_rdoc_files: []
86
+
87
+ files:
88
+ - SNIPPETS.md
89
+ - README.md
90
+ - bin/ricogen
91
+ - ricogen.gemspec
92
+ - templates/compass.rb
93
+ - templates/application.rb
94
+ - templates/_config.rb
95
+ - templates/environment.rb
96
+ - templates/compass.config
97
+ - templates/application.html.haml
98
+ - templates/database.yml
99
+ - templates/Gemfile
100
+ - templates/gitignore
101
+ - templates/magent.yml
102
+ - templates/sass/styles/_variables.sass
103
+ - templates/sass/styles/_common.sass
104
+ - templates/sass/styles/_mixins.sass
105
+ - templates/sass/styles/_extend.sass
106
+ - templates/sass/styles/_template.sass
107
+ - templates/sass/_setup.sass
108
+ - templates/sass/lib/_variables.sass
109
+ - templates/sass/lib/_mixins.sass
110
+ - templates/sass/lib/_extend.sass
111
+ - templates/sass/lib/_reset.sass
112
+ - templates/sass/application.sass
113
+ - templates/mongo.rb
114
+ - templates/javascripts/application.js
115
+ - templates/javascripts/rails.js
116
+ - Rakefile
117
+ - test/hamgen_test.rb
118
+ - init.rb
119
+ - REVISION
120
+ - VERSION
121
+ has_rdoc: true
122
+ homepage: http://www.hamptoncatlin.com/
123
+ licenses: []
124
+
125
+ post_install_message:
126
+ rdoc_options: []
127
+
128
+ require_paths:
129
+ - lib
130
+ required_ruby_version: !ruby/object:Gem::Requirement
131
+ none: false
132
+ requirements:
133
+ - - ">="
134
+ - !ruby/object:Gem::Version
135
+ segments:
136
+ - 0
137
+ version: "0"
138
+ required_rubygems_version: !ruby/object:Gem::Requirement
139
+ none: false
140
+ requirements:
141
+ - - ">="
142
+ - !ruby/object:Gem::Version
143
+ segments:
144
+ - 0
145
+ version: "0"
146
+ requirements: []
147
+
148
+ rubyforge_project: ricogen
149
+ rubygems_version: 1.3.7
150
+ signing_key:
151
+ specification_version: 3
152
+ summary: My rails 3 app generator based on hamgen
153
+ test_files: []
154
+