strangebox 0.0.2 → 0.0.3
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.
- data/lib/strangebox/version.rb +1 -1
- data/public/master.css +28 -32
- data/views/index.erb +1 -1
- data/views/layout.erb +3 -3
- data/views/upload.erb +14 -5
- metadata +3 -3
data/lib/strangebox/version.rb
CHANGED
data/public/master.css
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
@import "http://fonts.googleapis.com/css?family=Droid+Sans+Mono";
|
|
2
|
+
@import "http://fonts.googleapis.com/css?family=Swanky+and+Moo+Moo";
|
|
3
|
+
|
|
2
4
|
|
|
3
5
|
html{font-size:100%;overflow-y:scroll;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0;font-size:13px;line-height:1.231}body,button,input,select,textarea{font-family:sans-serif;color:#222}
|
|
4
6
|
::-moz-selection{background:#ff6a04;color:#fff;text-shadow:none}::selection{background:#ff6a04;color:#fff;text-shadow:none}
|
|
@@ -37,14 +39,14 @@ body{ min-width:960px}
|
|
|
37
39
|
/* ================================================================================================================================================= */
|
|
38
40
|
/* ================================================================================================================================================= */
|
|
39
41
|
/* ================================================================================================================================================= */
|
|
40
|
-
|
|
41
|
-
body { background: #fff; color: #444; font-size: 1.2em; font-family: "helvetica neue", sans-serif; margin: 0; line-height: 20px; }
|
|
42
|
+
body { background: #fff; color: #444; font-size: 13px; font-family: 'Lucida Grande', sans-serif; margin: 0; line-height: 20px; }
|
|
42
43
|
|
|
43
44
|
a { text-decoration: none; color: #00a; }
|
|
44
45
|
a:hover { color: #00f; }
|
|
45
46
|
|
|
46
47
|
code { font-size: 13px; font-family: "Droid Sans Mono", monospace; }
|
|
47
48
|
pre { margin: 0;}
|
|
49
|
+
strong { font-family: 'Swanky and Moo Moo', cursive; font-size: 19px;}
|
|
48
50
|
|
|
49
51
|
#content { background: #fff; text-align: center; }
|
|
50
52
|
|
|
@@ -60,26 +62,33 @@ background: linear-gradient(top, rgba(204,204,204,1) 0%,rgba(243,243,243,1) 23%,
|
|
|
60
62
|
|
|
61
63
|
#footer { padding: 30px 0 75px;}
|
|
62
64
|
|
|
63
|
-
#
|
|
65
|
+
.sidebar, #upload_box { border: outset 1px #ccc; padding: 10px; margin: 42px 0; text-align: left;
|
|
66
|
+
border-radius: 7px; -moz-border-radius: 7px; -webkit-border-radius: 7px; background: #f3f3f3; }
|
|
64
67
|
|
|
65
|
-
|
|
68
|
+
#upload_box { margin-right: 20px;}
|
|
66
69
|
|
|
67
|
-
.
|
|
68
|
-
|
|
70
|
+
span.version_number { font-family: 'Lucida Grande', sans-serif; font-size:15px; color: #666; }
|
|
71
|
+
|
|
72
|
+
h1 { margin: 0; font-size: 30px; color: #a00; font-weight: 600; text-shadow: #aaa 1px 1px 1px; line-height:30px; font-family: 'Swanky and Moo Moo', cursive;}
|
|
69
73
|
|
|
70
|
-
h2 { font-size:
|
|
71
|
-
text-shadow: -1px -1px 1px #fff, 1px 1px 1px rgba(0,0,0,.3);}
|
|
74
|
+
h2 { font-size: 22px; font-weight:bold; margin: 0; padding: 5px 20px 7px; text-align: left; color: rgba(51,51,51,.9); display:block; cursor: pointer;
|
|
75
|
+
text-shadow: -1px -1px 1px #fff, 1px 1px 1px rgba(0,0,0,.3); font-family: 'Swanky and Moo Moo', cursive;}
|
|
72
76
|
|
|
73
77
|
h2 { background: transparent url('/closed_pulldown.png') 0px 7px no-repeat; }
|
|
74
78
|
h2.aktiv { background: transparent url('/pulldown.png') 0px 7px no-repeat; }
|
|
75
79
|
|
|
80
|
+
h3 { margin:0; text-align:right; font-size: 13px; }
|
|
81
|
+
h3 code { font-size: 12px; font-weight:normal; line-height:30px;}
|
|
76
82
|
|
|
77
|
-
h3 { margin:0; text-align:right; font-size: 13px;}
|
|
78
|
-
h3 code { font-size: 12px; font-weight:normal; }
|
|
79
83
|
|
|
80
84
|
ul.gemlist { list-style: none; margin: 0; padding: 0; }
|
|
81
85
|
|
|
82
|
-
ul.gemlist li {
|
|
86
|
+
ul.gemlist li {
|
|
87
|
+
margin: 10px 20px 10px 0; padding: 5px 10px 7px; background: #f3f3f3; position: relative; overflow: hidden; display:block;
|
|
88
|
+
border-radius: 7px; -moz-border-radius: 7px; -webkit-border-radius: 7px;
|
|
89
|
+
border: outset 1px #ccc; }
|
|
90
|
+
|
|
91
|
+
ul.gemlist li, .sidebar, #upload_box {
|
|
83
92
|
background: #cccccc;
|
|
84
93
|
background: -moz-linear-gradient(top, #cccccc 0%, #f3f3f3 100%);
|
|
85
94
|
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#cccccc), color-stop(100%,#f3f3f3));
|
|
@@ -88,9 +97,8 @@ ul.gemlist li { margin: 10px 20px 10px 0; padding: 5px 10px 7px; background: #f3
|
|
|
88
97
|
background: -ms-linear-gradient(top, #cccccc 0%,#f3f3f3 100%);
|
|
89
98
|
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cccccc', endColorstr='#f3f3f3',GradientType=0 );
|
|
90
99
|
background: linear-gradient(top, #cccccc 0%,#f3f3f3 100%);
|
|
100
|
+
}
|
|
91
101
|
|
|
92
|
-
border-radius: 7px; -moz-border-radius: 7px; -webkit-border-radius: 7px;
|
|
93
|
-
border: outset 1px #ccc; }
|
|
94
102
|
|
|
95
103
|
hr{ margin: 5px 10px 10px;}
|
|
96
104
|
|
|
@@ -120,25 +128,17 @@ ul.gemlist li .delete-form:hover button:active { opacity: 1.0 }
|
|
|
120
128
|
|
|
121
129
|
.details p { padding:0; margin:0;}
|
|
122
130
|
|
|
123
|
-
#alpha_index { font-size:
|
|
131
|
+
#alpha_index { font-size: 12px; margin: 10px 20px 10px 0; color: #aaa; }
|
|
124
132
|
|
|
125
|
-
#alpha_index a { font-weight: bold; color: #
|
|
133
|
+
#alpha_index a { font-weight: bold; color: #444; font-size: 13px; }
|
|
126
134
|
|
|
127
135
|
.extra_info { display: none;}
|
|
128
136
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
a.big_button { float:left; display: block; text-align: center; color: #333; font-weight: normal; font-size: 15px;
|
|
137
|
+
.big_button { float:left; display: block; text-align: center; color: #333; font-weight: normal; font-size: 15px;
|
|
132
138
|
padding: 4px 5px; margin: 0 10px 10px 0; min-width: 100px;
|
|
133
139
|
border: solid 1px #9a9a9a;
|
|
134
|
-
-webkit-border-radius:
|
|
135
|
-
-
|
|
136
|
-
-o-border-radius: 4px;
|
|
137
|
-
-ms-border-radius: 4px;
|
|
138
|
-
border-radius: 4px;
|
|
139
|
-
-webkit-text-shadow: 0 0 3px #fff, 0 0 3px #fff;
|
|
140
|
-
-moz-text-shadow: 0 0 3px #fff, 0 0 3px #fff;
|
|
141
|
-
text-shadow: 0 0 3px #fff, 0 0 3px #fff;
|
|
140
|
+
-webkit-border-radius: 4px; -moz-border-radius: 4px; -o-border-radius: 4px; -ms-border-radius: 4px; border-radius: 4px;
|
|
141
|
+
text-shadow: 0 0 3px #fff, 0 0 3px #fff;
|
|
142
142
|
background: #f5f2f2;
|
|
143
143
|
background: -moz-linear-gradient(top, #f5f2f2 0%, #cdcdcd 100%);
|
|
144
144
|
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f2f2), color-stop(100%,#cdcdcd));
|
|
@@ -147,7 +147,7 @@ a.big_button { float:left; display: block; text-align: center; color: #333; fo
|
|
|
147
147
|
background: -ms-linear-gradient(top, #f5f2f2 0%,#cdcdcd 100%);
|
|
148
148
|
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f2f2', endColorstr='#cdcdcd',GradientType=0 );
|
|
149
149
|
background: linear-gradient(top, #f5f2f2 0%,#cdcdcd 100%); }
|
|
150
|
-
|
|
150
|
+
.big_button:hover { border: solid 1px rgb(102,102,102);
|
|
151
151
|
background: #f5f2f2;
|
|
152
152
|
background: -moz-linear-gradient(top, #f5f2f2 0%, #999999 100%);
|
|
153
153
|
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f2f2), color-stop(100%,#999999));
|
|
@@ -156,11 +156,7 @@ a.big_button:hover { border: solid 1px rgb(102,102,102);
|
|
|
156
156
|
background: -ms-linear-gradient(top, #f5f2f2 0%,#999999 100%);
|
|
157
157
|
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f2f2', endColorstr='#999999',GradientType=0 );
|
|
158
158
|
background: linear-gradient(top, #f5f2f2 0%,#999999 100%); }
|
|
159
|
-
|
|
160
|
-
-moz-box-shadow: inset 0 2px 0 0 rgba(0,0,0,.5);
|
|
161
|
-
-webkit-box-shadow: inset 0 2px 0 0 rgba(0,0,0,.5);
|
|
162
|
-
box-shadow: inset 0 2px 0 0 rgba(0,0,0,.5);
|
|
163
|
-
}
|
|
159
|
+
.big_button:active { color: #000; box-shadow: inset 0 2px 0 0 rgba(0,0,0,.5); }
|
|
164
160
|
|
|
165
161
|
|
|
166
162
|
|
data/views/index.erb
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
<% @gems.each do |name, versions| %>
|
|
11
11
|
<li <%= %{id="jump_#{name[0..0]}"} if @index_gems.delete(name[0..0]) %>>
|
|
12
|
-
<h2 class="trigger"><%= name %>
|
|
12
|
+
<h2 class="trigger"><%= name %> <span class="version_number">[ <%= versions.size == 1 ? versions.first : "#{versions.last}" %> ]</span> <%= ' *' if versions.count > 1 %></h2>
|
|
13
13
|
<div class="extra_info hidden">
|
|
14
14
|
<% versions.each do |version| %>
|
|
15
15
|
|
data/views/layout.erb
CHANGED
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
<hr/>
|
|
31
31
|
<pre><code>$ rackup</code></pre><br/>
|
|
32
32
|
<pre><code>$ gem build secretgem.gemspec</code></pre><br/>
|
|
33
|
-
<pre><code>$ gem
|
|
33
|
+
<pre><code>$ gem sbox ./secretgem-0.0.1.gem</code></pre><br/>
|
|
34
34
|
<hr/>
|
|
35
|
-
<pre><code>gem install
|
|
36
|
-
<pre><code>gem
|
|
35
|
+
<pre><code>gem install strangebox</code></pre><br/>
|
|
36
|
+
<pre><code>gem sbox [gemfile]</code></pre><br/>
|
|
37
37
|
<hr/>
|
|
38
38
|
<div class="clearfix"></div>
|
|
39
39
|
<a href="upload" class="big_button"> Upload a Gem </a>
|
data/views/upload.erb
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
<div id="upload_box">
|
|
2
|
+
<%= @error %>
|
|
3
|
+
<form method="POST" enctype="multipart/form-data">
|
|
4
|
+
<h2>Upload A new Gem</h2>
|
|
5
|
+
<br/>
|
|
6
|
+
<input type="file" name="file">
|
|
7
|
+
<br/><br/><br/>
|
|
8
|
+
<div class="clearfix"></div>
|
|
9
|
+
<input type="submit" value="Upload" class="big_button">
|
|
10
|
+
<div class="clearfix"></div>
|
|
11
|
+
<br/>
|
|
12
|
+
</form>
|
|
13
|
+
|
|
14
|
+
</div>
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: strangebox
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 25
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 3
|
|
10
|
+
version: 0.0.3
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Austin Strange
|