gooddata 0.6.0 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (208) hide show
  1. checksums.yaml +13 -5
  2. data/.rubocop.yml +23 -0
  3. data/.travis.yml +9 -4
  4. data/CLI.md +439 -0
  5. data/Gemfile +0 -1
  6. data/README.md +2 -2
  7. data/Rakefile +60 -8
  8. data/doc/templates/default/module/setup.rb +1 -1
  9. data/examples.rb +2 -0
  10. data/gooddata +2 -0
  11. data/gooddata.gemspec +12 -8
  12. data/lib/gooddata.rb +0 -2
  13. data/lib/gooddata/bricks/base_downloader.rb +52 -47
  14. data/lib/gooddata/bricks/brick.rb +20 -31
  15. data/lib/gooddata/bricks/bricks.rb +1 -1
  16. data/lib/gooddata/bricks/middleware/base_middleware.rb +9 -7
  17. data/lib/gooddata/bricks/middleware/bench_middleware.rb +12 -10
  18. data/lib/gooddata/bricks/middleware/bulk_salesforce_middleware.rb +28 -28
  19. data/lib/gooddata/bricks/middleware/fs_upload_middleware.rb +20 -16
  20. data/lib/gooddata/bricks/middleware/gooddata_middleware.rb +21 -19
  21. data/lib/gooddata/bricks/middleware/logger_middleware.rb +10 -8
  22. data/lib/gooddata/bricks/middleware/restforce_middleware.rb +36 -34
  23. data/lib/gooddata/bricks/middleware/stdout_middleware.rb +11 -9
  24. data/lib/gooddata/bricks/middleware/twitter_middleware.rb +14 -12
  25. data/lib/gooddata/bricks/pipeline.rb +28 -0
  26. data/lib/gooddata/bricks/utils.rb +10 -8
  27. data/lib/gooddata/cli/cli.rb +1 -6
  28. data/lib/gooddata/cli/commands/auth_cmd.rb +1 -1
  29. data/lib/gooddata/cli/commands/console_cmd.rb +7 -5
  30. data/lib/gooddata/cli/commands/domain_cmd.rb +45 -0
  31. data/lib/gooddata/cli/commands/process_cmd.rb +42 -5
  32. data/lib/gooddata/cli/commands/project_cmd.rb +96 -36
  33. data/lib/gooddata/cli/commands/projects_cmd.rb +21 -0
  34. data/lib/gooddata/cli/commands/role_cmd.rb +28 -0
  35. data/lib/gooddata/cli/commands/run_ruby_cmd.rb +5 -5
  36. data/lib/gooddata/cli/commands/scaffold_cmd.rb +1 -1
  37. data/lib/gooddata/cli/commands/{profile_cmd.rb → user_cmd.rb} +7 -9
  38. data/lib/gooddata/cli/shared.rb +3 -2
  39. data/lib/gooddata/client.rb +16 -304
  40. data/lib/gooddata/commands/api.rb +13 -5
  41. data/lib/gooddata/commands/auth.rb +47 -40
  42. data/lib/gooddata/commands/base.rb +4 -2
  43. data/lib/gooddata/commands/commands.rb +1 -1
  44. data/lib/gooddata/commands/datasets.rb +20 -7
  45. data/lib/gooddata/commands/domain.rb +23 -0
  46. data/lib/gooddata/commands/process.rb +23 -117
  47. data/lib/gooddata/commands/project.rb +147 -0
  48. data/lib/gooddata/commands/projects.rb +8 -102
  49. data/lib/gooddata/commands/role.rb +26 -0
  50. data/lib/gooddata/commands/runners.rb +41 -38
  51. data/lib/gooddata/commands/scaffold.rb +46 -43
  52. data/lib/gooddata/commands/user.rb +33 -0
  53. data/lib/gooddata/connection.rb +43 -353
  54. data/lib/gooddata/core/connection.rb +389 -0
  55. data/lib/gooddata/core/core.rb +5 -4
  56. data/lib/gooddata/core/logging.rb +48 -0
  57. data/lib/gooddata/core/nil_logger.rb +13 -0
  58. data/lib/gooddata/core/project.rb +70 -0
  59. data/lib/gooddata/core/rest.rb +120 -0
  60. data/lib/gooddata/core/threaded.rb +14 -0
  61. data/lib/gooddata/core/user.rb +19 -0
  62. data/lib/gooddata/data/data.rb +2 -1
  63. data/lib/gooddata/data/guesser.rb +16 -12
  64. data/lib/gooddata/exceptions/command_failed.rb +1 -1
  65. data/lib/gooddata/exceptions/exceptions.rb +2 -1
  66. data/lib/gooddata/exceptions/no_project_error.rb +11 -0
  67. data/lib/gooddata/exceptions/project_not_found.rb +1 -1
  68. data/lib/gooddata/extensions/big_decimal.rb +6 -2
  69. data/lib/gooddata/extract.rb +10 -8
  70. data/lib/gooddata/goodzilla/goodzilla.rb +61 -59
  71. data/lib/gooddata/helpers.rb +15 -9
  72. data/lib/gooddata/models/account_settings.rb +124 -0
  73. data/lib/gooddata/models/attributes/anchor.rb +37 -0
  74. data/lib/gooddata/models/attributes/attributes.rb +8 -0
  75. data/lib/gooddata/models/attributes/date_attribute.rb +25 -0
  76. data/lib/gooddata/models/attributes/time_attribute.rb +24 -0
  77. data/lib/gooddata/models/columns/attribute.rb +71 -0
  78. data/lib/gooddata/models/columns/columns.rb +8 -0
  79. data/lib/gooddata/models/columns/date_column.rb +63 -0
  80. data/lib/gooddata/models/columns/fact_model.rb +54 -0
  81. data/lib/gooddata/models/columns/label.rb +55 -0
  82. data/lib/gooddata/models/columns/reference.rb +57 -0
  83. data/lib/gooddata/models/dashboard_builder.rb +26 -0
  84. data/lib/gooddata/models/data_result.rb +10 -9
  85. data/lib/gooddata/models/domain.rb +131 -0
  86. data/lib/gooddata/models/empty_result.rb +5 -8
  87. data/lib/gooddata/models/facts/facts.rb +8 -0
  88. data/lib/gooddata/models/facts/time_fact.rb +20 -0
  89. data/lib/gooddata/models/folders/attribute_folder.rb +20 -0
  90. data/lib/gooddata/models/folders/fact_folder.rb +20 -0
  91. data/lib/gooddata/models/folders/folders.rb +8 -0
  92. data/lib/gooddata/models/invitation.rb +78 -0
  93. data/lib/gooddata/models/links.rb +6 -6
  94. data/lib/gooddata/models/md_object.rb +25 -0
  95. data/lib/gooddata/models/metadata.rb +160 -62
  96. data/lib/gooddata/models/metadata/attribute.rb +81 -0
  97. data/lib/gooddata/models/metadata/column.rb +61 -0
  98. data/lib/gooddata/models/{dashboard.rb → metadata/dashboard.rb} +12 -7
  99. data/lib/gooddata/models/{data_set.rb → metadata/data_set.rb} +5 -4
  100. data/lib/gooddata/models/metadata/date_dimension.rb +26 -0
  101. data/lib/gooddata/models/metadata/display_form.rb +61 -0
  102. data/lib/gooddata/models/metadata/fact.rb +36 -0
  103. data/lib/gooddata/models/metadata/folder.rb +24 -0
  104. data/lib/gooddata/models/metadata/metadata.rb +8 -0
  105. data/lib/gooddata/models/metadata/metric.rb +197 -0
  106. data/lib/gooddata/models/metadata/report.rb +115 -0
  107. data/lib/gooddata/models/{report_definition.rb → metadata/report_definition.rb} +16 -10
  108. data/lib/gooddata/models/metadata/schema.rb +227 -0
  109. data/lib/gooddata/models/model.rb +38 -1339
  110. data/lib/gooddata/models/models.rb +5 -2
  111. data/lib/gooddata/models/module_constants.rb +29 -0
  112. data/lib/gooddata/models/process.rb +142 -13
  113. data/lib/gooddata/models/profile.rb +4 -6
  114. data/lib/gooddata/models/project.rb +406 -136
  115. data/lib/gooddata/models/project_blueprint.rb +221 -0
  116. data/lib/gooddata/models/project_builder.rb +136 -0
  117. data/lib/gooddata/models/project_creator.rb +138 -0
  118. data/lib/gooddata/models/project_metadata.rb +11 -10
  119. data/lib/gooddata/models/project_role.rb +92 -0
  120. data/lib/gooddata/models/references/date_reference.rb +44 -0
  121. data/lib/gooddata/models/references/references.rb +8 -0
  122. data/lib/gooddata/models/references/time_reference.rb +13 -0
  123. data/lib/gooddata/models/report_data_result.rb +11 -11
  124. data/lib/gooddata/models/schedule.rb +284 -0
  125. data/lib/gooddata/models/schema_blueprint.rb +158 -0
  126. data/lib/gooddata/models/schema_builder.rb +81 -0
  127. data/lib/gooddata/models/tab_builder.rb +23 -0
  128. data/lib/gooddata/models/user.rb +165 -0
  129. data/lib/gooddata/version.rb +1 -1
  130. data/lib/templates/project/data/devs.csv +1 -1
  131. data/lib/templates/project/data/repos.csv +1 -1
  132. data/lib/templates/project/model/model.rb.erb +7 -11
  133. data/spec/bricks/bricks_spec.rb +2 -0
  134. data/spec/data/test-ci-data.csv +2 -0
  135. data/spec/data/test_project_model_spec.json +7 -27
  136. data/spec/helpers/blueprint_helper.rb +2 -0
  137. data/spec/helpers/cli_helper.rb +2 -0
  138. data/spec/helpers/connection_helper.rb +14 -1
  139. data/spec/helpers/project_helper.rb +16 -0
  140. data/spec/helpers/schema_helper.rb +16 -0
  141. data/spec/integration/command_projects_spec.rb +7 -7
  142. data/spec/integration/create_from_template_spec.rb +2 -2
  143. data/spec/integration/full_project_spec.rb +160 -7
  144. data/spec/integration/partial_md_export_import_spec.rb +3 -3
  145. data/spec/logging_in_logging_out_spec.rb +2 -1
  146. data/spec/spec_helper.rb +26 -4
  147. data/spec/unit/bricks/bricks_spec.rb +15 -7
  148. data/spec/unit/bricks/middleware/bench_middleware_spec.rb +2 -0
  149. data/spec/unit/bricks/middleware/bulk_salesforce_middleware_spec.rb +2 -0
  150. data/spec/unit/bricks/middleware/gooddata_middleware_spec.rb +2 -0
  151. data/spec/unit/bricks/middleware/logger_middleware_spec.rb +2 -0
  152. data/spec/unit/bricks/middleware/restforce_middleware_spec.rb +2 -0
  153. data/spec/unit/bricks/middleware/stdout_middleware_spec.rb +2 -0
  154. data/spec/unit/bricks/middleware/twitter_middleware_spec.rb +2 -0
  155. data/spec/unit/cli/cli_spec.rb +2 -0
  156. data/spec/unit/cli/commands/cmd_api_spec.rb +23 -15
  157. data/spec/unit/cli/commands/cmd_auth_spec.rb +8 -4
  158. data/spec/unit/cli/commands/cmd_domain_spec.rb +82 -0
  159. data/spec/unit/cli/commands/cmd_process_spec.rb +29 -13
  160. data/spec/unit/cli/commands/cmd_project_spec.rb +51 -30
  161. data/spec/unit/cli/commands/cmd_role_spec.rb +44 -0
  162. data/spec/unit/cli/commands/cmd_run_ruby_spec.rb +8 -4
  163. data/spec/unit/cli/commands/cmd_scaffold_spec.rb +48 -11
  164. data/spec/unit/cli/commands/cmd_user_spec.rb +29 -0
  165. data/spec/unit/commands/command_api_spec.rb +1 -1
  166. data/spec/unit/commands/command_auth_spec.rb +100 -18
  167. data/spec/unit/commands/command_dataset_spec.rb +4 -0
  168. data/spec/unit/commands/command_process_spec.rb +9 -4
  169. data/spec/unit/commands/command_projects_spec.rb +10 -6
  170. data/spec/unit/commands/command_scaffold_spec.rb +5 -1
  171. data/spec/unit/commands/command_user_spec.rb +22 -0
  172. data/spec/unit/core/connection_spec.rb +35 -6
  173. data/spec/unit/core/logging_spec.rb +65 -0
  174. data/spec/unit/core/nil_logger_spec.rb +9 -0
  175. data/spec/unit/core/project_spec.rb +51 -0
  176. data/spec/unit/core/rest_spec.rb +33 -0
  177. data/spec/unit/data/guesser_spec.rb +5 -0
  178. data/spec/unit/godzilla/goodzilla_spec.rb +2 -0
  179. data/spec/unit/models/account_settings_spec.rb +28 -0
  180. data/spec/unit/models/anchor_spec.rb +32 -0
  181. data/spec/unit/models/attribute_column_spec.rb +7 -0
  182. data/spec/unit/models/domain_spec.rb +45 -0
  183. data/spec/unit/models/invitation_spec.rb +13 -0
  184. data/spec/unit/models/md_object_spec.rb +47 -0
  185. data/spec/unit/models/metric.rb +92 -0
  186. data/spec/unit/{model → models}/model_spec.rb +9 -7
  187. data/spec/unit/models/project_blueprint_spec.rb +202 -0
  188. data/spec/unit/models/project_creator.rb +73 -0
  189. data/spec/unit/models/project_role_spec.rb +90 -0
  190. data/spec/unit/models/project_spec.rb +143 -0
  191. data/spec/unit/models/schedule_spec.rb +491 -0
  192. data/spec/unit/{model → models}/schema_builder_spec.rb +2 -0
  193. data/spec/unit/{model → models}/tools_spec.rb +13 -7
  194. data/spec/unit/models/user_spec.rb +16 -0
  195. data/test/test_upload.rb +2 -0
  196. metadata +189 -86
  197. data/lib/gooddata/commands/profile.rb +0 -11
  198. data/lib/gooddata/models/attribute.rb +0 -29
  199. data/lib/gooddata/models/display_form.rb +0 -9
  200. data/lib/gooddata/models/fact.rb +0 -19
  201. data/lib/gooddata/models/metric.rb +0 -99
  202. data/lib/gooddata/models/report.rb +0 -89
  203. data/spec/data/blueprint_valid.json +0 -37
  204. data/spec/unit/cli/commands/cmd_profile_spec.rb +0 -16
  205. data/spec/unit/commands/command_profile_spec.rb +0 -18
  206. data/spec/unit/core/core_spec.rb +0 -7
  207. data/spec/unit/model/blueprint_spec.rb +0 -132
  208. data/spec/unit/model/project_blueprint_spec.rb +0 -44
