georgepalmer-couch_foo 0.7.7 → 0.7.8

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/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 7
4
- :patch: 7
4
+ :patch: 8
@@ -268,6 +268,7 @@ module CouchFoo #:nodoc:
268
268
 
269
269
  def initialize(name, record)
270
270
  @name, @record = name, record
271
+ @name = name.gsub("_", "") if name[0] == '_'[0] # _id and _rev are not valid XML tags
271
272
 
272
273
  @type = compute_type
273
274
  @value = compute_value
@@ -309,7 +310,7 @@ module CouchFoo #:nodoc:
309
310
  type = @record.class.property_types[name.to_sym]
310
311
 
311
312
  # Hack until get these types into properties structure
312
- if name.to_sym == :_id || name.to_sym == :_rev || name.to_sym == :ruby_class
313
+ if name.to_sym == :id || name.to_sym == :rev || name.to_sym == :ruby_class
313
314
  type = String
314
315
  end
315
316
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: georgepalmer-couch_foo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.7
4
+ version: 0.7.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - George Palmer