aweplug 1.0.0.a8 → 1.0.0.a9
Sign up to get free protection for your applications and to get access to all the features.
@@ -57,7 +57,7 @@ module Aweplug::Extensions
|
|
57
57
|
:sys_type => 'jbossdeveloper_example',
|
58
58
|
:sys_content_type => 'example',
|
59
59
|
:sys_content_provider => 'jboss-developer',
|
60
|
-
:contributors => metadata[:commits].collect { |c| c[:author] }.uniq,
|
60
|
+
:contributors => metadata[:commits].collect { |c| c[:author] }.unshift(metadata[:author]).uniq,
|
61
61
|
:sys_created => metadata[:commits].collect { |c| DateTime.parse c[:date] }.last,
|
62
62
|
:sys_activity_dates => metadata[:commits].collect { |c| DateTime.parse c[:date] },
|
63
63
|
:sys_updated => metadata[:commits].collect { |c| DateTime.parse c[:date] }.first
|
@@ -47,7 +47,7 @@ module Aweplug
|
|
47
47
|
:sys_type => 'jbossdeveloper_quickstart',
|
48
48
|
:sys_content_type => 'quickstart',
|
49
49
|
:sys_content_provider => 'jboss-developer',
|
50
|
-
:contributors => metadata[:commits].collect { |c| c[:author] }.uniq,
|
50
|
+
:contributors => metadata[:commits].collect { |c| c[:author] }.unshift(metadata[:author]).uniq,
|
51
51
|
:sys_created => metadata[:commits].collect { |c| DateTime.parse c[:date] }.last,
|
52
52
|
:sys_activity_dates => metadata[:commits].collect { |c| DateTime.parse c[:date] },
|
53
53
|
:sys_updated => metadata[:commits].collect { |c| DateTime.parse c[:date] }.first,
|
@@ -13,9 +13,9 @@ module Aweplug
|
|
13
13
|
|
14
14
|
case (path)
|
15
15
|
when Pathname
|
16
|
-
@path = path
|
16
|
+
@path = Pathname.new(File.join site.dir, 'synthetic', path)
|
17
17
|
else
|
18
|
-
@path = Pathname.new(path.to_s)
|
18
|
+
@path = Pathname.new(File.join site.dir, 'synthetic', path.to_s)
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
@@ -26,6 +26,24 @@ module Aweplug
|
|
26
26
|
def rendered_content(context, with_layouts)
|
27
27
|
@content
|
28
28
|
end
|
29
|
+
|
30
|
+
def raw_content
|
31
|
+
@content
|
32
|
+
end
|
33
|
+
|
34
|
+
def relative_source_path
|
35
|
+
# Copied from file_handler.rb in awestruct
|
36
|
+
begin
|
37
|
+
p = @path.relative_path_from( site.dir )
|
38
|
+
if !! ( %r(^\.\.) =~ p.to_s )
|
39
|
+
return nil
|
40
|
+
end
|
41
|
+
r = File.join( '', p )
|
42
|
+
return r
|
43
|
+
rescue Exception=>e
|
44
|
+
nil
|
45
|
+
end
|
46
|
+
end
|
29
47
|
end
|
30
48
|
end
|
31
49
|
end
|
data/lib/aweplug/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aweplug
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.a9
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-01-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: octokit
|