boiler 0.0.13 → 0.0.14
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.
- data/lib/boiler/generator/thrift.rb +5 -5
- data/lib/boiler/version.rb +1 -1
- metadata +4 -4
@@ -25,10 +25,10 @@ module Boiler::Generator
|
|
25
25
|
require 'bundler/setup'
|
26
26
|
require '#{gem}'
|
27
27
|
|
28
|
-
Thrifty.require('#{server}')
|
28
|
+
Thrifty.require('#{server}_interface')
|
29
29
|
|
30
30
|
class #{self.module}::#{server.capitalize}Srv < Chalk::Thrift::Server::Base
|
31
|
-
interface #{self.module}::Thrift::#{server.capitalize}
|
31
|
+
interface #{self.module}::Thrift::#{server.capitalize}Interface
|
32
32
|
set :port, #{@port}
|
33
33
|
|
34
34
|
def example(arg)
|
@@ -65,13 +65,13 @@ require 'bundler/setup'
|
|
65
65
|
require 'chalk-cli'
|
66
66
|
require '#{gem}'
|
67
67
|
|
68
|
-
Thrifty.require('#{server}')
|
68
|
+
Thrifty.require('#{server}_interface')
|
69
69
|
|
70
70
|
class #{self.module}::Client < Chalk::CLI::Command
|
71
71
|
def invoke
|
72
72
|
thrift_client = Chalk::Thrift::Client::Base.new(
|
73
73
|
['127.0.0.1:#{@port}'],
|
74
|
-
:interface => #{self.module}::Thrift::#{server.capitalize}
|
74
|
+
:interface => #{self.module}::Thrift::#{server.capitalize}Interface
|
75
75
|
)
|
76
76
|
result = thrift_client.example('argument')
|
77
77
|
puts result
|
@@ -107,7 +107,7 @@ EOF
|
|
107
107
|
relative_write_file("thrift/#{server}.thrift", <<EOF)
|
108
108
|
namespace rb #{self.module.gsub('::', '.')}.Thrift
|
109
109
|
|
110
|
-
service #{server.capitalize} {
|
110
|
+
service #{server.capitalize}Interface {
|
111
111
|
string example(1: string arg);
|
112
112
|
}
|
113
113
|
EOF
|
data/lib/boiler/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: boiler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-12-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -162,7 +162,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
162
162
|
version: '0'
|
163
163
|
segments:
|
164
164
|
- 0
|
165
|
-
hash:
|
165
|
+
hash: 3869104672704628150
|
166
166
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
167
167
|
none: false
|
168
168
|
requirements:
|
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
171
171
|
version: '0'
|
172
172
|
segments:
|
173
173
|
- 0
|
174
|
-
hash:
|
174
|
+
hash: 3869104672704628150
|
175
175
|
requirements: []
|
176
176
|
rubyforge_project:
|
177
177
|
rubygems_version: 1.8.23
|