alain 0.7.3 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4089b0af1f0afb99cd6dbde91e983980abbf5fd68f364adf7970632d05042b7d
4
- data.tar.gz: d5ee7244a3cf0342e9530cb825063beb83e874549e562079ab42857225b1d754
3
+ metadata.gz: 87db3c79dceb1f5b215cbe5f5a5ea3328cb0b0343e8af9154744493f6836fe4e
4
+ data.tar.gz: a14af1fa9cd9663a404dc353760029b6ebc15d067e0f0b1ba9068a39a8f8f301
5
5
  SHA512:
6
- metadata.gz: 7836ebc4e29faf932a6e95d9c2b2f28ab730f08adcdd635e6246c2385a5a7fc7bc8353431916359fcd8d65ccd3040e0bfafef79ef0f749386b85a90db35b2912
7
- data.tar.gz: 27696c2370f5864d6c6731c88a8defaa4f5ecde864bd7c77046b2ed6fe3f83fb1fa14bc94e4e381b002a6d4e3f4bdbd3549d0f7c7359f01e6188f231843dde80
6
+ metadata.gz: c8a9db1a02f42fdf828558f4912244d40620e2f9c3ba4b4c0890d4b5d15fa3e938e84d421f9b711af443531593220fdb21774dd3bf3423ad05bb131855a14198
7
+ data.tar.gz: 7d2b1f0faa989bdd3c8e6de16c025eff4122531005efbb37ac9a71b5aabfc2118d99fb41d7189e3d729fdc1450400fa52580e7f775af2a09139c5b053c4ec5ef
data/exe/alain CHANGED
@@ -6,7 +6,7 @@ require 'alain'
6
6
 
7
7
  class AlainCmd
8
8
  def self.generate(args, params)
9
- if check_git || params[:force_overwrite]
9
+ if params[:force_overwrite] || check_git
10
10
  Alain::Driver.new(args[0]).generate(params[:update_server], params[:server_conf])
11
11
  else
12
12
  exit 1
data/lib/alain/cargo.rb CHANGED
@@ -50,26 +50,24 @@ module Alain #:nodoc:
50
50
 
51
51
  def dependencies(server_conf)
52
52
  {
53
- 'prost' => %(prost = "0.10"),
54
- 'prost-types' => %(prost-types = "0.10"),
53
+ 'prost' => %(prost = "0.13"),
54
+ 'prost-types' => %(prost-types = "0.13"),
55
55
  'signal-hook' => %(signal-hook = "0.3.9"),
56
56
  'signal-hook-tokio' => %(signal-hook-tokio = { version = "0.3.0", 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.7"),
59
+ 'tonic' => %(tonic = "0.12"),
60
60
  'triggered' => %(triggered = "0.1.2")
61
61
  }.tap do |dep|
62
62
  if server_conf
63
63
  dep['server-conf'] = %(server-conf = { git = "https://github.com/chumaltd/server-util.git" })
64
- else
65
- dep['once_cell'] = %(once_cell = "1.5")
66
64
  end
67
65
  end
68
66
  end
69
67
 
70
68
  def build_dependencies
71
69
  {
72
- 'tonic-build' => %(tonic-build = { version = "0.7", features = ["prost"] }),
70
+ 'tonic-build' => %(tonic-build = { version = "0.12", features = ["prost"] }),
73
71
  }
74
72
  end
75
73
  end
@@ -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.3"
4
+ VERSION = "0.8.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alain
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chuma Takahiro
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-08 00:00:00.000000000 Z
11
+ date: 2024-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tomlrb
@@ -53,7 +53,7 @@ metadata:
53
53
  homepage_uri: https://github.com/chumaltd/alain
54
54
  source_code_uri: https://github.com/chumaltd/alain
55
55
  changelog_uri: https://github.com/chumaltd/alain/blob/main/CHANGELOG.md
56
- post_install_message:
56
+ post_install_message:
57
57
  rdoc_options: []
58
58
  require_paths:
59
59
  - lib
@@ -68,8 +68,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
70
  requirements: []
71
- rubygems_version: 3.3.5
72
- signing_key:
71
+ rubygems_version: 3.4.10
72
+ signing_key:
73
73
  specification_version: 4
74
74
  summary: Code generator for rust prost
75
75
  test_files: []