xmlss 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/test/xmlss_test.rb CHANGED
@@ -1,29 +1,31 @@
1
- require "test/helper"
1
+ require "assert"
2
2
 
3
- class XmlssTest < Test::Unit::TestCase
3
+ class XmlssTest < Assert::Context
4
+ desc "Xmlss helpers"
5
+ subject { Xmlss }
4
6
 
5
- context "Xmlss helpers" do
6
- should "be provided" do
7
- assert_respond_to Xmlss, :classify
8
- assert_respond_to Xmlss, :xmlify
9
- end
7
+ should "be provided" do
8
+ assert_respond_to :classify, subject
9
+ assert_respond_to :xmlify, subject
10
+ end
10
11
 
11
- should "classify underscored strings" do
12
- assert_nothing_raised do
13
- subject.send(:classify, 'poo')
14
- end
15
- assert_equal "Poo", subject.send(:classify, 'poo')
16
- assert_equal "MorePoo", subject.send(:classify, 'more_poo')
12
+ should "classify underscored strings" do
13
+ assert_nothing_raised do
14
+ subject.send(:classify, 'poo')
17
15
  end
16
+ assert_equal "Poo", subject.send(:classify, 'poo')
17
+ assert_equal "MorePoo", subject.send(:classify, 'more_poo')
18
+ end
18
19
 
19
- should "filter values for use in XML" do
20
- assert_nothing_raised do
21
- subject.send(:xmlify, 'poo')
22
- end
23
- assert_equal 1, subject.send(:xmlify, true)
24
- assert_equal nil, subject.send(:xmlify, false)
25
- assert_equal nil, subject.send(:xmlify, "")
26
- assert_equal "poo", subject.send(:xmlify, 'poo')
20
+ should "filter values for use in XML" do
21
+ assert_nothing_raised do
22
+ subject.send(:xmlify, 'poo')
27
23
  end
24
+
25
+ assert_equal 1, subject.send(:xmlify, true)
26
+ assert_equal nil, subject.send(:xmlify, false)
27
+ assert_equal nil, subject.send(:xmlify, "")
28
+ assert_equal "poo", subject.send(:xmlify, 'poo')
28
29
  end
30
+
29
31
  end
data/xmlss.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.require_paths = ["lib"]
19
19
 
20
20
  s.add_development_dependency("bundler", ["~> 1.0"])
21
- s.add_development_dependency("test-belt", ["= 0.2.1"])
21
+ s.add_development_dependency("assert", ["~> 0.3"])
22
22
  s.add_dependency("nokogiri", ["~> 1.4.0"])
23
- s.add_dependency("enumeration", ["~>1.1.0"])
23
+ s.add_dependency("enumeration", ["~> 1.2"])
24
24
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xmlss
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
5
- prerelease: false
4
+ hash: 21
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kelly Redding
@@ -15,12 +15,11 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-19 00:00:00 -05:00
19
- default_executable:
18
+ date: 2011-08-24 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
- name: bundler
23
21
  prerelease: false
22
+ type: :development
24
23
  requirement: &id001 !ruby/object:Gem::Requirement
25
24
  none: false
26
25
  requirements:
@@ -31,27 +30,26 @@ dependencies:
31
30
  - 1
32
31
  - 0
33
32
  version: "1.0"
34
- type: :development
33
+ name: bundler
35
34
  version_requirements: *id001
36
35
  - !ruby/object:Gem::Dependency
37
- name: test-belt
38
36
  prerelease: false
37
+ type: :development
39
38
  requirement: &id002 !ruby/object:Gem::Requirement
40
39
  none: false
41
40
  requirements:
42
- - - "="
41
+ - - ~>
43
42
  - !ruby/object:Gem::Version
44
- hash: 21
43
+ hash: 13
45
44
  segments:
46
45
  - 0
47
- - 2
48
- - 1
49
- version: 0.2.1
50
- type: :development
46
+ - 3
47
+ version: "0.3"
48
+ name: assert
51
49
  version_requirements: *id002
52
50
  - !ruby/object:Gem::Dependency
53
- name: nokogiri
54
51
  prerelease: false
52
+ type: :runtime
55
53
  requirement: &id003 !ruby/object:Gem::Requirement
56
54
  none: false
57
55
  requirements:
@@ -63,23 +61,22 @@ dependencies:
63
61
  - 4
64
62
  - 0
65
63
  version: 1.4.0
66
- type: :runtime
64
+ name: nokogiri
67
65
  version_requirements: *id003
68
66
  - !ruby/object:Gem::Dependency
69
- name: enumeration
70
67
  prerelease: false
68
+ type: :runtime
71
69
  requirement: &id004 !ruby/object:Gem::Requirement
72
70
  none: false
73
71
  requirements:
74
72
  - - ~>
75
73
  - !ruby/object:Gem::Version
76
- hash: 19
74
+ hash: 11
77
75
  segments:
78
76
  - 1
79
- - 1
80
- - 0
81
- version: 1.1.0
82
- type: :runtime
77
+ - 2
78
+ version: "1.2"
79
+ name: enumeration
83
80
  version_requirements: *id004
84
81
  description: This gem provides an api for constructing spreadsheet data and then uses that data to generate xml that can be interpreted by MS Excel. The xml conforms to the XML Spreadsheet spec (http://msdn.microsoft.com/en-us/library/aa140066(office.10).aspx).
85
82
  email:
@@ -122,8 +119,8 @@ files:
122
119
  - test/cell_test.rb
123
120
  - test/column_test.rb
124
121
  - test/data_test.rb
125
- - test/env.rb
126
122
  - test/helper.rb
123
+ - test/irb.rb
127
124
  - test/item_set_test.rb
128
125
  - test/row_test.rb
129
126
  - test/style/alignment_test.rb
@@ -140,7 +137,6 @@ files:
140
137
  - test/xml_test.rb
141
138
  - test/xmlss_test.rb
142
139
  - xmlss.gemspec
143
- has_rdoc: true
144
140
  homepage: http://github.com/kelredd/xmlss
145
141
  licenses: []
146
142
 
@@ -170,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
166
  requirements: []
171
167
 
172
168
  rubyforge_project:
173
- rubygems_version: 1.3.7
169
+ rubygems_version: 1.8.8
174
170
  signing_key:
175
171
  specification_version: 3
176
172
  summary: Generate spreadsheet docs for MS Excel using XML Spreedsheet
@@ -178,8 +174,8 @@ test_files:
178
174
  - test/cell_test.rb
179
175
  - test/column_test.rb
180
176
  - test/data_test.rb
181
- - test/env.rb
182
177
  - test/helper.rb
178
+ - test/irb.rb
183
179
  - test/item_set_test.rb
184
180
  - test/row_test.rb
185
181
  - test/style/alignment_test.rb
data/test/env.rb DELETED
@@ -1,10 +0,0 @@
1
- # Add test and lib paths to the $LOAD_PATH
2
- [ File.dirname(__FILE__),
3
- File.join(File.dirname(__FILE__), '..', 'lib')
4
- ].each do |path|
5
- full_path = File.expand_path(path)
6
- $LOAD_PATH.unshift(full_path) unless $LOAD_PATH.include?(full_path)
7
- end
8
-
9
- require 'xmlss'
10
-