@@ -1,3 +1,5 @@
1
+ # encoding: UTF-8
2
+
1
3
  require 'pry'
2
4
  require 'gooddata/models/model'
3
5
 
@@ -11,21 +11,27 @@ describe GoodData::Model do
11
11
  {:type =>:date, :name =>'event', 'title' => 'Event', 'folder' => 'test'},
12
12
  {:type =>:fact, :name =>'f1', 'title' => 'F1', 'folder' => 'test'},
13
13
  {:type =>:fact, :name =>'f2', 'title' => 'F2', 'folder' => 'test'},
14
- ]
15
- SCHEMA = GoodData::Model::Schema.new :name => 'test', :title => 'test', :columns => COLUMNS
14
+ ] unless const_defined?(:COLUMNS)
15
+
16
+ SCHEMA = GoodData::Model::Schema.new :name => 'test', :title => 'test', :columns => COLUMNS unless const_defined?(:SCHEMA)
16
17
 
17
18
  before(:all) do
18
19
  GoodData::connect
19
20
  end
20
21
 
22
+ after(:all) do
23
+ GoodData.disconnect
24
+ end
25
+
21
26
  it 'generate identifiers starting with letters and without ugly characters' do
22
27
  pending "We need o figure out what is the right way to do it"
28
+
23
29
  expect = 'fact.test.blah'
