update_repo 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -2
- data/README.md +0 -1
- data/lib/update_repo/cmd_config.rb +1 -1
- data/lib/update_repo/logger.rb +7 -1
- data/lib/update_repo/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5696a783dc964f8496706cda7909c28774600530
|
4
|
+
data.tar.gz: 7b6b09f1fb471211674ed5bd83cfb48529ecf35f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6c19d51e5929e3ce20d1dd8381229366d0951724a7655632c5dd60247d7336cc3660fd0d658e4d949072e6bca4025e5361ca725720b54b1fc23df61d69369d1
|
7
|
+
data.tar.gz: 35ebc0cee27d2d64a95c98613f98aac5d161b28a3c50c519c1f4bb30625c2d132eae021748468f71deb19eddc5a318f4c64f6ffd8a9a9266f202d42c458f7d73
|
data/.travis.yml
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
language: ruby
|
2
|
+
|
2
3
|
rvm:
|
3
4
|
- 1.9.3-p551
|
4
5
|
- 2.0.0-p648
|
@@ -6,5 +7,7 @@ rvm:
|
|
6
7
|
- 2.2.6
|
7
8
|
- 2.3.3
|
8
9
|
- 2.4.0
|
9
|
-
|
10
|
-
|
10
|
+
|
11
|
+
before_install:
|
12
|
+
- gem update --system
|
13
|
+
- gem install bundler -v 1.13.7
|
data/README.md
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
# update_repo [![Gem Version](https://badge.fury.io/rb/update_repo.svg)](https://badge.fury.io/rb/update_repo) [![Build Status](https://travis-ci.org/seapagan/update_repo.svg?branch=master)](https://travis-ci.org/seapagan/update_repo)
|
2
2
|
|
3
|
-
[![Dependency Status](https://gemnasium.com/seapagan/update_repo.svg)](https://gemnasium.com/seapagan/update_repo)
|
4
3
|
[![Coverage Status](https://coveralls.io/repos/seapagan/update_repo/badge.svg?branch=master&service=github)](https://coveralls.io/github/seapagan/update_repo?branch=master)
|
5
4
|
[![Code Climate](https://codeclimate.com/github/seapagan/update_repo/badges/gpa.svg)](https://codeclimate.com/github/seapagan/update_repo)
|
6
5
|
[![Inline docs](http://inch-ci.org/github/seapagan/update_repo.svg?branch=master)](http://inch-ci.org/github/seapagan/update_repo)
|
@@ -121,7 +121,7 @@ EOS
|
|
121
121
|
# opt :import, "Import a previous dump of directories and Git repository URL's,\n(created using --dump) then proceed to clone them locally.", default: false
|
122
122
|
opt :log, "Create a logfile of all program output to './update_repo.log'. Any older logs will be overwritten.", default: false
|
123
123
|
opt :timestamp, 'Timestamp the logfile instead of overwriting. Does nothing unless the --log option is also specified.', default: false
|
124
|
-
|
124
|
+
opt :log_local, 'Create the logfile in the current directory instead of in the users home directory', default: false, short: 'g'
|
125
125
|
opt :dump_remote, 'Create a dump to screen or log, listing all the git remote URLS found in the specified directories.', default: false, short: 'r'
|
126
126
|
opt :dump_tree, 'Create a dump to screen or log, listing all subdirectories found below the specified locations in tree format.', default: false, short: 'u'
|
127
127
|
opt :verbose, 'Display each repository and the git output to screen', default: false, short: 'V'
|
data/lib/update_repo/logger.rb
CHANGED
@@ -31,12 +31,18 @@ module UpdateRepo
|
|
31
31
|
# @param [none]
|
32
32
|
# @return [string] Filename for the logfile.
|
33
33
|
def generate_filename
|
34
|
+
# add a timestamp if requested
|
34
35
|
if @cmd[:timestamp]
|
35
36
|
name = 'updaterepo-' + Time.new.strftime('%y%m%d-%H%M%S') + '.log'
|
36
37
|
else
|
37
38
|
name = 'updaterepo.log'
|
38
39
|
end
|
39
|
-
|
40
|
+
# log to local directory instead of home directory if requested
|
41
|
+
if @cmd[:log_local]
|
42
|
+
File.expand_path(File.join('./', name))
|
43
|
+
else
|
44
|
+
File.expand_path(File.join('~/', name))
|
45
|
+
end
|
40
46
|
end
|
41
47
|
|
42
48
|
# this function will simply pass the given string to 'print', and also
|
data/lib/update_repo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: update_repo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Grant Ramsay
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -299,7 +299,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
299
299
|
version: '0'
|
300
300
|
requirements: []
|
301
301
|
rubyforge_project:
|
302
|
-
rubygems_version: 2.6.
|
302
|
+
rubygems_version: 2.6.10
|
303
303
|
signing_key:
|
304
304
|
specification_version: 4
|
305
305
|
summary: A Simple Gem to keep multiple locally-cloned Git Repositories up to date
|