gooddata 0.6.6 → 0.6.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/{CHANGELOG.markdown → CHANGELOG.md} +6 -1
  3. data/lib/gooddata/cli/commands/project_cmd.rb +6 -29
  4. data/lib/gooddata/commands/project.rb +36 -44
  5. data/lib/gooddata/connection.rb +7 -0
  6. data/lib/gooddata/core/connection.rb +3 -0
  7. data/lib/gooddata/core/rest.rb +38 -19
  8. data/lib/gooddata/mixins/md_object_query.rb +3 -2
  9. data/lib/gooddata/models/metadata/dashboard.rb +3 -8
  10. data/lib/gooddata/models/metadata/report.rb +1 -6
  11. data/lib/gooddata/models/model.rb +5 -4
  12. data/lib/gooddata/models/process.rb +10 -14
  13. data/lib/gooddata/models/project.rb +34 -26
  14. data/lib/gooddata/models/project_blueprint.rb +14 -7
  15. data/lib/gooddata/models/project_creator.rb +2 -6
  16. data/lib/gooddata/models/schedule.rb +13 -2
  17. data/lib/gooddata/version.rb +1 -1
  18. data/spec/data/ruby_process/deep_files/deep_stuff.txt +1 -0
  19. data/spec/data/ruby_process/process.rb +2 -0
  20. data/spec/data/ruby_process/stuff.txt +1 -0
  21. data/spec/integration/full_process_schedule_spec.rb +69 -0
  22. data/spec/integration/full_project_spec.rb +14 -5
  23. data/spec/unit/models/schedule_spec.rb +7 -30
  24. metadata +7 -66
  25. data/doc/.gitignore +0 -1
  26. data/doc/css/.gitkeepme +0 -1
  27. data/doc/images/.gitkeepme +0 -1
  28. data/doc/images/background.png +0 -0
  29. data/doc/images/bg-callout-button.png +0 -0
  30. data/doc/images/header-logo.png +0 -0
  31. data/doc/images/logo-image.png +0 -0
  32. data/doc/js/.gitkeepme +0 -1
  33. data/doc/pages/GET_STARTED.md +0 -310
  34. data/doc/pages/HOMEPAGE.md +0 -77
  35. data/doc/pages/TUTORIALS.md +0 -52
  36. data/doc/pages/tutorial/BRICKS.md +0 -260
  37. data/doc/pages/tutorial/CREATING_A_MODEL.md +0 -81
  38. data/doc/pages/tutorial/CRUNCHING_NUMBERS.md +0 -231
  39. data/doc/pages/tutorial/TEST_DRIVEN_DEVELOPMENT.md +0 -120
  40. data/doc/pages/tutorial/YOUR_FIRST_PROJECT.md +0 -53
  41. data/doc/templates/default/class/dot/setup.rb +0 -6
  42. data/doc/templates/default/class/dot/superklass.erb +0 -3
  43. data/doc/templates/default/class/setup.rb +0 -37
  44. data/doc/templates/default/class/text/setup.rb +0 -11
  45. data/doc/templates/default/class/text/subclasses.erb +0 -5
  46. data/doc/templates/default/constant/text/header.erb +0 -11
  47. data/doc/templates/default/constant/text/setup.rb +0 -3
  48. data/doc/templates/default/docstring/setup.rb +0 -51
  49. data/doc/templates/default/docstring/text/abstract.erb +0 -2
  50. data/doc/templates/default/docstring/text/deprecated.erb +0 -2
  51. data/doc/templates/default/docstring/text/index.erb +0 -2
  52. data/doc/templates/default/docstring/text/note.erb +0 -4
  53. data/doc/templates/default/docstring/text/private.erb +0 -2
  54. data/doc/templates/default/docstring/text/returns_void.erb +0 -1
  55. data/doc/templates/default/docstring/text/text.erb +0 -1
  56. data/doc/templates/default/docstring/text/todo.erb +0 -4
  57. data/doc/templates/default/layout/dot/header.erb +0 -6
  58. data/doc/templates/default/layout/dot/setup.rb +0 -14
  59. data/doc/templates/default/method/setup.rb +0 -3
  60. data/doc/templates/default/method/text/header.erb +0 -1
  61. data/doc/templates/default/method_details/setup.rb +0 -11
  62. data/doc/templates/default/method_details/text/header.erb +0 -10
  63. data/doc/templates/default/method_details/text/method_signature.erb +0 -12
  64. data/doc/templates/default/method_details/text/setup.rb +0 -10
  65. data/doc/templates/default/module/dot/child.erb +0 -1
  66. data/doc/templates/default/module/dot/dependencies.erb +0 -3
  67. data/doc/templates/default/module/dot/header.erb +0 -6
  68. data/doc/templates/default/module/dot/info.erb +0 -14
  69. data/doc/templates/default/module/dot/setup.rb +0 -14
  70. data/doc/templates/default/module/setup.rb +0 -164
  71. data/doc/templates/default/module/text/children.erb +0 -10
  72. data/doc/templates/default/module/text/class_meths_list.erb +0 -8
  73. data/doc/templates/default/module/text/extends.erb +0 -8
  74. data/doc/templates/default/module/text/header.erb +0 -7
  75. data/doc/templates/default/module/text/includes.erb +0 -8
  76. data/doc/templates/default/module/text/instance_meths_list.erb +0 -8
  77. data/doc/templates/default/module/text/setup.rb +0 -12
  78. data/doc/templates/default/root/dot/child.erb +0 -3
  79. data/doc/templates/default/root/dot/setup.rb +0 -5
  80. data/doc/templates/default/tags/setup.rb +0 -55
  81. data/doc/templates/default/tags/text/example.erb +0 -12
  82. data/doc/templates/default/tags/text/index.erb +0 -1
  83. data/doc/templates/default/tags/text/option.erb +0 -20
  84. data/doc/templates/default/tags/text/overload.erb +0 -19
  85. data/doc/templates/default/tags/text/see.erb +0 -11
  86. data/doc/templates/default/tags/text/tag.erb +0 -13