24
- result = GoodData::Model::Fact.new({:name =>'blah'}, SCHEMA).identifier
30
+ result = GoodData::Model::Fact.new({:name =>'blah'}, SchemaHelper::SCHEMA).identifier
25
31
  result.should == expect
26
32
 
27
33
  expect = 'attr.test.blah'
28
- result = GoodData::Model::Attribute.new({:name =>'1_2_3 blah'}, SCHEMA).identifier
34
+ result = GoodData::Model::Attribute.new({:name =>'1_2_3 blah'}, SchemaHelper::SCHEMA).identifier
29
35
  result.should == expect
30
36
 
31
37
  expect = 'dim.blaz'
@@ -37,7 +43,7 @@ describe GoodData::Model do
37
43
  pending "Throws 400 - Bad request now"
38
44
 
39
45
  project = GoodData::Project.create :title => "gooddata-ruby test #{Time.new.to_i}"
40
- objects = project.add_dataset 'Mrkev', COLUMNS
46
+ objects = project.add_dataset 'Mrkev', SchemaHelper::COLUMNS
41
47
 
42
48
  uris = objects['uris']
43
49
  uris[0].should == "#{project.md['obj']}/1"
@@ -51,7 +57,7 @@ describe GoodData::Model do
51
57
 
52
58
  project = GoodData::Project.create :title => "gooddata-ruby test #{Time.new.to_i}"
