artifactory 0.0.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +24 -16
- data/.travis.yml +8 -0
- data/CHANGELOG.md +9 -0
- data/Gemfile +6 -2
- data/LICENSE +202 -0
- data/README.md +216 -17
- data/Rakefile +6 -1
- data/artifactory.gemspec +15 -10
- data/lib/artifactory.rb +74 -2
- data/lib/artifactory/client.rb +222 -0
- data/lib/artifactory/collections/artifact.rb +12 -0
- data/lib/artifactory/collections/base.rb +49 -0
- data/lib/artifactory/configurable.rb +73 -0
- data/lib/artifactory/defaults.rb +67 -0
- data/lib/artifactory/errors.rb +22 -0
- data/lib/artifactory/resources/artifact.rb +481 -0
- data/lib/artifactory/resources/base.rb +145 -0
- data/lib/artifactory/resources/build.rb +27 -0
- data/lib/artifactory/resources/plugin.rb +22 -0
- data/lib/artifactory/resources/repository.rb +251 -0
- data/lib/artifactory/resources/system.rb +114 -0
- data/lib/artifactory/resources/user.rb +57 -0
- data/lib/artifactory/util.rb +93 -0
- data/lib/artifactory/version.rb +1 -1
- data/locales/en.yml +27 -0
- data/spec/integration/resources/artifact_spec.rb +73 -0
- data/spec/integration/resources/build_spec.rb +11 -0
- data/spec/integration/resources/repository_spec.rb +13 -0
- data/spec/integration/resources/system_spec.rb +59 -0
- data/spec/spec_helper.rb +40 -0
- data/spec/support/api_server.rb +41 -0
- data/spec/support/api_server/artifact_endpoints.rb +122 -0
- data/spec/support/api_server/build_endpoints.rb +22 -0
- data/spec/support/api_server/repository_endpoints.rb +75 -0
- data/spec/support/api_server/status_endpoints.rb +11 -0
- data/spec/support/api_server/system_endpoints.rb +44 -0
- data/spec/unit/artifactory_spec.rb +73 -0
- data/spec/unit/client_spec.rb +176 -0
- data/spec/unit/resources/artifact_spec.rb +377 -0
- data/spec/unit/resources/base_spec.rb +140 -0
- data/spec/unit/resources/build_spec.rb +34 -0
- data/spec/unit/resources/plugin_spec.rb +25 -0
- data/spec/unit/resources/repository_spec.rb +180 -0
- data/spec/unit/resources/system_spec.rb +88 -0
- metadata +106 -36
- data/LICENSE.txt +0 -22
metadata
CHANGED
@@ -1,94 +1,164 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: artifactory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
|
-
-
|
9
|
-
- Fletcher Nichol
|
7
|
+
- Seth Vargo
|
10
8
|
autorequire:
|
11
9
|
bindir: bin
|
12
10
|
cert_chain: []
|
13
|
-
date:
|
11
|
+
date: 2014-02-10 00:00:00.000000000 Z
|
14
12
|
dependencies:
|
15
13
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
14
|
+
name: httpclient
|
17
15
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
16
|
requirements:
|
20
17
|
- - ~>
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
23
|
-
type: :
|
19
|
+
version: '2.3'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: i18n
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.5'
|
34
|
+
type: :runtime
|
24
35
|
prerelease: false
|
25
36
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
37
|
requirements:
|
28
38
|
- - ~>
|
29
39
|
- !ruby/object:Gem::Version
|
30
|
-
version: '
|
40
|
+
version: '0.5'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
31
55
|
- !ruby/object:Gem::Dependency
|
32
56
|
name: rake
|
33
57
|
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
58
|
requirements:
|
36
|
-
- -
|
59
|
+
- - '>='
|
37
60
|
- !ruby/object:Gem::Version
|
38
61
|
version: '0'
|
39
62
|
type: :development
|
40
63
|
prerelease: false
|
41
64
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
65
|
requirements:
|
44
|
-
- -
|
66
|
+
- - '>='
|
45
67
|
- !ruby/object:Gem::Version
|
46
68
|
version: '0'
|
47
|
-
description: A Ruby
|
48
|
-
email:
|
49
|
-
- sascha@brattyredhead.com
|
50
|
-
- fnichol@nichol.ca
|
69
|
+
description: A Ruby client for Artifactory
|
70
|
+
email: sethvargo@gmail.com
|
51
71
|
executables: []
|
52
72
|
extensions: []
|
53
73
|
extra_rdoc_files: []
|
54
74
|
files:
|
55
75
|
- .gitignore
|
76
|
+
- .travis.yml
|
77
|
+
- CHANGELOG.md
|
56
78
|
- Gemfile
|
57
|
-
- LICENSE
|
79
|
+
- LICENSE
|
58
80
|
- README.md
|
59
81
|
- Rakefile
|
60
82
|
- artifactory.gemspec
|
61
83
|
- lib/artifactory.rb
|
84
|
+
- lib/artifactory/client.rb
|
85
|
+
- lib/artifactory/collections/artifact.rb
|
86
|
+
- lib/artifactory/collections/base.rb
|
87
|
+
- lib/artifactory/configurable.rb
|
88
|
+
- lib/artifactory/defaults.rb
|
89
|
+
- lib/artifactory/errors.rb
|
90
|
+
- lib/artifactory/resources/artifact.rb
|
91
|
+
- lib/artifactory/resources/base.rb
|
92
|
+
- lib/artifactory/resources/build.rb
|
93
|
+
- lib/artifactory/resources/plugin.rb
|
94
|
+
- lib/artifactory/resources/repository.rb
|
95
|
+
- lib/artifactory/resources/system.rb
|
96
|
+
- lib/artifactory/resources/user.rb
|
97
|
+
- lib/artifactory/util.rb
|
62
98
|
- lib/artifactory/version.rb
|
63
|
-
|
99
|
+
- locales/en.yml
|
100
|
+
- spec/integration/resources/artifact_spec.rb
|
101
|
+
- spec/integration/resources/build_spec.rb
|
102
|
+
- spec/integration/resources/repository_spec.rb
|
103
|
+
- spec/integration/resources/system_spec.rb
|
104
|
+
- spec/spec_helper.rb
|
105
|
+
- spec/support/api_server.rb
|
106
|
+
- spec/support/api_server/artifact_endpoints.rb
|
107
|
+
- spec/support/api_server/build_endpoints.rb
|
108
|
+
- spec/support/api_server/repository_endpoints.rb
|
109
|
+
- spec/support/api_server/status_endpoints.rb
|
110
|
+
- spec/support/api_server/system_endpoints.rb
|
111
|
+
- spec/unit/artifactory_spec.rb
|
112
|
+
- spec/unit/client_spec.rb
|
113
|
+
- spec/unit/resources/artifact_spec.rb
|
114
|
+
- spec/unit/resources/base_spec.rb
|
115
|
+
- spec/unit/resources/build_spec.rb
|
116
|
+
- spec/unit/resources/plugin_spec.rb
|
117
|
+
- spec/unit/resources/repository_spec.rb
|
118
|
+
- spec/unit/resources/system_spec.rb
|
119
|
+
homepage: https://github.com/opscode/artifactory-client
|
64
120
|
licenses:
|
65
|
-
-
|
121
|
+
- Apache 2.0
|
122
|
+
metadata: {}
|
66
123
|
post_install_message:
|
67
124
|
rdoc_options: []
|
68
125
|
require_paths:
|
69
126
|
- lib
|
70
127
|
required_ruby_version: !ruby/object:Gem::Requirement
|
71
|
-
none: false
|
72
128
|
requirements:
|
73
|
-
- -
|
129
|
+
- - '>='
|
74
130
|
- !ruby/object:Gem::Version
|
75
131
|
version: '0'
|
76
|
-
segments:
|
77
|
-
- 0
|
78
|
-
hash: -1944008969108524615
|
79
132
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
|
-
none: false
|
81
133
|
requirements:
|
82
|
-
- -
|
134
|
+
- - '>='
|
83
135
|
- !ruby/object:Gem::Version
|
84
136
|
version: '0'
|
85
|
-
segments:
|
86
|
-
- 0
|
87
|
-
hash: -1944008969108524615
|
88
137
|
requirements: []
|
89
138
|
rubyforge_project:
|
90
|
-
rubygems_version:
|
139
|
+
rubygems_version: 2.2.1
|
91
140
|
signing_key:
|
92
|
-
specification_version:
|
93
|
-
summary:
|
94
|
-
|
141
|
+
specification_version: 4
|
142
|
+
summary: Artifactory is a simple, lightweight Ruby client for interacting with the
|
143
|
+
Artifactory and Artifactory Pro APIs.
|
144
|
+
test_files:
|
145
|
+
- spec/integration/resources/artifact_spec.rb
|
146
|
+
- spec/integration/resources/build_spec.rb
|
147
|
+
- spec/integration/resources/repository_spec.rb
|
148
|
+
- spec/integration/resources/system_spec.rb
|
149
|
+
- spec/spec_helper.rb
|
150
|
+
- spec/support/api_server.rb
|
151
|
+
- spec/support/api_server/artifact_endpoints.rb
|
152
|
+
- spec/support/api_server/build_endpoints.rb
|
153
|
+
- spec/support/api_server/repository_endpoints.rb
|
154
|
+
- spec/support/api_server/status_endpoints.rb
|
155
|
+
- spec/support/api_server/system_endpoints.rb
|
156
|
+
- spec/unit/artifactory_spec.rb
|
157
|
+
- spec/unit/client_spec.rb
|
158
|
+
- spec/unit/resources/artifact_spec.rb
|
159
|
+
- spec/unit/resources/base_spec.rb
|
160
|
+
- spec/unit/resources/build_spec.rb
|
161
|
+
- spec/unit/resources/plugin_spec.rb
|
162
|
+
- spec/unit/resources/repository_spec.rb
|
163
|
+
- spec/unit/resources/system_spec.rb
|
164
|
+
has_rdoc:
|
data/LICENSE.txt
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
Copyright (c) 2013 TODO: Write your name
|
2
|
-
|
3
|
-
MIT License
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
a copy of this software and associated documentation files (the
|
7
|
-
"Software"), to deal in the Software without restriction, including
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
the following conditions:
|
12
|
-
|
13
|
-
The above copyright notice and this permission notice shall be
|
14
|
-
included in all copies or substantial portions of the Software.
|
15
|
-
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|