epyce 0.7.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +44 -1
- data/epyce.gemspec +1 -1
- data/lib/epyce/version.rb +2 -2
- data/lib/generators/epyce/install/install_generator.rb +24 -2
- data/lib/generators/epyce/template/app/assets/javascripts/epyce-libs-debug.js.coffee +7 -0
- data/lib/generators/epyce/template/app/assets/javascripts/epyce-libs.js.coffee +7 -0
- data/lib/generators/epyce/template/app/assets/javascripts/epyce.js.coffee +6 -0
- data/lib/generators/epyce/template/app/assets/stylesheets/epyce.css.sass +11 -0
- data/lib/generators/epyce/template/app/views/layouts/application.html.haml +13 -9
- data/vendor/assets/javascripts/{epyce → epyce-libs}/dd_belatedpng.min.js +0 -0
- data/vendor/assets/javascripts/{epyce → epyce-libs}/head.min.js +0 -0
- data/vendor/assets/javascripts/{epyce/knockout-1.2.1.js → epyce-libs/knockout.js} +0 -0
- data/vendor/assets/javascripts/{epyce → epyce-libs}/respond.min.js +0 -0
- data/vendor/assets/javascripts/{epyce → epyce-libs}/underscore-min.js +0 -0
- data/vendor/assets/javascripts/{epyce-debug → epyce-libs-debug}/dd_belatedpng.min.js +0 -0
- data/vendor/assets/javascripts/{epyce-debug → epyce-libs-debug}/head.js +0 -0
- data/vendor/assets/javascripts/{epyce-debug/knockout-1.2.1.debug.js → epyce-libs-debug/knockout.debug.js} +0 -0
- data/vendor/assets/javascripts/{epyce-debug → epyce-libs-debug}/respond.min.js +0 -0
- data/vendor/assets/javascripts/{epyce-debug → epyce-libs-debug}/underscore.js +0 -0
- metadata +21 -20
- data/vendor/assets/javascripts/epyce-debug.js.coffee +0 -4
- data/vendor/assets/javascripts/epyce.js.coffee +0 -4
- data/vendor/assets/stylesheets/epyce.css +0 -9
data/README.md
CHANGED
@@ -38,6 +38,7 @@ Then run the following
|
|
38
38
|
|
39
39
|
app/views/layouts/application.html.haml
|
40
40
|
app/views/layouts/_header.html.haml
|
41
|
+
app/views/layouts/_header.html.haml
|
41
42
|
app/views/layouts/_footer.html.haml
|
42
43
|
app/views/layouts/_flashes.html.haml
|
43
44
|
|
@@ -46,9 +47,51 @@ Then run the following
|
|
46
47
|
public/apple-touch-icon-72x72-precomposed.png
|
47
48
|
public/apple-touch-icon-precomposed.png
|
48
49
|
public/apple-touch-icon.png
|
49
|
-
public/crossdomain.xml
|
50
50
|
public/favicon.png
|
51
51
|
|
52
|
+
public/crossdomain.xml
|
53
|
+
|
54
|
+
app/assets/javascripts/epyce-libs-debug.js.coffee
|
55
|
+
app/assets/javascripts/epyce-libs.js.coffee
|
56
|
+
app/assets/javascripts/epyce.js.coffee
|
57
|
+
|
58
|
+
app/assets/stylesheets/epyce.css.sass
|
59
|
+
|
60
|
+
Documentation
|
61
|
+
=============
|
62
|
+
Epyce change the default asset pipeline behavior included in `application.html.erb` and do not include `application.js` or `application.css`.
|
63
|
+
|
64
|
+
The layout `application.html.haml` include thiner grained assets (see `epyce.js.coffee` and `epyce.css.sass`) :
|
65
|
+
|
66
|
+
* all files in folders
|
67
|
+
* `app/assets/javascripts/application`
|
68
|
+
* `app/assets/stylesheets/application`
|
69
|
+
|
70
|
+
* css and javascript common for all views in a controller
|
71
|
+
|
72
|
+
* `app/assets/javascripts/__controller_name__.js[.coffee]`
|
73
|
+
* `app/assets/stylesheets/__controller_name__.js[.sass|.scss]`
|
74
|
+
|
75
|
+
* css and javascript for the actual view
|
76
|
+
|
77
|
+
* `app/assets/javascripts/__controller_name__/__action_name__.js[.coffee]`
|
78
|
+
* `app/assets/stylesheets/__controller_name__/__action_name__.js[.sass|.scss]`
|
79
|
+
|
80
|
+
You can **customize** what javascript libs are loaded by editing
|
81
|
+
|
82
|
+
app/assets/javascripts/epyce-libs-debug.js.coffee
|
83
|
+
app/assets/javascripts/epyce-libs.js.coffee
|
84
|
+
|
85
|
+
You can **customize** what css are loaded by editing
|
86
|
+
|
87
|
+
app/assets/javascripts/epyce.css.sass
|
88
|
+
|
89
|
+
|
90
|
+
Todo
|
91
|
+
====
|
92
|
+
* Still need to place the icons in the right location
|
93
|
+
* Helpers for knockout.js
|
94
|
+
|
52
95
|
License
|
53
96
|
=======
|
54
97
|
[http://creativecommons.org/licenses/by/3.0](http://creativecommons.org/licenses/by/3.0)
|
data/epyce.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.summary = %q{A rails layout including skeleton, HTML5S and knockout }
|
13
13
|
s.description = %q{define a new layout and change asset manager defaults to get advantage of skeleton (http://www.getskeleton.com/),Damian Le Nouaille HTML5S (https://github.com/damln/Html5S) and knockout (http://knockoutjs.com)}
|
14
14
|
s.email = "yann@harakys.com"
|
15
|
-
s.homepage = "http://github.com/yarmand/
|
15
|
+
s.homepage = "http://github.com/yarmand/epyce"
|
16
16
|
s.has_rdoc = false
|
17
17
|
|
18
18
|
s.add_dependency "railties", "~> 3.1.0.rc1"
|
data/lib/epyce/version.rb
CHANGED
@@ -12,13 +12,35 @@ module Epyce
|
|
12
12
|
end
|
13
13
|
end
|
14
14
|
|
15
|
+
def copy_assets
|
16
|
+
say_status("Copying", "assets files", :green)
|
17
|
+
["apple-touch-icon-114x114-precomposed.png", "apple-touch-icon-57x57-precomposed.png", "apple-touch-icon-72x72-precomposed.png", "apple-touch-icon-precomposed.png", "apple-touch-icon.png", "favicon.png" ].each do |f|
|
18
|
+
copy_file "public/#{f}", "public/#{f}"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
15
22
|
def copy_public
|
16
|
-
say_status("Copying", "
|
17
|
-
["
|
23
|
+
say_status("Copying", "public files", :green)
|
24
|
+
["crossdomain.xml" ].each do |f|
|
18
25
|
copy_file "public/#{f}", "public/#{f}"
|
19
26
|
end
|
20
27
|
end
|
21
28
|
|
29
|
+
def copy_javascripts
|
30
|
+
say_status("Copying", "javascripts loaders", :green)
|
31
|
+
["epyce-libs-debug.js.coffee", "epyce-libs.js.coffee", "epyce.js.coffee" ].each do |f|
|
32
|
+
copy_file "app/assets/javascripts/#{f}", "app/assets/javascripts/#{f}"
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
def copy_css
|
37
|
+
say_status("Copying", "stylesheets loaders", :green)
|
38
|
+
["epyce.css.sass" ].each do |f|
|
39
|
+
copy_file "app/assets/stylesheets/#{f}", "app/assets/stylesheets/#{f}"
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
|
22
44
|
end
|
23
45
|
end
|
24
46
|
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
// replace default asset pipeline behavior that include everything in asset/stylesheets
|
2
|
+
// it only embed all files in assets/javascripts/application
|
3
|
+
|
4
|
+
//## from HTML5S
|
5
|
+
//= require epyce/reset.css
|
6
|
+
//= require epyce/screen.css
|
7
|
+
//= require epyce/mobile.css
|
8
|
+
//## Skeleton
|
9
|
+
//= require_tree ./skeleton
|
10
|
+
|
11
|
+
//= require_tree ./application
|
@@ -29,21 +29,25 @@
|
|
29
29
|
-# Mobile viewport optimized: j.mp/bplateviewport
|
30
30
|
%meta{ :name => "viewport", :content => "width=device-width, initial-scale=1.0" }/
|
31
31
|
|
32
|
+
- if Rails.env.development?
|
33
|
+
= javascript_include_tag 'epyce-libs-debug'
|
34
|
+
- else
|
35
|
+
= javascript_include_tag 'epyce-libs'
|
32
36
|
|
33
|
-
- #
|
34
|
-
= stylesheet_link_tag 'application', :media => 'all'
|
35
|
-
= javascript_include_tag 'application'
|
36
|
-
|
37
|
-
- # use asset manager to include epyce. see vendor/assets
|
37
|
+
- # asset pipeline will include only jquery and files from folder /assets/javascripts/application
|
38
38
|
= stylesheet_link_tag 'epyce', :media => 'all'
|
39
39
|
<!--[if IE]>
|
40
40
|
= stylesheet_link_tag 'epyce/ie', :media => 'all'
|
41
41
|
<![endif]-->
|
42
|
+
= javascript_include_tag 'epyce'
|
42
43
|
|
43
|
-
-
|
44
|
-
|
45
|
-
|
46
|
-
|
44
|
+
- # include this controller assets
|
45
|
+
= stylesheet_link_tag "#{controller.controller_name}", :media => 'all'
|
46
|
+
= javascript_include_tag "#{controller.controller_name}"
|
47
|
+
|
48
|
+
- # include only this particular view assets
|
49
|
+
= stylesheet_link_tag "#{controller.controller_name}/#{controller.action_name}", :media => 'all'
|
50
|
+
= javascript_include_tag "#{controller.controller_name}/#{controller.action_name}"
|
47
51
|
|
48
52
|
= csrf_meta_tag
|
49
53
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: epyce
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,12 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-07-
|
12
|
+
date: 2011-07-27 00:00:00.000000000 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: railties
|
17
|
-
requirement: &
|
17
|
+
requirement: &70124095168300 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: 3.1.0.rc1
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70124095168300
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: haml
|
28
|
-
requirement: &
|
28
|
+
requirement: &70124095167840 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70124095167840
|
37
37
|
description: define a new layout and change asset manager defaults to get advantage
|
38
38
|
of skeleton (http://www.getskeleton.com/),Damian Le Nouaille HTML5S (https://github.com/damln/Html5S)
|
39
39
|
and knockout (http://knockoutjs.com)
|
@@ -52,6 +52,10 @@ files:
|
|
52
52
|
- lib/epyce/railtie.rb
|
53
53
|
- lib/epyce/version.rb
|
54
54
|
- lib/generators/epyce/install/install_generator.rb
|
55
|
+
- lib/generators/epyce/template/app/assets/javascripts/epyce-libs-debug.js.coffee
|
56
|
+
- lib/generators/epyce/template/app/assets/javascripts/epyce-libs.js.coffee
|
57
|
+
- lib/generators/epyce/template/app/assets/javascripts/epyce.js.coffee
|
58
|
+
- lib/generators/epyce/template/app/assets/stylesheets/epyce.css.sass
|
55
59
|
- lib/generators/epyce/template/app/views/layouts/_flashes.html.haml
|
56
60
|
- lib/generators/epyce/template/app/views/layouts/_footer.html.haml
|
57
61
|
- lib/generators/epyce/template/app/views/layouts/_header.html.haml
|
@@ -63,19 +67,16 @@ files:
|
|
63
67
|
- lib/generators/epyce/template/public/apple-touch-icon.png
|
64
68
|
- lib/generators/epyce/template/public/crossdomain.xml
|
65
69
|
- lib/generators/epyce/template/public/favicon.png
|
66
|
-
- vendor/assets/javascripts/epyce-debug.js
|
67
|
-
- vendor/assets/javascripts/epyce-debug/
|
68
|
-
- vendor/assets/javascripts/epyce-debug/
|
69
|
-
- vendor/assets/javascripts/epyce-debug/
|
70
|
-
- vendor/assets/javascripts/epyce-debug/
|
71
|
-
- vendor/assets/javascripts/epyce-
|
72
|
-
- vendor/assets/javascripts/epyce.js
|
73
|
-
- vendor/assets/javascripts/epyce/
|
74
|
-
- vendor/assets/javascripts/epyce/
|
75
|
-
- vendor/assets/javascripts/epyce/
|
76
|
-
- vendor/assets/javascripts/epyce/respond.min.js
|
77
|
-
- vendor/assets/javascripts/epyce/underscore-min.js
|
78
|
-
- vendor/assets/stylesheets/epyce.css
|
70
|
+
- vendor/assets/javascripts/epyce-libs-debug/dd_belatedpng.min.js
|
71
|
+
- vendor/assets/javascripts/epyce-libs-debug/head.js
|
72
|
+
- vendor/assets/javascripts/epyce-libs-debug/knockout.debug.js
|
73
|
+
- vendor/assets/javascripts/epyce-libs-debug/respond.min.js
|
74
|
+
- vendor/assets/javascripts/epyce-libs-debug/underscore.js
|
75
|
+
- vendor/assets/javascripts/epyce-libs/dd_belatedpng.min.js
|
76
|
+
- vendor/assets/javascripts/epyce-libs/head.min.js
|
77
|
+
- vendor/assets/javascripts/epyce-libs/knockout.js
|
78
|
+
- vendor/assets/javascripts/epyce-libs/respond.min.js
|
79
|
+
- vendor/assets/javascripts/epyce-libs/underscore-min.js
|
79
80
|
- vendor/assets/stylesheets/epyce/ie.css
|
80
81
|
- vendor/assets/stylesheets/epyce/mobile.css
|
81
82
|
- vendor/assets/stylesheets/epyce/print.css
|
@@ -85,7 +86,7 @@ files:
|
|
85
86
|
- vendor/assets/stylesheets/skeleton/layout.css
|
86
87
|
- vendor/assets/stylesheets/skeleton/skeleton.css
|
87
88
|
has_rdoc: true
|
88
|
-
homepage: http://github.com/yarmand/
|
89
|
+
homepage: http://github.com/yarmand/epyce
|
89
90
|
licenses: []
|
90
91
|
post_install_message:
|
91
92
|
rdoc_options: []
|