53
59
  GoodData.use project
54
- objects = GoodData::Model.add_dataset 'Mrkev', COLUMNS
60
+ objects = GoodData::Model.add_dataset 'Mrkev', SchemaHelper::COLUMNS
55
61
 
56
62
  uris = objects['uris']
57
63
  uris[0].should == "#{project.md['obj']}/1"
@@ -74,7 +80,7 @@ describe GoodData::Model do
74
80
  GoodData.use project
75
81
 
76
82
  # create a similar data set but without the connection point column
77
- cols_no_cp = COLUMNS.select { |c| c['type'] != 'CONNECTION_POINT' }
83
+ cols_no_cp = SchemaHelper::COLUMNS.select { |c| c['type'] != 'CONNECTION_POINT' }
78
84
  objects = GoodData::Model.add_dataset 'No CP', cols_no_cp
79
85
  uris = objects['uris']
80
86
 
@@ -0,0 +1,16 @@
1
+ # encoding: UTF-8
2
+
3
+ require 'gooddata/models/domain'
4
+ require 'gooddata/models/user'
5
+ require 'gooddata/models/project_role'
6
+
7
+ describe GoodData::User do
8
+ before(:all) do
9
+ ConnectionHelper.create_default_connection
10
+ @user = GoodData::Domain.find_user_by_login(ConnectionHelper::DEFAULT_DOMAIN, ConnectionHelper::DEFAULT_USERNAME)
11
+ end
12
+
13
+ after(:all) do
14
+ GoodData.disconnect
15
+ end
16
+ end
@@ -1,3 +1,5 @@
1
+ # encoding: UTF-8
2
+
1
3
  require 'logger'
2
4
  require 'tempfile'
3
5
 
metadata CHANGED
@@ -1,11 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gooddata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kolesnikov
8
8
  - Thomas Watson Steen
9
+ - Tomas Svarovsky
10
+ - Tomas Korcak
9
11
  autorequire:
10
12
  bindir: bin
11
13
  cert_chain: []
@@ -15,322 +17,350 @@ dependencies:
15
17
  name: rake
16
18
  requirement: !ruby/object:Gem::Requirement
17
19
  requirements:
18
- - - "~>"
20
+ - - ~>
19
21
  - !ruby/object:Gem::Version
20
- version: 10.2.2
22
+ version: 10.3.1
21
23
  type: :development
22
24
  prerelease: false
23
25
  version_requirements: !ruby/object:Gem::Requirement
24
26
  requirements:
25
- - - "~>"
27
+ - - ~>
26
28
  - !ruby/object:Gem::Version
27
- version: 10.2.2
29
+ version: 10.3.1
30
+ - !ruby/object:Gem::Dependency
31
+ name: rake-notes
32
+ requirement: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ~>
35
+ - !ruby/object:Gem::Version
36
+ version: 0.2.0
37
+ type: :development
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: 0.2.0
28
44
  - !ruby/object:Gem::Dependency
29
45
  name: redcarpet
30
46
  requirement: !ruby/object:Gem::Requirement
31
47
  requirements:
32
- - - "~>"
48
+ - - ~>
33
49
  - !ruby/object:Gem::Version
34
50
  version: 3.1.1
35
51
  type: :development
36
52
  prerelease: false
37
53
  version_requirements: !ruby/object:Gem::Requirement
38
54
  requirements:
39
- - - "~>"
55
+ - - ~>
40
56
  - !ruby/object:Gem::Version
41
57
  version: 3.1.1
42
58
  - !ruby/object:Gem::Dependency
43
59
  name: rspec
44
60
  requirement: !ruby/object:Gem::Requirement
45
61
  requirements:
46
- - - "~>"
62
+ - - ~>
47
63
  - !ruby/object:Gem::Version
48
64
  version: 2.14.1
49
65
  type: :development
50
66
  prerelease: false
51
67
  version_requirements: !ruby/object:Gem::Requirement
52
68
  requirements:
53
- - - "~>"
69
+ - - ~>
54
70
  - !ruby/object:Gem::Version
55
71
  version: 2.14.1
56
72
  - !ruby/object:Gem::Dependency
57
73
  name: rubocop
58
74
  requirement: !ruby/object:Gem::Requirement
59
75
  requirements:
60
- - - "~>"
76
+ - - ~>
61
77
  - !ruby/object:Gem::Version
62
- version: 0.20.0
78
+ version: 0.20.1
63
79
  type: :development
64
80
  prerelease: false
65
81
  version_requirements: !ruby/object:Gem::Requirement
66
82
  requirements:
67
- - - "~>"
83
+ - - ~>
68
84
  - !ruby/object:Gem::Version
69
- version: 0.20.0
85
+ version: 0.20.1
70
86
  - !ruby/object:Gem::Dependency
71
87
  name: simplecov
72
88
  requirement: !ruby/object:Gem::Requirement
73
89
  requirements:
74
- - - "~>"
90
+ - - ~>
75
91
  - !ruby/object:Gem::Version
76
92
  version: 0.8.2
77
93
  type: :development
78
94
  prerelease: false
79
95
  version_requirements: !ruby/object:Gem::Requirement
80
96
  requirements:
81
- - - "~>"
97
+ - - ~>
82
98
  - !ruby/object:Gem::Version
83
99
  version: 0.8.2
84
100
  - !ruby/object:Gem::Dependency
85
101
  name: yard
86
102
  requirement: !ruby/object:Gem::Requirement
87
103
  requirements:
88
- - - "~>"
104
+ - - ~>
89
105
  - !ruby/object:Gem::Version
90
106
  version: 0.8.7.3
91
107
  type: :development
92
108
  prerelease: false
93
109
  version_requirements: !ruby/object:Gem::Requirement
94
110
  requirements:
95
- - - "~>"
111
+ - - ~>
96
112
  - !ruby/object:Gem::Version
97
113
  version: 0.8.7.3
98
114
  - !ruby/object:Gem::Dependency
99
115
  name: yard-rspec
100
116
  requirement: !ruby/object:Gem::Requirement
101
117
  requirements:
102
- - - "~>"
118
+ - - ~>
103
119
  - !ruby/object:Gem::Version
104
120
  version: '0.1'
105
121
  type: :development
106
122
  prerelease: false
107
123
  version_requirements: !ruby/object:Gem::Requirement
108
124
  requirements:
109
- - - "~>"
125
+ - - ~>
110
126
  - !ruby/object:Gem::Version
111
127
  version: '0.1'
112
128
  - !ruby/object:Gem::Dependency
113
129
  name: ZenTest
114
130
  requirement: !ruby/object:Gem::Requirement
115
131
  requirements:
116
- - - "~>"
132
+ - - ~>
117
133
  - !ruby/object:Gem::Version
118
- version: 4.9.5
134
+ version: 4.10.0
119
135
  type: :development
120
136
  prerelease: false
121
137
  version_requirements: !ruby/object:Gem::Requirement
122
138
  requirements:
123
- - - "~>"
139
+ - - ~>
124
140
  - !ruby/object:Gem::Version
125
- version: 4.9.5
141
+ version: 4.10.0
126
142
  - !ruby/object:Gem::Dependency
127
143
  name: coveralls
128
144
  requirement: !ruby/object:Gem::Requirement
129
145
  requirements:
130
- - - "~>"
146
+ - - ~>
131
147
  - !ruby/object:Gem::Version
132
148
  version: 0.7.0
133
149
  type: :development
134
150
  prerelease: false
135
151
  version_requirements: !ruby/object:Gem::Requirement
136
152
  requirements:
137
- - - "~>"
153
+ - - ~>
138
154
  - !ruby/object:Gem::Version
139
155
  version: 0.7.0
140
156
  - !ruby/object:Gem::Dependency
141
157
  name: activesupport
142
158
  requirement: !ruby/object:Gem::Requirement
143
159
  requirements:
144
- - - "~>"
160
+ - - ~>
145
161
  - !ruby/object:Gem::Version
146
- version: 4.0.3
162
+ version: 4.1.0
147
163
  type: :runtime
148
164
  prerelease: false
149
165
  version_requirements: !ruby/object:Gem::Requirement
150
166
  requirements:
151
- - - "~>"
167
+ - - ~>
152
168
  - !ruby/object:Gem::Version
153
- version: 4.0.3
169
+ version: 4.1.0
154
170
  - !ruby/object:Gem::Dependency
155
171
  name: bundler
156
172
  requirement: !ruby/object:Gem::Requirement
157
173
  requirements:
158
- - - ">="
174
+ - - ! '>='
159
175
  - !ruby/object:Gem::Version
160
176
  version: 1.6.1
161
177
  type: :runtime
162
178
  prerelease: false
163
179
  version_requirements: !ruby/object:Gem::Requirement
164
180
  requirements:
165
- - - ">="
181
+ - - ! '>='
166
182
  - !ruby/object:Gem::Version
167
183
  version: 1.6.1
184
+ - !ruby/object:Gem::Dependency
185
+ name: docile
186
+ requirement: !ruby/object:Gem::Requirement
187
+ requirements:
188
+ - - ~>
189
+ - !ruby/object:Gem::Version
190
+ version: 1.1.3
191
+ type: :runtime
192
+ prerelease: false
193
+ version_requirements: !ruby/object:Gem::Requirement
194
+ requirements:
195
+ - - ~>
196
+ - !ruby/object:Gem::Version
197
+ version: 1.1.3
168
198
  - !ruby/object:Gem::Dependency
169
199
  name: erubis
170
200
  requirement: !ruby/object:Gem::Requirement
171
201
  requirements:
172
- - - "~>"
202
+ - - ~>
173
203
  - !ruby/object:Gem::Version
174
204
  version: 2.7.0
175
205
  type: :runtime
176
206
  prerelease: false
177
207
  version_requirements: !ruby/object:Gem::Requirement
178
208
  requirements:
179
- - - "~>"
209
+ - - ~>
180
210
  - !ruby/object:Gem::Version
181
211
  version: 2.7.0
182
212
  - !ruby/object:Gem::Dependency
183
213
  name: gli
184
214
  requirement: !ruby/object:Gem::Requirement
185
215
  requirements:
186
- - - "~>"
216
+ - - ~>
187
217
  - !ruby/object:Gem::Version
188
- version: 2.9.0
218
+ version: 2.10.0
189
219
  type: :runtime
190
220
  prerelease: false
191
221
  version_requirements: !ruby/object:Gem::Requirement
192
222
  requirements:
193
- - - "~>"
223
+ - - ~>
194
224
  - !ruby/object:Gem::Version
195
- version: 2.9.0
225
+ version: 2.10.0
196
226
  - !ruby/object:Gem::Dependency
197
227
  name: highline
198
228
  requirement: !ruby/object:Gem::Requirement
199
229
  requirements:
200
- - - "~>"
230
+ - - ~>
201
231
  - !ruby/object:Gem::Version
202
232
  version: 1.6.21
203
233
  type: :runtime
204
234
  prerelease: false
205
235
  version_requirements: !ruby/object:Gem::Requirement
206
236
  requirements:
207
- - - "~>"
237
+ - - ~>
208
238
  - !ruby/object:Gem::Version
209
239
  version: 1.6.21
210
240
  - !ruby/object:Gem::Dependency
211
241
  name: i18n
212
242
  requirement: !ruby/object:Gem::Requirement
213
243
  requirements:
214
- - - "~>"
244
+ - - ~>
215
245
  - !ruby/object:Gem::Version
216
246
  version: 0.6.9
217
247
  type: :runtime
218
248
  prerelease: false
219
249
  version_requirements: !ruby/object:Gem::Requirement
