fasta 0.2.6 → 0.2.7
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 +19 -26
- data/lib/fasta/cli.rb +3 -1
- data/lib/fasta/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: a9fe0cbd4a6427e750696cc732783ef4f0fa8f2f6cc296368afe657ec074d511
|
|
4
|
+
data.tar.gz: 2e727263ffd422f2f81e68dd5c05c8f2e6e30785f6df07f8cbf1c680137b86e7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0dc6b39f9183a838b70b6ac52ace2caf5304b935c417441e710a5fdf08ead5e76f0a9a145c03cdc5f1907333a367278d7cdfc652e01057d5c8d78876339e2ffd
|
|
7
|
+
data.tar.gz: 8ccd204e2df74b2e8cbfa8097b521c736cdb2e9b1ff91f3ff239578f0a2bbc0f993d6c08ea3b5ed8c08f15701523f12f3bad4d49a0852893ef681f8e6bfbf9b9
|
data/README.md
CHANGED
|
@@ -1,43 +1,36 @@
|
|
|
1
1
|
# Fasta
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<img src="https://user-images.githubusercontent.com/2478436/48049394-346ac280-e1a7-11e8-946f-4f6fe5f422a8.png" width="150">
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
Fasta is a mini web framework
|
|
6
7
|
|
|
7
8
|
## Installation
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
```bash
|
|
11
|
+
$ gem install fasta
|
|
12
|
+
```
|
|
10
13
|
|
|
11
|
-
```
|
|
12
|
-
|
|
14
|
+
```bash
|
|
15
|
+
$ fasta plz NEW_APP_NAME
|
|
13
16
|
```
|
|
14
17
|
|
|
15
|
-
|
|
18
|
+
```bash
|
|
19
|
+
$ cd NEW_APP_NAME
|
|
20
|
+
```
|
|
16
21
|
|
|
17
|
-
|
|
22
|
+
## Start
|
|
18
23
|
|
|
19
|
-
|
|
24
|
+
```bash
|
|
25
|
+
$ fasta go
|
|
26
|
+
```
|
|
20
27
|
|
|
21
|
-
|
|
28
|
+
or advanced
|
|
29
|
+
```bash
|
|
30
|
+
$ puma boot.ru -e production -p 3210
|
|
31
|
+
```
|
|
22
32
|
|
|
23
33
|
## Usage
|
|
24
34
|
|
|
25
35
|
TODO: Write usage instructions here
|
|
26
36
|
|
|
27
|
-
## Development
|
|
28
|
-
|
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
30
|
-
|
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
32
|
-
|
|
33
|
-
## Contributing
|
|
34
|
-
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/fasta. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
|
36
|
-
|
|
37
|
-
## License
|
|
38
|
-
|
|
39
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
|
40
|
-
|
|
41
|
-
## Code of Conduct
|
|
42
|
-
|
|
43
|
-
Everyone interacting in the Fasta project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/fasta/blob/master/CODE_OF_CONDUCT.md).
|
data/lib/fasta/cli.rb
CHANGED
|
@@ -21,8 +21,10 @@ module Fasta
|
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
desc 'go', 'Start your application very fast!'
|
|
24
|
+
method_option :environment, default: 'development', aliases: "-e"
|
|
25
|
+
method_option :port, default: '3210', aliases: "-p"
|
|
24
26
|
def go
|
|
25
|
-
exec("puma boot.ru -e
|
|
27
|
+
exec("puma boot.ru -e #{options[:environment]} -p #{options[:port]}")
|
|
26
28
|
end
|
|
27
29
|
end
|
|
28
30
|
end
|
data/lib/fasta/version.rb
CHANGED