activeadmin-regex-input 0.0.0 → 0.1.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 +4 -4
- data/.gitignore +2 -1
- data/Gemfile.lock +2 -6
- data/README.md +32 -1
- data/activeadmin-regex-input.gemspec +7 -9
- metadata +18 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d71285f33e39d2cb73cc1a82362b528f70118e8
|
4
|
+
data.tar.gz: af5afdb7fd1a90ddd732f01d9abae2e31ace50b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7b6690915b200151319d19dd76cd924687bbf298a8a01621283b3f6f3cda8ed2e51916636abd71926dde0e1cbd46cbba087595f0b5c0a54f9ba84d122b0fcaf
|
7
|
+
data.tar.gz: ac2c28fd69f2c4940f2821127863a2382e950b29b9b31882e7070866afd69582297634fbeffe30073306e693908bdfcc247573cc732207bba926a6315557f05f
|
data/.gitignore
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
.idea
|
1
|
+
.idea
|
2
|
+
*.gem
|
data/Gemfile.lock
CHANGED
@@ -2,9 +2,8 @@ PATH
|
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
4
|
activeadmin-regex-input (0.0.0)
|
5
|
-
activeadmin
|
5
|
+
activeadmin (~> 1.0)
|
6
6
|
jquery-rails
|
7
|
-
rails-assets-webui-popover
|
8
7
|
|
9
8
|
GEM
|
10
9
|
remote: https://rubygems.org/
|
@@ -103,9 +102,6 @@ GEM
|
|
103
102
|
rack (2.0.4)
|
104
103
|
rack-test (0.8.3)
|
105
104
|
rack (>= 1.0, < 3)
|
106
|
-
rails-assets-jquery (3.3.1)
|
107
|
-
rails-assets-webui-popover (2.1.15)
|
108
|
-
rails-assets-jquery (>= 1.7.0)
|
109
105
|
rails-dom-testing (2.0.3)
|
110
106
|
activesupport (>= 4.2.0)
|
111
107
|
nokogiri (>= 1.6)
|
@@ -149,7 +145,7 @@ PLATFORMS
|
|
149
145
|
DEPENDENCIES
|
150
146
|
activeadmin-regex-input!
|
151
147
|
bundler (~> 1.5)
|
152
|
-
rake
|
148
|
+
rake (~> 12)
|
153
149
|
|
154
150
|
BUNDLED WITH
|
155
151
|
1.16.1
|
data/README.md
CHANGED
@@ -2,4 +2,35 @@
|
|
2
2
|
|
3
3
|
## Description
|
4
4
|
|
5
|
-
A simple input with checking at client if input match predefined regex
|
5
|
+
A simple filter input for active admin with checking at client if input match predefined regex.
|
6
|
+
|
7
|
+

|
8
|
+
|
9
|
+
## Dependency
|
10
|
+
|
11
|
+
* activeadmin 1.0.0 pre
|
12
|
+
* rails-assets-webui-popover (Require manual install)
|
13
|
+
* jquery-rails 3.1
|
14
|
+
|
15
|
+
## Installation
|
16
|
+
|
17
|
+
Add following lines to the Gemfile:
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
gem 'rails-assets-webui-popover', source: 'https://rails-assets.org'
|
21
|
+
gem 'activeadmin-regex-input', '~> 0.1'
|
22
|
+
```
|
23
|
+
|
24
|
+
Then execute `bundle` to install to your activeadmin project.
|
25
|
+
|
26
|
+
|
27
|
+
## Usage
|
28
|
+
In the index section of activeadmin controller:
|
29
|
+
```ruby
|
30
|
+
filter :sample_regex,
|
31
|
+
as: :regex,
|
32
|
+
regex: ']d+',
|
33
|
+
example: '123'
|
34
|
+
```
|
35
|
+
|
36
|
+
The regex option is the string representation of the regex. This must compatible with javascript default regex engine.
|
@@ -4,22 +4,20 @@ require 'activeadmin/regex-input/version'
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = 'activeadmin-regex-input'
|
7
|
-
s.version = '0.
|
8
|
-
s.date = '2018-03-
|
7
|
+
s.version = '0.1.0'
|
8
|
+
s.date = '2018-03-14'
|
9
9
|
s.summary = "Formtastic Regex Input"
|
10
|
-
s.description = "A simple input for
|
10
|
+
s.description = "A simple filter input for active admin with checking at client if input match predefined regex."
|
11
11
|
s.authors = ["Canh Nguyen"]
|
12
12
|
s.email = 'xuancanh.1994@gmail.com'
|
13
13
|
s.files = `git ls-files -z`.split("\x0")
|
14
|
-
s.homepage =
|
15
|
-
'http://rubygems.org/gems/hola'
|
14
|
+
s.homepage = 'https://github.com/xuancanh/activeadmin-regex-input'
|
16
15
|
s.license = 'MIT'
|
17
16
|
s.require_paths = ['lib']
|
18
17
|
|
19
18
|
s.add_development_dependency "bundler", "~> 1.5"
|
20
|
-
s.add_development_dependency "rake"
|
19
|
+
s.add_development_dependency "rake", "~> 12"
|
21
20
|
|
22
|
-
s.add_runtime_dependency 'activeadmin'
|
23
|
-
s.add_runtime_dependency 'jquery-rails'
|
24
|
-
s.add_runtime_dependency 'rails-assets-webui-popover'
|
21
|
+
s.add_runtime_dependency 'activeadmin', '~> 1.0'
|
22
|
+
s.add_runtime_dependency 'jquery-rails', '~> 3.1'
|
25
23
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeadmin-regex-input
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Canh Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -28,60 +28,46 @@ dependencies:
|
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '12'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '12'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: activeadmin
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
47
|
+
version: '1.0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
54
|
+
version: '1.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: jquery-rails
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rails-assets-webui-popover
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
59
|
+
- - "~>"
|
74
60
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
61
|
+
version: '3.1'
|
76
62
|
type: :runtime
|
77
63
|
prerelease: false
|
78
64
|
version_requirements: !ruby/object:Gem::Requirement
|
79
65
|
requirements:
|
80
|
-
- - "
|
66
|
+
- - "~>"
|
81
67
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
83
|
-
description: A simple input for
|
84
|
-
regex.
|
68
|
+
version: '3.1'
|
69
|
+
description: A simple filter input for active admin with checking at client if input
|
70
|
+
match predefined regex.
|
85
71
|
email: xuancanh.1994@gmail.com
|
86
72
|
executables: []
|
87
73
|
extensions: []
|
@@ -99,7 +85,7 @@ files:
|
|
99
85
|
- lib/activeadmin/regex-input/engine.rb
|
100
86
|
- lib/activeadmin/regex-input/version.rb
|
101
87
|
- lib/formtastic/regex-input.rb
|
102
|
-
homepage:
|
88
|
+
homepage: https://github.com/xuancanh/activeadmin-regex-input
|
103
89
|
licenses:
|
104
90
|
- MIT
|
105
91
|
metadata: {}
|
@@ -119,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
105
|
version: '0'
|
120
106
|
requirements: []
|
121
107
|
rubyforge_project:
|
122
|
-
rubygems_version: 2.
|
108
|
+
rubygems_version: 2.6.11
|
123
109
|
signing_key:
|
124
110
|
specification_version: 4
|
125
111
|
summary: Formtastic Regex Input
|