rails-eos 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/Rakefile +15 -1
- data/VERSION +1 -1
- data/bin/eos +69 -1
- data/bin/files/Gemfile +1 -1
- data/bin/files/stylesheets/_base.css.scss +41 -0
- data/bin/files/stylesheets/_controller.css.scss +4 -0
- data/bin/files/stylesheets/_mixins.css.scss +12 -0
- data/bin/files/stylesheets/_reset.css.scss +47 -0
- data/bin/files/stylesheets/_variables.css.scss +13 -0
- data/bin/files/stylesheets/styles.css.scss +6 -0
- data/rails-eos.gemspec +9 -3
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cbbd02cabda45833cf844e3b6c17e608c39d2006
|
4
|
+
data.tar.gz: 450736406cf256a551a5f5fdd56d49f4385c6243
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0720950dc6f4e1d7b89b3f535f4d5804d4d01e35896c258f06ada3256fa2cccf0a7a89eddd4767b285319649465d2762fca18c5d947030b2b0a4421a1621216
|
7
|
+
data.tar.gz: 5b9794d29e145b6cd4c9d9f75cdb9ceb7568b11039d3edca523a0b4b86e5beb42f714813042e0ce03d25905807e4648e23e142ebfbbee2bf9a499fe5bd2c573c
|
data/README.md
CHANGED
data/Rakefile
CHANGED
@@ -22,7 +22,21 @@ Jeweler::Tasks.new do |gem|
|
|
22
22
|
gem.email = "louis@cosmiclabs.com.au"
|
23
23
|
gem.authors = ["CosmicLabs"]
|
24
24
|
gem.executables = ["eos"]
|
25
|
-
gem.files.include ['bin/files/Gemfile',
|
25
|
+
gem.files.include ['bin/files/Gemfile',
|
26
|
+
'bin/files/routes.rb',
|
27
|
+
'bin/files/home_controller.rb',
|
28
|
+
'bin/files/index.html.haml',
|
29
|
+
'bin/files/Guardfile',
|
30
|
+
'bin/files/development.rb',
|
31
|
+
'bin/files/bower.rb',
|
32
|
+
'bin/files/.gitignore',
|
33
|
+
'bin/files/.bowerrc',
|
34
|
+
'bin/files/stylesheets/_base.css.scss',
|
35
|
+
'bin/files/stylesheets/_reset.css.scss',
|
36
|
+
'bin/files/stylesheets/_variables.css.scss',
|
37
|
+
'bin/files/stylesheets/_mixins.css.scss',
|
38
|
+
'bin/files/stylesheets/_controller.css.scss',
|
39
|
+
'bin/files/stylesheets/styles.css.scss']
|
26
40
|
# dependencies defined in Gemfile
|
27
41
|
end
|
28
42
|
Jeweler::RubygemsDotOrgTasks.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.0
|
data/bin/eos
CHANGED
@@ -43,7 +43,6 @@ class Eos < Thor
|
|
43
43
|
desc "convert", "Eos basic setup."
|
44
44
|
def convert
|
45
45
|
convert_gemfile
|
46
|
-
run_bundle
|
47
46
|
convert_haml
|
48
47
|
setup_home
|
49
48
|
init_guard
|
@@ -52,6 +51,8 @@ class Eos < Thor
|
|
52
51
|
install_cucumber
|
53
52
|
add_livereload
|
54
53
|
install_bower
|
54
|
+
add_stylesheets
|
55
|
+
run_bundle
|
55
56
|
finished_message
|
56
57
|
end
|
57
58
|
|
@@ -67,6 +68,7 @@ private
|
|
67
68
|
end
|
68
69
|
|
69
70
|
def run_bundle
|
71
|
+
puts set_color "Running bundle install.", :white, :bold
|
70
72
|
system("bundle install")
|
71
73
|
puts set_color "Bundle install complete.", :white, :bold
|
72
74
|
end
|
@@ -186,6 +188,72 @@ private
|
|
186
188
|
puts set_color "Added Bowerrc.", :green, :bold
|
187
189
|
end
|
188
190
|
|
191
|
+
# Add Stylesheets
|
192
|
+
|
193
|
+
def add_stylesheets
|
194
|
+
add_stylesheet_reset
|
195
|
+
add_stylesheet_variables
|
196
|
+
add_stylesheet_base
|
197
|
+
add_stylesheet_mixins
|
198
|
+
add_stylesheet_controller
|
199
|
+
add_stylesheet_styles
|
200
|
+
puts set_color "Stylesheet setup complete.", :white, :bold
|
201
|
+
end
|
202
|
+
|
203
|
+
def add_stylesheet_reset
|
204
|
+
path = File.expand_path(File.dirname(__FILE__)) + "/files/stylesheets/_reset.css.scss"
|
205
|
+
source_paths << path
|
206
|
+
destination = Dir.pwd + "/app/assets/stylesheets/_reset.css.scss"
|
207
|
+
remove_file destination
|
208
|
+
copy_file path, destination
|
209
|
+
puts set_color "Added CSS Reset by Eric Meyer", :green, :bold
|
210
|
+
end
|
211
|
+
|
212
|
+
def add_stylesheet_variables
|
213
|
+
path = File.expand_path(File.dirname(__FILE__)) + "/files/stylesheets/_variables.css.scss"
|
214
|
+
source_paths << path
|
215
|
+
destination = Dir.pwd + "/app/assets/stylesheets/_variables.css.scss"
|
216
|
+
remove_file destination
|
217
|
+
copy_file path, destination
|
218
|
+
puts set_color "Added Variables Stylesheet", :green, :bold
|
219
|
+
end
|
220
|
+
|
221
|
+
def add_stylesheet_base
|
222
|
+
path = File.expand_path(File.dirname(__FILE__)) + "/files/stylesheets/_base.css.scss"
|
223
|
+
source_paths << path
|
224
|
+
destination = Dir.pwd + "/app/assets/stylesheets/_base.css.scss"
|
225
|
+
remove_file destination
|
226
|
+
copy_file path, destination
|
227
|
+
puts set_color "Added Base Stylesheet", :green, :bold
|
228
|
+
end
|
229
|
+
|
230
|
+
def add_stylesheet_mixins
|
231
|
+
path = File.expand_path(File.dirname(__FILE__)) + "/files/stylesheets/_mixins.css.scss"
|
232
|
+
source_paths << path
|
233
|
+
destination = Dir.pwd + "/app/assets/stylesheets/_mixins.css.scss"
|
234
|
+
remove_file destination
|
235
|
+
copy_file path, destination
|
236
|
+
puts set_color "Added Mixins Stylesheet", :green, :bold
|
237
|
+
end
|
238
|
+
|
239
|
+
def add_stylesheet_controller
|
240
|
+
path = File.expand_path(File.dirname(__FILE__)) + "/files/stylesheets/_controller.css.scss"
|
241
|
+
source_paths << path
|
242
|
+
destination = Dir.pwd + "/app/assets/stylesheets/_controller.css.scss"
|
243
|
+
remove_file destination
|
244
|
+
copy_file path, destination
|
245
|
+
puts set_color "Added Controller Stylesheet", :green, :bold
|
246
|
+
end
|
247
|
+
|
248
|
+
def add_stylesheet_styles
|
249
|
+
path = File.expand_path(File.dirname(__FILE__)) + "/files/stylesheets/styles.css.scss"
|
250
|
+
source_paths << path
|
251
|
+
destination = Dir.pwd + "/app/assets/stylesheets/styles.css.scss"
|
252
|
+
remove_file destination
|
253
|
+
copy_file path, destination
|
254
|
+
puts set_color "Added Styles Stylesheet", :green, :bold
|
255
|
+
end
|
256
|
+
|
189
257
|
def finished_message
|
190
258
|
puts '- - - - - - - - - -'
|
191
259
|
puts set_color 'Your Eos Conversion Is Complete!', :white, :bold
|
data/bin/files/Gemfile
CHANGED
@@ -0,0 +1,41 @@
|
|
1
|
+
@import 'variables';
|
2
|
+
|
3
|
+
::selection{
|
4
|
+
background: #000;
|
5
|
+
color: #fff;
|
6
|
+
}
|
7
|
+
.clearfix{
|
8
|
+
clear: both;
|
9
|
+
}
|
10
|
+
.pull-left{
|
11
|
+
float: left;
|
12
|
+
}
|
13
|
+
.pull-right{
|
14
|
+
float: right;
|
15
|
+
}
|
16
|
+
.left-align{
|
17
|
+
text-align: left!important;
|
18
|
+
}
|
19
|
+
.circle{
|
20
|
+
border-radius: 50%;
|
21
|
+
}
|
22
|
+
.no-style-link{
|
23
|
+
text-decoration: none;
|
24
|
+
color: inherit;
|
25
|
+
}
|
26
|
+
.error {
|
27
|
+
border:1px solid $red!important;
|
28
|
+
}
|
29
|
+
label.error {
|
30
|
+
height: 0;
|
31
|
+
width: 0;
|
32
|
+
font-size: 0;
|
33
|
+
border: 0!important;
|
34
|
+
position: absolute;
|
35
|
+
}
|
36
|
+
.valid{
|
37
|
+
background: lighten($green, 25%);
|
38
|
+
border: 1px solid lighten($green, 15%)!important;
|
39
|
+
font-weight: 500!important;
|
40
|
+
color: darken($green, 40%);
|
41
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
@mixin border-radius($radius) {
|
2
|
+
-webkit-border-radius: $radius;
|
3
|
+
-moz-border-radius: $radius;
|
4
|
+
-ms-border-radius: $radius;
|
5
|
+
border-radius: $radius;
|
6
|
+
}
|
7
|
+
@mixin transition($target, $time, $ease) {
|
8
|
+
-webkit-transition: $target $time $ease;
|
9
|
+
-moz-transition: $target $time $ease;
|
10
|
+
-ms-transition: $target $time $ease;
|
11
|
+
transition: $target $time $ease;
|
12
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
/**
|
2
|
+
* Eric Meyer's Reset CSS v2.0 (http://meyerweb.com/eric/tools/css/reset/)
|
3
|
+
* http://cssreset.com
|
4
|
+
*/
|
5
|
+
html, body, div, span, applet, object, iframe,
|
6
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
7
|
+
a, abbr, acronym, address, big, cite, code,
|
8
|
+
del, dfn, em, img, ins, kbd, q, s, samp,
|
9
|
+
small, strike, strong, sub, sup, tt, var,
|
10
|
+
b, u, i, center,
|
11
|
+
dl, dt, dd, ol, ul, li,
|
12
|
+
fieldset, form, label, legend,
|
13
|
+
table, caption, tbody, tfoot, thead, tr, th, td,
|
14
|
+
article, aside, canvas, details, embed,
|
15
|
+
figure, figcaption, footer, header, hgroup,
|
16
|
+
menu, nav, output, ruby, section, summary,
|
17
|
+
time, mark, audio, video {
|
18
|
+
margin: 0;
|
19
|
+
padding: 0;
|
20
|
+
border: 0;
|
21
|
+
font-size: 100%;
|
22
|
+
font: inherit;
|
23
|
+
vertical-align: baseline;
|
24
|
+
}
|
25
|
+
/* HTML5 display-role reset for older browsers */
|
26
|
+
article, aside, details, figcaption, figure,
|
27
|
+
footer, header, hgroup, menu, nav, section {
|
28
|
+
display: block;
|
29
|
+
}
|
30
|
+
body {
|
31
|
+
line-height: 1;
|
32
|
+
}
|
33
|
+
ol, ul {
|
34
|
+
list-style: none;
|
35
|
+
}
|
36
|
+
blockquote, q {
|
37
|
+
quotes: none;
|
38
|
+
}
|
39
|
+
blockquote:before, blockquote:after,
|
40
|
+
q:before, q:after {
|
41
|
+
content: '';
|
42
|
+
content: none;
|
43
|
+
}
|
44
|
+
table {
|
45
|
+
border-collapse: collapse;
|
46
|
+
border-spacing: 0;
|
47
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
$green: #8ace71;
|
2
|
+
$red: #ea876c;
|
3
|
+
$yellow: #faffbd;
|
4
|
+
$white: #fff;
|
5
|
+
$grey: #d3d3d3;
|
6
|
+
$helvetica: Helvetica Neue;
|
7
|
+
|
8
|
+
@import url(http://weloveiconfonts.com/api/?family=entypo);
|
9
|
+
|
10
|
+
/* entypo */
|
11
|
+
[class*="entypo-"]:before {
|
12
|
+
font-family: 'entypo', sans-serif;
|
13
|
+
}
|
data/rails-eos.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: rails-eos 0.
|
5
|
+
# stub: rails-eos 0.3.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "rails-eos"
|
9
|
-
s.version = "0.
|
9
|
+
s.version = "0.3.0"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["CosmicLabs"]
|
14
|
-
s.date = "2014-
|
14
|
+
s.date = "2014-06-27"
|
15
15
|
s.description = "Eos is a power-pack for your Rails apps. Speed through your project setup and enjoy agnostic styling, handy utilities and a good slathering of magic sauce."
|
16
16
|
s.email = "louis@cosmiclabs.com.au"
|
17
17
|
s.executables = ["eos"]
|
@@ -38,6 +38,12 @@ Gem::Specification.new do |s|
|
|
38
38
|
"bin/files/home_controller.rb",
|
39
39
|
"bin/files/index.html.haml",
|
40
40
|
"bin/files/routes.rb",
|
41
|
+
"bin/files/stylesheets/_base.css.scss",
|
42
|
+
"bin/files/stylesheets/_controller.css.scss",
|
43
|
+
"bin/files/stylesheets/_mixins.css.scss",
|
44
|
+
"bin/files/stylesheets/_reset.css.scss",
|
45
|
+
"bin/files/stylesheets/_variables.css.scss",
|
46
|
+
"bin/files/stylesheets/styles.css.scss",
|
41
47
|
"lib/rails-eos.rb",
|
42
48
|
"rails-eos.gemspec",
|
43
49
|
"test/helper.rb",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-eos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CosmicLabs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: shoulda
|
@@ -108,6 +108,12 @@ files:
|
|
108
108
|
- bin/files/home_controller.rb
|
109
109
|
- bin/files/index.html.haml
|
110
110
|
- bin/files/routes.rb
|
111
|
+
- bin/files/stylesheets/_base.css.scss
|
112
|
+
- bin/files/stylesheets/_controller.css.scss
|
113
|
+
- bin/files/stylesheets/_mixins.css.scss
|
114
|
+
- bin/files/stylesheets/_reset.css.scss
|
115
|
+
- bin/files/stylesheets/_variables.css.scss
|
116
|
+
- bin/files/stylesheets/styles.css.scss
|
111
117
|
- lib/rails-eos.rb
|
112
118
|
- rails-eos.gemspec
|
113
119
|
- test/helper.rb
|