solrengine 0.1.0 → 0.1.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 -12
- data/lib/generators/solrengine/install_generator.rb +9 -16
- data/lib/solrengine/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5311f5c4b52a5b67c95454ce224452a0148ca31f6fe71f1777a43250d521f924
|
|
4
|
+
data.tar.gz: 5e0a9084f3da9f442faafda2de8b48e13e1a1a14f7a32e0326ea0cc99b491151
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 27810ebc010cb2d636b76bbfa51d941af704a63cb6b53aa249e9c68faea8652bb6a42478e52645d26451aa4576855617df6ad2908843a7a210dfb89c6388e2a6
|
|
7
|
+
data.tar.gz: cefee65ab037c017312c8f5b779541aa0409530b6c319cd3811b33102ecf8bc5b7a433f6525c585cf9b1da88c80d3c86b2b9c60bd2af923d34fdbaa0fceff374
|
data/README.md
CHANGED
|
@@ -15,16 +15,8 @@ cd my_solana_app
|
|
|
15
15
|
|
|
16
16
|
### 2. Add SolRengine to your Gemfile
|
|
17
17
|
|
|
18
|
-
Once published to RubyGems, this will be just `gem "solrengine"`. During pre-release:
|
|
19
|
-
|
|
20
18
|
```ruby
|
|
21
|
-
gem "solrengine"
|
|
22
|
-
gem "solrengine-auth", github: "solrengine/auth", branch: "main"
|
|
23
|
-
gem "solrengine-rpc", github: "solrengine/rpc", branch: "main"
|
|
24
|
-
gem "solrengine-tokens", github: "solrengine/tokens", branch: "main"
|
|
25
|
-
gem "solrengine-transactions", github: "solrengine/transactions", branch: "main"
|
|
26
|
-
gem "solrengine-realtime", github: "solrengine/realtime", branch: "main"
|
|
27
|
-
gem "solrengine-programs", github: "solrengine/programs", branch: "master"
|
|
19
|
+
gem "solrengine"
|
|
28
20
|
gem "dotenv-rails", group: [:development, :test]
|
|
29
21
|
```
|
|
30
22
|
|
|
@@ -34,7 +26,7 @@ gem "dotenv-rails", group: [:development, :test]
|
|
|
34
26
|
bundle install
|
|
35
27
|
rails generate solrengine:install
|
|
36
28
|
rails db:prepare
|
|
37
|
-
yarn add @solana/kit @wallet-standard/app @solana/wallet-standard-features @rails/actioncable
|
|
29
|
+
yarn add @solrengine/wallet-utils @solana/kit @wallet-standard/app @solana/wallet-standard-features @rails/actioncable
|
|
38
30
|
```
|
|
39
31
|
|
|
40
32
|
### 4. Start
|
|
@@ -52,7 +44,7 @@ Visit `localhost:3000/auth/login` — connect your wallet and sign in.
|
|
|
52
44
|
- Creates `Transfer` model with confirmation tracking
|
|
53
45
|
- Sets up multi-database SQLite (primary, cache, queue, cable)
|
|
54
46
|
- Configures Solid Queue, Solid Cache, and Solid Cable for development
|
|
55
|
-
-
|
|
47
|
+
- Registers wallet controller from [@solrengine/wallet-utils](https://github.com/solrengine/wallet-utils)
|
|
56
48
|
- Adds Tailwind sources for gem views
|
|
57
49
|
- Creates `.env` template, `bin/solana_monitor`, and Procfile entries
|
|
58
50
|
- Mounts auth engine at `/auth` (login, nonce, verify, logout)
|
|
@@ -156,4 +148,4 @@ end
|
|
|
156
148
|
|
|
157
149
|
## License
|
|
158
150
|
|
|
159
|
-
MIT. A [
|
|
151
|
+
MIT. A [moviendo.me](https://moviendo.me) project.
|
|
@@ -3,7 +3,9 @@ class Solrengine::InstallGenerator < Rails::Generators::Base
|
|
|
3
3
|
|
|
4
4
|
def run_sub_generators
|
|
5
5
|
generate "solrengine:auth:install"
|
|
6
|
+
sleep 1 # Ensure unique migration timestamps
|
|
6
7
|
generate "solrengine:tokens:install"
|
|
8
|
+
sleep 1
|
|
7
9
|
generate "solrengine:transactions:install"
|
|
8
10
|
end
|
|
9
11
|
|
|
@@ -85,31 +87,22 @@ class Solrengine::InstallGenerator < Rails::Generators::Base
|
|
|
85
87
|
end
|
|
86
88
|
|
|
87
89
|
def install_stimulus_controllers
|
|
88
|
-
#
|
|
89
|
-
auth_gem_path = %w[solrengine-auth].filter_map { |n|
|
|
90
|
-
spec = Gem.loaded_specs[n] || Bundler.load.specs.find { |s| s.name == n }
|
|
91
|
-
spec&.full_gem_path
|
|
92
|
-
}.first
|
|
93
|
-
|
|
94
|
-
if auth_gem_path
|
|
95
|
-
wallet_src = File.join(auth_gem_path, "app/assets/javascripts/solrengine/auth/wallet_controller.js")
|
|
96
|
-
if File.exist?(wallet_src)
|
|
97
|
-
copy_file wallet_src, "app/javascript/controllers/wallet_controller.js"
|
|
98
|
-
end
|
|
99
|
-
end
|
|
100
|
-
|
|
101
|
-
# Register in index.js
|
|
90
|
+
# Register shared controllers from @solrengine/wallet-utils
|
|
102
91
|
index_js = "app/javascript/controllers/index.js"
|
|
103
92
|
if File.exist?(index_js)
|
|
104
93
|
content = File.read(index_js)
|
|
105
94
|
unless content.include?("WalletController")
|
|
106
95
|
append_to_file index_js, <<~JS
|
|
107
96
|
|
|
108
|
-
import WalletController from "
|
|
97
|
+
import { WalletController } from "@solrengine/wallet-utils/controllers"
|
|
109
98
|
application.register("wallet", WalletController)
|
|
110
99
|
JS
|
|
111
100
|
end
|
|
112
101
|
end
|
|
102
|
+
|
|
103
|
+
# Remove local wallet_controller.js if it exists (now in npm package)
|
|
104
|
+
local_wallet = "app/javascript/controllers/wallet_controller.js"
|
|
105
|
+
remove_file local_wallet if File.exist?(local_wallet)
|
|
113
106
|
end
|
|
114
107
|
|
|
115
108
|
def fix_stylesheet_link
|
|
@@ -137,7 +130,7 @@ class Solrengine::InstallGenerator < Rails::Generators::Base
|
|
|
137
130
|
say ""
|
|
138
131
|
say " Next steps:"
|
|
139
132
|
say " 1. rails db:prepare"
|
|
140
|
-
say " 2. yarn add @solana/kit @wallet-standard/app @solana/wallet-standard-features @rails/actioncable"
|
|
133
|
+
say " 2. yarn add @solrengine/wallet-utils @solana/kit @wallet-standard/app @solana/wallet-standard-features @rails/actioncable"
|
|
141
134
|
say " 3. Configure .env with your RPC URLs"
|
|
142
135
|
say " 4. bin/dev"
|
|
143
136
|
say " 5. Visit /auth/login"
|
data/lib/solrengine/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: solrengine
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jose Ferrer
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-03-
|
|
11
|
+
date: 2026-03-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: solrengine-auth
|