dock_genius_api_ruby_client 0.1.1.pre.g582ac6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +201 -0
- data/README.md +200 -0
- data/dock_genius_api_ruby_client.gemspec +55 -0
- data/docs/AccessToken.md +11 -0
- data/docs/Address.md +16 -0
- data/docs/Customer.md +22 -0
- data/docs/CustomerApi.md +1938 -0
- data/docs/Dock.md +20 -0
- data/docs/DockApi.md +1112 -0
- data/docs/EmailAddress.md +9 -0
- data/docs/GeoPoint.md +9 -0
- data/docs/InlineResponse200.md +8 -0
- data/docs/InlineResponse2001.md +8 -0
- data/docs/InlineResponse2002.md +8 -0
- data/docs/ListingAgent.md +12 -0
- data/docs/Marina.md +15 -0
- data/docs/MarinaApi.md +1602 -0
- data/docs/Phone.md +9 -0
- data/git_push.sh +67 -0
- data/lib/dock_genius_api_ruby_client/api/customer_api.rb +2363 -0
- data/lib/dock_genius_api_ruby_client/api/dock_api.rb +1352 -0
- data/lib/dock_genius_api_ruby_client/api/marina_api.rb +1945 -0
- data/lib/dock_genius_api_ruby_client/api_client.rb +378 -0
- data/lib/dock_genius_api_ruby_client/api_error.rb +47 -0
- data/lib/dock_genius_api_ruby_client/configuration.rb +207 -0
- data/lib/dock_genius_api_ruby_client/models/access_token.rb +230 -0
- data/lib/dock_genius_api_ruby_client/models/address.rb +281 -0
- data/lib/dock_genius_api_ruby_client/models/customer.rb +330 -0
- data/lib/dock_genius_api_ruby_client/models/dock.rb +327 -0
- data/lib/dock_genius_api_ruby_client/models/email_address.rb +208 -0
- data/lib/dock_genius_api_ruby_client/models/geo_point.rb +208 -0
- data/lib/dock_genius_api_ruby_client/models/inline_response_200.rb +199 -0
- data/lib/dock_genius_api_ruby_client/models/inline_response_200_1.rb +200 -0
- data/lib/dock_genius_api_ruby_client/models/inline_response_200_2.rb +199 -0
- data/lib/dock_genius_api_ruby_client/models/listing_agent.rb +239 -0
- data/lib/dock_genius_api_ruby_client/models/marina.rb +263 -0
- data/lib/dock_genius_api_ruby_client/models/phone.rb +209 -0
- data/lib/dock_genius_api_ruby_client/version.rb +26 -0
- data/lib/dock_genius_api_ruby_client.rb +65 -0
- data/spec/api/customer_api_spec.rb +551 -0
- data/spec/api/dock_api_spec.rb +332 -0
- data/spec/api/marina_api_spec.rb +461 -0
- data/spec/api_client_spec.rb +237 -0
- data/spec/configuration_spec.rb +53 -0
- data/spec/models/access_token_spec.rb +71 -0
- data/spec/models/address_spec.rb +101 -0
- data/spec/models/customer_spec.rb +137 -0
- data/spec/models/dock_spec.rb +125 -0
- data/spec/models/email_address_spec.rb +59 -0
- data/spec/models/geo_point_spec.rb +59 -0
- data/spec/models/inline_response_200_1_spec.rb +53 -0
- data/spec/models/inline_response_200_2_spec.rb +53 -0
- data/spec/models/inline_response_200_spec.rb +53 -0
- data/spec/models/listing_agent_spec.rb +77 -0
- data/spec/models/marina_spec.rb +95 -0
- data/spec/models/phone_spec.rb +59 -0
- data/spec/spec_helper.rb +122 -0
- metadata +299 -0
data/docs/Phone.md
ADDED
data/git_push.sh
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
#
|
3
|
+
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
#
|
17
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
18
|
+
#
|
19
|
+
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
20
|
+
|
21
|
+
git_user_id=$1
|
22
|
+
git_repo_id=$2
|
23
|
+
release_note=$3
|
24
|
+
|
25
|
+
if [ "$git_user_id" = "" ]; then
|
26
|
+
git_user_id="GIT_USER_ID"
|
27
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
28
|
+
fi
|
29
|
+
|
30
|
+
if [ "$git_repo_id" = "" ]; then
|
31
|
+
git_repo_id="GIT_REPO_ID"
|
32
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
33
|
+
fi
|
34
|
+
|
35
|
+
if [ "$release_note" = "" ]; then
|
36
|
+
release_note="Minor update"
|
37
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
38
|
+
fi
|
39
|
+
|
40
|
+
# Initialize the local directory as a Git repository
|
41
|
+
git init
|
42
|
+
|
43
|
+
# Adds the files in the local repository and stages them for commit.
|
44
|
+
git add .
|
45
|
+
|
46
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
47
|
+
git commit -m "$release_note"
|
48
|
+
|
49
|
+
# Sets the new remote
|
50
|
+
git_remote=`git remote`
|
51
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
52
|
+
|
53
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
54
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment."
|
55
|
+
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
56
|
+
else
|
57
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
58
|
+
fi
|
59
|
+
|
60
|
+
fi
|
61
|
+
|
62
|
+
git pull origin master
|
63
|
+
|
64
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
65
|
+
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
66
|
+
git push origin master 2>&1 | grep -v 'To https'
|
67
|
+
|