formtastic_auto_select2 0.0.3 → 0.0.5

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: 44f2017128223c81067df6f81ecea7b5e65db901
4
- data.tar.gz: f1ac5d6a9bbca2c10dfbfd872b2bdc9d5f173993
3
+ metadata.gz: c1361f65cfd29c14f01905de2a1eff9a1660dde3
4
+ data.tar.gz: bf7b6ae698a114b32da0543ee5e3abdb2c7ee05a
5
5
  SHA512:
6
- metadata.gz: 58ae3b1758ff177055f5b94b69c74e844698c08ac5f14255b5526d6e6a97b93b8f93c4ddcb1f61969ec29c43e9d4dcd2b445f723d5cbe741dfdfb190cbc35c03
7
- data.tar.gz: 5b882cb10c118afeaf3f2e19f481271ae507b63e34b9cfb1b461929859c4335f909fdde9ba6a270f7a51fcefb09ed6080ce4a3994632fd28ede357e11c9b5c39
6
+ metadata.gz: b5630b3162abc98c10ea812be2e48cef4b587759b81bc73ff373851eba553c650004b22e044ccee4960ea8c1c56b314ff21f01c9f1c3e6b4ee266997d9eabfaa
7
+ data.tar.gz: c0aa93c6730f5e5718e062939fa4e8f9ffe7654349bec505cb493b9607d3aedd2c779c6eef47faa43a31c1a9428468e09d1e6f96545280464268f55c9c31d5e0
@@ -1,4 +1,4 @@
1
- class AjaxSelect2Input < Formtastic::Inputs::StringInput
1
+ class Formtastic::Inputs::AjaxSelect2Input < Formtastic::Inputs::StringInput
2
2
  extend ActiveSupport::Autoload
3
3
 
4
4
  def input_html_options
@@ -1,4 +1,4 @@
1
- class Select2Input < Formtastic::Inputs::SelectInput
1
+ class Formtastic::Inputs::Select2Input < Formtastic::Inputs::SelectInput
2
2
  extend ActiveSupport::Autoload
3
3
 
4
4
  def input_html_options
@@ -1,5 +1,7 @@
1
1
  require 'formtastic_auto_select2/version'
2
2
  require 'formtastic_auto_select2/engine'
3
+ require 'formtastic_auto_select2/infectors'
4
+ Formtastic::Inputs.send(:include, FormtasticAutoSelect2::Infectors::Formtastic::Inputs)
3
5
 
4
6
  module FormtasticAutoSelect2
5
7
  extend ActiveSupport::Autoload
@@ -0,0 +1,6 @@
1
+ module FormtasticAutoSelect2
2
+ module Infectors
3
+ extend ActiveSupport::Autoload
4
+ autoload :Formtastic
5
+ end
6
+ end
@@ -0,0 +1,8 @@
1
+ module FormtasticAutoSelect2
2
+ module Infectors
3
+ module Formtastic
4
+ extend ActiveSupport::Autoload
5
+ autoload :Inputs
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,14 @@
1
+ module FormtasticAutoSelect2
2
+ module Infectors
3
+ module Formtastic
4
+ module Inputs
5
+ extend ActiveSupport::Concern
6
+
7
+ included do
8
+ autoload :Select2Input
9
+ autoload :AjaxSelect2Input
10
+ end
11
+ end
12
+ end
13
+ end
14
+ end
@@ -1,3 +1,3 @@
1
1
  module FormtasticAutoSelect2
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formtastic_auto_select2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitriy Lisichkin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-19 00:00:00.000000000 Z
11
+ date: 2015-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -119,11 +119,14 @@ files:
119
119
  - Gemfile
120
120
  - LICENSE
121
121
  - README.md
122
- - app/inputs/ajax_select2_input.rb
123
- - app/inputs/select2_input.rb
124
122
  - formtastic_auto_select2.gemspec
123
+ - lib/formtastic/inputs/ajax_select2_input.rb
124
+ - lib/formtastic/inputs/select2_input.rb
125
125
  - lib/formtastic_auto_select2.rb
126
126
  - lib/formtastic_auto_select2/engine.rb
127
+ - lib/formtastic_auto_select2/infectors.rb
128
+ - lib/formtastic_auto_select2/infectors/formtastic.rb
129
+ - lib/formtastic_auto_select2/infectors/formtastic/inputs.rb
127
130
  - lib/formtastic_auto_select2/version.rb
128
131
  homepage: https://github.com/tab10id/formtastic_auto_select2
129
132
  licenses: