railspp 0.3.6 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7074cfa567f1b9340687317651b05e2a2a571562e0a7ce07d02120e89531b316
4
- data.tar.gz: af31dd435546f415f7605449eeb622db3bd1a5eea79f5c1b2c03a79c405aa97d
3
+ metadata.gz: 0d78f4f79e9cebca7a6efa9fceb5e6bf351f0fe1a413555c7c0e9491dd20752c
4
+ data.tar.gz: 5b8bc8143b6e9bc763b1b36bff090cadf0b6292402ccd5f21d337112974d092a
5
5
  SHA512:
6
- metadata.gz: 71512d68c5337a92c0328f57069f5e509b22ecacb3fa83df0c0062fb341b1316446feef444756b9e9816d960f9df39302d8daead30801dfe1ea8185c91fbc877
7
- data.tar.gz: 6a3e96ad180cf6b7b7fe9721a52788275d05b3f996d20f2408764da23850eb5bac710953803d564ecce395244a3e3ef0f176a857404cc9409b19847548fd4bf4
6
+ metadata.gz: 40e571d288931b1fdbe38765f1cbb18928216317411373221cac21f1ab7cf222e02800f267b7ddabc9a9a806f7ca5b178a3736844454ec553d5f77a0f492b44e
7
+ data.tar.gz: aca159dae4594a719ce25c6861a4095a8c67286c02e6ccb9311b3b87cc9e66b5297cace6bfbaa5f6e3e041b76616049354be3c35bdcb98a7467ef3ef232e7104
data/README.md CHANGED
@@ -3,9 +3,11 @@
3
3
  Autogenerate your CRUD operations with Swagger like API documentation without extra configuration
4
4
  and generate mini test unit tests.
5
5
 
6
+ Automatic API Documentation is not supported in Rails version 6
7
+
6
8
  ## Requirements
7
9
 
8
- - Rails version == 5
10
+ - Rails version >= 5
9
11
  - Ruby version >= 2.5
10
12
 
11
13
  ## Installation
@@ -32,7 +34,33 @@ railspp update_version
32
34
 
33
35
  Your command CLI command bin path is `railspp`
34
36
 
35
- ![CLI DOCUMENTATION](./docs/CLI_COMMANDS.png)
37
+ ```plain-text
38
+ ______ _ __
39
+ | ___ \ (_) | _ _
40
+ | |_/ /__ _ _| |___ _| |_ _| |_
41
+ | // _` | | / __|_ _|_ _|
42
+ | |\ \ (_| | | \__ \ |_| |_|
43
+ \_| \_\__,_|_|_|___/
44
+
45
+ Rails Plus Plus Version: 0.3.6
46
+
47
+ Rails Plus Plus: Command Line Interface to make your life easier.
48
+ => The Rails Plus Plus command is 'railspp'. To blast this project into the fifth dimension.
49
+ => Use '--help' on any of the commands listed below for more details.
50
+
51
+ List of commands:
52
+ - i => Initialize your project
53
+ - init => Initialize your project
54
+ - initialize => Initialize your project
55
+ - m => Generate your CRUD model, controller, and migration
56
+ - model => Generate your CRUD model, controller, and migration
57
+ - mt => Generate a unit test in minitest
58
+ - make_test => Generate a unit test in minitest
59
+ - ad => Initialize your api documentation
60
+ - api_docs => Initialize your api documentation
61
+ - uv => Update your version of Rails Plus Plus in your code base
62
+ - update_version => Update your version of Rails Plus Plus in your code base
63
+ ```
36
64
 
37
65
  ## Getting Started
38
66
 
@@ -1,4 +1,4 @@
1
1
  Rails.application.config.after_initialize do
2
2
  Rails.application.reload_routes!
3
- APIDocumentationService.generate_js_file()
3
+ ApiDocumentationService.generate_js_file()
4
4
  end
@@ -1,4 +1,4 @@
1
- class APIDocumentationService
1
+ class ApiDocumentationService
2
2
  class << self
3
3
  def generate_js_file
4
4
  all_routes = get_api_routes
@@ -42,11 +42,11 @@ class DocumentationController < ApplicationController
42
42
  end
43
43
 
44
44
  def camelize_route route
45
- APIDocumentationService.camelize_route(route)
45
+ ApiDocumentationService.camelize_route(route)
46
46
  end
47
47
 
48
48
  def get_api_routes
49
- APIDocumentationService.get_api_routes
49
+ ApiDocumentationService.get_api_routes
50
50
  end
51
51
 
52
52
  end
data/lib/utils/strings.rb CHANGED
@@ -21,7 +21,7 @@ class MoreUtils
21
21
  class << self
22
22
 
23
23
  def gem_version
24
- "0.3.6"
24
+ "0.3.7"
25
25
  end
26
26
 
27
27
  def get_file_str path
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railspp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Layne Faler