protobuf-activerecord 3.0.1 → 3.0.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6b02de903810739a4032c21ae5330266f7f05a1
|
4
|
+
data.tar.gz: 9f48864fd8a844c93121efda3b354f571d6e9285
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b293ba256d3ecbcf156dc47ff5171298d309c3b1ab8d136e1d25d17b60c3dab0a585b3ab66e4bbac016a001f1e631271d1134ef10f99e409bd94e88f2b08e86
|
7
|
+
data.tar.gz: 5cdd36e39872815d4998265e148d5c4134086c4c5ca464807cdef1dd73b6d0cb474ab23b2f2cec7bacd2bf84689b7d5b698b0af21553e9c398d98828eae50fac
|
@@ -3,6 +3,14 @@ require 'active_support/concern'
|
|
3
3
|
require 'heredity'
|
4
4
|
require 'protobuf'
|
5
5
|
|
6
|
+
# To support Rails 4 apps that use Mass-Assignment Security, attempt to
|
7
|
+
# load the protected_attributes gem. If it's not present, move along...
|
8
|
+
begin
|
9
|
+
require 'protected_attributes'
|
10
|
+
rescue LoadError
|
11
|
+
# These aren't the droids you're looking for... move along.
|
12
|
+
end
|
13
|
+
|
6
14
|
require 'protobuf/active_record/config'
|
7
15
|
require 'protobuf/active_record/model'
|
8
16
|
require 'protobuf/active_record/version'
|
@@ -4,10 +4,8 @@ module Protobuf
|
|
4
4
|
config.protobuf_active_record = Protobuf::ActiveRecord.config
|
5
5
|
|
6
6
|
ActiveSupport.on_load(:active_record) do
|
7
|
-
|
8
|
-
|
9
|
-
include Protobuf::ActiveRecord::Model
|
10
|
-
end
|
7
|
+
on_inherit do
|
8
|
+
include Protobuf::ActiveRecord::Model if Protobuf::ActiveRecord.config.autoload
|
11
9
|
end
|
12
10
|
end
|
13
11
|
end
|
@@ -3,36 +3,37 @@ lib = File.expand_path('../lib', __FILE__)
|
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
4
|
require 'protobuf/active_record/version'
|
5
5
|
|
6
|
-
Gem::Specification.new do |
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "protobuf-activerecord"
|
8
|
+
spec.version = Protobuf::ActiveRecord::VERSION
|
9
|
+
spec.authors = ["Adam Hutchison"]
|
10
|
+
spec.email = ["liveh2o@gmail.com"]
|
11
|
+
spec.homepage = "http://github.com/liveh2o/protobuf-activerecord"
|
12
|
+
spec.summary = %q{Google Protocol Buffers integration for Active Record}
|
13
|
+
spec.description = %q{Provides the ability to create Active Record objects from Protocol Buffer messages and vice versa.}
|
14
|
+
spec.license = 'MIT'
|
14
15
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
19
20
|
|
20
21
|
##
|
21
22
|
# Dependencies
|
22
23
|
#
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
24
|
+
spec.add_dependency "activerecord", ">= 3.2.0"
|
25
|
+
spec.add_dependency "activesupport", ">= 3.2.0"
|
26
|
+
spec.add_dependency "heredity", ">= 0.1.1"
|
27
|
+
spec.add_dependency "protobuf", ">= 2.2.0"
|
27
28
|
|
28
29
|
##
|
29
30
|
# Development dependencies
|
30
31
|
#
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
32
|
+
spec.add_development_dependency "rake"
|
33
|
+
spec.add_development_dependency "rspec"
|
34
|
+
spec.add_development_dependency "rspec-pride"
|
35
|
+
spec.add_development_dependency "pry-nav"
|
36
|
+
spec.add_development_dependency "simplecov"
|
37
|
+
spec.add_development_dependency "sqlite3"
|
38
|
+
spec.add_development_dependency "timecop"
|
38
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: protobuf-activerecord
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Hutchison
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -210,7 +210,8 @@ files:
|
|
210
210
|
- spec/support/protobuf.rb
|
211
211
|
- spec/support/protobuf/user.pb.rb
|
212
212
|
homepage: http://github.com/liveh2o/protobuf-activerecord
|
213
|
-
licenses:
|
213
|
+
licenses:
|
214
|
+
- MIT
|
214
215
|
metadata: {}
|
215
216
|
post_install_message:
|
216
217
|
rdoc_options: []
|
@@ -228,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
228
229
|
version: '0'
|
229
230
|
requirements: []
|
230
231
|
rubyforge_project:
|
231
|
-
rubygems_version: 2.1.
|
232
|
+
rubygems_version: 2.1.11
|
232
233
|
signing_key:
|
233
234
|
specification_version: 4
|
234
235
|
summary: Google Protocol Buffers integration for Active Record
|