rails-playground 0.1.3 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -10
- data/app/assets/javascripts/{playground/application.js → application.js} +0 -0
- data/app/assets/javascripts/{playground/controllers → controllers}/codemirror_controller.js +0 -0
- data/app/assets/javascripts/{playground/controllers → controllers}/hello_controller.js +0 -0
- data/app/assets/javascripts/{playground/controllers → controllers}/playground_controller.js +0 -0
- data/app/assets/javascripts/{playground/controllers → controllers}/search_scripts_controller.js +0 -0
- data/app/assets/javascripts/{playground/controllers → controllers}/select_script_controller.js +0 -0
- data/app/assets/stylesheets/{playground/application.scss → application.scss} +0 -0
- data/app/controllers/playground/consoles_controller.rb +2 -0
- data/app/views/layouts/playground/{application.html.erb → editor.html.erb} +0 -0
- data/lib/playground/version.rb +1 -1
- data/vendor/stylesheets/playground/application.css.map +1 -1
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61ae4d99a817329f335744ea7d4eed1c7266bdb921c89d42b58d79171f3b984d
|
4
|
+
data.tar.gz: f4901fb8399f9c7605c9e60c8da0273db6dc982cd3c3bdc24af348b4f4e4eada
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2f3defb633fe584c097eec64cf3aca3e44c9a15ed5b495bf17ac444a7d3b533599476527019d9c70c6d3a4484426e4d652fe88ba15b6ff32bdbd5770d2bcb7e
|
7
|
+
data.tar.gz: 0e97901fea5df37ce536a55d6bb755cfbb81fae0212141ea87dafade43b553bc5af6f186378b80086d1336bacbdc3594ff38b8705c7bfa81652b1d113605926f
|
data/README.md
CHANGED
@@ -12,7 +12,7 @@ Inspired by the Go playground and SQL Server Management Studio (SSMS) Query Edit
|
|
12
12
|
|
13
13
|
### Script Management
|
14
14
|
|
15
|
-
The gem also comes with a script management tool to help share useful scripts with your
|
15
|
+
The gem also comes with a script management tool to help share useful scripts with your teammates. Shared scripts stay close to the code and become more maintainable while personal scripts are git ignored and don't pollute the git history.
|
16
16
|
|
17
17
|
## Usage
|
18
18
|
|
@@ -34,7 +34,7 @@ See [Ignoring personal scripts](#ignoring-personal-scripts) to share scripts wit
|
|
34
34
|
|
35
35
|
### Query Editor
|
36
36
|
|
37
|
-
Playground is built on top of `web-console` gem. Just like `web-console`, it's only meant to be used in development. Every `web-console` information still holds
|
37
|
+
Playground is built on top of `web-console` gem. Just like `web-console`, it's only meant to be used in development. Every `web-console` information still holds for `rails-playground`. Check `web-console` [repository for more information](https://github.com/rails/web-console)
|
38
38
|
|
39
39
|
Add this line to your application's Gemfile under the development group:
|
40
40
|
|
@@ -51,22 +51,22 @@ And then execute:
|
|
51
51
|
$ bundle
|
52
52
|
```
|
53
53
|
|
54
|
-
Finally mount the engine in your routes file and access the web playground at `/playground` on your
|
54
|
+
Finally, mount the engine in your routes file and access the web playground at `/playground` on your localhost.
|
55
55
|
|
56
56
|
```ruby
|
57
57
|
Rails.application.routes.draw do
|
58
|
-
mount Playground::Engine => "/playground"
|
58
|
+
mount Playground::Engine => "/playground" if Rails.env.development?
|
59
59
|
# ...
|
60
60
|
end
|
61
61
|
```
|
62
62
|
|
63
|
-
_Nothing stops you from choosing any relative path. For example you could switch from `/playground` to `/rails/play`._
|
63
|
+
_Nothing stops you from choosing any relative path. For example, you could switch from `/playground` to `/rails/play`._
|
64
64
|
|
65
65
|
### Ignoring personal scripts
|
66
66
|
|
67
|
-
|
68
|
-
|
69
|
-
|
67
|
+
Any changes made to ignored scripts won't be recorded in your git history.
|
68
|
+
Adding a folder from lib/playground in `.gitignore` will, however, still show in the sidebar.
|
69
|
+
**Decide on a convention** with your teammates and commit the path to your `.gitignore`.
|
70
70
|
|
71
71
|
**Example**
|
72
72
|
|
@@ -104,7 +104,7 @@ my_app/
|
|
104
104
|
├─ .gitignore
|
105
105
|
```
|
106
106
|
|
107
|
-
##
|
107
|
+
## Troubleshooting
|
108
108
|
|
109
109
|
### Session :id is no longer available in memory.
|
110
110
|
|
@@ -117,7 +117,7 @@ this request hit doesn't store e96248aec85b3006488c276b9468a4d8 in memory. Consi
|
|
117
117
|
processes/workers to one (1) or using a different server in development.
|
118
118
|
```
|
119
119
|
|
120
|
-
This is a known `web-console` error
|
120
|
+
This is a known `web-console` error that happens when you run a multi-threaded server locally.
|
121
121
|
To solve this problem make sure to set the number of processes/worker to 1 on your local server.
|
122
122
|
|
123
123
|
## License
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/app/assets/javascripts/{playground/controllers → controllers}/search_scripts_controller.js
RENAMED
File without changes
|
data/app/assets/javascripts/{playground/controllers → controllers}/select_script_controller.js
RENAMED
File without changes
|
File without changes
|
File without changes
|
data/lib/playground/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../../app/assets/stylesheets/
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../app/assets/stylesheets/application.scss"],"names":[],"mappings":"AAAA;EAAkB;EAAiB;EAAa;;AAC9C;EAAW;EACT;EAAoB;;AACpB;EACE;;AAIJ;EAAmB;;AAEnB;EAAQ;EAAa;EAAc;;AACnC;EAAW;;AAEX;EACE;EACG;EACK;;AAGV;EAAS;EAAiB;EAAc;EAAa;;AACrD;EAAQ;EAAsB;;AAC9B;EAAgB;;AAEhB;EAAiC;;AAC/B;EAAe;;AACf;EAAa;EAA8B;EAAO;EAAS;EAAU","file":"application.css"}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-playground
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexandre Barret
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: web-console
|
@@ -48,13 +48,13 @@ files:
|
|
48
48
|
- MIT-LICENSE
|
49
49
|
- README.md
|
50
50
|
- Rakefile
|
51
|
-
- app/assets/javascripts/
|
52
|
-
- app/assets/javascripts/
|
53
|
-
- app/assets/javascripts/
|
54
|
-
- app/assets/javascripts/
|
55
|
-
- app/assets/javascripts/
|
56
|
-
- app/assets/javascripts/
|
57
|
-
- app/assets/stylesheets/
|
51
|
+
- app/assets/javascripts/application.js
|
52
|
+
- app/assets/javascripts/controllers/codemirror_controller.js
|
53
|
+
- app/assets/javascripts/controllers/hello_controller.js
|
54
|
+
- app/assets/javascripts/controllers/playground_controller.js
|
55
|
+
- app/assets/javascripts/controllers/search_scripts_controller.js
|
56
|
+
- app/assets/javascripts/controllers/select_script_controller.js
|
57
|
+
- app/assets/stylesheets/application.scss
|
58
58
|
- app/controllers/playground/application_controller.rb
|
59
59
|
- app/controllers/playground/consoles_controller.rb
|
60
60
|
- app/controllers/playground/scripts_controller.rb
|
@@ -64,7 +64,7 @@ files:
|
|
64
64
|
- app/jobs/playground/application_job.rb
|
65
65
|
- app/mailers/playground/application_mailer.rb
|
66
66
|
- app/models/playground/application_record.rb
|
67
|
-
- app/views/layouts/playground/
|
67
|
+
- app/views/layouts/playground/editor.html.erb
|
68
68
|
- app/views/playground/consoles/show.html.erb
|
69
69
|
- app/views/playground/scripts/_script.html.erb
|
70
70
|
- app/views/playground/scripts/_script_select_box.html.erb
|
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
requirements: []
|
105
|
-
rubygems_version: 3.
|
105
|
+
rubygems_version: 3.3.7
|
106
106
|
signing_key:
|
107
107
|
specification_version: 4
|
108
108
|
summary: A local playground for Rails applications.
|