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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b4b0f56bd7d4e4ea721fed6a76878bd0588a27ae
4
- data.tar.gz: 7962d53b3f5dbabd90fd40a4aedaf034f8579ee1
3
+ metadata.gz: 0712641c936532f8bd09734df458db6d7662de83
4
+ data.tar.gz: 108907594ff4ee043be3ee9d2c1744aa635df9c8
5
5
  SHA512:
6
- metadata.gz: 1fd38d01b74fad3df17ee1d45612242ca925a2352813cf866f14eae2fa1190a7879c97dfd6a52c8dc0f481d23cefdc83d60148dd5926849149a7367e07a0440a
7
- data.tar.gz: 7311b41ee144e9476ad8a19e7cc3c7e1bfa393b4322a5ae9f900e0564d4562d843d3d72fc7b0644b37039a0949677b8e494fbdb10602586816babcbe0d3f1a7b
6
+ metadata.gz: 1270c614358c61e1e0eb0a7666fab7d09b9b7b975b545ffbbad8e3d78984f1a55eec2f2c09d32fb03563f82889159592b61e2e9815b2d94e0fcb8f6db2607f29
7
+ data.tar.gz: a351791069d1f37094aac2a5563f11bd7819eeeccbcd0da6ce69bf3a099ea52b2e2ebbcff1cc09ca5a4e152a2d2ca769d22715f58f145f7c6d5ea3839421a07d
@@ -1,7 +1,7 @@
1
1
  module Blueprint
2
2
  module Api
3
3
  module Rails
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
6
6
  end
7
7
  end
@@ -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.0
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-06-23 00:00:00.000000000 Z
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.2.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: