xmlss 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ data.tar.gz: 5ce4967cef8f62fba51386d665ba269ce9bde84e
4
+ metadata.gz: 782fbabe9fad8c3d6238afa3f2fa1f0c564f2059
5
+ SHA512:
6
+ data.tar.gz: 9e1cc627062b961028b391750070b9a941ae1375da9c41a5f55de83b77c25a5f46bf05fdb1600a6a49a4bd70a15fa42a7a61c1c49dd65cfe0a723a8c6e5ef215
7
+ metadata.gz: e9c31c5aadda260804a981455625244845cd0c86cbf62c316285710a1ad333467b8ca05290557b9cbcd38bbdc429e8faf663573e014d2580e675ed4f9b0c485b
data/Gemfile CHANGED
@@ -2,7 +2,8 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
4
 
5
- gem 'rake'
6
- gem 'pry'
7
- gem "whysoslow"
8
- gem 'ruby-prof'
5
+ gem 'pry', "~> 0.9.0"
6
+
7
+ # Lock down gem version because it requires a newer version of ruby
8
+ gem 'ruby-prof', "~> 0.13.1"
9
+ gem 'whysoslow'
@@ -1,4 +1,4 @@
1
- Copyright (c) 2011-Present Kelly Redding
1
+ Copyright (c) 2011-Present Kelly Redding and Collin Redding
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -174,7 +174,7 @@ The XML Spreadsheet spec and format are legacy and may have limited support depe
174
174
 
175
175
  Add this line to your application's Gemfile:
176
176
 
177
- gem 'whysoslow'
177
+ gem 'xmlss'
178
178
 
179
179
  And then execute:
180
180
 
@@ -182,7 +182,7 @@ And then execute:
182
182
 
183
183
  Or install it yourself as:
184
184
 
185
- $ gem install whysoslow
185
+ $ gem install xmlss
186
186
 
187
187
  ## Contributing
188
188
 
@@ -0,0 +1,6 @@
1
+ # $ bundle exec ruby bench/bench.rb
2
+
3
+ $LOAD_PATH.unshift(File.expand_path("../..", __FILE__))
4
+ require 'bench/bench_runner'
5
+
6
+ XmlssBenchRunner.new(1000).run
@@ -1,5 +1,6 @@
1
1
  # $ bundle exec ruby bench/profiler.rb
2
2
 
3
+ $LOAD_PATH.unshift(File.expand_path("../..", __FILE__))
3
4
  require 'bench/profiler_runner'
4
5
 
5
6
  runner = XmlssProfilerRunner.new(ARGV[0] ? ARGV[0].to_i : 1000)
@@ -0,0 +1,8 @@
1
+ # $ bundle exec ruby examples/examples.rb
2
+
3
+ $LOAD_PATH.unshift(File.expand_path("../..", __FILE__))
4
+
5
+ require 'examples/simple'
6
+ require 'examples/layout'
7
+ require 'examples/text'
8
+ require 'examples/styles'
@@ -1,3 +1,3 @@
1
1
  module Xmlss
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -7,6 +7,8 @@ $LOAD_PATH.unshift(File.expand_path("../..", __FILE__))
7
7
  # require pry for debugging (`binding.pry`)
8
8
  require 'pry'
9
9
 
10
+ require 'test/support/factory'
11
+
10
12
  class Assert::Context
11
13
 
12
14
  def self.be_styled
@@ -21,3 +23,12 @@ class Assert::Context
21
23
  end
22
24
 
23
25
  end
26
+
27
+ # 1.8.7 backfills
28
+
29
+ # Array#sample
30
+ if !(a = Array.new).respond_to?(:sample) && a.respond_to?(:choice)
31
+ class Array
32
+ alias_method :sample, :choice
33
+ end
34
+ end
@@ -0,0 +1,6 @@
1
+ require 'assert/factory'
2
+
3
+ module Factory
4
+ extend Assert::Factory
5
+
6
+ end
@@ -6,11 +6,11 @@ require "xmlss/version"
6
6
  Gem::Specification.new do |gem|
7
7
  gem.name = "xmlss"
8
8
  gem.version = Xmlss::VERSION
9
- gem.authors = ["Kelly Redding"]
10
- gem.email = ["kelly@kellyredding.com"]
9
+ gem.authors = ["Kelly Redding", "Collin Redding"]
10
+ gem.email = ["kelly@kellyredding.com", "collin.redding@me.com"]
11
11
  gem.summary = %q{Generate spreadsheet docs for MS Excel using XML Spreedsheet}
12
12
  gem.description = %q{Generate spreadsheet docs for MS Excel using XML Spreedsheet}
13
- gem.homepage = "http://github.com/kelredd/xmlss"
13
+ gem.homepage = "http://github.com/redding/xmlss"
14
14
  gem.license = 'MIT'
15
15
 
16
16
  gem.files = `git ls-files`.split($/)
@@ -18,9 +18,9 @@ Gem::Specification.new do |gem|
18
18
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
19
  gem.require_paths = ["lib"]
20
20
 
21
- gem.add_development_dependency("assert", ["~> 2.0"])
21
+ gem.add_development_dependency("assert", ["~> 2.16.1"])
22
22
 
23
- gem.add_dependency("undies", ["~> 3.0"])
24
- gem.add_dependency("enumeration", ["~> 1.3"])
23
+ gem.add_dependency("undies", ["~> 3.1.0"])
24
+ gem.add_dependency("enumeration", ["~> 1.3.3"])
25
25
 
26
26
  end
metadata CHANGED
@@ -1,70 +1,51 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xmlss
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
5
- prerelease:
6
- segments:
7
- - 1
8
- - 0
9
- - 0
10
- version: 1.0.0
4
+ version: 1.0.1
11
5
  platform: ruby
12
6
  authors:
13
7
  - Kelly Redding
8
+ - Collin Redding
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2013-07-21 00:00:00 Z
13
+ date: 2016-06-18 00:00:00 Z
19
14
  dependencies:
20
15
  - !ruby/object:Gem::Dependency
21
16
  name: assert
22
17
  prerelease: false
23
18
  requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
19
  requirements:
26
20
  - - ~>
27
21
  - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 2
31
- - 0
32
- version: "2.0"
22
+ version: 2.16.1
33
23
  type: :development
34
24
  version_requirements: *id001
35
25
  - !ruby/object:Gem::Dependency
36
26
  name: undies
37
27
  prerelease: false
38
28
  requirement: &id002 !ruby/object:Gem::Requirement
39
- none: false
40
29
  requirements:
41
30
  - - ~>
42
31
  - !ruby/object:Gem::Version
43
- hash: 7
44
- segments:
45
- - 3
46
- - 0
47
- version: "3.0"
32
+ version: 3.1.0
48
33
  type: :runtime
49
34
  version_requirements: *id002
50
35
  - !ruby/object:Gem::Dependency
51
36
  name: enumeration
52
37
  prerelease: false
53
38
  requirement: &id003 !ruby/object:Gem::Requirement
54
- none: false
55
39
  requirements:
56
40
  - - ~>
57
41
  - !ruby/object:Gem::Version
58
- hash: 9
59
- segments:
60
- - 1
61
- - 3
62
- version: "1.3"
42
+ version: 1.3.3
63
43
  type: :runtime
64
44
  version_requirements: *id003
65
45
  description: Generate spreadsheet docs for MS Excel using XML Spreedsheet
66
46
  email:
67
47
  - kelly@kellyredding.com
48
+ - collin.redding@me.com
68
49
  executables: []
69
50
 
70
51
  extensions: []
@@ -74,13 +55,14 @@ extra_rdoc_files: []
74
55
  files:
75
56
  - .gitignore
76
57
  - Gemfile
77
- - LICENSE.txt
58
+ - LICENSE
78
59
  - README.md
79
- - Rakefile
60
+ - bench/bench.rb
80
61
  - bench/bench_runner.rb
81
62
  - bench/profiler.rb
82
63
  - bench/profiler_runner.rb
83
64
  - examples/example_workbook.rb
65
+ - examples/examples.rb
84
66
  - examples/layout.rb
85
67
  - examples/layout.xml
86
68
  - examples/simple.rb
@@ -106,6 +88,7 @@ files:
106
88
  - lib/xmlss/workbook.rb
107
89
  - lib/xmlss/writer.rb
108
90
  - test/helper.rb
91
+ - test/support/factory.rb
109
92
  - test/unit/element/cell_tests.rb
110
93
  - test/unit/element/column_tests.rb
111
94
  - test/unit/element/row_tests.rb
@@ -121,41 +104,35 @@ files:
121
104
  - test/unit/workbook_tests.rb
122
105
  - test/unit/writer_tests.rb
123
106
  - xmlss.gemspec
124
- homepage: http://github.com/kelredd/xmlss
107
+ homepage: http://github.com/redding/xmlss
125
108
  licenses:
126
109
  - MIT
110
+ metadata: {}
111
+
127
112
  post_install_message:
128
113
  rdoc_options: []
129
114
 
130
115
  require_paths:
131
116
  - lib
132
117
  required_ruby_version: !ruby/object:Gem::Requirement
133
- none: false
134
118
  requirements:
135
- - - ">="
119
+ - &id004
120
+ - ">="
136
121
  - !ruby/object:Gem::Version
137
- hash: 3
138
- segments:
139
- - 0
140
122
  version: "0"
141
123
  required_rubygems_version: !ruby/object:Gem::Requirement
142
- none: false
143
124
  requirements:
144
- - - ">="
145
- - !ruby/object:Gem::Version
146
- hash: 3
147
- segments:
148
- - 0
149
- version: "0"
125
+ - *id004
150
126
  requirements: []
151
127
 
152
128
  rubyforge_project:
153
- rubygems_version: 1.8.24
129
+ rubygems_version: 2.5.1
154
130
  signing_key:
155
- specification_version: 3
131
+ specification_version: 4
156
132
  summary: Generate spreadsheet docs for MS Excel using XML Spreedsheet
157
133
  test_files:
158
134
  - test/helper.rb
135
+ - test/support/factory.rb
159
136
  - test/unit/element/cell_tests.rb
160
137
  - test/unit/element/column_tests.rb
161
138
  - test/unit/element/row_tests.rb
data/Rakefile DELETED
@@ -1,43 +0,0 @@
1
- require "bundler/gem_tasks"
2
-
3
- namespace :bench do
4
-
5
- desc "Run the bench script."
6
- task :run do
7
- require 'bench/bench_runner'
8
- XmlssBenchRunner.new(1000).run
9
- end
10
-
11
- desc "Run the profiler on 1000 rows."
12
- task :profiler do
13
- require 'bench/profiler_runner'
14
-
15
- runner = XmlssProfilerRunner.new(1000)
16
- runner.print_flat(STDOUT, :min_percent => 1)
17
- end
18
-
19
- desc "Run the example workbook builds."
20
- task :examples do
21
- require 'examples/simple'
22
- require 'examples/layout'
23
- require 'examples/text'
24
- require 'examples/styles'
25
- end
26
-
27
- desc "Run all the tests, then the profiler, then the bench."
28
- task :all do
29
- Rake::Task['test'].invoke
30
- puts
31
- Rake::Task['bench:profiler'].invoke
32
- puts
33
- Rake::Task['bench:run'].invoke
34
- puts
35
- Rake::Task['bench:examples'].invoke
36
- end
37
-
38
- end
39
-
40
- task :bench do
41
- Rake::Task['bench:run'].invoke
42
- end
43
-