bitrix_webhook 0.2.0 → 0.2.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: ede4d3a080078487f9f67f71dcd920ed476ce42e
4
- data.tar.gz: 54925d9c88180354d220fa899f7d95de81589666
3
+ metadata.gz: 8fdb1977d171ac601268f39ddab3ce182ba78418
4
+ data.tar.gz: 3b10ee7cbfa72d3d9dea88dd75df4d6330f3e408
5
5
  SHA512:
6
- metadata.gz: 48d96ec12ccf537d2eda00f789f482c3a7e32d04d41e5b63fa277b998c4f1f6a27c52d93e724e4c0e9bd58b091db46027b1ff0c4322803adad0045c5e5472bda
7
- data.tar.gz: b80e7d8a775f209693e81398dbad67a41c8e2223ac61c263e80cf3ae1e69aa6b9714982ff5078af7f232c8d796e9f9f51dfd57181f965693b34194eb5fc0841f
6
+ metadata.gz: b0d1fe649c9c35ed49eb799822b7742b24715446674686d759a6f9b529699af60cc6472e6eab005305c24de38847d57a570d975b51b07c856b3bb38ae855ee61
7
+ data.tar.gz: 4b4bddeaae80121cd934011257543793e93e95182fd03b027cc157916d7fcc629b001e8b3173e9b1544efa75eb4fa10bd5f1ed43be94d8d4917e238d2ad84c80
data/README.md CHANGED
@@ -40,14 +40,14 @@ You get https://your-portal/rest/your-webhook-id/your-webhook-key/profile/
40
40
 
41
41
  config.bitrix24_url = your-portal.bitrix24.ru
42
42
  config.hook = zdfmoz6nub3uacft
43
- config.hook_id = 2
43
+ config.webhook_hook_id = 2
44
44
 
45
45
 
46
46
  ```ruby
47
47
  BitrixWebhook.configuration do |config|
48
48
  config.bitrix24_url = 'URL' # Like this b21-6l64i7.bitrix24.ru
49
49
  config.hook = 'Hook' # Like this ak75dm93k5eq8215
50
- config.hook_id = 'id' # Like this 1
50
+ config.webhook_hook_id = 'id' # Like this 1
51
51
  end
52
52
  ```
53
53
 
@@ -12,7 +12,7 @@ module BitrixWebhook
12
12
  }
13
13
 
14
14
  def self.base_url(method)
15
- "https://#{BitrixWebhook.bitrix24_url}/rest/#{BitrixWebhook.hook_id}/#{ BitrixWebhook.hook}/crm.lead.#{method}.json?"
15
+ "https://#{BitrixWebhook.bitrix24_url}/rest/#{BitrixWebhook.webhook_hook_id}/#{ BitrixWebhook.hook}/crm.lead.#{method}.json?"
16
16
  end
17
17
 
18
18
  def self.add(options = {})
@@ -12,12 +12,12 @@ module BitrixWebhook; class Config
12
12
  class Configuration
13
13
  attr_accessor :bitrix24_url
14
14
  attr_accessor :hook
15
- attr_accessor :hook_id
15
+ attr_accessor :webhook_hook_id
16
16
 
17
17
  def initialize
18
18
  @bitrix24_url= 'bitrix24_url'
19
19
  @hook = 'hook'
20
- @hook_id = 'id'
20
+ @webhook_hook_id = 'id'
21
21
  end
22
22
  end
23
23
  end; end
@@ -1,3 +1,3 @@
1
1
  module BitrixWebhook
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -8,5 +8,5 @@ module BitrixWebhook
8
8
  extend Configuration
9
9
  define_setting :bitrix24_url
10
10
  define_setting :hook
11
- define_setting :hook_id
11
+ define_setting :webhook_hook_id
12
12
  end
@@ -1,5 +1,5 @@
1
1
  BitrixWebhook.configuration do |config|
2
2
  config.bitrix24_url = 'URL' # Like this b21-6l64i7.bitrix24.ru
3
3
  config.hook = 'Hook' # Like this ak75dm93k5eq8215
4
- config.hook_id = 'id' # Like this 1
4
+ config.webhook_hook_id = 'id' # Like this 1
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitrix_webhook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serhii Danovskyi