undo-serializer-active_model 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0a4ec5bcacb3638878a79d5e60e93f3626dde010
4
+ data.tar.gz: 1b0eaee4551693527cd8aead5939ffc3dbea6e7e
5
+ SHA512:
6
+ metadata.gz: 6b04a31a1a2ee35c1962ea8d9aa6bd8e308b013015e14cc0dd63a3126f9014484924a6beb8def6f4fca28766e9c21cb4c6311d1cdfd2e803391f2ec0a9236591
7
+ data.tar.gz: fc5137b2f4ad7e211a5b239ce7d1c2aae1c77341f4ae61553f0eca116606aa2481549d2fa34756edd4c98f587e3616a9f23f2aba8fbc77508db313df9a650109
data/.coveralls.yml ADDED
@@ -0,0 +1 @@
1
+ service_name: travis-ci
data/.gitignore ADDED
@@ -0,0 +1,18 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ /tags
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --colour
2
+ --format documentation
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ undo-serializer-active_model
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.1.0-p0
data/.travis.yml ADDED
@@ -0,0 +1,19 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1
4
+ - 2.0
5
+ - 1.9.3
6
+ - ruby-head
7
+ - rbx
8
+ - jruby-19mode
9
+ - jruby-head
10
+
11
+ matrix:
12
+ allow_failures:
13
+ - rvm: ruby-head
14
+ - rvm: rbx
15
+ - rvm: jruby-19mode
16
+ - rvm: jruby-head
17
+
18
+ script:
19
+ - "bundle exec rake ci:all"
data/Gemfile ADDED
@@ -0,0 +1,22 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
3
+
4
+ group :test do
5
+ gem 'rails', '4.0.2'
6
+ gem "activerecord-jdbcsqlite3-adapter", :platform => :jruby
7
+ gem "sqlite3", :platform => [:ruby, :mswin, :mingw]
8
+ gem 'factory_girl'
9
+ gem 'faker'
10
+ if !!ENV['CI']
11
+ gem "coveralls"
12
+ else
13
+ gem "pry"
14
+ gem "pry-plus" if "ruby" == RUBY_ENGINE
15
+ end
16
+ end
17
+
18
+ platforms :rbx do
19
+ gem 'racc'
20
+ gem 'rubysl', '~> 2.0'
21
+ gem 'psych'
22
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Alexander Paramonov
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,104 @@
1
+ Undo
2
+ ==========
3
+ [![Build Status](https://travis-ci.org/AlexParamonov/undo-serializer-active_model.png?branch=master)](https://travis-ci.org/AlexParamonov/undo-serializer-active_model)
4
+ [![Gemnasium Build Status](https://gemnasium.com/AlexParamonov/undo-serializer-active_model.png)](http://gemnasium.com/AlexParamonov/undo-serializer-active_model)
5
+ [![Coverage Status](https://coveralls.io/repos/AlexParamonov/undo-serializer-active_model/badge.png?branch=master)](https://coveralls.io/r/AlexParamonov/undo-serializer-active_model?branch=master)
6
+ [![Gem Version](https://badge.fury.io/rb/undo-serializer-active_model.png)](http://badge.fury.io/rb/undo-serializer-active_model)
7
+
8
+ ActiveModel serializer
9
+
10
+ Contents
11
+ ---------
12
+ 1. Installation
13
+ 1. Requirements
14
+ 1. Contacts
15
+ 1. Compatibility
16
+ 1. Contributing
17
+ 1. Copyright
18
+
19
+ Installation
20
+ ------------
21
+
22
+ Add this line to your application's Gemfile:
23
+
24
+ gem 'undo-serializer-active_model'
25
+
26
+ And then execute:
27
+
28
+ $ bundle
29
+
30
+ Or install it yourself as:
31
+
32
+ $ gem install undo-serializer-active_model
33
+
34
+ Requirements
35
+ ------------
36
+ 1. Ruby >= 1.9
37
+ 1. `active_model_serializers` "~> 0.8"
38
+ 1. `activesupport` (`active_model_serializers` depends on it too)
39
+
40
+ Usage
41
+ ------------
42
+
43
+ It is required to set `somethig___association_class_name` as `key` in `active_model_serializer`:
44
+ ``` ruby
45
+ class UserSerializer < ActiveModel::Serializer
46
+ attributes *User.attribute_names.map(&:to_sym)
47
+ has_many :roles, key: :has_many___roles
48
+ end
49
+ ```
50
+
51
+ Gem is designed to be used with Undo gem.
52
+ Add it in global config:
53
+
54
+ ``` ruby
55
+ Undo.configure do |config|
56
+ config.serializer = Undo::Serializer::ActiveModel.new
57
+ end
58
+ ```
59
+
60
+ or use in place:
61
+ ``` ruby
62
+ Undo.wrap user, serializer: Undo::Serializer::ActiveModel.new
63
+ Undo.restore uuid, serializer: Undo::Serializer::ActiveModel.new
64
+ ```
65
+
66
+ In place using the specific serializer from `gem active_model_serializers`:
67
+ ``` ruby
68
+ Undo.wrap user, serializer: Undo::Serializer::ActiveModel.new(UserSerializer.new(user))
69
+ ```
70
+
71
+
72
+ Contacts
73
+ -------------
74
+ Have questions or recommendations? Contact me via `alexander.n.paramonov@gmail.com`
75
+ Found a bug or have enhancement request? You are welcome at [Github bugtracker](https://github.com/AlexParamonov/undo-serializer-active_model/issues)
76
+
77
+
78
+ Compatibility
79
+ -------------
80
+ tested with Ruby
81
+
82
+ * 2.1
83
+ * 2.0
84
+ * 1.9.3
85
+ * ruby-head
86
+ * rbx
87
+ * jruby-19mode
88
+ * jruby-head
89
+
90
+ See [build history](http://travis-ci.org/#!/AlexParamonov/undo-serializer-active_model/builds)
91
+
92
+
93
+ ## Contributing
94
+
95
+ 1. Fork repository ( http://github.com/AlexParamonov/undo-serializer-active_model/fork )
96
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
97
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
98
+ 4. Push to the branch (`git push origin my-new-feature`)
99
+ 5. Create new Pull Request
100
+
101
+ Copyright
102
+ ---------
103
+ Copyright © 2014 Alexander Paramonov.
104
+ Released under the MIT License. See the LICENSE file for further details.
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ require 'rspec/core/rake_task'
4
+ namespace :ci do
5
+ desc "Run tests on CI"
6
+ RSpec::Core::RakeTask.new('all') do |t|
7
+ t.rspec_opts = '-fprogress'
8
+ t.verbose = true
9
+ end
10
+ end
@@ -0,0 +1,50 @@
1
+ module Undo
2
+ module Serializer
3
+ class ActiveModel
4
+ VERSION = "0.0.1"
5
+
6
+ def initialize(model_serializer = nil)
7
+ @model_serializer = model_serializer
8
+ end
9
+
10
+ def serialize(object)
11
+ model_serializer(object).as_json
12
+ end
13
+
14
+ def deserialize(hash)
15
+ hash.each do |object_class, data|
16
+ next unless data.is_a? Hash
17
+ data.stringify_keys!
18
+
19
+ object_class = object_class.to_s.camelize.constantize
20
+ object = object_class.where(id: data.fetch("id")).first_or_initialize
21
+
22
+ data.each do |field, value|
23
+ next if "id" == field && object.persisted?
24
+ _, association = field.to_s.split("___")
25
+ if association
26
+ deserialize_association(association, value)
27
+ else
28
+ object.send "#{field}=", value # not public_send!
29
+ end
30
+ end
31
+
32
+ object.save!
33
+ return object
34
+ end
35
+ end
36
+
37
+ private
38
+ def model_serializer(object)
39
+ @model_serializer ||= object.active_model_serializer
40
+ @model_serializer.new object
41
+ end
42
+
43
+ def deserialize_association(association, values)
44
+ Array.wrap(values).each do |value|
45
+ deserialize(association.singularize => value)
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
data/spec/factories.rb ADDED
@@ -0,0 +1,11 @@
1
+ FactoryGirl.define do
2
+ factory :user do
3
+ name { Faker::Name.name }
4
+ email { Faker::Internet.email }
5
+ end
6
+
7
+ factory :role do
8
+ name { Faker::Name.name }
9
+ user { create :user }
10
+ end
11
+ end
@@ -0,0 +1,4 @@
1
+ .bundle
2
+ db/*.sqlite3
3
+ log/*.log
4
+ tmp/
@@ -0,0 +1,7 @@
1
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
2
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
+
4
+ require File.expand_path('../config/application', __FILE__)
5
+ require 'rake'
6
+
7
+ RailsApp::Application.load_tasks
File without changes
@@ -0,0 +1,3 @@
1
+ class Role < ActiveRecord::Base
2
+ belongs_to :user
3
+ end
@@ -0,0 +1,3 @@
1
+ class User < ActiveRecord::Base
2
+ has_many :roles, dependent: :delete_all
3
+ end
@@ -0,0 +1,6 @@
1
+ require "active_model_serializers"
2
+
3
+ class UserSerializer < ActiveModel::Serializer
4
+ attributes *User.attribute_names.map(&:to_sym)
5
+ has_many :roles, key: :has_many___roles
6
+ end
@@ -0,0 +1,13 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ require "rails/all"
4
+
5
+ # If you have a Gemfile, require the gems listed there, including any gems
6
+ # you've limited to :test, :development, or :production.
7
+ Bundler.require(:default, Rails.env) if defined?(Bundler)
8
+
9
+ module RailsApp
10
+ class Application < Rails::Application
11
+ I18n.enforce_available_locales = false
12
+ end
13
+ end
@@ -0,0 +1,6 @@
1
+ require 'rubygems'
2
+
3
+ # Set up gems listed in the Gemfile.
4
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
5
+
6
+ require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
@@ -0,0 +1,4 @@
1
+ test:
2
+ adapter: <%= "jruby" == RUBY_ENGINE ? "jdbcsqlite3" : "sqlite3" %>
3
+ database: ":memory:"
4
+ timeout: 5000
@@ -0,0 +1,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ RailsApp::Application.initialize!
@@ -0,0 +1,34 @@
1
+ RailsApp::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+ config.eager_load = false
10
+
11
+ # Show full error reports and disable caching
12
+ config.consider_all_requests_local = true
13
+ config.action_controller.perform_caching = false
14
+
15
+ # Raise exceptions instead of rendering exception templates
16
+ config.action_dispatch.show_exceptions = false
17
+
18
+ # Disable request forgery protection in test environment
19
+ config.action_controller.allow_forgery_protection = false
20
+
21
+ # Tell Action Mailer not to deliver emails to the real world.
22
+ # The :test delivery method accumulates sent emails in the
23
+ # ActionMailer::Base.deliveries array.
24
+ config.action_mailer.delivery_method = :test
25
+ config.action_mailer.default_url_options = { :host => 'www.example.com' }
26
+
27
+ # Use SQL instead of Active Record's schema dumper when creating the test database.
28
+ # This is necessary if your schema can't be completely dumped by the schema dumper,
29
+ # like if you have constraints or database-specific column types
30
+ # config.active_record.schema_format = :sql
31
+
32
+ # Print deprecation notices to the stderr
33
+ config.active_support.deprecation = :stderr
34
+ end
@@ -0,0 +1,2 @@
1
+ RailsApp::Application.routes.draw do
2
+ end
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run RailsApp::Application
@@ -0,0 +1,10 @@
1
+ class CreateUsers < ActiveRecord::Migration
2
+ def change
3
+ create_table :users do |t|
4
+ t.string :name
5
+ t.string :email
6
+
7
+ t.timestamps
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ class CreateRoles < ActiveRecord::Migration
2
+ def change
3
+ create_table :roles do |t|
4
+ t.string :name
5
+ t.integer :user_id
6
+
7
+ t.timestamps
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,23 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20140214213610) do
15
+
16
+ create_table "users", force: true do |t|
17
+ t.string "name"
18
+ t.string "email"
19
+ t.datetime "created_at"
20
+ t.datetime "updated_at"
21
+ end
22
+
23
+ end
@@ -0,0 +1,7 @@
1
+ # This file should contain all the record creation needed to seed the database with its default values.
2
+ # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
3
+ #
4
+ # Examples:
5
+ #
6
+ # cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])
7
+ # Mayor.create(:name => 'Daley', :city => cities.first)
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,22 @@
1
+ if !!ENV['CI']
2
+ require 'coveralls'
3
+ Coveralls.wear!
4
+ else
5
+ require 'pry'
6
+ end
7
+
8
+ ENV['RAILS_ENV'] ||= 'test'
9
+
10
+ require File.expand_path('../rails_app/config/environment', __FILE__)
11
+ require 'rspec'
12
+ require_relative 'factories'
13
+
14
+ ActiveRecord::Migration.verbose = false
15
+ ActiveRecord::Migrator.migrate(Rails.root.join('db', 'migrate').to_s)
16
+
17
+ RSpec.configure do |config|
18
+ config.mock_with :rspec do |config|
19
+ config.syntax = :expect
20
+ end
21
+ config.include FactoryGirl::Syntax::Methods
22
+ end
@@ -0,0 +1,54 @@
1
+ require "spec_helper_rails"
2
+ require "undo/serializer/active_model"
3
+
4
+ describe Undo::Serializer::ActiveModel do
5
+ subject { described_class }
6
+ let(:serializer) { described_class.new UserSerializer }
7
+ let(:user) { create :user }
8
+
9
+ it "restores object" do
10
+ hash = serializer.serialize user
11
+ user.destroy
12
+ restored_user = serializer.deserialize hash
13
+
14
+ expect(restored_user).to eq user
15
+ expect(user).not_to be_persisted
16
+ expect(restored_user).to be_persisted
17
+ end
18
+
19
+ it "restores object and associations" do
20
+ roles = create_list :role, 3, user: user
21
+ hash = serializer.serialize user
22
+ user.destroy
23
+ restored_user = serializer.deserialize hash
24
+
25
+ expect(restored_user).to eq user
26
+ expect(restored_user.roles).to eq roles
27
+ end
28
+
29
+ it "reverts changes to object" do
30
+ hash = serializer.serialize user
31
+ user.name = "Changed"
32
+ user.save!
33
+
34
+ restored_user = serializer.deserialize hash
35
+
36
+ expect(restored_user.name).not_to eq "Changed"
37
+ expect(restored_user).to eq user.reload
38
+ end
39
+
40
+ describe "find model serializer" do
41
+ it "detects serializer for a model" do
42
+ serializer = subject.new
43
+ expect(UserSerializer).to receive(:new)
44
+ serializer.serialize(user)
45
+ end
46
+
47
+ it "uses provided serializer" do
48
+ model_serializer = double :model_serializer
49
+ serializer = subject.new model_serializer
50
+ expect(model_serializer).to receive(:new)
51
+ serializer.serialize(user)
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,26 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'undo/serializer/active_model'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "undo-serializer-active_model"
8
+ spec.version = Undo::Serializer::ActiveModel::VERSION
9
+ spec.authors = ["Alexander Paramonov"]
10
+ spec.email = ["alexander.n.paramonov@gmail.com"]
11
+ spec.summary = %q{Pass though serializer for Undo gem}
12
+ spec.description = %q{Pass though serializer for Undo gem. It do nothing and returns whatever passed to it.}
13
+ spec.homepage = "http://github.com/AlexParamonov/undo-serializer-active_model"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_dependency "activesupport"
22
+ spec.add_dependency "active_model_serializers", "~> 0.8"
23
+ spec.add_development_dependency "bundler", "~> 1.5"
24
+ spec.add_development_dependency "rake"
25
+ spec.add_development_dependency "rspec", ">= 3.0.0.beta1"
26
+ end
metadata ADDED
@@ -0,0 +1,170 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: undo-serializer-active_model
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Alexander Paramonov
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-02-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: active_model_serializers
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.8'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.8'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.5'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.5'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: 3.0.0.beta1
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: 3.0.0.beta1
83
+ description: Pass though serializer for Undo gem. It do nothing and returns whatever
84
+ passed to it.
85
+ email:
86
+ - alexander.n.paramonov@gmail.com
87
+ executables: []
88
+ extensions: []
89
+ extra_rdoc_files: []
90
+ files:
91
+ - ".coveralls.yml"
92
+ - ".gitignore"
93
+ - ".rspec"
94
+ - ".ruby-gemset"
95
+ - ".ruby-version"
96
+ - ".travis.yml"
97
+ - Gemfile
98
+ - LICENSE.txt
99
+ - README.md
100
+ - Rakefile
101
+ - lib/undo/serializer/active_model.rb
102
+ - spec/factories.rb
103
+ - spec/rails_app/.gitignore
104
+ - spec/rails_app/Rakefile
105
+ - spec/rails_app/app/models/.gitkeep
106
+ - spec/rails_app/app/models/role.rb
107
+ - spec/rails_app/app/models/user.rb
108
+ - spec/rails_app/app/models/user_serializer.rb
109
+ - spec/rails_app/config.ru
110
+ - spec/rails_app/config/application.rb
111
+ - spec/rails_app/config/boot.rb
112
+ - spec/rails_app/config/database.yml
113
+ - spec/rails_app/config/environment.rb
114
+ - spec/rails_app/config/environments/test.rb
115
+ - spec/rails_app/config/routes.rb
116
+ - spec/rails_app/db/migrate/20140214213610_create_users.rb
117
+ - spec/rails_app/db/migrate/20140214213614_create_roles.rb
118
+ - spec/rails_app/db/schema.rb
119
+ - spec/rails_app/db/seeds.rb
120
+ - spec/rails_app/script/rails
121
+ - spec/spec_helper_rails.rb
122
+ - spec/undo/serializer/active_model_spec.rb
123
+ - undo-serializer-active_model.gemspec
124
+ homepage: http://github.com/AlexParamonov/undo-serializer-active_model
125
+ licenses:
126
+ - MIT
127
+ metadata: {}
128
+ post_install_message:
129
+ rdoc_options: []
130
+ require_paths:
131
+ - lib
132
+ required_ruby_version: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: '0'
137
+ required_rubygems_version: !ruby/object:Gem::Requirement
138
+ requirements:
139
+ - - ">="
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ requirements: []
143
+ rubyforge_project:
144
+ rubygems_version: 2.2.2
145
+ signing_key:
146
+ specification_version: 4
147
+ summary: Pass though serializer for Undo gem
148
+ test_files:
149
+ - spec/factories.rb
150
+ - spec/rails_app/.gitignore
151
+ - spec/rails_app/Rakefile
152
+ - spec/rails_app/app/models/.gitkeep
153
+ - spec/rails_app/app/models/role.rb
154
+ - spec/rails_app/app/models/user.rb
155
+ - spec/rails_app/app/models/user_serializer.rb
156
+ - spec/rails_app/config.ru
157
+ - spec/rails_app/config/application.rb
158
+ - spec/rails_app/config/boot.rb
159
+ - spec/rails_app/config/database.yml
160
+ - spec/rails_app/config/environment.rb
161
+ - spec/rails_app/config/environments/test.rb
162
+ - spec/rails_app/config/routes.rb
163
+ - spec/rails_app/db/migrate/20140214213610_create_users.rb
164
+ - spec/rails_app/db/migrate/20140214213614_create_roles.rb
165
+ - spec/rails_app/db/schema.rb
166
+ - spec/rails_app/db/seeds.rb
167
+ - spec/rails_app/script/rails
168
+ - spec/spec_helper_rails.rb
169
+ - spec/undo/serializer/active_model_spec.rb
170
+ has_rdoc: