protobuf-activerecord 2.1.0.beta2 → 2.1.0.beta3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,8 @@
1
+ require 'active_record'
2
+ require 'active_support/concern'
1
3
  require 'heredity'
2
4
  require 'protobuf'
5
+
3
6
  require 'protobuf/activerecord/version'
4
7
  require 'protobuf/activerecord/protobuf_ext/message'
5
8
  require 'protobuf/activerecord/protoable'
@@ -126,7 +126,7 @@ module Protoable
126
126
  def _filtered_fields(options = {})
127
127
  exclude_deprecated = ! options.fetch(:deprecated, true)
128
128
 
129
- fields = self.class.protobuf_message.fields.map do |field|
129
+ fields = self.class.protobuf_message.all_fields.map do |field|
130
130
  next if field.nil?
131
131
  next if exclude_deprecated && field.deprecated?
132
132
  field.name.to_sym
@@ -1,5 +1,5 @@
1
1
  module Protobuf
2
2
  module ActiveRecord
3
- VERSION = "2.1.0.beta2"
3
+ VERSION = "2.1.0.beta3"
4
4
  end
5
5
  end
@@ -21,6 +21,7 @@ Gem::Specification.new do |gem|
21
21
  # Dependencies
22
22
  #
23
23
  gem.add_dependency "activerecord"
24
+ gem.add_dependency "activesupport"
24
25
  gem.add_dependency "heredity"
25
26
  gem.add_dependency "protobuf", ">= 2.1.3"
26
27
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protobuf-activerecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0.beta2
4
+ version: 2.1.0.beta3
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-15 00:00:00.000000000 Z
12
+ date: 2013-07-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -27,6 +27,22 @@ dependencies:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: activesupport
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
30
46
  - !ruby/object:Gem::Dependency
31
47
  name: heredity
32
48
  requirement: !ruby/object:Gem::Requirement
@@ -240,7 +256,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
240
256
  version: '0'
241
257
  segments:
242
258
  - 0
243
- hash: 1690905845490164908
259
+ hash: -192720840553527323
244
260
  required_rubygems_version: !ruby/object:Gem::Requirement
245
261
  none: false
246
262
  requirements: