js_rails_routes 0.2.0 → 0.2.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 +4 -4
- data/CHANGELOG.md +7 -2
- data/README.md +10 -10
- data/lib/js_rails_routes/generator.rb +1 -0
- data/lib/js_rails_routes/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c971acaca259fdde1cd934667f6ea2ca761f42e9
|
4
|
+
data.tar.gz: 8895cd1743d727e936e9da298f392e8a2c1c9960
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 709cca081ac5958d1cf68398ff15a0ff5cc17ce3201f1e05fa232198bbca591be22969ca51140b9770edfa87b45e6b94e3b11efbefb90b666f759d78b5a7632f
|
7
|
+
data.tar.gz: e07ad1c8d18f843701a008b59796c94952a29eaa0eb314b21727e27095dd4099a4fcc4655fe7a812ed05d8f5f9fd8dbb15ef431f107e1906916407c952d13b2f
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
|
5
5
|
This change log adheres to [keepachangelog.com](http://keepachangelog.com).
|
6
6
|
|
7
|
+
## [0.2.1] - 2016-06-24
|
8
|
+
### Fixed
|
9
|
+
- Make sure that js file ends with a new line char
|
10
|
+
|
7
11
|
## [0.2.0] - 2016-06-24
|
8
12
|
### Changed
|
9
13
|
- Rename the task name as "js:routes"
|
@@ -12,5 +16,6 @@ This change log adheres to [keepachangelog.com](http://keepachangelog.com).
|
|
12
16
|
### Added
|
13
17
|
- Implement "js:rails:routes" task
|
14
18
|
|
15
|
-
[0.2.
|
16
|
-
[0.
|
19
|
+
[0.2.1]: https://github.com/yuku-t/js_rails_routes/compare/v0.2.0...v0.2.1
|
20
|
+
[0.2.0]: https://github.com/yuku-t/js_rails_routes/compare/v0.1.0...v0.2.0
|
21
|
+
[0.1.0]: https://github.com/yuku-t/js_rails_routes/compare/033b945...v0.1.0
|
data/README.md
CHANGED
@@ -5,22 +5,22 @@ Generate a ES6 module that contains Rails routes.
|
|
5
5
|
## Description
|
6
6
|
|
7
7
|
This gem provides "js:routes" rake task.
|
8
|
-
It generates a ES6 requirable module
|
8
|
+
It generates a ES6 requirable module with exports url helper functions defined by your Rails application.
|
9
9
|
|
10
10
|
Suppose there are some routes defined:
|
11
11
|
|
12
12
|
```rb
|
13
13
|
# == Route Map
|
14
14
|
#
|
15
|
-
# Prefix Verb URI Pattern
|
16
|
-
# articles GET /articles(.:format)
|
17
|
-
# POST /articles(.:format)
|
18
|
-
# new_article GET /articles/new(.:format)
|
19
|
-
# edit_article GET /articles/:id/edit(.:format)
|
20
|
-
# article GET /articles/:id(.:format)
|
21
|
-
# PATCH /articles/:id(.:format)
|
22
|
-
# PUT /articles/:id(.:format)
|
23
|
-
# DELETE /articles/:id(.:format)
|
15
|
+
# Prefix Verb URI Pattern Controller#Action
|
16
|
+
# articles GET /articles(.:format) articles#index
|
17
|
+
# POST /articles(.:format) articles#create
|
18
|
+
# new_article GET /articles/new(.:format) articles#new
|
19
|
+
# edit_article GET /articles/:id/edit(.:format) articles#edit
|
20
|
+
# article GET /articles/:id(.:format) articles#show
|
21
|
+
# PATCH /articles/:id(.:format) articles#update
|
22
|
+
# PUT /articles/:id(.:format) articles#update
|
23
|
+
# DELETE /articles/:id(.:format) articles#destroy
|
24
24
|
Rails.application.routes.draw do
|
25
25
|
resources :articles
|
26
26
|
end
|