gooddata 1.3.0 → 1.3.1

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.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/.dockerignore +2 -0
  3. data/CHANGELOG.md +48 -0
  4. data/CONTRIBUTING.md +19 -12
  5. data/Dockerfile +37 -0
  6. data/Gemfile +0 -0
  7. data/README.md +1 -1
  8. data/Rakefile +17 -1
  9. data/bin/run_brick.rb +31 -0
  10. data/gooddata.gemspec +1 -0
  11. data/lib/gooddata/bricks/hello_world_brick.rb +21 -0
  12. data/lib/gooddata/bricks/middleware/gooddata_middleware.rb +12 -0
  13. data/lib/gooddata/bricks/middleware/logger_middleware.rb +12 -0
  14. data/lib/gooddata/bricks/pipeline.rb +12 -0
  15. data/lib/gooddata/exceptions/filter_maqlization.rb +0 -6
  16. data/lib/gooddata/extensions/class.rb +4 -0
  17. data/lib/gooddata/extensions/enumerable.rb +0 -3
  18. data/lib/gooddata/extensions/extensions.rb +0 -3
  19. data/lib/gooddata/extensions/false.rb +8 -16
  20. data/lib/gooddata/extensions/hash.rb +10 -41
  21. data/lib/gooddata/extensions/integer.rb +9 -3
  22. data/lib/gooddata/extensions/nil.rb +5 -13
  23. data/lib/gooddata/extensions/object.rb +0 -11
  24. data/lib/gooddata/extensions/string.rb +11 -5
  25. data/lib/gooddata/extensions/true.rb +8 -16
  26. data/lib/gooddata/helpers/global_helpers.rb +12 -0
  27. data/lib/gooddata/helpers/global_helpers_params.rb +5 -3
  28. data/lib/gooddata/lcm/actions/apply_custom_maql.rb +6 -0
  29. data/lib/gooddata/lcm/actions/base_action.rb +8 -2
  30. data/lib/gooddata/lcm/actions/collect_multiple_projects_column.rb +46 -0
  31. data/lib/gooddata/lcm/actions/collect_users_brick_users.rb +9 -2
  32. data/lib/gooddata/lcm/actions/execute_schedules.rb +0 -2
  33. data/lib/gooddata/lcm/actions/hello_world.rb +1 -1
  34. data/lib/gooddata/lcm/actions/synchronize_cas.rb +6 -0
  35. data/lib/gooddata/lcm/actions/synchronize_ldm.rb +6 -0
  36. data/lib/gooddata/lcm/actions/synchronize_user_filters.rb +70 -107
  37. data/lib/gooddata/lcm/actions/synchronize_users.rb +1 -13
  38. data/lib/gooddata/lcm/brick_logger.rb +26 -0
  39. data/lib/gooddata/lcm/lcm2.rb +46 -7
  40. data/lib/gooddata/lcm/types/base_type.rb +4 -0
  41. data/lib/gooddata/lcm/types/class/class.rb +2 -0
  42. data/lib/gooddata/lcm/types/complex/complex.rb +2 -0
  43. data/lib/gooddata/lcm/types/special/array.rb +2 -0
  44. data/lib/gooddata/models/blueprint/project_blueprint.rb +5 -5
  45. data/lib/gooddata/models/blueprint/to_manifest.rb +0 -2
  46. data/lib/gooddata/models/domain.rb +1 -0
  47. data/lib/gooddata/models/from_wire.rb +0 -2
  48. data/lib/gooddata/models/profile.rb +1 -1
  49. data/lib/gooddata/models/project.rb +5 -0
  50. data/lib/gooddata/models/user_filters/user_filter_builder.rb +49 -32
  51. data/lib/gooddata/models/user_group.rb +3 -0
  52. data/lib/gooddata/rest/client.rb +4 -4
  53. data/lib/gooddata/rest/object.rb +2 -0
  54. data/lib/gooddata/version.rb +1 -1
  55. metadata +23 -5
  56. data/lib/gooddata/extensions/big_decimal.rb +0 -17
  57. data/lib/gooddata/extensions/numeric.rb +0 -15
  58. data/lib/gooddata/extensions/symbol.rb +0 -15
@@ -16,6 +16,8 @@ require_relative '../mixins/meta_property_writer'
16
16
 
17
17
  require_relative '../mixins/root_key_getter'
18
18
 
19
+ require 'active_support/core_ext/object/blank'
20
+
19
21
  module GoodData
20
22
  module Rest
21
23
  # Base class dealing with REST endpoints
@@ -6,7 +6,7 @@
6
6
 
7
7
  # GoodData Module
8
8
  module GoodData
9
- VERSION = '1.3.0'
9
+ VERSION = '1.3.1'
10
10
 
11
11
  class << self
12
12
  # 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: 1.3.0
4
+ version: 1.3.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-08-17 00:00:00.000000000 Z
14
+ date: 2018-09-17 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler
@@ -419,6 +419,20 @@ dependencies:
419
419
  - - "~>"
420
420
  - !ruby/object:Gem::Version
421
421
  version: '1.1'
422
+ - !ruby/object:Gem::Dependency
423
+ name: remote_syslog_logger
424
+ requirement: !ruby/object:Gem::Requirement
425
+ requirements:
426
+ - - "~>"
427
+ - !ruby/object:Gem::Version
428
+ version: 1.0.3
429
+ type: :runtime
430
+ prerelease: false
431
+ version_requirements: !ruby/object:Gem::Requirement
432
+ requirements:
433
+ - - "~>"
434
+ - !ruby/object:Gem::Version
435
+ version: 1.0.3
422
436
  - !ruby/object:Gem::Dependency
423
437
  name: restforce
