godmin-tags 0.9.2 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +2 -2
- data/godmin-tags.gemspec +1 -1
- data/lib/godmin/tags/helper.rb +2 -1
- data/lib/godmin/tags/version.rb +1 -1
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e519d551d731eb44ea190f3ba5f8d7ca6593344d
|
4
|
+
data.tar.gz: 52fc360f0241e1d57d5e81026b0aa824baa7901a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43f8f6038d25921ca3d8ae07686eb0fae18ca2dd5db7adc570a5ec66ba4114dd45f4d20ec5eb029bc9d82593d800a404885f41e52f79431ef32da50e8990d1e0
|
7
|
+
data.tar.gz: 02930632a6dbfd8dfff17831bb956353d75cd7f0b1064db7543977c00905d17f9e801d5f163c6bef47d52205b6bcc838c900c6d0490e500b9f80d3895b9695c5
|
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
@@ -22,8 +22,8 @@ Use the tags field in your form like so:
|
|
22
22
|
|
23
23
|
```erb
|
24
24
|
<%= form_for(@resource) do |f| %>
|
25
|
-
<%= f.
|
26
|
-
<%= f.
|
25
|
+
<%= f.text_field :title %>
|
26
|
+
<%= f.text_area :body %>
|
27
27
|
|
28
28
|
<%= f.tags_field :tags, data: { collection: Tag.all.pluck(:name) } %>
|
29
29
|
<% end %>
|
data/godmin-tags.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |gem|
|
|
19
19
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
20
20
|
gem.require_paths = ["lib"]
|
21
21
|
|
22
|
-
gem.add_dependency "godmin", "
|
22
|
+
gem.add_dependency "godmin", "< 2.0", ">= 0.9.7"
|
23
23
|
|
24
24
|
gem.add_development_dependency "bundler", "~> 1.7"
|
25
25
|
gem.add_development_dependency "rake", "~> 10.0"
|
data/lib/godmin/tags/helper.rb
CHANGED
@@ -2,7 +2,8 @@ module Godmin
|
|
2
2
|
module Tags
|
3
3
|
module Helper
|
4
4
|
def tags_field(attribute, options = {})
|
5
|
-
|
5
|
+
defaults = { value: object.send(attribute).to_s, data: { behavior: "tagger" } }
|
6
|
+
text_field(attribute, defaults.deep_merge(options))
|
6
7
|
end
|
7
8
|
end
|
8
9
|
end
|
data/lib/godmin/tags/version.rb
CHANGED
metadata
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: godmin-tags
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Varvet
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: godmin
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "<"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0
|
19
|
+
version: '2.0'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 0.9.7
|
@@ -24,9 +24,9 @@ dependencies:
|
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- - "
|
27
|
+
- - "<"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0
|
29
|
+
version: '2.0'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 0.9.7
|
@@ -67,6 +67,7 @@ extra_rdoc_files: []
|
|
67
67
|
files:
|
68
68
|
- ".gitignore"
|
69
69
|
- ".rubocop.yml"
|
70
|
+
- CHANGELOG.md
|
70
71
|
- Gemfile
|
71
72
|
- MIT-LICENSE
|
72
73
|
- README.md
|
@@ -97,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
98
|
version: '0'
|
98
99
|
requirements: []
|
99
100
|
rubyforge_project:
|
100
|
-
rubygems_version: 2.
|
101
|
+
rubygems_version: 2.4.5
|
101
102
|
signing_key:
|
102
103
|
specification_version: 4
|
103
104
|
summary: Tags for the Godmin admin engine for Rails 4+
|