columbia-printers 0.1.0

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.
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ source "http://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
5
+
6
+ # Add dependencies to develop your gem here.
7
+ # Include everything needed to run rake, tests, features, etc.
8
+ group :development do
9
+ gem "shoulda", ">= 0"
10
+ gem "bundler", "~> 1.0.0"
11
+ gem "jeweler", "~> 1.5.2"
12
+ gem "rcov", ">= 0"
13
+ end
@@ -0,0 +1,20 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ git (1.2.5)
5
+ jeweler (1.5.2)
6
+ bundler (~> 1.0.0)
7
+ git (>= 1.2.5)
8
+ rake
9
+ rake (0.8.7)
10
+ rcov (0.9.9)
11
+ shoulda (2.11.3)
12
+
13
+ PLATFORMS
14
+ ruby
15
+
16
+ DEPENDENCIES
17
+ bundler (~> 1.0.0)
18
+ jeweler (~> 1.5.2)
19
+ rcov
20
+ shoulda
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011 Ryan Bubinski
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,12 @@
1
+ = ColumbiaPrinters
2
+
3
+ A gem to install Columbia printers on Mac OS 10.6>.
4
+
5
+ This gem is inspired by Reuben Doetsch's original Columbia printer installer, cuprint (https://github.com/hjast/cuprint).
6
+
7
+
8
+ == Copyright
9
+
10
+ Copyright (c) 2011 Ryan Bubinski. See LICENSE.txt for
11
+ further details.
12
+
@@ -0,0 +1,51 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
10
+ require 'rake'
11
+
12
+ require 'jeweler'
13
+ Jeweler::Tasks.new do |gem|
14
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
15
+ gem.name = "columbia-printers"
16
+ gem.executables = "columbia-printers"
17
+ gem.homepage = "http://github.com/ryanbubinski/Columbia-Printers"
18
+ gem.license = "MIT"
19
+ gem.summary = "A gem to install Columbia printers on Mac OS 10.6>"
20
+ gem.description = "A gem to install Columbia printers on Mac OS 10.6>"
21
+ gem.email = "ryanbubinski@gmail.com"
22
+ gem.authors = ["Reuben Doetsch", "Ryan Bubinski"]
23
+ #gem.add_dependency 'nokogiri'
24
+ end
25
+ Jeweler::RubygemsDotOrgTasks.new
26
+
27
+ require 'rake/testtask'
28
+ Rake::TestTask.new(:test) do |test|
29
+ test.libs << 'lib' << 'test'
30
+ test.pattern = 'test/**/test_*.rb'
31
+ test.verbose = true
32
+ end
33
+
34
+ require 'rcov/rcovtask'
35
+ Rcov::RcovTask.new do |test|
36
+ test.libs << 'test'
37
+ test.pattern = 'test/**/test_*.rb'
38
+ test.verbose = true
39
+ end
40
+
41
+ task :default => :test
42
+
43
+ require 'rake/rdoctask'
44
+ Rake::RDocTask.new do |rdoc|
45
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
46
+
47
+ rdoc.rdoc_dir = 'rdoc'
48
+ rdoc.title = "ColumbiaPrinters #{version}"
49
+ rdoc.rdoc_files.include('README*')
50
+ rdoc.rdoc_files.include('lib/**/*.rb')
51
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/ruby
2
+ $:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
3
+ require 'ColumbiaPrinters'
4
+ include ColumbiaPrinters
5
+ run
@@ -0,0 +1,103 @@
1
+ #!/usr/bin/ruby
2
+ require 'yaml'
3
+ require 'open-uri'
4
+ require 'nokogiri'
5
+
6
+ module ColumbiaPrinters
7
+
8
+ Struct.new( "Printer", :name, :place, :address, :driver )
9
+
10
+ def run
11
+ url_prefix = "http://www.columbia.edu/acis/facilities/printers/"
12
+ printer_src_files = [
13
+ "#{url_prefix}ninja/acis/js/printers.js",
14
+ "#{url_prefix}ninja/barnard/js/printers.js",
15
+ "#{url_prefix}ninja/cait/js/printers.js",
16
+ "#{url_prefix}ninja/lso/js/printers.js",
17
+ "#{url_prefix}ninja/meche/js/printers.js",
18
+ "#{url_prefix}ninja/old_pcd/js/printers.js",
19
+ "#{url_prefix}ninja/soa/js/printers.js",
20
+ "#{url_prefix}ninja/ssw/js/printers.js"
21
+ ]
22
+
23
+ puts "Loading printers (this requires an active internet connection)..."
24
+
25
+ printers = []
26
+
27
+ begin
28
+ slice[0,2]
29
+ printer_src_files.each do |src|
30
+ doc = Nokogiri::HTML(open( src ))
31
+ html = doc.to_html
32
+
33
+ printer_details = html.scan( /printers\[printers.length\] = ([^;]+)/ )
34
+ printer_details.each do |p|
35
+ unless p.first.nil?
36
+ details = p.first.scan( /"([^"]+)"/)
37
+ unless details.nil? or details.size != 5
38
+ printers << Struct::Printer.new(
39
+ details[0].first.strip,
40
+ details[3].first.strip,
41
+ details[1].first.strip,
42
+ details[2].first.strip
43
+ )
44
+ end
45
+ end
46
+ end
47
+ puts "Done loading #{src}"
48
+ end
49
+ rescue
50
+ puts "Loading from internet failed, using default printer list"
51
+ printer_details = YAML.load_file(File.join(File.dirname(__FILE__), 'printers.yaml'))["printers"]
52
+ printer_details.each { |printer| printers << Struct::Printer.new(printer["name"], printer["place"],printer["address"], printer["driver"]) }
53
+ end
54
+
55
+ while( true )
56
+ puts "1.) Add printer\n2.) Add all printers\n3.) Quit"
57
+ case gets.to_i
58
+ when 1
59
+ puts "Printers"
60
+ printers.each_index { |x| puts x.to_s + ".)" + printers[x]["name"] }
61
+ add_printer(printers[gets.to_i])
62
+ when 2
63
+ printers.each { |x| add_printer(x) }
64
+ when 3
65
+ return
66
+ end
67
+ end
68
+
69
+ end
70
+
71
+ def add_printer printer
72
+ puts "Installing printer #{printer["name"]}"
73
+
74
+ driver_filename = case printer["driver"]
75
+ when "HP LaserJet 9050 PS"; "HP\\ LaserJet\\ 9050.gz"
76
+ when "HP LaserJet 9050 Series PS"; "HP\\ LaserJet\\ 9050.gz"
77
+ when "HP Color LaserJet 4700 PS"; "HP\\ Color\\ LaserJet\\ 4700.gz"
78
+ when "HP Color LaserJet 5500 PS"; "HP\\ Color\\ LaserJet\\ 5550.gz"
79
+ when "HP LaserJet 8150 Series PS"; "HP\\ LaserJet\\ 8150\\ Series.gz"
80
+ when "HP LaserJet 4200 PS"; "HP\\ LaserJet\\ 4000\\ Series.gz"
81
+ when "HP LaserJet 4250 PS"; "HP\\ LaserJet\\ 4000\\ Series.gz"
82
+ when "HP LaserJet 4200 Series PS"; "HP\\ LaserJet\\ 4000\\ Series.gz"
83
+ when "HP LaserJet P4015"; "HP\\ LaserJet\\ 4000\\ Series.gz"
84
+ when "HP LaserJet 4015 PS"; "HP\\ LaserJet\\ 4000\\ Series.gz"
85
+ when "HP LaserJet 4000 PS"; "HP\\ LaserJet\\ 4000\\ Series.gz"
86
+ when "HP LaserJet 4350 PS"; "HP\\ LaserJet\\ 4350.gz"
87
+ when "HP LaserJet 8150 PS"; "HP\\ LaserJet\\ 8150\\ Series.gz"
88
+ when "HP Color LaserJet 4650 PS"; "HP\\ Color\\ LaserJet\\ 4500.gz"
89
+ when "HP LaserJet 4350 Series PS"; "HP\\ LaserJet\\ 4350.gz"
90
+ when "HP LaserJet 4010 series/4510 Series PS"; "HP\\ LaserJet\\ P4010_P4510\\ Series.gz"
91
+ when "HP LaserJet 4300 Series PS"; "HP\\ LaserJet\\ 4350.gz"
92
+ when "HP LaserJet 5100 PS"; "HP\\ LaserJet\\ 5100\\ Series.gz"
93
+ when "HP LaserJet 5200 PS"; "HP\\ LaserJet\\ 5200.gz"
94
+ when "HP LaserJet 4050 Series PS"; "HP\\ LaserJet\\ 4050\\ Series.gz"
95
+ when "HP LaserJet 8100 Series PS"; "HP\\ LaserJet\\ 8100\\ Series.gz"
96
+ when "HP LaserJet 9000 Series PS"; "HP\\ LaserJet\\ 9000\\ Series.gz"
97
+ else; printer["driver"].gsub(/PS|Series/, "").gsub("/", "_").strip.gsub(" ", '\\ ') + ".gz"
98
+ end
99
+
100
+ # system command to install new printer on UNIX system using lpadmin
101
+ `lpadmin -p "#{printer["name"]}" -L "#{printer["place"]}" -E -v lpd://#{printer["address"]}/public -P /Library/Printers/PPDs/Contents/Resources/#{driver_filename}`
102
+ end
103
+ end
@@ -0,0 +1,586 @@
1
+ printers:
2
+ - name: broadway304a
3
+ address: broadway304a-ninja.atg.columbia.edu
4
+ driver: HP LaserJet 9050 PS
5
+ place: Residence Halls
6
+
7
+ - name: butler209a
8
+ address: butler209a-ninja.atg.columbia.edu
9
+ driver: HP LaserJet 9050 PS
10
+ place: Butler
11
+
12
+ - name: butler209b
13
+ address: butler209b-ninja.atg.columbia.edu
14
+ driver: HP LaserJet 9050 PS
15
+ place: Butler
16
+
17
+ - name: butler213a
18
+ address: butler213a-ninja.atg.columbia.edu
19
+ driver: HP LaserJet 9050 PS
20
+ place: Butler
21
+
22
+ - name: butler213b
23
+ address: butler213b-ninja.atg.columbia.edu
24
+ driver: HP LaserJet 9050 PS
25
+ place: Butler
26
+
27
+ - name: butler213c
28
+ address: butler213c-ninja.atg.columbia.edu
29
+ driver: HP LaserJet 9050 PS
30
+ place: Butler
31
+
32
+ - name: butler300a
33
+ address: butler300a-ninja.atg.columbia.edu
34
+ driver: HP LaserJet 9050 PS
35
+ place: Butler
36
+
37
+ - name: butler300b
38
+ address: butler300b-ninja.atg.columbia.edu
39
+ driver: HP LaserJet 9050 PS
40
+ place: Butler
41
+
42
+ - name: butler403a
43
+ address: butler403a-ninja.atg.columbia.edu
44
+ driver: HP LaserJet 9050 PS
45
+ place: Butler
46
+
47
+ - name: butler403b
48
+ address: butler403b-ninja.atg.columbia.edu
49
+ driver: HP LaserJet 9050 PS
50
+ place: Butler
51
+
52
+ - name: carman103a
53
+ address: carman103a-ninja.atg.columbia.edu
54
+ driver: HP LaserJet 9050 PS
55
+ place: Residence Halls
56
+
57
+ - name: carman103b
58
+ address: carman103b-ninja.atg.columbia.edu
59
+ driver: HP LaserJet 9050 PS
60
+ place: Residence Halls
61
+
62
+ - name: claremontb01a
63
+ address: claremontb01a-ninja.atg.columbia.edu
64
+ driver: HP LaserJet 9050 PS
65
+ place: Residence Halls
66
+
67
+ - name: ec10a
68
+ address: ec10a-ninja.atg.columbia.edu
69
+ driver: HP LaserJet 9050 Series PS
70
+ place: Residence Halls
71
+
72
+ - name: ec18a
73
+ address: ec18a-ninja.atg.columbia.edu
74
+ driver: HP LaserJet 9050 Series PS
75
+ place: Residence Halls
76
+
77
+ - name: et251color
78
+ address: et251color-ninja.atg.columbia.edu
79
+ driver: HP Color LaserJet 4700 PS
80
+ place: Mudd
81
+
82
+ - name: furnald102a
83
+ address: furnald102a-ninja.atg.columbia.edu
84
+ driver: HP LaserJet 9050 PS
85
+ place: Residence Halls
86
+
87
+ - name: harmony100a
88
+ address: harmony100a-ninja.atg.columbia.edu
89
+ driver: HP LaserJet 9050 PS
90
+ place: Residence Halls
91
+
92
+ - name: hartley112a
93
+ address: hartley112a-ninja.atg.columbia.edu
94
+ driver: HP LaserJet 9050 PS
95
+ place: Residence Halls
96
+
97
+ - name: hartley112b
98
+ address: hartley112b-ninja.atg.columbia.edu
99
+ driver: HP LaserJet 9050 PS
100
+ place: Residence Halls
101
+
102
+ - name: iab323color
103
+ address: iab323color-ninja.atg.columbia.edu
104
+ driver: HP Color LaserJet 5500 PS
105
+ place: International Affairs
106
+
107
+ - name: iab323a
108
+ address: iab323a-ninja.atg.columbia.edu
109
+ driver: HP LaserJet 9050 PS
110
+ place: International Affairs
111
+
112
+ - name: iab323b
113
+ address: iab323b-ninja.atg.columbia.edu
114
+ driver: HP LaserJet 9050 PS
115
+ place: International Affairs
116
+
117
+ - name: lerner200a
118
+ address: lerner200a-ninja.atg.columbia.edu
119
+ driver: HP LaserJet 9050 PS
120
+ place: Lerner
121
+
122
+ - name: lerner200b
123
+ address: lerner200b-ninja.atg.columbia.edu
124
+ driver: HP LaserJet 9050 PS
125
+ place: Lerner
126
+
127
+ - name: lerner300a
128
+ address: lerner300a-ninja.atg.columbia.edu
129
+ driver: HP LaserJet 9050 PS
130
+ place: Lerner
131
+
132
+ - name: lerner300b
133
+ address: lerner300b-ninja.atg.columbia.edu
134
+ driver: HP LaserJet 9050 PS
135
+ place: Lerner
136
+
137
+ - name: lewisohn300a
138
+ address: lewisohn300a-ninja.atg.columbia.edu
139
+ driver: HP LaserJet 9050 PS
140
+ place: Lewisohn
141
+
142
+ - name: lewisohn300b
143
+ address: lewisohn300b-ninja.atg.columbia.edu
144
+ driver: HP LaserJet 9050 PS
145
+ place: Lewisohn
146
+
147
+ - name: math407a
148
+ address: math407a-ninja.atg.columbia.edu
149
+ driver: HP LaserJet 9050 PS
150
+ place: Math
151
+
152
+ - name: mcbain100a
153
+ address: mcbain100a-ninja.atg.columbia.edu
154
+ driver: HP LaserJet 9050 PS
155
+ place: Residence Halls
156
+
157
+ - name: mudd251a
158
+ address: mudd251a-ninja.atg.columbia.edu
159
+ driver: HP LaserJet 9050 PS
160
+ place: Mudd
161
+
162
+ - name: mudd251b
163
+ address: mudd251b-ninja.atg.columbia.edu
164
+ driver: HP LaserJet 9050 PS
165
+ place: Mudd
166
+
167
+ - name: mudd251c
168
+ address: mudd251c-ninja.atg.columbia.edu
169
+ driver: HP LaserJet 9050 PS
170
+ place: Mudd
171
+
172
+ - name: mudd422a
173
+ address: mudd422a-ninja.atg.columbia.edu
174
+ driver: HP LaserJet 9050 PS
175
+ place: Mudd
176
+
177
+ - name: philo301a
178
+ address: philo301a-ninja.atg.columbia.edu
179
+ driver: HP LaserJet 9050 PS
180
+ place: Philosophy
181
+
182
+ - name: riverb01a
183
+ address: riverb01a-ninja.atg.columbia.edu
184
+ driver: HP LaserJet 9050 PS
185
+ place: Residence Halls
186
+
187
+ - name: schapiro108a
188
+ address: schapiro108a-ninja.atg.columbia.edu
189
+ driver: HP LaserJet 9050 PS
190
+ place: Residence Halls
191
+
192
+ - name: schermerhorn558a
193
+ address: schermerhorn558a-ninja.atg.columbia.edu
194
+ driver: HP LaserJet 9050 PS
195
+ place: Schermerhorn
196
+
197
+ - name: statistics902a
198
+ address: statistics902a-ninja.atg.columbia.edu
199
+ driver: HP LaserJet 8150 Series PS
200
+ place: Statistics
201
+
202
+ - name: wien211a
203
+ address: wien211a-ninja.atg.columbia.edu
204
+ driver: HP LaserJet 9050 PS
205
+ place: Residence Halls
206
+
207
+ - name: wien211b
208
+ address: wien211b-ninja.atg.columbia.edu
209
+ driver: HP LaserJet 9050 PS
210
+ place: Residence Halls
211
+
212
+ - name: woodbridge100a
213
+ address: woodbridge100a-ninja.atg.columbia.edu
214
+ driver: HP LaserJet 9050 PS
215
+ place: Residence Halls
216
+
217
+ - name: watson8
218
+ address: watson8-ninja.atg.columbia.edu
219
+ driver: HP LaserJet 4200 PS
220
+ place: Watson
221
+
222
+ - name: watson811a
223
+ address: watson811a-ninja.atg.columbia.edu
224
+ driver: HP LaserJet 4250 PS
225
+ place: Watson
226
+
227
+ - name: bclibrary100a
228
+ address: bclibrary100a-ninja.barnard.edu
229
+ driver: HP LaserJet 9050 PS
230
+ place: Barnard
231
+
232
+ - name: bclibrary200a
233
+ address: bclibrary200a-ninja.barnard.edu
234
+ driver: HP LaserJet 9050 Series PS
235
+ place: Barnard
236
+
237
+ - name: brooks100a
238
+ address: brooks100a-ninja.barnard.edu
239
+ driver: HP LaserJet 9050 PS
240
+ place: Barnard
241
+
242
+ - name: brooks100b
243
+ address: brooks100b-ninja.barnard.edu
244
+ driver: HP LaserJet 9050 PS
245
+ place: Barnard
246
+
247
+ - name: dcc413a
248
+ address: dcc413a-ninja.barnard.edu
249
+ driver: HP LaserJet 9050 PS
250
+ place: Barnard
251
+
252
+ - name: diana307a
253
+ address: diana307a-ninja.barnard.edu
254
+ driver: HP LaserJet 9050 PS
255
+ place: Barnard
256
+
257
+ - name: diana307b
258
+ address: diana307b-ninja.barnard.edu
259
+ driver: HP LaserJet 9050 PS
260
+ place: Barnard
261
+
262
+ - name: diana307c
263
+ address: diana307c-ninja.barnard.edu
264
+ driver: HP LaserJet 9050 PS
265
+ place: Barnard
266
+
267
+ - name: plimpton100a
268
+ address: plimpton100a-ninja.barnard.edu
269
+ driver: HP LaserJet 9050 PS
270
+ place: Barnard
271
+
272
+ - name: plimpton100b
273
+ address: plimpton100b-ninja.barnard.edu
274
+ driver: HP LaserJet 9050 PS
275
+ place: Barnard
276
+
277
+ - name: sixsixteen100a
278
+ address: sixsixteen100a-ninja.barnard.edu
279
+ driver: HP LaserJet 9050 PS
280
+ place: Barnard
281
+
282
+ - name: sixsixteen100b
283
+ address: sixsixteen100b-ninja.barnard.edu
284
+ driver: HP LaserJet 9050 PS
285
+ place: Barnard
286
+
287
+ - name: sulzberger100a
288
+ address: sulzberger100a-ninja.barnard.edu
289
+ driver: HP LaserJet 9050 PS
290
+ place: Barnard
291
+
292
+ - name: ph17107a
293
+ address: ph17107a-ninja.cpmc.columbia.edu
294
+ driver: HP LaserJet P4015
295
+ place: Medical Center
296
+
297
+ - name: ph17107b
298
+ address: ph17107b-ninja.cpmc.columbia.edu
299
+ driver: HP LaserJet P4015
300
+ place: Medical Center
301
+
302
+ - name: hammerb100a
303
+ address: hammerb100a-ninja.cpmc.columbia.edu
304
+ driver: HP LaserJet 4000 PS
305
+ place: Medical Center
306
+
307
+ - name: hammer100a
308
+ address: hammer100a-ninja.cpmc.columbia.edu
309
+ driver: HP LaserJet 9050 PS
310
+ place: Medical Center
311
+
312
+ - name: hammer100b
313
+ address: hammer100b-ninja.cpmc.columbia.edu
314
+ driver: HP LaserJet 9050 PS
315
+ place: Medical Center
316
+
317
+ - name: hammer100c
318
+ address: hammer100c-ninja.cpmc.columbia.edu
319
+ driver: HP LaserJet 4350 PS
320
+ place: Medical Center
321
+
322
+ - name: hammer100d
323
+ address: hammer100d-ninja.cpmc.columbia.edu
324
+ driver: HP LaserJet 4350 PS
325
+ place: Medical Center
326
+
327
+ - name: hammer100e
328
+ address: hammer100e-ninja.cpmc.columbia.edu
329
+ driver: HP LaserJet 8150 PS
330
+ place: Medical Center
331
+
332
+ - name: hammer100f
333
+ address: hammer100f-ninja.cpmc.columbia.edu
334
+ driver: HP LaserJet 4015 PS
335
+ place: Medical Center
336
+
337
+ - name: hammer200a
338
+ address: hammer200a-ninja.cpmc.columbia.edu
339
+ driver: HP LaserJet 8150 PS
340
+ place: Medical Center
341
+
342
+ - name: hammer200b
343
+ address: hammer200b-ninja.cpmc.columbia.edu
344
+ driver: HP LaserJet 8150 PS
345
+ place: Medical Center
346
+
347
+ - name: hammer200c
348
+ address: hammer200c-ninja.cpmc.columbia.edu
349
+ driver: HP LaserJet 4350 PS
350
+ place: Medical Center
351
+
352
+ - name: hammer200d
353
+ address: hammer200d-ninja.cpmc.columbia.edu
354
+ driver: HP LaserJet 4200 Series PS
355
+ place: Medical Center
356
+
357
+ - name: hammer200e
358
+ address: hammer200e-ninja.cpmc.columbia.edu
359
+ driver: HP Color LaserJet 4650 PS
360
+ place: Medical Center
361
+
362
+ - name: hammer200f
363
+ address: hammer200f-ninja.cpmc.columbia.edu
364
+ driver: HP LaserJet 8150 PS
365
+ place: Medical Center
366
+
367
+ - name: hammer200g
368
+ address: hammer200g-ninja.cpmc.columbia.edu
369
+ driver: HP LaserJet 8150 PS
370
+ place: Medical Center
371
+
372
+ - name: bard100a
373
+ address: bard100a-ninja.cpmc.columbia.edu
374
+ driver: HP LaserJet 4200 PS
375
+ place: Medical Center
376
+
377
+ - name: bdh100b
378
+ address: bdh100b-ninja.cpmc.columbia.edu
379
+ driver: HP LaserJet 4350 PS
380
+ place: Medical Center
381
+
382
+ - name: tw2100a
383
+ address: tw2100a-ninja.cpmc.columbia.edu
384
+ driver: HP LaserJet 4350 PS
385
+ place: Medical Center
386
+
387
+ - name: avery200a
388
+ address: avery200a-ninja.atg.columbia.edu
389
+ driver: HP LaserJet 4350 Series PS
390
+ place: Avery
391
+
392
+ - name: avery200b
393
+ address: avery200b-ninja.atg.columbia.edu
394
+ driver: HP LaserJet 4010 series/4510 Series PS
395
+ place: Avery
396
+
397
+ - name: burke100a
398
+ address: burke100a-ninja.atg.columbia.edu
399
+ driver: HP LaserJet 4300 Series PS
400
+ place: Burke
401
+
402
+ - name: burke300a
403
+ address: burke300a-ninja.atg.columbia.edu
404
+ driver: HP LaserJet 4350 Series PS
405
+ place: Burke
406
+
407
+ - name: butler301a
408
+ address: butler301a-ninja.atg.columbia.edu
409
+ driver: HP LaserJet 4350 Series PS
410
+ place: Butler
411
+
412
+ - name: butler305a
413
+ address: butler305a-ninja.atg.columbia.edu
414
+ driver: HP LaserJet 4350 Series PS
415
+ place: Butler
416
+
417
+ - name: butler401a
418
+ address: butler401a-ninja.atg.columbia.edu
419
+ driver: HP LaserJet 4350 Series PS
420
+ place: Butler
421
+
422
+ - name: butler501a
423
+ address: butler501a-ninja.atg.columbia.edu
424
+ driver: HP LaserJet 4350 Series PS
425
+ place: Butler
426
+
427
+ - name: butler600a
428
+ address: butler600a-ninja.atg.columbia.edu
429
+ driver: HP LaserJet 4350 Series PS
430
+ place: Butler
431
+
432
+ - name: butler606a
433
+ address: butler606a-ninja.atg.columbia.edu
434
+ driver: HP LaserJet 4350 Series PS
435
+ place: Butler
436
+
437
+ - name: dodgeart701a
438
+ address: dodgeart701a-ninja.atg.columbia.edu
439
+ driver: HP LaserJet 5100 PS
440
+ place: Dodge
441
+
442
+ - name: dodgeart701b
443
+ address: dodgeart701b-ninja.atg.columbia.edu
444
+ driver: HP LaserJet 5200 PS
445
+ place: Dodge
446
+
447
+ - name: iab215a
448
+ address: iab215a-ninja.atg.columbia.edu
449
+ driver: HP LaserJet 4200 PS
450
+ place: International Affairs
451
+
452
+ - name: iab309a
453
+ address: iab309a-ninja.atg.columbia.edu
454
+ driver: HP LaserJet 4050 Series PS
455
+ place: International Affairs
456
+
457
+ - name: iab310a
458
+ address: iab310a-ninja.atg.columbia.edu
459
+ driver: HP LaserJet 9050 PS
460
+ place: International Affairs
461
+
462
+ - name: iab329a
463
+ address: iab329a-ninja.atg.columbia.edu
464
+ driver: HP LaserJet 9050 PS
465
+ place: International Affairs
466
+
467
+ - name: kent300a
468
+ address: kent300a-ninja.atg.columbia.edu
469
+ driver: HP LaserJet 4350 Series PS
470
+ place: Kent
471
+
472
+ - name: kent300b
473
+ address: kent300b-ninja.atg.columbia.edu
474
+ driver: HP LaserJet 4350 Series PS
475
+ place: Kent
476
+
477
+ - name: math303a
478
+ address: math303a-ninja.atg.columbia.edu
479
+ driver: HP LaserJet 4350 Series PS
480
+ place: Math
481
+
482
+ - name: schermerhorn601a
483
+ address: schermerhorn601a-ninja.atg.columbia.edu
484
+ driver: HP LaserJet 4350 Series PS
485
+ place: Schermerhorn
486
+
487
+ - name: socialwork202a
488
+ address: socialwork202a-ninja.atg.columbia.edu
489
+ driver: HP LaserJet 4300 Series PS
490
+ place: Social Work
491
+
492
+ - name: socialwork207a
493
+ address: socialwork207a-ninja.atg.columbia.edu
494
+ driver: HP LaserJet 4300 Series PS
495
+ place: Social Work
496
+
497
+ - name: uris130a
498
+ address: uris130a-ninja.atg.columbia.edu
499
+ driver: HP LaserJet 9050 PS
500
+ place: Uris
501
+
502
+ - name: uris130b
503
+ address: uris130b-ninja.atg.columbia.edu
504
+ driver: HP LaserJet 9050 PS
505
+ place: Uris
506
+
507
+ - name: uris130c
508
+ address: uris130c-ninja.atg.columbia.edu
509
+ driver: HP LaserJet 9050 PS
510
+ place: Uris
511
+
512
+ - name: uris130d
513
+ address: uris130d-ninja.atg.columbia.edu
514
+ driver: HP LaserJet 9050 PS
515
+ place: Uris
516
+
517
+ - name: ccsa
518
+ address: ccsa-ninja.atg.columbia.edu
519
+ driver: HP LaserJet 8100 Series PS
520
+ place: Career Services
521
+
522
+ - name: dodgeart412a
523
+ address: dodgeart412a-ninja.atg.columbia.edu
524
+ driver: HP LaserJet 4250 PS
525
+ place: Dodge
526
+
527
+ - name: socialwork105a
528
+ address: socialwork105a-ninja.atg.columbia.edu
529
+ driver: HP LaserJet 9050 Series PS
530
+ place: Social Work
531
+
532
+ - name: socialwork105b
533
+ address: socialwork105b-ninja.atg.columbia.edu
534
+ driver: HP LaserJet 9050 Series PS
535
+ place: Social Work
536
+
537
+ - name: socialwork105c
538
+ address: socialwork105c-ninja.atg.columbia.edu
539
+ driver: HP LaserJet 9050 Series PS
540
+ place: Social Work
541
+
542
+ - name: socialwork105d
543
+ address: socialwork105d-ninja.atg.columbia.edu
544
+ driver: HP LaserJet 9050 Series PS
545
+ place: Social Work
546
+
547
+ - name: socialwork105e
548
+ address: socialwork105e-ninja.atg.columbia.edu
549
+ driver: HP LaserJet 9000 Series PS
550
+ place: Social Work
551
+
552
+ - name: socialwork214a
553
+ address: socialwork214a-ninja.atg.columbia.edu
554
+ driver: HP LaserJet 9000 Series PS
555
+ place: Social Work
556
+
557
+ - name: socialwork309a
558
+ address: socialwork309a-ninja.atg.columbia.edu
559
+ driver: HP LaserJet 9050 Series PS
560
+ place: Social Work
561
+
562
+ - name: socialwork401a
563
+ address: socialwork401a-ninja.atg.columbia.edu
564
+ driver: HP LaserJet 9000 Series PS
565
+ place: Social Work
566
+
567
+ - name: socialwork403a
568
+ address: socialwork403a-ninja.atg.columbia.edu
569
+ driver: HP LaserJet 8150 Series PS
570
+ place: Social Work
571
+
572
+ - name: socialwork721a
573
+ address: socialwork721a-ninja.atg.columbia.edu
574
+ driver: HP LaserJet 9050 Series PS
575
+ place: Social Work
576
+
577
+ - name: socialwork821a
578
+ address: socialwork821a-ninja.atg.columbia.edu
579
+ driver: HP LaserJet 9050 Series PS
580
+ place: Social Work
581
+
582
+ - name: socialwork900a
583
+ address: socialwork900a-ninja.atg.columbia.edu
584
+ driver: HP LaserJet 9000 Series PS
585
+ place: Social Work
586
+
@@ -0,0 +1,18 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
10
+ require 'test/unit'
11
+ require 'shoulda'
12
+
13
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
14
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
15
+ require 'ColumbiaPrinters'
16
+
17
+ class Test::Unit::TestCase
18
+ end
@@ -0,0 +1,7 @@
1
+ require 'helper'
2
+
3
+ class TestColumbiaprinters < Test::Unit::TestCase
4
+ should "probably rename this file and start testing for real" do
5
+ flunk "hey buddy, you should probably rename this file and start testing for real"
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,116 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: columbia-printers
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.1.0
6
+ platform: ruby
7
+ authors:
8
+ - Reuben Doetsch
9
+ - Ryan Bubinski
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+
14
+ date: 2011-04-09 00:00:00 -04:00
15
+ default_executable: columbia-printers
16
+ dependencies:
17
+ - !ruby/object:Gem::Dependency
18
+ name: shoulda
19
+ requirement: &id001 !ruby/object:Gem::Requirement
20
+ none: false
21
+ requirements:
22
+ - - ">="
23
+ - !ruby/object:Gem::Version
24
+ version: "0"
25
+ type: :development
26
+ prerelease: false
27
+ version_requirements: *id001
28
+ - !ruby/object:Gem::Dependency
29
+ name: bundler
30
+ requirement: &id002 !ruby/object:Gem::Requirement
31
+ none: false
32
+ requirements:
33
+ - - ~>
34
+ - !ruby/object:Gem::Version
35
+ version: 1.0.0
36
+ type: :development
37
+ prerelease: false
38
+ version_requirements: *id002
39
+ - !ruby/object:Gem::Dependency
40
+ name: jeweler
41
+ requirement: &id003 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ~>
45
+ - !ruby/object:Gem::Version
46
+ version: 1.5.2
47
+ type: :development
48
+ prerelease: false
49
+ version_requirements: *id003
50
+ - !ruby/object:Gem::Dependency
51
+ name: rcov
52
+ requirement: &id004 !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: "0"
58
+ type: :development
59
+ prerelease: false
60
+ version_requirements: *id004
61
+ description: A gem to install Columbia printers on Mac OS 10.6>
62
+ email: ryanbubinski@gmail.com
63
+ executables:
64
+ - columbia-printers
65
+ extensions: []
66
+
67
+ extra_rdoc_files:
68
+ - LICENSE.txt
69
+ - README.rdoc
70
+ files:
71
+ - .document
72
+ - Gemfile
73
+ - Gemfile.lock
74
+ - LICENSE.txt
75
+ - README.rdoc
76
+ - Rakefile
77
+ - VERSION
78
+ - bin/columbia-printers
79
+ - lib/ColumbiaPrinters.rb
80
+ - lib/printers.yaml
81
+ - test/helper.rb
82
+ - test/test_ColumbiaPrinters.rb
83
+ has_rdoc: true
84
+ homepage: http://github.com/ryanbubinski/Columbia-Printers
85
+ licenses:
86
+ - MIT
87
+ post_install_message:
88
+ rdoc_options: []
89
+
90
+ require_paths:
91
+ - lib
92
+ required_ruby_version: !ruby/object:Gem::Requirement
93
+ none: false
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ hash: -529997722783964074
98
+ segments:
99
+ - 0
100
+ version: "0"
101
+ required_rubygems_version: !ruby/object:Gem::Requirement
102
+ none: false
103
+ requirements:
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ version: "0"
107
+ requirements: []
108
+
109
+ rubyforge_project:
110
+ rubygems_version: 1.5.2
111
+ signing_key:
112
+ specification_version: 3
113
+ summary: A gem to install Columbia printers on Mac OS 10.6>
114
+ test_files:
115
+ - test/helper.rb
116
+ - test/test_ColumbiaPrinters.rb