yarrow 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/yarrow/assets/pipeline.rb +11 -12
- data/lib/yarrow/version.rb +1 -1
- metadata +22 -6
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NTY0OGFkNzY1NzIzZWJjMTczOGE4NGI5N2FkYWVkNzNlNTlhOWYyZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MGUyYTMwN2ZjMTBiYmQ4NWQyMjZjZWUxNGQ3ZWMxNzkxY2JjYWM3NA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODJiYjM1ZWM1ZTkzMjM2OWRkNzhjY2NjMDQ1M2YzYTEzYzc2NTRhNzcxYWEx
|
10
|
+
ZGI4M2IyMGViYTIxMDMzNzgwNDUxZWMxMmFhYzVhM2Y3ODI0NGMzYjQwMWJl
|
11
|
+
Y2RhOTRhMDAzNWNmZWE0NGM0MzMyZmMxZDYyMjliMmU4ZDA4YTI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTBkN2Y3NTIzODgzNDEwZGU1ZDBmNGM4NGIyNmQyZGUxYzY3YjgzY2ZkMjky
|
14
|
+
MWYwNjc0YzBjNGU2ZjBlY2JjOGRmOTNhZTdkMzAxZGU1NzVkMTMxYzg5ZGY2
|
15
|
+
ZGEwNzBmOWQ4ZjNhZGE1YzQ0NDZlNzQ3NmQ5OWRlODY5YTQ2OTg=
|
@@ -1,6 +1,6 @@
|
|
1
|
-
require
|
2
|
-
require
|
3
|
-
require
|
1
|
+
require 'pathname'
|
2
|
+
require 'fileutils'
|
3
|
+
require 'sprockets'
|
4
4
|
|
5
5
|
module Yarrow
|
6
6
|
module Assets
|
@@ -8,9 +8,8 @@ module Yarrow
|
|
8
8
|
|
9
9
|
attr_reader :input_dir, :output_dir, :bundles, :assets
|
10
10
|
|
11
|
-
# TODO: handle configuration
|
12
11
|
def initialize(options)
|
13
|
-
raise
|
12
|
+
raise 'Missing asset configuration' unless options[:assets]
|
14
13
|
|
15
14
|
@input_dir = options[:assets][:input_dir] || default_input_dir
|
16
15
|
@output_dir = options[:assets][:input_dir] || default_output_dir
|
@@ -18,8 +17,8 @@ module Yarrow
|
|
18
17
|
case options[:assets][:append_paths]
|
19
18
|
when Array
|
20
19
|
@append_paths = options[:assets][:append_paths]
|
21
|
-
when
|
22
|
-
@append_paths = Dir[@input_dir +
|
20
|
+
when '*'
|
21
|
+
@append_paths = Dir[@input_dir + '/*'].select do |path|
|
23
22
|
File.directory?(path)
|
24
23
|
end.map do |path|
|
25
24
|
File.basename(path)
|
@@ -29,8 +28,8 @@ module Yarrow
|
|
29
28
|
end
|
30
29
|
end
|
31
30
|
|
32
|
-
def compile(assets=[])
|
33
|
-
manifest =Sprockets::Manifest.new(environment, manifest_file_path)
|
31
|
+
def compile(assets = [])
|
32
|
+
manifest = Sprockets::Manifest.new(environment, manifest_file_path)
|
34
33
|
assets.each do |asset|
|
35
34
|
manifest.compile(asset)
|
36
35
|
end
|
@@ -43,11 +42,11 @@ module Yarrow
|
|
43
42
|
private
|
44
43
|
|
45
44
|
def default_input_dir
|
46
|
-
Dir.pwd
|
45
|
+
"#{Dir.pwd}/assets"
|
47
46
|
end
|
48
47
|
|
49
48
|
def default_output_dir
|
50
|
-
|
49
|
+
"#{Dir.pwd}/web/ui"
|
51
50
|
end
|
52
51
|
|
53
52
|
def manifest_file_path
|
@@ -70,4 +69,4 @@ module Yarrow
|
|
70
69
|
end
|
71
70
|
|
72
71
|
end
|
73
|
-
end
|
72
|
+
end
|
data/lib/yarrow/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yarrow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Rickerby
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hashie
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ! '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: mementus
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: bundler
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,7 +94,8 @@ dependencies:
|
|
80
94
|
- - ! '>='
|
81
95
|
- !ruby/object:Gem::Version
|
82
96
|
version: '0'
|
83
|
-
description:
|
97
|
+
description: Yarrow is a tool for generating well structured documentation from a
|
98
|
+
variety of input sourcespec.
|
84
99
|
email: me@maetl.net
|
85
100
|
executables:
|
86
101
|
- yarrow
|
@@ -98,8 +113,9 @@ files:
|
|
98
113
|
- lib/yarrow/tools/front_matter.rb
|
99
114
|
- lib/yarrow/version.rb
|
100
115
|
- lib/yarrow.rb
|
101
|
-
homepage: http://
|
102
|
-
licenses:
|
116
|
+
homepage: http://rubygemspec.org/gems/yarrow
|
117
|
+
licenses:
|
118
|
+
- MIT
|
103
119
|
metadata: {}
|
104
120
|
post_install_message:
|
105
121
|
rdoc_options: []
|
@@ -120,5 +136,5 @@ rubyforge_project:
|
|
120
136
|
rubygems_version: 2.1.8
|
121
137
|
signing_key:
|
122
138
|
specification_version: 4
|
123
|
-
summary: Documentation generator
|
139
|
+
summary: Documentation generator based on a fluent data model.
|
124
140
|
test_files: []
|