424
438
  requirement: !ruby/object:Gem::Requirement
@@ -529,11 +543,13 @@ email: pavel@gooddata.com
529
543
  executables:
530
544
  - gitflow-init.sh
531
545
  - gooddata
546
+ - run_brick.rb
532
547
  extensions: []
533
548
  extra_rdoc_files:
534
549
  - LICENSE
535
550
  - README.md
536
551
  files:
552
+ - ".dockerignore"
537
553
  - ".document"
538
554
  - ".editorconfig"
539
555
  - ".flayignore"
@@ -547,6 +563,7 @@ files:
547
563
  - CLI.md
548
564
  - CONTRIBUTING.md
549
565
  - DEPENDENCIES.md
566
+ - Dockerfile
550
567
  - Dockerfile.jruby
551
568
  - Dockerfile.ruby
552
569
  - Gemfile
@@ -560,6 +577,7 @@ files:
560
577
  - authors.sh
561
578
  - bin/gitflow-init.sh
562
579
  - bin/gooddata
580
+ - bin/run_brick.rb
563
581
  - ci.rake
564
582
  - data/2008.crt
565
583
  - data/new_ca.cer
@@ -576,6 +594,7 @@ files:
576
594
  - lib/gooddata/bricks/base_downloader.rb
577
595
  - lib/gooddata/bricks/brick.rb
578
596
  - lib/gooddata/bricks/bricks.rb
597
+ - lib/gooddata/bricks/hello_world_brick.rb
579
598
  - lib/gooddata/bricks/middleware/aws_middleware.rb
580
599
  - lib/gooddata/bricks/middleware/base_middleware.rb
581
600
  - lib/gooddata/bricks/middleware/bench_middleware.rb
@@ -645,7 +664,6 @@ files:
645
664
  - lib/gooddata/exceptions/uncomputable_report.rb
646
665
  - lib/gooddata/exceptions/user_in_different_domain.rb
647
666
  - lib/gooddata/exceptions/validation_error.rb
648
- - lib/gooddata/extensions/big_decimal.rb
649
667
  - lib/gooddata/extensions/class.rb
650
668
  - lib/gooddata/extensions/enumerable.rb
651
669
  - lib/gooddata/extensions/extensions.rb
@@ -653,10 +671,8 @@ files:
653
671
  - lib/gooddata/extensions/hash.rb
654
672
  - lib/gooddata/extensions/integer.rb
655
673
  - lib/gooddata/extensions/nil.rb
656
- - lib/gooddata/extensions/numeric.rb
657
674
  - lib/gooddata/extensions/object.rb
658
675
  - lib/gooddata/extensions/string.rb
659
- - lib/gooddata/extensions/symbol.rb
660
676
  - lib/gooddata/extensions/true.rb
661
677
  - lib/gooddata/extract.rb
662
678
  - lib/gooddata/goodzilla/goodzilla.rb
@@ -678,6 +694,7 @@ files:
678
694
  - lib/gooddata/lcm/actions/collect_dynamic_schedule_params.rb
679
695
  - lib/gooddata/lcm/actions/collect_ldm_objects.rb
680
696
  - lib/gooddata/lcm/actions/collect_meta.rb
697
+ - lib/gooddata/lcm/actions/collect_multiple_projects_column.rb
681
698
  - lib/gooddata/lcm/actions/collect_segment_clients.rb
682
699
  - lib/gooddata/lcm/actions/collect_segments.rb
683
700
  - lib/gooddata/lcm/actions/collect_tagged_objects.rb
@@ -712,6 +729,7 @@ files:
712
729
  - lib/gooddata/lcm/actions/synchronize_user_groups.rb
713
730
  - lib/gooddata/lcm/actions/synchronize_users.rb
714
731
  - lib/gooddata/lcm/actions/update_release_table.rb
732
+ - lib/gooddata/lcm/brick_logger.rb
715
733
  - lib/gooddata/lcm/data/create_lcm_release.sql.erb
716
734
  - lib/gooddata/lcm/data/insert_into_lcm_release.sql.erb
717
735
  - lib/gooddata/lcm/data/select_from_lcm_release.sql.erb
@@ -1,17 +0,0 @@
1
- # encoding: UTF-8
2
- #
3
- # Copyright (c) 2010-2017 GoodData Corporation. All rights reserved.
4
- # This source code is licensed under the BSD-style license found in the
5
- # LICENSE file in the root directory of this source tree.
6
-
7
- require 'bigdecimal'
8
-
9
- class BigDecimal
10
- def duplicable?
11
- true
12
- end
13
-
14
- def pretty_print(p)
15
- p.text to_s
16
- end
17
- end
@@ -1,15 +0,0 @@
1
- # encoding: UTF-8
2
- #
3
- # Copyright (c) 2010-2017 GoodData Corporation. All rights reserved.
4
- # This source code is licensed under the BSD-style license found in the
5
- # LICENSE file in the root directory of this source tree.
6
-
7
- class Numeric
8
- # Numbers are not duplicable:
9
- #
10
- # 3.duplicable? # => false
11
- # 3.dup # => TypeError: can't dup Fixnum
12
- def duplicable?
13
- false
14
- end
15
- end
@@ -1,15 +0,0 @@
1
- # encoding: UTF-8
2
- #
3
- # Copyright (c) 2010-2017 GoodData Corporation. All rights reserved.
4
- # This source code is licensed under the BSD-style license found in the
5
- # LICENSE file in the root directory of this source tree.
6
-
7
- class Symbol
8
- # Symbols are not duplicable:
9
- #
10
- # :my_symbol.duplicable? # => false
11
- # :my_symbol.dup # => TypeError: can't dup Symbol
12
- def duplicable?
13
- false
14
- end
15
- end