activerecord_uml 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d91013520bd006341a0aa9487d794d4a5960ed7fecf0e05d741f21e002fba85a
4
- data.tar.gz: 72c977aad9bce307f8fd00ee539dca8d39f9d290e5fa423f3543ca7cadc85718
3
+ metadata.gz: 004047233cdd67c483d6218767022e25d7e9baf779131706764e79cdaf90c984
4
+ data.tar.gz: 6510a0c1996e73affe49839f323bac5f4935c471340ad83de827ceee6d5dc61c
5
5
  SHA512:
6
- metadata.gz: a7ffdb9ccd505f0dc28f186d1fb12b6a6a01fb14cc60e5036c43c5de8f2edf69db37e7cec57727e7d9b12889acfe59b115755ebcec39b55b9404d53fda3ec859
7
- data.tar.gz: 9217c641caa0ab215fda2fe9c27f0d02e5d18ad6e07b0684d61e9ecb0f0edbdaead58ef500e01d5101bead7c8bc86e4de776e537aefd81cc433702b92774a918
6
+ metadata.gz: ad911c0960f017408e8c7a53cb43349c52c8829d337a870656fb0932fcdd93fc30d0a091803322f57931b98f815c177aed58c66ce6c6426e6c2eba49d3495868
7
+ data.tar.gz: e464f4904a190c088620d3fa5672545c3cb633ead155e722d2d05cb507130edae6bd8df6c03c7eb113d32a3d37388006721e3b1353ad06e3ac6fda3de84287d4
data/README.md CHANGED
@@ -29,7 +29,7 @@ Or install it yourself as:
29
29
  In your Ruby on Rails directory:
30
30
 
31
31
  ```
32
- activerecord_uml User
32
+ activerecord_uml User Book Review
33
33
  ```
34
34
 
35
35
  Execute the activerecord_uml command with name of model classes.
data/exe/activerecord_uml CHANGED
@@ -1,7 +1,8 @@
1
1
  #! /usr/bin/env ruby
2
- require "activerecord_uml"
3
2
 
4
- require(File.join(Dir.pwd, "config/application"))
5
- Rails.application.require_environment!
3
+ activerecord_uml = File.join __dir__,"../lib/activerecord_uml"
4
+ ruby_script = "require \"#{activerecord_uml}\"; ActiverecordUml.draw"
5
+ rails = File.join Dir.pwd,"bin/rails"
6
+ rails_runner_command = "echo '#{ruby_script}' | #{rails} runner - #{ARGV.join ' '}"
6
7
 
7
- ActiverecordUml.draw
8
+ system rails_runner_command
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiverecordUml
4
- VERSION = "0.6.0"
4
+ VERSION = "0.7.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord_uml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - shigeru.nakajima
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-06-15 00:00:00.000000000 Z
11
+ date: 2021-06-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Generate UML class diagram for Mermaid.js from ActiveRecord instances
14
14
  by Rails runner.