den 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/den.gemspec +1 -1
- data/lib/den/page.rb +5 -5
- metadata +1 -1
data/den.gemspec
CHANGED
data/lib/den/page.rb
CHANGED
@@ -29,13 +29,13 @@ class Page < Resource
|
|
29
29
|
def process
|
30
30
|
File.open(@file) do |f|
|
31
31
|
page = markup(f.read)
|
32
|
-
end
|
33
32
|
|
34
|
-
|
35
|
-
|
33
|
+
# Extract the url from the filename
|
34
|
+
page[:id] = @file.split('/')[-1]
|
36
35
|
|
37
|
-
|
38
|
-
|
36
|
+
# Store the processed info
|
37
|
+
@content = page
|
38
|
+
end
|
39
39
|
end
|
40
40
|
|
41
41
|
end
|