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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e54b47c7216bd8556fa0215a865f9b0feacf2e9d
4
- data.tar.gz: 41aaa27fac205a0ffeb3b426fbff1d6b55675106
3
+ metadata.gz: e952dc2de498fa510b03ddcfe8886261f627172c
4
+ data.tar.gz: 049c6a5528116d6d588b3f5f2cc886692734d0ae
5
5
  SHA512:
6
- metadata.gz: 0ec38f6188ad1e3b3be42f556f3f7c511d22091e120a34fe45980838afd1157ba9260a26ff0ff3c9d7cd501ab002a1580ab0590ae5c3f9ac0c8906d1fe115715
7
- data.tar.gz: 509bb18f8a4aab9c6d261b81f84ae6165439181ea0a97fc13a1579e74fbc125b8ebe0c6f96b16d56f167b785376807b1d6a9f8f7127c00ab2bc934d6215507d8
6
+ metadata.gz: 37ed358ee52681241db450d52bd7a81ab9ee407b57f5e9f157d59877ca57b64082e7327b9fd228007160a1b2276422186da9e5da38f68b21e94551ade9450206
7
+ data.tar.gz: f670a57cc3f7a8e08820149dc0b761043586b10a5486e39cd6a9ccf36984d95d53acc038e6157c4fa260761ae07791a534c08981be638e7460c4b0b1907f5334
@@ -13,3 +13,6 @@ Style/PredicateName:
13
13
  NamePrefix:
14
14
  - is_
15
15
  - have_
16
+
17
+ Style/MethodMissing:
18
+ Enabled: false
@@ -3,5 +3,6 @@ rvm:
3
3
  - 2.3.0
4
4
  - 2.2.4
5
5
  - 2.1.8
6
+ - 2.0.0-p648
6
7
  env:
7
8
  - "COVERAGE=true"
@@ -1,6 +1,11 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ v0.0.8
5
+ ------
6
+
7
+ * [Ruby 2.0 Compatibility](https://github.com/packethost/packet-rb/pull/11) (thanks @kke)
8
+
4
9
  v0.0.7
5
10
  ------
6
11
 
@@ -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
- instance_variables.reject { |ivar| [:@client].include?(ivar) }.map do |ivar|
18
- ival = instance_variable_get(ivar)
19
- [ivar.to_s.tr('@', ''), ival.respond_to?(:to_value) ? ival.to_value : instance_variable_get(ivar)]
20
- end.to_h
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
@@ -1,3 +1,3 @@
1
1
  module Packet
2
- VERSION = '0.0.7'.freeze
2
+ VERSION = '0.0.8'.freeze
3
3
  end
@@ -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.7
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-05-26 00:00:00.000000000 Z
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: '0'
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: '0'
154
+ version: 0.43.0
155
155
  - !ruby/object:Gem::Dependency
156
156
  name: sinatra
157
157
  requirement: !ruby/object:Gem::Requirement