rails-playground 0.1.3 → 0.1.4

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: c5d5800f9c04a8449c5e520056e457acab68951d4783f62d30c6541381849d27
4
- data.tar.gz: 4014749efc1a68c455f4b4de557eb536ab318da0952f641f9db83d3a6ef97f15
3
+ metadata.gz: 6d3e5a3ae8b3a38899b61d42c37b61b13f1820c612c57198a3f2641b7d8aea2c
4
+ data.tar.gz: c970296e4765132b69025b20219ee1139602b55f592e228fd05ad3b94ca4848c
5
5
  SHA512:
6
- metadata.gz: 7e97e6a7cffd849003910390193c0c4fa9bb0b2845933a7d46ada8a63f3e0d8d43a02d0eb4901f82f8dc7290e476d01f7884c46e0d28c1674ea1f33f72b328e0
7
- data.tar.gz: b6ea1137cfcf04e059038966720144bcbc40ec5a0a2cdb08f2ec7eb9bec9ae49ee61bbc045eefe9986de68b91a0c7faaef4a94a980c59e98d7a43667e24a2af6
6
+ metadata.gz: 10aa1fb4f1ad7bd86133ead919c4fe1a437b02437f4bb732ade6de3d27239066c494aaea6a6b553566590fa1e5ec592656885bec52062016a9d46e15644216ff
7
+ data.tar.gz: f2feb2be90d401bf5d02133e13022dece8f6fad2256093470ae47d192c57380cb49eb78b363b09f2189751589ce85cbfac1c9a0babe3d6e4920f1c7448a1c59a
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 teamates. Shared scripts stay close to the code and become more maintainable while personal scripts are git ignored and don't pollute the git history.
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 true for `rails-playground`. Check `web-console` [repository for more information](https://github.com/rails/web-console)
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 local host.
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
- Adding a folder from lib/playground in `.gitignore` will still show in the sidebar.
68
- **Decide on a convention** with your teamates and commit the path to your `.gitignore`.
69
- Unlike any other scripts, any changes made to ignored scripts won't be recorded in your git history.
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
- ## Troubleshouting
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 which happened when you run a multi threaded server locally.
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
@@ -1,3 +1,3 @@
1
1
  module Playground
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
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.3
4
+ version: 0.1.4
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-03-13 00:00:00.000000000 Z
11
+ date: 2022-03-17 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/playground/application.js
52
- - app/assets/javascripts/playground/controllers/codemirror_controller.js
53
- - app/assets/javascripts/playground/controllers/hello_controller.js
54
- - app/assets/javascripts/playground/controllers/playground_controller.js
55
- - app/assets/javascripts/playground/controllers/search_scripts_controller.js
56
- - app/assets/javascripts/playground/controllers/select_script_controller.js
57
- - app/assets/stylesheets/playground/application.scss
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