ruby_native 0.18.0 → 0.18.2
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 +4 -4
- data/README.md +4 -0
- data/config/signals.yml +5 -0
- data/lib/ruby_native/certs/AppleRootCA-G3.pem +15 -0
- data/lib/ruby_native/engine.rb +0 -6
- data/lib/ruby_native/helper.rb +4 -0
- data/lib/ruby_native/iap/verifiable.rb +1 -1
- data/lib/ruby_native/icons/sf_symbols.tsv +7769 -7769
- data/lib/ruby_native/version.rb +1 -1
- data/lib/ruby_native.rb +22 -2
- metadata +2 -2
- data/lib/ruby_native/certs/AppleRootCA-G3.cer +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 833ee6403127ec6df4f7fcb42cca062b48d7e719902059f982451278eade0209
|
|
4
|
+
data.tar.gz: 234cb926954f458d8f98d3b5e2dc8dd8e831bf0dd5d724ebd14e9686e7ce0219
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e244d2e734b9b59d143b1d97c66301aa8733632d4d65897508f6aace6a1668a90ef2771396220bd3dfd7c22420ebbc0a599d55d01e2e5dbadfd064072e13f4a2
|
|
7
|
+
data.tar.gz: e90eacfe5a6c86de36fdb0ae9ad9b80dcbb4ae9be5dc4b9f03ec5977c8f2673abc0aebd8a10dbd25e8f1bdd3e5cedfa2d22d91f7b869c58dd990626d1168b973
|
data/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
[Ruby Native](https://rubynative.com) turns a Rails app into iOS and Android apps. This gem is the Rails-side integration: view helpers, a YAML config file, endpoints auto-mounted at `/native`, and a CLI for previewing and deploying builds. Full docs, including the complete helper reference and config schema, live at [rubynative.com/docs](https://rubynative.com/docs).
|
|
4
4
|
|
|
5
|
+
It is built for teams with a Rails product whose customers want an app. You keep one codebase and one roadmap: Ruby Native renders the HTML you already write as native tab bars, navigation, forms, and push notifications, builds the apps in the cloud with no Xcode or Android Studio, and submits them to the App Store and Google Play. A coding agent can drive every step through the bundled MCP server, stopping only for the few clicks Apple keeps for a person. Apps built with it run on 150,000+ devices. Pricing is one plan per app, $199 a month or $1,990 a year, at [rubynative.com/pricing](https://rubynative.com/pricing); the phone preview costs nothing and needs no account.
|
|
6
|
+
|
|
5
7
|
## Installation
|
|
6
8
|
|
|
7
9
|
```ruby
|
|
@@ -121,6 +123,8 @@ bundle exec ruby_native mcp install
|
|
|
121
123
|
|
|
122
124
|
Then say: set up Ruby Native in this app.
|
|
123
125
|
|
|
126
|
+
Installed as the Claude Code plugin (`claude plugin marketplace add ruby-native/gem`, then `claude plugin install ruby-native@ruby-native`), the server is the same command. The plugin asks for an optional Ruby Native token; leave it blank and the account tools use the login `ruby_native login` stored on this machine.
|
|
127
|
+
|
|
124
128
|
Or, in a client that takes JSON:
|
|
125
129
|
|
|
126
130
|
```json
|
data/config/signals.yml
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
|
2
|
+
MIICQzCCAcmgAwIBAgIILcX8iNLFS5UwCgYIKoZIzj0EAwMwZzEbMBkGA1UEAwwS
|
|
3
|
+
QXBwbGUgUm9vdCBDQSAtIEczMSYwJAYDVQQLDB1BcHBsZSBDZXJ0aWZpY2F0aW9u
|
|
4
|
+
IEF1dGhvcml0eTETMBEGA1UECgwKQXBwbGUgSW5jLjELMAkGA1UEBhMCVVMwHhcN
|
|
5
|
+
MTQwNDMwMTgxOTA2WhcNMzkwNDMwMTgxOTA2WjBnMRswGQYDVQQDDBJBcHBsZSBS
|
|
6
|
+
b290IENBIC0gRzMxJjAkBgNVBAsMHUFwcGxlIENlcnRpZmljYXRpb24gQXV0aG9y
|
|
7
|
+
aXR5MRMwEQYDVQQKDApBcHBsZSBJbmMuMQswCQYDVQQGEwJVUzB2MBAGByqGSM49
|
|
8
|
+
AgEGBSuBBAAiA2IABJjpLz1AcqTtkyJygRMc3RCV8cWjTnHcFBbZDuWmBSp3ZHtf
|
|
9
|
+
TjjTuxxEtX/1H7YyYl3J6YRbTzBPEVoA/VhYDKX1DyxNB0cTddqXl5dvMVztK517
|
|
10
|
+
IDvYuVTZXpmkOlEKMaNCMEAwHQYDVR0OBBYEFLuw3qFYM4iapIqZ3r6966/ayySr
|
|
11
|
+
MA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMAoGCCqGSM49BAMDA2gA
|
|
12
|
+
MGUCMQCD6cHEFl4aXTQY2e3v9GwOAEZLuN+yRhHFD/3meoyhpmvOwgPUnPWTxnS4
|
|
13
|
+
at+qIxUCMG1mihDK1A3UT82NQz60imOlM27jbdoXt2QfyFMm+YhidDkLF1vLUagM
|
|
14
|
+
6BgD56KyKA==
|
|
15
|
+
-----END CERTIFICATE-----
|
data/lib/ruby_native/engine.rb
CHANGED
|
@@ -32,12 +32,6 @@ module RubyNative
|
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
-
initializer "ruby_native.config" do
|
|
36
|
-
config.after_initialize do
|
|
37
|
-
RubyNative.load_config
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
|
|
41
35
|
initializer "ruby_native.oauth_middleware", before: :build_middleware_stack do |app|
|
|
42
36
|
app.middleware.insert_before ActionDispatch::Cookies, RubyNative::OAuthMiddleware
|
|
43
37
|
end
|
data/lib/ruby_native/helper.rb
CHANGED
|
@@ -38,6 +38,10 @@ module RubyNative
|
|
|
38
38
|
OpenSSL::HMAC.hexdigest("SHA256", Rails.application.secret_key_base, parts.join(":"))[0, 16]
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
+
def native_locale_tag(locale = I18n.locale)
|
|
42
|
+
tag.div(data: { native_locale: locale }, hidden: true)
|
|
43
|
+
end
|
|
44
|
+
|
|
41
45
|
def native_back_button_tag(text = nil, **options)
|
|
42
46
|
options[:class] = [options[:class], "native-back-button"].compact.join(" ")
|
|
43
47
|
default_content = tag.svg(
|