zuora_api 1.6.28 → 1.6.31

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
- SHA1:
3
- metadata.gz: fa6e502f281056139b4e18a986bb6d129837df06
4
- data.tar.gz: 7893fb708b15af2e2931097108fa5cebc56200fd
2
+ SHA256:
3
+ metadata.gz: acfa3e7e0f3a11749e634decc914b3c68a4181ff95fb4857c5d0181e9034d4ed
4
+ data.tar.gz: 16c584970adc6d1715533d9cc2cec7af2db6c1fc03c0ad795507194c1e37211b
5
5
  SHA512:
6
- metadata.gz: 807901369ca7d585cf77f08004f13b708567ea5fc39ad0117f58d1d8ca2c498cd5666b1efbe596d6abd51dfd4b22c2d10fbf92dacadcbef32d3a7346b8db838d
7
- data.tar.gz: 279127003d4cf2a0786e7d519853efe5ddb06b23f33a945ce93482bba35ce600f6b061b3c4f2634cb38a4b6bc10e5a0b112030627301b1a3faae6d65a60e7870
6
+ metadata.gz: d75de3d0585c02eb4a7bae1a4a597c4d64eba90adf11c1374e2b5f392f965cc12f417def1a2b2fc17b7c68967d24cbfe6b2bc577b43205b4b8431961df55cb51
7
+ data.tar.gz: 589505bc63eecc6929e62261e7f32b26b1d0b768a9953c344d08b0b56d548646897371ece804dae19735b6e00c0dd818d978ebac32009399d814fc0ce0216ecc
data/.gitlab-ci.yml CHANGED
@@ -1,5 +1,4 @@
1
-
2
- image: ruby:2.3.1
1
+ image: ruby:2.6
3
2
  stages:
4
3
  - setup
5
4
  - test
@@ -41,10 +40,24 @@ rubygems-deploy:
41
40
  stage: deploy
42
41
  allow_failure: false
43
42
  script:
43
+ - echo "deb http://ftp.us.debian.org/debian testing main contrib non-free" >> /etc/apt/sources.list
44
+ - apt-get update
45
+ - apt-get install -y git
46
+ - apt-get clean all
47
+ - gem install dpl
48
+ - if [[ "staging" == $CI_BUILD_REF_SLUG ]];then export VERSION=`git describe --match "[0-9]*\.[0-9]*\.[0-9]*[a-z]" --abbrev=0 --tags HEAD`; fi
49
+ - if [[ "master" == $CI_BUILD_REF_SLUG ]];then export VERSION=`git describe --exclude "[0-9]*\.[0-9]*\.[0-9]*[a-z]" --abbrev=0 --tags HEAD`; fi
50
+ - echo $VERSION
51
+ - sed -i "s/0.0.1/$VERSION/" /Connect/zuora-gem/lib/zuora_api/version.rb
52
+ - git add /Connect/zuora-gem/lib/zuora_api/version.rb
53
+ - git config --global user.email "connect@zuora.com"
54
+ - git config --global user.name "Connect Automation"
55
+ - git commit -m "Automated Version Update $VERSION"
44
56
  - bundle install
45
57
  - gem install rake
46
58
  - version=$(rake install | grep -o 'pkg/zuora_api-.*gem')
47
59
  - curl -u $USERNAME:$PASSWORD https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials; chmod 0600 ~/.gem/credentials
48
60
  - gem push $version
49
61
  only:
50
- - master
62
+ - master
63
+ - staging
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zuora_api (1.6.28)
4
+ zuora_api (1.6.31)
5
5
  httparty
6
6
  nokogiri
7
7
  railties (>= 4.1.0, < 5.2)
@@ -10,20 +10,20 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- actionpack (5.1.6.1)
14
- actionview (= 5.1.6.1)
15
- activesupport (= 5.1.6.1)
13
+ actionpack (5.1.7)
14
+ actionview (= 5.1.7)
15
+ activesupport (= 5.1.7)
16
16
  rack (~> 2.0)
17
17
  rack-test (>= 0.6.3)
18
18
  rails-dom-testing (~> 2.0)
19
19
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
20
- actionview (5.1.6.1)
21
- activesupport (= 5.1.6.1)
20
+ actionview (5.1.7)
21
+ activesupport (= 5.1.7)
22
22
  builder (~> 3.1)
23
23
  erubi (~> 1.4)
24
24
  rails-dom-testing (~> 2.0)
25
25
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
26
- activesupport (5.1.6.1)
26
+ activesupport (5.1.7)
27
27
  concurrent-ruby (~> 1.0, >= 1.0.2)
28
28
  i18n (>= 0.7, < 2)
29
29
  minitest (~> 5.1)
@@ -39,7 +39,7 @@ GEM
39
39
  docile (1.3.1)
40
40
  erubi (1.8.0)
41
41
  hashdiff (0.3.7)
42
- httparty (0.16.4)
42
+ httparty (0.17.0)
43
43
  mime-types (~> 3.0)
44
44
  multi_xml (>= 0.5.2)
45
45
  i18n (1.6.0)
@@ -51,14 +51,14 @@ GEM
51
51
  method_source (0.9.2)
52
52
  mime-types (3.2.2)
53
53
  mime-types-data (~> 3.2015)
