Skip to content

Commit 96b1781

Browse files
committed
added gemspec
1 parent dc42f73 commit 96b1781

6 files changed

Lines changed: 51 additions & 4 deletions

File tree

Gemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
source 'https://rubygems.org'
2-
gem 'nokogiri'
3-
gem 'rubyzip'
2+
gemspec

Gemfile.lock

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
PATH
2+
remote: .
3+
specs:
4+
docx (0.1.0)
5+
nokogiri (~> 1.5)
6+
rubyzip (~> 0.9)
7+
18
GEM
29
remote: https://rubygems.org/
310
specs:
@@ -8,5 +15,4 @@ PLATFORMS
815
ruby
916

1017
DEPENDENCIES
11-
nokogiri
12-
rubyzip
18+
docx!

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License
2+
3+
Copyright (c) Marcus Ortiz, http://marcusortiz.com
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

docx.gemspec

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
$:.unshift File.expand_path("../lib", __FILE__)
2+
require 'docx/version'
3+
4+
Gem::Specification.new do |s|
5+
s.name = 'docx'
6+
s.version = Docx::VERSION
7+
s.summary = 'a ruby library/gem for interacting with .docx files'
8+
s.description = s.summary
9+
s.author = 'Marcus Ortiz'
10+
s.email = 'mportiz08@gmail.com'
11+
s.homepage = 'https://github.com/mportiz08/docx'
12+
s.files = Dir["README.md", "LICENSE.md", "lib/**/*.rb"]
13+
14+
s.add_dependency 'nokogiri', '~> 1.5'
15+
s.add_dependency 'rubyzip', '~> 0.9'
16+
end

lib/docx.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require 'docx/version'
2+
13
module Docx
24
autoload :Document, 'docx/document'
35
end

lib/docx/version.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module Docx
2+
VERSION = '0.1.0'
3+
end

0 commit comments

Comments
 (0)