sextant 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -1
- data/Gemfile +3 -0
- data/Gemfile.lock +11 -0
- data/README.md +5 -3
- data/VERSION +1 -1
- data/app/controllers/sextant/routes_controller.rb +3 -2
- data/sextant.gemspec +5 -2
- data/test/integration/sextant_test.rb +11 -0
- data/test/test_helper.rb +3 -1
- metadata +32 -21
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -41,9 +41,13 @@ GEM
|
|
41
41
|
childprocess (0.3.1)
|
42
42
|
ffi (~> 1.0.6)
|
43
43
|
erubis (2.7.0)
|
44
|
+
eventmachine (1.0.0)
|
45
|
+
faye-websocket (0.4.6)
|
46
|
+
eventmachine (>= 0.12.0)
|
44
47
|
ffi (1.0.11)
|
45
48
|
git (1.2.5)
|
46
49
|
hike (1.2.1)
|
50
|
+
http_parser.rb (0.5.3)
|
47
51
|
i18n (0.6.0)
|
48
52
|
jeweler (1.6.4)
|
49
53
|
bundler (~> 1.0)
|
@@ -60,6 +64,12 @@ GEM
|
|
60
64
|
mime-types (1.18)
|
61
65
|
multi_json (1.2.0)
|
62
66
|
nokogiri (1.5.2)
|
67
|
+
poltergeist (1.0.2)
|
68
|
+
capybara (~> 1.1)
|
69
|
+
childprocess (~> 0.3)
|
70
|
+
faye-websocket (~> 0.4, >= 0.4.4)
|
71
|
+
http_parser.rb (~> 0.5.3)
|
72
|
+
multi_json (~> 1.0)
|
63
73
|
polyglot (0.3.3)
|
64
74
|
rack (1.4.1)
|
65
75
|
rack-cache (1.2)
|
@@ -119,6 +129,7 @@ DEPENDENCIES
|
|
119
129
|
capybara (>= 0.4.0)
|
120
130
|
jeweler (~> 1.6.4)
|
121
131
|
launchy (~> 2.1.0)
|
132
|
+
poltergeist
|
122
133
|
rails (>= 3.2)
|
123
134
|
rake
|
124
135
|
rcov
|
data/README.md
CHANGED
@@ -1,14 +1,16 @@
|
|
1
|
-
# Sextant
|
1
|
+
# Sextant [![Build Status](https://travis-ci.org/schneems/sextant.png?branch=master)](https://travis-ci.org/schneems/sextant)
|
2
2
|
|
3
|
-
[![Build Status](https://travis-ci.org/schneems/sextant.png?branch=master)](https://travis-ci.org/schneems/sextant)
|
4
3
|
|
5
4
|
Helps you find your routes on a long Journey on Rails, in Rails apps 3.2+.
|
6
5
|
|
6
|
+
![Logo](http://cl.ly/image/0d122q3y0Q17/content.png)
|
7
|
+
|
8
|
+
|
7
9
|
## What
|
8
10
|
|
9
11
|
Show routes in your Rails app while working in development. Visit `http://localhost:3000/rails/routes` and you'll see an output similar to `rake routes`
|
10
12
|
|
11
|
-
![Sextant Gem](http://
|
13
|
+
![Sextant Gem](http://cl.ly/image/3A1z290a3l0Z/content.png)
|
12
14
|
|
13
15
|
|
14
16
|
## The Future
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
data/sextant.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "sextant"
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["schneems"]
|
12
|
-
s.date = "2013-01-
|
12
|
+
s.date = "2013-01-14"
|
13
13
|
s.description = "Sextant is a Rails engine that quickly shows the routes available"
|
14
14
|
s.email = "richard.schneeman@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -85,6 +85,7 @@ Gem::Specification.new do |s|
|
|
85
85
|
s.add_development_dependency(%q<rake>, [">= 0"])
|
86
86
|
s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
|
87
87
|
s.add_development_dependency(%q<capybara>, [">= 0.4.0"])
|
88
|
+
s.add_development_dependency(%q<poltergeist>, [">= 0"])
|
88
89
|
s.add_development_dependency(%q<sqlite3>, [">= 0"])
|
89
90
|
s.add_development_dependency(%q<launchy>, ["~> 2.1.0"])
|
90
91
|
s.add_development_dependency(%q<rcov>, [">= 0"])
|
@@ -95,6 +96,7 @@ Gem::Specification.new do |s|
|
|
95
96
|
s.add_dependency(%q<rake>, [">= 0"])
|
96
97
|
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
97
98
|
s.add_dependency(%q<capybara>, [">= 0.4.0"])
|
99
|
+
s.add_dependency(%q<poltergeist>, [">= 0"])
|
98
100
|
s.add_dependency(%q<sqlite3>, [">= 0"])
|
99
101
|
s.add_dependency(%q<launchy>, ["~> 2.1.0"])
|
100
102
|
s.add_dependency(%q<rcov>, [">= 0"])
|
@@ -106,6 +108,7 @@ Gem::Specification.new do |s|
|
|
106
108
|
s.add_dependency(%q<rake>, [">= 0"])
|
107
109
|
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
108
110
|
s.add_dependency(%q<capybara>, [">= 0.4.0"])
|
111
|
+
s.add_dependency(%q<poltergeist>, [">= 0"])
|
109
112
|
s.add_dependency(%q<sqlite3>, [">= 0"])
|
110
113
|
s.add_dependency(%q<launchy>, ["~> 2.1.0"])
|
111
114
|
s.add_dependency(%q<rcov>, [">= 0"])
|
@@ -2,6 +2,10 @@ require 'test_helper'
|
|
2
2
|
|
3
3
|
class InheritNavigationTest < ActiveSupport::IntegrationCase
|
4
4
|
|
5
|
+
setup do
|
6
|
+
Capybara.current_driver = Capybara.javascript_driver
|
7
|
+
end
|
8
|
+
|
5
9
|
test 'default index' do
|
6
10
|
visit('/rails/routes')
|
7
11
|
# save_and_open_page
|
@@ -10,4 +14,11 @@ class InheritNavigationTest < ActiveSupport::IntegrationCase
|
|
10
14
|
assert has_content?('foo#index')
|
11
15
|
end
|
12
16
|
|
17
|
+
test 'JS show/hide _path' do
|
18
|
+
visit('/rails/routes')
|
19
|
+
assert has_content?('foo_index_path')
|
20
|
+
click_link('Url')
|
21
|
+
assert has_content?('foo_index_url')
|
22
|
+
end
|
23
|
+
|
13
24
|
end
|
data/test/test_helper.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
|
1
2
|
# Configure Rails Envinronment
|
2
3
|
ENV["RAILS_ENV"] = "test"
|
3
4
|
|
@@ -18,7 +19,8 @@ Rails.backtrace_cleaner.remove_silencers!
|
|
18
19
|
|
19
20
|
# Configure capybara for integration testing
|
20
21
|
require "capybara/rails"
|
21
|
-
|
22
|
+
require 'capybara/poltergeist'
|
23
|
+
Capybara.javascript_driver = :poltergeist
|
22
24
|
Capybara.default_selector = :css
|
23
25
|
|
24
26
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sextant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-14 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
16
|
-
requirement: &
|
16
|
+
requirement: &70240052180400 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '3.2'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70240052180400
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rails
|
27
|
-
requirement: &
|
27
|
+
requirement: &70240052179880 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '3.2'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70240052179880
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rake
|
38
|
-
requirement: &
|
38
|
+
requirement: &70240052179280 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70240052179280
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: jeweler
|
49
|
-
requirement: &
|
49
|
+
requirement: &70240052166700 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 1.6.4
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70240052166700
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: capybara
|
60
|
-
requirement: &
|
60
|
+
requirement: &70240052165960 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,21 @@ dependencies:
|
|
65
65
|
version: 0.4.0
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70240052165960
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: poltergeist
|
71
|
+
requirement: &70240052165200 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: *70240052165200
|
69
80
|
- !ruby/object:Gem::Dependency
|
70
81
|
name: sqlite3
|
71
|
-
requirement: &
|
82
|
+
requirement: &70240052164520 !ruby/object:Gem::Requirement
|
72
83
|
none: false
|
73
84
|
requirements:
|
74
85
|
- - ! '>='
|
@@ -76,10 +87,10 @@ dependencies:
|
|
76
87
|
version: '0'
|
77
88
|
type: :development
|
78
89
|
prerelease: false
|
79
|
-
version_requirements: *
|
90
|
+
version_requirements: *70240052164520
|
80
91
|
- !ruby/object:Gem::Dependency
|
81
92
|
name: launchy
|
82
|
-
requirement: &
|
93
|
+
requirement: &70240052163880 !ruby/object:Gem::Requirement
|
83
94
|
none: false
|
84
95
|
requirements:
|
85
96
|
- - ~>
|
@@ -87,10 +98,10 @@ dependencies:
|
|
87
98
|
version: 2.1.0
|
88
99
|
type: :development
|
89
100
|
prerelease: false
|
90
|
-
version_requirements: *
|
101
|
+
version_requirements: *70240052163880
|
91
102
|
- !ruby/object:Gem::Dependency
|
92
103
|
name: rcov
|
93
|
-
requirement: &
|
104
|
+
requirement: &70240052163100 !ruby/object:Gem::Requirement
|
94
105
|
none: false
|
95
106
|
requirements:
|
96
107
|
- - ! '>='
|
@@ -98,10 +109,10 @@ dependencies:
|
|
98
109
|
version: '0'
|
99
110
|
type: :development
|
100
111
|
prerelease: false
|
101
|
-
version_requirements: *
|
112
|
+
version_requirements: *70240052163100
|
102
113
|
- !ruby/object:Gem::Dependency
|
103
114
|
name: simplecov
|
104
|
-
requirement: &
|
115
|
+
requirement: &70240052162400 !ruby/object:Gem::Requirement
|
105
116
|
none: false
|
106
117
|
requirements:
|
107
118
|
- - ! '>='
|
@@ -109,7 +120,7 @@ dependencies:
|
|
109
120
|
version: '0'
|
110
121
|
type: :development
|
111
122
|
prerelease: false
|
112
|
-
version_requirements: *
|
123
|
+
version_requirements: *70240052162400
|
113
124
|
description: Sextant is a Rails engine that quickly shows the routes available
|
114
125
|
email: richard.schneeman@gmail.com
|
115
126
|
executables: []
|
@@ -185,7 +196,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
185
196
|
version: '0'
|
186
197
|
segments:
|
187
198
|
- 0
|
188
|
-
hash: -
|
199
|
+
hash: -3223044381669175486
|
189
200
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
190
201
|
none: false
|
191
202
|
requirements:
|