pixelletter 0.1.0 → 0.1.1
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.
- data/README.md +14 -3
- data/VERSION +1 -1
- data/lib/pixelletter/request/request.rb +2 -0
- metadata +2 -2
data/README.md
CHANGED
@@ -9,9 +9,9 @@ Pixelletter is a small SaaS from Germany. You can use it to send letters. Yay!
|
|
9
9
|
They currently only offer a curl and PHP example usage scenario. I hate PHP and I don't use curl from my Ruby code.
|
10
10
|
That's why I created this small gem.
|
11
11
|
|
12
|
-
It is
|
12
|
+
It is still an early version.
|
13
13
|
That means you have to provide all content via an xml file which the gem creates for you. Just hand the
|
14
|
-
content as a hash.
|
14
|
+
content as a hash or attach a file (e.g. a pdf file).
|
15
15
|
|
16
16
|
Future versions might provide a more OO approach to creating orders.
|
17
17
|
|
@@ -25,6 +25,7 @@ gem install pixelletter
|
|
25
25
|
|
26
26
|
* You need an account at [pixelletter.de](http://www.pixelletter.de)
|
27
27
|
* Edit the file `CREDENTIALS.example` and enter your credentials.
|
28
|
+
* Save it as CREDENTIALS
|
28
29
|
|
29
30
|
# Usage
|
30
31
|
|
@@ -53,10 +54,20 @@ order: { order:
|
|
53
54
|
```
|
54
55
|
|
55
56
|
Start a request with this order:
|
56
|
-
|
57
|
+
```
|
58
|
+
my_request.request(order)
|
59
|
+
```
|
60
|
+
|
61
|
+
If you want to send a pdf file as letter do this:
|
62
|
+
```
|
63
|
+
pdf_file = File.new(File.join('path', 'to', 'my_letter.pdf'))
|
64
|
+
my_request.request(order, pdf_file)
|
65
|
+
```
|
66
|
+
|
57
67
|
|
58
68
|
|
59
69
|
# Meta
|
60
70
|
Created by Holger Frohloff
|
71
|
+
|
61
72
|
Released under the MIT License: [www.opensource.org/licenses/mit-license.php](www.opensource.org/licenses/mit-license.php)
|
62
73
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pixelletter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-02-
|
12
|
+
date: 2013-02-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|