dante-editor 0.0.11 → 0.0.12

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: ce93b6b016e569966678e24ff82312b27125a136
4
- data.tar.gz: 4bc7081e9e6a17785e9f752ca7369001e82b9f5c
3
+ metadata.gz: c9de1d8d9a9c05a633a0b47d59b4762f7a568440
4
+ data.tar.gz: a4ee6debde48072bafb683d2583d13027a27023e
5
5
  SHA512:
6
- metadata.gz: 43c7c63ad8b016a22839fa7e7ccbf2def26ae11f1934466902dd8a4e0d9a38157a94f2f31b9d836f1388ba1ead630b8bef1772530ff6af3acaddb7629f164f7f
7
- data.tar.gz: d0fb16dcc13f2b5956215328ebcc3c657b9fd4cc779ea0729f26dec30f426892b1a5abfbf2de26ff19476f7d1f659e49b9cd1e59337e43fe301db741fc905fed
6
+ metadata.gz: 1ee1b7eddcbe0d0ecc2dfcfba17ec23bbd4c7dd51e516f637599fa21892ad28121bd241d938063087d245589e850e567a98e1b40ca7eef4c516b2420d4822d37
7
+ data.tar.gz: a6419b79bda3b8009678e08ce15777aa914ad58773e857e5b58fb0e6f05c0dc3921dbfe13baa587177d5d49beda88336cbfe82cb4ce9a54b08f2cfd2c0abe9fb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dante-editor (0.0.11)
4
+ dante-editor (0.0.12)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
data/README.md CHANGED
@@ -69,7 +69,8 @@ Until now I´ve been able to implement the following features:
69
69
  + **oembed_url:** default: http://api.embed.ly/1/oembed?url="
70
70
  + **extract_url:** default: http://api.embed.ly/1/extract?url="
71
71
  + **store_url:** default: to none , url to store data with interval
72
- + **store_interval:** default: 15000 (15 secs)
72
+ + **store_method** default: to POST , http verb to use when store_url is present.
73
+ + **store_interval:** default: 15000 (15 secs), used when store_url is present.
73
74
  + **spellcheck:** default: false
74
75
  + **default_loading_placeholder:** image placeholder to show when uploaded/pasted images are loading , defaults to a grey background
75
76
  + **disable_title** default: false, will hide the initial heading placeholder for initial text
@@ -34,6 +34,7 @@ class Dante.Editor extends Dante.View
34
34
  @extract_url = opts.extract_url || "http://api.embed.ly/1/extract?key=86c28a410a104c8bb58848733c82f840&url="
35
35
  @default_loading_placeholder = opts.default_loading_placeholder || Dante.defaults.image_placeholder
36
36
  @store_url = opts.store_url
37
+ @store_method = opts.store_method || "POST"
37
38
  @spell_check = opts.spellcheck || false
38
39
  @disable_title = opts.disable_title || false
39
40
  @store_interval = opts.store_interval || 15000
@@ -103,8 +104,9 @@ class Dante.Editor extends Dante.View
103
104
  @content = @getContent()
104
105
  $.ajax
105
106
  url: @store_url
106
- method: "post"
107
- data: @getContent()
107
+ method: @store_method
108
+ data:
109
+ body: @getContent()
108
110
  success: (res)->
109
111
  utils.log "store!"
110
112
  utils.log res
data/bower.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name" : "dante",
3
3
  "description": "Just another Medium editor clone.",
4
4
  "homepage": "michelson.github.io/Dante/",
5
- "version" : "0.0.11",
5
+ "version" : "0.0.12",
6
6
  "keywords": [
7
7
  "css",
8
8
  "sass",
@@ -8,7 +8,7 @@
8
8
  defaults: {
9
9
  image_placeholder: '../images/dante/media-loading-placeholder.png'
10
10
  },
11
- version: "0.0.11"
11
+ version: "0.0.12"
12
12
  };
13
13
 
14
14
  }).call(this);
@@ -485,6 +485,7 @@
485
485
  this.extract_url = opts.extract_url || "http://api.embed.ly/1/extract?key=86c28a410a104c8bb58848733c82f840&url=";
486
486
  this.default_loading_placeholder = opts.default_loading_placeholder || Dante.defaults.image_placeholder;
487
487
  this.store_url = opts.store_url;
488
+ this.store_method = opts.store_method || "POST";
488
489
  this.spell_check = opts.spellcheck || false;
489
490
  this.disable_title = opts.disable_title || false;
490
491
  this.store_interval = opts.store_interval || 15000;
@@ -561,8 +562,10 @@
561
562
  this.content = this.getContent();
562
563
  return $.ajax({
563
564
  url: this.store_url,
564
- method: "post",
565
- data: this.getContent(),
565
+ method: this.store_method,
566
+ data: {
567
+ body: this.getContent()
568
+ },
566
569
  success: function(res) {
567
570
  utils.log("store!");
568
571
  return utils.log(res);
@@ -1,5 +1,5 @@
1
1
  require "dante-editor/version"
2
2
 
3
3
  module DanteEditor
4
- VERSION = "0.0.11"
4
+ VERSION = "0.0.12"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dante-editor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Michelson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-03-26 00:00:00.000000000 Z
12
+ date: 2015-04-22 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: dante-editor yet another Medium editor clone.
15
15
  email: