Skip to content

Commit 79929ae

Browse files
authored
Merge pull request #80 from ruby-docx/release-v0.4
Release v0.4
2 parents 1b017e1 + 01e5cfd commit 79929ae

3 files changed

Lines changed: 35 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Changelog
2+
3+
## v0.4.0
4+
5+
### Enhancements
6+
7+
- Implement substitute method on TextRun class. [#75](https://github.com/ruby-docx/docx/pull/75)
8+
9+
### Improvements
10+
11+
- Updates dependencies. [#72](https://github.com/ruby-docx/docx/pull/72), [#77](https://github.com/ruby-docx/docx/pull/77)
12+
- Fix: #paragraphs grabs paragraphs in tables. [#76](https://github.com/ruby-docx/docx/pull/76)
13+
- Updates supported ruby versions. [#78](https://github.com/ruby-docx/docx/pull/78)

README.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,29 @@ A ruby library/gem for interacting with `.docx` files. currently capabilities in
44

55
## Usage
66

7+
### Prerequisites
8+
9+
- Ruby 2.4 or later
10+
711
### Install
812

9-
Requires ruby (tested with 2.1.1)
13+
Add the following line to your application's Gemfile:
14+
15+
```ruby
16+
gem 'docx'
17+
```
18+
19+
And then execute:
1020

11-
gem 'docx', '~> 0.3.0'
21+
```shell
22+
bundle install
23+
```
24+
25+
Or install it yourself as:
26+
27+
```shell
28+
gem install docx
29+
```
1230

1331
### Reading
1432

@@ -61,7 +79,7 @@ doc.tables.each do |table|
6179
puts cell.text
6280
end
6381
end
64-
82+
6583
table.columns.each do |column| # Column-based iteration
6684
column.cells.each do |cell|
6785
puts cell.text

lib/docx/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Docx #:nodoc:
2-
VERSION = '0.3.0'
2+
VERSION = '0.4.0'
33
end

0 commit comments

Comments
 (0)