gooddata 0.6.0.pre6 → 0.6.0.pre7
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/gooddata +102 -56
- data/gooddata.gemspec +3 -0
- data/lib/gooddata/bricks/base_downloader.rb +62 -0
- data/lib/gooddata/bricks/brick.rb +24 -25
- data/lib/gooddata/bricks/middleware/bulk_salesforce_middleware.rb +38 -0
- data/lib/gooddata/bricks/middleware/gooddata_middleware.rb +4 -2
- data/lib/gooddata/bricks/middleware/restforce_middleware.rb +9 -10
- data/lib/gooddata/client.rb +21 -1
- data/lib/gooddata/commands/auth.rb +68 -60
- data/lib/gooddata/commands/process.rb +75 -62
- data/lib/gooddata/commands/runners.rb +9 -6
- data/lib/gooddata/connection.rb +45 -20
- data/lib/gooddata/helpers.rb +31 -4
- data/lib/gooddata/model.rb +199 -72
- data/lib/gooddata/models/data_result.rb +94 -101
- data/lib/gooddata/models/metadata.rb +31 -9
- data/lib/gooddata/models/metric.rb +1 -1
- data/lib/gooddata/models/process.rb +2 -59
- data/lib/gooddata/models/project.rb +1 -1
- data/lib/gooddata/models/project_metadata.rb +10 -1
- data/lib/gooddata/models/report.rb +0 -3
- data/lib/gooddata/models/report_definition.rb +43 -8
- data/lib/gooddata/version.rb +1 -1
- data/spec/full_project_spec.rb +54 -0
- data/spec/goodzilla_spec.rb +2 -2
- data/spec/model_dsl_spec.rb +2 -1
- data/spec/test_project_model_spec.json +86 -0
- metadata +53 -2
- data/TODO.md +0 -77
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.0.
|
4
|
+
version: 0.6.0.pre7
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -252,6 +252,54 @@ dependencies:
|
|
252
252
|
- - ! '>='
|
253
253
|
- !ruby/object:Gem::Version
|
254
254
|
version: '0'
|
255
|
+
- !ruby/object:Gem::Dependency
|
256
|
+
name: restforce
|
257
|
+
requirement: !ruby/object:Gem::Requirement
|
258
|
+
none: false
|
259
|
+
requirements:
|
260
|
+
- - ! '>='
|
261
|
+
- !ruby/object:Gem::Version
|
262
|
+
version: '0'
|
263
|
+
type: :runtime
|
264
|
+
prerelease: false
|
265
|
+
version_requirements: !ruby/object:Gem::Requirement
|
266
|
+
none: false
|
267
|
+
requirements:
|
268
|
+
- - ! '>='
|
269
|
+
- !ruby/object:Gem::Version
|
270
|
+
version: '0'
|
271
|
+
- !ruby/object:Gem::Dependency
|
272
|
+
name: salesforce_bulk
|
273
|
+
requirement: !ruby/object:Gem::Requirement
|
274
|
+
none: false
|
275
|
+
requirements:
|
276
|
+
- - ! '>='
|
277
|
+
- !ruby/object:Gem::Version
|
278
|
+
version: '0'
|
279
|
+
type: :runtime
|
280
|
+
prerelease: false
|
281
|
+
version_requirements: !ruby/object:Gem::Requirement
|
282
|
+
none: false
|
283
|
+
requirements:
|
284
|
+
- - ! '>='
|
285
|
+
- !ruby/object:Gem::Version
|
286
|
+
version: '0'
|
287
|
+
- !ruby/object:Gem::Dependency
|
288
|
+
name: twitter
|
289
|
+
requirement: !ruby/object:Gem::Requirement
|
290
|
+
none: false
|
291
|
+
requirements:
|
292
|
+
- - ! '>='
|
293
|
+
- !ruby/object:Gem::Version
|
294
|
+
version: '0'
|
295
|
+
type: :runtime
|
296
|
+
prerelease: false
|
297
|
+
version_requirements: !ruby/object:Gem::Requirement
|
298
|
+
none: false
|
299
|
+
requirements:
|
300
|
+
- - ! '>='
|
301
|
+
- !ruby/object:Gem::Version
|
302
|
+
version: '0'
|
255
303
|
description: Use the GoodData::Client class to integrate GoodData into your own application
|
256
304
|
or use the CLI to work with GoodData directly from the command line.
|
257
305
|
email: pavel@gooddata.com
|
@@ -267,13 +315,14 @@ files:
|
|
267
315
|
- LICENSE
|
268
316
|
- README.rdoc
|
269
317
|
- Rakefile
|
270
|
-
- TODO.md
|
271
318
|
- bin/gooddata
|
272
319
|
- examples.rb
|
273
320
|
- gooddata.gemspec
|
274
321
|
- lib/gooddata.rb
|
322
|
+
- lib/gooddata/bricks/base_downloader.rb
|
275
323
|
- lib/gooddata/bricks/brick.rb
|
276
324
|
- lib/gooddata/bricks/middleware/bench_middleware.rb
|
325
|
+
- lib/gooddata/bricks/middleware/bulk_salesforce_middleware.rb
|
277
326
|
- lib/gooddata/bricks/middleware/gooddata_middleware.rb
|
278
327
|
- lib/gooddata/bricks/middleware/logger_middleware.rb
|
279
328
|
- lib/gooddata/bricks/middleware/middleware.rb
|
@@ -314,8 +363,10 @@ files:
|
|
314
363
|
- lib/gooddata/version.rb
|
315
364
|
- lib/templates/bricks/brick.rb.erb
|
316
365
|
- lib/templates/bricks/main.rb.erb
|
366
|
+
- spec/full_project_spec.rb
|
317
367
|
- spec/goodzilla_spec.rb
|
318
368
|
- spec/model_dsl_spec.rb
|
369
|
+
- spec/test_project_model_spec.json
|
319
370
|
- test/test_commands.rb
|
320
371
|
- test/test_guessing.rb
|
321
372
|
- test/test_model.rb
|
data/TODO.md
DELETED
@@ -1,77 +0,0 @@
|
|
1
|
-
# Caution: This file does not describe current status... YET<br>
|
2
|
-
|
3
|
-
The following examples of shell commands illustrate the desired use of the `gooddata` binary to be provided by this gem.<br>
|
4
|
-
|
5
|
-
This file is intended to be renamed to `README.md` in the future.<br>
|
6
|
-
|
7
|
-
$ **mkdir MyDataProject**<br>
|
8
|
-
$ **cd MyDataProject/**<br>
|
9
|
-
|
10
|
-
$ **gooddata configure-csv 'My Data Set' \--file=/tmp/mydataset.csv**<br>
|
11
|
-
_Setting up CSV connector to file /tmp/mydataset.csv<br>
|
12
|
-
Guessing data types for mydataset.csv column: <br>
|
13
|
-
id.......... connection point <br>
|
14
|
-
name .... attribute <br>
|
15
|
-
type....... attribute <br>
|
16
|
-
impact.... attribute <br>
|
17
|
-
created... date <br>
|
18
|
-
closed.... date <br>
|
19
|
-
value...... fact <br>
|
20
|
-
Writing guessed columns into model/MyDataSet.xml <br>
|
21
|
-
Done. <br>
|
22
|
-
ATTENTION: Don't forget to review guessed data types and edit the model/MyDataSet.xml when necessary\!_<br>
|
23
|
-
|
24
|
-
$ **vim model/MyDataSet.xml ** <font color="blue"><-\- _Note: would be nice to provide an option to open an editor automatically by the provious command_ </font><br>
|
25
|
-
|
26
|
-
|
27
|
-
$ **gooddata diff**<br>
|
28
|
-
_No remote project associated\!<br>
|
29
|
-
+ MyDataSet.xml<br>
|
30
|
-
\+ id: connection point<br>
|
31
|
-
\+ name: attribute<br>
|
32
|
-
...<br>
|
33
|
-
\+ value: fact_<br>
|
34
|
-
|
35
|
-
$ **gooddata create-remote 'My Data Project'**<br>
|
36
|
-
_Creating remote project<br>
|
37
|
-
Project hash wrtqwtbenhac36thgsdghhhjhjjsdfa stored in model/remote/main.pid<br>
|
38
|
-
Creating data sets:<br>
|
39
|
-
'My Data Set' using model/MyDataSet.xml<br>
|
40
|
-
Populating data sets:<br>
|
41
|
-
'My Data Set' from /tmp/mydataset.csv (incremental)<br>
|
42
|
-
Done._<br>
|
43
|
-
|
44
|
-
$ **gooddata refresh**<br>
|
45
|
-
_Comparing the remote and local data sets.<br>
|
46
|
-
Populating data sets:<br>
|
47
|
-
'My Data Set' from /tmp/mydataset.csv (incremental)_<br>
|
48
|
-
|
49
|
-
$ **gooddata configure-csv 'My Data Set' \--file=/tmp/mydataset_enriched.csv**<br>
|
50
|
-
_'My Data Set' data set exists already, scanning for changes<br>
|
51
|
-
Removed fields<br>
|
52
|
-
impact<br>
|
53
|
-
Guessing data types for new fields:<br>
|
54
|
-
industry... attribute<br>
|
55
|
-
score....... fact<br>
|
56
|
-
Saving original version into model/bk/MyDataSet.xml.1<br>
|
57
|
-
Writing guessed columns into model/MyDataSet.xml<br>
|
58
|
-
Done.<br>
|
59
|
-
ATTENTION: Don't forget to review guessed data types and edit the model/MyDataSet.xml when necessary\!_<br>
|
60
|
-
|
61
|
-
$ **gooddata refresh 'My Data Set'**<br>
|
62
|
-
_Comparing the remote and local data sets.<br>
|
63
|
-
ERROR: We need to alter the structure of the server-side dataset. Consequently, we need to<br>
|
64
|
-
fully reload the data. Since you are updating the 'My Data Set' data set in the incremental mode,<br>
|
65
|
-
please use the \--full-load switch to confirm your data file contains the full load. Alternatively, you<br>
|
66
|
-
can specify an alternative data file using the \--file parameter<br>
|
67
|
-
|
68
|
-
Example: $ gooddata refresh 'My Data Set' \--full \--file=/tmp/full.csv_<br>
|
69
|
-
|
70
|
-
$ **gooddata refresh 'My Data Set' \--full \--file=/tmp/mydataset-full.csv**<br>
|
71
|
-
_Comparing the remote and local data sets.<br>
|
72
|
-
Generating remote model alteration script into<br>
|
73
|
-
Populating data sets:<br>
|
74
|
-
'My Data Set' from /tmp/mydataset.csv (incremental)<br>
|
75
|
-
Done._<br>
|
76
|
-
|
77
|
-
$<br>
|