woodpecker 0.1.0 → 0.1.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
2
  SHA1:
3
- metadata.gz: f4acded5023888075c59e421ade26c58a571a042
4
- data.tar.gz: b2ae88caadaa09cf6e424661582c7e2cd71eb8b6
3
+ metadata.gz: 5523b4ae1232a106e3a448e4b15627e9fa486b02
4
+ data.tar.gz: 88d0381e745cd79828aabe18d6faada32c0d9887
5
5
  SHA512:
6
- metadata.gz: 4cb437d016207040b2740c3f36674092e4cdf8e3ea8a0446bf4c857f0549cefbb4f78ae3b5765e17e7954d8c0582ee086c37fd1cc52473f3124b9e6bc171d340
7
- data.tar.gz: 51bcf4dad947dd080459e43935c0b11a20c5e1c403b7043871bf4c02acee38f2c9cf3eda6d4c377e6858fa850a22534535377ce7916702a36e05c67808940562
6
+ metadata.gz: 7bce31d6a9061deb6408a26870a1bb1260535680aba875394b120bc41b7969bedbf3e23353ea2f3c94d9bbe9792b24abb3f3f9e1949357eef557f84713b4f902
7
+ data.tar.gz: c95561b35ae46e6b0d59ab2f43f73502911730bbcbff1e292c866bf44f81a43a6654713a93e7251a5a1bef53ff15e5748a81f8de1cc9443825e99135f43b0549
data/README.md CHANGED
@@ -30,7 +30,7 @@ end
30
30
  ```
31
31
 
32
32
  * `config.api_key` - this is your API key and it's **required**, you can read about how to generate one [here](http://help.woodpecker.co/article/16-api-docs)
33
- * config.dummy_password - this is **optional** since Woodpecker's API doesn't really care what's here. It's "X" by default.
33
+ * `config.dummy_password` - this is **optional** since Woodpecker's API doesn't really care what's here. It's "X" by default.
34
34
 
35
35
  These keys are available during runtime as:
36
36
 
data/lib/woodpecker.rb CHANGED
@@ -38,12 +38,12 @@ module Woodpecker
38
38
  def self.add_prospects_campaign(campaign_id, params = {}, prospects)
39
39
  payload = { campaign: { campaign_id: campaign_id },
40
40
  update: 'true',
41
- prospects: prospects }.to_json
41
+ prospects: Array(prospects) }.to_json
42
42
  Woodpecker::Utils::Request.post('add_prospects_campaign', params, payload)
43
43
  end
44
44
 
45
45
  def self.add_prospects_list(params = {}, prospects)
46
- payload = { update: 'true', prospects: prospects }.to_json
46
+ payload = { update: 'true', prospects: Array(prospects) }.to_json
47
47
  Woodpecker::Utils::Request.post('add_prospects_list', params, payload)
48
48
  end
49
49
 
@@ -11,7 +11,7 @@ module Woodpecker
11
11
  end
12
12
 
13
13
  def patch
14
- 0
14
+ 1
15
15
  end
16
16
 
17
17
  def to_a
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: woodpecker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michał Zając