quirkey-gembox 0.1.0 → 0.1.1

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/views/gembox.sass ADDED
@@ -0,0 +1,166 @@
1
+ !red = #BA2818
2
+ !light_red = #EB9281
3
+ !dark_red = #871D1A
4
+ !light_grey = #CCCCCC
5
+ !light_grey_bg = #EFEFEF
6
+ !grey = #666
7
+ !fonts = "'Franklin Gothic', 'Franklin Gothic Medium', Helvetica, sans-serif"
8
+ //
9
+
10
+ body
11
+ :font-family = !fonts
12
+ :background #FFFFFF
13
+ :margin 0px
14
+ :padding 0px
15
+ :text-align center
16
+
17
+ a:link,
18
+ a:visited
19
+ :color = !red
20
+ :text-decoration none
21
+ a:hover
22
+ :color = !light_red
23
+ :text-decoration underline
24
+
25
+ a img
26
+ :border none
27
+
28
+ .contained
29
+ :width 960px
30
+ :margin 0px auto
31
+ :text-align left
32
+ :position relative
33
+
34
+ #header
35
+ .contained
36
+ :width 250px
37
+ #logo
38
+ :position absolute
39
+ :top -20px
40
+ :left -135px
41
+ h1
42
+ :color = !dark_red
43
+ :font-size 50px
44
+ :margin 20px 0px 0px 0px
45
+ a
46
+ :color = !dark_red
47
+ a:hover
48
+ :text-decoration none
49
+
50
+ #nav
51
+ :background = !dark_red
52
+ :padding 15px
53
+ .search
54
+ :margin-top 20px
55
+ :width 100%
56
+ :text-align center
57
+ input
58
+ :font-family = !fonts
59
+ :font-size 18px
60
+ :padding 4px
61
+ .search_field
62
+ :width 400px
63
+
64
+ #stats
65
+ :background = !light_grey_bg
66
+ :margin 0px 0px 10px 0px
67
+ :padding 2px
68
+ p
69
+ :text-align center
70
+ :color = !grey
71
+
72
+ #main
73
+ h2
74
+ :position relative
75
+ span.view_options
76
+ :font-size 14px
77
+ :font-weight normal
78
+ :color = !grey
79
+ :position absolute
80
+ :top 5px
81
+ :right 20px
82
+ strong
83
+ :color #333
84
+ :font-weight normal
85
+ .num
86
+ :color = !light_grey
87
+ .column
88
+ :width 460px
89
+ :float left
90
+ .gem
91
+ :font-size 14px
92
+ :margin 5px 0px
93
+ :padding 5px 0px
94
+ .name
95
+ :font-size 16px
96
+ :margin 0px
97
+ :padding 0px 0px 2px 0px
98
+ .description
99
+ :font-size 12px
100
+ :padding 2px 0px
101
+ :color #999
102
+ .versions
103
+ :color = !light_grey
104
+ a
105
+ :color = !grey
106
+ table#gems
107
+ :border-collapse collapse
108
+ :font-size 14px
109
+ :width 100%
110
+ th
111
+ :color = !grey
112
+ :text-align left
113
+ :font-size 12px
114
+ :font-weight normal
115
+ :border-bottom 1px solid #CCC
116
+ td
117
+ :padding 4px 4px 4px 0px
118
+ :vertical-align top
119
+ tr.summary td
120
+ :padding-top 0px
121
+
122
+ #gem
123
+ .description
124
+ :font-size 18px
125
+ :color = #333
126
+ .meta
127
+ :color = !grey
128
+ ul.files,
129
+ ul.files li ul
130
+ :list-style none
131
+ :font-size 14px
132
+ :font-weight normal
133
+ :margin 0px
134
+ :padding 4px 0px 0px
135
+ ul.files
136
+ li
137
+ :padding 4px 0px
138
+ li ul li
139
+ :padding-left 10px
140
+ img
141
+ :vertical-align top
142
+
143
+ .pagination
144
+ :font-size 12px
145
+ :color = !grey
146
+ :width 100%
147
+ :background = !light_grey_bg
148
+ :padding 4px
149
+ :text-align right
150
+ a
151
+ :color = !dark_red
152
+ a,
153
+ span
154
+ :padding 0px 4px
155
+
156
+ #footer
157
+ :margin 20px
158
+ :padding 10px
159
+ :border-top = 1px solid !light_grey
160
+ .copyright
161
+ :font-size 12px
162
+
163
+ .clear
164
+ :clear both
165
+ :line-height 0px
166
+ :height 0px
@@ -0,0 +1,16 @@
1
+ =haml(:gems_header, :layout => false)
2
+ - unless @gems.empty?
3
+ #gems
4
+ -@gems.in_groups_of((@gems.length + 1)/ 2).each do |gems|
5
+ .column
6
+ -gems.compact.each do |gem_name, specs|
7
+ .gem
8
+ %h4.name=link_to_gem(specs.first)
9
+ .description=specs.first.summary
10
+ .versions
11
+ %span
12
+ =specs.collect {|spec| link_to_gem(spec, :text => spec.version) }.join(', ')
13
+ .clear
14
+ =will_paginate(@gems)
15
+ - else
16
+ =haml(:no_results, :layout => false)
@@ -0,0 +1,17 @@
1
+ %h2
2
+ -if @search
3
+ Gems matching
4
+ %em=@search
5
+ %span.num="(#{@gems.length})"
6
+ -else
7
+ Installed Gems
8
+ %span.num="(#{@gems.total_entries})"
9
+ %span.view_options
10
+ View as
11
+ =(@show_as == 'columns') ? '<strong>Columns</strong>' : link_to('Columns', {'as' => 'columns'})
12
+ =' / '
13
+ =(@show_as == 'table') ? '<strong>Table</strong>' : link_to('Table', {'as' => 'table'})
14
+ / |
15
+ /=link_to('Summaries', {'summaries' => 'false'})
16
+
17
+ =will_paginate(@gems)
@@ -0,0 +1,19 @@
1
+ =haml(:gems_header, :layout => false)
2
+ - unless @gems.empty?
3
+ %table#gems
4
+ %thead
5
+ %th Name
6
+ %th Versions
7
+ %th Homepage
8
+ %tbody
9
+ -@gems.each do |gem_name, specs|
10
+ %tr.gem
11
+ %td.name=link_to_gem(specs.first)
12
+ %td.versions=specs.collect {|spec| link_to_gem(spec, :text => spec.version) }.join(', ')
13
+ %td=link_to(specs.first.homepage)
14
+ %tr.gem.summary
15
+ %td/
16
+ %td.description{:colspan => 2}=specs.first.summary
17
+ =will_paginate(@gems)
18
+ - else
19
+ =haml(:no_results, :layout => false)
data/views/index.haml ADDED
@@ -0,0 +1 @@
1
+ =haml :gems_columns, :locals => {:gems => @gems}, :layout => false
data/views/layout.haml ADDED
@@ -0,0 +1,43 @@
1
+ %html{:xmlns=> "http://www.w3.org/1999/xhtml", 'xml:lang' => "en", :lang => "en"}
2
+ %head
3
+ %meta{'http-equiv' => "Content-Type", 'content' => "text/html; charset=utf-8"}
4
+ %title Gembox
5
+ %link{'href' => '/stylesheets/gembox.css', 'rel' => 'stylesheet', 'type' => 'text/css', 'media' => 'screen'}
6
+ -['jquery', 'jquery.ui', 'jquery.metadata', 'jquery.form', 'base', 'gembox'].each do |jslib|
7
+ %script{'type' => 'text/javascript', 'src' => "/javascripts/#{jslib}.js"}
8
+ %body
9
+ #container
10
+ #header
11
+ .contained
12
+ %img{:src => '/images/rubygems-125x125t.png', :alt => 'Rubygems logo', :id => 'logo'}
13
+ %h1=link_to('Gembox', '/')
14
+ #nav
15
+ .contained
16
+ .search
17
+ %form{:method => 'get', :action => '/gems'}
18
+ %input{:type => 'text', :name => 'search', :value => @search, :class => 'search_field', :tabindex => 1}
19
+ %input{:type => 'submit', :value => 'Search'}
20
+ #stats
21
+ .contained
22
+ %p
23
+ You have
24
+ =@stats[:num_versions]
25
+ versions of
26
+ =@stats[:num_gems]
27
+ gems.
28
+ Your oldest gem is
29
+ =link_to_gem(@stats[:oldest_gem])
30
+ from
31
+ =ts(@stats[:oldest_gem].date)
32
+
33
+ #main.contained
34
+ =yield
35
+ #footer
36
+ %p.copyright
37
+ Gembox, developed by
38
+ =link_to 'Quirkey.', 'http://code.quirkey.com'
39
+ Powered by
40
+ =link_to 'Sinatra.', 'http://sinatrrb.com'
41
+ %p.copyright
42
+ Hey! I'm
43
+ =link_to 'open-source!', 'http://github.com/quirkey/gembox'
@@ -0,0 +1,3 @@
1
+ .no_results
2
+ %p
3
+ Sorry, your search returned no results.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quirkey-gembox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Quint
@@ -9,18 +9,18 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-27 00:00:00 -08:00
12
+ date: 2009-03-04 00:00:00 -08:00
13
13
  default_executable: gembox
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: rubygems
16
+ name: sinatra
17
17
  type: :runtime