220
250
  requirements:
221
- - - "~>"
251
+ - - ~>
222
252
  - !ruby/object:Gem::Version
223
253
  version: 0.6.9
224
254
  - !ruby/object:Gem::Dependency
225
255
  name: json_pure
226
256
  requirement: !ruby/object:Gem::Requirement
227
257
  requirements:
228
- - - "~>"
258
+ - - ~>
229
259
  - !ruby/object:Gem::Version
230
260
  version: 1.8.1
231
261
  type: :runtime
232
262
  prerelease: false
233
263
  version_requirements: !ruby/object:Gem::Requirement
234
264
  requirements:
235
- - - "~>"
265
+ - - ~>
236
266
  - !ruby/object:Gem::Version
237
267
  version: 1.8.1
238
268
  - !ruby/object:Gem::Dependency
239
269
  name: multi_json
240
270
  requirement: !ruby/object:Gem::Requirement
241
271
  requirements:
242
- - - "~>"
272
+ - - ~>
243
273
  - !ruby/object:Gem::Version
244
- version: 1.9.0
274
+ version: 1.10.0
245
275
  type: :runtime
246
276
  prerelease: false
247
277
  version_requirements: !ruby/object:Gem::Requirement
248
278
  requirements:
249
- - - "~>"
279
+ - - ~>
250
280
  - !ruby/object:Gem::Version
251
- version: 1.9.0
281
+ version: 1.10.0
252
282
  - !ruby/object:Gem::Dependency
253
283
  name: parseconfig
254
284
  requirement: !ruby/object:Gem::Requirement
255
285
  requirements:
256
- - - "~>"
286
+ - - ~>
257
287
  - !ruby/object:Gem::Version
258
288
  version: 1.0.4
259
289
  type: :runtime
260
290
  prerelease: false
261
291
  version_requirements: !ruby/object:Gem::Requirement
262
292
  requirements:
263
- - - "~>"
293
+ - - ~>
264
294
  - !ruby/object:Gem::Version
265
295
  version: 1.0.4
266
296
  - !ruby/object:Gem::Dependency
267
297
  name: pry
268
298
  requirement: !ruby/object:Gem::Requirement
269
299
  requirements:
270
- - - "~>"
300
+ - - ~>
271
301
  - !ruby/object:Gem::Version
272
302
  version: 0.9.12.6
273
303
  type: :runtime
274
304
  prerelease: false
275
305
  version_requirements: !ruby/object:Gem::Requirement
276
306
  requirements:
277
- - - "~>"
307
+ - - ~>
278
308
  - !ruby/object:Gem::Version
279
309
  version: 0.9.12.6
280
310
  - !ruby/object:Gem::Dependency
281
311
  name: restforce
282
312
  requirement: !ruby/object:Gem::Requirement
283
313
  requirements:
284
- - - "~>"
314
+ - - ~>
285
315
  - !ruby/object:Gem::Version
286
316
  version: 1.4.3
287
317
  type: :runtime
288
318
  prerelease: false
289
319
  version_requirements: !ruby/object:Gem::Requirement
290
320
  requirements:
291
- - - "~>"
321
+ - - ~>
292
322
  - !ruby/object:Gem::Version
293
323
  version: 1.4.3
294
324
  - !ruby/object:Gem::Dependency
295
325
  name: rest-client
296
326
  requirement: !ruby/object:Gem::Requirement
297
327
  requirements:
298
- - - "~>"
328
+ - - ~>
299
329
  - !ruby/object:Gem::Version
300
330
  version: 1.6.7
301
331
  type: :runtime
302
332
  prerelease: false
303
333
  version_requirements: !ruby/object:Gem::Requirement
304
334
  requirements:
305
- - - "~>"
335
+ - - ~>
306
336
  - !ruby/object:Gem::Version
307
337
  version: 1.6.7
308
338
  - !ruby/object:Gem::Dependency
309
339
  name: rubyzip
310
340
  requirement: !ruby/object:Gem::Requirement
311
341
  requirements:
312
- - - "~>"
342
+ - - ~>
313
343
  - !ruby/object:Gem::Version
314
344
  version: 1.1.0
315
345
  type: :runtime
316
346
  prerelease: false
317
347
  version_requirements: !ruby/object:Gem::Requirement
318
348
  requirements:
319
- - - "~>"
349
+ - - ~>
320
350
  - !ruby/object:Gem::Version
321
351
  version: 1.1.0
322
352
  - !ruby/object:Gem::Dependency
323
353
  name: salesforce_bulk
324
354
  requirement: !ruby/object:Gem::Requirement
325
355
  requirements:
326
- - - "~>"
356
+ - - ~>
327
357
  - !ruby/object:Gem::Version
328
358
  version: 1.0.3
329
359
  type: :runtime
330
360
  prerelease: false
331
361
  version_requirements: !ruby/object:Gem::Requirement
332
362
  requirements:
333
- - - "~>"
363
+ - - ~>
334
364
  - !ruby/object:Gem::Version
335
365
  version: 1.0.3
336
366
  description: Use the GoodData::Client class to integrate GoodData into your own application
@@ -343,12 +373,14 @@ extra_rdoc_files:
343
373
  - LICENSE
344
374
  - README.md
345
375
  files:
346
- - ".autotest"
347
- - ".document"
348
- - ".gitignore"
349
- - ".rspec"
350
- - ".travis.yml"
351
- - ".yardopts"
376
+ - .autotest
377
+ - .document
378
+ - .gitignore
379
+ - .rspec
380
+ - .rubocop.yml
381
+ - .travis.yml
382
+ - .yardopts
383
+ - CLI.md
352
384
  - Gemfile
353
385
  - LICENSE
354
386
  - README.md
@@ -434,16 +466,20 @@ files:
434
466
  - lib/gooddata/bricks/middleware/restforce_middleware.rb
435
467
  - lib/gooddata/bricks/middleware/stdout_middleware.rb
436
468
  - lib/gooddata/bricks/middleware/twitter_middleware.rb
469
+ - lib/gooddata/bricks/pipeline.rb
437
470
  - lib/gooddata/bricks/utils.rb
438
471
  - lib/gooddata/cli/cli.rb
439
472
  - lib/gooddata/cli/commands/api_cmd.rb
440
473
  - lib/gooddata/cli/commands/auth_cmd.rb
441
474
  - lib/gooddata/cli/commands/console_cmd.rb
475
+ - lib/gooddata/cli/commands/domain_cmd.rb
442
476
  - lib/gooddata/cli/commands/process_cmd.rb
443
- - lib/gooddata/cli/commands/profile_cmd.rb
444
477
  - lib/gooddata/cli/commands/project_cmd.rb
478
+ - lib/gooddata/cli/commands/projects_cmd.rb
479
+ - lib/gooddata/cli/commands/role_cmd.rb
445
480
  - lib/gooddata/cli/commands/run_ruby_cmd.rb
446
481
  - lib/gooddata/cli/commands/scaffold_cmd.rb
482
+ - lib/gooddata/cli/commands/user_cmd.rb
447
483
  - lib/gooddata/cli/hooks.rb
448
484
  - lib/gooddata/cli/shared.rb
449
485
  - lib/gooddata/cli/terminal.rb
@@ -453,41 +489,90 @@ files:
453
489
  - lib/gooddata/commands/base.rb
454
490
  - lib/gooddata/commands/commands.rb
455
491
  - lib/gooddata/commands/datasets.rb
492
+ - lib/gooddata/commands/domain.rb
456
493
  - lib/gooddata/commands/process.rb
457
- - lib/gooddata/commands/profile.rb
494
+ - lib/gooddata/commands/project.rb
458
495
  - lib/gooddata/commands/projects.rb
496
+ - lib/gooddata/commands/role.rb
459
497
  - lib/gooddata/commands/runners.rb
460
498
  - lib/gooddata/commands/scaffold.rb
499
+ - lib/gooddata/commands/user.rb
461
500
  - lib/gooddata/connection.rb
501
+ - lib/gooddata/core/connection.rb
462
502
  - lib/gooddata/core/core.rb
503
+ - lib/gooddata/core/logging.rb
504
+ - lib/gooddata/core/nil_logger.rb
505
+ - lib/gooddata/core/project.rb
506
+ - lib/gooddata/core/rest.rb
507
+ - lib/gooddata/core/threaded.rb
508
+ - lib/gooddata/core/user.rb
463
509
  - lib/gooddata/data/data.rb
464
510
  - lib/gooddata/data/guesser.rb
465
511
  - lib/gooddata/exceptions/command_failed.rb
466
512
  - lib/gooddata/exceptions/exceptions.rb
513
+ - lib/gooddata/exceptions/no_project_error.rb
467
514
  - lib/gooddata/exceptions/project_not_found.rb
468
515
  - lib/gooddata/extensions/big_decimal.rb
469
516
  - lib/gooddata/extract.rb
470
517
  - lib/gooddata/goodzilla/goodzilla.rb
471
518
  - lib/gooddata/helpers.rb
472
- - lib/gooddata/models/attribute.rb
473
- - lib/gooddata/models/dashboard.rb
519
+ - lib/gooddata/models/account_settings.rb
520
+ - lib/gooddata/models/attributes/anchor.rb
521
+ - lib/gooddata/models/attributes/attributes.rb
522
+ - lib/gooddata/models/attributes/date_attribute.rb
523
+ - lib/gooddata/models/attributes/time_attribute.rb
524
+ - lib/gooddata/models/columns/attribute.rb
525
+ - lib/gooddata/models/columns/columns.rb
526
+ - lib/gooddata/models/columns/date_column.rb
527
+ - lib/gooddata/models/columns/fact_model.rb
528
+ - lib/gooddata/models/columns/label.rb
529
+ - lib/gooddata/models/columns/reference.rb
530
+ - lib/gooddata/models/dashboard_builder.rb
474
531
  - lib/gooddata/models/data_result.rb
475
- - lib/gooddata/models/data_set.rb
476
- - lib/gooddata/models/display_form.rb
532
+ - lib/gooddata/models/domain.rb
477
533
  - lib/gooddata/models/empty_result.rb
478
- - lib/gooddata/models/fact.rb
534
+ - lib/gooddata/models/facts/facts.rb
535
+ - lib/gooddata/models/facts/time_fact.rb
536
+ - lib/gooddata/models/folders/attribute_folder.rb
537
+ - lib/gooddata/models/folders/fact_folder.rb
538
+ - lib/gooddata/models/folders/folders.rb
539
+ - lib/gooddata/models/invitation.rb
479
540
  - lib/gooddata/models/links.rb
541
+ - lib/gooddata/models/md_object.rb
480
542
  - lib/gooddata/models/metadata.rb
481
- - lib/gooddata/models/metric.rb
543
+ - lib/gooddata/models/metadata/attribute.rb
544
+ - lib/gooddata/models/metadata/column.rb
545
+ - lib/gooddata/models/metadata/dashboard.rb
546
+ - lib/gooddata/models/metadata/data_set.rb
547
+ - lib/gooddata/models/metadata/date_dimension.rb
548
+ - lib/gooddata/models/metadata/display_form.rb
549
+ - lib/gooddata/models/metadata/fact.rb
550
+ - lib/gooddata/models/metadata/folder.rb
551
+ - lib/gooddata/models/metadata/metadata.rb
552
+ - lib/gooddata/models/metadata/metric.rb
553
+ - lib/gooddata/models/metadata/report.rb
554
+ - lib/gooddata/models/metadata/report_definition.rb
555
+ - lib/gooddata/models/metadata/schema.rb
482
556
  - lib/gooddata/models/model.rb
483
557
  - lib/gooddata/models/models.rb
