upcloudify 0.1.1 → 0.1.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 +25 -0
- data/lib/upcloudify/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efd2a9f31fed02783de401102b11dd3e0b5b468b
|
4
|
+
data.tar.gz: 7ea2e9646754ba7d451777bdb3442b5243d9de0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 473be39ca115c4af04233454c9f7cbdc9c2efbb8785828ff9dbd553a16c6577cb1ee856be30f086bfdb3713e52377755cdf11a4bf91db86980387d06f655ca15
|
7
|
+
data.tar.gz: 42e04aefa4d0851c57cd72f4f6b983dd479e8fa94937aa42a2e1db5cd258e7b11ac302abcb6a9d10ba82123a08991e27734850eb5d3d2aa169e577ce48f3856c
|
data/README.md
CHANGED
@@ -29,6 +29,31 @@ Upcloudify.configure do |config|
|
|
29
29
|
end
|
30
30
|
```
|
31
31
|
|
32
|
+
Then, anywhere you want to upload a file and email a link:
|
33
|
+
|
34
|
+
``` ruby
|
35
|
+
uploader.email(params["email"], params["file"]["filename"], params["file"]["tempfile"])
|
36
|
+
```
|
37
|
+
|
38
|
+
You can also pass in an options hash to further customize the email links:
|
39
|
+
``` ruby
|
40
|
+
options = {
|
41
|
+
suffix: " generated on #{Time.now.to_s}",
|
42
|
+
expiration: Time.now.tomorrow,
|
43
|
+
from: 'upcloudify',
|
44
|
+
subject: 'your file is attached',
|
45
|
+
body: 'your report is linked '
|
46
|
+
}
|
47
|
+
```
|
48
|
+
|
49
|
+
## Sample App
|
50
|
+
|
51
|
+
There's a sample Sinatra app in the sample_app directory of this gem. To run:
|
52
|
+
|
53
|
+
``` bash
|
54
|
+
bundle exec ruby sample.rb
|
55
|
+
```
|
56
|
+
|
32
57
|
## Contributing
|
33
58
|
|
34
59
|
1. Fork it
|
data/lib/upcloudify/version.rb
CHANGED