pocus 0.6.0 → 0.6.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 +4 -4
- data/README.md +23 -69
- data/lib/pocus/identity.rb +1 -1
- metadata +2 -30
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dd0d631d3b8cf6ef526d738b4d4072a6bb9828fe9752d08df511cd0643278d7d
|
|
4
|
+
data.tar.gz: 31e2a7de81869a442640f053057dad727052004fb2e2d61f24b085ae73161a4c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c22999094d8d036434a0b03ed2505e9a1a9fc2eb8b17aec0d8dd81320658518e3ce978079bd40df187b9da5ddd0aef8d7e68b8a49c3f9cf92cd8a2c7f9525200
|
|
7
|
+
data.tar.gz: 7d113e2c3d7e511de3086a7c167a6e8d702d01af4d193a505547c5beae9b34df128c6a1a1b9a0eeada70729846709722ec572473afad9d3a339752ebd4de27dc
|
data/README.md
CHANGED
|
@@ -2,54 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
[](http://badge.fury.io/rb/pocus)
|
|
4
4
|
[](https://codeclimate.com/github/varyonic/pocus)
|
|
5
|
-
[](https://codeclimate.com/github/varyonic/pocus)
|
|
6
5
|
[](https://travis-ci.org/varyonic/pocus)
|
|
7
6
|
|
|
8
|
-
Unofficial Ruby API client for [iContact API](
|
|
7
|
+
Unofficial Ruby API client for [iContact API](https://www.icontact.com/developerportal) (f.k.a. Vocus), inspired by Active Resource.
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
## Installation
|
|
11
10
|
|
|
12
|
-
|
|
11
|
+
Add to your application's Gemfile:
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
- [Usage](#usage)
|
|
18
|
-
- [Tests](#tests)
|
|
19
|
-
- [Versioning](#versioning)
|
|
20
|
-
- [Code of Conduct](#code-of-conduct)
|
|
21
|
-
- [Contributions](#contributions)
|
|
22
|
-
- [License](#license)
|
|
23
|
-
- [History](#history)
|
|
24
|
-
- [Credits](#credits)
|
|
25
|
-
|
|
26
|
-
<!-- Tocer[finish]: Auto-generated, don't remove. -->
|
|
27
|
-
|
|
28
|
-
# Features
|
|
29
|
-
|
|
30
|
-
# Requirements
|
|
31
|
-
|
|
32
|
-
0. [MRI 2.3.0](https://www.ruby-lang.org)
|
|
33
|
-
|
|
34
|
-
# Setup
|
|
35
|
-
|
|
36
|
-
For a secure install, type the following (recommended):
|
|
37
|
-
|
|
38
|
-
gem cert --add <(curl --location --silent https://www.varyonic.com/gem-public.pem)
|
|
39
|
-
gem install pocus --trust-policy MediumSecurity
|
|
40
|
-
|
|
41
|
-
NOTE: A HighSecurity trust policy would be best but MediumSecurity enables signed gem verification while
|
|
42
|
-
allowing the installation of unsigned dependencies since they are beyond the scope of this gem.
|
|
43
|
-
|
|
44
|
-
For an insecure install, type the following (not recommended):
|
|
45
|
-
|
|
46
|
-
gem install pocus
|
|
13
|
+
```ruby
|
|
14
|
+
gem 'pocus'
|
|
15
|
+
```
|
|
47
16
|
|
|
48
|
-
|
|
17
|
+
And then execute:
|
|
49
18
|
|
|
50
|
-
|
|
19
|
+
$ bundle
|
|
51
20
|
|
|
52
|
-
|
|
21
|
+
## Usage
|
|
53
22
|
|
|
54
23
|
Example:
|
|
55
24
|
|
|
@@ -61,48 +30,33 @@ Example:
|
|
|
61
30
|
folder.contacts.create(contacts_data)
|
|
62
31
|
```
|
|
63
32
|
|
|
64
|
-
|
|
33
|
+
## Tests
|
|
65
34
|
|
|
66
|
-
To run the tests you will need your own iContact account with a test folder.
|
|
35
|
+
To run the tests you will need your own iContact account with a test folder. Set the following environment variables:
|
|
67
36
|
|
|
68
37
|
```
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
test_client_folder_id: ...
|
|
38
|
+
POCUS_APP_ID=0b34...b478c
|
|
39
|
+
POCUS_USERNAME=vocus_api_sandbox@....com
|
|
40
|
+
POCUS_PASSWORD=...
|
|
41
|
+
POCUS_TEST_ACCOUNT=99...99
|
|
42
|
+
POCUS_TEST_CLIENT_FOLDER=9...9
|
|
75
43
|
```
|
|
76
44
|
To test, run:
|
|
77
45
|
|
|
78
46
|
bundle exec rake
|
|
79
47
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
Read [Semantic Versioning](http://semver.org) for details. Briefly, it means:
|
|
83
|
-
|
|
84
|
-
- Patch (x.y.Z) - Incremented for small, backwards compatible bug fixes.
|
|
85
|
-
- Minor (x.Y.z) - Incremented for new, backwards compatible public API enhancements and/or bug fixes.
|
|
86
|
-
- Major (X.y.z) - Incremented for any backwards incompatible public API changes.
|
|
87
|
-
|
|
88
|
-
# Code of Conduct
|
|
89
|
-
|
|
90
|
-
Please note that this project is released with a [CODE OF CONDUCT](CODE_OF_CONDUCT.md). By participating in this project
|
|
91
|
-
you agree to abide by its terms.
|
|
92
|
-
|
|
93
|
-
# Contributions
|
|
48
|
+
## Contributions
|
|
94
49
|
|
|
95
50
|
Read [CONTRIBUTING](CONTRIBUTING.md) for details.
|
|
96
51
|
|
|
97
|
-
|
|
52
|
+
## History
|
|
98
53
|
|
|
99
|
-
|
|
100
|
-
Read the [LICENSE](LICENSE.md) for details.
|
|
54
|
+
Read the [CHANGELOG](CHANGELOG.md) for details.
|
|
101
55
|
|
|
102
|
-
|
|
56
|
+
## License
|
|
103
57
|
|
|
104
|
-
|
|
58
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
|
105
59
|
|
|
106
|
-
|
|
60
|
+
Read the [LICENSE](LICENSE.md) for details.
|
|
107
61
|
|
|
108
|
-
|
|
62
|
+
Copyright (c) 2016-2019 [Varyonic](https://www.varyonic.com).
|
data/lib/pocus/identity.rb
CHANGED
metadata
CHANGED
|
@@ -1,29 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pocus
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Piers Chambers
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-01-
|
|
11
|
+
date: 2019-01-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
|
-
- !ruby/object:Gem::Dependency
|
|
14
|
-
name: bundler
|
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
|
16
|
-
requirements:
|
|
17
|
-
- - "~>"
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: '1.12'
|
|
20
|
-
type: :development
|
|
21
|
-
prerelease: false
|
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
-
requirements:
|
|
24
|
-
- - "~>"
|
|
25
|
-
- !ruby/object:Gem::Version
|
|
26
|
-
version: '1.12'
|
|
27
13
|
- !ruby/object:Gem::Dependency
|
|
28
14
|
name: rake
|
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -94,20 +80,6 @@ dependencies:
|
|
|
94
80
|
- - "~>"
|
|
95
81
|
- !ruby/object:Gem::Version
|
|
96
82
|
version: '3.4'
|
|
97
|
-
- !ruby/object:Gem::Dependency
|
|
98
|
-
name: codeclimate-test-reporter
|
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
|
100
|
-
requirements:
|
|
101
|
-
- - ">="
|
|
102
|
-
- !ruby/object:Gem::Version
|
|
103
|
-
version: '0'
|
|
104
|
-
type: :development
|
|
105
|
-
prerelease: false
|
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
-
requirements:
|
|
108
|
-
- - ">="
|
|
109
|
-
- !ruby/object:Gem::Version
|
|
110
|
-
version: '0'
|
|
111
83
|
description: Unofficial Ruby client for iContact API
|
|
112
84
|
email:
|
|
113
85
|
- piers@varyonic.com
|