crystalruby 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 +5 -3
- data/lib/crystalruby/version.rb +1 -1
- data/lib/crystalruby.rb +0 -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: db2722469a6d98fb5696b55dd0980337db19ce92fde42b4c1c023cfa6fd877d0
|
4
|
+
data.tar.gz: a2914be29451a124cca3dcdd83173e8f4713c5e1dbd1121c1c4179e6e8a55ea6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9253f9b6b953021570fb31ee958e4ca2c798d3e586d5be8da59d5f26b895f1bce22672bbb1c0c14322732d61d9c4fe780d6833d9410d9e16732683862fd3330f
|
7
|
+
data.tar.gz: d14edd179ed85907f90038b303f409a6c3868b2cf2bbfd60695350886d67ee5bf9d98b2ee3e1d05421e3d55b9b3ce155f7d9b0d04d2c6bee0165f36e1598abc7
|
data/README.md
CHANGED
@@ -109,7 +109,7 @@ Some Crystal syntax is not valid Ruby, for methods of this form, we need to
|
|
109
109
|
define our functions using a :raw parameter.
|
110
110
|
|
111
111
|
```ruby
|
112
|
-
crystalize [a: :int, b: :int] => :int
|
112
|
+
crystalize :raw, [a: :int, b: :int] => :int
|
113
113
|
def add(a, b)
|
114
114
|
<<~CRYSTAL
|
115
115
|
c = 0_u64
|
@@ -202,6 +202,10 @@ $ gem install crystalruby
|
|
202
202
|
Crystal Ruby requires some basic initialization options inside a crystalruby.yaml file in the root of your project.
|
203
203
|
You can run `crystalruby init` to generate a configuration file with sane defaults.
|
204
204
|
|
205
|
+
```bash
|
206
|
+
crystalruby init
|
207
|
+
```
|
208
|
+
|
205
209
|
```yaml
|
206
210
|
crystal_src_dir: "./crystalruby/src"
|
207
211
|
crystal_lib_dir: "./crystalruby/lib"
|
@@ -209,8 +213,6 @@ crystal_main_file: "main.cr"
|
|
209
213
|
crystal_lib_name: "crlib"
|
210
214
|
```
|
211
215
|
|
212
|
-
## Usage
|
213
|
-
|
214
216
|
## Development
|
215
217
|
|
216
218
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/crystalruby/version.rb
CHANGED
data/lib/crystalruby.rb
CHANGED