@@ -1,7 +0,0 @@
1
- <%= title_align_right format_object_title(object) %>
2
-
3
- <%= yieldall %>
4
-
5
- <%= hr %>
6
-
7
-
@@ -1,8 +0,0 @@
1
- <% if object.mixins(:instance).size > 0 %>
2
- Includes:
3
- ---------
4
-
5
- <%= indent wrap(object.mixins(:instance).join(", "), 68) %>
6
-
7
-
8
- <% end %>
@@ -1,8 +0,0 @@
1
- <% if instance_meths.size > 0 %>
2
- Instance methods:
3
- -----------------
4
-
5
- <%= indent wrap(instance_meths.map {|o| o.name.to_s }.join(", "), 68) %>
6
-
7
-
8
- <% end %>
@@ -1,12 +0,0 @@
1
- def init
2
- sections :header, [T('docstring')], :children, :includes, :extends,
3
- :class_meths_list, :instance_meths_list
4
- end
5
-
6
- def class_meths
7
- @classmeths ||= method_listing.select {|o| o.scope == :class }
8
- end
9
-
10
- def instance_meths
11
- @instmeths ||= method_listing.select {|o| o.scope == :instance }
12
- end
@@ -1,3 +0,0 @@
1
- <% if inner = yieldall.gsub("\n", '') %>
2
- Root [label="{<%= inner %>}" rank=sink];
3
- <% end %>
@@ -1,5 +0,0 @@
1
- include T('default/module/dot')
2
-
3
- def format_path(object)
4
- ""
5
- end
@@ -1,55 +0,0 @@
1
- def init
2
- tags = Tags::Library.visible_tags - [:abstract, :deprecated, :note, :todo]
3
- create_tag_methods(tags - [:example, :option, :overload, :see])
4
- sections :index, tags.map {|t| t.to_s.gsub('.', '_').to_sym }
5
- sections.any(:overload).push(T('docstring'))
6
- end
7
-
8
- def return
9
- if object.type == :method
10
- return if object.constructor?
11
- return if object.tags(:return).size == 1 && object.tag(:return).types == ['void']
12
- end
13
- tag(:return)
14
- end
15
-
16
- def param
17
- tag(:param) if object.type == :method
18
- end
19
-
20
- private
21
-
22
- def tag(name, opts = nil)
23
- return unless object.has_tag?(name)
24
- opts ||= options_for_tag(name)
25
- @no_names = true if opts[:no_names]
26
- @no_types = true if opts[:no_types]
27
- @name = name
28
- out = erb('tag')
29
- @no_names, @no_types = nil, nil
30
- out
31
- end
32
-
33
- def create_tag_methods(tags)
34
- tags.each do |tag|
35
- tag_meth = tag.to_s.gsub('.', '_')
36
- next if respond_to?(tag_meth)
37
- instance_eval(<<-eof, __FILE__, __LINE__ + 1)
38
- def #{tag_meth}; tag(#{tag.inspect}) end
39
- eof
40
- end
41
- end
42
-
43
- def options_for_tag(tag)
44
- opts = {:no_types => true, :no_names => true}
45
- case Tags::Library.factory_method_for(tag)
46
- when :with_types
47
- opts[:no_types] = false
48
- when :with_types_and_name
49
- opts[:no_types] = false
50
- opts[:no_names] = false
51
- when :with_name
52
- opts[:no_names] = false
53
- end
54
- opts
55
- end
@@ -1,12 +0,0 @@
1
- <% if object.has_tag?(:example) %>
2
-
3
- Examples:
4
- ---------
5
-
6
- <% object.tags(:example).each_with_index do |tag, i| %>
7
- <%= indent("# " + tag.name + "\n") if tag.name %>
8
- <%= indent(format_source(tag.text)) + "\n" %>
9
- <%= "\n" if i < object.tags(:example).size - 1 %>
10
- <% end %>
11
- <% end %>
12
-
@@ -1 +0,0 @@
1
- <%= yieldall %>
@@ -1,20 +0,0 @@
1
- <% if object.has_tag?(:option) %>
2
- <% object.parameters.each do |param, default| %>
3
- <% tags = object.tags(:option).select {|x| x.name.to_s == param.to_s } %>
4
- <% next if tags.empty? %>
5
- Options Hash (<%= param %>):
6
- --------------<%= hr(param.to_s.length) %>--
7
-
8
- <% for tag in tags %>
9
- <% text = "" %>
10
- <% text += format_types(tag.pair.types || ['Object']) %>
11
- <% text += " " + tag.pair.name.to_s %>
12
- <% if tag.pair.defaults %>
13
- <% text += " - default: " + tag.pair.defaults.join(", ") %>
14
- <% end %>
15
- <% text += " - " + tag.pair.text if tag.pair.text %>
16
- <%= indent(wrap(text)) %>
17
-
18
- <% end %>
19
- <% end %>
20
- <% end %>
@@ -1,19 +0,0 @@
1
- <% if object.tags(:overload).size == 1 %>
2
- <%= wrap(yieldall(:object => object.tag(:overload))) %>
3
- <% elsif object.has_tag?(:overload) %>
4
- Overloads:
5
- ----------
6
-
7
- <% object.tags(:overload).each do |overload| %>
8
- <% if overload.tags.size > 0 %>
9
- <%= hr %>
10
-
11
- <%= indent signature(overload) %>
12
-
13
- <%= hr %>
14
-
15
- <%= indent(wrap(yieldall(:object => overload))) %>
16
-
17
- <% end %>
18
- <% end %>
19
- <% end %>
@@ -1,11 +0,0 @@
1
- <% if object.has_tag?(:see) %>
2
- See Also:
3
- ---------
4
-
5
- <% for tag in object.tags(:see) %>
6
- <% text = "- " + tag.name %>
7
- <% text += " - " + tag.text if tag.text && !tag.text.empty? %>
8
- <%= indent(wrap(text)) %>
9
- <% end %>
10
- <% end %>
11
-
@@ -1,13 +0,0 @@
1
- <% title = @label ? @label : YARD::Tags::Library.labels[@name] %>
2
- <%= title %>:
3
- <%= hr(title.length) %>-
4
-
5
- <% object.tags(@name).each do |tag| %>
6
- <% text = "" %>
7
- <% text += format_types(tag.types) + " " unless @no_types || tag.types.nil? %>
8
- <% text += tag.name.to_s + " " unless @no_names %>
9
- <% text += "- " unless @no_names && @no_types %>
10
- <% text += tag.text if tag.text && !tag.text.empty? %>
11
- <%= indent wrap(text) %>
12
-
13
- <% end %>