fondant-rails 0.4.1 → 0.5.0
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 +7 -0
- data/README.md +1 -1
- data/lib/fondant-rails/version.rb +1 -1
- data/vendor/assets/javascripts/fondant.coffee +15 -6
- data/vendor/assets/stylesheets/fondant.scss +1 -1
- metadata +9 -15
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 2a39ead5479b83675473610ba5635bd724d08e0a
|
|
4
|
+
data.tar.gz: 973cc6c77bcb5e597d4b7a97491a6175200d59f6
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 2911a15462910db37b90fec3e08785e9931765dd51ef21d31680e1af55214959ea15d239a6acfe1b819398f84201ed4ca3d6aae5cc885f157fd2b50e76541113
|
|
7
|
+
data.tar.gz: 3ecc5882927c38b77ae12292d5da659851abd8d039a943153b683e252a72ad980a164674a470a4c692fecc6c04466b91b1d5cc28ee1be40afff52f51d9e40b9e
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# ## Fondant v0.
|
|
1
|
+
# ## Fondant v0.5.0
|
|
2
2
|
#
|
|
3
3
|
# The icing on the cake for user input. A simple jQuery HTML5 WYSIWYG editor
|
|
4
4
|
# using `contenteditable`.
|
|
@@ -32,15 +32,17 @@
|
|
|
32
32
|
# * `prefix` - prefix for all css classes and ids added to elements
|
|
33
33
|
# generated by Fondant (default: `fondant`)
|
|
34
34
|
#
|
|
35
|
-
# * `toolbar` - If set to `true`, Fondant will generate a toolbar.
|
|
36
|
-
#
|
|
35
|
+
# * `toolbar` - If set to `true`, Fondant will generate a toolbar. If set to a function, Fondant
|
|
36
|
+
# will use the return value of the function for the toolbar markup. If set to a string, Fondant
|
|
37
|
+
# will use the string contents for the toolbar markup. If set to `false`, Fondant will not insert
|
|
38
|
+
# a toolbar and you are responsible for building and wiring up your own.
|
|
37
39
|
# (default: `true`)
|
|
38
40
|
#
|
|
39
41
|
|
|
40
42
|
|
|
41
43
|
$ = jQuery
|
|
42
44
|
|
|
43
|
-
$
|
|
45
|
+
if typeof $ isnt 'undefined'
|
|
44
46
|
|
|
45
47
|
# ## Class Definition
|
|
46
48
|
#
|
|
@@ -104,7 +106,13 @@ $ ->
|
|
|
104
106
|
# Add the formatting toolbar and bind the editor functions
|
|
105
107
|
#
|
|
106
108
|
insertToolbar: ->
|
|
107
|
-
|
|
109
|
+
if @options.toolbar
|
|
110
|
+
if typeof @options.toolbar is 'boolean'
|
|
111
|
+
@$element.prepend(@templates.toolbar())
|
|
112
|
+
else if typeof @options.toolbar is "string"
|
|
113
|
+
@$element.prepend(@options.toolbar)
|
|
114
|
+
else if typeof @options.toolbar is "function"
|
|
115
|
+
@$element.prepend(@options.toolbar.call(@templates))
|
|
108
116
|
|
|
109
117
|
# ### bindToolbar()
|
|
110
118
|
#
|
|
@@ -348,7 +356,7 @@ $ ->
|
|
|
348
356
|
#
|
|
349
357
|
# * `link( url )`
|
|
350
358
|
# * `unlink()`
|
|
351
|
-
link: (url) -> @applyFormat '
|
|
359
|
+
link: (url) -> @applyFormat 'createLink', url
|
|
352
360
|
unlink: -> @applyFormat 'unlink'
|
|
353
361
|
|
|
354
362
|
# ## HTML Templates
|
|
@@ -417,6 +425,7 @@ $ ->
|
|
|
417
425
|
</ul>
|
|
418
426
|
"""
|
|
419
427
|
|
|
428
|
+
window.Fondant = Fondant
|
|
420
429
|
|
|
421
430
|
# ## Plugin Setup
|
|
422
431
|
#
|
metadata
CHANGED
|
@@ -1,36 +1,32 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fondant-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 0.5.0
|
|
6
5
|
platform: ruby
|
|
7
6
|
authors:
|
|
8
7
|
- Phillip Ridlen
|
|
9
8
|
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date: 2013-02
|
|
11
|
+
date: 2013-03-02 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
14
|
name: railties
|
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
|
17
|
-
none: false
|
|
18
16
|
requirements:
|
|
19
|
-
- -
|
|
17
|
+
- - '>='
|
|
20
18
|
- !ruby/object:Gem::Version
|
|
21
19
|
version: '3.1'
|
|
22
20
|
type: :runtime
|
|
23
21
|
prerelease: false
|
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
-
none: false
|
|
26
23
|
requirements:
|
|
27
|
-
- -
|
|
24
|
+
- - '>='
|
|
28
25
|
- !ruby/object:Gem::Version
|
|
29
26
|
version: '3.1'
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
|
31
28
|
name: thor
|
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
|
33
|
-
none: false
|
|
34
30
|
requirements:
|
|
35
31
|
- - ~>
|
|
36
32
|
- !ruby/object:Gem::Version
|
|
@@ -38,7 +34,6 @@ dependencies:
|
|
|
38
34
|
type: :development
|
|
39
35
|
prerelease: false
|
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
41
|
-
none: false
|
|
42
37
|
requirements:
|
|
43
38
|
- - ~>
|
|
44
39
|
- !ruby/object:Gem::Version
|
|
@@ -63,26 +58,25 @@ files:
|
|
|
63
58
|
- vendor/assets/stylesheets/fondant.scss
|
|
64
59
|
homepage: https://github.com/ovenbits-ingredients/fondant-rails
|
|
65
60
|
licenses: []
|
|
61
|
+
metadata: {}
|
|
66
62
|
post_install_message:
|
|
67
63
|
rdoc_options: []
|
|
68
64
|
require_paths:
|
|
69
65
|
- lib
|
|
70
66
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
71
|
-
none: false
|
|
72
67
|
requirements:
|
|
73
|
-
- -
|
|
68
|
+
- - '>='
|
|
74
69
|
- !ruby/object:Gem::Version
|
|
75
70
|
version: '0'
|
|
76
71
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
|
-
none: false
|
|
78
72
|
requirements:
|
|
79
|
-
- -
|
|
73
|
+
- - '>='
|
|
80
74
|
- !ruby/object:Gem::Version
|
|
81
75
|
version: '0'
|
|
82
76
|
requirements: []
|
|
83
77
|
rubyforge_project:
|
|
84
|
-
rubygems_version:
|
|
78
|
+
rubygems_version: 2.0.0
|
|
85
79
|
signing_key:
|
|
86
|
-
specification_version:
|
|
80
|
+
specification_version: 4
|
|
87
81
|
summary: Use fondant in Rails' asset pipeline
|
|
88
82
|
test_files: []
|