geminabox-bootstrap 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. data/README.markdown +91 -0
  2. data/lib/geminabox.rb +271 -0
  3. data/lib/geminabox/disk_cache.rb +72 -0
  4. data/lib/geminabox/gem_version.rb +36 -0
  5. data/lib/geminabox/gem_version_collection.rb +63 -0
  6. data/lib/geminabox/incoming_gem.rb +65 -0
  7. data/lib/geminabox/indexer.rb +46 -0
  8. data/lib/geminabox/version.rb +1 -0
  9. data/lib/geminabox_client.rb +60 -0
  10. data/lib/hostess.rb +42 -0
  11. data/lib/rubygems/commands/inabox_command.rb +91 -0
  12. data/lib/rubygems_plugin.rb +2 -0
  13. data/public/favicon.ico +0 -0
  14. data/public/vendor/bootstrap/css/bootstrap-responsive.css +1279 -0
  15. data/public/vendor/bootstrap/css/bootstrap-responsive.min.css +18 -0
  16. data/public/vendor/bootstrap/css/bootstrap.css +7607 -0
  17. data/public/vendor/bootstrap/css/bootstrap.min.css +18 -0
  18. data/public/vendor/bootstrap/css/prettify.min.css +30 -0
  19. data/public/vendor/bootstrap/img/glyphicons-halflings-white.png +0 -0
  20. data/public/vendor/bootstrap/img/glyphicons-halflings.png +0 -0
  21. data/public/vendor/bootstrap/js/bootstrap.js +3060 -0
  22. data/public/vendor/bootstrap/js/bootstrap.min.js +7 -0
  23. data/public/vendor/bootstrap/js/prettify.min.js +28 -0
  24. data/public/vendor/fontawesome/css/font-awesome-ie7.min.css +22 -0
  25. data/public/vendor/fontawesome/css/font-awesome.css +540 -0
  26. data/public/vendor/fontawesome/css/font-awesome.min.css +33 -0
  27. data/public/vendor/fontawesome/font/FontAwesome.otf +0 -0
  28. data/public/vendor/fontawesome/font/fontawesome-webfont.eot +0 -0
  29. data/public/vendor/fontawesome/font/fontawesome-webfont.svg +284 -0
  30. data/public/vendor/fontawesome/font/fontawesome-webfont.ttf +0 -0
  31. data/public/vendor/fontawesome/font/fontawesome-webfont.woff +0 -0
  32. data/public/vendor/github-icon.png +0 -0
  33. data/public/vendor/jquery-1.9.1.min.js +5 -0
  34. data/views/adding_gems_partial.erb +0 -0
  35. data/views/atom.erb +28 -0
  36. data/views/example_gemfile.erb +5 -0
  37. data/views/gem.erb +66 -0
  38. data/views/index.erb +35 -0
  39. data/views/layout.erb +47 -0
  40. data/views/upload.erb +36 -0
  41. metadata +237 -0
