Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 373
- Log:
Initial import of Radiant 0.9.1, which is now packaged as a gem. This is an
import of the tagged 0.9.1 source checked out from GitHub, which isn't quite
the same as the gem distribution - but it doesn't seem to be available in an
archived form and the installed gem already has modifications, so this is
the closest I can get.
- Author:
- rool
- Date:
- Mon Mar 21 13:40:05 +0000 2011
- Size:
- 1576 Bytes
1 | module NavigationHelpers |
2 | # Maps a name to a path. Used by the |
3 | # |
4 | # When /^I go to (.+)$/ do |page_name| |
5 | # |
6 | # step definition in web_steps.rb |
7 | # |
8 | def path_to(page_name, format=nil) |
9 | case normalize_page_name(page_name) |
10 | when /^\/(.*)/ |
11 | $1 |
12 | when /the home\s?page/ |
13 | '/' |
14 | when /the (\S+) (|admin )page as (\w+)/ |
15 | path_to($1, $3) |
16 | when /the (\S+) ($:|admin )page/ |
17 | path_to($1) |
18 | when /first/ |
19 | '/first' |
20 | when /new child/ |
21 | '/my-child' |
22 | when /great-grandchild/ |
23 | '/parent/child/grandchild/great-grandchild' |
24 | when /sitemap/i |
25 | admin_pages_path(:format => format) |
26 | when /login/i |
27 | login_path(:format => format) |
28 | when /preferences/i |
29 | admin_preferences_path(:format => format) |
30 | when /snippets/i |
31 | admin_snippets_path(:format => format) |
32 | when /login/i |
33 | login_path(:format => format) |
34 | when /users/i |
35 | admin_users_path(:format => format) |
36 | when /pages/i |
37 | admin_pages_path(:format => format) |
38 | when /layouts/i |
39 | admin_layouts_path(:format => format) |
40 | when /snippets/i |
41 | admin_snippets_path(:format => format) |
42 | when /users/i |
43 | admin_users_path(:format => format) |
44 | when /extensions/i |
45 | admin_extensions_path(:format => format) |
46 | when /export/i |
47 | export_path(:format => format) |
48 | else |
49 | raise "Can't find mapping from \"#{page_name}\" to a path.\n" + |
50 | "Now, go and add a mapping in #{__FILE__}" |
51 | end |
52 | end |
53 | |
54 | def normalize_page_name(page_name) |
55 | page_name.gsub(/^["']+(.*?)["']+$/,'\1') |
56 | end |
57 | end |
58 | |
59 | World(NavigationHelpers) |