ruby_native 0.0.5 → 0.0.6
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 964767ba60eef5d5f816a3644ea585e029fbf6e46f196c8882a0bfa391d4a649
|
|
4
|
+
data.tar.gz: 5e0a6be4f2692a36911c2641fabcf50fb85676bbf351fb603c561f909753931e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3011427d8748de602bdb099b2247c52c346eb956b2f4300157efad9df75556fa77740ef45629e08cbe7aabe4e31963d5d2f93a69263ad398826b3f1a2c8bed65
|
|
7
|
+
data.tar.gz: d9e25c1151c74c9bcddab33fb4125f6af3f388319f4eab2afe5f7d2d7b9be7fa51943a26eab833ddb4449700c3767535ee5ce1d5b6a118aa1a2a746599cc28bc
|
data/README.md
CHANGED
|
@@ -23,7 +23,7 @@ This creates `config/ruby_native.yml` with sensible defaults. If you have a `.cl
|
|
|
23
23
|
1. Edit the config with your app name, colors, and tabs
|
|
24
24
|
2. Add `<%= stylesheet_link_tag :ruby_native %>` to your layout `<head>`
|
|
25
25
|
3. Add `<%= native_tabs_tag %>` to your layout `<body>`
|
|
26
|
-
4. Run `ruby_native preview` to see it on your phone
|
|
26
|
+
4. Run `bundle exec ruby_native preview` to see it on your phone
|
|
27
27
|
|
|
28
28
|
Using Claude Code? Open it in your project and ask "what do I need to do next?" for guided setup.
|
|
29
29
|
|
|
@@ -60,7 +60,7 @@ background_color:
|
|
|
60
60
|
Preview your app on a real device without deploying. This starts a Cloudflare tunnel and displays a QR code for the companion app to scan.
|
|
61
61
|
|
|
62
62
|
```bash
|
|
63
|
-
ruby_native preview
|
|
63
|
+
bundle exec ruby_native preview
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
Options:
|
|
@@ -35,7 +35,7 @@ module RubyNative
|
|
|
35
35
|
say " 3. Add to your layout <body>:"
|
|
36
36
|
say " <%= native_tabs_tag %>"
|
|
37
37
|
say " 4. Preview on your device:"
|
|
38
|
-
say " ruby_native preview"
|
|
38
|
+
say " bundle exec ruby_native preview"
|
|
39
39
|
say ""
|
|
40
40
|
if File.directory?(File.join(destination_root, ".claude"))
|
|
41
41
|
say " Tip: .claude/ruby_native.md was added with setup instructions."
|
|
@@ -33,7 +33,7 @@ rails generate ruby_native:install
|
|
|
33
33
|
6. Preview on your phone:
|
|
34
34
|
|
|
35
35
|
```bash
|
|
36
|
-
ruby_native preview
|
|
36
|
+
bundle exec ruby_native preview
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
Scan the QR code with the Ruby Native Preview app from the App Store.
|
|
@@ -100,7 +100,7 @@ Signal elements are hidden `<div>` tags. Place them in the `<body>`, not the `<h
|
|
|
100
100
|
|
|
101
101
|
## Preview
|
|
102
102
|
|
|
103
|
-
`ruby_native preview` starts a Cloudflare tunnel and displays a QR code. Requires `cloudflared`:
|
|
103
|
+
`bundle exec ruby_native preview` starts a Cloudflare tunnel and displays a QR code. Requires `cloudflared`:
|
|
104
104
|
|
|
105
105
|
```bash
|
|
106
106
|
brew install cloudflare/cloudflare/cloudflared
|
|
@@ -122,7 +122,7 @@ The Preview app remembers the scanned URL. Long-press the app icon and tap "Swit
|
|
|
122
122
|
|
|
123
123
|
The gem auto-mounts at `/native`. No route configuration needed.
|
|
124
124
|
|
|
125
|
-
- `GET /native/config
|
|
125
|
+
- `GET /native/config` returns the YAML config as JSON
|
|
126
126
|
- `POST /native/push/devices` registers a push notification device token
|
|
127
127
|
|
|
128
128
|
## Common tasks
|
|
@@ -5,10 +5,10 @@ module RubyNative
|
|
|
5
5
|
class Preview
|
|
6
6
|
TUNNEL_URL_PATTERN = %r{https://[a-z0-9-]+\.trycloudflare\.com}
|
|
7
7
|
|
|
8
|
-
BLACK_BG = "\033[
|
|
9
|
-
WHITE_BG = "\033[
|
|
10
|
-
BLACK_FG = "\033[
|
|
11
|
-
WHITE_FG = "\033[
|
|
8
|
+
BLACK_BG = "\033[40m"
|
|
9
|
+
WHITE_BG = "\033[107m"
|
|
10
|
+
BLACK_FG = "\033[30m"
|
|
11
|
+
WHITE_FG = "\033[97m"
|
|
12
12
|
RESET = "\033[0m"
|
|
13
13
|
|
|
14
14
|
def initialize(argv)
|
data/lib/ruby_native/version.rb
CHANGED