myway-cli 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/Gemfile.lock +20 -0
- data/README.md +28 -16
- data/Rakefile +8 -6
- data/lib/myway/version.rb +1 -1
- data/myway.gemspec +5 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf8c57afda7f240344d9011c1302a3897a50648e
|
4
|
+
data.tar.gz: 9f55af85262a6b7a0b636317a0fa5854f8a30dac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64b73a811c5eaf319e853d9844c45968df2f0b6690a8b708c0a1ffdcee2684824639550cf2190c58e80c3884b3301e23c15dc69471260de6ec06b1a528f4f5a5
|
7
|
+
data.tar.gz: 76c6024fce3070c6f7e31b615f555390f16caa95673de813b4a4019a1936eb6ef6aeb55ffa44382d162b31a75bc837c981f761e9b665586a39229b766dbc919f
|
data/Gemfile.lock
ADDED
data/README.md
CHANGED
@@ -1,39 +1,51 @@
|
|
1
|
-
#
|
1
|
+
# MyWay-CLI: The must-have tool for MyWay
|
2
2
|
|
3
|
-
|
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
|
-
|
7
|
+
Simply run the following in console to install:
|
10
8
|
|
11
|
-
```
|
12
|
-
gem
|
9
|
+
```bash
|
10
|
+
$ gem install myway-cli
|
13
11
|
```
|
14
12
|
|
15
|
-
|
13
|
+
## Usage
|
16
14
|
|
17
|
-
|
15
|
+
To create a new project:
|
18
16
|
|
19
|
-
|
17
|
+
```bash
|
18
|
+
$ myway generate project project-name
|
19
|
+
```
|
20
20
|
|
21
|
-
|
21
|
+
To run the server:
|
22
22
|
|
23
|
-
|
23
|
+
```bash
|
24
|
+
$ myway run server
|
25
|
+
```
|
24
26
|
|
25
|
-
|
27
|
+
To run test:
|
26
28
|
|
27
|
-
|
29
|
+
```bash
|
30
|
+
$ myway run tests
|
31
|
+
```
|
32
|
+
|
33
|
+
To introduce a new controller, api or model:
|
28
34
|
|
29
|
-
|
35
|
+
```bash
|
36
|
+
$ myway generate controller example_controller
|
37
|
+
$ myway generate api example_api
|
38
|
+
$ myway generate model example_model
|
39
|
+
```
|
30
40
|
|
31
|
-
|
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
|
-
|
2
|
-
|
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 <<
|
6
|
-
t.libs <<
|
7
|
-
t.test_files = FileList[
|
7
|
+
t.libs << 'test'
|
8
|
+
t.libs << 'lib'
|
9
|
+
t.test_files = FileList['test/**/*_test.rb']
|
8
10
|
end
|
9
11
|
|
10
|
-
task :
|
12
|
+
task default: :test
|
data/lib/myway/version.rb
CHANGED
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.
|
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.
|
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-
|
64
|
+
homepage: https://github.com/J-Mo63/myway-cli
|
62
65
|
licenses:
|
63
66
|
- MIT
|
64
67
|
metadata: {}
|