ztk 1.11.1 → 1.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.gitignore +1 -0
- data/.travis.yml +9 -4
- data/Rakefile +1 -36
- data/lib/ztk/rake/docs.rb +43 -0
- data/lib/ztk/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Y2EzMTQwOTFiMjkzOTczZmYxZDQ1NTExNjNmZTdhMmI2MzkxMWZjYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MjEyNmExOGFhYjExZDM5M2E1MmZhYWNjMmIyYjUwNzA5MGVhMDI3Yw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTgzM2RmOTRiNjEzYWNjZjlkMmEzZWMwYzM5ZDg4OWU4MTFhYzBhNGM3ZGVk
|
10
|
+
MjkwOTdhNDkwODgxNGI1ZGIyMzcyMWZhOGM1ZDE2ODRmMTRmYmU5ZTIyYmJi
|
11
|
+
M2IzMTNmOGIwY2QwNTU0ZDljNDhjYWVlYWJjMTlhNTY2NzMxMTA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzMyZTgwZGExNDEyNDNmYzk4ZDVlMTlmMjFmODgzYTliNWNiMDk0NGRiZGU0
|
14
|
+
NWEwNTk0NjA4MTFhMmFhZmYwNTU5MjJkODk5NGY4MjgwMDBjODBhZDZlNmQx
|
15
|
+
MGFjMTYyODRmMmNiNTU1MjMyNjFjMjA3ZmFlNzM5ZDQxNjlkMTI=
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,12 +1,17 @@
|
|
1
1
|
language: ruby
|
2
|
-
|
3
2
|
rvm:
|
4
3
|
- ree
|
5
4
|
- 1.9.2
|
6
5
|
- 1.9.3
|
7
6
|
- 2.0.0
|
8
|
-
|
7
|
+
- 2.1.0
|
8
|
+
branches:
|
9
|
+
only:
|
10
|
+
- master
|
9
11
|
before_install: ./spec/support/before_install.sh
|
10
|
-
|
11
12
|
notifications:
|
12
|
-
irc:
|
13
|
+
irc:
|
14
|
+
channels:
|
15
|
+
- "irc.freenode.net#jovelabs"
|
16
|
+
use_notice: true
|
17
|
+
skip_join: true
|
data/Rakefile
CHANGED
@@ -35,41 +35,6 @@ task :coveralls => [:spec, 'coveralls:push']
|
|
35
35
|
|
36
36
|
################################################################################
|
37
37
|
|
38
|
-
require '
|
39
|
-
require 'yard/rake/yardoc_task'
|
40
|
-
|
41
|
-
GEM_NAME = File.basename(Dir.pwd)
|
42
|
-
DOC_PATH = File.expand_path(File.join("..", "", "#{GEM_NAME}.doc"))
|
43
|
-
|
44
|
-
namespace :doc do
|
45
|
-
YARD::Rake::YardocTask.new(:pages) do |t|
|
46
|
-
|
47
|
-
# t.files = ['lib/**/*.rb']
|
48
|
-
t.options = ['--verbose', '-o', DOC_PATH]
|
49
|
-
end
|
50
|
-
|
51
|
-
namespace :pages do
|
52
|
-
|
53
|
-
desc 'Generate and publish YARD Documentation to GitHub pages'
|
54
|
-
task :publish => ['doc:pages'] do
|
55
|
-
describe = %x(git describe).chomp
|
56
|
-
stats = %x(bundle exec yard stats).chomp
|
57
|
-
|
58
|
-
commit_message = Array.new
|
59
|
-
commit_message << "Generated YARD Documentation for #{GEM_NAME.upcase} #{describe}\n\n"
|
60
|
-
commit_message << stats
|
61
|
-
|
62
|
-
Dir.chdir(DOC_PATH) do
|
63
|
-
puts(%x{git add -Av})
|
64
|
-
puts(%x{git commit -m"#{commit_message.join}"})
|
65
|
-
puts(%x{git push origin gh-pages})
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
end
|
70
|
-
|
71
|
-
end
|
72
|
-
desc 'Alias to doc:yard'
|
73
|
-
task 'doc' => 'doc:yard'
|
38
|
+
require 'ztk/rake/docs'
|
74
39
|
|
75
40
|
################################################################################
|
@@ -0,0 +1,43 @@
|
|
1
|
+
require 'yard'
|
2
|
+
require 'yard/rake/yardoc_task'
|
3
|
+
|
4
|
+
GEM_NAME = File.basename(Dir.pwd)
|
5
|
+
VENDOR_PATH = File.expand_path(File.join(Dir.pwd, "vendor"))
|
6
|
+
DOC_PATH = File.join(VENDOR_PATH, "docs")
|
7
|
+
|
8
|
+
namespace :doc do
|
9
|
+
|
10
|
+
YARD::Rake::YardocTask.new(:pages) do |t|
|
11
|
+
if !File.exists?(DOC_PATH)
|
12
|
+
remote = %x(git remote -v | grep 'origin').split[1].strip
|
13
|
+
|
14
|
+
FileUtils.mkdir_p(VENDOR_PATH)
|
15
|
+
Dir.chdir(VENDOR_PATH) do
|
16
|
+
system(%(git clone --branch gh-pages #{remote} #{DOC_PATH}))
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
t.options = ['--verbose', '-o', DOC_PATH]
|
21
|
+
end
|
22
|
+
|
23
|
+
namespace :pages do
|
24
|
+
|
25
|
+
desc 'Generate and publish YARD Documentation to GitHub pages'
|
26
|
+
task :publish => ['doc:pages'] do
|
27
|
+
describe = %x(git describe).chomp
|
28
|
+
stats = %x(bundle exec yard stats).chomp
|
29
|
+
|
30
|
+
commit_message = Array.new
|
31
|
+
commit_message << "Generated YARD Documentation for #{GEM_NAME.upcase.inspect} #{describe}\n\n"
|
32
|
+
commit_message << stats
|
33
|
+
|
34
|
+
Dir.chdir(DOC_PATH) do
|
35
|
+
system(%(git add -Av))
|
36
|
+
system(%(git commit -m"#{commit_message.join}"))
|
37
|
+
system(%(git push origin gh-pages))
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
data/lib/ztk/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ztk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zachary Patten
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01
|
11
|
+
date: 2014-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -225,6 +225,7 @@ files:
|
|
225
225
|
- lib/ztk/logger.rb
|
226
226
|
- lib/ztk/parallel.rb
|
227
227
|
- lib/ztk/pty.rb
|
228
|
+
- lib/ztk/rake/docs.rb
|
228
229
|
- lib/ztk/report.rb
|
229
230
|
- lib/ztk/report/list.rb
|
230
231
|
- lib/ztk/report/private.rb
|
@@ -287,7 +288,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
287
288
|
version: '0'
|
288
289
|
requirements: []
|
289
290
|
rubyforge_project:
|
290
|
-
rubygems_version: 2.1
|
291
|
+
rubygems_version: 2.2.1
|
291
292
|
signing_key:
|
292
293
|
specification_version: 4
|
293
294
|
summary: Zachary's (DevOp) Tool Kit
|