net-imap 0.6.4.1 → 0.6.8

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.
data/rakelib/rdoc.rake CHANGED
@@ -6,6 +6,27 @@ require 'rdoc/rdoc' unless defined?(RDoc::Markup::ToHtml)
6
6
  module RDoc::Generator
7
7
  module NetIMAP
8
8
 
9
+ module FixPrismParserAttrVisitor
10
+
11
+ # Replaces the version in rdoc 8.0 with rdoc 7.2 behavior
12
+ def _visit_call_attr_reader_writer_accessor(call_node, rw)
13
+ return if @scanner.in_proc_block
14
+ names = initial_symbol_arguments(call_node) or return
15
+ @scanner.add_attributes(names.map(&:to_s), rw, call_node.location.start_line)
16
+ end
17
+
18
+ # Unlike #symbol_arguments, which is strict about _all_ arguments being
19
+ # symbol literals, this returns initial symbol args and ignores the rest.
20
+ def initial_symbol_arguments(call_node)
21
+ arguments_node = call_node.arguments or return
22
+ symbol_args = arguments_node.arguments
23
+ .slice_before {|arg| !arg.is_a?(Prism::SymbolNode) }
24
+ .first
25
+ symbol_args.map {|arg| arg.value.to_sym } if symbol_args.any?
26
+ end
27
+
28
+ end
29
+
9
30
  module RemoveRedundantParens
10
31
  def param_seq
11
32
  super.sub(/^\(\)\s*/, "")
@@ -45,6 +66,9 @@ class RDoc::Markup::ToHtml
45
66
  prepend RDoc::Generator::NetIMAP::LabelListTable
46
67
  end
47
68
 
69
+ (RDoc::Parser::Ruby::RDocVisitor rescue nil)
70
+ &.prepend RDoc::Generator::NetIMAP::FixPrismParserAttrVisitor
71
+
48
72
  RDoc::Task.new do |doc|
49
73
  doc.title = "net-imap #{Net::IMAP::VERSION}"
50
74
  doc.rdoc_dir = "doc"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-imap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4.1
4
+ version: 0.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shugo Maeda
@@ -48,6 +48,7 @@ extra_rdoc_files: []
48
48
  files:
49
49
  - ".document"
50
50
  - ".rdoc_options"
51
+ - ".simplecov"
51
52
  - BSDL
52
53
  - COPYING
53
54
  - Gemfile
@@ -101,6 +102,7 @@ files:
101
102
  - lib/net/imap/stringprep/tables.rb
102
103
  - lib/net/imap/stringprep/trace.rb
103
104
  - lib/net/imap/uidplus_data.rb
105
+ - lib/net/imap/utils.rb
104
106
  - lib/net/imap/vanished_data.rb
105
107
  - net-imap.gemspec
106
108
  - rakelib/benchmarks.rake
@@ -131,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
133
  - !ruby/object:Gem::Version
132
134
  version: '0'
133
135
  requirements: []
134
- rubygems_version: 4.0.13
136
+ rubygems_version: 4.0.22
135
137
  specification_version: 4
136
138
  summary: Ruby client api for Internet Message Access Protocol
137
139
  test_files: []