update_repo 0.9.5 → 0.9.6

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.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +31 -0
  3. data/.csslintrc +2 -0
  4. data/.eslintignore +1 -0
  5. data/.eslintrc.yml +277 -0
  6. data/.gitignore +2 -0
  7. data/.reek +3 -0
  8. data/.rubocop.yml +7 -0
  9. data/.travis.yml +4 -4
  10. data/README.md +53 -2
  11. data/Vagrantfile +11 -0
  12. data/WEBSITE.md +73 -0
  13. data/docs/CNAME +2 -0
  14. data/docs/css/site.css +9485 -0
  15. data/docs/fonts/FontAwesome.otf +0 -0
  16. data/docs/fonts/fontawesome-webfont.eot +0 -0
  17. data/docs/fonts/fontawesome-webfont.svg +2671 -0
  18. data/docs/fonts/fontawesome-webfont.ttf +0 -0
  19. data/docs/fonts/fontawesome-webfont.woff +0 -0
  20. data/docs/fonts/fontawesome-webfont.woff2 +0 -0
  21. data/docs/fonts/glyphicons-halflings-regular.eot +0 -0
  22. data/docs/fonts/glyphicons-halflings-regular.svg +288 -0
  23. data/docs/fonts/glyphicons-halflings-regular.ttf +0 -0
  24. data/docs/fonts/glyphicons-halflings-regular.woff +0 -0
  25. data/docs/fonts/glyphicons-halflings-regular.woff2 +0 -0
  26. data/docs/index.html +554 -0
  27. data/docs/js/main.js +13669 -0
  28. data/lib/update_repo.rb +1 -1
  29. data/lib/update_repo/cmd_config.rb +10 -8
  30. data/lib/update_repo/console_output.rb +2 -2
  31. data/lib/update_repo/git_control.rb +27 -7
  32. data/lib/update_repo/logger.rb +1 -1
  33. data/lib/update_repo/version.rb +1 -1
  34. data/update_repo.gemspec +1 -0
  35. data/vagrant-support/bootstrap-sudo.sh +14 -0
  36. data/vagrant-support/bootstrap.sh +37 -0
  37. data/web/.nvmrc +1 -0
  38. data/web/.scss-lint.yml +45 -0
  39. data/web/gulpfile.js +133 -0
  40. data/web/index.html +260 -0
  41. data/web/js/scripts.js +2 -0
  42. data/web/js/site.js +7 -0
  43. data/web/package.json +48 -0
  44. data/web/partials/_contribute.html +22 -0
  45. data/web/partials/_footer.html +16 -0
  46. data/web/partials/_header.html +25 -0
  47. data/web/partials/_license.html +38 -0
  48. data/web/partials/_navbar.html +24 -0
  49. data/web/sass/partials/_colors.scss +36 -0
  50. data/web/sass/partials/_fonts.scss +3 -0
  51. data/web/sass/partials/_mixins.scss +8 -0
  52. data/web/sass/partials/_variables.scss +3 -0
  53. data/web/sass/site.scss +263 -0
  54. data/web/webdata.json +112 -0
  55. metadata +44 -3
data/web/js/scripts.js ADDED
@@ -0,0 +1,2 @@
1
+ global.jQuery = require('jquery')
2
+ var bootstrap = require('bootstrap')
data/web/js/site.js ADDED
@@ -0,0 +1,7 @@
1
+ // Site-specific Javascript
2
+
3
+ // return the version number of the latest released Gem
4
+ function GetGemVer () {
5
+ // URL to the API...
6
+ var APIUrl = 'https://rubygems.org/api/v1/versions/update_repo/latest.json'
7
+ }
data/web/package.json ADDED
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "update_repo-website",
3
+ "version": "1.0.0",
4
+ "description": "Website for the 'update_repo' Ruby gem",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/seapagan/update_repo.git"
12
+ },
13
+ "keywords": [
14
+ "update_repo",
15
+ "Ruby",
16
+ "Git"
17
+ ],
18
+ "author": "Grant Ramsay",
19
+ "license": "MIT",
20
+ "bugs": {
21
+ "url": "https://github.com/seapagan/update_repo/issues"
22
+ },
23
+ "homepage": "https://github.com/seapagan/update_repo#readme",
24
+ "devDependencies": {
25
+ "bootstrap": "^3.3.7",
26
+ "browser-sync": "^2.18.8",
27
+ "font-awesome": "^4.7.0",
28
+ "gulp": "^3.9.1",
29
+ "gulp-autoprefixer": "^3.1.1",
30
+ "gulp-browserify": "^0.5.1",
31
+ "gulp-clean": "^0.3.2",
32
+ "gulp-concat": "^2.6.1",
33
+ "gulp-cssmin": "^0.1.7",
34
+ "gulp-html-replace": "^1.6.2",
35
+ "gulp-htmlmin": "^3.0.0",
36
+ "gulp-imagemin": "^3.1.1",
37
+ "gulp-inject-partials": "^1.0.2",
38
+ "gulp-minify": "0.0.15",
39
+ "gulp-mustache": "^2.3.0",
40
+ "gulp-newer": "^1.3.0",
41
+ "gulp-rename": "^1.2.2",
42
+ "gulp-sass": "^3.1.0",
43
+ "jquery": "^3.1.1",
44
+ "merge-stream": "^1.0.1",
45
+ "mustache": "^2.3.0",
46
+ "prismjs": "^1.6.0"
47
+ }
48
+ }
@@ -0,0 +1,22 @@
1
+ <div class="container">
2
+ <div class="row row-header">
3
+ <div class="col-lg-12 col-md-12">
4
+ <h1 class="icon fa-code-fork">Contribute to the Development</h1>
5
+ </div>
6
+ </div><!-- row -->
7
+ <div class="row row-body">
8
+ <div class="col-lg-12 col-md-12">
9
+ <h2>Contributing</h2>
10
+ <p>The source code for <span class="console-output">update_repo</span> is freely available on my <a target="_blank" class="icon fa-external-link" href="https://github.com/seapagan/update_repo">Github</a> pages, under the <a class="icon fa-external-link" target="_blank" href="http://opensource.org/licenses/MIT">MIT</a> license.</p>
11
+ <p>If you wish to help in any way then :</p>
12
+ <ol>
13
+ <li>Fork it</li>
14
+ <li>Create your feature branch (<span class="console-output">git checkout -b my-new-feature</span>)</li>
15
+ <li>Commit your changes (<span class="console-output">git commit -am 'Add some feature'</span>)</li>
16
+ <li>Push to the branch (<span class="console-output">git push origin my-new-feature</span>)</li>
17
+ <li>Create a new Pull Request</li>
18
+ </ol>
19
+ <p>For full information on how to contribute to the development of this Gem or the Website, please see the Development section on the projects <a class="icon fa-external-link" target="_blank" href="https://github.com/seapagan/update_repo#development">Github repository</a>.</p>
20
+ </div>
21
+ </div><!-- row -->
22
+ </div><!-- container -->
@@ -0,0 +1,16 @@
1
+ <!-- FOOTER -->
2
+ <footer class="footer">
3
+ <div class="container">
4
+ <div class="row">
5
+ <div class="col-lg-12 text-right">
6
+ &copy; Grant Ramsay 2017 | <span class="site-version">Website v2.0-beta</span> | See my public projects on <a target="_blank" class="icon fa-github" href="https://github.com/seapagan">Github</a>
7
+ </div>
8
+ </div><!-- row -->
9
+ </div><!-- container -->
10
+ </footer>
11
+
12
+ <!-- build:js -->
13
+ <script src='js/main.js'></script>
14
+ <!-- endbuild -->
15
+ </body>
16
+ </html>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1">
7
+ <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
8
+ <title>update_repo | Automate the update of multiple local Git repository clones</title>
9
+
10
+ <!-- build:css -->
11
+ <link rel="stylesheet" href="css/site.css">
12
+ <!-- endbuild -->
13
+
14
+ <!-- Google fonts -->
15
+ <link href="https://fonts.googleapis.com/css?family=Lato|Droid+Serif|Raleway" rel="stylesheet">
16
+
17
+ <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
18
+ <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
19
+ <!--[if lt IE 9]>
20
+ <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
21
+ <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
22
+ <![endif]-->
23
+ </head>
24
+ <body>
25
+
@@ -0,0 +1,38 @@
1
+ <div class="container">
2
+ <div class="row row-header">
3
+ <div class="col-lg-12 col-md-12">
4
+ <h1 class="icon fa-book">License</h1>
5
+
6
+ </div><!-- col -->
7
+ </div><!-- row -->
8
+ <div class="row row-body">
9
+ <div class="col-lg-12 col-md-12">
10
+ <p>The gem is available as open source under the terms of the <a class="icon fa-external-link" target="_blank" href="http://opensource.org/licenses/MIT">MIT</a> License, see the file <span class="filename">LICENSE.txt</span>, also reproduced below :</p>
11
+ <pre>
12
+ <code class="language-markup">
13
+ The MIT License (MIT)
14
+
15
+ Copyright (c) 2016 Grant Ramsay
16
+
17
+ Permission is hereby granted, free of charge, to any person obtaining a copy
18
+ of this software and associated documentation files (the "Software"), to deal
19
+ in the Software without restriction, including without limitation the rights
20
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
21
+ copies of the Software, and to permit persons to whom the Software is
22
+ furnished to do so, subject to the following conditions:
23
+
24
+ The above copyright notice and this permission notice shall be included in
25
+ all copies or substantial portions of the Software.
26
+
27
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
28
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
29
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
30
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
31
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
32
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
33
+ THE SOFTWARE.
34
+ </code>
35
+ </pre>
36
+ </div>
37
+ </div>
38
+ </div><!-- container -->
@@ -0,0 +1,24 @@
1
+ <nav class="navbar navbar-inverse navbar-fixed-top">
2
+ <div class="container">
3
+ <span class="forkongithub"><a href="https://github.com/seapagan/update_repo" target="_blank">Fork me on GitHub</a></span>
4
+ <div class="navbar-header">
5
+ <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
6
+ <span class="sr-only">Toggle navigation</span>
7
+ <span class="icon-bar"></span>
8
+ <span class="icon-bar"></span>
9
+ <span class="icon-bar"></span>
10
+ </button>
11
+ <a class="navbar-brand" href="#">Update_Repo</a>
12
+ </div>
13
+ <div id="navbar" class="collapse navbar-collapse">
14
+ <ul class="nav navbar-nav">
15
+ <li><a href="#about">About</a></li>
16
+ <li><a href="#installation">Installation</a></li>
17
+ <li><a href="#usage">Usage</a></li>
18
+ <li><a href="#configuration">Configuration</a></li>
19
+ <li><a href="#contribute">Contribute</a></li>
20
+ <li><a href="#license">License</a></li>
21
+ </ul>
22
+ </div><!--/.nav-collapse -->
23
+ </div>
24
+ </nav>
@@ -0,0 +1,36 @@
1
+ // === COLORS ===
2
+ $body-background-color: #808080;
3
+
4
+ $hilight-border-color: #ccc;
5
+ $hilight-background-color: #f5f2f0;
6
+
7
+ $row-border-color: #0d0d0d;
8
+ $row-header-color: #d7d7c1;
9
+ $row-body-color: #ebebe0;
10
+
11
+ $headline-color: #54542c;
12
+
13
+ $footer-color: #ddd;
14
+ $footer-version-color: #fff;
15
+
16
+ $link-hover-color: #c00;
17
+
18
+ $text-shadow-color: #aaa;
19
+
20
+ $navbar-background-color: #404040;
21
+ $navbar-border-color: #b9b9b9;
22
+ $navbar-link-color: #ccc;
23
+ $navbar-link--hover-color: #fff;
24
+ $navbar-link--hover-background: #646464;
25
+ $navbar-brand-color: #fff;
26
+
27
+ $filename-hilight-color: #444;
28
+ $console-hilight-color: #444;
29
+ $yaml-hilight-color: #07a;
30
+ $cmdline-hilight-color: #f33;
31
+ $important-hilight-color: #f33;
32
+
33
+ $forking-color: #fff;
34
+ $forking-background-color: #800;
35
+ $forking-hover-color: #c11;
36
+ $forking-box-shadow-color: rgba(0, 0, 0, .8);
@@ -0,0 +1,3 @@
1
+ $body-font: 'Raleway', sans-serif;
2
+ $headline-font: 'Droid Serif', sans-serif;
3
+ $fork-font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
@@ -0,0 +1,8 @@
1
+ @mixin hilight-box($color) {
2
+ font-weight: bold;
3
+ border: thin solid $hilight-border-color;
4
+ border-radius: $hilight-border-radius;
5
+ background-color: $hilight-background-color;
6
+ color: $color;
7
+ padding: 0 .3em;
8
+ }
@@ -0,0 +1,3 @@
1
+ $hilight-border-radius: 5px;
2
+
3
+ $section-padding-bottom: 30px;
@@ -0,0 +1,263 @@
1
+ @import 'partials/colors';
2
+ @import 'partials/fonts';
3
+ @import 'partials/variables';
4
+ @import 'partials/mixins';
5
+
6
+ // GENERAL
7
+ body {
8
+ background-color: $body-background-color;
9
+ font-family: $body-font;
10
+ }
11
+
12
+ h1 {
13
+ color: $headline-color;
14
+ font-family: $headline-font;
15
+ font-size: 2.5em;
16
+ margin: 10px;
17
+ text-align: center;
18
+ text-shadow: $text-shadow-color 2px 1px 3px;
19
+ }
20
+
21
+ a:hover {
22
+ color: $link-hover-color;
23
+ text-decoration: none;
24
+ }
25
+
26
+ h2 {
27
+ font-family: $headline-font;
28
+ font-size: 2em;
29
+ text-decoration: underline;
30
+ text-shadow: $text-shadow-color 2px 1px 3px;
31
+ }
32
+
33
+ .row-header {
34
+ background-color: $row-header-color;
35
+ border: thin solid $row-border-color;
36
+ border-top-left-radius: 10px;
37
+ border-top-right-radius: 10px;
38
+ }
39
+
40
+ .row-body {
41
+ background-color: $row-body-color;
42
+ border: thin solid $row-border-color;
43
+ border-bottom-left-radius: 10px;
44
+ border-bottom-right-radius: 10px;
45
+ border-top: 0;
46
+ padding: 10px 0;
47
+ }
48
+
49
+ .filename {
50
+ @include hilight-box($color: $filename-hilight-color);
51
+ }
52
+
53
+ .yaml-tag {
54
+ @include hilight-box($color: $yaml-hilight-color);
55
+ }
56
+
57
+ .cmdline {
58
+ @include hilight-box($color: $cmdline-hilight-color);
59
+ }
60
+
61
+ .console-output {
62
+ @include hilight-box($color: $console-hilight-color);
63
+ }
64
+
65
+ .important-note {
66
+ @include hilight-box($color: $important-hilight-color);
67
+ font-size: 1.3em;
68
+ padding: 5px;
69
+ text-align: justify;
70
+ text-shadow: $text-shadow-color 2px 1px 3px;
71
+ }
72
+
73
+ .icon::before {
74
+ display: inline-block;
75
+ font: normal normal normal 14px/1 FontAwesome;
76
+ font-size: inherit;
77
+ -moz-osx-font-smoothing: grayscale;
78
+ -webkit-font-smoothing: antialiased;
79
+ margin-right: .25em;
80
+ text-rendering: auto;
81
+ transform: translate(0, 0);
82
+ }
83
+
84
+ // NAVBAR
85
+ .navbar {
86
+ background-color: $navbar-background-color;
87
+ border-bottom: 1px solid $navbar-border-color;
88
+
89
+ a {
90
+ color: $navbar-link-color !important;
91
+
92
+ &:hover {
93
+ background-color: $navbar-link--hover-background !important;
94
+ color: $navbar-link--hover-color !important;
95
+ }
96
+ }
97
+ }
98
+
99
+ .navbar-header {
100
+ .navbar-brand {
101
+ color: $navbar-brand-color !important;
102
+ font-size: 1.5em;
103
+ }
104
+ }
105
+
106
+ // ABOUT
107
+ .about {
108
+ padding-bottom: $section-padding-bottom;
109
+ padding-top: 65px;
110
+
111
+ .container {
112
+ }
113
+ }
114
+
115
+ //INSTALLATION
116
+ .installation {
117
+ padding-bottom: $section-padding-bottom;
118
+
119
+ .container {
120
+ }
121
+ }
122
+
123
+ // USAGE
124
+ .usage {
125
+ padding-bottom: $section-padding-bottom;
126
+
127
+ .container {
128
+ }
129
+ }
130
+
131
+ // CONFIGURATION
132
+ .configuration {
133
+ padding-bottom: $section-padding-bottom;
134
+
135
+ .container {
136
+ }
137
+
138
+ .cmd-opt {
139
+ text-align: center;
140
+
141
+ .desc {
142
+ font-weight: bold;
143
+ }
144
+ }
145
+
146
+ .cmd-header {
147
+ font-size: 1.3em;
148
+ margin-top: 20px;
149
+ padding: 10px 0 0 10px;
150
+ }
151
+
152
+ .opt-list li {
153
+ list-style: none;
154
+ text-align: left;
155
+ }
156
+
157
+ .cmd-body {
158
+ }
159
+
160
+ .cmd-block {
161
+ border: solid thin;
162
+ border-radius: 10px;
163
+ padding: 5px;
164
+ }
165
+
166
+ .cmd-text {
167
+ font-style: italic;
168
+ padding: 0 20px;
169
+ }
170
+ }
171
+
172
+ // CONTRIBUTE
173
+ .contribute {
174
+ padding-bottom: $section-padding-bottom;
175
+
176
+ .container {
177
+ }
178
+ }
179
+
180
+ // LICENSE
181
+ .license {
182
+ padding-bottom: $section-padding-bottom;
183
+
184
+ .container {
185
+ }
186
+ }
187
+
188
+ // FOOTER
189
+ .footer {
190
+ padding-bottom: $section-padding-bottom;
191
+
192
+ a {
193
+ color: $footer-color;
194
+
195
+ &:hover {
196
+ color: $link-hover-color;
197
+ }
198
+ }
199
+
200
+ .site-version {
201
+ color: $footer-version-color;
202
+ }
203
+ }
204
+
205
+ // FORK on GITHUB logo
206
+ .forkongithub a {
207
+ background: $forking-background-color;
208
+ color: $forking-color;
209
+ font-family: $fork-font;
210
+ font-size: 2rem;
211
+ font-weight: 600;
212
+ line-height: 2rem;
213
+ padding: 5px 20px;
214
+ position: relative;
215
+ text-align: center;
216
+ text-decoration: none;
217
+ transition: .5s;
218
+ white-space: nowrap;
219
+
220
+ &:hover {
221
+ background: $forking-hover-color;
222
+ color: $forking-color;
223
+ }
224
+
225
+ &::before,
226
+ &::after {
227
+ background: $forking-color;
228
+ content: '';
229
+ display: block;
230
+ height: 1px;
231
+ left: 0;
232
+ position: absolute;
233
+ top: 1px;
234
+ width: 100%;
235
+ }
236
+
237
+ &::after {
238
+ bottom: 1px;
239
+ top: auto;
240
+ }
241
+ }
242
+
243
+ @media screen and (min-width:800px) {
244
+ .forkongithub {
245
+ display: block;
246
+ height: 400px;
247
+ overflow: hidden;
248
+ position: fixed;
249
+ right: 0;
250
+ top: 0;
251
+ width: 300px;
252
+ z-index: 9999;
253
+ }
254
+
255
+ .forkongithub a {
256
+ box-shadow: 4px 4px 10px $forking-box-shadow-color;
257
+ position: absolute;
258
+ right: -70px;
259
+ top: 70px;
260
+ transform: rotate(45deg);
261
+ width: 300px;
262
+ }
263
+ }