gooddata 0.6.6 → 0.6.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{CHANGELOG.markdown → CHANGELOG.md} +6 -1
- data/lib/gooddata/cli/commands/project_cmd.rb +6 -29
- data/lib/gooddata/commands/project.rb +36 -44
- data/lib/gooddata/connection.rb +7 -0
- data/lib/gooddata/core/connection.rb +3 -0
- data/lib/gooddata/core/rest.rb +38 -19
- data/lib/gooddata/mixins/md_object_query.rb +3 -2
- data/lib/gooddata/models/metadata/dashboard.rb +3 -8
- data/lib/gooddata/models/metadata/report.rb +1 -6
- data/lib/gooddata/models/model.rb +5 -4
- data/lib/gooddata/models/process.rb +10 -14
- data/lib/gooddata/models/project.rb +34 -26
- data/lib/gooddata/models/project_blueprint.rb +14 -7
- data/lib/gooddata/models/project_creator.rb +2 -6
- data/lib/gooddata/models/schedule.rb +13 -2
- data/lib/gooddata/version.rb +1 -1
- data/spec/data/ruby_process/deep_files/deep_stuff.txt +1 -0
- data/spec/data/ruby_process/process.rb +2 -0
- data/spec/data/ruby_process/stuff.txt +1 -0
- data/spec/integration/full_process_schedule_spec.rb +69 -0
- data/spec/integration/full_project_spec.rb +14 -5
- data/spec/unit/models/schedule_spec.rb +7 -30
- metadata +7 -66
- data/doc/.gitignore +0 -1
- data/doc/css/.gitkeepme +0 -1
- data/doc/images/.gitkeepme +0 -1
- data/doc/images/background.png +0 -0
- data/doc/images/bg-callout-button.png +0 -0
- data/doc/images/header-logo.png +0 -0
- data/doc/images/logo-image.png +0 -0
- data/doc/js/.gitkeepme +0 -1
- data/doc/pages/GET_STARTED.md +0 -310
- data/doc/pages/HOMEPAGE.md +0 -77
- data/doc/pages/TUTORIALS.md +0 -52
- data/doc/pages/tutorial/BRICKS.md +0 -260
- data/doc/pages/tutorial/CREATING_A_MODEL.md +0 -81
- data/doc/pages/tutorial/CRUNCHING_NUMBERS.md +0 -231
- data/doc/pages/tutorial/TEST_DRIVEN_DEVELOPMENT.md +0 -120
- data/doc/pages/tutorial/YOUR_FIRST_PROJECT.md +0 -53
- data/doc/templates/default/class/dot/setup.rb +0 -6
- data/doc/templates/default/class/dot/superklass.erb +0 -3
- data/doc/templates/default/class/setup.rb +0 -37
- data/doc/templates/default/class/text/setup.rb +0 -11
- data/doc/templates/default/class/text/subclasses.erb +0 -5
- data/doc/templates/default/constant/text/header.erb +0 -11
- data/doc/templates/default/constant/text/setup.rb +0 -3
- data/doc/templates/default/docstring/setup.rb +0 -51
- data/doc/templates/default/docstring/text/abstract.erb +0 -2
- data/doc/templates/default/docstring/text/deprecated.erb +0 -2
- data/doc/templates/default/docstring/text/index.erb +0 -2
- data/doc/templates/default/docstring/text/note.erb +0 -4
- data/doc/templates/default/docstring/text/private.erb +0 -2
- data/doc/templates/default/docstring/text/returns_void.erb +0 -1
- data/doc/templates/default/docstring/text/text.erb +0 -1
- data/doc/templates/default/docstring/text/todo.erb +0 -4
- data/doc/templates/default/layout/dot/header.erb +0 -6
- data/doc/templates/default/layout/dot/setup.rb +0 -14
- data/doc/templates/default/method/setup.rb +0 -3
- data/doc/templates/default/method/text/header.erb +0 -1
- data/doc/templates/default/method_details/setup.rb +0 -11
- data/doc/templates/default/method_details/text/header.erb +0 -10
- data/doc/templates/default/method_details/text/method_signature.erb +0 -12
- data/doc/templates/default/method_details/text/setup.rb +0 -10
- data/doc/templates/default/module/dot/child.erb +0 -1
- data/doc/templates/default/module/dot/dependencies.erb +0 -3
- data/doc/templates/default/module/dot/header.erb +0 -6
- data/doc/templates/default/module/dot/info.erb +0 -14
- data/doc/templates/default/module/dot/setup.rb +0 -14
- data/doc/templates/default/module/setup.rb +0 -164
- data/doc/templates/default/module/text/children.erb +0 -10
- data/doc/templates/default/module/text/class_meths_list.erb +0 -8
- data/doc/templates/default/module/text/extends.erb +0 -8
- data/doc/templates/default/module/text/header.erb +0 -7
- data/doc/templates/default/module/text/includes.erb +0 -8
- data/doc/templates/default/module/text/instance_meths_list.erb +0 -8
- data/doc/templates/default/module/text/setup.rb +0 -12
- data/doc/templates/default/root/dot/child.erb +0 -3
- data/doc/templates/default/root/dot/setup.rb +0 -5
- data/doc/templates/default/tags/setup.rb +0 -55
- data/doc/templates/default/tags/text/example.erb +0 -12
- data/doc/templates/default/tags/text/index.erb +0 -1
- data/doc/templates/default/tags/text/option.erb +0 -20
- data/doc/templates/default/tags/text/overload.erb +0 -19
- data/doc/templates/default/tags/text/see.erb +0 -11
- data/doc/templates/default/tags/text/tag.erb +0 -13
@@ -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,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,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 %>
|