geminabox 0.2.13 → 0.2.14

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of geminabox might be problematic. Click here for more details.

data/lib/geminabox.rb CHANGED
@@ -82,6 +82,11 @@ private
82
82
  end
83
83
 
84
84
  helpers do
85
+ def spec_for(gem_name, version)
86
+ spec_file = File.join(options.data, "quick", "Marshal.#{Gem.marshal_version}", "#{gem_name}-#{version}.gemspec.rz")
87
+ Marshal.load(Gem.inflate(File.read(spec_file)))
88
+ end
89
+
85
90
  def url_for(path)
86
91
  url = request.scheme + "://"
87
92
  url << request.host
data/public/master.css CHANGED
@@ -1,8 +1,11 @@
1
+ @import "http://fonts.googleapis.com/css?family=Droid+Sans+Mono";
2
+
3
+
1
4
  body {
2
5
  background: #a00;
3
6
  color: #444;
4
7
  font-size: 1.2em;
5
- font-family: sans-serif;
8
+ font-family: "helvetica neue", sans-serif;
6
9
  margin: 0;
7
10
  }
8
11
 
@@ -21,26 +24,33 @@ form {
21
24
 
22
25
  code {
23
26
  font-size: 0.7em;
27
+ font-family: "Droid Sans Mono", monospace;
24
28
  }
25
29
 
26
30
  #content {
27
31
  background: #fff;
28
32
  width: 600px;
29
- position: absolute;
30
- left: 50%;
31
- margin-left: -300px;
32
- margin-top: 2em;
33
- padding: 1em;
34
- border: 1px solid #000;
35
- box-shadow: 0 0 3em #fff; -moz-box-shadow: 0 0 3em #fff; -webkit-box-shadow: 0 0 3em #fff;
36
- border-radius: 1em; -moz-border-radius: 1em; -webkit-border-radius: 1em;
33
+ margin: 0 auto;
34
+ overflow: hidden;
35
+ padding: 0.5em 0 1em 0;
37
36
  text-align: center;
38
37
  }
39
38
 
40
39
  #content h1 {
41
40
  margin: 0;
42
41
  color: #a00;
43
- text-shadow: #444 1px 1px 3px;
42
+ font-weight: 600;
43
+ text-shadow: #aaa 1px 1px 1px;
44
+ }
45
+
46
+ h2 {
47
+ font-weight: 200;
48
+ font-size: 1em;
49
+ color: #000;
50
+ margin: 0 0 .5em 0;
51
+ padding: 0.3em 0;
52
+ background: #aaa;
53
+ border-radius: .5em .5em 0 0; -moz-border-radius: .5em .5em 0 0; -webkit-border-radius: .5em .5em 0 0;
44
54
  }
45
55
 
46
56
  ul.gemlist {
@@ -55,10 +65,9 @@ ul.gemlist {
55
65
  ul.gemlist li {
56
66
  margin: 1em;
57
67
  background: #eee;
58
- border: 1px solid #444;
59
- padding: .4em;
60
68
  border-radius: .5em; -moz-border-radius: .5em; -webkit-border-radius: .5em;
61
69
  position: relative;
70
+ overflow: hidden;
62
71
  }
63
72
 
64
73
  ul.gemlist li strong {
@@ -68,18 +77,34 @@ ul.gemlist li strong {
68
77
 
69
78
  ul.gemlist li .delete-form {
70
79
  position: relative;
71
- padding: 0.25em 0;
80
+ overflow: hidden;
81
+ margin: 2px 0;
72
82
  }
73
83
  ul.gemlist li .delete-form button {
74
84
  visibility: hidden;
75
85
  position: absolute;
76
86
  right: 0;
77
- top: 0;
87
+ bottom: 0;
88
+ border-radius: .5em 0 0 .5em; -moz-border-radius: .5em 0 0 .5em; -webkit-border-radius: .5em 0 0 .5em;
89
+ background: #c55;
90
+ border: 0;
91
+ color: #fff;
92
+ margin: 0;
78
93
  }
79
94
  ul.gemlist li .delete-form:hover button {
80
95
  visibility: visible;
81
96
  }
82
97
 
98
+ .details {
99
+ margin: 0;
100
+ overflow: hidden;
101
+ margin-top: 1em;
102
+ font-size: 0.7em;
103
+ border-radius: 0 0 .5em .5em; -moz-border-radius: 0 0 .5em .5em; -webkit-border-radius: 0 0 .5em .5em;
104
+ border-top: 1px dashed #ddd;
105
+ background: #ddd;
106
+ }
107
+
83
108
  #alpha_index {
84
109
  font-size: 0.8em;
85
110
  margin-top: 1.0em;
data/views/index.erb CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  <% @gems.each do |name, versions| %>
9
9
  <li <%= %{id="jump_#{name[0..0]}"} if @index_gems.delete(name[0..0]) %>>
10
- <strong><%= name %> (<%= versions.size == 1 ? versions.first : "#{versions.first} - #{versions.last}" %>)</strong>
10
+ <h2><%= name %> (<%= versions.size == 1 ? versions.first : "#{versions.first} - #{versions.last}" %>)</h2>
11
11
  <% versions.each do |version| %>
12
12
  <form class="delete-form" method="post" action="/gems/<%= name %>-<%= version %>.gem">
13
13
  <code>gem install <%= name %> -v "<%= version %>"</code>
@@ -15,6 +15,16 @@
15
15
  <button type="submit">delete</button>
16
16
  </form>
17
17
  <% end %>
18
+
19
+ <div class="details">
20
+ <% spec = spec_for(name, versions.last) %>
21
+ <p>
22
+ <%= spec.description %>
23
+ <br/>
24
+ <span class="author">– <a href='<%= spec.homepage %>'><%= spec.author %></a></span>
25
+ </p>
26
+ </div>
27
+
18
28
  </li>
19
29
  <% end %>
20
30
  </ul>
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geminabox
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 13
10
- version: 0.2.13
9
+ - 14
10
+ version: 0.2.14
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tom Lea
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-22 00:00:00 +00:00
18
+ date: 2011-04-07 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency