slash_console 0.1.2 → 0.1.4

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: fb5381d321cbd1238e698244b9ba04050b9937627204199f3fef59880f3981f7
4
- data.tar.gz: bd81d8a72cc75213c81e140fc560a20126e3ecc2f77632b8f9e49b880c068d69
3
+ metadata.gz: eb63a5b059ae9d711cdaf34435c86829ada9cb92a50b0599d8b571efae6dc1ff
4
+ data.tar.gz: 596977091e038ecb3a9da8dcc74d278da2fe30f2fd569e5896a50965091634cf
5
5
  SHA512:
6
- metadata.gz: d992fbf5cf7924b605437bcd2c4b3d10587dc070ceea934cbdd667490c8f5a726eabc3f2c3b4e44ae8f5710a76dec8ed03cb73662c8219b7cb5424c4da921d7d
7
- data.tar.gz: 1aa4751859732584429ce5ce62bca7b947fb17b4e89b7140056e4180d48378efffe0d3634451d712e038fc3346b93d138bf8cfdd0a476add776afcafc126ed2f
6
+ metadata.gz: 35d2c6cf00fda4a2e950fd04c925e463d74df9331d0559a65080ddf6702838344628e3f255b8ef06f9e15c6562088d80502fbf666996ff7ebeac9015b435f067
7
+ data.tar.gz: f666530036a635c0b35f7e842929ffa57989bce870dfde848c21c289225e89f722c1bc7555485cc6b4cc159a83aec9258e44def4cac4bfe7e81a99630eb1f717
data/CHANGELOG.md ADDED
@@ -0,0 +1,50 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ## [0.1.4] - 2025-09-15
11
+
12
+ ### Fixed
13
+ - Allow console access from all IPs in production (with authentication)
14
+ - Fix blank page issue on cloud platforms like Render
15
+
16
+ ### Changed
17
+ - Add security note about IP allowlist in README
18
+
19
+ ## [0.1.3] - 2025-09-15
20
+
21
+ ### Changed
22
+ - Add proper GitHub repository metadata links
23
+ - Add bug tracker and documentation URIs
24
+ - Specify minimum Ruby version (>= 3.0)
25
+ - Include CHANGELOG.md in gem files
26
+
27
+ ## [0.1.2] - 2025-09-15
28
+
29
+ ### Fixed
30
+ - Configure web-console earlier in boot process using before_initialize
31
+ - Properly initialize web_console config to prevent production deployment errors
32
+
33
+ ## [0.1.1] - 2025-09-15
34
+
35
+ ### Fixed
36
+ - Configure web-console to allow production mode deployment
37
+ - Prevent "Web Console is activated in production" error on Render and similar platforms
38
+
39
+ ## [0.1.0] - 2025-09-15
40
+
41
+ ### Added
42
+ - Initial release
43
+ - Auto-mounting at `/rails/console`
44
+ - Production authentication via environment variables
45
+ - Full-page console interface
46
+ - Development mode with no authentication required
47
+ - Standard Ruby style guide compliance
48
+
49
+ [Unreleased]: https://github.com/firstdraft/slash_console/compare/v0.1.0...HEAD
50
+ [0.1.0]: https://github.com/firstdraft/slash_console/releases/tag/v0.1.0
data/README.md CHANGED
@@ -43,6 +43,7 @@ Without these environment variables, you'll see an error message explaining what
43
43
 
44
44
  - Only use for applications where the security trade-offs are acceptable. Basically, only for toy apps; never where real user data is at risk. For serious apps, SSH into the server and run `rails console` at the command-line.
45
45
  - Make up a strong, unique `ADMIN_PASSWORD` for each app.
46
+ - In production, the gem allows console access from all IP addresses (0.0.0.0/0) when authenticated. The authentication layer is your only protection.
46
47
 
47
48
  ## How It Works
48
49
 
@@ -5,6 +5,10 @@ module SlashConsole
5
5
  config.before_initialize do
6
6
  Rails.application.config.web_console ||= ActiveSupport::OrderedOptions.new
7
7
  Rails.application.config.web_console.development_only = false
8
+
9
+ if Rails.env.production?
10
+ Rails.application.config.web_console.allowed_ips = "0.0.0.0/0"
11
+ end
8
12
  end
9
13
 
10
14
  initializer "slash_console.mount_engine" do |app|
@@ -1,3 +1,3 @@
1
1
  module SlashConsole
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slash_console
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raghu Betina
@@ -59,6 +59,7 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
+ - CHANGELOG.md
62
63
  - MIT-LICENSE
63
64
  - README.md
64
65
  - Rakefile
@@ -79,6 +80,8 @@ metadata:
79
80
  homepage_uri: https://github.com/firstdraft/slash_console
80
81
  source_code_uri: https://github.com/firstdraft/slash_console
81
82
  changelog_uri: https://github.com/firstdraft/slash_console/blob/main/CHANGELOG.md
83
+ bug_tracker_uri: https://github.com/firstdraft/slash_console/issues
84
+ documentation_uri: https://github.com/firstdraft/slash_console#readme
82
85
  rdoc_options: []
83
86
  require_paths:
84
87
  - lib
@@ -86,7 +89,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
86
89
  requirements:
87
90
  - - ">="
88
91
  - !ruby/object:Gem::Version
89
- version: '0'
92
+ version: '3.0'
90
93
  required_rubygems_version: !ruby/object:Gem::Requirement
91
94
  requirements:
92
95
  - - ">="