structurizr 1.0.0.rc.1 → 1.0.0.rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b856a2a1230dccd0f08fd9bc17eaf9d289891d7ea62cdf4ea226390b9da52669
4
- data.tar.gz: 879236423d1c5f69412e2ea8db252556435b946c2cea5e54610df21df3ac77d7
3
+ metadata.gz: ce4c05ff7b71aae943e13eb73189496976b01612790834d08940c3c1102e045e
4
+ data.tar.gz: c24285334e2609897f641e40ef9429efdc930a085e75eef18f8b185533b17e4c
5
5
  SHA512:
6
- metadata.gz: 34db0dcacbed31c000f17333c64ec2998fade92124cbf8209b887117756f2b814508098a7bbfd480fe3b1b95f0d60f9bfbd1896b1e09c962b15d45e47b4362a2
7
- data.tar.gz: 7734236fc2954909e02cd4be3186eeeb4b93f0255c80ca201a4b0a4ad55db8b6ad4304f5e1e1a12e57a514d6b85161110c32bd51591eda2885e22105396d94aa
6
+ metadata.gz: 61550f9549122a0b672105f5dd92fa60f201e8fed9dbb9d5944c3f5b0237ea71bf24dbaf4e173790353823c0edfd7c73d13ef0c7083005c30e9b2ddeaabb6637
7
+ data.tar.gz: a825c405dda69678aec26944c058412ed35b559da8ef3699add383cab98516b6c4d91977e3a3949943f8f9390ce2191e369e8e74878c80db07d1ad9c4b1bccea
@@ -4,4 +4,10 @@ require 'structurizr/metal'
4
4
 
5
5
  module Structurizr
6
6
  Location = Metal::Model::Location
7
+
8
+ class Location
9
+ def inspect
10
+ %(#<Structurizr::Location::#{name}>)
11
+ end
12
+ end
7
13
  end
@@ -12,7 +12,7 @@ module Structurizr
12
12
 
13
13
  def inspect
14
14
  class_name = self.class.name.split('::').last
15
- %(<#{class_name}: "#{name}">)
15
+ %(#<Structurizr::#{class_name}(#{name.inspect})>)
16
16
  end
17
17
  end
18
18
  end
@@ -4,4 +4,16 @@ require 'structurizr/metal'
4
4
 
5
5
  module Structurizr
6
6
  Relationship = Metal::Model::Relationship
7
+
8
+ class Relationship
9
+ def inspect
10
+ parts = [
11
+ "#{source.name.inspect} -> #{destination.name.inspect}",
12
+ description.inspect,
13
+ technology.inspect
14
+ ].reject(&:empty?).join(" ")
15
+
16
+ %(#<#{parts}>)
17
+ end
18
+ end
7
19
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Structurizr
4
- VERSION = '1.0.0.rc.1'
4
+ VERSION = '1.0.0.rc.2'
5
5
  end
@@ -15,5 +15,9 @@ module Structurizr
15
15
  def self.from_json(json)
16
16
  Metal::Util::WorkspaceUtils.from_json(json)
17
17
  end
18
+
19
+ def inspect
20
+ %(#<Structurizr::Workspace(#{name.inspect})>)
21
+ end
18
22
  end
19
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: structurizr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc.1
4
+ version: 1.0.0.rc.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor S. Morozov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-05 00:00:00.000000000 Z
11
+ date: 2022-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement