tinymce_aws_file_upload 0.0.8 → 0.1.0

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: 2585e4b33084210d913ed9f4a5d04218cb8316a2
4
- data.tar.gz: 83e11b6e84b5255f8cd7f63db8dca99f018041f4
3
+ metadata.gz: 624dc53bb7d8fa0998aee0c9a82317dcf7d0e5fd
4
+ data.tar.gz: be0f5938cefab1974566b50763eb519b1b2f8324
5
5
  SHA512:
6
- metadata.gz: 0cc7653749db32c0d897c8f182ab258642535dfb155b735059c9f2987b1c06efb7b961cc4c5ba39d1176e61a273e3f2c7347898edfe11ea351262c1038fc1c66
7
- data.tar.gz: b44d1ef8a274ed5ddfd5694e44f37d88e51c1e63dbd40254b88150f3c6544800d9bad897107be6fb56fed83216d136e8349daacd9210c80033c357d09846df0f
6
+ metadata.gz: 52f0997445aceb85a6b9f64a7e84b4960d27a971ce0049ad73f0b9e66558b25ffe247a350a1e88f584cbb49e1c349ee834eb8e10f644df3857498a0b1289c243
7
+ data.tar.gz: 5007a9de680b393a58a3ec1a45bc651bc8cf1b3a95ae1d8fb057e2a6e3e25e087bbe0517cd1059cc56d3c25cd5d456cc60fc4dc3164ffa67e9c40e166e3eb36d
data/README.md CHANGED
@@ -1,12 +1,14 @@
1
- # TinymceAwsFileUpload
1
+ # TinyMCE AWS File Upload
2
2
 
3
- This gem basically includes TinyMCE 4 (thanks to gem 'tinymce-rails' on https://github.com/spohlenz/tinymce-rails/tree/tinymce-4) and adds a File Upload functionality to it.
3
+ This gem basically includes TinyMCE 4 (thanks to gem [tinymce-rails](https://github.com/spohlenz/tinymce-rails/tree/tinymce-4)) and adds a File Upload functionality to it.
4
4
 
5
5
  ## Installation
6
6
 
7
7
  Add this line to your application's Gemfile:
8
8
 
9
- gem 'tinymce_aws_file_upload'
9
+ ```ruby
10
+ gem 'tinymce_aws_file_upload', '~> 0.1.0'
11
+ ```
10
12
 
11
13
  And then execute:
12
14
 
@@ -19,9 +21,14 @@ Or install it yourself as:
19
21
  ## Usage
20
22
 
21
23
  ### On your application.js add the line:
22
- //= require tinymce-aws-file-upload
23
24
 
24
- ### Add these environment variables:
25
+ ```javascript
26
+ //= require tinymce-aws-file-upload
27
+ ```
28
+
29
+ ### You need to configure your AWS bucket but setting these environment variables:
30
+
31
+ > Don't forget to set the bucket permissions [adding CORS configuration.](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html#how-do-i-enable-cors)
25
32
 
26
33
  1. AWS_ACCESS_KEY_ID
27
34
  2. AWS_SECRET_ACCESS_KEY
@@ -29,12 +36,15 @@ Or install it yourself as:
29
36
  4. AWS_AREA
30
37
  5. HOST (development will be http://localhost:3000/)
31
38
 
32
- To get this values, go to AWS and create an Amazon S3 account. (http://aws.amazon.com/s3/)
39
+ > If you need help to configure environment variables at development, Heroku has a nice [tutorial](https://devcenter.heroku.com/articles/getting-started-with-rails4).
40
+ > To configure them on Heroku, you can see it [here](https://devcenter.heroku.com/articles/config-vars)
33
41
 
34
42
  ### In your coffeescript files add
35
43
 
36
- root = exports ? this
37
- root.initTinyMCE('class')
44
+ ```coffeescript
45
+ root = exports ? this
46
+ root.initTinyMCE('class')
47
+ ```
38
48
  where class is a class you should add to all textareas which you want to add the Tinymce rich text editor.
39
49
 
40
50
  ## Contributing
@@ -1,3 +1,3 @@
1
1
  module TinymceAwsFileUpload
2
- VERSION = "0.0.8"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tinymce_aws_file_upload
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ariel Schvartz