marathon-api 1.3.1 → 1.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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d8120f444ee6b770c56bbeee8147f12d5ed12592
4
- data.tar.gz: 902fbb08a032d180c327829a9cba312990132bfb
3
+ metadata.gz: de0b596360ec18376bc7a0fe5a94396c6fe42a96
4
+ data.tar.gz: 2ac3f634e458eb39f1874b219154294a4237bd4e
5
5
  SHA512:
6
- metadata.gz: 0a7df8a3e78af7863a074fe83d8481fea105033a47d4e15de8aa74b112d40346503e78ab6cde0ff7264b0b6b9214a70bcc8e7a4a8e7ffee9827a674860101f25
7
- data.tar.gz: 83ee36b57d5760db1c0fd5e963a2cea31daddb916c0206e8c1e72e5e96f290393617299538c2ddce98df6756299b27960080fbfe8e412fc45e6d7a1ceab46967
6
+ metadata.gz: 8dfcee421f65bb4ac026efb151aeb04de4872bbeee38bd152825c6862d6931e996e7e067f7aadb89a579cdc543fdfec112842da911f9b6b479f84386257919f0
7
+ data.tar.gz: 5e7d0c0ae996100dfbb0a89ee3da137bd3ccdaba6233911ea4a25cf30a9983f250950fec7d0b045cc07f0703173d9fea518b150c0ad6cce9fc97a3049265b124
@@ -145,7 +145,7 @@ EOS
145
145
  opt :username, 'User name to authenticate against Marathon (optional, default unset, or MARATHON_USER).',
146
146
  :short => '-U', :type => String, :default => Marathon.options[:username]
147
147
  opt :password, 'Password to authenticate against Marathon (optional, default unset, or MARATHON_PASSWORD).',
148
- :short => '-P', :type => String, :default => Marathon.options[:password]
148
+ :short => '-P', :type => String
149
149
  opt :insecure, 'Ignore certificate verification failure (optional, default false, or MARATHON_INSECURE).',
150
150
  :short => '-I', :default => Marathon.options[:insecure]
151
151
  stop_on SUB_COMMANDS
@@ -158,6 +158,8 @@ def set_global_opts(global_opts)
158
158
  # Set client's URL
159
159
  Marathon.url = global_opts[:url] if global_opts[:url]
160
160
  global_opts.delete(:url)
161
+ # Hack to hide password from help message.
162
+ global_opts.delete(:password) unless global_opts[:password]
161
163
  # Set client's options
162
164
  Marathon.options = global_opts if global_opts.size > 0
163
165
  end
@@ -1,3 +1,3 @@
1
1
  module Marathon
2
- VERSION = '1.3.1'
2
+ VERSION = '1.3.2'
3
3
  end
@@ -0,0 +1,30 @@
1
+ #! /bin/sh
2
+
3
+ set -e
4
+
5
+ if [ $# -ne 1 ] ; then
6
+ echo "usage: $0 <new-version>"
7
+ exit 1
8
+ fi
9
+
10
+ VERSION="${1}"
11
+
12
+ sed -e "s:VERSION.*:VERSION = '${VERSION}':" -i lib/marathon/version.rb
13
+
14
+ bundle exec rake spec
15
+
16
+ git commit -m "prepare release ${VERSION}" lib/marathon/version.rb
17
+
18
+ gem build "marathon-api.gemspec"
19
+ git tag "${VERSION}"
20
+
21
+ echo "upload?"
22
+ read ok
23
+
24
+ gem push "marathon-api-${VERSION}.gem"
25
+
26
+ echo "push?"
27
+ read ok
28
+
29
+ git push
30
+ git push --tags
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marathon-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Bechstein
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-18 00:00:00.000000000 Z
11
+ date: 2015-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -259,6 +259,7 @@ files:
259
259
  - lib/marathon/util.rb
260
260
  - lib/marathon/version.rb
261
261
  - marathon-api.gemspec
262
+ - publish.sh
262
263
  - spec/marathon/app_spec.rb
263
264
  - spec/marathon/base_spec.rb
264
265
  - spec/marathon/connection_spec.rb