zci 0.10.1 → 0.11.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
2
  SHA256:
3
- metadata.gz: 17d5bba7c31befa7948d0ec7f4a2d8bbdb128d297ec3f07ab708240c2caca0ba
4
- data.tar.gz: '091916d0544f8de1762fee6a1653d98f817e25e822393454dfdba8e164283e56'
3
+ metadata.gz: b31da864371c6640da12e9cdb9298664f0006cb91099a3d5f995ee5765f48135
4
+ data.tar.gz: eb5204f0dd2dcf2e6192bc65c14c892d112e8ebbc83752e8564070c19e14d2ad
5
5
  SHA512:
6
- metadata.gz: b2dbd17a414c414ed66efbd03450e8b7e3b1dd0f647048328166b9be047344d104da02d9479a069cedc0a8bce98e34ac375b175258ef336b44a7aeec5cef2f71
7
- data.tar.gz: 7ac0df9c83b17ea22c640dee9b1f83ae1653263d9986cc4a686763876a9171eacd13b7d7351558b2beb6b5a2c3824ee4ddd270c04b899ae2051127248a39f79e
6
+ metadata.gz: bd239fc4393d94e12ee7e5da4ff4e2e9eb1ca62c9dcc4d90813c65e3d55d7524c0b2827b7f7808f1218705f9378763237cc0ca4e6b6602d0ccf5a8f54363b48c
7
+ data.tar.gz: 9d7a62b6b7027f89a636d5989e79c5fcbc35898849981966fd106b67eba0b46794f3e59afcc0be55951c0396ee04b67c788cbbb630105a5b7f488d0c33cd1e21
@@ -41,10 +41,11 @@ command :'import:sources' do |c|
41
41
 
42
42
  # Get category's sections in Zendesk
43
43
  puts "[Zendesk] Get sections for Category with id #{source_category_id}"
44
- sections = source_category.sections
44
+ sections = []
45
45
 
46
46
  sections_builder = []
47
- sections.each do |section|
47
+ source_category.sections.all! do |section|
48
+ sections << section
48
49
  section_xml = build_section_xml(section)
49
50
 
50
51
  unless section_xml.nil?
@@ -56,9 +57,8 @@ command :'import:sources' do |c|
56
57
  articles_builder = []
57
58
  sections.each do |section|
58
59
  puts "[Zendesk] Get articles for Section with id #{section.id}"
59
- articles = section.articles
60
60
 
61
- articles.each do |article|
61
+ section.articles.all! do |article|
62
62
  article_xml = build_article_xml(article)
63
63
 
64
64
  unless article_xml.nil?
@@ -1,3 +1,3 @@
1
1
  module ZCI
2
- VERSION = '0.10.1'
2
+ VERSION = '0.11.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zci
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Maminov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-16 00:00:00.000000000 Z
11
+ date: 2019-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri