├── .gitignore ├── .rspec ├── .rubocop.yml ├── .rubocop_todo.yml ├── .simplecov ├── .travis.yml ├── Gemfile ├── LICENSE ├── README.md ├── Rakefile ├── json_on_rails.gemspec ├── lib ├── active_record │ ├── connection_adapters │ │ ├── abstract │ │ │ └── json_schema_definitions.rb │ │ └── mysql2_json_adapter.rb │ └── type │ │ └── json.rb ├── json_on_rails.rb └── json_on_rails │ └── version.rb └── spec ├── helpers └── json_attributes_spec_helper.rb ├── json_on_rails ├── arel_methods_spec.rb ├── json_attributes_spec.rb ├── migrations_spec.rb └── schema_dump_spec.rb ├── setup ├── config │ └── database.yml ├── db │ └── schema.rb ├── models │ ├── migration_model.rb │ ├── user.rb │ └── with_default_user.rb └── spec_environment_helper.rb └── spec_helper.rb /.gitignore: -------------------------------------------------------------------------------- 1 | /coverage/ 2 | /Gemfile.lock 3 | /.ruby-version 4 | -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --require spec_helper 2 | -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/64kramsystem/json_on_rails/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /.rubocop_todo.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/64kramsystem/json_on_rails/HEAD/.rubocop_todo.yml -------------------------------------------------------------------------------- /.simplecov: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/64kramsystem/json_on_rails/HEAD/.simplecov -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/64kramsystem/json_on_rails/HEAD/.travis.yml -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/64kramsystem/json_on_rails/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/64kramsystem/json_on_rails/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/64kramsystem/json_on_rails/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/64kramsystem/json_on_rails/HEAD/Rakefile -------------------------------------------------------------------------------- /json_on_rails.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/64kramsystem/json_on_rails/HEAD/json_on_rails.gemspec -------------------------------------------------------------------------------- /lib/active_record/connection_adapters/abstract/json_schema_definitions.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/64kramsystem/json_on_rails/HEAD/lib/active_record/connection_adapters/abstract/json_schema_definitions.rb -------------------------------------------------------------------------------- /lib/active_record/connection_adapters/mysql2_json_adapter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/64kramsystem/json_on_rails/HEAD/lib/active_record/connection_adapters/mysql2_json_adapter.rb -------------------------------------------------------------------------------- /lib/active_record/type/json.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/64kramsystem/json_on_rails/HEAD/lib/active_record/type/json.rb -------------------------------------------------------------------------------- /lib/json_on_rails.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/64kramsystem/json_on_rails/HEAD/lib/json_on_rails.rb -------------------------------------------------------------------------------- /lib/json_on_rails/version.rb: -------------------------------------------------------------------------------- 1 | module JsonOnRails 2 | VERSION = "0.2.0".freeze 3 | end 4 | -------------------------------------------------------------------------------- /spec/helpers/json_attributes_spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/64kramsystem/json_on_rails/HEAD/spec/helpers/json_attributes_spec_helper.rb -------------------------------------------------------------------------------- /spec/json_on_rails/arel_methods_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/64kramsystem/json_on_rails/HEAD/spec/json_on_rails/arel_methods_spec.rb -------------------------------------------------------------------------------- /spec/json_on_rails/json_attributes_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/64kramsystem/json_on_rails/HEAD/spec/json_on_rails/json_attributes_spec.rb -------------------------------------------------------------------------------- /spec/json_on_rails/migrations_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/64kramsystem/json_on_rails/HEAD/spec/json_on_rails/migrations_spec.rb -------------------------------------------------------------------------------- /spec/json_on_rails/schema_dump_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/64kramsystem/json_on_rails/HEAD/spec/json_on_rails/schema_dump_spec.rb -------------------------------------------------------------------------------- /spec/setup/config/database.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/64kramsystem/json_on_rails/HEAD/spec/setup/config/database.yml -------------------------------------------------------------------------------- /spec/setup/db/schema.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/64kramsystem/json_on_rails/HEAD/spec/setup/db/schema.rb -------------------------------------------------------------------------------- /spec/setup/models/migration_model.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/64kramsystem/json_on_rails/HEAD/spec/setup/models/migration_model.rb -------------------------------------------------------------------------------- /spec/setup/models/user.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class User < ActiveRecord::Base; end 4 | -------------------------------------------------------------------------------- /spec/setup/models/with_default_user.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/64kramsystem/json_on_rails/HEAD/spec/setup/models/with_default_user.rb -------------------------------------------------------------------------------- /spec/setup/spec_environment_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/64kramsystem/json_on_rails/HEAD/spec/setup/spec_environment_helper.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/64kramsystem/json_on_rails/HEAD/spec/spec_helper.rb --------------------------------------------------------------------------------