ts_routes 0.4.0 → 0.5.0

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: e2c7a2fe8d9d4034661eb4144f5059c7e2f3e94a
4
- data.tar.gz: 9d1a23c6df4ee55dd766bfa56f77bf0c4fde6aed
3
+ metadata.gz: 41ebddaca537c82f8c13f7e16a1bf7c2e8e7a3a7
4
+ data.tar.gz: f6f82e0c73649d740fca92eb3648abd71de65044
5
5
  SHA512:
6
- metadata.gz: ec7070eb44b1d0097ae313eb38033273d0761b087c62bed419c9438ae64bfe366dd04d6c503ec23ff341a0bc64305cff635945f84bdc5ebcf8610d6566383db4
7
- data.tar.gz: d27ea016116dce35925e0707ecfb83cd35c475ce8ee4b966e07298991ec2e1fca99fdfa421fb4e13b5cb19def4578a83cf3dddd7def48b6085fb71b3f3de3a68
6
+ metadata.gz: 305e44d28094f5dc7dbea2e645d7d0034250288e04bc3de9b5c8152a155951bb46a44ac3bec5c78c1a8a523c45106fa15a932bf5f2d3d1d77eb9fbc5af275727
7
+ data.tar.gz: cb68c7e82175b4d52ef4ac5c80041e5f4a5c109345cf7083c1b5e3f02330e81eb883a1bd39948d47e65686ab2c951b506c2b071c03a2659ebd5b7163ad66e220
data/README.md CHANGED
@@ -10,7 +10,7 @@ In your `lib/tasks/ts_routes.rake`:
10
10
  ```ruby:ts_routes.rake
11
11
 
12
12
  namespace :ts do
13
- TS_ROUTES_FILENAME = "javascripts/generated/RailsRoutes.ts"
13
+ TS_ROUTES_FILENAME = "javascripts/generated/routes.ts"
14
14
 
15
15
  desc "Generate #{TS_ROUTES_FILENAME}"
16
16
  task routes: :environment do
@@ -23,7 +23,7 @@ namespace :ts do
23
23
  end
24
24
  ```
25
25
 
26
- Then, execute `rake ts:routes` to generate `RailsRoutes.ts` in your favorite path.
26
+ Then, execute `rake ts:routes` to generate `routes.ts` in your favorite path.
27
27
 
28
28
  And you can import it in TypeScript code:
29
29
 
@@ -12,7 +12,7 @@ function $buildOptions(options: any, names: string[]): string {
12
12
  continue;
13
13
  }
14
14
 
15
- const value: ScalarType = options[ key ];
15
+ const value = options[ key ];
16
16
 
17
17
  if (key === "anchor") {
18
18
  anchor = "#" + encodeURIComponent("" + value);
@@ -1,3 +1,3 @@
1
1
  module TsRoutes
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
data/tslint.json CHANGED
@@ -1,6 +1,9 @@
1
1
  {
2
2
  "extends": [
3
- "tslint:recommended"
3
+ "tslint:latest"
4
4
  ],
5
- "defaultSeverity": "error"
5
+ "defaultSeverity": "error",
6
+ "rules": {
7
+ "strict-type-predicates": true
8
+ }
6
9
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ts_routes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - FUJI Goro (gfx)