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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6943c548d9910886fefa4a121b493c1cdc40b06ab34059c4deac3fac3ac86018
4
- data.tar.gz: def52388edde0250a098f4ffa4c02e0fe691d7aa0383b1049c2ac1c178be559b
3
+ metadata.gz: 833ee6403127ec6df4f7fcb42cca062b48d7e719902059f982451278eade0209
4
+ data.tar.gz: 234cb926954f458d8f98d3b5e2dc8dd8e831bf0dd5d724ebd14e9686e7ce0219
5
5
  SHA512:
6
- metadata.gz: 7bdaecaa1892409cfdde1f9e6f7161acd430065e470c35a73e95a25ace1bad76f303802226952965fa8e109b8848ee4fc42c6a6db3fefb5bc0b691140b705bb1
7
- data.tar.gz: b67256819c46021c2de3e11e89fa5d6c7acc51064256913d5c9e5b44ebec3184c9b0b68e9461e0d4141246c32f0363da6f423fb306781287d78f3d04b23982bd
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
@@ -82,6 +82,11 @@ signals:
82
82
  renders_when:
83
83
  toolbar: false
84
84
  singleton: true
85
+ data-native-locale:
86
+ since: "0.18.2"
87
+ helper: native_locale_tag
88
+ always: true
89
+ singleton: true
85
90
  data-native-menu:
86
91
  since: "0.14.0"
87
92
  helper: native_menu_tag
@@ -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-----
@@ -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
@@ -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(
@@ -3,7 +3,7 @@ module RubyNative
3
3
  class VerificationError < StandardError; end
4
4
 
5
5
  module Verifiable
6
- APPLE_ROOT_CERT_PATH = File.join(__dir__, "..", "certs", "AppleRootCA-G3.cer")
6
+ APPLE_ROOT_CERT_PATH = File.join(__dir__, "..", "certs", "AppleRootCA-G3.pem")
7
7
 
8
8
  private
9
9