mm_json_client 2.0.0 → 2.0.1
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 +5 -5
- data/.devcontainer/Dockerfile +44 -0
- data/.devcontainer/devcontainer.json +29 -0
- data/.travis.yml +1 -1
- data/lib/mm_json_client/type_factory.rb +3 -1
- data/lib/mm_json_client/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 65fc1c0a002dfc315e49f198ffd1d9575601f9606d19d209526636da7c95f0c5
|
4
|
+
data.tar.gz: f87fc0d6897562f0b9b6778717f14011ae5533a6c24953c7a6df6c13ff5c987c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f3ceafb49e3fa76f5b1ec8e9319e5d741ee93409db8d64128c633a537780873518406f7e708fdb70f2375789b1a174977539d53f35024b8fd62623d178f9653
|
7
|
+
data.tar.gz: 94a1622e15a2a69dba30db0e196865418835c7f32911f13f176b65b8be2cd7ed8e22259cc35b6671797f156205b3018d19322a1b74a0eb21ba935c75af3f527b
|
@@ -0,0 +1,44 @@
|
|
1
|
+
#-------------------------------------------------------------------------------------------------------------
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
|
4
|
+
#-------------------------------------------------------------------------------------------------------------
|
5
|
+
|
6
|
+
FROM ruby:2.4
|
7
|
+
|
8
|
+
# Avoid warnings by switching to noninteractive
|
9
|
+
ENV DEBIAN_FRONTEND=noninteractive
|
10
|
+
|
11
|
+
# This Dockerfile adds a non-root user with sudo access. Use the "remoteUser"
|
12
|
+
# property in devcontainer.json to use it. On Linux, the container user's GID/UIDs
|
13
|
+
# will be updated to match your local UID/GID (when using the dockerFile property).
|
14
|
+
# See https://aka.ms/vscode-remote/containers/non-root-user for details.
|
15
|
+
ARG USERNAME=vscode
|
16
|
+
ARG USER_UID=1000
|
17
|
+
ARG USER_GID=$USER_UID
|
18
|
+
|
19
|
+
# Configure apt and install packages
|
20
|
+
RUN apt-get update \
|
21
|
+
&& apt-get -y install --no-install-recommends apt-utils dialog 2>&1 \
|
22
|
+
# Verify git, process tools installed
|
23
|
+
&& apt-get -y install git iproute2 procps lsb-release \
|
24
|
+
#
|
25
|
+
# Install ruby-debug-ide and debase
|
26
|
+
&& gem install ruby-debug-ide \
|
27
|
+
&& gem install debase \
|
28
|
+
&& gem install bundler \
|
29
|
+
#
|
30
|
+
# Create a non-root user to use if preferred - see https://aka.ms/vscode-remote/containers/non-root-user.
|
31
|
+
&& groupadd --gid $USER_GID $USERNAME \
|
32
|
+
&& useradd -s /bin/bash --uid $USER_UID --gid $USER_GID -m $USERNAME \
|
33
|
+
# [Optional] Add sudo support for the non-root user
|
34
|
+
&& apt-get install -y sudo \
|
35
|
+
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME\
|
36
|
+
&& chmod 0440 /etc/sudoers.d/$USERNAME \
|
37
|
+
#
|
38
|
+
# Clean up
|
39
|
+
&& apt-get autoremove -y \
|
40
|
+
&& apt-get clean -y \
|
41
|
+
&& rm -rf /var/lib/apt/lists/*
|
42
|
+
|
43
|
+
# Switch back to dialog for any ad-hoc use of apt-get
|
44
|
+
ENV DEBIAN_FRONTEND=dialog
|
@@ -0,0 +1,29 @@
|
|
1
|
+
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or the definition README at
|
2
|
+
// https://github.com/microsoft/vscode-dev-containers/tree/master/containers/ruby-2
|
3
|
+
{
|
4
|
+
"name": "Ruby 2",
|
5
|
+
"dockerFile": "Dockerfile",
|
6
|
+
|
7
|
+
// Use 'settings' to set *default* container specific settings.json values on container create.
|
8
|
+
// You can edit these settings after create using File > Preferences > Settings > Remote.
|
9
|
+
"settings": {
|
10
|
+
"terminal.integrated.shell.linux": "/bin/bash"
|
11
|
+
},
|
12
|
+
|
13
|
+
// Use 'appPort' to create a container with published ports. If the port isn't working, be sure
|
14
|
+
// your server accepts connections from all interfaces (0.0.0.0 or '*'), not just localhost.
|
15
|
+
// "appPort": [],
|
16
|
+
|
17
|
+
// Uncomment the next line to run commands after the container is created.
|
18
|
+
// "postCreateCommand": "ruby --version",
|
19
|
+
|
20
|
+
// Uncomment the next line to have VS Code connect as an existing non-root user in the container.
|
21
|
+
// On Linux, by default, the container user's UID/GID will be updated to match your local user. See
|
22
|
+
// https://aka.ms/vscode-remote/containers/non-root for details on adding a non-root user if none exist.
|
23
|
+
// "remoteUser": "vscode",
|
24
|
+
|
25
|
+
// Add the IDs of extensions you want installed when the container is created in the array below.
|
26
|
+
"extensions": [
|
27
|
+
"rebornix.Ruby"
|
28
|
+
]
|
29
|
+
}
|
data/.travis.yml
CHANGED
@@ -50,7 +50,9 @@ module MmJsonClient
|
|
50
50
|
type_def = type_definition(type_name)
|
51
51
|
data.each do |attr_name, value|
|
52
52
|
subtype = type_def[attr_name]
|
53
|
-
|
53
|
+
if subtype then # ignore any types that we do not have in the definition
|
54
|
+
obj.send("#{attr_name}=", build_from_data(subtype, value))
|
55
|
+
end
|
54
56
|
end
|
55
57
|
end
|
56
58
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mm_json_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Wannemacher
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard-rspec
|
@@ -157,6 +157,8 @@ executables: []
|
|
157
157
|
extensions: []
|
158
158
|
extra_rdoc_files: []
|
159
159
|
files:
|
160
|
+
- ".devcontainer/Dockerfile"
|
161
|
+
- ".devcontainer/devcontainer.json"
|
160
162
|
- ".gitignore"
|
161
163
|
- ".rspec"
|
162
164
|
- ".travis.yml"
|
@@ -224,8 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
224
226
|
- !ruby/object:Gem::Version
|
225
227
|
version: '0'
|
226
228
|
requirements: []
|
227
|
-
|
228
|
-
rubygems_version: 2.5.1
|
229
|
+
rubygems_version: 3.0.3
|
229
230
|
signing_key:
|
230
231
|
specification_version: 4
|
231
232
|
summary: A client gem for Men & Mice IPAM via JSON-RPC
|