surpass 0.0.3 → 0.0.4
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/LICENSE.txt +110 -0
- data/README.txt +21 -111
- data/Rakefile +10 -4
- data/bin/surpass-info +20 -0
- data/lib/formatting.rb +11 -0
- data/lib/row.rb +26 -2
- data/lib/style.rb +14 -0
- data/lib/surpass.rb +2 -2
- data/lib/workbook.rb +1 -1
- data/lib/worksheet.rb +4 -4
- metadata +8 -55
- data/examples/big-16mb.rb +0 -25
- data/examples/big-random-strings.rb +0 -28
- data/examples/blanks.rb +0 -34
- data/examples/col_width.rb +0 -16
- data/examples/dates.rb +0 -31
- data/examples/format.rb +0 -23
- data/examples/hello-world.rb +0 -9
- data/examples/image.rb +0 -10
- data/examples/merged.rb +0 -36
- data/examples/merged0.rb +0 -27
- data/examples/merged1.rb +0 -99
- data/examples/num_formats.rb +0 -55
- data/examples/numbers.rb +0 -24
- data/examples/outline.rb +0 -110
- data/examples/panes.rb +0 -48
- data/examples/protection.rb +0 -132
- data/examples/python.bmp +0 -0
- data/examples/row_styles.rb +0 -16
- data/examples/row_styles_empty.rb +0 -15
- data/examples/set_cell_and_range_style.rb +0 -12
- data/examples/wrapped-text.rb +0 -13
- data/examples/write_arrays.rb +0 -16
- data/examples/ws_props.rb +0 -80
- data/spec/biff_record_spec.rb +0 -268
- data/spec/cell_spec.rb +0 -56
- data/spec/data/random-strings.txt +0 -10000
- data/spec/document_spec.rb +0 -168
- data/spec/excel_formula_spec.rb +0 -0
- data/spec/formatting_spec.rb +0 -53
- data/spec/reference/P-0508-0000507647-3280-5298.xls +0 -0
- data/spec/reference/all-cell-styles.bin +0 -0
- data/spec/reference/all-number-formats.bin +0 -0
- data/spec/reference/all-styles.bin +0 -0
- data/spec/reference/mini.xls +0 -0
- data/spec/row_spec.rb +0 -19
- data/spec/spec_helper.rb +0 -10
- data/spec/style_spec.rb +0 -89
- data/spec/utilities_spec.rb +0 -57
- data/spec/workbook_spec.rb +0 -48
- data/spec/worksheet_spec.rb +0 -0
- data/stats/cloc.txt +0 -8
- data/stats/rcov.txt +0 -0
- data/stats/specdoc.txt +0 -158
- data/surpass-manual-0-0-3.pdf +0 -0
- data/surpass.gemspec +0 -34
- data/tasks/excel.rake +0 -6
- data/tasks/metrics.rake +0 -42
data/tasks/metrics.rake
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
require 'spec/rake/spectask'
|
|
2
|
-
|
|
3
|
-
task :metrics => "metrics:all"
|
|
4
|
-
|
|
5
|
-
namespace :metrics do
|
|
6
|
-
desc "Run all custom stats"
|
|
7
|
-
task :all => [:cloc, :clean_rcov]
|
|
8
|
-
|
|
9
|
-
desc "Run CLOC metrics and store in stats/cloc.txt"
|
|
10
|
-
task :cloc do
|
|
11
|
-
puts `cloc --no3 --report-file=stats/cloc.txt lib/`
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
desc "Run RCOV metrics and store in stats/rcov.txt"
|
|
15
|
-
Spec::Rake::SpecTask.new('rcov') do |t|
|
|
16
|
-
t.spec_files = FileList['spec/**/lib/*.rb']
|
|
17
|
-
t.spec_opts = ['--format', 'specdoc:stats/specdoc.txt']
|
|
18
|
-
t.out = 'stats/rcov.txt'
|
|
19
|
-
t.rcov = true
|
|
20
|
-
t.rcov_opts = ['--exclude', 'spec', '--text-report']
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
desc "clean non-rcov text from an rcov file"
|
|
24
|
-
task :clean_rcov => [:rcov] do |t|
|
|
25
|
-
array = File.readlines("stats/rcov.txt")
|
|
26
|
-
File.open("stats/rcov.txt", "w") do |f|
|
|
27
|
-
state = :new
|
|
28
|
-
array.each do |l|
|
|
29
|
-
case state
|
|
30
|
-
when :new
|
|
31
|
-
next unless l =~ /^\+--/
|
|
32
|
-
state = :rcov
|
|
33
|
-
f.write l
|
|
34
|
-
when :rcov
|
|
35
|
-
f.write l
|
|
36
|
-
else
|
|
37
|
-
raise "bad state #{state}"
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
end
|