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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d200f8f8d20af68e2743e0a37745e52e974fac29
4
- data.tar.gz: 79ffc270483255144ed1097294e033f25619f79b
2
+ SHA256:
3
+ metadata.gz: 65fc1c0a002dfc315e49f198ffd1d9575601f9606d19d209526636da7c95f0c5
4
+ data.tar.gz: f87fc0d6897562f0b9b6778717f14011ae5533a6c24953c7a6df6c13ff5c987c
5
5
  SHA512:
6
- metadata.gz: f6cff9b4a03b10bf76fd2c0c81f5b677d59df5e15926f569c14af9bea43ec7c4535fc2a0eb9f8aceb525afe954204b6965fc7235887abcc325f86ef1cf86b876
7
- data.tar.gz: 1768d0e556f0f07eb38e7fea0f4f8c73b5ea593798d9d63b392416689f34d6486591529ee3fa1ac741076f1e8eeed78248eff32f6d8772da85d36c33a24b2952
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
+ }
@@ -1,5 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.0.0
4
3
  - 2.2
4
+ - 2.3
5
5
  before_install: gem install bundler -v 1.10.6
@@ -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
- obj.send("#{attr_name}=", build_from_data(subtype, value))
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
@@ -1,3 +1,3 @@
1
1
  module MmJsonClient
2
- VERSION = '2.0.0'.freeze
2
+ VERSION = '2.0.1'.freeze
3
3
  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.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: 2018-08-02 00:00:00.000000000 Z
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
- rubyforge_project:
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