update_repo 0.9.4 → 0.9.5

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: 0327fdf6aa5e1eb35ac3efc393f27d5f18423fc3
4
- data.tar.gz: 7fd9292af4566176d19f5c67a7942cb42ba72bb8
3
+ metadata.gz: 5696a783dc964f8496706cda7909c28774600530
4
+ data.tar.gz: 7b6b09f1fb471211674ed5bd83cfb48529ecf35f
5
5
  SHA512:
6
- metadata.gz: 5097699d78b93cc61f1e60c4f13914bbb1f58bf6dcb9015b56aa2321c72034a021dae9ed8d9cd82b66aac1b63093e6868581f68a2df31ba32ac4fbf46605f8f2
7
- data.tar.gz: aecd3d79c10018bb60ff999822f3da31ab59390113c357768fb088f6a5d96c566d368bdba31307065e61dd6c35437aed0055745c1b30e00abc5f30deaf175410
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
- before_install: gem install bundler -v 1.13.7
10
- bundler_args: ""
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
- # opt :log_local, 'Create the logfile in the current directory instead of in the users home directory', default: false, short: 'o'
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'
@@ -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
- File.expand_path(File.join('~/', name))
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
@@ -1,4 +1,4 @@
1
1
  module UpdateRepo
2
2
  # constant, current version of this Gem
3
- VERSION = '0.9.4'.freeze
3
+ VERSION = '0.9.5'.freeze
4
4
  end
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
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-04 00:00:00.000000000 Z
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.8
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