yard-value 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -45,14 +45,14 @@ class YARD::Handlers::Ruby::ValuesHandler < YARD::Handlers::Ruby::Base
45
45
 
46
46
  def define(name, parameters, docstring = nil, visibility = :public)
47
47
  YARD::CodeObjects::MethodObject.new(namespace, name).tap{ |m|
48
- register(m)
48
+ register m
49
+ register_docstring m, docstring, nil if docstring
49
50
  m.signature = 'def %s%s' %
50
51
  [name,
51
52
  parameters.empty? ?
52
53
  '' :
53
54
  '(%s)' % parameters.map{ |n, d| d ? '%s = %s' % [n, d] : n }.join(', ')]
54
55
  m.parameters = parameters
55
- m.docstring = docstring if docstring
56
56
  m.visibility = visibility
57
57
  }
58
58
  end
@@ -3,7 +3,7 @@
3
3
  require 'inventory-1.0'
4
4
 
5
5
  module YARDValue
6
- Version = Inventory.new(1, 2, 1){
6
+ Version = Inventory.new(1, 2, 2){
7
7
  def dependencies
8
8
  super + Inventory::Dependencies.new{
9
9
  development 'inventory-rake', 1, 3, 0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yard-value
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-03 00:00:00.000000000 Z
12
+ date: 2012-05-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: inventory
16
- requirement: &14902716 !ruby/object:Gem::Requirement
16
+ requirement: &15273456 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '1.3'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *14902716
24
+ version_requirements: *15273456
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: inventory-rake
27
- requirement: &14901408 !ruby/object:Gem::Requirement
27
+ requirement: &15289392 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '1.3'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *14901408
35
+ version_requirements: *15289392
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: lookout
38
- requirement: &14899992 !ruby/object:Gem::Requirement
38
+ requirement: &15288876 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '3.0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *14899992
46
+ version_requirements: *15288876
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: lookout-rake
49
- requirement: &14899536 !ruby/object:Gem::Requirement
49
+ requirement: &15288480 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '3.0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *14899536
57
+ version_requirements: *15288480
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: yard
60
- requirement: &14897268 !ruby/object:Gem::Requirement
60
+ requirement: &15287940 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: 0.8.0
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *14897268
68
+ version_requirements: *15287940
69
69
  description: ! " YARD-Value\n\n YARD-Value provides
70
70
  YARD handlers for Value¹ objects.\n\n¹ Check out the Value library at http://disu.se/software/value\n"
71
71
  email: now@bitwi.se