banana_docs 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/bin/banana +10 -0
  2. data/lib/banana_docs/version.rb +1 -1
  3. metadata +31 -17
  4. checksums.yaml +0 -7
data/bin/banana CHANGED
@@ -7,6 +7,16 @@ require 'htmlentities'
7
7
  require 'rubygems'
8
8
  require 'fileutils'
9
9
 
10
+ class HTMLEntities::Encoder
11
+ # monkey patch para não fazer encoding de %w(& < >)
12
+ private
13
+ def encode_named(char)
14
+ cp = char.unpack('U')[0]
15
+ return char if %w(& < >).include?(char)
16
+ (e = reverse_map[cp]) && "&#{e};"
17
+ end
18
+ end
19
+
10
20
  class HTMLEntitiesEncoderFilter < Slim::Filter
11
21
  def on_static(content)
12
22
  @@coder ||= HTMLEntities.new
@@ -1,3 +1,3 @@
1
1
  module BananaDocs
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: banana_docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Luiz Cezer
@@ -9,67 +10,76 @@ authors:
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2013-11-25 00:00:00.000000000 Z
13
+ date: 2013-12-19 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: actionpack
16
17
  requirement: !ruby/object:Gem::Requirement
18
+ none: false
17
19
  requirements:
18
- - - '>='
20
+ - - ! '>='
19
21
  - !ruby/object:Gem::Version
20
22
  version: '0'
21
23
  type: :runtime
22
24
  prerelease: false
23
25
  version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
24
27
  requirements:
25
- - - '>='
28
+ - - ! '>='
26
29
  - !ruby/object:Gem::Version
27
30
  version: '0'
28
31
  - !ruby/object:Gem::Dependency
29
32
  name: rspec
30
33
  requirement: !ruby/object:Gem::Requirement
34
+ none: false
31
35
  requirements:
32
- - - '>='
36
+ - - ! '>='
33
37
  - !ruby/object:Gem::Version
34
38
  version: '0'
35
39
  type: :runtime
36
40
  prerelease: false
37
41
  version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
38
43
  requirements:
39
- - - '>='
44
+ - - ! '>='
40
45
  - !ruby/object:Gem::Version
41
46
  version: '0'
42
47
  - !ruby/object:Gem::Dependency
43
48
  name: slim
44
49
  requirement: !ruby/object:Gem::Requirement
50
+ none: false
45
51
  requirements:
46
- - - '>='
52
+ - - ! '>='
47
53
  - !ruby/object:Gem::Version
48
54
  version: '0'
49
55
  type: :runtime
50
56
  prerelease: false
51
57
  version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
52
59
  requirements:
53
- - - '>='
60
+ - - ! '>='
54
61
  - !ruby/object:Gem::Version
55
62
  version: '0'
56
63
  - !ruby/object:Gem::Dependency
57
64
  name: htmlentities
58
65
  requirement: !ruby/object:Gem::Requirement
66
+ none: false
59
67
  requirements:
60
- - - '>='
68
+ - - ! '>='
61
69
  - !ruby/object:Gem::Version
62
70
  version: '0'
63
71
  type: :runtime
64
72
  prerelease: false
65
73
  version_requirements: !ruby/object:Gem::Requirement
74
+ none: false
66
75
  requirements:
67
- - - '>='
76
+ - - ! '>='
68
77
  - !ruby/object:Gem::Version
69
78
  version: '0'
70
79
  - !ruby/object:Gem::Dependency
71
80
  name: bundler
72
81
  requirement: !ruby/object:Gem::Requirement
82
+ none: false
73
83
  requirements:
74
84
  - - ~>
75
85
  - !ruby/object:Gem::Version
@@ -77,6 +87,7 @@ dependencies:
77
87
  type: :development
78
88
  prerelease: false
79
89
  version_requirements: !ruby/object:Gem::Requirement
90
+ none: false
80
91
  requirements:
81
92
  - - ~>
82
93
  - !ruby/object:Gem::Version
@@ -84,15 +95,17 @@ dependencies:
84
95
  - !ruby/object:Gem::Dependency
85
96
  name: rake
86
97
  requirement: !ruby/object:Gem::Requirement
98
+ none: false
87
99
  requirements:
88
- - - '>='
100
+ - - ! '>='
89
101
  - !ruby/object:Gem::Version
90
102
  version: '0'
91
103
  type: :development
92
104
  prerelease: false
93
105
  version_requirements: !ruby/object:Gem::Requirement
106
+ none: false
94
107
  requirements:
95
- - - '>='
108
+ - - ! '>='
96
109
  - !ruby/object:Gem::Version
97
110
  version: '0'
98
111
  description: Simple gem to build documentation for CDA-API
@@ -129,26 +142,27 @@ files:
129
142
  homepage: https://github.com/lccezinha/banana_docs
130
143
  licenses:
131
144
  - MIT
132
- metadata: {}
133
145
  post_install_message:
134
146
  rdoc_options: []
135
147
  require_paths:
136
148
  - lib
137
149
  required_ruby_version: !ruby/object:Gem::Requirement
150
+ none: false
138
151
  requirements:
139
- - - '>='
152
+ - - ! '>='
140
153
  - !ruby/object:Gem::Version
141
154
  version: '0'
142
155
  required_rubygems_version: !ruby/object:Gem::Requirement
156
+ none: false
143
157
  requirements:
144
- - - '>='
158
+ - - ! '>='
145
159
  - !ruby/object:Gem::Version
146
160
  version: '0'
147
161
  requirements: []
148
162
  rubyforge_project:
149
- rubygems_version: 2.0.2
163
+ rubygems_version: 1.8.25
150
164
  signing_key:
151
- specification_version: 4
165
+ specification_version: 3
152
166
  summary: Gem used to provide a simple and nice way to write documentations for API
153
167
  applications. This gem is not a generic gem, for while, it's specific for CDA-API
154
168
  project :(.
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: a2717932252f4322d63198f1f2f9efc29aeff517
4
- data.tar.gz: 5f870a37343468a76c5696843a11572b89ce8043
5
- SHA512:
6
- metadata.gz: 17d6607340a19989a424a5888c9ebbfdf43556767cafa8da084ab773275b27bfd4f20d05a29fed49565eba22513c62589c2fbec6a42a238effa8b1de9bc625ea
7
- data.tar.gz: 86d3d773482f659e66d9911724a5df32bf9fdd0c1e0823fb24d0610ce1d3a452a0d4360b292793ca48453ced4ce51b7e854baf19e457a4e208aef0900abe4b34