dante-editor 0.1.2 → 0.1.3

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: 6d08776410afefd181c71ec59fa2dbc0458973de
4
- data.tar.gz: a105ed8c2e03468123e5414293119949ed48bdb0
3
+ metadata.gz: 73a78f7445c358910dc9ab16aa63d7ff06359b4a
4
+ data.tar.gz: a84a1b3aba6f10b39c639c097d6c4e97ec355192
5
5
  SHA512:
6
- metadata.gz: a4fc6161e44ebe69f579ebdfa28e827441adab5a174e5a73295bff69eaf3c204a2423934f93039d25b7c92a984ef9492ab2caae4dc176e93c56717f95adf1510
7
- data.tar.gz: edd4c306ca404776b250d6c43616ae287adafb4232391daa41b34ae6136f672705e7e985b0ac3bcd06d6923384ef1c20ea37ec51d16b7b2beb5c2d6167cb26c8
6
+ metadata.gz: 75fefccffab7efb346c48890052b5b411acd4bfc5d7dd8fc4b04f97f6c04868ea772bf3e7e796790e7e64fef86c3d26e4593076a976a31b1fe570bba5edc3dc5
7
+ data.tar.gz: 8276389a69898090daf28bad75f1ad1e72648c568e3edd67e7b2ea1483add90b3940bcdc9468a48666df00702fa0adb589f16711b2b2ea4f316756a6b18fa799
@@ -38,8 +38,8 @@ class Dante.Editor extends Dante.View
38
38
 
39
39
  @upload_url = opts.upload_url || "/uploads.json"
40
40
  @upload_callback = opts.upload_callback
41
- @oembed_url = opts.oembed_url || "http://api.embed.ly/1/oembed?url="
42
- @extract_url = opts.extract_url || "http://api.embed.ly/1/extract?key=86c28a410a104c8bb58848733c82f840&url="
41
+ @oembed_url = opts.oembed_url || "http://api.embed.ly/1/oembed?key=#{opts.api_key}&url="
42
+ @extract_url = opts.extract_url || "http://api.embed.ly/1/extract?key=#{opts.api_key}&url="
43
43
  @default_loading_placeholder = opts.default_loading_placeholder || Dante.defaults.image_placeholder
44
44
 
45
45
  @store_url = opts.store_url
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.1.2",
5
+ "version" : "0.1.3",
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.1.2"
11
+ version: "0.1.3"
12
12
  };
13
13
 
14
14
  }).call(this);
@@ -495,8 +495,8 @@
495
495
  this.el = opts.el || "#editor";
496
496
  this.upload_url = opts.upload_url || "/uploads.json";
497
497
  this.upload_callback = opts.upload_callback;
498
- this.oembed_url = opts.oembed_url || "http://api.embed.ly/1/oembed?url=";
499
- this.extract_url = opts.extract_url || "http://api.embed.ly/1/extract?key=86c28a410a104c8bb58848733c82f840&url=";
498
+ this.oembed_url = opts.oembed_url || ("http://api.embed.ly/1/oembed?key=" + opts.api_key + "&url=");
499
+ this.extract_url = opts.extract_url || ("http://api.embed.ly/1/extract?key=" + opts.api_key + "&url=");
500
500
  this.default_loading_placeholder = opts.default_loading_placeholder || Dante.defaults.image_placeholder;
501
501
  this.store_url = opts.store_url;
502
502
  this.store_method = opts.store_method || "POST";
@@ -1,5 +1,5 @@
1
1
  require "dante-editor/version"
2
2
 
3
3
  module DanteEditor
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
@@ -18,6 +18,7 @@ title: Dante Editor example
18
18
 
19
19
  editor = new Dante.Editor(
20
20
  {
21
+ api_key: "86c28a410a104c8bb58848733c82f840",
21
22
  el: "#editor",
22
23
  upload_url: "/uploads/new.json",
23
24
  debug: <%= build? ? false : true %>,
@@ -19,6 +19,7 @@ title: Dante Editor EMBEDS example
19
19
  <script type="text/javascript">
20
20
  editor = new Dante.Editor(
21
21
  {
22
+ api_key: "86c28a410a104c8bb58848733c82f840",
22
23
  el: "#editor",
23
24
  upload_url: "/uploads/new.json",
24
25
  debug: true
@@ -13,6 +13,7 @@ title: Dante Editor example
13
13
 
14
14
  editor = new Dante.Editor(
15
15
  {
16
+ api_key: "86c28a410a104c8bb58848733c82f840",
16
17
  el: "#editor",
17
18
  upload_url: "/uploads/new.json",
18
19
  store_url: "/api/save.json",
@@ -9,6 +9,7 @@ title: Dante Editor example
9
9
  <script type="text/javascript">
10
10
  editor = new Dante.Editor(
11
11
  {
12
+ api_key: "86c28a410a104c8bb58848733c82f840",
12
13
  el: "#editor",
13
14
  upload_url: "/uploads/new.json",
14
15
  debug: <%= build? ? false : true %>
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.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Michelson