patcito-ricogen 0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -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,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/ricogen"
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,128 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: patcito-ricogen
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.3'
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Hampton Catlin
9
+ - David Cuadrado
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2011-09-22 00:00:00.000000000Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: colored
17
+ requirement: &11530840 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ~>
21
+ - !ruby/object:Gem::Version
22
+ version: '1.2'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: *11530840
26
+ - !ruby/object:Gem::Dependency
27
+ name: rails
28
+ requirement: &11529720 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 3.0.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: *11529720
37
+ - !ruby/object:Gem::Dependency
38
+ name: haml
39
+ requirement: &11528620 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ~>
43
+ - !ruby/object:Gem::Version
44
+ version: 3.0.18
45
+ type: :runtime
46
+ prerelease: false
47
+ version_requirements: *11528620
48
+ - !ruby/object:Gem::Dependency
49
+ name: rake
50
+ requirement: &11527580 !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ~>
54
+ - !ruby/object:Gem::Version
55
+ version: 0.8.7
56
+ type: :development
57
+ prerelease: false
58
+ version_requirements: *11527580
59
+ description: ! " A Rails 3.0 generator (like for the whole project) that pre-generates\n
60
+ \ a bunch of shit I like. Most of it is stolen directly from Hampton's Rails
61
+ Template\n at http://github.com/hcatlin/hamgen but with changes just for ole'
62
+ me\n"
63
+ email: krawek@gmail.com
64
+ executables:
65
+ - ricogen
66
+ extensions: []
67
+ extra_rdoc_files: []
68
+ files:
69
+ - init.rb
70
+ - REVISION
71
+ - VERSION
72
+ - SNIPPETS.md
73
+ - templates/magent.yml
74
+ - templates/auth_providers.yml
75
+ - templates/mongoid.yml
76
+ - templates/application.html.haml
77
+ - templates/javascripts/application.js
78
+ - templates/javascripts/rails.js
79
+ - templates/mongo.rb
80
+ - templates/compass.config
81
+ - templates/_config.rb
82
+ - templates/sass/lib/_mixins.sass
83
+ - templates/sass/lib/_reset.sass
84
+ - templates/sass/lib/_variables.sass
85
+ - templates/sass/lib/_extend.sass
86
+ - templates/sass/application.sass
87
+ - templates/sass/_setup.sass
88
+ - templates/sass/styles/_mixins.sass
89
+ - templates/sass/styles/_template.sass
90
+ - templates/sass/styles/_variables.sass
91
+ - templates/sass/styles/_extend.sass
92
+ - templates/sass/styles/_common.sass
93
+ - templates/environment.rb
94
+ - templates/gitignore
95
+ - templates/application.rb
96
+ - templates/compass.rb
97
+ - templates/Gemfile
98
+ - ricogen-0.3.gem
99
+ - bin/ricogen
100
+ - test/hamgen_test.rb
101
+ - Rakefile
102
+ - README.md
103
+ - patcito-ricogen.gemspec
104
+ homepage: http://www.hamptoncatlin.com/
105
+ licenses: []
106
+ post_install_message:
107
+ rdoc_options: []
108
+ require_paths:
109
+ - lib
110
+ required_ruby_version: !ruby/object:Gem::Requirement
111
+ none: false
112
+ requirements:
113
+ - - ! '>='
114
+ - !ruby/object:Gem::Version
115
+ version: '0'
116
+ required_rubygems_version: !ruby/object:Gem::Requirement
117
+ none: false
118
+ requirements:
119
+ - - ! '>='
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ requirements: []
123
+ rubyforge_project: ricogen
124
+ rubygems_version: 1.8.10
125
+ signing_key:
126
+ specification_version: 3
127
+ summary: My rails 3 app generator based on hamgen
128
+ test_files: []