18
18
  version_requirement:
19
19
  version_requirements: !ruby/object:Gem::Requirement
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 1.3.1
23
+ version: 0.9.1
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: activesupport
@@ -55,18 +55,42 @@ files:
55
55
  - Manifest.txt
56
56
  - PostInstall.txt
57
57
  - README.rdoc
58
+ - Rakefile
58
59
  - VERSION.yml
59
60
  - bin/gembox
61
+ - gembox.gemspec
60
62
  - lib/extensions.rb
61
- - lib/gembox
63
+ - lib/gembox.rb
62
64
  - lib/gembox/app.rb
65
+ - lib/gembox/config.ru
63
66
  - lib/gembox/gem_list.rb
64
67
  - lib/gembox/gems.rb
65
68
  - lib/gembox/view_helpers.rb
66
- - lib/gembox.rb
69
+ - public/images/edit.png
70
+ - public/images/folder.png
71
+ - public/images/git.gif
72
+ - public/images/page.png
73
+ - public/images/page_white_text.png
74
+ - public/images/rubygems-125x125t.png
75
+ - public/javascripts/base.js
76
+ - public/javascripts/jquery.form.js
77
+ - public/javascripts/jquery.js
78
+ - public/javascripts/jquery.metadata.js
79
+ - public/javascripts/jquery.ui.js
80
+ - public/swf/clippy.swf
81
+ - test/.bacon
67
82
  - test/test_gembox_app.rb
68
83
  - test/test_gembox_gems.rb
69
84
  - test/test_helper.rb
85
+ - views/file_tree.haml
86
+ - views/gem.haml
87
+ - views/gembox.sass
88
+ - views/gems_columns.haml
89
+ - views/gems_header.haml
90
+ - views/gems_table.haml
91
+ - views/index.haml
92
+ - views/layout.haml
93
+ - views/no_results.haml
70
94
  has_rdoc: true
71
95
  homepage: http://github.com/quirkey/gembox
72
96
  post_install_message: