sinatra-writeexcel 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3389473a22ea215e7455899279aa2912d9dc09d8
4
- data.tar.gz: 27ebb146a34c3c000bc4c7f1b4652100831e1251
3
+ metadata.gz: c4193285c2f30105b0da3508d7f8286f230ceb89
4
+ data.tar.gz: 97eb113b994c18c096d1c5583871f6bea4b32f26
5
5
  SHA512:
6
- metadata.gz: 9a60992745b339b73de3c3ef34c2fe0a96a41b17251b69c55b2377ccc6db29ecb80c6282513417dd55dd00cc7d4bd3d5faede547e1caccc684d1ee45c05bebbd
7
- data.tar.gz: 73054a7787660cb27c9ecbd5406421e1db5f1f760f150b7d6b57bf946e1701e62c3f77d4472e96d4ad4b40f47c77b028c1be0cefae47187650e153c9e5ca703c
6
+ metadata.gz: b2dc58ab6ed4683032449e024d985fb7fc1734291a79428ed899c0a99e1d35ccf6c6593c7843974533f7707ba8ee21a3df63b9cfa6d2d6749e6ca96c5fb8cf84
7
+ data.tar.gz: e0aa19265c4d3a7cbc79d847b6ef5fb16db7d6030cc2c0c255fdbbab5563ab2591e7e685a513475f92493c44638844b7757ca4945fb7e65b0839241ee225f078
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # Sinatra::Writeexcel
1
+ # sinatra-writeexcel
2
2
 
3
- TODO: Write a gem description
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
- ## Usage
19
+ ## Example
20
20
 
21
- TODO: Write usage instructions here
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/[my-github-username]/sinatra-writeexcel/fork )
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`)
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module Writeexcel
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  end
5
5
  end
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.1
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-18 00:00:00.000000000 Z
11
+ date: 2014-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra