packethost 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/.travis.yml +1 -0
- data/CHANGELOG.md +5 -0
- data/lib/packet.rb +0 -1
- data/lib/packet/entity/serialization.rb +6 -4
- data/lib/packet/version.rb +1 -1
- data/packethost.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e952dc2de498fa510b03ddcfe8886261f627172c
|
4
|
+
data.tar.gz: 049c6a5528116d6d588b3f5f2cc886692734d0ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37ed358ee52681241db450d52bd7a81ab9ee407b57f5e9f157d59877ca57b64082e7327b9fd228007160a1b2276422186da9e5da38f68b21e94551ade9450206
|
7
|
+
data.tar.gz: f670a57cc3f7a8e08820149dc0b761043586b10a5486e39cd6a9ccf36984d95d53acc038e6157c4fa260761ae07791a534c08981be638e7460c4b0b1907f5334
|
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/lib/packet.rb
CHANGED
@@ -34,7 +34,6 @@ module Packet
|
|
34
34
|
def self.respond_to_missing?(method_name, include_private = false)
|
35
35
|
client.respond_to?(method_name, include_private)
|
36
36
|
end
|
37
|
-
private_class_method :respond_to_missing?
|
38
37
|
else
|
39
38
|
def self.respond_to?(method_name, include_private = false)
|
40
39
|
client.respond_to?(method_name, include_private) || super
|
@@ -14,10 +14,12 @@ module Packet
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def to_hash
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
17
|
+
Hash[
|
18
|
+
*instance_variables.reject { |ivar| [:@client].include?(ivar) }.flat_map do |ivar|
|
19
|
+
ival = instance_variable_get(ivar)
|
20
|
+
[ivar.to_s.tr('@', ''), ival.respond_to?(:to_value) ? ival.to_value : instance_variable_get(ivar)]
|
21
|
+
end
|
22
|
+
]
|
21
23
|
end
|
22
24
|
|
23
25
|
alias to_h to_hash
|
data/lib/packet/version.rb
CHANGED
data/packethost.gemspec
CHANGED
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.add_development_dependency 'rdoc', '~> 4'
|
29
29
|
spec.add_development_dependency 'bundler', '~> 1.0'
|
30
30
|
spec.add_development_dependency 'simplecov', '~> 0'
|
31
|
-
spec.add_development_dependency 'rubocop', '~> 0'
|
31
|
+
spec.add_development_dependency 'rubocop', '~> 0.43.0'
|
32
32
|
spec.add_development_dependency 'sinatra', '~> 1.4'
|
33
33
|
spec.add_development_dependency 'pry'
|
34
34
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: packethost
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jake Bell
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-09-29 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -144,14 +144,14 @@ dependencies:
|
|
144
144
|
requirements:
|
145
145
|
- - "~>"
|
146
146
|
- !ruby/object:Gem::Version
|
147
|
-
version:
|
147
|
+
version: 0.43.0
|
148
148
|
type: :development
|
149
149
|
prerelease: false
|
150
150
|
version_requirements: !ruby/object:Gem::Requirement
|
151
151
|
requirements:
|
152
152
|
- - "~>"
|
153
153
|
- !ruby/object:Gem::Version
|
154
|
-
version:
|
154
|
+
version: 0.43.0
|
155
155
|
- !ruby/object:Gem::Dependency
|
156
156
|
name: sinatra
|
157
157
|
requirement: !ruby/object:Gem::Requirement
|