ar_json_serialize 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/.gitignore +1 -0
- data/.rubocop.yml +17 -0
- data/.travis.yml +13 -1
- data/Appraisals +15 -0
- data/Gemfile +14 -3
- data/Guardfile +20 -0
- data/README.md +1 -1
- data/Rakefile +2 -2
- data/ar_json_serialize.gemspec +11 -10
- data/defaults.reek +11 -0
- data/gemfiles/activerecord_3.2.gemfile +23 -0
- data/gemfiles/activerecord_4.0.gemfile +23 -0
- data/gemfiles/activerecord_4.1.gemfile +23 -0
- data/gemfiles/activerecord_4.2.gemfile +23 -0
- data/lib/ar_json_serialize/activerecord_ext.rb +2 -2
- data/lib/ar_json_serialize/serializer.rb +25 -17
- data/lib/ar_json_serialize/version.rb +1 -1
- data/spec/{activerecord_ext_spec.rb → ar_json_serialize/activerecord_ext_spec.rb} +2 -2
- data/spec/{serializer_spec.rb → ar_json_serialize/serializer_spec.rb} +14 -6
- data/spec/spec_helper.rb +12 -12
- metadata +46 -24
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
NTUxZjIxNTU2YTFlZGI1Mzg5M2I5ZDcxNGMxNzc4ZGYyNDU5NmUxZTVkYWZh
|
10
|
-
ZmYzY2YyZjdmYThmYTk1MDNmOTZiN2M4MDYzZGI3ZTg3NThiMWY1M2QxZWE0
|
11
|
-
NjU3YjMzZjYzZjIwYzk4ZTRlNjJmN2IyYWM5YjczM2VlZDBkZGI=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
YWI0YmYyNTdkYTM3ZjNhNzg1MTM2Y2Y5MzljYTg5YzZjNzA3YzBlZmQwNDky
|
14
|
-
MTI2YWZlNTk2NzY2NWU0MGQ0MDg1MmEwZDcwM2JmMmM1ZTY5MjE3MzZlZDdj
|
15
|
-
OTcyMzU1MDRmNDNjMDcxZDg5NjEzODU5OTEzOTRlYmE1YjZmOWQ=
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0091e3ba197f06dab59f00b4e1ad7168ffeb9978
|
4
|
+
data.tar.gz: 2a9e6c6a752e9f411fca65a0a1292be5b7f5c1e5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: aa7bcaa6a2167eac32357d9164b5ec8827f7194fd8f4d9caa83488f28b44661f1069a89c9a82d7bf22e739fd740df1fde86ea0ec841692f11994cc4cbac75a98
|
7
|
+
data.tar.gz: e57fdb646e9197a0d40269be70e461d08ffae2436a9e2b20bed975a664235729e8a04cef3184a8046ea2a872af23ed1ec176b9d013da8e4cc41674402e64d86f
|
data/.gitignore
CHANGED
data/.rubocop.yml
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
AllCops:
|
2
|
+
Include:
|
3
|
+
- '**/Rakefile'
|
4
|
+
Exclude:
|
5
|
+
- 'spec/**/*'
|
6
|
+
Metrics/LineLength:
|
7
|
+
Max: 99
|
8
|
+
Style/FileName:
|
9
|
+
Enabled: false
|
10
|
+
Style/ModuleFunction:
|
11
|
+
Enabled: false
|
12
|
+
Style/Encoding:
|
13
|
+
Enabled: false
|
14
|
+
Documentation:
|
15
|
+
Enabled: false
|
16
|
+
Metrics/MethodLength:
|
17
|
+
Max: 15
|
data/.travis.yml
CHANGED
@@ -1,4 +1,16 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
- 1.9.3
|
4
3
|
- 2.0.0
|
4
|
+
- 2.1
|
5
|
+
- ruby-head
|
6
|
+
- jruby-19mode
|
7
|
+
- rbx-2
|
8
|
+
gemfile:
|
9
|
+
- gemfiles/activerecord_3.2.gemfile
|
10
|
+
- gemfiles/activerecord_4.0.gemfile
|
11
|
+
- gemfiles/activerecord_4.1.gemfile
|
12
|
+
- gemfiles/activerecord_4.2.gemfile
|
13
|
+
matrix:
|
14
|
+
allow_failures:
|
15
|
+
- rvm: ruby-head
|
16
|
+
bundler_args: --without local_development
|
data/Appraisals
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
appraise "activerecord-3.2" do
|
2
|
+
gem "activerecord", "~> 3.2.0"
|
3
|
+
end
|
4
|
+
|
5
|
+
appraise "activerecord-4.0" do
|
6
|
+
gem "activerecord", "~> 4.0.0"
|
7
|
+
end
|
8
|
+
|
9
|
+
appraise "activerecord-4.1" do
|
10
|
+
gem "activerecord", "~> 4.1.0"
|
11
|
+
end
|
12
|
+
|
13
|
+
appraise "activerecord-4.2" do
|
14
|
+
gem "activerecord", "~> 4.2.0.beta4"
|
15
|
+
end
|
data/Gemfile
CHANGED
@@ -1,9 +1,20 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
+
# Specify your gem's dependencies in pipedrive.gemspec
|
4
|
+
gemspec
|
5
|
+
|
3
6
|
group :test do
|
7
|
+
gem 'simplecov', '>= 0.9.0', :require => false
|
4
8
|
gem 'coveralls', :require => false
|
5
|
-
gem 'rspec', '>= 2.14'
|
6
|
-
gem 'simplecov', :require => false
|
7
9
|
end
|
8
10
|
|
9
|
-
|
11
|
+
group :local_development do
|
12
|
+
gem 'terminal-notifier-guard', require: false if RUBY_PLATFORM.downcase.include?('darwin')
|
13
|
+
gem 'guard-rspec', '>= 4.3.1' ,require: false
|
14
|
+
gem 'guard-bundler', require: false
|
15
|
+
gem 'guard-preek', require: false
|
16
|
+
gem 'guard-rubocop', require: false
|
17
|
+
gem 'guard-reek', github: 'pericles/guard-reek', require: false
|
18
|
+
gem 'pry'
|
19
|
+
gem 'appraisal'
|
20
|
+
end
|
data/Guardfile
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
guard 'rspec', cmd: 'rspec' do
|
2
|
+
watch(%r{^spec/.+_spec\.rb$})
|
3
|
+
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
4
|
+
watch('spec/spec_helper.rb') { "spec" }
|
5
|
+
end
|
6
|
+
|
7
|
+
guard 'bundler' do
|
8
|
+
watch('Gemfile')
|
9
|
+
watch('ar_json_serialize.gemspec')
|
10
|
+
end
|
11
|
+
|
12
|
+
guard :rubocop do
|
13
|
+
watch(%r{.+\.rb$})
|
14
|
+
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
|
15
|
+
end
|
16
|
+
|
17
|
+
guard :preek, run_all_dir: 'lib' do
|
18
|
+
watch(/^lib\/(.*).rb/)
|
19
|
+
end
|
20
|
+
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# ActiveRecord Json Serialize
|
2
|
-
[![Coverage Status](https://coveralls.io/repos/
|
2
|
+
[![Coverage Status](https://coveralls.io/repos/dotpromo/ar_json_serialize/badge.png?branch=master)](https://coveralls.io/r/dotpromo/ar_json_serialize?branch=master)[![Build Status](https://travis-ci.org/dotpromo/ar_json_serialize.png?branch=master)](https://travis-ci.org/dotpromo/ar_json_serialize)[![Gem Version](https://badge.fury.io/rb/ar_json_serialize.png)](http://badge.fury.io/rb/ar_json_serialize)[![Code Climate](https://codeclimate.com/github/dotpromo/ar_json_serialize.png)](https://codeclimate.com/github/dotpromo/ar_json_serialize)
|
3
3
|
|
4
4
|
ActiveRecord JSON serializer
|
5
5
|
|
data/Rakefile
CHANGED
data/ar_json_serialize.gemspec
CHANGED
@@ -4,23 +4,24 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
require 'ar_json_serialize/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name =
|
7
|
+
spec.name = 'ar_json_serialize'
|
8
8
|
spec.version = ArJsonSerialize::VERSION
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
11
|
-
spec.description =
|
12
|
-
spec.summary =
|
13
|
-
spec.homepage =
|
14
|
-
spec.license =
|
9
|
+
spec.authors = ['Alexander Simonov']
|
10
|
+
spec.email = ['alex@simonov.me']
|
11
|
+
spec.description = 'ActiveRecord JSON serializer'
|
12
|
+
spec.summary = 'ActiveRecord JSON serializer'
|
13
|
+
spec.homepage = ''
|
14
|
+
spec.license = 'MIT'
|
15
15
|
|
16
|
-
spec.files = `git ls-files`.split(
|
16
|
+
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
-
spec.require_paths = [
|
19
|
+
spec.require_paths = ['lib']
|
20
20
|
|
21
21
|
spec.add_dependency 'multi_json', '~> 1.0'
|
22
|
-
spec.add_dependency 'hashie', '
|
22
|
+
spec.add_dependency 'hashie', '>= 2.0.5'
|
23
23
|
spec.add_dependency 'activerecord', '>= 3.2.13', '< 5'
|
24
24
|
spec.add_development_dependency 'bundler', '~> 1.3'
|
25
|
+
spec.add_development_dependency 'rspec', '>= 3.0.0'
|
25
26
|
spec.add_development_dependency 'rake'
|
26
27
|
end
|
data/defaults.reek
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "activerecord", "~> 3.2.0"
|
6
|
+
|
7
|
+
group :test do
|
8
|
+
gem "simplecov", ">= 0.9.0", :require => false
|
9
|
+
gem "coveralls", :require => false
|
10
|
+
end
|
11
|
+
|
12
|
+
group :local_development do
|
13
|
+
gem "terminal-notifier-guard", :require => false
|
14
|
+
gem "guard-rspec", ">= 4.3.1", :require => false
|
15
|
+
gem "guard-bundler", :require => false
|
16
|
+
gem "guard-preek", :require => false
|
17
|
+
gem "guard-rubocop", :require => false
|
18
|
+
gem "guard-reek", :github => "pericles/guard-reek", :require => false
|
19
|
+
gem "pry"
|
20
|
+
gem "appraisal"
|
21
|
+
end
|
22
|
+
|
23
|
+
gemspec :path => "../"
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "activerecord", "~> 4.0.0"
|
6
|
+
|
7
|
+
group :test do
|
8
|
+
gem "simplecov", ">= 0.9.0", :require => false
|
9
|
+
gem "coveralls", :require => false
|
10
|
+
end
|
11
|
+
|
12
|
+
group :local_development do
|
13
|
+
gem "terminal-notifier-guard", :require => false
|
14
|
+
gem "guard-rspec", ">= 4.3.1", :require => false
|
15
|
+
gem "guard-bundler", :require => false
|
16
|
+
gem "guard-preek", :require => false
|
17
|
+
gem "guard-rubocop", :require => false
|
18
|
+
gem "guard-reek", :github => "pericles/guard-reek", :require => false
|
19
|
+
gem "pry"
|
20
|
+
gem "appraisal"
|
21
|
+
end
|
22
|
+
|
23
|
+
gemspec :path => "../"
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "activerecord", "~> 4.1.0"
|
6
|
+
|
7
|
+
group :test do
|
8
|
+
gem "simplecov", ">= 0.9.0", :require => false
|
9
|
+
gem "coveralls", :require => false
|
10
|
+
end
|
11
|
+
|
12
|
+
group :local_development do
|
13
|
+
gem "terminal-notifier-guard", :require => false
|
14
|
+
gem "guard-rspec", ">= 4.3.1", :require => false
|
15
|
+
gem "guard-bundler", :require => false
|
16
|
+
gem "guard-preek", :require => false
|
17
|
+
gem "guard-rubocop", :require => false
|
18
|
+
gem "guard-reek", :github => "pericles/guard-reek", :require => false
|
19
|
+
gem "pry"
|
20
|
+
gem "appraisal"
|
21
|
+
end
|
22
|
+
|
23
|
+
gemspec :path => "../"
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "activerecord", "~> 4.2.0.beta4"
|
6
|
+
|
7
|
+
group :test do
|
8
|
+
gem "simplecov", ">= 0.9.0", :require => false
|
9
|
+
gem "coveralls", :require => false
|
10
|
+
end
|
11
|
+
|
12
|
+
group :local_development do
|
13
|
+
gem "terminal-notifier-guard", :require => false
|
14
|
+
gem "guard-rspec", ">= 4.3.1", :require => false
|
15
|
+
gem "guard-bundler", :require => false
|
16
|
+
gem "guard-preek", :require => false
|
17
|
+
gem "guard-rubocop", :require => false
|
18
|
+
gem "guard-reek", :github => "pericles/guard-reek", :require => false
|
19
|
+
gem "pry"
|
20
|
+
gem "appraisal"
|
21
|
+
end
|
22
|
+
|
23
|
+
gemspec :path => "../"
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module ArJsonSerialize
|
2
2
|
module ActiveRecordExt
|
3
3
|
def json_serialize(column)
|
4
|
-
|
4
|
+
serialize column, ::ArJsonSerialize::Serializer
|
5
5
|
end
|
6
6
|
end
|
7
7
|
end
|
8
|
-
::ActiveRecord::Base.send :extend, ::ArJsonSerialize::ActiveRecordExt
|
8
|
+
::ActiveRecord::Base.send :extend, ::ArJsonSerialize::ActiveRecordExt
|
@@ -2,27 +2,35 @@ module ArJsonSerialize
|
|
2
2
|
module Serializer
|
3
3
|
extend self
|
4
4
|
|
5
|
-
def load(
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
item.is_a?(::Hash) ? ::Hashie::Mash.new(item) : item
|
14
|
-
end
|
15
|
-
else
|
16
|
-
result
|
17
|
-
end
|
5
|
+
def load(source)
|
6
|
+
return '' unless source.present?
|
7
|
+
result = parse_source(source)
|
8
|
+
case result
|
9
|
+
when ::Hash
|
10
|
+
::Hashie::Mash.new(result)
|
11
|
+
when ::Array
|
12
|
+
parse_array(result)
|
18
13
|
else
|
19
|
-
|
14
|
+
result
|
20
15
|
end
|
21
16
|
end
|
22
17
|
|
23
|
-
def dump(
|
24
|
-
::MultiJson.dump(
|
18
|
+
def dump(source)
|
19
|
+
::MultiJson.dump(source)
|
25
20
|
end
|
26
21
|
|
22
|
+
private
|
23
|
+
|
24
|
+
def parse_source(source)
|
25
|
+
::MultiJson.load(source)
|
26
|
+
rescue
|
27
|
+
source
|
28
|
+
end
|
29
|
+
|
30
|
+
def parse_array(result)
|
31
|
+
result.map do |item|
|
32
|
+
item.is_a?(::Hash) ? ::Hashie::Mash.new(item) : item
|
33
|
+
end
|
34
|
+
end
|
27
35
|
end
|
28
|
-
end
|
36
|
+
end
|
@@ -1,11 +1,11 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
describe ::ArJsonSerialize::ActiveRecordExt do
|
3
3
|
it 'should extend ActiveRecord::Base' do
|
4
|
-
::ActiveRecord::Base.
|
4
|
+
expect(::ActiveRecord::Base).to respond_to(:json_serialize)
|
5
5
|
end
|
6
6
|
|
7
7
|
it 'should call ActiveRecord::Base.serialize' do
|
8
|
-
::ActiveRecord::Base.
|
8
|
+
expect(::ActiveRecord::Base).to receive(:serialize).with('column', ::ArJsonSerialize::Serializer)
|
9
9
|
::ActiveRecord::Base.json_serialize('column')
|
10
10
|
end
|
11
11
|
end
|
@@ -6,18 +6,18 @@ describe ::ArJsonSerialize::Serializer do
|
|
6
6
|
|
7
7
|
context '#load' do
|
8
8
|
it 'should call MultiJson.load' do
|
9
|
-
::MultiJson.
|
9
|
+
expect(::MultiJson).to receive(:load).with('string')
|
10
10
|
subject.load('string')
|
11
11
|
end
|
12
12
|
|
13
13
|
[nil, ''].each do |k|
|
14
14
|
it "should not call MultiJson.load if string is #{k.inspect}" do
|
15
|
-
::MultiJson.
|
15
|
+
expect(::MultiJson).not_to receive(:load)
|
16
16
|
subject.load(k)
|
17
17
|
end
|
18
18
|
|
19
19
|
it "should return empty if string is #{k.inspect}" do
|
20
|
-
subject.load(k).
|
20
|
+
expect(subject.load(k)).to eq('')
|
21
21
|
end
|
22
22
|
|
23
23
|
end
|
@@ -35,7 +35,11 @@ describe ::ArJsonSerialize::Serializer do
|
|
35
35
|
let(:data) { '{"key1":"value1"}' }
|
36
36
|
it { should be_a(::Hashie::Mash) }
|
37
37
|
it { should == {'key1' => 'value1'} }
|
38
|
-
|
38
|
+
|
39
|
+
describe '#key1' do
|
40
|
+
subject { super().key1 }
|
41
|
+
it { should == 'value1' }
|
42
|
+
end
|
39
43
|
end
|
40
44
|
|
41
45
|
context 'Array' do
|
@@ -49,7 +53,11 @@ describe ::ArJsonSerialize::Serializer do
|
|
49
53
|
let(:data) { '["1","2","3",{"key1":"value1"}]' }
|
50
54
|
it { should be_a(::Array) }
|
51
55
|
it { should == ['1', '2', '3', {"key1"=>"value1"}] }
|
52
|
-
|
56
|
+
|
57
|
+
describe '#last' do
|
58
|
+
subject { super().last }
|
59
|
+
it { should be_a(::Hashie::Mash) }
|
60
|
+
end
|
53
61
|
end
|
54
62
|
|
55
63
|
end
|
@@ -60,7 +68,7 @@ describe ::ArJsonSerialize::Serializer do
|
|
60
68
|
|
61
69
|
context '#dump' do
|
62
70
|
it 'should call MultiJson.dump' do
|
63
|
-
::MultiJson.
|
71
|
+
expect(::MultiJson).to receive(:dump).with('foo')
|
64
72
|
subject.dump('foo')
|
65
73
|
end
|
66
74
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
|
2
|
-
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
3
|
-
# Require this file using `require "spec_helper"` to ensure that it is only
|
4
|
-
# loaded once.
|
5
|
-
#
|
6
|
-
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
1
|
+
require 'simplecov'
|
7
2
|
require 'coveralls'
|
8
|
-
|
3
|
+
|
4
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
5
|
+
SimpleCov::Formatter::HTMLFormatter,
|
6
|
+
Coveralls::SimpleCov::Formatter
|
7
|
+
]
|
8
|
+
SimpleCov.start do
|
9
|
+
add_filter 'spec'
|
10
|
+
minimum_coverage(76)
|
11
|
+
end
|
9
12
|
require 'ar_json_serialize'
|
13
|
+
|
10
14
|
RSpec.configure do |config|
|
11
|
-
|
12
|
-
config.run_all_when_everything_filtered = true
|
13
|
-
config.filter_run :focus
|
14
|
-
config.order = 'random'
|
15
|
-
end
|
15
|
+
end
|
metadata
CHANGED
@@ -1,89 +1,103 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ar_json_serialize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Simonov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: hashie
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 2.0.5
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 2.0.5
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: activerecord
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 3.2.13
|
48
|
-
- - <
|
48
|
+
- - "<"
|
49
49
|
- !ruby/object:Gem::Version
|
50
50
|
version: '5'
|
51
51
|
type: :runtime
|
52
52
|
prerelease: false
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
54
54
|
requirements:
|
55
|
-
- -
|
55
|
+
- - ">="
|
56
56
|
- !ruby/object:Gem::Version
|
57
57
|
version: 3.2.13
|
58
|
-
- - <
|
58
|
+
- - "<"
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '5'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: bundler
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
|
-
- - ~>
|
65
|
+
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: '1.3'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
|
-
- - ~>
|
72
|
+
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '1.3'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: rspec
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: 3.0.0
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: 3.0.0
|
75
89
|
- !ruby/object:Gem::Dependency
|
76
90
|
name: rake
|
77
91
|
requirement: !ruby/object:Gem::Requirement
|
78
92
|
requirements:
|
79
|
-
- -
|
93
|
+
- - ">="
|
80
94
|
- !ruby/object:Gem::Version
|
81
95
|
version: '0'
|
82
96
|
type: :development
|
83
97
|
prerelease: false
|
84
98
|
version_requirements: !ruby/object:Gem::Requirement
|
85
99
|
requirements:
|
86
|
-
- -
|
100
|
+
- - ">="
|
87
101
|
- !ruby/object:Gem::Version
|
88
102
|
version: '0'
|
89
103
|
description: ActiveRecord JSON serializer
|
@@ -93,21 +107,29 @@ executables: []
|
|
93
107
|
extensions: []
|
94
108
|
extra_rdoc_files: []
|
95
109
|
files:
|
96
|
-
- .gitignore
|
97
|
-
- .rspec
|
98
|
-
- .
|
110
|
+
- ".gitignore"
|
111
|
+
- ".rspec"
|
112
|
+
- ".rubocop.yml"
|
113
|
+
- ".travis.yml"
|
114
|
+
- Appraisals
|
99
115
|
- Gemfile
|
116
|
+
- Guardfile
|
100
117
|
- LICENSE.txt
|
101
118
|
- README.md
|
102
119
|
- Rakefile
|
103
120
|
- ar_json_serialize.gemspec
|
121
|
+
- defaults.reek
|
122
|
+
- gemfiles/activerecord_3.2.gemfile
|
123
|
+
- gemfiles/activerecord_4.0.gemfile
|
124
|
+
- gemfiles/activerecord_4.1.gemfile
|
125
|
+
- gemfiles/activerecord_4.2.gemfile
|
104
126
|
- lib/ar_json_serialize.rb
|
105
127
|
- lib/ar_json_serialize/activerecord_ext.rb
|
106
128
|
- lib/ar_json_serialize/serializer.rb
|
107
129
|
- lib/ar_json_serialize/version.rb
|
108
|
-
- spec/activerecord_ext_spec.rb
|
130
|
+
- spec/ar_json_serialize/activerecord_ext_spec.rb
|
131
|
+
- spec/ar_json_serialize/serializer_spec.rb
|
109
132
|
- spec/ar_json_serializer_spec.rb
|
110
|
-
- spec/serializer_spec.rb
|
111
133
|
- spec/spec_helper.rb
|
112
134
|
homepage: ''
|
113
135
|
licenses:
|
@@ -119,22 +141,22 @@ require_paths:
|
|
119
141
|
- lib
|
120
142
|
required_ruby_version: !ruby/object:Gem::Requirement
|
121
143
|
requirements:
|
122
|
-
- -
|
144
|
+
- - ">="
|
123
145
|
- !ruby/object:Gem::Version
|
124
146
|
version: '0'
|
125
147
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
126
148
|
requirements:
|
127
|
-
- -
|
149
|
+
- - ">="
|
128
150
|
- !ruby/object:Gem::Version
|
129
151
|
version: '0'
|
130
152
|
requirements: []
|
131
153
|
rubyforge_project:
|
132
|
-
rubygems_version: 2.
|
154
|
+
rubygems_version: 2.2.2
|
133
155
|
signing_key:
|
134
156
|
specification_version: 4
|
135
157
|
summary: ActiveRecord JSON serializer
|
136
158
|
test_files:
|
137
|
-
- spec/activerecord_ext_spec.rb
|
159
|
+
- spec/ar_json_serialize/activerecord_ext_spec.rb
|
160
|
+
- spec/ar_json_serialize/serializer_spec.rb
|
138
161
|
- spec/ar_json_serializer_spec.rb
|
139
|
-
- spec/serializer_spec.rb
|
140
162
|
- spec/spec_helper.rb
|