54
- mime-types-data (3.2018.0812)
54
+ mime-types-data (3.2019.0331)
55
55
  mini_portile2 (2.4.0)
56
56
  minitest (5.11.3)
57
57
  multi_xml (0.6.0)
58
- nokogiri (1.10.1)
58
+ nokogiri (1.10.3)
59
59
  mini_portile2 (~> 2.4.0)
60
60
  public_suffix (3.0.3)
61
- rack (2.0.6)
61
+ rack (2.0.7)
62
62
  rack-test (1.1.0)
63
63
  rack (>= 1.0, < 3)
64
64
  rails-dom-testing (2.0.3)
@@ -66,9 +66,9 @@ GEM
66
66
  nokogiri (>= 1.6)
67
67
  rails-html-sanitizer (1.0.4)
68
68
  loofah (~> 2.2, >= 2.2.2)
69
- railties (5.1.6.1)
70
- actionpack (= 5.1.6.1)
71
- activesupport (= 5.1.6.1)
69
+ railties (5.1.7)
70
+ actionpack (= 5.1.7)
71
+ activesupport (= 5.1.7)
72
72
  method_source
73
73
  rake (>= 0.8.7)
74
74
  thor (>= 0.18.1, < 2.0)
@@ -14,7 +14,7 @@ module ZuoraAPI
14
14
  attr_accessor :region, :url, :wsdl_number, :current_session, :environment, :status, :errors, :current_error, :user_info, :tenant_id, :tenant_name, :entity_id, :timeout_sleep, :hostname, :zconnect_provider
15
15
 
16
16
  def initialize(url: nil, entity_id: nil, session: nil, status: nil, **keyword_args)
17
- raise "URL is nil or empty, but URL is required" if url.nil? | url.empty?
17
+ raise "URL is nil or empty, but URL is required" if url.nil? || url.empty?
18
18
  # raise "URL is improper. URL must contain zuora.com, zuora.eu, or zuora.na" if /zuora.com|zuora.eu|zuora.na/ === url
19
19
  @url = url.gsub(/(\d{2}\.\d)$/, MIN_Endpoint)
20
20
  @hostname = /(?<=https:\/\/|http:\/\/)(.*?)(?=\/|$)/.match(url)[0] if !/(?<=https:\/\/|http:\/\/)(.*?)(?=\/|$)/.match(url).nil?
@@ -353,11 +353,10 @@ module ZuoraAPI
353
353
  end
354
354
 
355
355
  def get_session(prefix: false, auth_type: :basic)
356
- Rails.logger.debug("Get session for #{auth_type} - #{self.class.to_s}")
356
+ Rails.logger.debug("Get session for #{auth_type} - #{self.class.to_s}") if Rails.env.to_s == 'development'
357
357
  case auth_type
358
358
  when :basic
359
359
  if self.current_session.blank?
360
- Rails.logger.debug("Create new session")
361
360
  case self.class.to_s
362
361
  when 'ZuoraAPI::Oauth'
363
362
  if self.bearer_token.blank? || self.oauth_expired?
@@ -988,8 +987,6 @@ module ZuoraAPI
988
987
  end
989
988
 
990
989
  def getDataSourceExport(query, extract: true, encrypted: false, zip: true)
991
- Rails.logger.debug("Build export")
992
- Rails.logger.debug("#{query}")
993
990
  request = Nokogiri::XML::Builder.new do |xml|
994
991
  xml['SOAP-ENV'].Envelope('xmlns:SOAP-ENV' => "http://schemas.xmlsoap.org/soap/envelope/", 'xmlns:ns2' => "http://object.api.zuora.com/", 'xmlns:xsi' => "http://www.w3.org/2001/XMLSchema-instance", 'xmlns:ns1' => "http://api.zuora.com/") do
995
992
  xml['SOAP-ENV'].Header do
@@ -1044,7 +1041,6 @@ module ZuoraAPI
1044
1041
  end
1045
1042
 
1046
1043
  file_id = output_xml.xpath('//ns2:FileId', 'ns2' =>'http://object.api.zuora.com/').text
1047
- Rails.logger.debug('=====> Export finished')
1048
1044
  export_file = get_file(:url => self.fileURL(file_id))
1049
1045
  export_file_path = export_file.path
1050
1046
  Rails.logger.debug("=====> Export path #{export_file.path}")
@@ -1063,7 +1059,6 @@ module ZuoraAPI
1063
1059
  end
1064
1060
 
1065
1061
  def query(query, parse = false)
1066
- Rails.logger.debug("Querying Zuora for #{query}")
1067
1062
  output_xml, input_xml = self.soap_call({:debug => false, :timeout_retry => true}) do |xml|
1068
1063
  xml['ns1'].query do
1069
1064
  xml['ns1'].queryString query
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.6.28"
2
+ VERSION = "1.6.31"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.28
4
+ version: 1.6.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zuora Strategic Solutions Group
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-12 00:00:00.000000000 Z
11
+ date: 2019-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -186,8 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
186
186
  - !ruby/object:Gem::Version
187
187
  version: '0'
188
188
  requirements: []
189
- rubyforge_project:
190
- rubygems_version: 2.6.8
189
+ rubygems_version: 3.0.3
191
190
  signing_key:
192
191
  specification_version: 4
193
192
  summary: Gem that provides easy integration to Zuora