html_routes 1.0 → 1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 56cbf08c455d983dce51e5154cbdbdc9ba089826
4
- data.tar.gz: 68814f1b3f6050c7e69f2b74caad3125f61b766b
3
+ metadata.gz: f53542d706b52ec0aa9e96f428c00a2f6baf7fd1
4
+ data.tar.gz: 48a07c2e910e834dd1aba0b47fcd1629be115d94
5
5
  SHA512:
6
- metadata.gz: f9114ae91a918358259960c432259f77ee73a6560543a520ae1deac148a899fbeaa94b192a9cf923671b4628bba1ddef5fc5fdcb0968d703bf43a825d5806b54
7
- data.tar.gz: 1030ee4477971f33ac0c6e099736253a64f443ecf3bc8a4b9ae6e6b6818eb70c8986c811c0971e3fa69b63a052cc3a9eace65d49ecf51c35a2a31dcad9887b37
6
+ metadata.gz: d359ee6722898bd9be1f1efa33d05035c1557325d483169fb20b96a99a6eb4e4aed5a7e96052b59fcd9cb6b5dfc23aade86f550bca27a21e821f0d7f46905687
7
+ data.tar.gz: a248deba055461fe272b4c714d25f6ea7a99e4a8e0c4c89f5b84127209389006a0577c0e714dc1bdab0e394d44cfbe8110524a86c8c236c8e4d058ef3c837f31
data/README.md CHANGED
@@ -1,16 +1,16 @@
1
1
  Rails HtmlRoutes
2
2
  ================
3
3
 
4
- Output your Rails routes to html:
4
+ Output your Rails routes to html. It is automatically opened by your browser, but this option can be disabled.
5
5
 
6
6
  ![HTML Routes](./example.png "HtmlRoutes")
7
7
 
8
8
  ## Installation
9
9
 
10
- Add it to your Gemfile and run bundle install:
10
+ Add it to your Gemfile and run bundle install.
11
11
 
12
12
  ```ruby
13
- gem 'html_routes'
13
+ gem 'html_routes', '~> 1.0', group: :development
14
14
  ```
15
15
 
16
16
  ## Usage
@@ -1,3 +1,3 @@
1
1
  module HtmlRoutes
2
- VERSION = '1.0'
2
+ VERSION = '1.1'
3
3
  end
@@ -37,7 +37,7 @@ task html_routes: :environment do
37
37
  reqs = route.requirements.inspect
38
38
  verb = route.verb.source
39
39
  verb = verb[1..(verb.length - 2)] if verb
40
- r = { name: route.name, verb: verb, path: route.path, reqs: reqs }
40
+ r = { name: route.name, verb: verb, path: route.path.spec.to_s, reqs: reqs }
41
41
  f.puts "<tr><td width='12%'><b>#{r[:name]}</b></td><td width='5%'><b>#{r[:verb]}</b></td>" +
42
42
  "<td width='3%'>#{r[:path]}</td><td width='80%'>#{convertor.convert(r[:reqs])}</td></tr>"
43
43
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html_routes
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.0'
4
+ version: '1.1'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pierre Pretorius
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-01 00:00:00.000000000 Z
11
+ date: 2017-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: syntax
@@ -70,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
70
  version: '0'
71
71
  requirements: []
72
72
  rubyforge_project:
73
- rubygems_version: 2.2.0
73
+ rubygems_version: 2.5.1
74
74
  signing_key:
75
75
  specification_version: 4
76
76
  summary: Output your Rails routes to html.