gooddata 0.6.14 → 0.6.15

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: 8b2cc95365699b104ccca0c4a8bcc150f7185cec
4
- data.tar.gz: 713eb96fa8fe826ea998168fdcce76bc220f5ee2
3
+ metadata.gz: 2be96271a19b80a9bbb9658234c19fafbeadf935
4
+ data.tar.gz: 11a5fd29bede6c2258a0954d2e5b0fc6fd8d71ec
5
5
  SHA512:
6
- metadata.gz: 1b55029ce133fe1513da60dbfac57a56c4b76d3f6cd9bd5532505e9eeff07437c589e7114b7e116b22de505530a41dacbaacd81d678fe33287ac7aae304c30f4
7
- data.tar.gz: 13635e9b44dbe5aeca95b86a42e7309d5c3d322cd43ad71196b88aae3dcc69c0178b170ac921513b67909d6081c35ebe52b7e4d5d43814290a239142ccd05748
6
+ metadata.gz: 8590dd4828f12d0bb49beadaafc6b32080678c5df6d38e8fc710a77f2ae54983e6cd5cdeee04c1fc835b91774240e8c2da68486f9c649e101b2131ababca5301
7
+ data.tar.gz: de42c006bb3bed502feab54273fa3263f4475f081617de84d5b6eb8746941e1e55d5cf814fab09e47801a9691561b192a5791f6bdaa13e53c1b6a6cdcbb44e64
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # GoodData Ruby SDK Changelog
2
2
 
3
+ ## 0.6.15
4
+
5
+ - Adding users now accepts more variants of providing users
6
+ - Import users is not importing users to domain automatically. There is app in appstore that should help you with various ways of importing users
7
+ - Speed improvements for adding users
8
+ - Fixed listing facts/attributes on the dataset
9
+ - Corrected fixed limit on listing users from domain. Paging is handled by different parameter
10
+ - Replacing value in metric/attribute should be more resilient
11
+
3
12
  ## 0.6.14
4
13
 
5
14
  - Project update from blueprint does not fail when MAQL chunks are empty.
@@ -192,7 +192,7 @@ module GoodData
192
192
  pairs.each do |a, b|
193
193
  uri_what = a.respond_to?(:uri) ? a.uri : a
194
194
  uri_for_what = b.respond_to?(:uri) ? b.uri : b
195
- self.expression = expression.gsub(uri_what, uri_for_what)
195
+ self.expression = expression.gsub("[#{uri_what}]", "[#{uri_for_what}]")
196
196
  end
197
197
  self
198
198
  end
@@ -158,7 +158,7 @@ module GoodData
158
158
  # @param definition [String | GoodData::ReportDefinition] Report defintion to remove
159
159
  # @return [GoodData::Report] Returns report with removed definition
160
160
  def remove_definition(definition)
161
- a_def = GoodData::ReportDefinition(definition, project: project, client: client)
161
+ a_def = GoodData::ReportDefinition[definition, project: project, client: client]
162
162
  def_uri = a_def.uri
163
163
  content['definitions'] = definition_uris.reject { |x| x == def_uri }
164
164
  self
@@ -316,7 +316,7 @@ module GoodData
316
316
 
317
317
  content['grid']['metrics'] = metric_parts.map do |item|
318
318
  item.deep_dup.tap do |i|
319
- i['uri'].gsub!(uri_what, uri_for_what)
319
+ i['uri'].gsub!("[#{uri_what}]", "[#{uri_for_what}]")
320
320
  end
321
321
  end
322
322
 
@@ -324,7 +324,7 @@ module GoodData
324
324
  content['grid']['columns'] = cols.map do |item|
325
325
  if item.is_a?(Hash)
326
326
  item.deep_dup.tap do |i|
327
- i['attribute']['uri'].gsub!(uri_what, uri_for_what)
327
+ i['attribute']['uri'].gsub!("[#{uri_what}]", "[#{uri_for_what}]")
328
328
  end
329
329
  else
330
330
  item
@@ -335,7 +335,7 @@ module GoodData
335
335
  content['grid']['rows'] = rows.map do |item|
336
336
  if item.is_a?(Hash)
337
337
  item.deep_dup.tap do |i|
338
- i['attribute']['uri'].gsub!(uri_what, uri_for_what)
338
+ i['attribute']['uri'].gsub!("[#{uri_what}]", "[#{uri_for_what}]")
339
339
  end
340
340
  else
341
341
  item
@@ -347,7 +347,7 @@ module GoodData
347
347
  if item.is_a?(Hash)
348
348
  item.deep_dup.tap do |i|
349
349
  if i['locator'][0].key?('attributeHeaderLocator')
350
- i['locator'][0]['attributeHeaderLocator']['uri'].gsub!(uri_what, uri_for_what)
350
+ i['locator'][0]['attributeHeaderLocator']['uri'].gsub!("[#{uri_what}]", "[#{uri_for_what}]")
351
351
  end
352
352
  end
353
353
  else
@@ -362,8 +362,8 @@ module GoodData
362
362
  next unless i.key?('metricSort')
363
363
  next unless i['metricSort'].key?('locators')
364
364
  next unless i['metricSort']['locators'][0].key?('attributeLocator2')
365
- i['metricSort']['locators'][0]['attributeLocator2']['uri'].gsub!(uri_what, uri_for_what)
366
- i['metricSort']['locators'][0]['attributeLocator2']['element'].gsub!(uri_what, uri_for_what)
365
+ i['metricSort']['locators'][0]['attributeLocator2']['uri'].gsub!("[#{uri_what}]", "[#{uri_for_what}]")
366
+ i['metricSort']['locators'][0]['attributeLocator2']['element'].gsub!("[#{uri_what}]", "[#{uri_for_what}]")
367
367
  end
368
368
  else
369
369
  item
@@ -374,17 +374,16 @@ module GoodData
374
374
  content['chart']['buckets'] = content['chart']['buckets'].reduce({}) do |a, e|
375
375
  key = e[0]
376
376
  val = e[1]
377
- # binding.pry
378
377
  a[key] = val.map do |item|
379
378
  item.deep_dup.tap do |i|
380
- i['uri'].gsub!(uri_what, uri_for_what)
379
+ i['uri'].gsub!("[#{uri_what}]", "[#{uri_for_what}]")
381
380
  end
382
381
  end
383
382
  a
384
383
  end
385
384
  end
386
385
 
387
- content['filters'] = filters.map { |filter_expression| { 'expression' => filter_expression.gsub(uri_what, uri_for_what) } }
386
+ content['filters'] = filters.map { |filter_expression| { 'expression' => filter_expression.gsub("[#{uri_what}]", "[#{uri_for_what}]") } }
388
387
  end
389
388
  self
390
389
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  # GoodData Module
4
4
  module GoodData
5
- VERSION = '0.6.14'
5
+ VERSION = '0.6.15'
6
6
 
7
7
  class << self
8
8
  # Version
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: 0.6.14
4
+ version: 0.6.15
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: 2015-02-17 00:00:00.000000000 Z
14
+ date: 2015-04-02 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rake