gooddata 1.2.0 → 1.2.1

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
- SHA1:
3
- metadata.gz: ca928964100ff2c8876574b6757f395f622679b1
4
- data.tar.gz: 6bdbad807041115c010baa5fed18542081f79fe8
2
+ SHA256:
3
+ metadata.gz: 3e0b460e350ce558d51e952f2ceaf7ac6745818d59a9cd216c56aa09a05beffd
4
+ data.tar.gz: 3427347c50c34e5253c2c4817952595397b7bd4b90aca3295c5ba52f2b3baa35
5
5
  SHA512:
6
- metadata.gz: a1e8943363562b82306516371852c63e2dcee0fa2608df9284d968e961906061e39e82e741b34fedc05539ad3136433d32870511a9f82997f725fc2d0aa7da25
7
- data.tar.gz: be0361842e51a8e54ff31752450b96ba981e2f1c11b694f54fe0cd72d1b11debdf83b2d1f8816b17f921dec9d58310dfd35e5943f66561d0fa43be2de9dc1636
6
+ metadata.gz: 9a98ad64efd8f69da7e41a73cf7d2604c4aa675674f2b125ec1c11f48ae2395f88e5827011e74d3c409b1b4bf6aa53fc3c03b482a1a1f1f8a43d4af3145a4e51
7
+ data.tar.gz: 66073861a519d77c3227b55801e1e8fc477b7b58b7e2fc3d10e7dc6dd2379130b1ebfbc72118080f8a68b2616d17c7d3d125ef1779668a5d437c50e7d091a513
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
+ T00xHjAcBgNVBAMMFUNlcnRpZmljYXRlIEF1dGhv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s9faVWga
21
+ dr0b4Q==
22
+ -----END CERTIFICATE-----
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: ruby
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
  name: bundler
@@ -454,6 +454,9 @@ dependencies:
454
454
  - - "~>"
455
455
  - !ruby/object:Gem::Version
456
456
  version: '1.2'
457
+ - - ">="
458
+ - !ruby/object:Gem::Version
459
+ version: 1.2.1
457
460
  type: :runtime
458
461
  prerelease: false
459
462
  version_requirements: !ruby/object:Gem::Requirement
@@ -461,6 +464,9 @@ dependencies:
461
464
  - - "~>"
462
465
  - !ruby/object:Gem::Version
463
466
  version: '1.2'
467
+ - - ">="
468
+ - !ruby/object:Gem::Version
469
+ version: 1.2.1
464
470
  - !ruby/object:Gem::Dependency
465
471
  name: salesforce_bulk_query
466
472
  requirement: !ruby/object:Gem::Requirement
@@ -548,6 +554,7 @@ files:
548
554
  - LICENSE
549
555
  - LICENSE.rb
550
556
  - README.md
557
+ - RELEASING.md
551
558
  - Rakefile
552
559
  - TODO.md
553
560
  - authors.sh
@@ -556,6 +563,7 @@ files:
556
563
  - ci.rake
557
564
  - data/2008.crt
558
565
  - data/new_ca.cer
566
+ - data/new_prodgdc_ca.crt
559
567
  - dependency_decisions.yml
560
568
  - dev-gooddata-sso.pub.encrypted
561
569
  - docker-compose.lcm.yml
@@ -908,7 +916,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
908
916
  version: '0'
909
917
  requirements: []
910
918
  rubyforge_project:
911
- rubygems_version: 2.6.8
919
+ rubygems_version: 2.7.4
912
920
  signing_key:
913
921
  specification_version: 4
914
922
  summary: A convenient Ruby wrapper around the GoodData RESTful API