aptly_cli 0.3.1 → 0.3.2

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjhkOTM5MjIwOGJkNDc5ZTViY2NlZjY1ODg2YjU1OTQ0YjU2NmIxYg==
4
+ YWIxOGNhOTk0OTM4NzhjMDcxNjJmMDc1YjExNmFhMTdjMmZlYjUzYw==
5
5
  data.tar.gz: !binary |-
6
- Yjc1N2EyMjI4OTFlYzE2NWQzOTg1NTE0OWM0Y2I2ZDE2NDg1NTI1OA==
6
+ MjM4OGUyNjMzYmM3NDU2YWFiMThkMTg0NjJiNzExYzYxYzcwZTI4Nw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NGRjMmJiOGI5ZDBmOTYyMjBiNTAwN2IxMmI3NjhlY2IwOWNmNTk0MWEwOTFm
10
- N2I5OTYyOGYxOGNiYTFkNmI0ODAzOGYxOWUxMjhlOTMwNjZkN2RiNjNmYjIw
11
- MzgwM2NmMzZlOTRlY2ZlZjk1NzRkODJjMjNiNTY1ZmVmY2QxYWM=
9
+ OWFmNTg4ZjQ3NmUyNDRkNjI3YjI0OWMwYTcwN2NiNDY3YmUzZTgwNjIzOGNj
10
+ NGQ5OGRkNDc2ZjU4NDgyYzg0NmQ2OTJmNmY4YThjMmQ5MjEzMDc2ZGI2ZGI3
11
+ M2MzYjU5YjFlMDk4ODg5NjkwODFhN2FkNjJjNTg0NzEyMjEzYTA=
12
12
  data.tar.gz: !binary |-
13
- YzVhOWZmYjM1YTU2YjhkMmI3YmZhODZiOTc4ZGMwY2M0YjAxNGE5YWZkYTg0
14
- ZDkzMTI5ZTkwNjE3YTBhN2I2OWIzN2MyYmNkZDY1MmFjNDJiMDA1M2ViODdm
15
- YTUxMmZkZTRiMzIyMTNiNjAwY2Q5NDZiZGM3ZTI3MDhmNDQ5Mjk=
13
+ MjFmNDVlMWVmZmVjYzQ1MDEyOTk2ZjlhODA3ZjVkYmYyZmQ2OTE1NGNkYzNk
14
+ NTQ5MDJiZjExMDI0NTgyMmU4ZGMzN2M0Y2JhZDczNDcwYTY2ZWM0MmQwYzkw
15
+ ZWU0OTc0MjBhNjMxMDQzODM4MTY5MmY0YTQ5ZmZkNjBkYTQxODg=
data/Gemfile CHANGED
@@ -4,8 +4,3 @@ source 'https://rubygems.org'
4
4
  gemspec
5
5
 
6
6
  gem "keyring", require: false, platform: :ruby_20
7
-
8
- group :test do
9
- gem "rubocop", require: false
10
- gem "simplecov", require: false
11
- end
data/README.md CHANGED
@@ -120,7 +120,7 @@ might have to quote them to prevent the shell from trying to expand them.
120
120
 
121
121
  DESCRIPTION:
122
122
 
123
- Aptly repository API client
123
+ Aptly repository API client (https://github.com/sepulworld/aptly_cli)
124
124
 
125
125
  COMMANDS:
126
126
 
@@ -155,13 +155,16 @@ might have to quote them to prevent the shell from trying to expand them.
155
155
  Path to YAML config file
156
156
 
157
157
  -s, --server SERVER
158
- Host name or IP address
158
+ Host name or IP address of Aptly API server
159
159
 
160
+ -p, --port PORT
161
+ Port of Aptly API server
162
+
160
163
  --username USERNAME
161
- User name
164
+ User name or '${PROMPT}'
162
165
 
163
166
  --password PASSWORD
164
- Password
167
+ Password or '${PROMPT_PASSWORD}' or '${KEYRING}'
165
168
 
166
169
  --debug
167
170
  Enable debug output
@@ -183,7 +186,30 @@ might have to quote them to prevent the shell from trying to expand them.
183
186
 
184
187
  ## Development
185
188
 
186
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
189
+ ### Measuring coverage locally
190
+
191
+ ```
192
+ $ rake docker_pull
193
+ $ rake docker_run
194
+ $ bundle exec rake test
195
+ ...
196
+ Coverage report generated for Unit Tests to /Users/marca/dev/git-repos/aptly_cli/coverage. 521 / 566 LOC (92.05%) covered.
197
+ [Coveralls] Outside the CI environment, not sending data.
198
+
199
+ $ open coverage/index.html
200
+ ```
201
+
202
+ <img width="1426" alt="screen shot 2016-07-21 at 4 05 56 pm" src="https://cloud.githubusercontent.com/assets/305268/17042294/2f28f8f8-4f61-11e6-8a92-f0d921e36187.png">
203
+
204
+ ### Rubocop syntax and style check
205
+
206
+ ```bash
207
+ $ bundle exec rake rubocop
208
+ Running RuboCop...
209
+ Inspecting 24 files
210
+ WCCCWC..CCCC.CCC.WCWCCCC
211
+ ...
212
+ ```
187
213
 
188
214
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
189
215
 
@@ -192,14 +218,22 @@ Ruby Minitest are implemented using a Docker container for functional tests.
192
218
  Rake tasks available:
193
219
 
194
220
  ```bash
195
- rake build # Build aptly_cli-<version>.gem into the pkg directory
196
- rake docker_build # Docker build image
197
- rake docker_list_aptly # List Docker Aptly running containers
198
- rake docker_run # Start Aptly Docker container on port 8082
199
- rake docker_stop # Stop running Aptly Docker containers
200
- rake install # Build and install aptly_cli-<version>.gem into system gems
201
- rake install:local # Build and install aptly_cli-<version>.gem into system gems without network access
202
- rake test # Run tests
221
+ rake build # Build aptly_cli-<version>.gem into the pkg directory
222
+ rake clean # Remove any temporary products
223
+ rake clobber # Remove any generated files
224
+ rake docker_build # Docker build image
225
+ rake docker_list_aptly # List Docker Aptly running containers
226
+ rake docker_pull # Pull Docker image to Docker Hub
227
+ rake docker_push # Push Docker image to Docker Hub
228
+ rake docker_restart # Restart Aptly docker container
229
+ rake docker_run # Start Aptly Docker container on port 8082
230
+ rake docker_show_logs # Show running Aptly process Docker stdout logs
231
+ rake docker_stop # Stop running Aptly Docker containers
232
+ rake install # Build and install aptly_cli-<version>.gem into system gems
233
+ rake install:local # Build and install aptly_cli-<version>.gem into system gems without network access
234
+ rake rubocop # Run RuboCop
235
+ rake rubocop:auto_correct # Auto-correct RuboCop offenses
236
+ rake test # Run tests
203
237
  ```
204
238
 
205
239
 
data/aptly_cli.gemspec CHANGED
@@ -11,6 +11,7 @@ Gem::Specification.new do |spec|
11
11
 
12
12
  if spec.respond_to?(:metadata)
13
13
  spec.metadata['allowed_push_host'] = "https://rubygems.org"
14
+ spec.metadata['optional_gems'] = "keyring"
14
15
  end
15
16
 
16
17
  spec.summary = %q{Command line client to interact with Aptly package management system}
@@ -28,6 +29,8 @@ Gem::Specification.new do |spec|
28
29
  spec.add_development_dependency "rake", "~> 10.0"
29
30
  spec.add_development_dependency "minitest"
30
31
  spec.add_development_dependency "coveralls"
32
+ spec.add_development_dependency "simplecov"
33
+ spec.add_development_dependency "rubocop"
31
34
 
32
35
  spec.add_dependency "httmultiparty", "~> 0.3.16"
33
36
  spec.add_dependency "commander", "~> 4.3"
@@ -1,3 +1,3 @@
1
1
  module AptlyCli
2
- VERSION = '0.3.1'.freeze
2
+ VERSION = '0.3.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aptly_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zane
@@ -66,6 +66,34 @@ dependencies:
66
66
  - - ! '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: simplecov
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ! '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ! '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ! '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ! '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
69
97
  - !ruby/object:Gem::Dependency
70
98
  name: httmultiparty
71
99
  requirement: !ruby/object:Gem::Requirement
@@ -135,6 +163,7 @@ licenses:
135
163
  - MIT
136
164
  metadata:
137
165
  allowed_push_host: https://rubygems.org
166
+ optional_gems: keyring
138
167
  post_install_message:
139
168
  rdoc_options: []
140
169
  require_paths: