sinatra-writeexcel 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +23 -5
- data/lib/sinatra/writeexcel/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4193285c2f30105b0da3508d7f8286f230ceb89
|
4
|
+
data.tar.gz: 97eb113b994c18c096d1c5583871f6bea4b32f26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2dc58ab6ed4683032449e024d985fb7fc1734291a79428ed899c0a99e1d35ccf6c6593c7843974533f7707ba8ee21a3df63b9cfa6d2d6749e6ca96c5fb8cf84
|
7
|
+
data.tar.gz: e0aa19265c4d3a7cbc79d847b6ef5fb16db7d6030cc2c0c255fdbbab5563ab2591e7e685a513475f92493c44638844b7757ca4945fb7e65b0839241ee225f078
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
#
|
1
|
+
# sinatra-writeexcel
|
2
2
|
|
3
|
-
|
3
|
+
sinatra-writeexcel is a sinatra extension to add support for Excel rendering with [writeexcel](https://github.com/cxn03651/writeexcel) templates.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -16,13 +16,31 @@ Or install it yourself as:
|
|
16
16
|
|
17
17
|
$ gem install sinatra-writeexcel
|
18
18
|
|
19
|
-
##
|
19
|
+
## Example
|
20
20
|
|
21
|
-
|
21
|
+
```ruby
|
22
|
+
require 'sinatra'
|
23
|
+
require 'sinatra/writeexcel'
|
24
|
+
|
25
|
+
get '/' do
|
26
|
+
@text = "Hello World!"
|
27
|
+
writeexcel :world
|
28
|
+
end
|
29
|
+
```
|
30
|
+
|
31
|
+
In `views/world.rxls`
|
32
|
+
```
|
33
|
+
worksheet = workbook.add_worksheet('Hello')
|
34
|
+
worksheet.write "A1", @text
|
35
|
+
```
|
36
|
+
|
37
|
+
##License
|
38
|
+
|
39
|
+
See LICENSE.txt
|
22
40
|
|
23
41
|
## Contributing
|
24
42
|
|
25
|
-
1. Fork it ( https://github.com/
|
43
|
+
1. Fork it ( https://github.com/linc01n/sinatra-writeexcel/fork )
|
26
44
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
45
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
46
|
4. Push to the branch (`git push origin my-new-feature`)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-writeexcel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lincoln Lee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|