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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjJiMDZhODQ2MTM3ZmExNDNhY2M1ODc4Yjg4NDhmMDI1NDk1NDRiYw==
4
+ Y2EzMTQwOTFiMjkzOTczZmYxZDQ1NTExNjNmZTdhMmI2MzkxMWZjYw==
5
5
  data.tar.gz: !binary |-
6
- NTQ2MzgwMzc3MjQ4MjhkNmYzMjZkMjE4MTE1N2Q0M2IwOWU1YTllYw==
6
+ MjEyNmExOGFhYjExZDM5M2E1MmZhYWNjMmIyYjUwNzA5MGVhMDI3Yw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MTA2NzhhODI2ZmU4MjM4YmM5ZjI4ODkyOTE3YTNmODhkYzA1NGY5MmY0YTA0
10
- ZWI2MGIyNjk4NGUwZjJhMDU2MjcyNzkzYjEwNzQ3NjA4YjQ0NGI1NTNmNWE1
11
- MWE5NmViODE2MWQ0YmM2YWFkODllYzNiZWU4YTlkNjEyYjVkNmY=
9
+ NTgzM2RmOTRiNjEzYWNjZjlkMmEzZWMwYzM5ZDg4OWU4MTFhYzBhNGM3ZGVk
10
+ MjkwOTdhNDkwODgxNGI1ZGIyMzcyMWZhOGM1ZDE2ODRmMTRmYmU5ZTIyYmJi
11
+ M2IzMTNmOGIwY2QwNTU0ZDljNDhjYWVlYWJjMTlhNTY2NzMxMTA=
12
12
  data.tar.gz: !binary |-
13
- MWQ1MTE4MTVkYzkwMTRmZTM4YmJhMWE1MGRhZDNmZDhhYTRkYzUwNjcyZmM0
14
- MGU3NjQwYWZlYTRkYzA0YWRmMDg0ZTZjYTRiZTBlNjY0MDcyYzI3NDE2YzRm
15
- ZjdlMmNmNGNkOTQxMDk4NDMzZmFiODNjN2JlNjA5OWE3ZWIxNzY=
13
+ MzMyZTgwZGExNDEyNDNmYzk4ZDVlMTlmMjFmODgzYTliNWNiMDk0NGRiZGU0
14
+ NWEwNTk0NjA4MTFhMmFhZmYwNTU5MjJkODk5NGY4MjgwMDBjODBhZDZlNmQx
15
+ MGFjMTYyODRmMmNiNTU1MjMyNjFjMjA3ZmFlNzM5ZDQxNjlkMTI=
data/.gitignore CHANGED
@@ -17,3 +17,4 @@ spec/reports
17
17
  test/tmp
18
18
  test/version_tmp
19
19
  tmp
20
+ vendor
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: "irc.freenode.net#jovelabs"
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 'yard'
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
@@ -1,6 +1,6 @@
1
1
  module ZTK
2
2
 
3
3
  # ZTK Version String
4
- VERSION = "1.11.1"
4
+ VERSION = "1.12.0"
5
5
 
6
6
  end
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.11.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-29 00:00:00.000000000 Z
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.11
291
+ rubygems_version: 2.2.1
291
292
  signing_key:
292
293
  specification_version: 4
293
294
  summary: Zachary's (DevOp) Tool Kit