jquery-minicolors-rails 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # jQuery colorpicker for Rails
2
2
 
3
+ [![Build Status](https://travis-ci.org/kostia/jquery-minicolors-rails.png)](https://travis-ci.org/kostia/jquery-minicolors-rails)
4
+ [![Code Climate](https://codeclimate.com/github/kostia/jquery-minicolors-rails.png)](https://codeclimate.com/github/kostia/jquery-minicolors-rails)
5
+
3
6
  This gem embedes the jQuery colorpicker plugin miniColors in the Rails asset pipeline.
4
7
 
5
8
  ![Screenshot](https://raw.github.com/kostia/jquery-minicolors-rails/master/screenshot.png)
data/Rakefile CHANGED
@@ -7,3 +7,9 @@ rescue LoadError
7
7
  end
8
8
 
9
9
  Bundler::GemHelper.install_tasks
10
+
11
+ require 'rspec/core/rake_task'
12
+
13
+ RSpec::Core::RakeTask.new
14
+
15
+ task default: :spec
@@ -1,12 +1,12 @@
1
1
  if defined? SimpleForm
2
2
  class MinicolorsInput < SimpleForm::Inputs::StringInput
3
3
  def input_html_options
4
- options = super
5
- options[:data] ||= {}
6
- options[:data][:minicolors] ||= {}
7
- options
4
+ super.tap do |options|
5
+ options[:data] ||= {}
6
+ options[:data][:minicolors] ||= {}
7
+ end
8
8
  end
9
9
 
10
- def input_type; :text; end
10
+ def input_type; :string end
11
11
  end
12
12
  end
@@ -1,3 +1,3 @@
1
1
  module JqueryMinicolorsRails
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jquery-minicolors-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-30 00:00:00.000000000 Z
12
+ date: 2013-07-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: !ruby/object:Gem::Requirement
16
+ requirement: &70239133516300 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,28 +21,95 @@ dependencies:
21
21
  version: 3.2.8
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
24
+ version_requirements: *70239133516300
25
+ - !ruby/object:Gem::Dependency
26
+ name: jquery-rails
27
+ requirement: &70239133515720 !ruby/object:Gem::Requirement
25
28
  none: false
26
29
  requirements:
27
30
  - - ! '>='
28
31
  - !ruby/object:Gem::Version
29
- version: 3.2.8
32
+ version: '0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *70239133515720
30
36
  - !ruby/object:Gem::Dependency
31
- name: jquery-rails
32
- requirement: !ruby/object:Gem::Requirement
37
+ name: multi_json
38
+ requirement: &70239133514380 !ruby/object:Gem::Requirement
33
39
  none: false
34
40
  requirements:
35
41
  - - ! '>='
36
42
  - !ruby/object:Gem::Version
37
43
  version: '0'
38
- type: :runtime
44
+ type: :development
39
45
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
46
+ version_requirements: *70239133514380
47
+ - !ruby/object:Gem::Dependency
48
+ name: pry
49
+ requirement: &70239133513700 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *70239133513700
58
+ - !ruby/object:Gem::Dependency
59
+ name: rake
60
+ requirement: &70239133512120 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :development
67
+ prerelease: false
68
+ version_requirements: *70239133512120
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: &70239133511220 !ruby/object:Gem::Requirement
41
72
  none: false
42
73
  requirements:
43
74
  - - ! '>='
44
75
  - !ruby/object:Gem::Version
45
76
  version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: *70239133511220
80
+ - !ruby/object:Gem::Dependency
81
+ name: rspec-rails
82
+ requirement: &70239133510340 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: *70239133510340
91
+ - !ruby/object:Gem::Dependency
92
+ name: simple_form
93
+ requirement: &70239133525340 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ type: :development
100
+ prerelease: false
101
+ version_requirements: *70239133525340
102
+ - !ruby/object:Gem::Dependency
103
+ name: webrat
104
+ requirement: &70239133522740 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: *70239133522740
46
113
  description: Colorpicker-plugin for jQuery, integrated in Rails asset pipeline
47
114
  email:
48
115
  - kostiantyn.kahanskyi@googlemail.com
@@ -74,7 +141,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
74
141
  version: '0'
75
142
  segments:
76
143
  - 0
77
- hash: 2557259760946328021
144
+ hash: -101286193624482272
78
145
  required_rubygems_version: !ruby/object:Gem::Requirement
79
146
  none: false
80
147
  requirements:
@@ -83,10 +150,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
150
  version: '0'
84
151
  segments:
85
152
  - 0
86
- hash: 2557259760946328021
153
+ hash: -101286193624482272
87
154
  requirements: []
88
155
  rubyforge_project:
89
- rubygems_version: 1.8.25
156
+ rubygems_version: 1.8.5
90
157
  signing_key:
91
158
  specification_version: 3
92
159
  summary: Colorpicker-plugin for jQuery, integrated in Rails asset pipeline