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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Y2EzMTQwOTFiMjkzOTczZmYxZDQ1NTExNjNmZTdhMmI2MzkxMWZjYw==
4
+ OTRhNmY2NDM2MmYxMTliNjI0ZGJlMTQyYjRjY2Y0NTkwZjQ5NDY0NQ==
5
5
  data.tar.gz: !binary |-
6
- MjEyNmExOGFhYjExZDM5M2E1MmZhYWNjMmIyYjUwNzA5MGVhMDI3Yw==
6
+ NzJlZmE0ZDc1Njc5M2UyN2E2OTA2YTlhMjY4MDc1MmMyYjliNDljMg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NTgzM2RmOTRiNjEzYWNjZjlkMmEzZWMwYzM5ZDg4OWU4MTFhYzBhNGM3ZGVk
10
- MjkwOTdhNDkwODgxNGI1ZGIyMzcyMWZhOGM1ZDE2ODRmMTRmYmU5ZTIyYmJi
11
- M2IzMTNmOGIwY2QwNTU0ZDljNDhjYWVlYWJjMTlhNTY2NzMxMTA=
9
+ YWRmZDY2Y2NjODU1ZmQ2YmM5NzhlOGJmYzZmNmE1YjQxNzZkN2JlYWZjODcx
10
+ ZjcyMjBjYTNiNjY3MTk1OWE4MmE2NDY2YjY4ZGQ3MzEyODM3MWRiMzcwNzVh
11
+ YTI3MzUzOGNiNmI5ZjJhOTI1ZjBjZmRmMTY0MmM2YWQ2YmQ3ZWU=
12
12
  data.tar.gz: !binary |-
13
- MzMyZTgwZGExNDEyNDNmYzk4ZDVlMTlmMjFmODgzYTliNWNiMDk0NGRiZGU0
14
- NWEwNTk0NjA4MTFhMmFhZmYwNTU5MjJkODk5NGY4MjgwMDBjODBhZDZlNmQx
15
- MGFjMTYyODRmMmNiNTU1MjMyNjFjMjA3ZmFlNzM5ZDQxNjlkMTI=
13
+ NTE4YjU4ODcwNzhkMzg0OTg3OWUxYzYwYTYxMWVjYjU5MjU4NTE1ZjZiNmRi
14
+ MmZiNTJlZDEwNWJmYzg2NTY1MzZhZDlkNjQwMTljZmU1MWM0ZmE2YjA4MjRh
15
+ ZTBlNjMxMWUwNzY4NzA4ODk0YTRmNTNkNjAwODQ0ZWI3NjYyZjY=
data/Rakefile CHANGED
@@ -18,23 +18,22 @@
18
18
  #
19
19
  ################################################################################
20
20
 
21
- require 'bundler/gem_tasks'
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
- task :coveralls => [:spec, 'coveralls:push']
30
+
31
+ require 'ztk/rake/docs'
35
32
 
36
33
  ################################################################################
37
34
 
38
- require 'ztk/rake/docs'
35
+ task :coveralls => [:spec, 'coveralls:push']
36
+ task :default => [:spec]
37
+ task :test => [:spec]
39
38
 
40
39
  ################################################################################
@@ -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 :doc do
8
+ namespace :docs do
9
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
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
- FileUtils.mkdir_p(VENDOR_PATH)
15
- Dir.chdir(VENDOR_PATH) do
16
- system(%(git clone --branch gh-pages #{remote} #{DOC_PATH}))
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
- t.options = ['--verbose', '-o', DOC_PATH]
21
- end
22
-
23
- namespace :pages do
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
 
@@ -1,6 +1,6 @@
1
1
  module ZTK
2
2
 
3
3
  # ZTK Version String
4
- VERSION = "1.12.0"
4
+ VERSION = "1.13.0"
5
5
 
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ztk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0
4
+ version: 1.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zachary Patten