osheet 0.9.2 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -5,4 +5,4 @@ pkg/*
5
5
  .rvmrc
6
6
  .rbenv-version
7
7
  /tmp
8
- /examples/*.xls
8
+
data/Gemfile CHANGED
@@ -4,3 +4,4 @@ source "http://rubygems.org"
4
4
  gemspec
5
5
 
6
6
  gem 'rake', '~>0.9.2'
7
+ gem 'ruby-prof'
data/Gemfile.lock CHANGED
@@ -1,26 +1,26 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- osheet (0.9.2)
5
- enumeration (~> 1.2)
6
- xmlss (~> 0.2)
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.3.0)
12
- assert (0.6.0)
13
- assert-view (~> 0.3)
14
- assert-view (0.3.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 (~> 1.1)
17
- enumeration (1.2.1)
18
- nokogiri (1.4.7)
19
- rake (0.9.2)
20
- undies (1.1.0)
21
- xmlss (0.3.0)
22
- enumeration (~> 1.2)
23
- nokogiri (~> 1.4.0)
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 and beyond, Kelly Redding (mailto:kelly@kelredd.com)
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
data/bench/profiler.rb ADDED
@@ -0,0 +1,6 @@
1
+ # $ bundle exec ruby bench/profiler.rb
2
+
3
+ require 'bench/profiler_runner'
4
+
5
+ runner = OsheetProfilerRunner.new(ARGV[0] ? ARGV[0].to_i : 1000)
6
+ runner.print_flat(STDOUT, :min_percent => 1)