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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 260e1b31dcb2d987d2853d8399f8a1b2c94bc94d
4
- data.tar.gz: 1b7830d8ba3f61e1aa26d5f4a95c007628859209
3
+ metadata.gz: e519d551d731eb44ea190f3ba5f8d7ca6593344d
4
+ data.tar.gz: 52fc360f0241e1d57d5e81026b0aa824baa7901a
5
5
  SHA512:
6
- metadata.gz: 26021cc7bbeb295281278dd9fa13d2b99b54bb6b680b0156d3c9cd2e9ccdd921f4bb3a671b488b89bb77e8df278d91cd4fe509678bad0a46fae47bc1acf21ac0
7
- data.tar.gz: d0a9f89019f6e39299add9c4f9797d4ef3e4c462b77b93a5009b1ec3aeafc4a2bf3dcba6586f340fe679863b0d5506b5d9f37fcad2045098ba435ac3266a1e82
6
+ metadata.gz: 43f8f6038d25921ca3d8ae07686eb0fae18ca2dd5db7adc570a5ec66ba4114dd45f4d20ec5eb029bc9d82593d800a404885f41e52f79431ef32da50e8990d1e0
7
+ data.tar.gz: 02930632a6dbfd8dfff17831bb956353d75cd7f0b1064db7543977c00905d17f9e801d5f163c6bef47d52205b6bcc838c900c6d0490e500b9f80d3895b9695c5
@@ -0,0 +1,7 @@
1
+ # Changelog
2
+
3
+ ### 1.0.1 - 2015-11-16
4
+ Release of 1.0.1 :tada:
5
+
6
+ Bug fixes
7
+ - Makes it compatible with Rails 4.2 when rendering an array of tags. (https://github.com/varvet/godmin-tags/pull/5)
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.input_field :title %>
26
- <%= f.text_field :body %>
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 %>
@@ -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", "~> 0.9", ">= 0.9.7"
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"
@@ -2,7 +2,8 @@ module Godmin
2
2
  module Tags
3
3
  module Helper
4
4
  def tags_field(attribute, options = {})
5
- text_field(attribute, options.deep_merge(data: { behavior: "tagger" }))
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
@@ -1,5 +1,5 @@
1
1
  module Godmin
2
2
  module Tags
3
- VERSION = "0.9.2"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
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.9.2
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-03-27 00:00:00.000000000 Z
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.9'
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.9'
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.2.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+