558
+ - lib/gooddata/models/module_constants.rb
484
559
  - lib/gooddata/models/process.rb
485
560
  - lib/gooddata/models/profile.rb
486
561
  - lib/gooddata/models/project.rb
562
+ - lib/gooddata/models/project_blueprint.rb
563
+ - lib/gooddata/models/project_builder.rb
564
+ - lib/gooddata/models/project_creator.rb
487
565
  - lib/gooddata/models/project_metadata.rb
488
- - lib/gooddata/models/report.rb
566
+ - lib/gooddata/models/project_role.rb
567
+ - lib/gooddata/models/references/date_reference.rb
568
+ - lib/gooddata/models/references/references.rb
569
+ - lib/gooddata/models/references/time_reference.rb
489
570
  - lib/gooddata/models/report_data_result.rb
490
- - lib/gooddata/models/report_definition.rb
571
+ - lib/gooddata/models/schedule.rb
572
+ - lib/gooddata/models/schema_blueprint.rb
573
+ - lib/gooddata/models/schema_builder.rb
574
+ - lib/gooddata/models/tab_builder.rb
575
+ - lib/gooddata/models/user.rb
491
576
  - lib/gooddata/version.rb
492
577
  - lib/templates/bricks/brick.rb.erb
493
578
  - lib/templates/bricks/main.rb.erb
@@ -500,12 +585,14 @@ files:
500
585
  - spec/data/.gooddata
501
586
  - spec/data/additional_dataset_module.json
502
587
  - spec/data/blueprint_invalid.json
503
- - spec/data/blueprint_valid.json
504
588
  - spec/data/model_module.json
589
+ - spec/data/test-ci-data.csv
505
590
  - spec/data/test_project_model_spec.json
506
591
  - spec/helpers/blueprint_helper.rb
507
592
  - spec/helpers/cli_helper.rb
508
593
  - spec/helpers/connection_helper.rb
594
+ - spec/helpers/project_helper.rb
595
+ - spec/helpers/schema_helper.rb
509
596
  - spec/integration/command_projects_spec.rb
510
597
  - spec/integration/create_from_template_spec.rb
511
598
  - spec/integration/full_project_spec.rb
@@ -523,28 +610,44 @@ files:
523
610
  - spec/unit/cli/cli_spec.rb
524
611
  - spec/unit/cli/commands/cmd_api_spec.rb
525
612
  - spec/unit/cli/commands/cmd_auth_spec.rb
613
+ - spec/unit/cli/commands/cmd_domain_spec.rb
526
614
  - spec/unit/cli/commands/cmd_process_spec.rb
527
- - spec/unit/cli/commands/cmd_profile_spec.rb
528
615
  - spec/unit/cli/commands/cmd_project_spec.rb
616
+ - spec/unit/cli/commands/cmd_role_spec.rb
529
617
  - spec/unit/cli/commands/cmd_run_ruby_spec.rb
530
618
  - spec/unit/cli/commands/cmd_scaffold_spec.rb
619
+ - spec/unit/cli/commands/cmd_user_spec.rb
531
620
  - spec/unit/commands/command_api_spec.rb
532
621
  - spec/unit/commands/command_auth_spec.rb
533
622
  - spec/unit/commands/command_dataset_spec.rb
534
623
  - spec/unit/commands/command_process_spec.rb
535
- - spec/unit/commands/command_profile_spec.rb
536
624
  - spec/unit/commands/command_projects_spec.rb
537
625
  - spec/unit/commands/command_scaffold_spec.rb
626
+ - spec/unit/commands/command_user_spec.rb
538
627
  - spec/unit/core/connection_spec.rb
539
- - spec/unit/core/core_spec.rb
628
+ - spec/unit/core/logging_spec.rb
629
+ - spec/unit/core/nil_logger_spec.rb
630
+ - spec/unit/core/project_spec.rb
631
+ - spec/unit/core/rest_spec.rb
540
632
  - spec/unit/data/guesser_spec.rb
541
633
  - spec/unit/godzilla/goodzilla_spec.rb
542
634
  - spec/unit/helpers_spec.rb
543
- - spec/unit/model/blueprint_spec.rb
544
- - spec/unit/model/model_spec.rb
545
- - spec/unit/model/project_blueprint_spec.rb
546
- - spec/unit/model/schema_builder_spec.rb
547
- - spec/unit/model/tools_spec.rb
635
+ - spec/unit/models/account_settings_spec.rb
636
+ - spec/unit/models/anchor_spec.rb
637
+ - spec/unit/models/attribute_column_spec.rb
638
+ - spec/unit/models/domain_spec.rb
639
+ - spec/unit/models/invitation_spec.rb
640
+ - spec/unit/models/md_object_spec.rb
641
+ - spec/unit/models/metric.rb
642
+ - spec/unit/models/model_spec.rb
643
+ - spec/unit/models/project_blueprint_spec.rb
644
+ - spec/unit/models/project_creator.rb
645
+ - spec/unit/models/project_role_spec.rb
646
+ - spec/unit/models/project_spec.rb
647
+ - spec/unit/models/schedule_spec.rb
648
+ - spec/unit/models/schema_builder_spec.rb
649
+ - spec/unit/models/tools_spec.rb
650
+ - spec/unit/models/user_spec.rb
548
651
  - test/test_upload.rb
549
652
  - yard-server.sh
550
653
  homepage: http://github.com/gooddata/gooddata-ruby
@@ -557,12 +660,12 @@ require_paths:
557
660
  - lib
558
661
  required_ruby_version: !ruby/object:Gem::Requirement
559
662
  requirements:
560
- - - ">="
663
+ - - ! '>='
561
664
  - !ruby/object:Gem::Version
562
665
  version: '0'
563
666
  required_rubygems_version: !ruby/object:Gem::Requirement
564
667
  requirements:
565
- - - ">="
668
+ - - ! '>='
566
669
  - !ruby/object:Gem::Version
567
670
  version: '0'
568
671
  requirements: []