mongoid-tags-arent-hard 1.0.0 → 1.0.1

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.
data/README.md CHANGED
@@ -45,9 +45,9 @@ foo.tags #=> ["a", "b", "c"]
45
45
  foo.colors #=> ["red", "blue"]
46
46
 
47
47
  # append with either a string or an array:
48
- foo.tags << "d"
49
- foo.tags #=> ["a", "b", "c", "d"]
50
- foo.colors << ["green", "yellow"]
48
+ foo.tags &lt;&lt; "d,e"
49
+ foo.tags #=> ["a", "b", "c", "d", "e"]
50
+ foo.colors &lt;&lt; ["green", "yellow"]
51
51
  foo.colors #=> ["red", "blue", "green", "yellow"]
52
52
 
53
53
  # set with either a string or an array:
@@ -4,7 +4,7 @@ module Mongoid
4
4
 
5
5
  attr_accessor :tag_list
6
6
  attr_accessor :options
7
- delegate :join, :map, :each, :inspect, :==, :===, :eql?, :__bson_dump__, to: :tag_list
7
+ delegate :join, :map, :each, :inspect, :==, :===, :eql?, :__bson_dump__, :delete, :&, :to_ary, to: :tag_list
8
8
 
9
9
  def initialize(*tag_list, options)
10
10
  self.options = {separator: Mongoid::TagsArentHard.config.separator}.merge(options)
@@ -2,7 +2,7 @@ module Mongoid
2
2
  module Tags
3
3
  module Arent
4
4
  module Hard
5
- VERSION = "1.0.0"
5
+ VERSION = "1.0.1"
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-tags-arent-hard
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: