yuml 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/yuml/note.rb +11 -0
  3. metadata +2 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 34a697b99eb1a77a1601afa71051c254514ed67f
4
- data.tar.gz: 86578c71f4369cc3d3a725ab00c2a6a0c7c991c0
3
+ metadata.gz: c6ddb73f6188b78f0c8993ae7c3d43fb0a23a1a3
4
+ data.tar.gz: 1a751eb056f3b131d9a2c811889788d3c1ff981d
5
5
  SHA512:
6
- metadata.gz: ccf54ee2096e03392be4617025b65269018e82be512e0d0d14f5e80d71089eb3b4b163cae15923fe1c6fdd4c21943d3a4e9e7f851c9838c561bad3a98f964bc6
7
- data.tar.gz: 80f278c78ce1e56391fa1e116b5bd8dda2db94e5d49cb416232f75287f3e1a65ab79d0216b374433f4da9941ccf4f0aa50119c9609cbbc3456c4f9528cbd9679
6
+ metadata.gz: a3cf60e22f95ec592cd24a2e1bbd91c4bbdeb6e77bde82e70cc98b6a24a7c33ce1e87fb00d0b95bf0a46e62a396488cb248d5315fcd50a2b837dd2f87bb4d07a
7
+ data.tar.gz: 4f05dca0218587e339774ba7e8faf990b5afe8ca7b145b2249251bc641302439601b9d0604249bee5837a5fa6a3e130e26f3e1771263bdc4a2b924f36791b75c
data/lib/yuml/note.rb ADDED
@@ -0,0 +1,11 @@
1
+ module YUML
2
+ # Represents a yUML Note
3
+ module Note
4
+ module_function
5
+
6
+ def create(body, options = {})
7
+ color = options[:color] || 'cornsilk'
8
+ "[note: #{body}{bg:#{color}}]"
9
+ end
10
+ end
11
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yuml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derek Stride
@@ -32,6 +32,7 @@ extra_rdoc_files: []
32
32
  files:
33
33
  - lib/yuml.rb
34
34
  - lib/yuml/class.rb
35
+ - lib/yuml/note.rb
35
36
  - lib/yuml/relationship.rb
36
37
  homepage: https://github.com/DerekStride/yuml
37
38
  licenses: