├── .gitignore ├── .ruby-gemset ├── .ruby-version ├── CHANGELOG ├── Gemfile ├── LICENSE ├── README.md ├── Rakefile ├── init.rb ├── lib ├── related.rb └── related │ ├── data_flow.rb │ ├── entity.rb │ ├── exceptions.rb │ ├── follower.rb │ ├── helpers.rb │ ├── node.rb │ ├── relationship.rb │ ├── root.rb │ ├── validations │ └── check_redis_uniqueness.rb │ └── version.rb ├── related.gemspec └── test ├── active_model_test.rb ├── custom_id_attribute_test.rb ├── custom_node_test.rb ├── data_flow_test.rb ├── follower_test.rb ├── model_test.rb ├── performance_test.rb ├── redis-test-1.conf ├── redis-test-2.conf ├── redis-test-3.conf ├── redis-test-4.conf ├── related_test.rb └── test_helper.rb /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niho/related/HEAD/.gitignore -------------------------------------------------------------------------------- /.ruby-gemset: -------------------------------------------------------------------------------- 1 | related -------------------------------------------------------------------------------- /.ruby-version: -------------------------------------------------------------------------------- 1 | 2.4.1 2 | -------------------------------------------------------------------------------- /CHANGELOG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niho/related/HEAD/CHANGELOG -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niho/related/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niho/related/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niho/related/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niho/related/HEAD/Rakefile -------------------------------------------------------------------------------- /init.rb: -------------------------------------------------------------------------------- 1 | require 'related' 2 | -------------------------------------------------------------------------------- /lib/related.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niho/related/HEAD/lib/related.rb -------------------------------------------------------------------------------- /lib/related/data_flow.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niho/related/HEAD/lib/related/data_flow.rb -------------------------------------------------------------------------------- /lib/related/entity.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niho/related/HEAD/lib/related/entity.rb -------------------------------------------------------------------------------- /lib/related/exceptions.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niho/related/HEAD/lib/related/exceptions.rb -------------------------------------------------------------------------------- /lib/related/follower.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niho/related/HEAD/lib/related/follower.rb -------------------------------------------------------------------------------- /lib/related/helpers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niho/related/HEAD/lib/related/helpers.rb -------------------------------------------------------------------------------- /lib/related/node.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niho/related/HEAD/lib/related/node.rb -------------------------------------------------------------------------------- /lib/related/relationship.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niho/related/HEAD/lib/related/relationship.rb -------------------------------------------------------------------------------- /lib/related/root.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niho/related/HEAD/lib/related/root.rb -------------------------------------------------------------------------------- /lib/related/validations/check_redis_uniqueness.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niho/related/HEAD/lib/related/validations/check_redis_uniqueness.rb -------------------------------------------------------------------------------- /lib/related/version.rb: -------------------------------------------------------------------------------- 1 | module Related 2 | Version = VERSION = '0.6.6' 3 | end 4 | -------------------------------------------------------------------------------- /related.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niho/related/HEAD/related.gemspec -------------------------------------------------------------------------------- /test/active_model_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niho/related/HEAD/test/active_model_test.rb -------------------------------------------------------------------------------- /test/custom_id_attribute_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niho/related/HEAD/test/custom_id_attribute_test.rb -------------------------------------------------------------------------------- /test/custom_node_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niho/related/HEAD/test/custom_node_test.rb -------------------------------------------------------------------------------- /test/data_flow_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niho/related/HEAD/test/data_flow_test.rb -------------------------------------------------------------------------------- /test/follower_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niho/related/HEAD/test/follower_test.rb -------------------------------------------------------------------------------- /test/model_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niho/related/HEAD/test/model_test.rb -------------------------------------------------------------------------------- /test/performance_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niho/related/HEAD/test/performance_test.rb -------------------------------------------------------------------------------- /test/redis-test-1.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niho/related/HEAD/test/redis-test-1.conf -------------------------------------------------------------------------------- /test/redis-test-2.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niho/related/HEAD/test/redis-test-2.conf -------------------------------------------------------------------------------- /test/redis-test-3.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niho/related/HEAD/test/redis-test-3.conf -------------------------------------------------------------------------------- /test/redis-test-4.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niho/related/HEAD/test/redis-test-4.conf -------------------------------------------------------------------------------- /test/related_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niho/related/HEAD/test/related_test.rb -------------------------------------------------------------------------------- /test/test_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niho/related/HEAD/test/test_helper.rb --------------------------------------------------------------------------------