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 +4 -4
- data/bin/marathon +3 -1
- data/lib/marathon/version.rb +1 -1
- data/publish.sh +30 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de0b596360ec18376bc7a0fe5a94396c6fe42a96
|
4
|
+
data.tar.gz: 2ac3f634e458eb39f1874b219154294a4237bd4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8dfcee421f65bb4ac026efb151aeb04de4872bbeee38bd152825c6862d6931e996e7e067f7aadb89a579cdc543fdfec112842da911f9b6b479f84386257919f0
|
7
|
+
data.tar.gz: 5e7d0c0ae996100dfbb0a89ee3da137bd3ccdaba6233911ea4a25cf30a9983f250950fec7d0b045cc07f0703173d9fea518b150c0ad6cce9fc97a3049265b124
|
data/bin/marathon
CHANGED
@@ -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
|
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
|
data/lib/marathon/version.rb
CHANGED
data/publish.sh
ADDED
@@ -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.
|
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-
|
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
|