zuora_api 1.3.3 → 1.3.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: d92c60b9da5b74041b862fdd2af9194efaf4d9fd
4
- data.tar.gz: 56465882c0f981d112eaa407ddff336a2ac9b2f8
3
+ metadata.gz: 57d1ed43f53a9dfd453e440cb8d33af5ff1e5a7b
4
+ data.tar.gz: f0145cbd319229048eacf57020314294654f30b5
5
5
  SHA512:
6
- metadata.gz: aba52fda66bbb00072045a19d1ec30d534c7544e50395afef39c48a0ea1fb146a3939a14bf2bf97dc258542b7a84df008965a35e68e82470f18fd1aeb68ec995
7
- data.tar.gz: 99bb1f0be83771d07212c1d7dfd25a3dcd517c01f9b1a06fc5d962415e1ae2be834bd2bdba1d8c8a06e07069e141046243ede52d735c1cbce6670770daaef4f2
6
+ metadata.gz: bd9e4e2076491ce0b3a0c7f9733da51ae2fd2809dd80ef9f6881faa948432e41484bb675c512647533c37ee2507429e5c94ad5e1e9b6d960cd66460d8ca361a0
7
+ data.tar.gz: fc7d12f7b91bbef70d35d2324703be5f9a3429afffe1419fe73491a4f95a6885fc11d0bb67004aa6f028badbd8c7b19d2a11eb06cc25e27fd40c8eb93f6ccb74
data/.gitlab-ci.yml ADDED
@@ -0,0 +1,47 @@
1
+
2
+ image: ruby:2.3.1
3
+ stages:
4
+ - setup
5
+ - test
6
+ - deploy
7
+
8
+ setup:
9
+ stage: setup
10
+ allow_failure: true
11
+ script:
12
+ - apt-get update -qy
13
+ - apt-get install -y nodejs
14
+ - bundle install --path /cache
15
+
16
+ rubocop-testing:
17
+ stage: test
18
+ allow_failure: true
19
+ script:
20
+ - gem install rubocop
21
+ - rubocop --lint
22
+
23
+ security-testing:
24
+ stage: test
25
+ allow_failure: true
26
+ script:
27
+ - gem install brakeman
28
+ - brakeman
29
+
30
+ rspec-testing:
31
+ stage: test
32
+ allow_failure: true
33
+ script:
34
+ - gem install rspec
35
+ - rspec
36
+
37
+ rubygems-deploy:
38
+ stage: deploy
39
+ allow_failure: false
40
+ script:
41
+ - bundle install
42
+ - gem install rake
43
+ - version=$(rake install | grep -o 'pkg/zuora_api-.*gem')
44
+ - curl -u $USERNAME:$PASSWORD https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials; chmod 0600 ~/.gem/credentials
45
+ - gem push $version
46
+ only:
47
+ - master
@@ -383,7 +383,7 @@ module ZuoraAPI
383
383
  charges = {}
384
384
 
385
385
  rateplan["productRatePlanCharges"].each do |charge|
386
- catalog_map[charge["id"]] = {"productId" => product["id"], "productRatePlanId" => rateplan["id"], "productRatePlanChargeId" => charge["id"], }
386
+ catalog_map[charge["id"]] = {"productId" => product["id"], "productRatePlanId" => rateplan["id"], "productRatePlanChargeId" => charge["id"]}
387
387
  charges[charge["id"]] = charge.merge({"productId" => product["id"], "productName" => product["name"], "productRatePlanId" => rateplan["id"], "productRatePlanName" => rateplan["name"] })
388
388
  end
389
389
 
@@ -403,7 +403,7 @@ module ZuoraAPI
403
403
  filename = !file_name.blank? ? file_name : File.basename(uri.path).rpartition('.').first
404
404
 
405
405
  http = Net::HTTP.new(uri.host, uri.port)
406
- http.read_timeout = 120 #Seconds
406
+ http.read_timeout = 120 #Seconds
407
407
  http.use_ssl = true if uri.scheme.downcase == 'https'
408
408
  headers = headers.merge({"Authorization" => "ZSession #{self.get_session}"})
409
409
 
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.3.3"
2
+ VERSION = "1.3.4"
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.3.3
4
+ version: 1.3.4
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: 2017-05-17 00:00:00.000000000 Z
11
+ date: 2017-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -123,6 +123,7 @@ extra_rdoc_files: []
123
123
  files:
124
124
  - ".DS_Store"
125
125
  - ".gitignore"
126
+ - ".gitlab-ci.yml"
126
127
  - ".rspec"
127
128
  - ".travis.yml"
128
129
  - Gemfile
@@ -156,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
157
  version: '0'
157
158
  requirements: []
158
159
  rubyforge_project:
159
- rubygems_version: 2.5.1
160
+ rubygems_version: 2.6.8
160
161
  signing_key:
161
162
  specification_version: 4
162
163
  summary: Gem that provides easy integration to Zuora