schema2type 0.1.0 → 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 +4 -4
- data/README.md +9 -1
- data/lib/schema2type/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f89d159c6ffdc49d6ab0fb15fe0f5e34e74d6527770853e0852f88a5cf9f1697
|
|
4
|
+
data.tar.gz: 14c2a5af612306c026a081af504692344499a26a56bcd7d1e2171c92623521c5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6356f061d49d775f88b23dd3f660833e921090b0767200045681a5699f0863c87f422990340bce96e48da3661de301390d5937d8ffda0e82669d218e823ecae1
|
|
7
|
+
data.tar.gz: bf76557809763aa70f012fc9e71595c5c993f2f70f098b068a74f34351828a1518641c895451e6e3f50210dc52e81c460a25bd3a98fe51454ed25cc10a31da45
|
data/README.md
CHANGED
|
@@ -53,9 +53,17 @@ Or install it yourself as:
|
|
|
53
53
|
## Usage
|
|
54
54
|
|
|
55
55
|
```
|
|
56
|
-
bundle exec schema2type -s schema.rb -o schema.d.ts -n
|
|
56
|
+
bundle exec schema2type -s db/schema.rb -o schema.d.ts -n schema
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
+
#### options
|
|
60
|
+
|
|
61
|
+
|command | require | default | detail |
|
|
62
|
+
|---|---|---|---|
|
|
63
|
+
| -s | true | - | Path of your schema.rb |
|
|
64
|
+
| -o | true | - | Output file name of TypeScript |
|
|
65
|
+
| -n | false | "schema" | Name of declare namespace |
|
|
66
|
+
|
|
59
67
|
## License
|
|
60
68
|
|
|
61
69
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/lib/schema2type/version.rb
CHANGED