rom-couchdb 0.3.0 → 0.4.0

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: fc3799e58ea40f480ee12021d67ef7ce304ad123
4
- data.tar.gz: b64e9fd0c5a3d5c92de1e7556d985a341351a9d8
3
+ metadata.gz: 6e35fa5c408ee5e96d8b163dd80104869b8c75ea
4
+ data.tar.gz: 64c9fdb5ca685ee1ef3af57aaaf15e34cb188e8a
5
5
  SHA512:
6
- metadata.gz: 3bbe3afddf294bd5b4d4b0720148bf805d2268c4f4b3d7d1deb26d1db39ba5882275e34cc8534ce45c15e83215d59175e20f12d088e0ec0fa18844a8c58459b9
7
- data.tar.gz: 3a7ab7bfaaf3ae3df02892ab2e39a2c4aaf9b2c565e19634d125e6232c3aa6c8ba986ac52103aaec999486ac2bdec95e7f10b3bad35347991a740f6fe0c52b6e
6
+ metadata.gz: f1abf08580603679391a1c6122c258249d9e1a068fce896320c329dc43da145edfe20df951185c30660c3ffdefd15e5264eb9c62cfe568603118999122113de2
7
+ data.tar.gz: fceec36bfcdcf1b265555ad053ccb983371fc272b3038f221761401b72d21867c04aeae027627b1adf79abcb58972fd5abaf9947713b24aee318a43170a6dd35
data/lib/rom/couchdb.rb CHANGED
@@ -5,6 +5,7 @@ require 'rom/couchdb/gateway'
5
5
  require 'rom/couchdb/dataset'
6
6
  require 'rom/couchdb/relation'
7
7
  require 'rom/couchdb/commands'
8
+ require 'rom/couchdb/transproc_functions'
8
9
 
9
10
  module ROM
10
11
  # CouchDB support for ROM
@@ -54,11 +54,11 @@ module ROM
54
54
  end
55
55
 
56
56
  def stringify_proc
57
- Transproc(:stringify_keys)
57
+ TransprocFunctions[:stringify_keys]
58
58
  end
59
59
 
60
60
  def self.row_proc
61
- Transproc(:symbolize_keys)
61
+ TransprocFunctions[:symbolize_keys]
62
62
  end
63
63
  end
64
64
  end
@@ -4,6 +4,7 @@ module ROM
4
4
  module CouchDB
5
5
  # CouchDB relation support
6
6
  class Relation < ROM::Relation
7
+ adapter :couchdb
7
8
  forward :insert, :find_by_id, :find_by_view
8
9
 
9
10
  def count
@@ -0,0 +1,9 @@
1
+ module ROM
2
+ module CouchDB
3
+ # Collection of Transproc functions used by the adapter
4
+ module TransprocFunctions
5
+ extend Transproc::Registry
6
+ import Transproc::HashTransformations
7
+ end
8
+ end
9
+ end
@@ -1,6 +1,6 @@
1
1
  module ROM
2
2
  # CouchDB support for ROM
3
3
  module CouchDB
4
- VERSION = '0.3.0'
4
+ VERSION = '0.4.0'
5
5
  end
6
6
  end
data/rom-couchdb.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.add_runtime_dependency 'rom', '~> 0.8', '>= 0.8.0'
21
+ spec.add_runtime_dependency 'rom', '~> 0.9.0'
22
22
  spec.add_runtime_dependency 'couchrest'
23
23
 
24
24
  spec.add_development_dependency 'bundler', '~> 1.9'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rom-couchdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hunter Madison
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-06-22 00:00:00.000000000 Z
11
+ date: 2015-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rom
@@ -16,20 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.8'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 0.8.0
19
+ version: 0.9.0
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '0.8'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 0.8.0
26
+ version: 0.9.0
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: couchrest
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -93,6 +87,7 @@ files:
93
87
  - lib/rom/couchdb/dataset.rb
94
88
  - lib/rom/couchdb/gateway.rb
95
89
  - lib/rom/couchdb/relation.rb
90
+ - lib/rom/couchdb/transproc_functions.rb
96
91
  - lib/rom/couchdb/version.rb
97
92
  - rom-couchdb.gemspec
98
93
  homepage: https://github.com/hmadison