myway-cli 0.1.0 → 0.1.1

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: ac61cd856d7c384f6259e31124e2cc403c9e8434
4
- data.tar.gz: 580a02099c7f5fecb65219a1edf360470bd219c5
3
+ metadata.gz: bf8c57afda7f240344d9011c1302a3897a50648e
4
+ data.tar.gz: 9f55af85262a6b7a0b636317a0fa5854f8a30dac
5
5
  SHA512:
6
- metadata.gz: 29969b0bb0c5f941e82a38de0b802183041468bd5da48e5debe0e27cbca74cf5ec63985951f693bcb35367a698aa0b572b549d7c6989acbd5296c46856960fd1
7
- data.tar.gz: e353ff1b2053a00d5318ee6b87abdd20136d5e866dcc571c855d21ba5edc9ce7fa4966ea7404cd06a6d76d439629f39c53393bd9711c77ed5d17ce619f214f7e
6
+ metadata.gz: 64b73a811c5eaf319e853d9844c45968df2f0b6690a8b708c0a1ffdcee2684824639550cf2190c58e80c3884b3301e23c15dc69471260de6ec06b1a528f4f5a5
7
+ data.tar.gz: 76c6024fce3070c6f7e31b615f555390f16caa95673de813b4a4019a1936eb6ef6aeb55ffa44382d162b31a75bc837c981f761e9b665586a39229b766dbc919f
data/Gemfile.lock ADDED
@@ -0,0 +1,20 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ myway-cli (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ rake (10.5.0)
10
+
11
+ PLATFORMS
12
+ ruby
13
+
14
+ DEPENDENCIES
15
+ bundler (~> 1.16)
16
+ myway-cli!
17
+ rake (~> 10.0)
18
+
19
+ BUNDLED WITH
20
+ 1.16.2
data/README.md CHANGED
@@ -1,39 +1,51 @@
1
- # Myway
1
+ # MyWay-CLI: The must-have tool for MyWay
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/myway`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ The MyWay CLI allows users to create, modify, run and test projects using the MyWay Sinatra framework (see here: https://github.com/J-Mo63/myway-sinatra) using the simple `myway` command.
6
4
 
7
5
  ## Installation
8
6
 
9
- Add this line to your application's Gemfile:
7
+ Simply run the following in console to install:
10
8
 
11
- ```ruby
12
- gem 'myway'
9
+ ```bash
10
+ $ gem install myway-cli
13
11
  ```
14
12
 
15
- And then execute:
13
+ ## Usage
16
14
 
17
- $ bundle
15
+ To create a new project:
18
16
 
19
- Or install it yourself as:
17
+ ```bash
18
+ $ myway generate project project-name
19
+ ```
20
20
 
21
- $ gem install myway
21
+ To run the server:
22
22
 
23
- ## Usage
23
+ ```bash
24
+ $ myway run server
25
+ ```
24
26
 
25
- TODO: Write usage instructions here
27
+ To run test:
26
28
 
27
- ## Development
29
+ ```bash
30
+ $ myway run tests
31
+ ```
32
+
33
+ To introduce a new controller, api or model:
28
34
 
29
- 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.
35
+ ```bash
36
+ $ myway generate controller example_controller
37
+ $ myway generate api example_api
38
+ $ myway generate model example_model
39
+ ```
30
40
 
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).
41
+ *Note: command segments can be run with just the first letter of their name (e.g. running the server can be accomplished with `myway r s`)*
32
42
 
33
43
  ## Contributing
34
44
 
35
45
  Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/myway.
36
46
 
47
+ Feel free to fork it and help out on this project!
48
+
37
49
  ## License
38
50
 
39
51
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile CHANGED
@@ -1,10 +1,12 @@
1
- require "bundler/gem_tasks"
2
- require "rake/testtask"
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rake/testtask'
3
5
 
4
6
  Rake::TestTask.new(:test) do |t|
5
- t.libs << "test"
6
- t.libs << "lib"
7
- t.test_files = FileList["test/**/*_test.rb"]
7
+ t.libs << 'test'
8
+ t.libs << 'lib'
9
+ t.test_files = FileList['test/**/*_test.rb']
8
10
  end
9
11
 
10
- task :default => :test
12
+ task default: :test
data/lib/myway/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Myway
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
data/myway.gemspec CHANGED
@@ -11,7 +11,11 @@ Gem::Specification.new do |spec|
11
11
  spec.email = ['jdmoallem@gmail.com']
12
12
 
13
13
  spec.summary = 'A command line tool for the MyWay Sinatra framework'
14
- spec.homepage = 'https://github.com/J-Mo63/myway-sinatra'
14
+ spec.description = 'The MyWay CLI allows users to create, modify, run'\
15
+ ' and test projects using the MyWay Sinatra framework'\
16
+ ' (see here: https://github.com/J-Mo63/myway-sinatra)'\
17
+ ' using the simple `myway` command.'
18
+ spec.homepage = 'https://github.com/J-Mo63/myway-cli'
15
19
  spec.license = 'MIT'
16
20
 
17
21
  # Specify which files should be added to the gem when it is released.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: myway-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Moallem
@@ -38,7 +38,9 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
- description:
41
+ description: 'The MyWay CLI allows users to create, modify, run and test projects
42
+ using the MyWay Sinatra framework (see here: https://github.com/J-Mo63/myway-sinatra)
43
+ using the simple `myway` command.'
42
44
  email:
43
45
  - jdmoallem@gmail.com
44
46
  executables:
@@ -49,6 +51,7 @@ files:
49
51
  - ".gitignore"
50
52
  - ".travis.yml"
51
53
  - Gemfile
54
+ - Gemfile.lock
52
55
  - LICENSE.txt
53
56
  - README.md
54
57
  - Rakefile
@@ -58,7 +61,7 @@ files:
58
61
  - lib/myway.rb
59
62
  - lib/myway/version.rb
60
63
  - myway.gemspec
61
- homepage: https://github.com/J-Mo63/myway-sinatra
64
+ homepage: https://github.com/J-Mo63/myway-cli
62
65
  licenses:
63
66
  - MIT
64
67
  metadata: {}