js_rails_routes 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 268d6274e4572add444b4ad5e1c844f1747db8e1
4
- data.tar.gz: e7debb031ab7c98729a2772a41ba754f6ca2d444
3
+ metadata.gz: c971acaca259fdde1cd934667f6ea2ca761f42e9
4
+ data.tar.gz: 8895cd1743d727e936e9da298f392e8a2c1c9960
5
5
  SHA512:
6
- metadata.gz: 09810107ea9a99f0119abf0220586665d616d18f3fd4c6650204c02317f23c5e9fa534ef6e1fce3b68310665d8c6c8b28f19f3982812d6b058024b9bf67e6a33
7
- data.tar.gz: 42cf90c4a269986b914173819b7f2988bde9f8500da7301b1e171eebee852ef082f306110e8e38b5d6c73499ec308d65b6afb4a59aff959bda1a21a2ef052664
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.0]: https://github.com/yuku-t/jquery-textcomplete/compare/v0.1.0...v0.2.0
16
- [0.1.0]: https://github.com/yuku-t/jquery-textcomplete/compare/033b945...v0.1.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 whith exports url helper functions defined by your Rails application.
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 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
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
@@ -13,6 +13,7 @@ module JSRailsRoutes
13
13
  lines += routes.map do |name, path|
14
14
  handle_route(name, path) if match?(name, path)
15
15
  end.compact
16
+ lines += '' # End with new line
16
17
  File.open(save_path, 'w') { |f| f.write(lines.join("\n")) }
17
18
  end
18
19
 
@@ -1,3 +1,3 @@
1
1
  module JSRailsRoutes
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: js_rails_routes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuku Takahashi