mongoid-tags-arent-hard 1.0.2 → 1.0.3

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.
@@ -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__, :delete, :&, :to_ary, :to_json, to: :tag_list
7
+ delegate :join, :map, :each, :inspect, :==, :===, :eql?, :__bson_dump__, :delete, :&, :to_ary, :to_json, :as_json, 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.2"
5
+ VERSION = "1.0.3"
6
6
  end
7
7
  end
8
8
  end
@@ -71,4 +71,12 @@ describe Mongoid::TagsArentHard::Tags do
71
71
 
72
72
  end
73
73
 
74
+ describe 'as_json' do
75
+
76
+ it "returns the underlying array" do
77
+ tags.as_json.should eql(["foo", "bar", "baz"])
78
+ end
79
+
80
+ end
81
+
74
82
  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.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: