fasta 0.2.6 → 0.2.7

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
  SHA256:
3
- metadata.gz: ccc6ea929c578f89d0a6ed2b86698e9ec3b9c49059f85a56ac57d2184b3ac384
4
- data.tar.gz: 3b3066fb504b910f938cd809eeed480d3a9780b6dac9c6438459aeb8508dc5aa
3
+ metadata.gz: a9fe0cbd4a6427e750696cc732783ef4f0fa8f2f6cc296368afe657ec074d511
4
+ data.tar.gz: 2e727263ffd422f2f81e68dd5c05c8f2e6e30785f6df07f8cbf1c680137b86e7
5
5
  SHA512:
6
- metadata.gz: 22393427f0a96b8f199ec99781303379897568080c1c41c165518aaa1d06e7aca0943d644be42b7f081b08ce403a306c8f3b66279b49e32210ae970e34cb0f9a
7
- data.tar.gz: 114e54e762628f2d79b5f4dad9d148dbd219243c97b819b0445374fb71d69d1b0c5d8b9ea5090c65affeb98bb12bda23f24d755ae4f4444f5d897484c3565c4e
6
+ metadata.gz: 0dc6b39f9183a838b70b6ac52ace2caf5304b935c417441e710a5fdf08ead5e76f0a9a145c03cdc5f1907333a367278d7cdfc652e01057d5c8d78876339e2ffd
7
+ data.tar.gz: 8ccd204e2df74b2e8cbfa8097b521c736cdb2e9b1ff91f3ff239578f0a2bbc0f993d6c08ea3b5ed8c08f15701523f12f3bad4d49a0852893ef681f8e6bfbf9b9
data/README.md CHANGED
@@ -1,43 +1,36 @@
1
1
  # Fasta
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/fasta`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ <img src="https://user-images.githubusercontent.com/2478436/48049394-346ac280-e1a7-11e8-946f-4f6fe5f422a8.png" width="150">
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
5
+
6
+ Fasta is a mini web framework
6
7
 
7
8
  ## Installation
8
9
 
9
- Add this line to your application's Gemfile:
10
+ ```bash
11
+ $ gem install fasta
12
+ ```
10
13
 
11
- ```ruby
12
- gem 'fasta'
14
+ ```bash
15
+ $ fasta plz NEW_APP_NAME
13
16
  ```
14
17
 
15
- And then execute:
18
+ ```bash
19
+ $ cd NEW_APP_NAME
20
+ ```
16
21
 
17
- $ bundle
22
+ ## Start
18
23
 
19
- Or install it yourself as:
24
+ ```bash
25
+ $ fasta go
26
+ ```
20
27
 
21
- $ gem install fasta
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 production -p 3210")
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
@@ -1,3 +1,3 @@
1
1
  module Fasta
2
- VERSION = '0.2.6'.freeze
2
+ VERSION = '0.2.7'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fasta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yaro