hayde 0.1.9 → 0.1.10
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.
- data/VERSION +1 -1
- data/hayde.gemspec +1 -1
- data/lib/tasks/haydetasks.rb +20 -20
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.10
|
data/hayde.gemspec
CHANGED
data/lib/tasks/haydetasks.rb
CHANGED
@@ -5,32 +5,32 @@ CLOBBER.include('docs/guides')
|
|
5
5
|
|
6
6
|
namespace :hayde do
|
7
7
|
desc "Generates guides documentation."
|
8
|
-
task :build, [:output_dir, :assets_dir] do
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
8
|
+
task :build, [:output_dir, :assets_dir] do |t, args|
|
9
|
+
guides_generator = Hayde::Generator.new do |g|
|
10
|
+
g.sources.include 'guides/source/**/*'
|
11
|
+
g.sources.exclude 'guides/source/layout.*'
|
12
|
+
g.output_dir = args.output_dir if args.output_dir
|
13
|
+
g.assets_dir = args.assets_dir if args.assets_dir
|
14
|
+
end
|
15
|
+
guides_generator.generate
|
16
16
|
end
|
17
17
|
|
18
|
-
desc "Generates guides documentation."
|
19
|
-
task :rebuild, [:output_dir, :assets_dir] do
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
18
|
+
desc "Generates guides documentation (force rebuild)."
|
19
|
+
task :rebuild, [:output_dir, :assets_dir] do |t, args|
|
20
|
+
guides_generator = Hayde::Generator.new do |g|
|
21
|
+
g.sources.include 'guides/source/**/*'
|
22
|
+
g.sources.exclude 'guides/source/layout.*'
|
23
|
+
g.output_dir = args.output_dir if args.output_dir
|
24
|
+
g.assets_dir = args.assets_dir if args.assets_dir
|
25
|
+
g.force = true
|
26
|
+
end
|
27
|
+
guides_generator.generate
|
28
28
|
end
|
29
29
|
|
30
30
|
desc "Removes generated guides."
|
31
31
|
task :clean do
|
32
|
-
|
33
|
-
|
32
|
+
guides_generator = Hayde::Generator.new
|
33
|
+
guides_generator.clean
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hayde
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 10
|
10
|
+
version: 0.1.10
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Roman Zaharenkov
|