bootstrap_colorpicker_rails 0.1.1 → 1.0.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d4c968b9aad4abfab0ea6ea2418bd740a44e1a97
|
|
4
|
+
data.tar.gz: 8d7e6ff129c07179f43d4a1a3013b39ca0814218
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 802b7aade7cb6d778cc2bf5d88e406ccb16595eabc590f2018654c66e4489971f4f4b0c28e2d2c5a0326cbddfb2d8ee5f608049e97c19fd4d5957f2d01ff3685
|
|
7
|
+
data.tar.gz: e181d78048e61da9881d6fac8feefd0335c318321e9f7f9589e3e7b861ce27460c58b99b025643cbac4532ae8a15fb4b31b9e29a99d6738fcfcab4fce005cc8b
|
data/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
##
|
|
1
|
+
## v1.0.0
|
|
2
2
|
|
|
3
|
-
*
|
|
3
|
+
* add `wrapper_options` to simple_form input for future compatibility
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
## v0.1.0
|
|
7
7
|
|
|
8
|
-
* Rails integration for Bootstrap Colorpicker
|
|
9
|
-
*
|
|
8
|
+
* Rails integration for Bootstrap Colorpicker
|
|
9
|
+
* simple_form input for Bootstrap Colorpicker
|
data/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# BootstrapColorpickerRails
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](http://badge.fury.io/rb/bootstrap_colorpicker_rails)
|
|
4
|
+
|
|
5
|
+
This gem is Rails integration for Bootstrap Colorpicker. It includes simple_form input for Colorpicker.
|
|
4
6
|
|
|
5
7
|
[Bootstrap Colorpicker](http://mjolnic.github.io/bootstrap-colorpicker/) originally written by Stefan Petre ([@eyecon](http://twitter.com/stefanpetre/)) and maintained in Github by Javier Aguilar ([@mjolnic](http://twitter.com/mjolnic/)) and the community.
|
|
6
8
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
class ColorpickerInput < SimpleForm::Inputs::StringInput
|
|
2
|
-
def input
|
|
2
|
+
def input(wrapper_options)
|
|
3
3
|
idf = "#{lookup_model_names.join("_")}_#{reflection_or_attribute_name}"
|
|
4
4
|
script = template.content_tag(:script, type: 'text/javascript') do
|
|
5
5
|
"$('input[id=#{idf}]').colorpicker();".html_safe
|
|
@@ -7,8 +7,4 @@ class ColorpickerInput < SimpleForm::Inputs::StringInput
|
|
|
7
7
|
|
|
8
8
|
super + script
|
|
9
9
|
end
|
|
10
|
-
|
|
11
|
-
def input_type
|
|
12
|
-
:string
|
|
13
|
-
end
|
|
14
10
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bootstrap_colorpicker_rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Pavel Shpak
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-01-
|
|
11
|
+
date: 2015-01-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: railties
|