From dea3d505072d79dc7b355d379db268254ae1eac1 Mon Sep 17 00:00:00 2001 From: Rolf Timmermans Date: Fri, 10 Jun 2016 14:14:13 +0200 Subject: [PATCH 1/2] Fix deprecation of File.exists? --- test/unit/graphviz_test.rb | 2 +- test/unit/rake_task_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/graphviz_test.rb b/test/unit/graphviz_test.rb index be62a3f..4413b14 100644 --- a/test/unit/graphviz_test.rb +++ b/test/unit/graphviz_test.rb @@ -137,7 +137,7 @@ def output_and_errors_from_command(*args); raise end test "create should not create output if there are no connected models" do Diagram::Graphviz.create rescue nil - assert !File.exists?("erd.png") + assert !File.exist?("erd.png") end test "create should abort and complain if there are no connected models" do diff --git a/test/unit/rake_task_test.rb b/test/unit/rake_task_test.rb index 5bcd353..5830aed 100644 --- a/test/unit/rake_task_test.rb +++ b/test/unit/rake_task_test.rb @@ -40,7 +40,7 @@ def teardown test "generate task should not create output if there are no connected models" do Rake::Task["erd:generate"].execute rescue nil - assert !File.exists?("erd.dot") + assert !File.exist?("erd.dot") end test "generate task should eager load application environment" do From 7657df28a1854937957eef292752009a0717809d Mon Sep 17 00:00:00 2001 From: Rolf Timmermans Date: Fri, 10 Jun 2016 14:23:08 +0200 Subject: [PATCH 2/2] Rails 5 seems to work just fine! --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a0d0b26..eaa1fb3 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Rails ERD - Generate Entity-Relationship Diagrams for Rails applications The second goal of Rails ERD is to provide you with a tool to inspect your application's domain model. If you don't like the default output, it is very easy to use the API to build your own diagrams. -Rails ERD was created specifically for Rails and works on versions 3.0-4.2. It uses Active Record's built-in reflection capabilities to figure out how your models are associated. +Rails ERD was created specifically for Rails and works on versions 3.0-5.0. It uses Active Record's built-in reflection capabilities to figure out how your models are associated. Preview