elasticss-rails 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +18 -3
- data/Rakefile +1 -16
- data/elasticss-rails.gemspec +1 -2
- data/lib/elasticss-rails/version.rb +1 -1
- data/lib/generators/elasticss/layout/templates/.DS_Store +0 -0
- data/lib/generators/elasticss/layout/templates/layout_3_columns.html.haml +26 -0
- data/lib/generators/elasticss/layout/templates/layout_left_sidebar.html.haml +18 -0
- data/lib/generators/elasticss/layout/templates/layout_right_sidebar.html.haml +17 -0
- metadata +10 -6
data/README.md
CHANGED
@@ -38,7 +38,18 @@ Usage:
|
|
38
38
|
rails g elasticss:install
|
39
39
|
|
40
40
|
|
41
|
-
Layout (generates ElastiCSS layout) - (ERB supported)
|
41
|
+
Layout (generates ElastiCSS layout) - (ERB and HAML supported):
|
42
|
+
|
43
|
+
You need to first add the haml-rails to the gemfile:
|
44
|
+
|
45
|
+
gem 'haml-rails'
|
46
|
+
|
47
|
+
And last but not least if you want HAML to be your default template engine you
|
48
|
+
need to change your config/application.rb file as shown:
|
49
|
+
|
50
|
+
config.generators do |generator|
|
51
|
+
generator.template_engine :haml
|
52
|
+
end
|
42
53
|
|
43
54
|
|
44
55
|
Usage:
|
@@ -61,13 +72,17 @@ But wait there is more:
|
|
61
72
|
|
62
73
|
## Changelog
|
63
74
|
<ul>
|
75
|
+
<li>Current gem v.0.1.0</li>
|
76
|
+
<li>Support for HAML templates</li>
|
77
|
+
<li>Released gem v.0.0.3</li>
|
78
|
+
<li>Released gem v.0.0.2</li>
|
64
79
|
<li>Released gem v.0.0.1</li>
|
65
80
|
</ul>
|
66
81
|
|
67
82
|
|
68
83
|
## Contributors & Patches & Forks
|
69
84
|
<ul>
|
70
|
-
<li>Abraham Kuri Vargas</li>
|
85
|
+
<li>Abraham Kuri Vargas (@kurenn)</li>
|
71
86
|
</ul>
|
72
87
|
|
73
88
|
## ElastiCSS author & team
|
@@ -80,7 +95,7 @@ But wait there is more:
|
|
80
95
|
## Future
|
81
96
|
<ul>
|
82
97
|
<li>Writing tests (not implemented yet)</li>
|
83
|
-
<li>
|
98
|
+
<li>Provide a stylesheet for templates</li>
|
84
99
|
</ul>
|
85
100
|
|
86
101
|
|
data/Rakefile
CHANGED
@@ -1,16 +1 @@
|
|
1
|
-
|
2
|
-
require "bundler"
|
3
|
-
|
4
|
-
Bundler::GemHelper.install_tasks
|
5
|
-
|
6
|
-
desc "Bundle the gem"
|
7
|
-
|
8
|
-
task :bundle do
|
9
|
-
sh('bundle install')
|
10
|
-
sh 'gem build *.gemspec'
|
11
|
-
sh 'gem install *.gem'
|
12
|
-
sh 'rm *.gem'
|
13
|
-
end
|
14
|
-
|
15
|
-
task(:default).clear
|
16
|
-
task :default => :bundle
|
1
|
+
require "bundler/gem_tasks"
|
data/elasticss-rails.gemspec
CHANGED
@@ -5,10 +5,9 @@ require "elasticss-rails/version"
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "elasticss-rails"
|
7
7
|
s.version = Elasticss::Rails::VERSION
|
8
|
-
s.platform = Gem::Platform::RUBY
|
9
8
|
s.authors = ["Abraham Kuri"]
|
10
9
|
s.email = ["kurenn@icalialabs.com"]
|
11
|
-
s.homepage = "
|
10
|
+
s.homepage = ""
|
12
11
|
s.summary = %q{ElastiCSS integration with rails 3.1 Asset pipeline}
|
13
12
|
s.description = %q{Integrate ElastiCSS framework with the rails assets pipeline}
|
14
13
|
|
Binary file
|
@@ -0,0 +1,26 @@
|
|
1
|
+
!!! 5
|
2
|
+
%html(lang="en")
|
3
|
+
%head
|
4
|
+
%meta(charset='utf-8')
|
5
|
+
%title <%= app_name %>
|
6
|
+
= stylesheet_link_tag "application", :media => "all"
|
7
|
+
= csrf_meta_tags
|
8
|
+
|
9
|
+
%body
|
10
|
+
.content
|
11
|
+
.unit
|
12
|
+
.columns.on-3
|
13
|
+
.column
|
14
|
+
.container
|
15
|
+
%ul
|
16
|
+
%li= link_to "Link 1", '#'
|
17
|
+
%li= link_to "Link 2", '#'
|
18
|
+
%li= link_to "Link 3", '#'
|
19
|
+
.column
|
20
|
+
.container
|
21
|
+
= yield
|
22
|
+
.column
|
23
|
+
.container
|
24
|
+
RIGHT CONTENT
|
25
|
+
= javascript_include_tag "application"
|
26
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
!!! 5
|
2
|
+
%html
|
3
|
+
%head
|
4
|
+
%title <%= app_name %>
|
5
|
+
= stylesheet_link_tag "application", :media => "all"
|
6
|
+
= csrf_meta_tags
|
7
|
+
|
8
|
+
%body
|
9
|
+
.content
|
10
|
+
.unit
|
11
|
+
.columns.on-3
|
12
|
+
.column
|
13
|
+
SIDEBAR
|
14
|
+
.column.span-2
|
15
|
+
= yield
|
16
|
+
|
17
|
+
= javascript_include_tag "application"
|
18
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
!!! 5
|
2
|
+
%html
|
3
|
+
%head
|
4
|
+
%title <%= app_name %>
|
5
|
+
= stylesheet_link_tag "application", :media => "all"
|
6
|
+
= csrf_meta_tags
|
7
|
+
|
8
|
+
.content
|
9
|
+
.unit
|
10
|
+
.columns.on-3
|
11
|
+
.column.span-2
|
12
|
+
= yield
|
13
|
+
.column.sidebar
|
14
|
+
SIDEBAR
|
15
|
+
|
16
|
+
= javascript_include_tag "application"
|
17
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticss-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-06-26 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: therubyracer
|
16
|
-
requirement: &
|
16
|
+
requirement: &70343797145160 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - =
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.10.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70343797145160
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rails
|
27
|
-
requirement: &
|
27
|
+
requirement: &70343797121960 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '3.1'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70343797121960
|
36
36
|
description: Integrate ElastiCSS framework with the rails assets pipeline
|
37
37
|
email:
|
38
38
|
- kurenn@icalialabs.com
|
@@ -50,9 +50,13 @@ files:
|
|
50
50
|
- lib/elasticss-rails/version.rb
|
51
51
|
- lib/generators/elasticss/install/install_generator.rb
|
52
52
|
- lib/generators/elasticss/layout/layout_generator.rb
|
53
|
+
- lib/generators/elasticss/layout/templates/.DS_Store
|
53
54
|
- lib/generators/elasticss/layout/templates/layout_3_columns.html.erb
|
55
|
+
- lib/generators/elasticss/layout/templates/layout_3_columns.html.haml
|
54
56
|
- lib/generators/elasticss/layout/templates/layout_left_sidebar.html.erb
|
57
|
+
- lib/generators/elasticss/layout/templates/layout_left_sidebar.html.haml
|
55
58
|
- lib/generators/elasticss/layout/templates/layout_right_sidebar.html.erb
|
59
|
+
- lib/generators/elasticss/layout/templates/layout_right_sidebar.html.haml
|
56
60
|
- lib/generators/elasticss/templates/application.css
|
57
61
|
- lib/generators/elasticss/templates/application.js
|
58
62
|
- vendor/.DS_Store
|
@@ -61,7 +65,7 @@ files:
|
|
61
65
|
- vendor/assets/stylesheets/elasticss/.DS_Store
|
62
66
|
- vendor/assets/stylesheets/elasticss/elastic.css
|
63
67
|
- vendor/assets/stylesheets/elasticss/elastic.print.css
|
64
|
-
homepage:
|
68
|
+
homepage: ''
|
65
69
|
licenses: []
|
66
70
|
post_install_message:
|
67
71
|
rdoc_options: []
|