blueprint-api-rails 0.2.0 → 0.2.1
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 +4 -4
- data/lib/blueprint/api/rails/version.rb +1 -1
- data/lib/blueprint/api/rails.rb +12 -0
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0712641c936532f8bd09734df458db6d7662de83
|
4
|
+
data.tar.gz: 108907594ff4ee043be3ee9d2c1744aa635df9c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1270c614358c61e1e0eb0a7666fab7d09b9b7b975b545ffbbad8e3d78984f1a55eec2f2c09d32fb03563f82889159592b61e2e9815b2d94e0fcb8f6db2607f29
|
7
|
+
data.tar.gz: a351791069d1f37094aac2a5563f11bd7819eeeccbcd0da6ce69bf3a099ea52b2e2ebbcff1cc09ca5a4e152a2d2ca769d22715f58f145f7c6d5ea3839421a07d
|
data/lib/blueprint/api/rails.rb
CHANGED
@@ -14,6 +14,7 @@ module Blueprint
|
|
14
14
|
|
15
15
|
MESSAGE = 'message'
|
16
16
|
CLASSIFIER_NEW = 'classifier-new'
|
17
|
+
DESCRIBE = 'describe'
|
17
18
|
|
18
19
|
# allow users to set the API key
|
19
20
|
def self.set_api_key api_key
|
@@ -123,6 +124,17 @@ module Blueprint
|
|
123
124
|
LinkDesignContext.new(@api_key, @structure_id, source, target)
|
124
125
|
end
|
125
126
|
|
127
|
+
# applies a description to the (structural or conceptual) element
|
128
|
+
def describe(element, description = nil, stereotype = nil)
|
129
|
+
self.send DESCRIBE,
|
130
|
+
{
|
131
|
+
:element => element,
|
132
|
+
:description => description,
|
133
|
+
:stereotype => stereotype
|
134
|
+
}
|
135
|
+
nil
|
136
|
+
end
|
137
|
+
|
126
138
|
# creates a new message classifier
|
127
139
|
def classifier(from, conditions, to)
|
128
140
|
self.send CLASSIFIER_NEW,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blueprint-api-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- benjii
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -95,9 +95,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
97
|
rubyforge_project:
|
98
|
-
rubygems_version: 2.
|
98
|
+
rubygems_version: 2.4.8
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: Rails client for the Anaxim Blueprint API
|
102
102
|
test_files: []
|
103
|
-
has_rdoc:
|