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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +25 -0
  3. data/lib/upcloudify/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2afa70ec31294d89848d70d334946ffae14085fc
4
- data.tar.gz: b0f40b37126043cc4dfbdc57f0ee3a90ce634f8b
3
+ metadata.gz: efd2a9f31fed02783de401102b11dd3e0b5b468b
4
+ data.tar.gz: 7ea2e9646754ba7d451777bdb3442b5243d9de0c
5
5
  SHA512:
6
- metadata.gz: 70ec1aa71775dcc0b36370f05c80a947d979ae7cffc0a5ffdb914f9d620ab06050a16f491a261f5474f9b0118bb9035e718ab2beae1713182ab67baddf7d78ea
7
- data.tar.gz: bd6b053b517709d307321d4f65d7805203b9a490913a26e6ac64ec5dbab2b512e2e946fad3aa9fabb44ed4ed321eca280807fe9cba6c7d73575784a27a03819c
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
@@ -1,3 +1,3 @@
1
1
  module Upcloudify
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: upcloudify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - parasquid