getrepos 0.1.0

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 (58) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +6 -0
  3. data/README.md +154 -0
  4. data/Rakefile +16 -0
  5. data/bin/getrepos +68 -0
  6. data/getrepos.gemspec +29 -0
  7. data/lib/getrepos/init.rb +34 -0
  8. data/lib/getrepos/install.rb +115 -0
  9. data/lib/getrepos/util.rb +48 -0
  10. data/lib/getrepos/version.rb +3 -0
  11. data/lib/getrepos.rb +3 -0
  12. data/test/basic-usage-test.sh +80 -0
  13. data/test/check-test.sh +60 -0
  14. data/test/common-archives-test.sh +63 -0
  15. data/test/github-archives-test.sh +108 -0
  16. data/test/helper/roundup.sh +307 -0
  17. data/test/helper/valid_json.rb +25 -0
  18. data/test/path-filter-test.sh +28 -0
  19. data/test/repos-basic-usage.json +24 -0
  20. data/test/repos-check-absent-all.json +3 -0
  21. data/test/repos-check-absent-name.json +3 -0
  22. data/test/repos-check-absent-repos.json +3 -0
  23. data/test/repos-check-absent-url.json +3 -0
  24. data/test/repos-check-absent-version.json +3 -0
  25. data/test/repos-check-invalid-filetype.json +3 -0
  26. data/test/repos-common-httpd-tar-bz2.json +3 -0
  27. data/test/repos-common-httpd-tar-gz.json +3 -0
  28. data/test/repos-common-mod_fcgid-tar-bz2.json +3 -0
  29. data/test/repos-common-mod_fcgid-tar-gz.json +3 -0
  30. data/test/repos-common-python-tar-xz.json +3 -0
  31. data/test/repos-common-python-tgz.json +3 -0
  32. data/test/repos-common-ruby-tar-bz2.json +3 -0
  33. data/test/repos-common-ruby-tar-gz.json +3 -0
  34. data/test/repos-common-ruby-tar-xz.json +3 -0
  35. data/test/repos-common-ruby-zip.json +3 -0
  36. data/test/repos-github-hiredis-git.json +3 -0
  37. data/test/repos-github-hiredis-tar-gz.json +3 -0
  38. data/test/repos-github-hiredis-zip.json +3 -0
  39. data/test/repos-github-libmaxminddb-git.json +3 -0
  40. data/test/repos-github-libmaxminddb-release-tar-gz.json +3 -0
  41. data/test/repos-github-libmaxminddb-tar-gz.json +3 -0
  42. data/test/repos-github-libmaxminddb-zip.json +3 -0
  43. data/test/repos-github-other-name-id-tar-gz.json +3 -0
  44. data/test/repos-github-other-name-id-zip.json +3 -0
  45. data/test/repos-github-other-name-id.json +3 -0
  46. data/test/repos-github-other-name-tag-tar-gz.json +3 -0
  47. data/test/repos-github-other-name-tag-zip.json +3 -0
  48. data/test/repos-github-other-name-tag.json +3 -0
  49. data/test/repos-github-same-name-id-tar-gz.json +3 -0
  50. data/test/repos-github-same-name-id-zip.json +3 -0
  51. data/test/repos-github-same-name-id.json +3 -0
  52. data/test/repos-github-same-name-tag-tar-gz.json +3 -0
  53. data/test/repos-github-same-name-tag-zip.json +3 -0
  54. data/test/repos-github-same-name-tag.json +3 -0
  55. data/test/repos-path-filter-git.json +5 -0
  56. data/test/repos-path-filter-tar-gz.json +5 -0
  57. data/test/repos-path-filter-zip.json +5 -0
  58. metadata +181 -0
@@ -0,0 +1,3 @@
1
+ {"repos": [
2
+ {"name": "libmaxminddb", "version": "1.1.4", "url": "https://github.com/maxmind/libmaxminddb/archive/1.1.4.zip"}
3
+ ]}
@@ -0,0 +1,3 @@
1
+ {"repos": [
2
+ {"name": "nginx-push-stream", "version": "b2056f63c27117952afc82d7a295acf0054edc28", "url": "https://github.com/wandenberg/nginx-push-stream-module/archive/b2056f63c27117952afc82d7a295acf0054edc28.tar.gz", "path": "nginx-push-stream-module-b2056f63c27117952afc82d7a295acf0054edc28"}
3
+ ]}
@@ -0,0 +1,3 @@
1
+ {"repos": [
2
+ {"name": "nginx-push-stream", "version": "b2056f63c27117952afc82d7a295acf0054edc28", "url": "https://github.com/wandenberg/nginx-push-stream-module/archive/b2056f63c27117952afc82d7a295acf0054edc28.zip", "path": "nginx-push-stream-module-b2056f63c27117952afc82d7a295acf0054edc28"}
3
+ ]}
@@ -0,0 +1,3 @@
1
+ {"repos": [
2
+ {"name": "nginx-push-stream", "version": "b2056f63c27117952afc82d7a295acf0054edc28", "url": "https://github.com/wandenberg/nginx-push-stream-module.git"}
3
+ ]}
@@ -0,0 +1,3 @@
1
+ {"repos": [
2
+ {"name": "nginx-push-stream", "version": "0.5.1", "url": "https://github.com/wandenberg/nginx-push-stream-module/archive/0.5.1.tar.gz", "path": "nginx-push-stream-module-0.5.1"}
3
+ ]}
@@ -0,0 +1,3 @@
1
+ {"repos": [
2
+ {"name": "nginx-push-stream", "version": "0.5.1", "url": "https://github.com/wandenberg/nginx-push-stream-module/archive/0.5.1.zip", "path": "nginx-push-stream-module-0.5.1"}
3
+ ]}
@@ -0,0 +1,3 @@
1
+ {"repos": [
2
+ {"name": "nginx-push-stream", "version": "0.5.1", "url": "https://github.com/wandenberg/nginx-push-stream-module.git"}
3
+ ]}
@@ -0,0 +1,3 @@
1
+ {"repos": [
2
+ {"name": "nginx-push-stream-module", "version": "b2056f63c27117952afc82d7a295acf0054edc28", "url": "https://github.com/wandenberg/nginx-push-stream-module/archive/b2056f63c27117952afc82d7a295acf0054edc28.tar.gz"}
3
+ ]}
@@ -0,0 +1,3 @@
1
+ {"repos": [
2
+ {"name": "nginx-push-stream-module", "version": "b2056f63c27117952afc82d7a295acf0054edc28", "url": "https://github.com/wandenberg/nginx-push-stream-module/archive/b2056f63c27117952afc82d7a295acf0054edc28.zip"}
3
+ ]}
@@ -0,0 +1,3 @@
1
+ {"repos": [
2
+ {"name": "nginx-push-stream-module", "version": "b2056f63c27117952afc82d7a295acf0054edc28", "url": "https://github.com/wandenberg/nginx-push-stream-module.git"}
3
+ ]}
@@ -0,0 +1,3 @@
1
+ {"repos": [
2
+ {"name": "nginx-push-stream-module", "version": "0.5.1", "url": "https://github.com/wandenberg/nginx-push-stream-module/archive/0.5.1.tar.gz"}
3
+ ]}
@@ -0,0 +1,3 @@
1
+ {"repos": [
2
+ {"name": "nginx-push-stream-module", "version": "0.5.1", "url": "https://github.com/wandenberg/nginx-push-stream-module/archive/0.5.1.zip"}
3
+ ]}
@@ -0,0 +1,3 @@
1
+ {"repos": [
2
+ {"name": "nginx-push-stream-module", "version": "0.5.1", "url": "https://github.com/wandenberg/nginx-push-stream-module.git"}
3
+ ]}
@@ -0,0 +1,5 @@
1
+ {"repos": [
2
+ // Filter path "patches"
3
+ // Use this path as root from the repo, excluding any other outside resource
4
+ {"name": "openresty", "version": "v1.9.7.4", "url": "https://github.com/openresty/openresty.git", "path": "patches"}
5
+ ]}
@@ -0,0 +1,5 @@
1
+ {"repos": [
2
+ // Filter path "patches"
3
+ // Use this path as root from the repo, excluding any other outside resource
4
+ {"name": "openresty", "version": "1.9.7.4", "url": "https://github.com/openresty/openresty/archive/v1.9.7.4.tar.gz", "path": "patches"}
5
+ ]}
@@ -0,0 +1,5 @@
1
+ {"repos": [
2
+ // Filter path "patches"
3
+ // Use this path as root from the repo, excluding any other outside resource
4
+ {"name": "openresty", "version": "1.9.7.4", "url": "https://github.com/openresty/openresty/archive/v1.9.7.4.zip", "path": "patches"}
5
+ ]}
metadata ADDED
@@ -0,0 +1,181 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: getrepos
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Rogério Schneider
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-03-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: commander
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.4'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.4'
27
+ - !ruby/object:Gem::Dependency
28
+ name: colorize
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.7'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.7'
41
+ description: |-
42
+ Download, expand and filter content from Git and
43
+ Tarball repositories into local directories. Works similar to a Berksfile or
44
+ a librarian-puppet catalog but is not coupled to any technology other than
45
+ keeping a directory filled with exploded archives from remote repositories
46
+ and URLs. For example, it can be used to download Nginx modules before
47
+ compiling.
48
+ email:
49
+ - stockrt@gmail.com
50
+ executables:
51
+ - getrepos
52
+ extensions: []
53
+ extra_rdoc_files: []
54
+ files:
55
+ - ".gitignore"
56
+ - README.md
57
+ - Rakefile
58
+ - bin/getrepos
59
+ - getrepos.gemspec
60
+ - lib/getrepos.rb
61
+ - lib/getrepos/init.rb
62
+ - lib/getrepos/install.rb
63
+ - lib/getrepos/util.rb
64
+ - lib/getrepos/version.rb
65
+ - test/basic-usage-test.sh
66
+ - test/check-test.sh
67
+ - test/common-archives-test.sh
68
+ - test/github-archives-test.sh
69
+ - test/helper/roundup.sh
70
+ - test/helper/valid_json.rb
71
+ - test/path-filter-test.sh
72
+ - test/repos-basic-usage.json
73
+ - test/repos-check-absent-all.json
74
+ - test/repos-check-absent-name.json
75
+ - test/repos-check-absent-repos.json
76
+ - test/repos-check-absent-url.json
77
+ - test/repos-check-absent-version.json
78
+ - test/repos-check-invalid-filetype.json
79
+ - test/repos-common-httpd-tar-bz2.json
80
+ - test/repos-common-httpd-tar-gz.json
81
+ - test/repos-common-mod_fcgid-tar-bz2.json
82
+ - test/repos-common-mod_fcgid-tar-gz.json
83
+ - test/repos-common-python-tar-xz.json
84
+ - test/repos-common-python-tgz.json
85
+ - test/repos-common-ruby-tar-bz2.json
86
+ - test/repos-common-ruby-tar-gz.json
87
+ - test/repos-common-ruby-tar-xz.json
88
+ - test/repos-common-ruby-zip.json
89
+ - test/repos-github-hiredis-git.json
90
+ - test/repos-github-hiredis-tar-gz.json
91
+ - test/repos-github-hiredis-zip.json
92
+ - test/repos-github-libmaxminddb-git.json
93
+ - test/repos-github-libmaxminddb-release-tar-gz.json
94
+ - test/repos-github-libmaxminddb-tar-gz.json
95
+ - test/repos-github-libmaxminddb-zip.json
96
+ - test/repos-github-other-name-id-tar-gz.json
97
+ - test/repos-github-other-name-id-zip.json
98
+ - test/repos-github-other-name-id.json
99
+ - test/repos-github-other-name-tag-tar-gz.json
100
+ - test/repos-github-other-name-tag-zip.json
101
+ - test/repos-github-other-name-tag.json
102
+ - test/repos-github-same-name-id-tar-gz.json
103
+ - test/repos-github-same-name-id-zip.json
104
+ - test/repos-github-same-name-id.json
105
+ - test/repos-github-same-name-tag-tar-gz.json
106
+ - test/repos-github-same-name-tag-zip.json
107
+ - test/repos-github-same-name-tag.json
108
+ - test/repos-path-filter-git.json
109
+ - test/repos-path-filter-tar-gz.json
110
+ - test/repos-path-filter-zip.json
111
+ homepage: https://github.com/stockrt/getrepos
112
+ licenses:
113
+ - MIT
114
+ metadata: {}
115
+ post_install_message:
116
+ rdoc_options: []
117
+ require_paths:
118
+ - lib
119
+ required_ruby_version: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ required_rubygems_version: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - ">="
127
+ - !ruby/object:Gem::Version
128
+ version: '0'
129
+ requirements: []
130
+ rubyforge_project:
131
+ rubygems_version: 2.4.6
132
+ signing_key:
133
+ specification_version: 4
134
+ summary: Get content from repositories and URLs
135
+ test_files:
136
+ - test/basic-usage-test.sh
137
+ - test/check-test.sh
138
+ - test/common-archives-test.sh
139
+ - test/github-archives-test.sh
140
+ - test/helper/roundup.sh
141
+ - test/helper/valid_json.rb
142
+ - test/path-filter-test.sh
143
+ - test/repos-basic-usage.json
144
+ - test/repos-check-absent-all.json
145
+ - test/repos-check-absent-name.json
146
+ - test/repos-check-absent-repos.json
147
+ - test/repos-check-absent-url.json
148
+ - test/repos-check-absent-version.json
149
+ - test/repos-check-invalid-filetype.json
150
+ - test/repos-common-httpd-tar-bz2.json
151
+ - test/repos-common-httpd-tar-gz.json
152
+ - test/repos-common-mod_fcgid-tar-bz2.json
153
+ - test/repos-common-mod_fcgid-tar-gz.json
154
+ - test/repos-common-python-tar-xz.json
155
+ - test/repos-common-python-tgz.json
156
+ - test/repos-common-ruby-tar-bz2.json
157
+ - test/repos-common-ruby-tar-gz.json
158
+ - test/repos-common-ruby-tar-xz.json
159
+ - test/repos-common-ruby-zip.json
160
+ - test/repos-github-hiredis-git.json
161
+ - test/repos-github-hiredis-tar-gz.json
162
+ - test/repos-github-hiredis-zip.json
163
+ - test/repos-github-libmaxminddb-git.json
164
+ - test/repos-github-libmaxminddb-release-tar-gz.json
165
+ - test/repos-github-libmaxminddb-tar-gz.json
166
+ - test/repos-github-libmaxminddb-zip.json
167
+ - test/repos-github-other-name-id-tar-gz.json
168
+ - test/repos-github-other-name-id-zip.json
169
+ - test/repos-github-other-name-id.json
170
+ - test/repos-github-other-name-tag-tar-gz.json
171
+ - test/repos-github-other-name-tag-zip.json
172
+ - test/repos-github-other-name-tag.json
173
+ - test/repos-github-same-name-id-tar-gz.json
174
+ - test/repos-github-same-name-id-zip.json
175
+ - test/repos-github-same-name-id.json
176
+ - test/repos-github-same-name-tag-tar-gz.json
177
+ - test/repos-github-same-name-tag-zip.json
178
+ - test/repos-github-same-name-tag.json
179
+ - test/repos-path-filter-git.json
180
+ - test/repos-path-filter-tar-gz.json
181
+ - test/repos-path-filter-zip.json