mongoid-tags-arent-hard 1.1.4 → 1.1.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c07a5ad9f79751620008650dd735bf2901a4175
4
- data.tar.gz: 6144978084a1704c7acdf8f07b2895d3f95b60cb
3
+ metadata.gz: 04ff741a958d79e3245f0787eedeb1ec1c3b50a6
4
+ data.tar.gz: b1ee72084fda6bb839696bd5090f04e10a7c322f
5
5
  SHA512:
6
- metadata.gz: d0b6ed31ce2833dc05c85fb0e572b6ff7664db0d03fe499a5ac72c61ba07cdc4103828db566ab0fb0cedcd1061f7fe6b79ef013a92dcf7eb7a69f595347ec7de
7
- data.tar.gz: 7009e6674ce1405500b287d653d6a9b8de7e86194b09c88d223174ce40c2f9f21a8a4f39ae420671dcce68ed3a7e1280b7fdd203cc5f72ead3c1088a17c9b4d3
6
+ metadata.gz: 04eeae4ef6500b0556986a1621aa531c4dbe103a274d0ce6ad4fa2034a0b1b19dbf7041e354d325d886ec739d363183691060e6c86ecd8ebee081951addf6fa4
7
+ data.tar.gz: 1da1b73bd1ff4be4cf99e1e5334c707151e94a27ffde9f830285e22185919f8525d058fa1597b3be683b8c5bf7150e798145458519a7295e7f47500705f573a9
data/README.md CHANGED
@@ -105,8 +105,9 @@ Again, notice that you can use either a string, an array, or a splatted list as
105
105
  ## Contributers
106
106
 
107
107
  * Mark Bates
108
- * Dave South
109
108
  * Luke Bergen
109
+ * Dave South
110
110
  * Carsten Block
111
+ * Laurent Arnoud
112
+ * Kevin Incorvia
111
113
  * thomas morgan
112
- * Laurent Arnoud
@@ -16,7 +16,7 @@ module Mongoid
16
16
  unless val.is_a?(Mongoid::TagsArentHard::Tags)
17
17
  options.merge!(owner: self)
18
18
  val = Mongoid::TagsArentHard::Tags.new(val, options)
19
- self.send("#{name}=", val)
19
+ self.send("#{name}=", val) unless self.frozen?
20
20
  end
21
21
  return val
22
22
  end
@@ -2,7 +2,7 @@ module Mongoid
2
2
  module Tags
3
3
  module Arent
4
4
  module Hard
5
- VERSION = "1.1.4"
5
+ VERSION = "1.1.5"
6
6
  end
7
7
  end
8
8
  end
@@ -36,6 +36,14 @@ describe Mongoid::TagsArentHard do
36
36
  foo.send(_name).should eql(["foo","bar"])
37
37
  end
38
38
 
39
+ it "does not raise an error when reading frozen objects" do
40
+ expect {
41
+ foo.send("#{_name}=", ["foo", "bar"])
42
+ foo.freeze
43
+ foo.send(_name)
44
+ }.to_not raise_error
45
+ end
46
+
39
47
  end
40
48
 
41
49
  describe '#save' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-tags-arent-hard
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Bates
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-24 00:00:00.000000000 Z
11
+ date: 2013-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
65
  version: '0'
66
66
  requirements: []
67
67
  rubyforge_project:
68
- rubygems_version: 2.0.3
68
+ rubygems_version: 2.1.11
69
69
  signing_key:
70
70
  specification_version: 4
71
71
  summary: A tagging gem for Mongoid 3 that doesn't actually suck.
@@ -74,4 +74,3 @@ test_files:
74
74
  - spec/spec_helper.rb
75
75
  - spec/tags_arent_hard/tags_arent_hard_spec.rb
76
76
  - spec/tags_arent_hard/tags_spec.rb
77
- has_rdoc: