hoe-yard 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
data/History.rdoc CHANGED
@@ -1,3 +1,9 @@
1
+ === 0.1.2 / 2010-01-22
2
+
3
+ * Renamed +yard_opts+ to +yard_options+.
4
+ * No longer automatically add +yard+ to the development dependencies
5
+ of a Hoe project.
6
+
1
7
  === 0.1.1 / 2010-01-10
2
8
 
3
9
  * Only add hoe-yard as a development dependency, if we're not in the
data/README.rdoc CHANGED
@@ -19,7 +19,7 @@ to automatically generate YARD documentation upon installation.
19
19
  * Sets +has_rdoc+ to +yard+.
20
20
  * Sets +rdoc_options+.
21
21
  * Sets +extra_rdoc_files+.
22
- * Adds YARD and hoe-yard as development dependencies.
22
+ * Adds hoe-yard as a development dependency.
23
23
  * Adds the +yard+ and +docs+ Rake tasks.
24
24
 
25
25
  == REQUIREMENTS:
data/Rakefile CHANGED
@@ -11,8 +11,8 @@ Hoe.spec('hoe-yard') do
11
11
  self.version = Hoe::Yard::PLUGIN_VERSION
12
12
  self.developer('Postmodern', 'postmodern.mod3@gmail.com')
13
13
 
14
+ self.yard_options = ['--protected']
14
15
  self.remote_yard_dir = '/'
15
- self.yard_opts = ['--protected']
16
16
 
17
17
  self.extra_deps = [
18
18
  ['yard', '>=0.2.3.1']
data/lib/hoe/yard.rb CHANGED
@@ -12,7 +12,7 @@ gem 'yard'
12
12
  #
13
13
  module Hoe::Yard
14
14
  # hoe-yard version
15
- PLUGIN_VERSION = '0.1.1'
15
+ PLUGIN_VERSION = '0.1.2'
16
16
 
17
17
  # Supported markups
18
18
  YARD_MARKUP = [:markdown, :texttile, :rdoc]
@@ -39,13 +39,13 @@ module Hoe::Yard
39
39
  attr_accessor :yard_markup_provider
40
40
 
41
41
  # Options to pass to YARD
42
- attr_accessor :yard_opts
42
+ attr_accessor :yard_options
43
43
 
44
44
  def initialize_yard
45
45
  self.yard_title = Hoe.normalize_names(self.name).last + ' Documentation'
46
46
  self.yard_markup = nil
47
47
  self.yard_markup_provider = nil
48
- self.yard_opts = []
48
+ self.yard_options = []
49
49
 
50
50
  # find the README.* and History.* files
51
51
  self.readme_file = intuit_file_name(File.basename(self.readme_file))
@@ -54,10 +54,6 @@ module Hoe::Yard
54
54
  # disable RDoc and ri tasks
55
55
  self.need_rdoc = false
56
56
 
57
- # add YARD as a development dependency
58
- yard_version = Gem.loaded_specs['yard'].version
59
- self.extra_dev_deps << ['yard', ">=#{yard_version}"]
60
-
61
57
  unless self.name == 'hoe-yard'
62
58
  # add hoe-yard as a development dependency
63
59
  self.extra_dev_deps << ['hoe-yard', ">=#{PLUGIN_VERSION}"]
@@ -98,6 +94,24 @@ module Hoe::Yard
98
94
 
99
95
  protected
100
96
 
97
+ #
98
+ # Alias to +yard_options+.
99
+ #
100
+ # @deprecated Use +yard_options+ instead.
101
+ #
102
+ def yard_opts
103
+ self.yard_options
104
+ end
105
+
106
+ #
107
+ # Alias to +yard_options=+.
108
+ #
109
+ # @deprecated Use +yard_options=+ instead.
110
+ #
111
+ def yard_opts=(new_opts)
112
+ self.yard_options = new_opts
113
+ end
114
+
101
115
  #
102
116
  # Alias to <tt>Hoe#extra_rdoc_files</tt>.
103
117
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hoe-yard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Postmodern
@@ -30,7 +30,7 @@ cert_chain:
30
30
  pDj+ws7QjtH/Qcrr1l9jfN0ehDs=
31
31
  -----END CERTIFICATE-----
32
32
 
33
- date: 2010-01-10 00:00:00 -08:00
33
+ date: 2010-01-22 00:00:00 -08:00
34
34
  default_executable:
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
@@ -63,16 +63,6 @@ dependencies:
63
63
  - !ruby/object:Gem::Version
64
64
  version: 0.3.0
65
65
  version:
66
- - !ruby/object:Gem::Dependency
67
- name: yard
68
- type: :development
69
- version_requirement:
70
- version_requirements: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - ">="
73
- - !ruby/object:Gem::Version
74
- version: 0.5.2
75
- version:
76
66
  - !ruby/object:Gem::Dependency
77
67
  name: hoe
78
68
  type: :development
metadata.gz.sig CHANGED
Binary file