murdoc 0.1.3 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,7 +1,9 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem "jeweler"
4
- gem "rspec", "~> 2.1.0"
5
3
  gem "rdiscount", "~> 1.6.5"
6
4
  gem "haml", "~> 3.0.0"
7
- gem "sass", "~> 3.1.0"
5
+
6
+ group :development do
7
+ gem "jeweler"
8
+ gem "rspec", "~> 2.1.0"
9
+ end
data/Gemfile.lock CHANGED
@@ -18,7 +18,6 @@ GEM
18
18
  rspec-expectations (2.1.0)
19
19
  diff-lcs (~> 1.1.2)
20
20
  rspec-mocks (2.1.0)
21
- sass (3.1.0.alpha.39)
22
21
 
23
22
  PLATFORMS
24
23
  ruby
@@ -28,4 +27,3 @@ DEPENDENCIES
28
27
  jeweler
29
28
  rdiscount (~> 1.6.5)
30
29
  rspec (~> 2.1.0)
31
- sass (~> 3.1.0)
data/README.md CHANGED
@@ -13,6 +13,8 @@ Example
13
13
 
14
14
  See example at [GH.pages](http://markiz.github.com/murdoc).
15
15
 
16
+ Bonus: [example](http://markiz.github.com/murdoc/docs) of integration with [jsus](http://github.com/markiz/jsus).
17
+
16
18
  License and authorship
17
19
  ======================
18
20
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.5
@@ -34,13 +34,13 @@ module Murdoc
34
34
 
35
35
  def formatted_source
36
36
  @formatted_source ||= if pygments_installed? && options[:highlight_source]
37
- IO.popen("pygmentize -l #{source_type} -f html", "w+") do |pipe|
37
+ IO.popen("pygmentize -l #{source_type} -O encoding=UTF8 -f html -O nowrap", "w+") do |pipe|
38
38
  pipe.puts source
39
39
  pipe.close_write
40
40
  pipe.read
41
41
  end
42
42
  else
43
- "<pre>" + CGI.escapeHTML(source) + "</pre>"
43
+ CGI.escapeHTML(source)
44
44
  end
45
45
  end
46
46
 
@@ -1,15 +1,16 @@
1
1
  html, body {
2
- min-height: 100%; }
2
+ min-height: 100%;
3
+ line-height: 1.5; }
3
4
 
4
- p, h1, h2, h3, ol, li, ol, ul, dt, dd, dl, body, html {
5
+ p, h1, h2, h3, ol, li, ul, dt, dd, dl, body, html {
5
6
  padding: 0;
6
7
  margin: 0; }
7
8
 
8
9
  body {
9
- width: 45%;
10
+ width: 40%;
10
11
  padding-left: 2.5%;
11
12
  padding-right: 2.5%;
12
- background: #7ba32d;
13
+ background: #BFA730;
13
14
  font-family: Helvetica; }
14
15
  body:after {
15
16
  content: ".";
@@ -18,30 +19,43 @@ body {
18
19
  display: block;
19
20
  clear: both; }
20
21
 
22
+ figure#relations h2 ~ h2 {
23
+ margin-top: 1.5em; }
24
+
21
25
  body > * {
22
26
  padding-left: 6%;
23
27
  padding-right: 6%; }
24
28
 
25
29
  html {
26
- background: #094201; }
30
+ background: #FFD300; }
27
31
 
28
32
  header {
29
33
  background: rgba(255, 255, 255, 0.1);
30
- padding-top: 1em;
31
34
  display: block; }
32
35
  header dl {
33
- margin-top: 1.125em;
34
- font-size: 0.75em; }
36
+ margin-top: 2em;
37
+ font-size: 0.75em;
38
+ line-height: 2em;
39
+ overflow: hidden; }
35
40
  header dl dt {
36
41
  width: 5em;
37
42
  font-weight: bold; }
38
43
 
44
+ section, руфвук {
45
+ float: left;
46
+ clear: both;
47
+ width: 88%; }
48
+
39
49
  p, dl, li {
40
- color: #c4eeff;
50
+ color: #665504;
41
51
  font-weight: normal; }
42
52
 
43
53
  a {
44
- color: #a41717; }
54
+ color: #BF7330; }
55
+ a:hover {
56
+ color: #FF7800; }
57
+ a:visited {
58
+ color: #A64E00; }
45
59
 
46
60
  p {
47
61
  margin-top: 1.5em; }
@@ -50,26 +64,21 @@ h1 {
50
64
  font-size: 2em; }
51
65
 
52
66
  h2 {
53
- font-size: 1em;
54
- line-height: 2em; }
67
+ font-size: 1em; }
55
68
 
56
69
  h1, h2, h3 {
57
- color: #a41717; }
70
+ color: #A41717; }
58
71
 
59
72
  ol, li {
60
73
  margin-left: 1em; }
61
74
 
62
- body > div.paragraph, body > h1, body > h2 {
63
- clear: both; }
75
+ body > p, body > h1, body > h2 {
76
+ clear: left; }
64
77
 
65
78
  header {
66
79
  padding-bottom: 1em;
67
80
  overflow: hidden; }
68
81
 
69
- pre {
70
- margin-top: 0;
71
- }
72
-
73
82
  dl {
74
83
  clear: left; }
75
84
  dl dt, dl dd {
@@ -79,42 +88,33 @@ dl {
79
88
  dl dd {
80
89
  margin-left: 1em; }
81
90
 
82
- section {
83
- clear: both;
84
- }
85
-
86
91
  figure {
87
92
  display: block;
88
93
  float: right;
89
- margin-right: -112.5%;
90
- width: 95%;
94
+ margin-right: -140%;
95
+ width: 122.75%;
91
96
  clear: right;
92
- padding: 2.5em 5% 3em; }
97
+ padding: 1.5em 5% 3em; }
93
98
  figure > ol {
99
+ text-shadow: 0 1px 0 #FFDE40;
100
+ -moz-text-shadow: 0 1px 0 #FFDE40;
101
+ -webkit-text-shadow: 0 1px 0 #FFDE40;
94
102
  width: 7.5%;
95
103
  text-align: right;
96
104
  float: left;
97
105
  font-size: 0.8em;
98
- color: #7ba32d;
99
106
  -webkit-border-radius: 0.2em;
100
- background: rgba(255, 255, 255, 0.1);
107
+ background: rgba(166, 137, 0, 0.1);
101
108
  border: 1px solid rgba(0, 0, 0, 0.3);
102
109
  list-style: none;
103
- margin-left: -11.25%; }
110
+ margin-left: -9.25%; }
104
111
  figure > ol li {
105
112
  margin: 0; }
106
- figure pre {
107
- background: rgba(255, 255, 255, 0.5);
108
- border: 1px solid rgba(0, 0, 0, 0.3);
109
- border-left: none;
110
- margin-bottom: 0;
111
- padding-bottom: 0;
112
- }
113
113
  figure > code, figure > ol {
114
114
  font-size: 1em;
115
115
  font-family: monospace; }
116
- figure ~ figure {
117
- padding-top: 1.5em; }
116
+ figure > code {
117
+ white-space: pre; }
118
118
 
119
119
  body .hll {
120
120
  background-color: #ffffcc; }
@@ -122,7 +122,7 @@ body .c {
122
122
  color: #408080;
123
123
  font-style: italic; }
124
124
  body .err {
125
- border: 1px solid red; }
125
+ border: 1px solid #FF0000; }
126
126
  body .k {
127
127
  color: #954121; }
128
128
  body .o {
@@ -131,33 +131,33 @@ body .cm {
131
131
  color: #408080;
132
132
  font-style: italic; }
133
133
  body .cp {
134
- color: #bc7a00; }
134
+ color: #BC7A00; }
135
135
  body .c1, body .cs {
136
136
  color: #408080;
137
137
  font-style: italic; }
138
138
  body .gd {
139
- color: #a00000; }
139
+ color: #A00000; }
140
140
  body .ge {
141
141
  font-style: italic; }
142
142
  body .gr {
143
- color: red; }
143
+ color: #FF0000; }
144
144
  body .gh {
145
- color: navy;
145
+ color: #000080;
146
146
  font-weight: bold; }
147
147
  body .gi {
148
- color: #00a000; }
148
+ color: #00A000; }
149
149
  body .go {
150
- color: gray; }
150
+ color: #808080; }
151
151
  body .gp {
152
- color: navy;
152
+ color: #000080;
153
153
  font-weight: bold; }
154
154
  body .gs {
155
155
  font-weight: bold; }
156
156
  body .gu {
157
- color: purple;
157
+ color: #800080;
158
158
  font-weight: bold; }
159
159
  body .gt {
160
- color: #0040d0; }
160
+ color: #0040D0; }
161
161
  body .kc {
162
162
  color: #954121; }
163
163
  body .kd, body .kn {
@@ -169,42 +169,42 @@ body .kr {
169
169
  color: #954121;
170
170
  font-weight: bold; }
171
171
  body .kt {
172
- color: #b00040; }
172
+ color: #B00040; }
173
173
  body .m {
174
174
  color: #666666; }
175
175
  body .s {
176
176
  color: #219161; }
177
177
  body .na {
178
- color: #7d9029; }
178
+ color: #7D9029; }
179
179
  body .nb {
180
180
  color: #954121; }
181
181
  body .nc {
182
- color: blue;
182
+ color: #0000FF;
183
183
  font-weight: bold; }
184
184
  body .no {
185
185
  color: #880000; }
186
186
  body .nd {
187
- color: #aa22ff; }
187
+ color: #AA22FF; }
188
188
  body .ni {
189
189
  color: #999999;
190
190
  font-weight: bold; }
191
191
  body .ne {
192
- color: #d2413a;
192
+ color: #D2413A;
193
193
  font-weight: bold; }
194
194
  body .nf {
195
- color: blue; }
195
+ color: #0000FF; }
196
196
  body .nl {
197
- color: #a0a000; }
197
+ color: #A0A000; }
198
198
  body .nn {
199
- color: blue;
199
+ color: #0000FF;
200
200
  font-weight: bold; }
201
201
  body .nt {
202
202
  color: #954121;
203
203
  font-weight: bold; }
204
204
  body .nv {
205
- color: #19469d; }
205
+ color: #19469D; }
206
206
  body .ow {
207
- color: #aa22ff;
207
+ color: #AA22FF;
208
208
  font-weight: bold; }
209
209
  body .w {
210
210
  color: #bbbbbb; }
@@ -218,24 +218,24 @@ body .sd {
218
218
  body .s2 {
219
219
  color: #219161; }
220
220
  body .se {
221
- color: #bb6622;
221
+ color: #BB6622;
222
222
  font-weight: bold; }
223
223
  body .sh {
224
224
  color: #219161; }
225
225
  body .si {
226
- color: #bb6688;
226
+ color: #BB6688;
227
227
  font-weight: bold; }
228
228
  body .sx {
229
229
  color: #954121; }
230
230
  body .sr {
231
- color: #bb6688; }
231
+ color: #BB6688; }
232
232
  body .s1 {
233
233
  color: #219161; }
234
234
  body .ss {
235
- color: #19469d; }
235
+ color: #19469D; }
236
236
  body .bp {
237
237
  color: #954121; }
238
238
  body .vc, body .vg, body .vi {
239
- color: #19469d; }
239
+ color: #19469D; }
240
240
  body .il {
241
241
  color: #666666; }
data/murdoc.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{murdoc}
8
- s.version = "0.1.3"
8
+ s.version = "0.1.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Mark Abramov"]
12
- s.date = %q{2010-11-23}
12
+ s.date = %q{2010-12-11}
13
13
  s.default_executable = %q{murdoc}
14
14
  s.description = %q{Annotated documentation generator, see README.md for details}
15
15
  s.email = %q{markizko@gmail.com}
@@ -59,28 +59,25 @@ Gem::Specification.new do |s|
59
59
  s.specification_version = 3
60
60
 
61
61
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
62
- s.add_runtime_dependency(%q<jeweler>, [">= 0"])
63
- s.add_runtime_dependency(%q<rspec>, ["~> 2.1.0"])
64
62
  s.add_runtime_dependency(%q<rdiscount>, ["~> 1.6.5"])
65
63
  s.add_runtime_dependency(%q<haml>, ["~> 3.0.0"])
66
- s.add_runtime_dependency(%q<sass>, ["~> 3.1.0"])
64
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
65
+ s.add_development_dependency(%q<rspec>, ["~> 2.1.0"])
67
66
  s.add_runtime_dependency(%q<haml>, ["~> 3.0.0"])
68
67
  s.add_runtime_dependency(%q<rdiscount>, ["~> 1.6.5"])
69
68
  else
70
- s.add_dependency(%q<jeweler>, [">= 0"])
71
- s.add_dependency(%q<rspec>, ["~> 2.1.0"])
72
69
  s.add_dependency(%q<rdiscount>, ["~> 1.6.5"])
73
70
  s.add_dependency(%q<haml>, ["~> 3.0.0"])
74
- s.add_dependency(%q<sass>, ["~> 3.1.0"])
71
+ s.add_dependency(%q<jeweler>, [">= 0"])
72
+ s.add_dependency(%q<rspec>, ["~> 2.1.0"])
75
73
  s.add_dependency(%q<haml>, ["~> 3.0.0"])
76
74
  s.add_dependency(%q<rdiscount>, ["~> 1.6.5"])
77
75
  end
78
76
  else
79
- s.add_dependency(%q<jeweler>, [">= 0"])
80
- s.add_dependency(%q<rspec>, ["~> 2.1.0"])
81
77
  s.add_dependency(%q<rdiscount>, ["~> 1.6.5"])
82
78
  s.add_dependency(%q<haml>, ["~> 3.0.0"])
83
- s.add_dependency(%q<sass>, ["~> 3.1.0"])
79
+ s.add_dependency(%q<jeweler>, [">= 0"])
80
+ s.add_dependency(%q<rspec>, ["~> 2.1.0"])
84
81
  s.add_dependency(%q<haml>, ["~> 3.0.0"])
85
82
  s.add_dependency(%q<rdiscount>, ["~> 1.6.5"])
86
83
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 3
9
- version: 0.1.3
8
+ - 5
9
+ version: 0.1.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Mark Abramov
@@ -14,85 +14,70 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-11-23 00:00:00 +03:00
17
+ date: 2010-12-11 00:00:00 +03:00
18
18
  default_executable: murdoc
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
- name: jeweler
21
+ name: rdiscount
22
22
  requirement: &id001 !ruby/object:Gem::Requirement
23
23
  none: false
24
24
  requirements:
25
- - - ">="
25
+ - - ~>
26
26
  - !ruby/object:Gem::Version
27
27
  segments:
28
- - 0
29
- version: "0"
28
+ - 1
29
+ - 6
30
+ - 5
31
+ version: 1.6.5
30
32
  type: :runtime
31
33
  prerelease: false
32
34
  version_requirements: *id001
33
35
  - !ruby/object:Gem::Dependency
34
- name: rspec
36
+ name: haml
35
37
  requirement: &id002 !ruby/object:Gem::Requirement
36
38
  none: false
37
39
  requirements:
38
40
  - - ~>
39
41
  - !ruby/object:Gem::Version
40
42
  segments:
41
- - 2
42
- - 1
43
+ - 3
43
44
  - 0
44
- version: 2.1.0
45
+ - 0
46
+ version: 3.0.0
45
47
  type: :runtime
46
48
  prerelease: false
47
49
  version_requirements: *id002
48
50
  - !ruby/object:Gem::Dependency
49
- name: rdiscount
51
+ name: jeweler
50
52
  requirement: &id003 !ruby/object:Gem::Requirement
51
53
  none: false
52
54
  requirements:
53
- - - ~>
55
+ - - ">="
54
56
  - !ruby/object:Gem::Version
55
57
  segments:
56
- - 1
57
- - 6
58
- - 5
59
- version: 1.6.5
60
- type: :runtime
58
+ - 0
59
+ version: "0"
60
+ type: :development
61
61
  prerelease: false
62
62
  version_requirements: *id003
63
63
  - !ruby/object:Gem::Dependency
64
- name: haml
64
+ name: rspec
65
65
  requirement: &id004 !ruby/object:Gem::Requirement
66
66
  none: false
67
67
  requirements:
68
68
  - - ~>
69
69
  - !ruby/object:Gem::Version
70
70
  segments:
71
- - 3
72
- - 0
73
- - 0
74
- version: 3.0.0
75
- type: :runtime
76
- prerelease: false
77
- version_requirements: *id004
78
- - !ruby/object:Gem::Dependency
79
- name: sass
80
- requirement: &id005 !ruby/object:Gem::Requirement
81
- none: false
82
- requirements:
83
- - - ~>
84
- - !ruby/object:Gem::Version
85
- segments:
86
- - 3
71
+ - 2
87
72
  - 1
88
73
  - 0
89
- version: 3.1.0
90
- type: :runtime
74
+ version: 2.1.0
75
+ type: :development
91
76
  prerelease: false
92
- version_requirements: *id005
77
+ version_requirements: *id004
93
78
  - !ruby/object:Gem::Dependency
94
79
  name: haml
95
- requirement: &id006 !ruby/object:Gem::Requirement
80
+ requirement: &id005 !ruby/object:Gem::Requirement
96
81
  none: false
97
82
  requirements:
98
83
  - - ~>
@@ -104,10 +89,10 @@ dependencies:
104
89
  version: 3.0.0
105
90
  type: :runtime
106
91
  prerelease: false
107
- version_requirements: *id006
92
+ version_requirements: *id005
108
93
  - !ruby/object:Gem::Dependency
109
94
  name: rdiscount
110
- requirement: &id007 !ruby/object:Gem::Requirement
95
+ requirement: &id006 !ruby/object:Gem::Requirement
111
96
  none: false
112
97
  requirements:
113
98
  - - ~>
@@ -119,7 +104,7 @@ dependencies:
119
104
  version: 1.6.5
120
105
  type: :runtime
121
106
  prerelease: false
122
- version_requirements: *id007
107
+ version_requirements: *id006
123
108
  description: Annotated documentation generator, see README.md for details
124
109
  email: markizko@gmail.com
125
110
  executables:
@@ -166,7 +151,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
166
151
  requirements:
167
152
  - - ">="
168
153
  - !ruby/object:Gem::Version
169
- hash: -1860456984422582036
154
+ hash: 959709025
170
155
  segments:
171
156
  - 0
172
157
  version: "0"