daddy 0.0.14 → 0.0.15
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.
- checksums.yaml +8 -8
- data/lib/daddy/formatter/html.rb +8 -2
- metadata +1 -15
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
NDQwMjFkNjdjNzYzMWE1YmE4NmNhYmM3Y2MxMjM1MzljODUxYmNlMw==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
MTc4YjFiYmRiOTIyN2JiZTJkNmM4NWIwYzUxZmU0ZWRiYzk2ZTdlMw==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
NzkyNGI4YzE0ZGM4MzY4MTdhZmI2Mjg4N2UxNzY1NGJhNjQwNmM4YWNhZDg0
|
|
10
|
+
NjNkODE2YjlkNTIxNTE4ZmQ0Y2I5ZTAyMDJiMGFhNjFmNzNhZWZiZTNiNDQ2
|
|
11
|
+
YjA2YTFiMjFjODBlZGJmMTZmM2E2ZDY5ZTdhMjU5MzYyZWU0Mjc=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
NmY0YjA4ZjYzOTA1NTZlZWY5NjQxNjk0Mjk1ZGEyMTk5Zjk3NzhjYmM4MmNk
|
|
14
|
+
OTU2YzIxOGEyODllODMxY2FiYTQ5YzAyMmM3MDk3OTAwZjc0YzNmOWE1Y2Rl
|
|
15
|
+
ODM1MjFlZTc0NzIwODc2MjRlYjY2OGUzYTZkNTZjN2Y2NGMwNTg=
|
data/lib/daddy/formatter/html.rb
CHANGED
|
@@ -96,7 +96,7 @@ module Daddy
|
|
|
96
96
|
end
|
|
97
97
|
|
|
98
98
|
def make_menu_for_publish
|
|
99
|
-
menu = 'tmp/menu.html'
|
|
99
|
+
menu = Rails.root + '/tmp/menu.html'
|
|
100
100
|
system("erb -T - #{File.dirname(__FILE__)}/menu.html.erb > #{menu}")
|
|
101
101
|
File.readlines(menu).join
|
|
102
102
|
end
|
|
@@ -306,7 +306,13 @@ module Daddy
|
|
|
306
306
|
step_contents = "<div class=\"step_contents\"><pre>"
|
|
307
307
|
step_file.gsub(/^([^:]*\.rb):(\d*)/) do
|
|
308
308
|
line_index = $2.to_i - 1
|
|
309
|
-
|
|
309
|
+
|
|
310
|
+
file = $1.force_encoding('UTF-8')
|
|
311
|
+
if file.start_with?('daddy-') or file.start_with?('/daddy-')
|
|
312
|
+
file = '/usr/local/lib/ruby/gems/1.9.1/gems/' + file
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
File.readlines(File.expand_path(file))[line_index..-1].each do |line|
|
|
310
316
|
step_contents << line
|
|
311
317
|
break if line.chop == 'end' or line.chop.start_with?('end ')
|
|
312
318
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: daddy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.15
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ichy
|
|
@@ -108,20 +108,6 @@ dependencies:
|
|
|
108
108
|
- - ! '>='
|
|
109
109
|
- !ruby/object:Gem::Version
|
|
110
110
|
version: '0'
|
|
111
|
-
- !ruby/object:Gem::Dependency
|
|
112
|
-
name: jquery-rails
|
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
|
114
|
-
requirements:
|
|
115
|
-
- - ! '>='
|
|
116
|
-
- !ruby/object:Gem::Version
|
|
117
|
-
version: '0'
|
|
118
|
-
type: :runtime
|
|
119
|
-
prerelease: false
|
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
-
requirements:
|
|
122
|
-
- - ! '>='
|
|
123
|
-
- !ruby/object:Gem::Version
|
|
124
|
-
version: '0'
|
|
125
111
|
- !ruby/object:Gem::Dependency
|
|
126
112
|
name: rails
|
|
127
113
|
requirement: !ruby/object:Gem::Requirement
|