osheet 0.9.2 → 0.10.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.
- data/.gitignore +1 -1
- data/Gemfile +1 -0
- data/Gemfile.lock +16 -15
- data/README.rdoc +1 -1
- data/Rakefile +25 -0
- data/bench/profiler.rb +6 -0
- data/bench/profiler_1000.xls +17015 -0
- data/bench/profiler_runner.rb +39 -0
- data/examples/basic.rb +5 -1
- data/examples/basic.xls +1 -0
- data/examples/basic_with_templates.rb +4 -1
- data/examples/basic_with_templates.xls +93 -0
- data/examples/formats.rb +5 -1
- data/examples/formats.xls +768 -0
- data/examples/formula.rb +7 -3
- data/examples/formula.xls +36 -0
- data/examples/styles.rb +5 -1
- data/examples/styles.xls +343 -0
- data/examples/trivial.rb +5 -1
- data/examples/trivial.xls +18 -0
- data/lib/osheet/version.rb +1 -1
- data/lib/osheet/xmlss_writer/base.rb +27 -30
- data/lib/osheet/xmlss_writer/elements.rb +28 -42
- data/lib/osheet/xmlss_writer/styles.rb +59 -28
- data/osheet.gemspec +4 -4
- data/test/helper.rb +9 -0
- data/test/xmlss_writer/base_test.rb +14 -12
- data/test/xmlss_writer/elements_test.rb +110 -111
- data/test/xmlss_writer/styles_test.rb +202 -98
- metadata +23 -14
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,26 +1,26 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
osheet (0.
|
5
|
-
enumeration (~> 1.
|
6
|
-
xmlss (~> 0.
|
4
|
+
osheet (0.10.0)
|
5
|
+
enumeration (~> 1.3)
|
6
|
+
xmlss (~> 0.4)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: http://rubygems.org/
|
10
10
|
specs:
|
11
|
-
ansi (1.
|
12
|
-
assert (0.
|
13
|
-
assert-view (~> 0.
|
14
|
-
assert-view (0.
|
11
|
+
ansi (1.4.1)
|
12
|
+
assert (0.7.3)
|
13
|
+
assert-view (~> 0.5)
|
14
|
+
assert-view (0.5.0)
|
15
15
|
ansi (~> 1.3)
|
16
|
-
undies (~>
|
17
|
-
enumeration (1.
|
18
|
-
|
19
|
-
|
20
|
-
undies (
|
21
|
-
xmlss (0.
|
22
|
-
enumeration (~> 1.
|
23
|
-
|
16
|
+
undies (~> 2.0)
|
17
|
+
enumeration (1.3.1)
|
18
|
+
rake (0.9.2.2)
|
19
|
+
ruby-prof (0.10.8)
|
20
|
+
undies (2.1.0)
|
21
|
+
xmlss (0.4.0)
|
22
|
+
enumeration (~> 1.3)
|
23
|
+
undies (~> 2.1)
|
24
24
|
|
25
25
|
PLATFORMS
|
26
26
|
ruby
|
@@ -30,3 +30,4 @@ DEPENDENCIES
|
|
30
30
|
bundler (~> 1.0)
|
31
31
|
osheet!
|
32
32
|
rake (~> 0.9.2)
|
33
|
+
ruby-prof
|
data/README.rdoc
CHANGED
@@ -106,7 +106,7 @@ I've add a few examples to ./examples. Please refer first to the API then to th
|
|
106
106
|
|
107
107
|
== License
|
108
108
|
|
109
|
-
Copyright (c) 2010
|
109
|
+
Copyright (c) 2010-Present, Kelly Redding (mailto:kelly@kellyredding.com)
|
110
110
|
|
111
111
|
Permission is hereby granted, free of charge, to any person
|
112
112
|
obtaining a copy of this software and associated documentation
|
data/Rakefile
CHANGED
@@ -5,3 +5,28 @@ require 'bundler'
|
|
5
5
|
Bundler::GemHelper.install_tasks
|
6
6
|
|
7
7
|
task :default => :build
|
8
|
+
|
9
|
+
desc "Run the example workbook builds."
|
10
|
+
task :run_examples do
|
11
|
+
require 'examples/trivial'
|
12
|
+
require 'examples/basic'
|
13
|
+
require 'examples/basic_with_templates'
|
14
|
+
require 'examples/formats'
|
15
|
+
require 'examples/formula'
|
16
|
+
require 'examples/styles'
|
17
|
+
end
|
18
|
+
|
19
|
+
desc "Run the profiler on 1000 rows."
|
20
|
+
task :run_profiler do
|
21
|
+
require 'bench/profiler_runner'
|
22
|
+
|
23
|
+
runner = OsheetProfilerRunner.new(1000)
|
24
|
+
runner.print_flat(STDOUT, :min_percent => 3)
|
25
|
+
end
|
26
|
+
|
27
|
+
desc "Run all the tests, then the example builds, then the profiler."
|
28
|
+
task :run_all do
|
29
|
+
Rake::Task['test'].invoke
|
30
|
+
Rake::Task['run_examples'].invoke
|
31
|
+
Rake::Task['run_profiler'].invoke
|
32
|
+
end
|