@@ -0,0 +1,47 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Gem in a Box</title>
5
+ <script type='text/javascript' src="/vendor/jquery-1.9.1.min.js"></script>
6
+ <script type='text/javascript' src="/vendor/bootstrap/js/bootstrap.min.js"></script>
7
+ <link rel="stylesheet" href="/vendor/bootstrap/css/bootstrap.min.css" type="text/css" media="screen">
8
+ <script type='text/javascript' src="/vendor/bootstrap/js/prettify.min.js"></script>
9
+ <link rel="stylesheet" href="/vendor/bootstrap/css/prettify.min.css" type="text/css" media="screen">
10
+ <link href="<%= url "/atom.xml" %>" type="application/atom+xml" rel="alternate" title="Atom Feed">
11
+ <style>
12
+ .navbar {
13
+ width: 980px;
14
+ margin: 0px auto 20px;
15
+ }
16
+ pre {
17
+ font-size: 0.8em;
18
+ }
19
+ .brand {
20
+ color: #AA0800 !important;
21
+ font-weight: bold !important;
22
+ }
23
+ .adding-gems {
24
+ margin-bottom: 30px;
25
+ }
26
+ #alpha_index {
27
+ padding-left: 3px;
28
+ margin-bottom: 10px;
29
+ }
30
+ </style>
31
+ </head>
32
+ <body onload="prettyPrint()">
33
+ <div class="navbar">
34
+ <div class="navbar-inner">
35
+ <a class="brand" href="<%= url '/' %>">Gem in a Box</a>
36
+ <ul class="nav">
37
+ <li><a href="<%= url("/") %>">Home</a></li>
38
+ <li><a href="<%= url("/upload") %>">Upload</a></li>
39
+ <li><a href="<%= url("/example-gemfile") %>">Example Gemfile</a></li>
40
+ </ul>
41
+ </div>
42
+ </div>
43
+ <div class="container">
44
+ <%= yield %>
45
+ </div>
46
+ </body>
47
+ </html>
@@ -0,0 +1,36 @@
1
+ <div class="adding-gems">
2
+ <h3>Adding Gems:</h3>
3
+
4
+ <p>If you did not need any credentials to get to this page:</p>
5
+
6
+ <pre>
7
+ $ gem sources -a http://localhost:9293/
8
+ </pre>
9
+
10
+ <p>If you needed some credentials to get to this page:</p>
11
+ <pre>
12
+ $ gem sources -a http://username:password@localhost:9293/
13
+ </pre>
14
+
15
+ <p>Then:</p>
16
+ <pre>
17
+ $ gem install geminabox
18
+ $ gem inabox my-gem-0.0.1.gem
19
+ </pre>
20
+
21
+ <p>Enter the root url for your personal geminabox instance. (E.g. <%= url '/' %>)</p>
22
+ </div>
23
+
24
+ <h4>...or upload the .gem file directly from your computer:</h4>
25
+ <%= @error %>
26
+ <form method="post" enctype="multipart/form-data">
27
+ <div class="fileupload fileupload-new pull-left" data-provides="fileupload">
28
+ <div class="input-append">
29
+ <div class="uneditable-input span3"><i class="icon-file fileupload-exists"></i> <span class="fileupload-preview"></span></div><span class="btn btn-file"><span class="fileupload-new">Select file</span><span class="fileupload-exists">Change</span><input type="file" name="file" /></span><a href="#" class="btn fileupload-exists" data-dismiss="fileupload">Remove</a>
30
+ </div>
31
+ </div>
32
+ <div class="pull-left" style="height:1px;width:10px"></div>
33
+ <button type="submit" class="btn btn-primary pull-left" value="Upload">
34
+ <i class="icon-upload icon-white"></i> Upload
35
+ </button>
36
+ </form>
metadata ADDED
@@ -0,0 +1,237 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: geminabox-bootstrap
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.10.3
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Tom Lea
9
+ - Jack Foy
10
+ - Tom Chapin
11
+ autorequire:
12
+ bindir: bin
13
+ cert_chain: []
14
+ date: 2013-07-03 00:00:00.000000000 Z
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: sinatra
18
+ requirement: !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - ! '>='
22
+ - !ruby/object:Gem::Version
23
+ version: '0'
24
+ type: :runtime
25
+ prerelease: false
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ none: false
28
+ requirements:
29
+ - - ! '>='
30
+ - !ruby/object:Gem::Version
31
+ version: '0'
32
+ - !ruby/object:Gem::Dependency
33
+ name: builder
34
+ requirement: !ruby/object:Gem::Requirement
35
+ none: false
36
+ requirements:
37
+ - - ! '>='
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ none: false
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ - !ruby/object:Gem::Dependency
49
+ name: httpclient
50
+ requirement: !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: 2.2.7
56
+ type: :runtime
57
+ prerelease: false
58
+ version_requirements: !ruby/object:Gem::Requirement
59
+ none: false
60
+ requirements:
61
+ - - ! '>='
62
+ - !ruby/object:Gem::Version
63
+ version: 2.2.7
64
+ - !ruby/object:Gem::Dependency
65
+ name: rake
66
+ requirement: !ruby/object:Gem::Requirement
67
+ none: false
68
+ requirements:
69
+ - - ! '>='
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
72
+ type: :development
73
+ prerelease: false
74
+ version_requirements: !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - ! '>='
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ - !ruby/object:Gem::Dependency
81
+ name: rack-test
82
+ requirement: !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ none: false
92
+ requirements:
93
+ - - ! '>='
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ - !ruby/object:Gem::Dependency
97
+ name: minitest
98
+ requirement: !ruby/object:Gem::Requirement
99
+ none: false
100
+ requirements:
101
+ - - ! '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ none: false
108
+ requirements:
109
+ - - ! '>='
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ - !ruby/object:Gem::Dependency
113
+ name: capybara
114
+ requirement: !ruby/object:Gem::Requirement
115
+ none: false
116
+ requirements:
117
+ - - ! '>='
118
+ - !ruby/object:Gem::Version
119
+ version: '0'
120
+ type: :development
121
+ prerelease: false
122
+ version_requirements: !ruby/object:Gem::Requirement
123
+ none: false
124
+ requirements:
125
+ - - ! '>='
126
+ - !ruby/object:Gem::Version
127
+ version: '0'
128
+ - !ruby/object:Gem::Dependency
129
+ name: capybara-mechanize
130
+ requirement: !ruby/object:Gem::Requirement
131
+ none: false
132
+ requirements:
133
+ - - ! '>='
134
+ - !ruby/object:Gem::Version
135
+ version: '0'
136
+ type: :development
137
+ prerelease: false
138
+ version_requirements: !ruby/object:Gem::Requirement
139
+ none: false
140
+ requirements:
141
+ - - ! '>='
142
+ - !ruby/object:Gem::Version
143
+ version: '0'
144
+ - !ruby/object:Gem::Dependency
145
+ name: pry
146
+ requirement: !ruby/object:Gem::Requirement
147
+ none: false
148
+ requirements:
149
+ - - ! '>='
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ type: :development
153
+ prerelease: false
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ none: false
156
+ requirements:
157
+ - - ! '>='
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ description: A sinatra based gem hosting app, with client side gem push style functionality.
161
+ email:
162
+ - contrib@tomlea.co.uk
163
+ - jack@foys.net
164
+ - tchapin@gmail.com
165
+ executables: []
166
+ extensions: []
167
+ extra_rdoc_files:
168
+ - README.markdown
169
+ files:
170
+ - README.markdown
171
+ - lib/geminabox/disk_cache.rb
172
+ - lib/geminabox/gem_version.rb
173
+ - lib/geminabox/gem_version_collection.rb
174
+ - lib/geminabox/incoming_gem.rb
175
+ - lib/geminabox/indexer.rb
176
+ - lib/geminabox/version.rb
177
+ - lib/geminabox.rb
178
+ - lib/geminabox_client.rb
179
+ - lib/hostess.rb
180
+ - lib/rubygems/commands/inabox_command.rb
181
+ - lib/rubygems_plugin.rb
182
+ - public/favicon.ico
183
+ - public/vendor/bootstrap/css/bootstrap-responsive.css
184
+ - public/vendor/bootstrap/css/bootstrap-responsive.min.css
185
+ - public/vendor/bootstrap/css/bootstrap.css
186
+ - public/vendor/bootstrap/css/bootstrap.min.css
187
+ - public/vendor/bootstrap/css/prettify.min.css
188
+ - public/vendor/bootstrap/img/glyphicons-halflings-white.png
189
+ - public/vendor/bootstrap/img/glyphicons-halflings.png
190
+ - public/vendor/bootstrap/js/bootstrap.js
191
+ - public/vendor/bootstrap/js/bootstrap.min.js
192
+ - public/vendor/bootstrap/js/prettify.min.js
193
+ - public/vendor/fontawesome/css/font-awesome-ie7.min.css
194
+ - public/vendor/fontawesome/css/font-awesome.css
195
+ - public/vendor/fontawesome/css/font-awesome.min.css
196
+ - public/vendor/fontawesome/font/fontawesome-webfont.eot
197
+ - public/vendor/fontawesome/font/fontawesome-webfont.svg
198
+ - public/vendor/fontawesome/font/fontawesome-webfont.ttf
199
+ - public/vendor/fontawesome/font/fontawesome-webfont.woff
200
+ - public/vendor/fontawesome/font/FontAwesome.otf
201
+ - public/vendor/github-icon.png
202
+ - public/vendor/jquery-1.9.1.min.js
203
+ - views/adding_gems_partial.erb
204
+ - views/atom.erb
205
+ - views/example_gemfile.erb
206
+ - views/gem.erb
207
+ - views/index.erb
208
+ - views/layout.erb
209
+ - views/upload.erb
210
+ homepage: https://github.com/tomchapin/geminabox-bootstrap
211
+ licenses: []
212
+ post_install_message:
213
+ rdoc_options:
214
+ - --main
215
+ - README.markdown
216
+ require_paths:
217
+ - lib
218
+ required_ruby_version: !ruby/object:Gem::Requirement
219
+ none: false
220
+ requirements:
221
+ - - ! '>='
222
+ - !ruby/object:Gem::Version
223
+ version: '0'
224
+ required_rubygems_version: !ruby/object:Gem::Requirement
225
+ none: false
226
+ requirements:
227
+ - - ! '>='
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ requirements: []
231
+ rubyforge_project:
232
+ rubygems_version: 1.8.23
233
+ signing_key:
234
+ specification_version: 3
235
+ summary: Really simple rubygem hosting
236
+ test_files: []
237
+ has_rdoc: true