uicon 0.0.3 → 0.0.4
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 -1
- data/lib/assets/uicon-logo-hover.png +0 -0
- data/lib/assets/uicon-logo.png +0 -0
- data/lib/assets/uicon.html +92 -0
- data/lib/generators/uicon/install_generator.rb +90 -13
- data/lib/uicon/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c445600b0a60c06de5cf22f0e758d3656c6330a
|
4
|
+
data.tar.gz: 7419b018a050e3d20cff882c4b62078a9edf1ea0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94179605b78c79e0dcd8b879a43c74bb1f3e6332db0586b0c217d3fb63acc9d0a855d95a67b8a787408398d76cb8ff2c5188481c38c53d22cdc93368159fd5c7
|
7
|
+
data.tar.gz: c5eb4e75653c165fb0114ae972505f5e82cadc8d79352949382c98828a27760d4dd8e1795731a4cec6f718b60907bf73bd1b124b76425b85f531c330262b6c80
|
data/README.md
CHANGED
@@ -25,7 +25,7 @@ Simply run
|
|
25
25
|
|
26
26
|
And a controller, route, and index view will be created for you. Any Haml or ERB file that is added to the views/ui folder will be visible in development at /ui.
|
27
27
|
|
28
|
-
|
28
|
+
The generator will add a 'get ui/index' route to your routes when it generates the controller. To make sure the UI controller isn't a path in development, youshould delete this line.
|
29
29
|
## Contributing
|
30
30
|
|
31
31
|
1. Fork it ( http://github.com/<my-github-username>/uicon/fork )
|
Binary file
|
Binary file
|
@@ -0,0 +1,92 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
|
3
|
+
<html lang="en">
|
4
|
+
<head>
|
5
|
+
<meta charset="utf-8">
|
6
|
+
|
7
|
+
<title>UI Index</title>
|
8
|
+
<meta name="UI Static Asset Controller" content="UICON">
|
9
|
+
<meta name="Jason Cummings & Jason Kellum" content="UICON">
|
10
|
+
|
11
|
+
<link href='http://fonts.googleapis.com/css?family=Ek+Mukta' rel='stylesheet' type='text/css'>
|
12
|
+
|
13
|
+
<!--[if lt IE 9]>
|
14
|
+
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
15
|
+
<![endif]-->
|
16
|
+
|
17
|
+
<style type="text/css">
|
18
|
+
body {
|
19
|
+
background-color: #e8e8e8;
|
20
|
+
}
|
21
|
+
h1 {
|
22
|
+
font-family: "Ek Mukta", helvetica, sans-serif;
|
23
|
+
font-size: 2em;
|
24
|
+
color: white;
|
25
|
+
margin: 0;
|
26
|
+
padding: 0;
|
27
|
+
}
|
28
|
+
h1#logo {
|
29
|
+
width: 200px;
|
30
|
+
height: 72px;
|
31
|
+
background-image: url(https://s3.amazonaws.com/jasoncummings-images/uicon-logo.png);
|
32
|
+
transition: background-image 0.5s ease;
|
33
|
+
background-repeat: no-repeat;
|
34
|
+
text-indent: -9999px;
|
35
|
+
}
|
36
|
+
h1#logo:hover {
|
37
|
+
background-image: url(https://s3.amazonaws.com/jasoncummings-images/uicon-logo-hover.png);
|
38
|
+
}
|
39
|
+
h2 {
|
40
|
+
font-family: "Ek Mukta", helvetica, sans-serif;
|
41
|
+
font-size: 1em;
|
42
|
+
color: #999999;
|
43
|
+
margin: 0;
|
44
|
+
}
|
45
|
+
a {
|
46
|
+
text-decoration: none;
|
47
|
+
color: white;
|
48
|
+
}
|
49
|
+
section {
|
50
|
+
margin: 50px auto;
|
51
|
+
max-width: 600px;
|
52
|
+
}
|
53
|
+
ul {
|
54
|
+
padding: 0;
|
55
|
+
margin: 40px 0;
|
56
|
+
}
|
57
|
+
li {
|
58
|
+
background-color: white;
|
59
|
+
transition: background-color 0.5s ease;
|
60
|
+
list-style-type: none;
|
61
|
+
padding: 35px;
|
62
|
+
margin: 0 0 2px 0;
|
63
|
+
font-family: "Ek Mukta", helvetica, sans-serif;
|
64
|
+
font-size: 24px;
|
65
|
+
color: #999999;
|
66
|
+
border-radius: 10px;
|
67
|
+
}
|
68
|
+
li:hover {
|
69
|
+
background-color: #FF530D;
|
70
|
+
color: white;
|
71
|
+
cursor: pointer;
|
72
|
+
}
|
73
|
+
span {
|
74
|
+
float: right;
|
75
|
+
}
|
76
|
+
</style>
|
77
|
+
|
78
|
+
</head>
|
79
|
+
|
80
|
+
<body>
|
81
|
+
<section>
|
82
|
+
<a href="https://rubygems.org/gems/uicon/versions/0.0.3" target="_blank"><h1 id="logo">UICON</h1></a>
|
83
|
+
<ul>
|
84
|
+
<a href="#"><li>Page One<span>»</span></li></a>
|
85
|
+
<a href="#"><li>Page Two<span>»</span></li></a>
|
86
|
+
<a href="#"><li>Page Three<span>»</span></li></a>
|
87
|
+
<a href="#"><li>Page Four<span>»</span></li></a>
|
88
|
+
<a href="#"><li>Page Five<span>»</span></li></a>
|
89
|
+
</ul>
|
90
|
+
</section>
|
91
|
+
</body>
|
92
|
+
</html>
|
@@ -9,10 +9,7 @@ module Uicon
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def setup_route
|
12
|
-
route("if Rails.env.development?\n\
|
13
|
-
get 'ui', to: 'ui#index'\n\t
|
14
|
-
get '/ui/:action', controller: 'ui'
|
15
|
-
\nend")
|
12
|
+
route("if Rails.env.development?\n\s\sget 'ui', to: 'ui#index'\n\s\sget '/ui/:action', controller: 'ui'\nend")
|
16
13
|
end
|
17
14
|
|
18
15
|
def setup_view
|
@@ -24,14 +21,93 @@ module Uicon
|
|
24
21
|
|
25
22
|
protected
|
26
23
|
def view_code
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
24
|
+
"
|
25
|
+
<head>
|
26
|
+
<meta charset='utf-8'>
|
27
|
+
|
28
|
+
<title>UI Index</title>
|
29
|
+
<meta name='UI Static Asset Controller' content='UICON'>
|
30
|
+
<meta name='Jason Cummings & Jason Kellum' content='UICON'>
|
31
|
+
|
32
|
+
<link href='http://fonts.googleapis.com/css?family=Ek+Mukta' rel='stylesheet' type='text/css'>
|
33
|
+
|
34
|
+
<!--[if lt IE 9]>
|
35
|
+
<script src='http://html5shiv.googlecode.com/svn/trunk/html5.js'></script>
|
36
|
+
<![endif]-->
|
37
|
+
|
38
|
+
<style type='text/css'>
|
39
|
+
body {
|
40
|
+
background-color: #e8e8e8;
|
41
|
+
}
|
42
|
+
h1 {
|
43
|
+
font-family: 'Ek Mukta', helvetica, sans-serif;
|
44
|
+
font-size: 2em;
|
45
|
+
color: white;
|
46
|
+
margin: 0;
|
47
|
+
padding: 0;
|
48
|
+
}
|
49
|
+
h1#logo {
|
50
|
+
width: 200px;
|
51
|
+
height: 72px;
|
52
|
+
background-image: url(https://s3.amazonaws.com/jasoncummings-images/uicon-logo.png);
|
53
|
+
transition: background-image 0.5s ease;
|
54
|
+
background-repeat: no-repeat;
|
55
|
+
text-indent: -9999px;
|
56
|
+
}
|
57
|
+
h1#logo:hover {
|
58
|
+
background-image: url(https://s3.amazonaws.com/jasoncummings-images/uicon-logo-hover.png);
|
59
|
+
}
|
60
|
+
h2 {
|
61
|
+
font-family: 'Ek Mukta', helvetica, sans-serif;
|
62
|
+
font-size: 1em;
|
63
|
+
color: #999999;
|
64
|
+
margin: 0;
|
65
|
+
}
|
66
|
+
a {
|
67
|
+
text-decoration: none;
|
68
|
+
color: white;
|
69
|
+
}
|
70
|
+
section {
|
71
|
+
margin: 50px auto;
|
72
|
+
max-width: 600px;
|
73
|
+
}
|
74
|
+
ul {
|
75
|
+
padding: 0;
|
76
|
+
margin: 40px 0;
|
77
|
+
}
|
78
|
+
li {
|
79
|
+
background-color: white;
|
80
|
+
transition: background-color 0.5s ease;
|
81
|
+
list-style-type: none;
|
82
|
+
padding: 35px;
|
83
|
+
margin: 0 0 2px 0;
|
84
|
+
font-family: 'Ek Mukta', helvetica, sans-serif;
|
85
|
+
font-size: 24px;
|
86
|
+
color: #999999;
|
87
|
+
border-radius: 10px;
|
88
|
+
}
|
89
|
+
|
90
|
+
li a{
|
91
|
+
color: #999999;
|
92
|
+
}
|
93
|
+
|
94
|
+
li a:hover{
|
95
|
+
color: white;
|
96
|
+
}
|
97
|
+
|
98
|
+
li:hover {
|
99
|
+
background-color: #FF530D;
|
100
|
+
color: white;
|
101
|
+
cursor: pointer;
|
102
|
+
}
|
103
|
+
span {
|
104
|
+
float: right;
|
105
|
+
}
|
106
|
+
</style>
|
107
|
+
|
108
|
+
</head>
|
33
109
|
<section>
|
34
|
-
|
110
|
+
<a href='https://rubygems.org/gems/uicon/versions/0.0.3' target='_blank'><h1 id='logo'>UICON</h1></a>
|
35
111
|
<ul>
|
36
112
|
<% Dir.glob('app/views/ui/*.html*').sort.each do |file| %>
|
37
113
|
<%- if file =~ /haml$/ %>
|
@@ -46,8 +122,9 @@ module Uicon
|
|
46
122
|
<% end %>
|
47
123
|
<% end %>
|
48
124
|
</ul>
|
49
|
-
|
50
|
-
</section>
|
125
|
+
<h2>Version 0.0.4</h2>
|
126
|
+
</section>
|
127
|
+
"
|
51
128
|
end
|
52
129
|
end
|
53
130
|
end
|
data/lib/uicon/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uicon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Cummings
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -53,6 +53,9 @@ files:
|
|
53
53
|
- LICENSE.txt
|
54
54
|
- README.md
|
55
55
|
- Rakefile
|
56
|
+
- lib/assets/uicon-logo-hover.png
|
57
|
+
- lib/assets/uicon-logo.png
|
58
|
+
- lib/assets/uicon.html
|
56
59
|
- lib/generators/uicon/install_generator.rb
|
57
60
|
- lib/uicon.rb
|
58
61
|
- lib/uicon/version.rb
|