pocus 0.5.3 → 0.6.0

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
- SHA1:
3
- metadata.gz: ff4a98b292aa56ea2b172fd0a456f19f06cf1650
4
- data.tar.gz: 3de6d8d9134b40522463b1846db56e47295f583f
2
+ SHA256:
3
+ metadata.gz: 396f44e8108918dbdec0f510bbe0b2894ba5d8cc62268f34b57363309a813251
4
+ data.tar.gz: 39b3cb2e348a710e8e79f1af63c4bd90d49294d18eea68b4cb65f7be02e7c84c
5
5
  SHA512:
6
- metadata.gz: 5b2616c35e1b12617d8b6d6322fb267691940001212b4c61c4a9b9acdd2b352737e6a7ff50c5006bdcd7ab19e5558f2bca11cb92e5a194aeda1a6ee9c761c1af
7
- data.tar.gz: 90b758446ca6f78722ac256e94faa7605599274090093dff98c044b425b02e1ef25477743a66ad09a292b428dde718fd6f6a013b695edc46431de191ed8496f5
6
+ metadata.gz: a2fa1b4eaf89b87dd0a2bbd624995130ba6e1fecc53b77d0729cff1be9c6542eaa3dc914a22dbec6c48463f84383dcd495ea3c95ce3835d150881c9244a6f9b3
7
+ data.tar.gz: fc7ec2c5366911c437da9332dbd59ced73ae71a55872b54cc64673db7ced1c91ae526734e540db64bdf791871a1e400e4285a130d98fac55b396a79436b3049a
data/README.md CHANGED
@@ -3,7 +3,6 @@
3
3
  [![Gem Version](https://badge.fury.io/rb/pocus.svg)](http://badge.fury.io/rb/pocus)
4
4
  [![Code Climate GPA](https://codeclimate.com/github/varyonic/pocus.svg)](https://codeclimate.com/github/varyonic/pocus)
5
5
  [![Code Climate Coverage](https://codeclimate.com/github/varyonic/pocus/coverage.svg)](https://codeclimate.com/github/varyonic/pocus)
6
- [![Gemnasium Status](https://gemnasium.com/varyonic/pocus.svg)](https://gemnasium.com/varyonic/pocus)
7
6
  [![Travis CI Status](https://secure.travis-ci.org/varyonic/pocus.svg)](https://travis-ci.org/varyonic/pocus)
8
7
 
9
8
  Unofficial Ruby API client for [iContact API](See https://www.icontact.com/developerportal) (f.k.a. Vocus), inspired by Active Resource.
@@ -12,7 +12,7 @@ module Pocus
12
12
  end
13
13
 
14
14
  def self.version
15
- '0.5.3'
15
+ '0.6.0'
16
16
  end
17
17
 
18
18
  def self.version_label
@@ -122,6 +122,14 @@ module Pocus
122
122
  Session.instance
123
123
  end
124
124
 
125
+ def marshal_dump
126
+ instance_variables.each_with_object({}) { |k, h| h[k[1..-1]] = send(k[1..-1]) }
127
+ end
128
+
129
+ def marshal_load(attributes)
130
+ assign_attributes(attributes)
131
+ end
132
+
125
133
  protected
126
134
 
127
135
  def required(attributes, attr_names)
data/lib/pocus/session.rb CHANGED
@@ -1,6 +1,8 @@
1
1
  require 'benchmark'
2
2
  require 'json'
3
3
  require 'logger'
4
+ require 'net/http'
5
+ require 'openssl'
4
6
 
5
7
  # See https://www.icontact.com/developerportal/documentation
6
8
  module Pocus
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pocus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piers Chambers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-10 00:00:00.000000000 Z
11
+ date: 2019-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
156
  version: '0'
157
157
  requirements: []
158
158
  rubyforge_project:
159
- rubygems_version: 2.4.8
159
+ rubygems_version: 2.7.7
160
160
  signing_key:
161
161
  specification_version: 4
162
162
  summary: Unofficial Ruby client for iContact API