alain 0.7.4 → 0.8.1

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: ff0a60816e45968885ab66ac746dab74abeb3f81295a684f5308bda581c619f6
4
- data.tar.gz: b02c2cf688cc7e37dee3ddb4f0687c845376748973af57beb9296377390dbb56
3
+ metadata.gz: 0db76659f3c4add8255c897368c5398f887cc3ddf3af51a8174cfed47452055e
4
+ data.tar.gz: f408c3c7341eb1336bad3ccafeda7115334293e877b0d8e06e211490abfd42d2
5
5
  SHA512:
6
- metadata.gz: 5edc5679fdb43b7451c642cb346f0ebcd687ae18d2ac599c11f64f3d85ce79f80477341c8c05f7dab1ae36944ec166bd4f19f20d407257049ff1216d44b951b9
7
- data.tar.gz: 5ffbd155854bdf4f5a5f6d3114b02293c1055bee1bd4c98bf912f20a1421001427d8b409e42e7e0fcec5e2abea207eff9568e1cd6b552755ce036e9a0814f67d
6
+ metadata.gz: c221d61bcd4dc9d50d23f898aae25516b08ab1658527f5d5c1cb6adfefa0f8000301140f12ed0dcbc30ab0a745044f43c4396321f058b62931d56601316bc345
7
+ data.tar.gz: 5a96bb3a5883e1f285c93fd0d08ee286cc1fae3639bf2f591668b131eff0561d5fda026b80883b6c1300d336272972e26ac4790218a0b45036900fbd78c996a2
data/lib/alain/cargo.rb CHANGED
@@ -50,26 +50,25 @@ module Alain #:nodoc:
50
50
 
51
51
  def dependencies(server_conf)
52
52
  {
53
- 'prost' => %(prost = "0.12"),
54
- 'prost-types' => %(prost-types = "0.12"),
55
- 'signal-hook' => %(signal-hook = "0.3.9"),
56
- 'signal-hook-tokio' => %(signal-hook-tokio = { version = "0.3.0", features = ["futures-v0_3"] }),
53
+ 'prost' => %(prost = "0.14"),
54
+ 'prost-types' => %(prost-types = "0.14"),
55
+ 'signal-hook' => %(signal-hook = "0.4"),
56
+ 'signal-hook-tokio' => %(signal-hook-tokio = { version = "0.4", features = ["futures-v0_3"] }),
57
57
  'tokio' => %(tokio = { version = "1.0", features = ["full"] }),
58
58
  'tokio-stream' => %(tokio-stream = "0.1.2"),
59
- 'tonic' => %(tonic = "0.10"),
59
+ 'tonic' => %(tonic = "0.14"),
60
+ 'tonic-prost' => %(tonic-prost = "0.14"),
60
61
  'triggered' => %(triggered = "0.1.2")
61
62
  }.tap do |dep|
62
63
  if server_conf
63
64
  dep['server-conf'] = %(server-conf = { git = "https://github.com/chumaltd/server-util.git" })
64
- else
65
- dep['once_cell'] = %(once_cell = "1.18")
66
65
  end
67
66
  end
68
67
  end
69
68
 
70
69
  def build_dependencies
71
70
  {
72
- 'tonic-build' => %(tonic-build = { version = "0.10", features = ["prost"] }),
71
+ 'tonic-prost-build' => %(tonic-prost-build = { version = "0.14" }),
73
72
  }
74
73
  end
75
74
  end
data/lib/alain/proto.rb CHANGED
@@ -38,7 +38,7 @@ module Alain #:nodoc:
38
38
 
39
39
  def compile_protos
40
40
  <<~EOS
41
- tonic_build::compile_protos("#{@path}")?;
41
+ tonic_prost_build::compile_protos("#{@path}")?;
42
42
  EOS
43
43
  end
44
44
 
@@ -4,8 +4,8 @@ use <%= cargo.crate_name %>::{start_server, handle_signals};
4
4
  <% if @server_conf -%>
5
5
  use server_conf::SERVER_BIND;
6
6
  <% else -%>
7
- use once_cell::sync::Lazy;
8
- pub static SERVER_BIND: Lazy<std::net::SocketAddr> = Lazy::new(|| {
7
+ use std::sync::LazyLock;
8
+ pub static SERVER_BIND: LazyLock<std::net::SocketAddr> = LazyLock::new(|| {
9
9
  format!("{}:{}", "0.0.0.0", 50051)
10
10
  .parse().unwrap()
11
11
  });
data/lib/alain/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alain
4
- VERSION = "0.7.4"
4
+ VERSION = "0.8.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alain
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chuma Takahiro
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2023-10-12 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: tomlrb
@@ -24,6 +23,20 @@ dependencies:
24
23
  - - "~>"
25
24
  - !ruby/object:Gem::Version
26
25
  version: '2.0'
26
+ - !ruby/object:Gem::Dependency
27
+ name: racc
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - "~>"
31
+ - !ruby/object:Gem::Version
32
+ version: '1.8'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '1.8'
27
40
  description: Code generator for rust prost
28
41
  email:
29
42
  - co.chuma@gmail.com
@@ -53,7 +66,6 @@ metadata:
53
66
  homepage_uri: https://github.com/chumaltd/alain
54
67
  source_code_uri: https://github.com/chumaltd/alain
55
68
  changelog_uri: https://github.com/chumaltd/alain/blob/main/CHANGELOG.md
56
- post_install_message:
57
69
  rdoc_options: []
58
70
  require_paths:
59
71
  - lib
@@ -68,8 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
80
  - !ruby/object:Gem::Version
69
81
  version: '0'
70
82
  requirements: []
71
- rubygems_version: 3.4.10
72
- signing_key:
83
+ rubygems_version: 3.6.7
73
84
  specification_version: 4
74
85
  summary: Code generator for rust prost
75
86
  test_files: []