ztk 1.12.0 → 1.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Rakefile +7 -8
- data/lib/ztk/rake/docs.rb +19 -13
- data/lib/ztk/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTRhNmY2NDM2MmYxMTliNjI0ZGJlMTQyYjRjY2Y0NTkwZjQ5NDY0NQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzJlZmE0ZDc1Njc5M2UyN2E2OTA2YTlhMjY4MDc1MmMyYjliNDljMg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YWRmZDY2Y2NjODU1ZmQ2YmM5NzhlOGJmYzZmNmE1YjQxNzZkN2JlYWZjODcx
|
10
|
+
ZjcyMjBjYTNiNjY3MTk1OWE4MmE2NDY2YjY4ZGQ3MzEyODM3MWRiMzcwNzVh
|
11
|
+
YTI3MzUzOGNiNmI5ZjJhOTI1ZjBjZmRmMTY0MmM2YWQ2YmQ3ZWU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTE4YjU4ODcwNzhkMzg0OTg3OWUxYzYwYTYxMWVjYjU5MjU4NTE1ZjZiNmRi
|
14
|
+
MmZiNTJlZDEwNWJmYzg2NTY1MzZhZDlkNjQwMTljZmU1MWM0ZmE2YjA4MjRh
|
15
|
+
ZTBlNjMxMWUwNzY4NzA4ODk0YTRmNTNkNjAwODQ0ZWI3NjYyZjY=
|
data/Rakefile
CHANGED
@@ -18,23 +18,22 @@
|
|
18
18
|
#
|
19
19
|
################################################################################
|
20
20
|
|
21
|
-
require '
|
21
|
+
require 'rake/clean'
|
22
22
|
|
23
|
-
|
23
|
+
require 'bundler/gem_tasks'
|
24
24
|
|
25
25
|
require 'rspec/core/rake_task'
|
26
26
|
RSpec::Core::RakeTask.new(:spec)
|
27
|
-
task :default => :spec
|
28
|
-
task :test => :spec
|
29
|
-
|
30
|
-
################################################################################
|
31
27
|
|
32
28
|
require 'coveralls/rake/task'
|
33
29
|
Coveralls::RakeTask.new
|
34
|
-
|
30
|
+
|
31
|
+
require 'ztk/rake/docs'
|
35
32
|
|
36
33
|
################################################################################
|
37
34
|
|
38
|
-
|
35
|
+
task :coveralls => [:spec, 'coveralls:push']
|
36
|
+
task :default => [:spec]
|
37
|
+
task :test => [:spec]
|
39
38
|
|
40
39
|
################################################################################
|
data/lib/ztk/rake/docs.rb
CHANGED
@@ -5,25 +5,31 @@ GEM_NAME = File.basename(Dir.pwd)
|
|
5
5
|
VENDOR_PATH = File.expand_path(File.join(Dir.pwd, "vendor"))
|
6
6
|
DOC_PATH = File.join(VENDOR_PATH, "docs")
|
7
7
|
|
8
|
-
namespace :
|
8
|
+
namespace :docs do
|
9
9
|
|
10
|
-
YARD::Rake::YardocTask.new(:
|
11
|
-
|
12
|
-
|
10
|
+
YARD::Rake::YardocTask.new(:generate) do |t|
|
11
|
+
t.options = ['--verbose', '-o', DOC_PATH]
|
12
|
+
end
|
13
|
+
|
14
|
+
namespace :ghpages do
|
15
|
+
|
16
|
+
desc "Clone GitHub pages under vendor"
|
17
|
+
task :clone do
|
18
|
+
if !File.exists?(DOC_PATH)
|
19
|
+
remote = %x(git remote -v | grep 'origin').split[1].strip
|
13
20
|
|
14
|
-
|
15
|
-
|
16
|
-
|
21
|
+
FileUtils.mkdir_p(VENDOR_PATH)
|
22
|
+
Dir.chdir(VENDOR_PATH) do
|
23
|
+
system(%(git clone --branch gh-pages #{remote} #{DOC_PATH}))
|
24
|
+
end
|
17
25
|
end
|
18
26
|
end
|
19
27
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
28
|
+
desc 'Clone, generate and publish YARD Documentation to GitHub pages'
|
29
|
+
task :publish do
|
30
|
+
Rake::Task["docs:ghpages:clone"].invoke
|
31
|
+
Rake::Task["docs:generate"].invoke
|
24
32
|
|
25
|
-
desc 'Generate and publish YARD Documentation to GitHub pages'
|
26
|
-
task :publish => ['doc:pages'] do
|
27
33
|
describe = %x(git describe).chomp
|
28
34
|
stats = %x(bundle exec yard stats).chomp
|
29
35
|
|
data/lib/ztk/version.rb
CHANGED