gooddata 1.2.0-java → 1.2.1-java

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
  SHA1:
3
- metadata.gz: bfa9dfda77e3c20d3fff934ccd744893edc01150
4
- data.tar.gz: a2b68d877fb9f37038653fb47f416b018dabeded
3
+ metadata.gz: b3d8f9855516516f866d82dea9812cca450dbbf3
4
+ data.tar.gz: 71f66949333303e9c0d342d4bbdabe0cdc25f418
5
5
  SHA512:
6
- metadata.gz: a8f0a6b39f802e2fd7a754f5a59e83bdd8fbd356633dd1ca44a2579a22b2356fec4ffa38699eb89810e503055eee3dd9503fc9e019c1b54226e6eb3e74bb2c12
7
- data.tar.gz: ea6d6e64cfd04a2ddcfb8c292908c8d097adc620ac91040407e5057ebc182b1f53f5f9d6f5aa85bc3f84b67cd98df9f71961735787062e62488291279ea3524e
6
+ metadata.gz: 80863a218d309f62d321106ce7205f6b4073aa5ec21c38a46e99f34e51d864e5cce26ed09a0b7f2c63d461f68f4d73ff353a81ab7fcc5188800c40522dfc8f66
7
+ data.tar.gz: c2b10a96702f955959e2f3d21269c7e5882ad42117e7b597ed472701262f0207e53805cf3ac7dd51b7c0261212e38fc3015fc32b212d2d6381d486325890163c
data/.document CHANGED
File without changes
data/.gitignore CHANGED
@@ -39,4 +39,5 @@ tmp/
39
39
  junit.xml
40
40
 
41
41
  # autogenerated file
42
- deprecations.txt
42
+ deprecations.txt
43
+ .vscode/settings.json
data/.yardopts CHANGED
File without changes
@@ -1,4 +1,18 @@
1
1
  # GoodData Ruby SDK Changelog
2
+
3
+ ## 1.2.1
4
+ - Document gem release process (#1254)
5
+ - TMA-956 - Update process.rb to fix regression from TMA-832 (#1248)
6
+ - Add certificate for prodgdc
7
+ - fixed up the pefr cluster urls
8
+ - fixed url to perfcluster
9
+ - TMA-983: Fix error in after hook
10
+ - Exclude specs from gem release
11
+ - Exclude specs from gem release
12
+ - Bump version to 1.2.0 (#1242)
13
+ - Run pronto against correct branch (#1244)
14
+ - SRT-796: Ensure safe version of rubyzip
15
+
2
16
  ## 1.2.0
3
17
  - * TMA-484: Perform MAQL diff only once in rollout
4
18
  - Use the latest aws sdk gem (#1237)
@@ -110,7 +124,7 @@
110
124
  - TMA-604: can put metrics in folders
111
125
  - TMA-843: avoid abuse of obj resource in partial md import export
112
126
  - TMA-892: User filters brick dry run (#1156)
113
- - * TMA-892: User filters brick dry run
127
+ - * TMA-892: User filters brick dry run
114
128
  - TMA-761: add support for manual schedule execution
115
129
  - fix recovery from provision clients error
116
130
  - make sso backwards compatible
data/CLI.md CHANGED
File without changes
@@ -18,5 +18,6 @@ ADD . .
18
18
  # https://jira.intgdc.com/browse/TMA-300
19
19
  RUN keytool -importcert -alias gooddata-2008 -file "./data/2008.crt" -keystore $JAVA_HOME/lib/security/cacerts -trustcacerts -storepass 'changeit' -noprompt
20
20
  RUN keytool -importcert -alias gooddata-int -file "./data/new_ca.cer" -keystore $JAVA_HOME/lib/security/cacerts -trustcacerts -storepass 'changeit' -noprompt
21
+ RUN keytool -importcert -alias gooddata-prod -file "data/new_prodgdc_ca.crt" -keystore $JAVA_HOME/lib/security/cacerts -trustcacerts -storepass 'changeit' -noprompt
21
22
 
22
23
  CMD ["bundle", "exec", "rspec spec/lcm/integration"]
data/Gemfile CHANGED
File without changes
data/Guardfile CHANGED
File without changes
@@ -0,0 +1,15 @@
1
+ # Releasing Gooddata Gem
2
+
3
+ 1. `git clone https://github.com/gooddata/gooddata-ruby.git gooddata-ruby`
4
+ 1. `cd gooddata-ruby`
5
+ 1. `git checkout master`
6
+ 1. `rvm use ruby`
7
+ 1. `bundle install`
8
+ 1. bump version in [lib/gooddata/version.rb](lib/gooddata/version.rb)
9
+ 1. `bundle exec rake version:bump`
10
+ 1. push to master
11
+ 1. `git push origin tags/{version}`
12
+ 1. `rake gem:release`
13
+ 1. `rvm use jruby && rm Gemfile.lock && bundle install`
14
+ 1. `rake gem:release`
15
+ 1. release [cookbook](https://github.com/gooddata/gooddata-ruby-examples)
data/Rakefile CHANGED
@@ -142,6 +142,33 @@ namespace :license do
142
142
  end
143
143
  end
144
144
 
145
+ namespace :version do
146
+ desc 'Updates the changelog, commits and tags the bump'
147
+ task :bump do
148
+ require_relative 'lib/gooddata/version'
149
+ new_version = GoodData::VERSION
150
+ changelog = File.read('CHANGELOG.md')
151
+ changelog_header = '# GoodData Ruby SDK Changelog'
152
+ changelog.slice! changelog_header
153
+ fail 'the version is already mentioned in the changelog' if changelog =~ /## #{new_version}/
154
+ puts "Creating changelog for version #{new_version}"
155
+ current_commit = `git rev-parse HEAD`.chomp
156
+ last_release = changelog.split("\n").reject(&:empty?).first.delete('## ').chomp
157
+ puts "Last release was #{last_release}"
158
+ last_release_commit = `git rev-parse #{last_release}`.chomp
159
+ changes = `git log --format=%s --no-merges #{last_release_commit}..#{current_commit}`.split("\n").reject(&:empty?)
160
+ File.open('CHANGELOG.md', 'w+') do |file|
161
+ file.puts changelog_header + "\n"
162
+ file.puts "## #{new_version}"
163
+ changes.each { |change| file.puts ' - ' + change }
164
+ file.puts changelog
165
+ end
166
+ # `git add CHANGELOG.md lib/gooddata/version.rb`
167
+ # `git commit -m "Bump version to #{new_version}"`
168
+ # `git tag #{new_version}`
169
+ end
170
+ end
171
+
145
172
  namespace :changelog do
146
173
  desc 'Updates the changelog with commit messages'
147
174
  task :update do
data/TODO.md CHANGED
File without changes
@@ -0,0 +1,22 @@
1
+ -----BEGIN CERTIFICATE-----
2
+ MIIDkDCCAnigAwIBAgIED/cARzANBgkqhkiG9w0BAQsFADA2MRQwEgYDVQQKEwtQ
3
+ Uk9ER0RDLkNPTTEeMBwGA1UEAxMVQ2VydGlmaWNhdGUgQXV0aG9yaXR5MB4XDTE3
4
+ MDExMTE0NDMzMVoXDTM3MDExMTE0NDMzMVowNjEUMBIGA1UECgwLUFJPREdEQy5D
5
+ T00xHjAcBgNVBAMMFUNlcnRpZmljYXRlIEF1dGhvcml0eTCCASIwDQYJKoZIhvcN
6
+ AQEBBQ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ATE-----
File without changes
@@ -62,7 +62,7 @@ Gem::Specification.new do |s|
62
62
  s.add_dependency 'pmap', '~> 1.1'
63
63
  s.add_dependency 'restforce', '~> 2.4'
64
64
  s.add_dependency 'rest-client', '~> 2.0'
65
- s.add_dependency 'rubyzip', '~> 1.2'
65
+ s.add_dependency 'rubyzip', '~> 1.2', '>= 1.2.1'
66
66
  s.add_dependency 'salesforce_bulk_query', '~> 0.2'
67
67
  s.add_dependency 'terminal-table', '~> 1.7'
68
68
  s.add_dependency 'thread_safe'
File without changes
File without changes
File without changes
File without changes
@@ -24,32 +24,33 @@ module GoodData
24
24
  alias_method :to_hash, :data
25
25
 
26
26
  class << self
27
- def [](id, options = {})
27
+ def [](id, options = { :client => GoodData.connection })
28
28
  project = options[:project]
29
- c = options[:client] || (project && project.client)
29
+ client = options[:client] || (project && project.client)
30
+ fail 'Client has to be specified in options' unless client
30
31
 
31
32
  if id == :all && project
32
33
  uri = "/gdc/projects/#{project.pid}/dataload/processes"
33
- data = c.get(uri)
34
+ data = client.get(uri)
34
35
  data['processes']['items'].map do |process_data|
35
- c.create(Process, process_data, project: project)
36
+ client.create(Process, process_data, project: project)
36
37
  end
37
38
  elsif id == :all
38
- uri = "/gdc/account/profile/#{c.user.obj_id}/dataload/processes"
39
- data = c.get(uri)
39
+ uri = "/gdc/account/profile/#{client.user.obj_id}/dataload/processes"
40
+ data = client.get(uri)
40
41
  pids = data['processes']['items'].map { |process_data| process_data['process']['links']['self'].match(%r{/gdc/projects/(\w*)/})[1] }.uniq
41
- projects_lookup = pids.pmap { |pid| c.projects(pid) }.reduce({}) do |a, e|
42
+ projects_lookup = pids.pmap { |pid| client.projects(pid) }.reduce({}) do |a, e|
42
43
  a[e.pid] = e
43
44
  a
44
45
  end
45
46
 
46
47
  data['processes']['items'].map do |process_data|
47
48
  pid = process_data['process']['links']['self'].match(%r{/gdc/projects/(\w*)/})[1]
48
- c.create(Process, process_data, project: projects_lookup[pid])
49
+ client.create(Process, process_data, project: projects_lookup[pid])
49
50
  end
50
51
  else
51
52
  uri = "/gdc/projects/#{project.pid}/dataload/processes/#{id}"
52
- c.create(Process, c.get(uri), project: project)
53
+ client.create(Process, client.get(uri), project: project)
53
54
  end
54
55
  end
55
56
 
@@ -203,7 +204,7 @@ module GoodData
203
204
 
204
205
  def save(data, options = { client: GoodData.client, project: GoodData.project })
205
206
  client, project = GoodData.get_client_and_project(options)
206
- process_id = data[:process_id]
207
+ process_id = options[:process_id]
207
208
  res =
208
209
  if process_id.nil?
209
210
  client.post("/gdc/projects/#{project.pid}/dataload/processes", data)
File without changes
@@ -6,7 +6,7 @@
6
6
 
7
7
  # GoodData Module
8
8
  module GoodData
9
- VERSION = '1.2.0'
9
+ VERSION = '1.2.1'
10
10
 
11
11
  class << self
12
12
  # Version
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gooddata
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: java
6
6
  authors:
7
7
  - Pavel Kolesnikov
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2018-07-10 00:00:00.000000000 Z
14
+ date: 2018-07-17 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  requirement: !ruby/object:Gem::Requirement
@@ -411,6 +411,9 @@ dependencies:
411
411
  - - "~>"
412
412
  - !ruby/object:Gem::Version
413
413
  version: '1.2'
414
+ - - ">="
415
+ - !ruby/object:Gem::Version
416
+ version: 1.2.1
414
417
  name: rubyzip
415
418
  prerelease: false
416
419
  type: :runtime
@@ -419,6 +422,9 @@ dependencies:
419
422
  - - "~>"
420
423
  - !ruby/object:Gem::Version
421
424
  version: '1.2'
425
+ - - ">="
426
+ - !ruby/object:Gem::Version
427
+ version: 1.2.1
422
428
  - !ruby/object:Gem::Dependency
423
429
  requirement: !ruby/object:Gem::Requirement
424
430
  requirements:
@@ -506,6 +512,7 @@ files:
506
512
  - LICENSE
507
513
  - LICENSE.rb
508
514
  - README.md
515
+ - RELEASING.md
509
516
  - Rakefile
510
517
  - TODO.md
511
518
  - authors.sh
@@ -514,6 +521,7 @@ files:
514
521
  - ci.rake
515
522
  - data/2008.crt
516
523
  - data/new_ca.cer
524
+ - data/new_prodgdc_ca.crt
517
525
  - dependency_decisions.yml
518
526
  - dev-gooddata-sso.pub.encrypted
519
527
  - docker-compose.lcm.yml
@@ -866,7 +874,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
866
874
  version: '0'
867
875
  requirements: []
868
876
  rubyforge_project:
869
- rubygems_version: 2.6.13
877
+ rubygems_version: 2.6.14
870
878
  signing_key:
871
879
  specification_version: 4
872
880
  summary: A convenient Ruby wrapper around the GoodData RESTful API