bootstrap_colorpicker_rails 0.1.1 → 1.0.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: 50bafa40ceb7c2acac87747797b751486a8f3b55
4
- data.tar.gz: 34eed2d56b0617672cfdf07b40e888e100c99b10
3
+ metadata.gz: d4c968b9aad4abfab0ea6ea2418bd740a44e1a97
4
+ data.tar.gz: 8d7e6ff129c07179f43d4a1a3013b39ca0814218
5
5
  SHA512:
6
- metadata.gz: 37b458c694782615bdb0b848639fd6ed3e75784dc334b8ade6e1a2e1bad042209da2795f7bb56020be2d87bbe47ab83e7d23c693253db94ab848f45df7ea2852
7
- data.tar.gz: 01a288a045f543f58eec6ed2319895b6ca2bc7236fb1ea421ecc0c18e29b81ea8aa7d1fee8aeffad5452b0523a7e575db9d3e5ee4b584e5170029497c3c3f36a
6
+ metadata.gz: 802b7aade7cb6d778cc2bf5d88e406ccb16595eabc590f2018654c66e4489971f4f4b0c28e2d2c5a0326cbddfb2d8ee5f608049e97c19fd4d5957f2d01ff3685
7
+ data.tar.gz: e181d78048e61da9881d6fac8feefd0335c318321e9f7f9589e3e7b861ce27460c58b99b025643cbac4532ae8a15fb4b31b9e29a99d6738fcfcab4fce005cc8b
data/CHANGELOG.md CHANGED
@@ -1,9 +1,9 @@
1
- ## v0.1.1
1
+ ## v1.0.0
2
2
 
3
- * Fix issue #1 for simple_form < '3.1.0'
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
- * simpel_form input for Bootstrap Colorpicker.
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
- This gem is Rails integration for Bootstrap Colorpicker. It includes simpel_form input for Colorpicker.
3
+ [![Gem Version](https://badge.fury.io/rb/bootstrap_colorpicker_rails.svg)](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
@@ -1,3 +1,3 @@
1
1
  module BootstrapColorpickerRails
2
- VERSION = "0.1.1"
2
+ VERSION = "1.0.0"
3
3
  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.1.1
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-12 00:00:00.000000000 Z
11
+ date: 2015-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties