ginatra 2.3.0 → 3.0.0
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.
- data/.travis.yml +1 -1
- data/README.md +24 -26
- data/Rakefile +1 -21
- data/bin/ginatra +10 -1
- data/bin/ginatra-setup +25 -0
- data/ginatra.gemspec +1 -1
- data/lib/ginatra/config.rb +6 -4
- data/lib/ginatra/graph_commit.rb +77 -0
- data/lib/ginatra/repo.rb +42 -6
- data/lib/ginatra.rb +29 -1
- data/public/src/branch-graph.js +170 -0
- data/public/src/colour.css +1 -0
- data/public/src/graph.css +9 -0
- data/public/src/raphael.js +7 -0
- data/spec/graph_commit_spec.rb +54 -0
- data/spec/repo_spec.rb +8 -8
- data/views/graph.erb +15 -0
- data/views/layout.erb +1 -1
- data/views/log.erb +2 -2
- metadata +69 -103
- data/features/pages.feature +0 -35
- data/features/step_definitions/app_steps.rb +0 -7
- data/features/step_definitions/page_steps.rb +0 -36
- data/features/support/env.rb +0 -12
@@ -1,36 +0,0 @@
|
|
1
|
-
Given /^I am on '([^\']*)'$/ do |path|
|
2
|
-
get path
|
3
|
-
end
|
4
|
-
|
5
|
-
When /^I open '([^\']*)'$/ do |path|
|
6
|
-
get path
|
7
|
-
end
|
8
|
-
|
9
|
-
When /^I press "([^\"]*)"$/ do |button|
|
10
|
-
click_button(button)
|
11
|
-
end
|
12
|
-
|
13
|
-
When /^I follow "([^\"]*)"$/ do |link|
|
14
|
-
click_link(link)
|
15
|
-
end
|
16
|
-
|
17
|
-
When /^I fill in "([^\"]*)" with "([^\"]*)"$/ do |field, value|
|
18
|
-
fill_in(field, :with => value)
|
19
|
-
end
|
20
|
-
|
21
|
-
Then /^I should see "([^\"]*)"$/ do |text|
|
22
|
-
last_response.should contain(text)
|
23
|
-
end
|
24
|
-
|
25
|
-
Then /^I should not see "([^\"]*)"$/ do |text|
|
26
|
-
last_response.should_not contain(text)
|
27
|
-
end
|
28
|
-
|
29
|
-
Then /^I should be on (.+)$/ do |page_name|
|
30
|
-
URI.parse(current_url).path.should == path_to(page_name)
|
31
|
-
end
|
32
|
-
|
33
|
-
Then /^Save and View$/ do
|
34
|
-
save_and_open_page
|
35
|
-
end
|
36
|
-
|
data/features/support/env.rb
DELETED