jruby-poi 0.7.2 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ rvm:
2
+ - jruby
data/Gemfile CHANGED
@@ -1,6 +1,9 @@
1
- source 'http://rubygems.org'
1
+ source "http://rubygems.org"
2
2
 
3
+ # Add dependencies to develop your gem here.
4
+ # Include everything needed to run rake, tests, features, etc.
3
5
  group :development do
4
- gem 'rspec'
5
- gem 'ruby-debug'
6
+ gem "rspec", ">= 2.5.0"
7
+ gem "jeweler", ">= 1.6.0"
8
+ gem "rcov", ">= 0"
6
9
  end
@@ -1,25 +1,29 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- columnize (0.3.2)
5
4
  diff-lcs (1.1.2)
6
- rspec (2.5.0)
7
- rspec-core (~> 2.5.0)
8
- rspec-expectations (~> 2.5.0)
9
- rspec-mocks (~> 2.5.0)
10
- rspec-core (2.5.1)
11
- rspec-expectations (2.5.0)
5
+ git (1.2.5)
6
+ jeweler (1.6.0)
7
+ bundler (~> 1.0.0)
8
+ git (>= 1.2.5)
9
+ rake
10
+ rake (0.9.0)
11
+ rcov (0.9.9)
12
+ rcov (0.9.9-java)
13
+ rspec (2.6.0)
14
+ rspec-core (~> 2.6.0)
15
+ rspec-expectations (~> 2.6.0)
16
+ rspec-mocks (~> 2.6.0)
17
+ rspec-core (2.6.2)
18
+ rspec-expectations (2.6.0)
12
19
  diff-lcs (~> 1.1.2)
13
- rspec-mocks (2.5.0)
14
- ruby-debug (0.10.4)
15
- columnize (>= 0.1)
16
- ruby-debug-base (~> 0.10.4.0)
17
- ruby-debug-base (0.10.4-java)
20
+ rspec-mocks (2.6.0)
18
21
 
19
22
  PLATFORMS
20
23
  java
21
24
  ruby
22
25
 
23
26
  DEPENDENCIES
24
- rspec
25
- ruby-debug
27
+ jeweler (>= 1.6.0)
28
+ rcov
29
+ rspec (>= 2.5.0)
data/Rakefile CHANGED
@@ -1,36 +1,35 @@
1
+ require 'rubygems'
2
+
3
+ require 'bundler'
1
4
  begin
2
- require 'jeweler'
3
-
4
- Jeweler::Tasks.new do |gemspec|
5
- gemspec.name = "jruby-poi"
6
- gemspec.summary = "Apache POI class library for jruby"
7
- gemspec.description = "A rubyesque library for manipulating spreadsheets and other document types for jruby, using Apache POI."
8
- gemspec.email = ["sdeming@makefile.com", "jacaetevha@gmail.com"]
9
- gemspec.homepage = "http://github.com/sdeming/jruby-poi"
10
- gemspec.authors = ["Scott Deming", "Jason Rogers"]
11
- end
12
- rescue LoadError
13
- puts "Jeweler not available. Install it with: gem install jeweler"
5
+ Bundler.setup(:default, :development)
6
+ rescue Bundler::BundlerError => e
7
+ $stderr.puts e.message
8
+ $stderr.puts "Run `bundle install` to install missing gems"
9
+ exit e.status_code
14
10
  end
15
11
 
16
- begin
17
- require 'rspec/core/rake_task'
18
- task :default => :spec
12
+ require 'rake'
13
+ require 'jeweler'
14
+ require 'rspec/core'
15
+ require 'rspec/core/rake_task'
19
16
 
20
- desc "Run all examples"
21
- RSpec::Core::RakeTask.new do |t|
22
- t.pattern = 'specs/**/*.rb'
23
- t.rspec_opts = ['-c']
24
- end
17
+ # gemify
18
+ Jeweler::Tasks.new do |gemspec|
19
+ gemspec.name = "jruby-poi"
20
+ gemspec.summary = "Apache POI class library for jruby"
21
+ gemspec.description = "A rubyesque library for manipulating spreadsheets and other document types for jruby, using Apache POI."
22
+ gemspec.license = "Apache"
23
+ gemspec.email = ["sdeming@makefile.com", "jacaetevha@gmail.com"]
24
+ gemspec.homepage = "http://github.com/kameeoze/jruby-poi"
25
+ gemspec.authors = ["Scott Deming", "Jason Rogers"]
26
+ end
27
+ Jeweler::RubygemsDotOrgTasks.new
25
28
 
