capistrano_api_docs_external_git 1.0.1 → 1.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 94d96c73937dee3d6206f6ccde70df461b303d8d
4
- data.tar.gz: fcf49e59af38d00ba27331720166b52364f460a1
3
+ metadata.gz: 55ef7c897261d97b66a8c60b03209f2e638b3bd0
4
+ data.tar.gz: e47564876452f34bd102662e12742cbd1b4742ac
5
5
  SHA512:
6
- metadata.gz: b2b62ee862744833f42546c802c88b9a4d77a99764980c199ae1a2af3d9a6ec1b4ed40b90890746f8ea8945be845b5aaf6410e3fcb1f40e0f421be3faf9b58bf
7
- data.tar.gz: 7152f3212b09737f5a4f58c2b9032839f5fbcc34454b047261b2aaa86d0a1029b21c579c1ca891a013765263aa6adb506bcb547755e7f4d6dc215bdcd8a874db
6
+ metadata.gz: 9f2075facb91c7f68811b9d9e1c10ec02724dc9b688253da68847599bd0f685ecc8a1e659b700d695ec780373551fb853d5104e4b2f437c367ec8f57a9536e78
7
+ data.tar.gz: 3a4ee2c32090c7521c281f4f286c5ba4e914392adbd6054893ee2b92d41f55e2c780f4e06e25e56d983503cf8bf990892a4b7f11ff23c4d3d23d46ca8d611877
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ *.gem
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "capistrano_api_docs_external_git"
7
- spec.version = "1.0.1"
7
+ spec.version = "1.0.2"
8
8
  spec.authors = ["DevOps Team"]
9
9
  spec.email = ["devops@ndrive.com"]
10
10
  spec.summary = %q{Add tasks to capistrano to a Rails project to work with gem api_docs.}
@@ -8,9 +8,7 @@ namespace :api_docs_external_git do
8
8
  set :api_docs_path, fetch(:rails_root).join("doc", "api")
9
9
 
10
10
  task :setup do
11
- puts "**********************************"
12
- puts "Updating API Documentation"
13
- puts "**********************************"
11
+ info "Updating API documentation"
14
12
  invoke :'api_docs_external_git:clone_repo'
15
13
  invoke :'api_docs_external_git:copy_files'
16
14
  invoke :'api_docs_external_git:add_files_git'
@@ -19,7 +17,7 @@ namespace :api_docs_external_git do
19
17
 
20
18
  desc 'Clone documentation repository to tmp folder'
21
19
  task :clone_repo do
22
- puts "Cloning #{fetch(:doc_git_repository).to_s} for temporary folder"
20
+ info "Cloning #{fetch(:doc_git_repository)} for temporary folder"
23
21
  @git_repo = Git.clone(fetch(:doc_git_repository), fetch(:doc_repository_name), path: fetch(:rails_root_tmp_path))
24
22
  end
25
23
 
@@ -30,20 +28,20 @@ namespace :api_docs_external_git do
30
28
 
31
29
  FileUtils.rm_r destination_folder, force: true
32
30
 
33
- puts "Copying documentation files"
31
+ info "Copying documentation files"
34
32
  FileUtils.mkdir_p destination_folder
35
33
  FileUtils.cp_r files, destination_folder
36
34
  end
37
35
 
38
36
  desc 'Remove documentation repository'
39
37
  task :remove_files do
40
- puts "Removing documentation repository"
38
+ info "Removing documentation repository"
41
39
  FileUtils.rm_r fetch(:rails_root_tmp_path).join(fetch(:doc_repository_name))
42
40
  end
43
41
 
44
42
  desc 'Add files to documentation git'
45
43
  task :add_files_git do
46
- puts "Saving documentation files on git repository"
44
+ info "Saving documentation files on git repository"
47
45
 
48
46
  @git_repo.add(all: true)
49
47
  begin
@@ -56,4 +54,4 @@ namespace :api_docs_external_git do
56
54
  end
57
55
 
58
56
  before 'deploy:finishing', 'api_docs_external_git:setup'
59
- end
57
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano_api_docs_external_git
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - DevOps Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-04 00:00:00.000000000 Z
11
+ date: 2015-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: git
@@ -60,6 +60,7 @@ executables: []
60
60
  extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
+ - ".gitignore"
63
64
  - Gemfile
64
65
  - Gemfile.lock
65
66
  - LICENSE.txt
@@ -89,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
90
  version: '0'
90
91
  requirements: []
91
92
  rubyforge_project:
92
- rubygems_version: 2.4.3
93
+ rubygems_version: 2.4.5
93
94
  signing_key:
94
95
  specification_version: 4
95
96
  summary: Add tasks to capistrano to a Rails project to work with gem api_docs.