useless-doc 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -138,6 +138,21 @@ module Useless
138
138
  @attributes[:timestamp] = timestamp
139
139
  end
140
140
 
141
+ def concept(credit)
142
+ concept = Doc::Core::Stage.new(credit: [credit].flatten)
143
+ @attributes[:concept] = concept
144
+ end
145
+
146
+ def specification(progress, credit)
147
+ specification = Doc::Core::Stage.new(progress: progress, credit: [credit].flatten)
148
+ @attributes[:specification] = specification
149
+ end
150
+
151
+ def implementation(progress, credit)
152
+ implementation = Doc::Core::Stage.new(progress: progress, credit: [credit].flatten)
153
+ @attributes[:implementation] = implementation
154
+ end
155
+
141
156
  def get(path, &block)
142
157
  resource(path).get(&block)
143
158
  end
@@ -1,5 +1,5 @@
1
1
  module Useless
2
2
  module Doc
3
- VERSION = '0.6.1'
3
+ VERSION = '0.6.2'
4
4
  end
5
5
  end
@@ -38,6 +38,10 @@ describe Useless::Doc::DSL::API do
38
38
  url 'widget.useless.io'
39
39
  description 'The canonical source of worldwide widgets.'
40
40
 
41
+ concept 'Bill Bradley'
42
+ specification 'Complete', 'Kevin Jones'
43
+ implementation 'In Progress', ['Bill Bradley', 'Kevin Jones']
44
+
41
45
  resource('/widgets').description 'The whole kit and kaboodle.'
42
46
 
43
47
  get '/widgets' do
@@ -95,6 +99,11 @@ describe Useless::Doc::DSL::API do
95
99
  api.url.should == 'widget.useless.io'
96
100
  api.description.should == 'The canonical source of worldwide widgets.'
97
101
  api.timestamp.should == Time.parse('2013-01-12 12:44 AM')
102
+ api.concept.credit.should == ['Bill Bradley']
103
+ api.specification.credit.should == ['Kevin Jones']
104
+ api.specification.progress.should == 'Complete'
105
+ api.implementation.credit.should == ['Bill Bradley', 'Kevin Jones']
106
+ api.implementation.progress.should == 'In Progress'
98
107
 
99
108
  collection = api.resources.find { |resource| resource.path == '/widgets' }
100
109
  collection.description.should == 'The whole kit and kaboodle.'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: useless-doc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-29 00:00:00.000000000 Z
12
+ date: 2013-04-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oj