Skip to content

Commit ade4265

Browse files
committed
[skip] Updated README and gemspec (3m)
1 parent 7c71989 commit ade4265

3 files changed

Lines changed: 30 additions & 25 deletions

File tree

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# .travis.yml
22
language: ruby
33
rvm:
4-
- 2.0.0
4+
- 2.3.0
55
script:
6-
- bundle exec rake test
6+
- bundle exec rake spec

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# OpenXml::Docx [![Code Climate](https://codeclimate.com/github/openxml/openxml-docx.png)](https://codeclimate.com/github/openxml/openxml-docx)
1+
# OpenXml::Docx
2+
3+
[![Gem Version](https://badge.fury.io/rb/openxml-docx.svg)](https://rubygems.org/gems/openxml-docx)
4+
[![Code Climate](https://codeclimate.com/github/openxml/openxml-docx.svg)](https://codeclimate.com/github/openxml/openxml-docx)
5+
[![Build Status](https://travis-ci.org/openxml/openxml-docx.svg)](https://travis-ci.org/openxml/openxml-docx)
26

37
OpenXml::Docx is a gem for creating .docx (Office Open XML) files. It's designed to validate _before_ the document is generated, so (hopefully) any errors are caught prior to opening the file using software that can handle OOXML (like Microsoft Word, Apache Open Office, Google Docs, etc).
48

openxml-docx.gemspec

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,33 @@
1-
# -*- encoding: utf-8 -*-
1+
# coding: utf-8
22
lib = File.expand_path("../lib", __FILE__)
33
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
44
require "openxml/docx/version"
55

6-
Gem::Specification.new do |gem|
7-
gem.name = "openxml-docx"
8-
gem.version = OpenXml::Docx::VERSION
9-
gem.authors = ["Gene Doyel"]
10-
gem.email = ["genedoyel@gmail.com"]
6+
Gem::Specification.new do |spec|
7+
spec.name = "openxml-docx"
8+
spec.version = OpenXml::Docx::VERSION
9+
spec.authors = ["Gene Doyel"]
10+
spec.email = ["genedoyel@gmail.com"]
1111

12-
gem.description = %q{Create Microsoft Word (.docx) files.}
13-
gem.summary = %q{Using a simple API, create docx files programmatically, including bullet points, titles, headings, page breaks and tables!}
14-
gem.license = "MIT"
15-
gem.homepage = "https://github.com/openxml/openxml-docx"
12+
spec.description = %q{Create Microsoft Word (.docx) files.}
13+
spec.summary = %q{Implements the Office Open XML spec for creating WordprocessingML documents}
14+
spec.homepage = "https://github.com/openxml/openxml-docx"
15+
spec.license = "MIT"
1616

17-
gem.files = `git ls-files`.split($/)
18-
gem.test_files = Dir.glob("test/**/*_test.rb")
19-
gem.require_paths = ["lib"]
17+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18+
spec.bindir = "exe"
19+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20+
spec.require_paths = ["lib"]
2021

21-
gem.required_ruby_version = "~> 2.0"
22+
spec.required_ruby_version = "~> 2.0"
2223

23-
gem.add_dependency "nokogiri"
24-
gem.add_dependency "openxml-package", ">= 0.2.2"
24+
spec.add_dependency "nokogiri"
25+
spec.add_dependency "openxml-package", ">= 0.2.2"
2526

26-
gem.add_development_dependency "pry"
27-
gem.add_development_dependency "rspec"
28-
gem.add_development_dependency "rake"
29-
gem.add_development_dependency "rr"
30-
gem.add_development_dependency "simplecov"
31-
gem.add_development_dependency "timecop"
27+
spec.add_development_dependency "pry"
28+
spec.add_development_dependency "rspec"
29+
spec.add_development_dependency "rake"
30+
spec.add_development_dependency "rr"
31+
spec.add_development_dependency "simplecov"
32+
spec.add_development_dependency "timecop"
3233
end

0 commit comments

Comments
 (0)