runways 0.1.2 → 0.1.3

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: 462747751a101183cf479cd462cf8a924929df86b323b9ad0b19844e1f4e537b
4
- data.tar.gz: 4eeb8da232f3bb589b6c77de475c9f98d55635c23156c97e167d8f1eee064434
3
+ metadata.gz: 9b887d735634ca76463779c730df9fb62ce64a6618697f775c6bd1f783b0d69e
4
+ data.tar.gz: a74b0b08877f7e230180f30b06d854b05c904f133151e4b30e0cb51e6b9a23d4
5
5
  SHA512:
6
- metadata.gz: 0f6a3e1cd8862c1d4ef8bd2479960c890d0dff68f684949f08059c68bcafd0509a337f566508cfdd70b0d756462bc2a02e2f0a9b0e8e46bcceaab5ab1e385597
7
- data.tar.gz: 44e530f76eb06b082d2911331ab18de6e9a71ab89f90840276c59d7c2c5f635f4ac9729a1e291f36aea639766116e9467a508067a6154eaae91c9c5d9e20cbee
6
+ metadata.gz: 1ac4be00b2486f7e7003cf422f8bc858dab9568352ca44af44f950b4543ba49992c4a8ce682699ceeec9880fd50fdec2596ec2fd13b6eb844af569cac8206a2a
7
+ data.tar.gz: 3f21357b3d9debd068ce06a0c432dd7f529efc729b33a0446a3ae6c2b7201315713f1778ee612a3544f2edc91d3e0965f0eb3c0c2ade669f26cc7707b3d7e966
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- runways (0.1.2)
4
+ runways (0.1.3)
5
5
  activerecord (~> 5.2)
6
6
  grpc (~> 1.16)
7
7
  grpc-tools (~> 1.16)
data/README.md CHANGED
@@ -12,6 +12,10 @@ Create a new runways application
12
12
 
13
13
  $ runways hello
14
14
 
15
+ Run the following rake task to update protobuf files
16
+ ```ruby
17
+ rake protobuf_files:update
18
+ ```
15
19
  ## Development
16
20
 
17
21
  After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -77,6 +77,10 @@ class AppStructure < Thor::Group
77
77
  template("templates/db_config.tt", "#{name}/config/db_config.rb")
78
78
  end
79
79
 
80
+ def generate_protofub_file
81
+ template("templates/protobuf_rake.tt", "#{name}/lib/tasks/generate_protobuf_files.rake")
82
+ end
83
+
80
84
  private
81
85
  def create_following_dirs(dir_paths)
82
86
  dir_paths.each do |dir_path|
@@ -0,0 +1,7 @@
1
+ namespace :protobuf_files do
2
+ desc 'Update protobuf files'
3
+ task :update do
4
+ lang = ARGV[1] || 'ruby'
5
+ `grpc_tools_ruby_protoc -I proto --ruby_out=lib/protos --grpc_out=lib/protos proto/<%= name.underscore %>.proto`
6
+ end
7
+ end
@@ -1,3 +1,3 @@
1
1
  module Runways
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runways
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - NG
@@ -122,6 +122,7 @@ files:
122
122
  - lib/runways/generators/templates/gemfile.tt
123
123
  - lib/runways/generators/templates/models.tt
124
124
  - lib/runways/generators/templates/proto.tt
125
+ - lib/runways/generators/templates/protobuf_rake.tt
125
126
  - lib/runways/generators/templates/rakefile.tt
126
127
  - lib/runways/generators/templates/server.tt
127
128
  - lib/runways/generators/templates/service.tt
@@ -148,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
149
  version: '0'
149
150
  requirements: []
150
151
  rubyforge_project:
151
- rubygems_version: 2.7.7
152
+ rubygems_version: 2.7.8
152
153
  signing_key:
153
154
  specification_version: 4
154
155
  summary: Ruby application based on GRPC protocol