activeadmin-ajax_filter 0.2.0 → 0.2.1

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: 0615541e8662246ec0d547129a2429e9a4a43d50
4
- data.tar.gz: 28c1e167ae37b2893b37e58e6de7ed1cc40d7e87
3
+ metadata.gz: 374c4336d215f1d32fcd3275cb9a5a79be7b0470
4
+ data.tar.gz: 1179542dc6067ad0ce805f7756c0a7f0c4eba969
5
5
  SHA512:
6
- metadata.gz: 681e7958936fa07a57f811621b0358c2f16c479a17d4d4fc755ba10d5042574c91ed3d441eeeb5020b625fe71b8f8e69c0f6ab920e27e8a769ac31ba059ff159
7
- data.tar.gz: 86b64b3ee8d2d5ba8b638421a7e720ec7fd001465a4666dfb6940dc5afc2d9990e6b699ce2f6e0466daaa77a7e453756626a9c6d9117bcdcf9f03346a1cd3ec9
6
+ metadata.gz: 07c43c23e6e2bdd17591e64aa8a045402b0500229654f0843ee076790e64f8320ada5ebf8b9781c30443bcde8b71b30f4fa1066c36422e8d79ea8e08769361d3
7
+ data.tar.gz: 5b6f87ac8a785b6393f73aa71d48679b7fc3459d869dd0155862e3d2aaa277d5c6103eeb510a6c0f061727b4c7c7cb5e1155de67477a335533160babc6c9e5d7
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
+ [![Gem Version](https://badge.fury.io/rb/activeadmin-ajax_filter.svg)](https://badge.fury.io/rb/activeadmin-ajax_filter)
1
2
  [![Build Status](https://travis-ci.org/holyketzer/activeadmin-ajax_filter.svg?branch=master)](https://travis-ci.org/holyketzer/activeadmin-ajax_filter)
2
3
  [![Code Climate](https://codeclimate.com/github/holyketzer/activeadmin-ajax_filter/badges/gpa.svg)](https://codeclimate.com/github/holyketzer/activeadmin-ajax_filter)
3
4
  [![Test Coverage](https://codeclimate.com/github/holyketzer/activeadmin-ajax_filter/badges/coverage.svg)](https://codeclimate.com/github/holyketzer/activeadmin-ajax_filter/coverage)
4
- [![Gem Version](https://badge.fury.io/rb/activeadmin-ajax_filter.svg)](https://badge.fury.io/rb/activeadmin-ajax_filter)
5
5
 
6
6
  # Activeadmin::AjaxFilter
7
7
 
@@ -9,7 +9,7 @@ This gem extends ActiveAdmin so that your can use filters with AJAX-powered inpu
9
9
 
10
10
  ## Prerequisites
11
11
 
12
- This extension assumes that you're using [Active Admin](https://github.com/activeadmin/activeadmin) with [Ransack](https://github.com/activerecord-hackery/ransack)
12
+ This extension assumes that you're using [Active Admin](https://github.com/activeadmin/activeadmin) with [Ransack](https://github.com/activerecord-hackery/ransack). And for AJAX input it uses [selectize-rails](https://github.com/manuelvanrijn/selectize-rails)
13
13
 
14
14
  ## Installation
15
15
 
@@ -32,12 +32,15 @@ Or install it yourself as:
32
32
  Include this line in your JavaScript code (active_admin.js.coffee)
33
33
 
34
34
  ```coffeescript
35
+ #= require selectize
35
36
  #= require activeadmin-ajax_filter
36
37
  ```
37
38
 
38
39
  Include this line in your CSS code (active_admin.scss)
39
40
 
40
41
  ```scss
42
+ @import "selectize";
43
+ @import "selectize.default";
41
44
  @import "activeadmin-ajax_filter";
42
45
  ```
43
46
 
@@ -20,7 +20,8 @@ Gem::Specification.new do |gem|
20
20
  gem.require_paths = ['lib']
21
21
 
22
22
  gem.add_dependency 'activeadmin', '>= 1.0.0.pre1'
23
- gem.add_dependency 'coffee-rails', '~> 4.1', '>= 4.1.0'
23
+ gem.add_dependency 'coffee-rails', '>= 4.1.0'
24
+ gem.add_dependency 'selectize-rails', '>= 0.11.2'
24
25
  gem.add_development_dependency 'bundler', '~> 1.10'
25
26
  gem.add_development_dependency 'rake', '~> 10.0'
26
27
  gem.add_development_dependency 'rspec', '~> 3.3', '>= 3.3.0'
@@ -4,6 +4,7 @@ module ActiveAdmin
4
4
  module AjaxFilter
5
5
  # Including an Engine tells Rails that this gem contains assets
6
6
  class Engine < ::Rails::Engine
7
+ require 'selectize-rails'
7
8
  end
8
9
  end
9
10
  end
@@ -1,5 +1,5 @@
1
1
  module ActiveAdmin
2
2
  module AjaxFilter
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin-ajax_filter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Emelyanov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-02 00:00:00.000000000 Z
11
+ date: 2016-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeadmin
@@ -28,9 +28,6 @@ dependencies:
28
28
  name: coffee-rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '4.1'
34
31
  - - ">="
35
32
  - !ruby/object:Gem::Version
36
33
  version: 4.1.0
@@ -38,12 +35,23 @@ dependencies:
38
35
  prerelease: false
39
36
  version_requirements: !ruby/object:Gem::Requirement
40
37
  requirements:
41
- - - "~>"
42
- - !ruby/object:Gem::Version
43
- version: '4.1'
44
38
  - - ">="
45
39
  - !ruby/object:Gem::Version
46
40
  version: 4.1.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: selectize-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 0.11.2
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 0.11.2
47
55
  - !ruby/object:Gem::Dependency
48
56
  name: bundler
49
57
  requirement: !ruby/object:Gem::Requirement