26
- desc "Run all examples with RCov"
27
- RSpec::Core::RakeTask.new(:coverage) do |t|
28
- t.pattern = 'specs/**/*.rb'
29
- t.rspec_opts = ['-c']
30
- t.rcov = true
31
- t.rcov_opts = ['--include', '/lib/', '--exclude', '/gems/,/^specs/,/^.eval.$/']
32
- end
33
- rescue
34
- puts $!.message
35
- puts "RCov not available. Install it with: gem install rcov (--no-rdoc --no-ri)"
29
+ # test
30
+ RSpec::Core::RakeTask.new(:spec)
31
+ RSpec::Core::RakeTask.new(:rcov) do |spec|
32
+ spec.rcov = true
36
33
  end
34
+
35
+ task :default => :spec
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.2
1
+ 0.8.2
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{jruby-poi}
8
- s.version = "0.7.2"
8
+ s.version = "0.8.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Scott Deming", "Jason Rogers"]
12
- s.date = %q{2011-03-31}
12
+ s.date = %q{2011-05-22}
13
13
  s.description = %q{A rubyesque library for manipulating spreadsheets and other document types for jruby, using Apache POI.}
14
14
  s.email = ["sdeming@makefile.com", "jacaetevha@gmail.com"]
15
15
  s.executables = ["autospec", "htmldiff", "ldiff", "rdebug", "rspec"]
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
18
18
  "README.markdown"
19
19
  ]
20
20
  s.files = [
21
+ ".travis.yml",
21
22
  "Gemfile",
22
23
  "Gemfile.lock",
23
24
  "LICENSE",
@@ -34,12 +35,11 @@ Gem::Specification.new do |s|
34
35
  "lib/ooxml-lib/dom4j-1.6.1.jar",
35
36
  "lib/ooxml-lib/geronimo-stax-api_1.0_spec-1.0.jar",
36
37
  "lib/ooxml-lib/xmlbeans-2.3.0.jar",
37
- "lib/poi-3.6-20091214.jar",
38
- "lib/poi-contrib-3.6-20091214.jar",
39
- "lib/poi-examples-3.6-20091214.jar",
40
- "lib/poi-ooxml-3.6-20091214.jar",
41
- "lib/poi-ooxml-schemas-3.6-20091214.jar",
42
- "lib/poi-scratchpad-3.6-20091214.jar",
38
+ "lib/poi-3.7-20101029.jar",
39
+ "lib/poi-examples-3.7-20101029.jar",
40
+ "lib/poi-ooxml-3.7-20101029.jar",
41
+ "lib/poi-ooxml-schemas-3.7-20101029.jar",
42
+ "lib/poi-scratchpad-3.7-20101029.jar",
43
43
  "lib/poi.rb",
44
44
  "lib/poi/workbook.rb",
45
45
  "lib/poi/workbook/area.rb",
@@ -48,22 +48,23 @@ Gem::Specification.new do |s|
48
48
  "lib/poi/workbook/row.rb",
49
49
  "lib/poi/workbook/workbook.rb",
50
50
  "lib/poi/workbook/worksheet.rb",
51
- "spec_debug.sh",
52
- "specs/data/simple_with_picture.ods",
53
- "specs/data/simple_with_picture.xls",
54
- "specs/data/spreadsheet.ods",
55
- "specs/data/timesheet.xlsx",
56
- "specs/data/various_samples.xlsx",
57
- "specs/facade_spec.rb",
58
- "specs/io_spec.rb",
59
- "specs/spec_helper.rb",
60
- "specs/support/java/jrubypoi/MockOutputStream.java",
61
- "specs/support/java/support.jar",
62
- "specs/support/matchers/cell_matcher.rb",
63
- "specs/workbook_spec.rb",
64
- "specs/writing_spec.rb"
51
+ "spec/data/simple_with_picture.ods",
52
+ "spec/data/simple_with_picture.xls",
53
+ "spec/data/spreadsheet.ods",
54
+ "spec/data/timesheet.xlsx",
55
+ "spec/data/various_samples.xlsx",
56
+ "spec/facade_spec.rb",
57
+ "spec/io_spec.rb",
58
+ "spec/spec_helper.rb",
59
+ "spec/support/java/jrubypoi/MockOutputStream.java",
60
+ "spec/support/java/support.jar",
61
+ "spec/support/matchers/cell_matcher.rb",
62
+ "spec/workbook_spec.rb",
63
+ "spec/writing_spec.rb",
64
+ "spec_debug.sh"
65
65
  ]
66
- s.homepage = %q{http://github.com/sdeming/jruby-poi}
66
+ s.homepage = %q{http://github.com/kameeoze/jruby-poi}
67
+ s.licenses = ["Apache"]
67
68
  s.require_paths = ["lib"]
68
69
  s.rubygems_version = %q{1.5.1}
69
70
  s.summary = %q{Apache POI class library for jruby}
@@ -72,15 +73,18 @@ Gem::Specification.new do |s|
72
73
  s.specification_version = 3
73
74
 
74
75
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
75
- s.add_development_dependency(%q<rspec>, [">= 0"])
76
- s.add_development_dependency(%q<ruby-debug>, [">= 0"])
76
+ s.add_development_dependency(%q<rspec>, [">= 2.5.0"])
77
+ s.add_development_dependency(%q<jeweler>, [">= 1.6.0"])
78
+ s.add_development_dependency(%q<rcov>, [">= 0"])
77
79
  else
78
- s.add_dependency(%q<rspec>, [">= 0"])
79
- s.add_dependency(%q<ruby-debug>, [">= 0"])
80
+ s.add_dependency(%q<rspec>, [">= 2.5.0"])
81
+ s.add_dependency(%q<jeweler>, [">= 1.6.0"])
82
+ s.add_dependency(%q<rcov>, [">= 0"])
80
83
  end
81
84
  else
82
- s.add_dependency(%q<rspec>, [">= 0"])
83
- s.add_dependency(%q<ruby-debug>, [">= 0"])
85
+ s.add_dependency(%q<rspec>, [">= 2.5.0"])
86
+ s.add_dependency(%q<jeweler>, [">= 1.6.0"])
87
+ s.add_dependency(%q<rcov>, [">= 0"])
84
88
  end
85
89
  end
86
90
 
data/lib/poi.rb CHANGED
@@ -2,13 +2,14 @@ JRUBY_POI_LIB_PATH=File.expand_path(File.dirname(__FILE__))
2
2
 
3
3
  # Java
4
4
  require 'java'
5
- require File.join(JRUBY_POI_LIB_PATH, 'poi-3.6-20091214.jar')
6
- require File.join(JRUBY_POI_LIB_PATH, 'poi-ooxml-3.6-20091214.jar')
7
- require File.join(JRUBY_POI_LIB_PATH, 'poi-ooxml-schemas-3.6-20091214.jar')
8
- require File.join(JRUBY_POI_LIB_PATH, 'poi-scratchpad-3.6-20091214.jar')
9
- require File.join(JRUBY_POI_LIB_PATH, 'poi-contrib-3.6-20091214.jar')
5
+ require File.join(JRUBY_POI_LIB_PATH, 'poi-3.7-20101029.jar')
6
+ require File.join(JRUBY_POI_LIB_PATH, 'poi-ooxml-3.7-20101029.jar')
7
+ require File.join(JRUBY_POI_LIB_PATH, 'poi-ooxml-schemas-3.7-20101029.jar')
8
+ require File.join(JRUBY_POI_LIB_PATH, 'poi-scratchpad-3.7-20101029.jar')
10
9
  require File.join(JRUBY_POI_LIB_PATH, 'ooxml-lib', 'xmlbeans-2.3.0.jar')
11
10
  require File.join(JRUBY_POI_LIB_PATH, 'ooxml-lib', 'dom4j-1.6.1.jar')
11
+ require File.join(JRUBY_POI_LIB_PATH, 'ooxml-lib', 'geronimo-stax-api_1.0_spec-1.0.jar')
12
+
12
13
 
13
14
  # Ruby
14
15
  require File.join(JRUBY_POI_LIB_PATH, 'poi', 'workbook')
File without changes
File without changes
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), 'spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe "POI.Facade" do
4
4
  it "should create specialized methods for boolean methods, getters, and setters" do
@@ -45,4 +45,4 @@ describe "POI.Facade" do
45
45
  cell.respond_to?(:cell_style).should be_true
46
46
  cell.respond_to?(:cell_style=).should be_true
47
47
  end
48
- end
48
+ end
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), 'spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe POI::Workbook do
4
4
  before :each do
@@ -35,7 +35,7 @@ describe POI::Workbook do
35
35
  book.should be_kind_of POI::Workbook
36
36
  end
37
37
 
38
- it "should read an ods file" do
38
+ it "should read an ods file", :unimplemented => true do
39
39
  name = TestDataFile.expand_path("spreadsheet.ods")
40
40
  book = nil
41
41
  lambda { book = POI::Workbook.open(name) }.should_not raise_exception
@@ -1,5 +1,11 @@
1
- require 'rspec'
2
- require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'poi'))
1
+ require 'spec_helper'
2
+
3
+ RSpec.configure do |c|
4
+ c.filter_run_excluding :unimplemented => true
5
+ end
6
+
7
+ require File.expand_path('../lib/poi', File.dirname(__FILE__))
8
+
3
9
  Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|f| require f}
4
10
  require File.join(File.dirname(__FILE__), "support", "java", "support.jar")
5
11
 
@@ -8,6 +14,3 @@ class TestDataFile
8
14
  File.expand_path(File.join(File.dirname(__FILE__), 'data', name))
9
15
  end
10
16
  end
11
-
12
- RSpec.configure do |config|
13
- end
File without changes
@@ -1,4 +1,5 @@
1
- require File.join(File.dirname(__FILE__), 'spec_helper')
1
+ require 'spec_helper'
2
+
2
3
  require 'date'
3
4
  require 'stringio'
4
5
 
@@ -1,4 +1,5 @@
1
- require File.join(File.dirname(__FILE__), 'spec_helper')
1
+ require 'spec_helper'
2
+
2
3
  require 'date'
3
4
  require 'stringio'
4
5
 
@@ -10,7 +11,7 @@ describe "writing Workbooks" do
10
11
  end
11
12
 
12
13
  it "should create a new workbook and write something to it" do
13
- name = "specs/data/timesheet-#{Time.now.strftime('%Y%m%d%H%M%S%s')}.xlsx"
14
+ name = "spec/data/timesheet-#{Time.now.strftime('%Y%m%d%H%M%S%s')}.xlsx"
14
15
  create_timesheet_spreadsheet(name)
15
16
  book = POI::Workbook.open(name)
16
17
  book.worksheets.size.should == 1
@@ -21,7 +22,7 @@ describe "writing Workbooks" do
21
22
  FileUtils.rm_f name
22
23
  end
23
24
 
24
- def create_timesheet_spreadsheet name='specs/data/timesheet.xlsx'
25
+ def create_timesheet_spreadsheet name='spec/data/timesheet.xlsx'
25
26
  titles = ["Person", "ID", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun", "Total\nHrs", "Overtime\nHrs", "Regular\nHrs"]
26
27
  sample_data = [
27
28
  ["Yegor Kozlov", "YK", 5.0, 8.0, 10.0, 5.0, 5.0, 7.0, 6.0],
@@ -142,4 +143,4 @@ describe "writing Workbooks" do
142
143
  book.save
143
144
  File.exist?(name).should == true
144
145
  end
145
- end
146
+ end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: jruby-poi
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.7.2
5
+ version: 0.8.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Scott Deming
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2011-04-01 00:00:00 -04:00
14
+ date: 2011-05-22 00:00:00 -04:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
@@ -21,21 +21,32 @@ dependencies:
21
21
  requirements:
22
22
  - - ">="
23
23
  - !ruby/object:Gem::Version
24
- version: "0"
24
+ version: 2.5.0
25
25
  requirement: *id001
26
26
  prerelease: false
27
27
  type: :development
28
28
  - !ruby/object:Gem::Dependency
29
- name: ruby-debug
29
+ name: jeweler
30
30
  version_requirements: &id002 !ruby/object:Gem::Requirement
31
31
  none: false
32
32
  requirements:
33
33
  - - ">="
34
34
  - !ruby/object:Gem::Version
35
- version: "0"
35
+ version: 1.6.0
36
36
  requirement: *id002
37
37
  prerelease: false
38
38
  type: :development
39
+ - !ruby/object:Gem::Dependency
40
+ name: rcov
41
+ version_requirements: &id003 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: "0"
47
+ requirement: *id003
48
+ prerelease: false
49
+ type: :development
39
50
  description: A rubyesque library for manipulating spreadsheets and other document types for jruby, using Apache POI.
40
51
  email:
41
52
  - sdeming@makefile.com
@@ -52,6 +63,7 @@ extra_rdoc_files:
52
63
  - LICENSE
53
64
  - README.markdown
54
65
  files:
66
+ - .travis.yml
55
67
  - Gemfile
56
68
  - Gemfile.lock
57
69
  - LICENSE
@@ -68,12 +80,11 @@ files:
68
80
  - lib/ooxml-lib/dom4j-1.6.1.jar
69
81
  - lib/ooxml-lib/geronimo-stax-api_1.0_spec-1.0.jar
70
82
  - lib/ooxml-lib/xmlbeans-2.3.0.jar
71
- - lib/poi-3.6-20091214.jar
72
- - lib/poi-contrib-3.6-20091214.jar
73
- - lib/poi-examples-3.6-20091214.jar
74
- - lib/poi-ooxml-3.6-20091214.jar
75
- - lib/poi-ooxml-schemas-3.6-20091214.jar
76
- - lib/poi-scratchpad-3.6-20091214.jar
83
+ - lib/poi-3.7-20101029.jar
84
+ - lib/poi-examples-3.7-20101029.jar
85
+ - lib/poi-ooxml-3.7-20101029.jar
86
+ - lib/poi-ooxml-schemas-3.7-20101029.jar
87
+ - lib/poi-scratchpad-3.7-20101029.jar
77
88
  - lib/poi.rb
78
89
  - lib/poi/workbook.rb
79
90
  - lib/poi/workbook/area.rb
@@ -82,24 +93,24 @@ files:
82
93
  - lib/poi/workbook/row.rb
83
94
  - lib/poi/workbook/workbook.rb
84
95
  - lib/poi/workbook/worksheet.rb
96
+ - spec/data/simple_with_picture.ods
97
+ - spec/data/simple_with_picture.xls
98
+ - spec/data/spreadsheet.ods
99
+ - spec/data/timesheet.xlsx
100
+ - spec/data/various_samples.xlsx
101
+ - spec/facade_spec.rb
102
+ - spec/io_spec.rb
103
+ - spec/spec_helper.rb
104
+ - spec/support/java/jrubypoi/MockOutputStream.java
105
+ - spec/support/java/support.jar
106
+ - spec/support/matchers/cell_matcher.rb
107
+ - spec/workbook_spec.rb
108
+ - spec/writing_spec.rb
85
109
  - spec_debug.sh
86
- - specs/data/simple_with_picture.ods
87
- - specs/data/simple_with_picture.xls
88
- - specs/data/spreadsheet.ods
89
- - specs/data/timesheet.xlsx
90
- - specs/data/various_samples.xlsx
91
- - specs/facade_spec.rb
92
- - specs/io_spec.rb
93
- - specs/spec_helper.rb
94
- - specs/support/java/jrubypoi/MockOutputStream.java
95
- - specs/support/java/support.jar
96
- - specs/support/matchers/cell_matcher.rb
97
- - specs/workbook_spec.rb
98
- - specs/writing_spec.rb
99
110
  has_rdoc: true
100
- homepage: http://github.com/sdeming/jruby-poi
101
- licenses: []
102
-
111
+ homepage: http://github.com/kameeoze/jruby-poi
112
+ licenses:
113
+ - Apache
103
114
  post_install_message:
104
115
  rdoc_options: []
105
116
 
@@ -110,6 +121,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
110
121
  requirements:
111
122
  - - ">="
112
123
  - !ruby/object:Gem::Version
124
+ hash: 2
125
+ segments:
126
+ - 0
113
127
  version: "0"
114
128
  required_rubygems_version: !ruby/object:Gem::Requirement
115
129
  none: false