bitrix_webhook 0.1.3 → 0.1.4

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: 1dc4edf803972ca7e9faefbde10cfc5bfc7d8c84
4
- data.tar.gz: eae0616ffb77999497bb57a794edafc38580dc2f
3
+ metadata.gz: 7f49437555ecbd171fab893d939fc63da46dffb4
4
+ data.tar.gz: 64cb34b6baf79f0fb69c1acea64edac7fbce408d
5
5
  SHA512:
6
- metadata.gz: cc3c5a47f4cad97245b47efba5a5642696d3a71b2c094ac8cedec40a2e31ab049e3571bd97f3e4ad0fa165a249bfdc3adbb77ad39b3db06f07273254b24b6485
7
- data.tar.gz: dfef522d39e68b786caa61e5b2d58a59c6daa6838571fe174513ed4ec9a1daa7e93312692320320141a444fdc0b51028d5b94a19881bc11a4474b1b0b6d653d5
6
+ metadata.gz: efbc9470c4feb45f3a7ec5384eff0e83d2f14ea4ebf66743968a2776c13ff90a8de33896e70458ca183d55a17fa4422a5fa41cae8b0fd877c50fe9dbb4373a66
7
+ data.tar.gz: 41331dcb6e2379ed8894857c376adffc9a01ab41065b2387d94f14cfcce28e2bf022caa61498f7ba60c60f1639b878e4662d930530323d532627bc43ceb8a423
data/README.md CHANGED
@@ -19,10 +19,33 @@ And then execute:
19
19
  Or install it yourself as:
20
20
 
21
21
  $ gem install bitrix_webhook
22
+
23
+ Then run:
24
+
25
+ $ rails g bitrix_webhook:config
26
+
27
+ which will generate default settings files:
28
+
29
+ config/initializers/bitrix_webhook.rb
30
+
31
+ Then configurate bitrix_webhook.rb file:
32
+
33
+ ```ruby
34
+ BitrixWebhook.configuration do |config|
35
+ config.bitrix24_url = 'URL' # Like this b21-6l64i7.bitrix24.ru
36
+ config.hook = 'Hook' # Like this ak75dm93k5eq8215
37
+ end
38
+ ```
22
39
 
23
40
  ## Usage
24
41
 
25
- TODO: Write usage instructions here
42
+ Now available only **crm.lead.add**
43
+
44
+ *I'm sorry i didn't have time to write all methods.*
45
+
46
+ ```ruby
47
+ BitrixWebhook::CRM::LEAD.add(fname:'Serhii',lname:'Danovskyi',phone:'+380675807873',email:'serhii.danovskyi@gamil.com')
48
+ ```
26
49
 
27
50
  ## Development
28
51
 
@@ -1,3 +1,3 @@
1
1
  module BitrixWebhook
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  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.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serhii Danovskyi