spreadsheet_template 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,7 @@
1
- Copyright (c) 2009 10to1
1
+ Portions copyright (c) 2011 Craig Knox
2
+ Portions copyright (c) 2009 10to1
3
+
4
+ MIT License
2
5
 
3
6
  Permission is hereby granted, free of charge, to any person obtaining
4
7
  a copy of this software and associated documentation files (the
@@ -17,4 +20,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
20
  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
21
  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
22
  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.
23
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,55 @@
1
+ # encoding: utf-8
2
+
3
+ module SpreadsheetTemplate # :nodoc:
4
+ # Template handler for Excel templates
5
+ #
6
+ # Add rows to your Excel file in the template by manipulating the 'book' variable using the Spreadsheet gem methods
7
+ #
8
+ # sheet = book.create_worksheet
9
+ # sheet.name = "Phenol-Explorer Polyphenol Classes"
10
+ #
11
+ # # Set style for header
12
+ # sheet.row(0).concat headers
13
+ # format = Spreadsheet::Format.new :color => :blue, :weight => :bold, :size => 10
14
+ # sheet.row(0).default_format = format
15
+ # row = sheet.row(1)
16
+ # row.push ('one', 'two', 'three')
17
+ #
18
+ #
19
+ # You can set the default filename for that a browser will use for 'save as' by
20
+ # setting <tt>@filename</tt> instance variable in your controller's action method
21
+ # e.g.
22
+ #
23
+ # @filename = 'report.csv'
24
+ class TemplateHandler
25
+ def self.call(template)
26
+ <<-EOV
27
+ begin
28
+ if controller.request.env['HTTP_USER_AGENT'] =~ /msie/i
29
+ controller.response.headers['Pragma'] = 'public'
30
+ controller.response.headers['Cache-Control'] = 'no-cache, must-revalidate, post-check=0, pre-check=0'
31
+ controller.response.headers['Content-Disposition'] = "attachment; filename=\#{@filename}"
32
+ controller.response.headers['Expires'] = "0"
33
+ else
34
+ controller.response.headers["Content-Disposition"] = "attachment; filename=\#{@filename}"
35
+ controller.response.headers["Content-Transfer-Encoding"] = "binary"
36
+ end
37
+ controller.response.content_type ||= Mime::XLS
38
+
39
+ book = Spreadsheet::Workbook.new
40
+ #{template.source}
41
+ blob = StringIO.new("")
42
+ book.write blob
43
+ blob.string
44
+ rescue Exception => e
45
+ Rails.logger.warn("Exception \#{e} \#{e.message} with class \#{e.class.name} thrown when rendering XLS")
46
+ raise e
47
+ end
48
+ EOV
49
+ end
50
+
51
+ def compile(template)
52
+ self.class.call(template)
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,4 @@
1
+ module SpreadsheetTemplate
2
+ VERSION = "1.0.1"
3
+ end
4
+
@@ -1,50 +1,5 @@
1
1
  # encoding: utf-8
2
2
  require 'action_view'
3
- require 'iconv'
4
3
  require 'spreadsheet_template/template_handler'
5
4
  require 'spreadsheet_template/railtie'
6
- #
7
- #
8
- # require 'spreadsheet_template/railtie.rb'
9
- #
10
- # module SpreadsheetTemplate
11
- #
12
- # class Handler
13
- # # self.default_mime_type = 'application/vnd.ms-excel'
14
- #
15
- # def self.call(template)
16
- # %Q{controller.response.content_type ||= Mime::XLS
17
- # controller.headers["Content-Disposition"] = "attachment"
18
- # SpreadsheetTemplate::Base.new { |workbook| #{template.source} }.process}
19
- # end
20
- # end
21
- #
22
- # class Base
23
- # @@temp_file = nil
24
- #
25
- # def temp_file_path
26
- # unless @@temp_file
27
- # temp = Tempfile.new('spreadsheet-', File.join(Rails.root.to_s, 'tmp') )
28
- # @@temp_file = temp.path
29
- # temp.close
30
- # end
31
- # @@temp_file
32
- # end
33
- #
34
- # def initialize
35
- # yield workbook
36
- # end
37
- #
38
- # #
39
- # def workbook
40
- # @workbook ||= Spreadsheet::Workbook.new
41
- # end
42
- #
43
- # # Do the final processing once the work inside the view file has finished
44
- # # We need to write the workbook to a temp dir because spreadsheet gem can't write to a string
45
- # def process
46
- # workbook.write(temp_file_path)
47
- # File.open(temp_file_path, 'rb') { |file| file.read }
48
- # end
49
- # end
50
- # end
5
+ require 'spreadsheet_template/version'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spreadsheet_template
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,229 +13,9 @@ bindir: bin
13
13
  cert_chain: []
14
14
  date: 2011-10-31 00:00:00.000000000Z
15
15
  dependencies:
16
- - !ruby/object:Gem::Dependency
17
- name: spreadsheet_template
18
- requirement: &70250642016160 !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: *70250642016160
27
- - !ruby/object:Gem::Dependency
28
- name: rails
29
- requirement: &70250642015400 !ruby/object:Gem::Requirement
30
- none: false
31
- requirements:
32
- - - ! '>='
33
- - !ruby/object:Gem::Version
34
- version: 3.0.0
35
- type: :development
36
- prerelease: false
37
- version_requirements: *70250642015400
38
- - !ruby/object:Gem::Dependency
39
- name: rspec
40
- requirement: &70250642014320 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ~>
44
- - !ruby/object:Gem::Version
45
- version: '2.5'
46
- type: :development
47
- prerelease: false
48
- version_requirements: *70250642014320
49
- - !ruby/object:Gem::Dependency
50
- name: rspec-rails
51
- requirement: &70250642013640 !ruby/object:Gem::Requirement
52
- none: false
53
- requirements:
54
- - - ~>
55
- - !ruby/object:Gem::Version
56
- version: '2.5'
57
- type: :development
58
- prerelease: false
59
- version_requirements: *70250642013640
60
- - !ruby/object:Gem::Dependency
61
- name: jeweler
62
- requirement: &70250642012900 !ruby/object:Gem::Requirement
63
- none: false
64
- requirements:
65
- - - ! '>='
66
- - !ruby/object:Gem::Version
67
- version: '0'
68
- type: :development
69
- prerelease: false
70
- version_requirements: *70250642012900
71
- - !ruby/object:Gem::Dependency
72
- name: rack
73
- requirement: &70250642011800 !ruby/object:Gem::Requirement
74
- none: false
75
- requirements:
76
- - - ! '>='
77
- - !ruby/object:Gem::Version
78
- version: '0'
79
- type: :development
80
- prerelease: false
81
- version_requirements: *70250642011800
82
- - !ruby/object:Gem::Dependency
83
- name: sqlite3
84
- requirement: &70250642010400 !ruby/object:Gem::Requirement
85
- none: false
86
- requirements:
87
- - - ! '>='
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: *70250642010400
93
- - !ruby/object:Gem::Dependency
94
- name: rails
95
- requirement: &70250642008840 !ruby/object:Gem::Requirement
96
- none: false
97
- requirements:
98
- - - ! '>='
99
- - !ruby/object:Gem::Version
100
- version: 3.0.0
101
- type: :development
102
- prerelease: false
103
- version_requirements: *70250642008840
104
- - !ruby/object:Gem::Dependency
105
- name: rspec
106
- requirement: &70250642008200 !ruby/object:Gem::Requirement
107
- none: false
108
- requirements:
109
- - - ~>
110
- - !ruby/object:Gem::Version
111
- version: '2.5'
112
- type: :development
113
- prerelease: false
114
- version_requirements: *70250642008200
115
- - !ruby/object:Gem::Dependency
116
- name: rspec-rails
117
- requirement: &70250642007280 !ruby/object:Gem::Requirement
118
- none: false
119
- requirements:
120
- - - ~>
121
- - !ruby/object:Gem::Version
122
- version: '2.5'
123
- type: :development
124
- prerelease: false
125
- version_requirements: *70250642007280
126
- - !ruby/object:Gem::Dependency
127
- name: jeweler
128
- requirement: &70250642005960 !ruby/object:Gem::Requirement
129
- none: false
130
- requirements:
131
- - - ! '>='
132
- - !ruby/object:Gem::Version
133
- version: '0'
134
- type: :development
135
- prerelease: false
136
- version_requirements: *70250642005960
137
- - !ruby/object:Gem::Dependency
138
- name: rack
139
- requirement: &70250642004640 !ruby/object:Gem::Requirement
140
- none: false
141
- requirements:
142
- - - ! '>='
143
- - !ruby/object:Gem::Version
144
- version: '0'
145
- type: :development
146
- prerelease: false
147
- version_requirements: *70250642004640
148
- - !ruby/object:Gem::Dependency
149
- name: sqlite3
150
- requirement: &70250642003600 !ruby/object:Gem::Requirement
151
- none: false
152
- requirements:
153
- - - ! '>='
154
- - !ruby/object:Gem::Version
155
- version: '0'
156
- type: :development
157
- prerelease: false
158
- version_requirements: *70250642003600
159
- - !ruby/object:Gem::Dependency
160
- name: rails
161
- requirement: &70250642002020 !ruby/object:Gem::Requirement
162
- none: false
163
- requirements:
164
- - - ! '>='
165
- - !ruby/object:Gem::Version
166
- version: 3.0.0
167
- type: :development
168
- prerelease: false
169
- version_requirements: *70250642002020
170
- - !ruby/object:Gem::Dependency
171
- name: rspec
172
- requirement: &70250641999360 !ruby/object:Gem::Requirement
173
- none: false
174
- requirements:
175
- - - ~>
176
- - !ruby/object:Gem::Version
177
- version: '2.5'
178
- type: :development
179
- prerelease: false
180
- version_requirements: *70250641999360
181
- - !ruby/object:Gem::Dependency
182
- name: rspec-rails
183
- requirement: &70250641998220 !ruby/object:Gem::Requirement
184
- none: false
185
- requirements:
186
- - - ~>
187
- - !ruby/object:Gem::Version
188
- version: '2.5'
189
- type: :development
190
- prerelease: false
191
- version_requirements: *70250641998220
192
- - !ruby/object:Gem::Dependency
193
- name: jeweler
194
- requirement: &70250641979540 !ruby/object:Gem::Requirement
195
- none: false
196
- requirements:
197
- - - ! '>='
198
- - !ruby/object:Gem::Version
199
- version: '0'
200
- type: :development
201
- prerelease: false
202
- version_requirements: *70250641979540
203
- - !ruby/object:Gem::Dependency
204
- name: rack
205
- requirement: &70250641978620 !ruby/object:Gem::Requirement
206
- none: false
207
- requirements:
208
- - - ! '>='
209
- - !ruby/object:Gem::Version
210
- version: '0'
211
- type: :development
212
- prerelease: false
213
- version_requirements: *70250641978620
214
- - !ruby/object:Gem::Dependency
215
- name: sqlite3
216
- requirement: &70250641977620 !ruby/object:Gem::Requirement
217
- none: false
218
- requirements:
219
- - - ! '>='
220
- - !ruby/object:Gem::Version
221
- version: '0'
222
- type: :development
223
- prerelease: false
224
- version_requirements: *70250641977620
225
- - !ruby/object:Gem::Dependency
226
- name: actionpack
227
- requirement: &70250641976800 !ruby/object:Gem::Requirement
228
- none: false
229
- requirements:
230
- - - ! '>='
231
- - !ruby/object:Gem::Version
232
- version: 3.0.0
233
- type: :runtime
234
- prerelease: false
235
- version_requirements: *70250641976800
236
16
  - !ruby/object:Gem::Dependency
237
17
  name: spreadsheet
238
- requirement: &70250641975800 !ruby/object:Gem::Requirement
18
+ requirement: &70239703550200 !ruby/object:Gem::Requirement
239
19
  none: false
240
20
  requirements:
241
21
  - - ! '>='
@@ -243,35 +23,20 @@ dependencies:
243
23
  version: 0.6.5.9
244
24
  type: :runtime
245
25
  prerelease: false
246
- version_requirements: *70250641975800
247
- - !ruby/object:Gem::Dependency
248
- name: jeweler
249
- requirement: &70250641974840 !ruby/object:Gem::Requirement
250
- none: false
251
- requirements:
252
- - - ! '>='
253
- - !ruby/object:Gem::Version
254
- version: '0'
255
- type: :development
256
- prerelease: false
257
- version_requirements: *70250641974840
26
+ version_requirements: *70239703550200
258
27
  description: Excel Spreadsheet template handler for Rails. Enables :format => 'xls'
259
28
  in controllers, with templates of the form report.xls.xlsbuilder.
260
- email: cknox@insiliflo.com
29
+ email:
30
+ - cknox@insiliflo.com
261
31
  executables: []
262
32
  extensions: []
263
- extra_rdoc_files:
264
- - README
33
+ extra_rdoc_files: []
265
34
  files:
266
- - Gemfile
267
- - MIT-LICENSE
268
- - README
269
- - Rakefile
270
- - lib/spreadsheet_template.rb
271
35
  - lib/spreadsheet_template/railtie.rb
272
- - spreadsheet_template.gemspec
273
- - test/spreadsheet_on_rails_test.rb
274
- - test/test_helper.rb
36
+ - lib/spreadsheet_template/template_handler.rb
37
+ - lib/spreadsheet_template/version.rb
38
+ - lib/spreadsheet_template.rb
39
+ - LICENSE
275
40
  homepage: http://github.com/cknoxrun/spreadsheet_template
276
41
  licenses:
277
42
  - MIT
@@ -290,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
290
55
  requirements:
291
56
  - - ! '>='
292
57
  - !ruby/object:Gem::Version
293
- version: '0'
58
+ version: 1.3.6
294
59
  requirements: []
295
60
  rubyforge_project:
296
61
  rubygems_version: 1.8.10
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source "http://rubygems.org"
2
-
3
- # Specify your gem's dependencies in sor.gemspec
4
- gemspec
data/README DELETED
@@ -1,56 +0,0 @@
1
- SpreadsheetTemplate
2
- ==================
3
-
4
- A Rails plugin to generate xls documents by using templates.
5
-
6
- Based on Spreadsheet on Rails (by Koen Van der Auwera) (http://github.com/10to1/spreadsheet_on_rails) and
7
- CSV Builder (by Gabe da Silveira) (https://github.com/dasil003/csv_builder).
8
-
9
- Dependencies
10
- ============
11
-
12
- spreadsheet
13
-
14
- Example
15
- =======
16
-
17
- Example spreadsheet usage as found here: http://github.com/jacobat/ruby-spreadsheet
18
-
19
- -- in the view "index.xls.xlsbuilder
20
-
21
- sheet = workbook.create_worksheet
22
- sheet.name = "What's in a name"
23
-
24
- sheet.row(0).concat %w{Name Country Acknowlegement}
25
- sheet[1,0] = 'Japan'
26
- row = sheet.row(1)
27
- row.push 'Creator of Ruby'
28
- row.unshift 'Yukihiro Matsumoto'
29
- sheet.row(2).replace [ 'Daniel J. Berger', 'U.S.A.',
30
- 'Author of original code for Spreadsheet::Excel' ]
31
- sheet.row(3).push 'Charles Lowe', 'Author of the ruby-ole Library'
32
- sheet.row(3).insert 1, 'Unknown'
33
- sheet.update_row 4, 'Hannes Wyss', 'Switzerland', 'Author'
34
-
35
- sheet.row(0).height = 18
36
-
37
- format = Spreadsheet::Format.new :color => :blue,
38
- :weight => :bold,
39
- :size => 18
40
- sheet.row(0).default_format = format
41
-
42
- bold = Spreadsheet::Format.new :weight => :bold
43
- 4.times do |x| sheet.row(x + 1).set_format(0, bold) end
44
-
45
-
46
- -- in the controller
47
-
48
- def index
49
- @lines = Line.find(:all)
50
-
51
- respond_to do |format|
52
- format.html # index.html.erb
53
- format.xml { render :xml => @lines }
54
- format.xls { render :action => "index", :layout => false }
55
- end
56
- end
data/Rakefile DELETED
@@ -1,28 +0,0 @@
1
- require 'rdoc/task'
2
- require 'jeweler'
3
-
4
- desc 'Generate documentation for the spreadsheet_template plugin.'
5
- Rake::RDocTask.new(:rdoc) do |rdoc|
6
- rdoc.rdoc_dir = 'rdoc'
7
- rdoc.title = 'Spreadsheet Template'
8
- rdoc.options << '--line-numbers' << '--inline-source'
9
- rdoc.rdoc_files.include('README.rdoc')
10
- rdoc.rdoc_files.include('CHANGELOG.rdoc')
11
- rdoc.rdoc_files.include('lib/**/*.rb')
12
- end
13
-
14
- Jeweler::Tasks.new do |gem|
15
- gem.name = "spreadsheet_template"
16
- gem.homepage = "http://github.com/cknoxrun/spreadsheet_template"
17
- gem.license = "MIT"
18
- gem.summary = %Q{Excel Spreadsheet template handler for Rails}
19
- gem.description = %Q{Excel Spreadsheet template handler for Rails. Enables :format => 'xls' in controllers, with templates of the form report.xls.xlsbuilder.}
20
- gem.email = "cknox@insiliflo.com"
21
- gem.authors = ['Craig Knox', 'Koen Van der Auwera', 'Gabe da Silveira']
22
-
23
- gem.add_dependency 'actionpack', '>=3.0.0'
24
- gem.add_dependency 'spreadsheet', '>=0.6.5.9'
25
-
26
- gem.add_development_dependency 'jeweler'
27
- end
28
- Jeweler::RubygemsDotOrgTasks.new
@@ -1,110 +0,0 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = "spreadsheet_template"
8
- s.version = "1.0.0"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Craig Knox", "Koen Van der Auwera", "Gabe da Silveira"]
12
- s.date = "2011-10-31"
13
- s.description = "Excel Spreadsheet template handler for Rails. Enables :format => 'xls' in controllers, with templates of the form report.xls.xlsbuilder."
14
- s.email = "cknox@insiliflo.com"
15
- s.extra_rdoc_files = [
16
- "README"
17
- ]
18
- s.files = [
19
- "Gemfile",
20
- "MIT-LICENSE",
21
- "README",
22
- "Rakefile",
23
- "lib/spreadsheet_template.rb",
24
- "lib/spreadsheet_template/railtie.rb",
25
- "spreadsheet_template.gemspec",
26
- "test/spreadsheet_on_rails_test.rb",
27
- "test/test_helper.rb"
28
- ]
29
- s.homepage = "http://github.com/cknoxrun/spreadsheet_template"
30
- s.licenses = ["MIT"]
31
- s.require_paths = ["lib"]
32
- s.rubygems_version = "1.8.10"
33
- s.summary = "Excel Spreadsheet template handler for Rails"
34
-
35
- if s.respond_to? :specification_version then
36
- s.specification_version = 3
37
-
38
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
39
- s.add_runtime_dependency(%q<spreadsheet_template>, [">= 0"])
40
- s.add_development_dependency(%q<rails>, [">= 3.0.0"])
41
- s.add_development_dependency(%q<rspec>, ["~> 2.5"])
42
- s.add_development_dependency(%q<rspec-rails>, ["~> 2.5"])
43
- s.add_development_dependency(%q<jeweler>, [">= 0"])
44
- s.add_development_dependency(%q<rack>, [">= 0"])
45
- s.add_development_dependency(%q<sqlite3>, [">= 0"])
46
- s.add_development_dependency(%q<rails>, [">= 3.0.0"])
47
- s.add_development_dependency(%q<rspec>, ["~> 2.5"])
48
- s.add_development_dependency(%q<rspec-rails>, ["~> 2.5"])
49
- s.add_development_dependency(%q<jeweler>, [">= 0"])
50
- s.add_development_dependency(%q<rack>, [">= 0"])
51
- s.add_development_dependency(%q<sqlite3>, [">= 0"])
52
- s.add_development_dependency(%q<rails>, [">= 3.0.0"])
53
- s.add_development_dependency(%q<rspec>, ["~> 2.5"])
54
- s.add_development_dependency(%q<rspec-rails>, ["~> 2.5"])
55
- s.add_development_dependency(%q<jeweler>, [">= 0"])
56
- s.add_development_dependency(%q<rack>, [">= 0"])
57
- s.add_development_dependency(%q<sqlite3>, [">= 0"])
58
- s.add_runtime_dependency(%q<actionpack>, [">= 3.0.0"])
59
- s.add_runtime_dependency(%q<spreadsheet>, [">= 0.6.5.9"])
60
- s.add_development_dependency(%q<jeweler>, [">= 0"])
61
- else
62
- s.add_dependency(%q<spreadsheet_template>, [">= 0"])
63
- s.add_dependency(%q<rails>, [">= 3.0.0"])
64
- s.add_dependency(%q<rspec>, ["~> 2.5"])
65
- s.add_dependency(%q<rspec-rails>, ["~> 2.5"])
66
- s.add_dependency(%q<jeweler>, [">= 0"])
67
- s.add_dependency(%q<rack>, [">= 0"])
68
- s.add_dependency(%q<sqlite3>, [">= 0"])
69
- s.add_dependency(%q<rails>, [">= 3.0.0"])
70
- s.add_dependency(%q<rspec>, ["~> 2.5"])
71
- s.add_dependency(%q<rspec-rails>, ["~> 2.5"])
72
- s.add_dependency(%q<jeweler>, [">= 0"])
73
- s.add_dependency(%q<rack>, [">= 0"])
74
- s.add_dependency(%q<sqlite3>, [">= 0"])
75
- s.add_dependency(%q<rails>, [">= 3.0.0"])
76
- s.add_dependency(%q<rspec>, ["~> 2.5"])
77
- s.add_dependency(%q<rspec-rails>, ["~> 2.5"])
78
- s.add_dependency(%q<jeweler>, [">= 0"])
79
- s.add_dependency(%q<rack>, [">= 0"])
80
- s.add_dependency(%q<sqlite3>, [">= 0"])
81
- s.add_dependency(%q<actionpack>, [">= 3.0.0"])
82
- s.add_dependency(%q<spreadsheet>, [">= 0.6.5.9"])
83
- s.add_dependency(%q<jeweler>, [">= 0"])
84
- end
85
- else
86
- s.add_dependency(%q<spreadsheet_template>, [">= 0"])
87
- s.add_dependency(%q<rails>, [">= 3.0.0"])
88
- s.add_dependency(%q<rspec>, ["~> 2.5"])
89
- s.add_dependency(%q<rspec-rails>, ["~> 2.5"])
90
- s.add_dependency(%q<jeweler>, [">= 0"])
91
- s.add_dependency(%q<rack>, [">= 0"])
92
- s.add_dependency(%q<sqlite3>, [">= 0"])
93
- s.add_dependency(%q<rails>, [">= 3.0.0"])
94
- s.add_dependency(%q<rspec>, ["~> 2.5"])
95
- s.add_dependency(%q<rspec-rails>, ["~> 2.5"])
96
- s.add_dependency(%q<jeweler>, [">= 0"])
97
- s.add_dependency(%q<rack>, [">= 0"])
98
- s.add_dependency(%q<sqlite3>, [">= 0"])
99
- s.add_dependency(%q<rails>, [">= 3.0.0"])
100
- s.add_dependency(%q<rspec>, ["~> 2.5"])
101
- s.add_dependency(%q<rspec-rails>, ["~> 2.5"])
102
- s.add_dependency(%q<jeweler>, [">= 0"])
103
- s.add_dependency(%q<rack>, [">= 0"])
104
- s.add_dependency(%q<sqlite3>, [">= 0"])
105
- s.add_dependency(%q<actionpack>, [">= 3.0.0"])
106
- s.add_dependency(%q<spreadsheet>, [">= 0.6.5.9"])
107
- s.add_dependency(%q<jeweler>, [">= 0"])
108
- end
109
- end
110
-
@@ -1,8 +0,0 @@
1
- require 'test_helper'
2
-
3
- class SpreadsheetOnRailsTest < ActiveSupport::TestCase
4
- # Replace this with your real tests.
5
- test "the truth" do
6
- assert true
7
- end
8
- end
data/test/test_helper.rb DELETED
@@ -1,3 +0,0 @@
1
- require 'rubygems'
2
- require 'active_support'
3
- require 'active_support/test_case'