service_contract-generator 0.0.3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/service_contract/generator/version.rb +1 -1
- data/template/module.rb.erb +9 -7
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b438064eba713e0293371c1bb0d2545cb22f2a2
|
4
|
+
data.tar.gz: 2f60753ae5a63302ebc1b4580801a241fb8c8854
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 545aa28afc5594c947925be222a12418cc40c484f39627766c95494a1c54f15238a84e05ee0ca2e15097977c5474a3dd6696942dc463fdfd83f61031002c7611
|
7
|
+
data.tar.gz: 92cdd47f3e2e3cdcd5274edd38006530365a09c080ece2ac8e2ca00c287816a0655b9cc65197c62cbc08c33ef3a14873649d7547296e45fc54cd3ec36ff39d2d
|
data/template/module.rb.erb
CHANGED
@@ -1,8 +1,10 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
require 'service_contract'
|
2
|
+
|
3
|
+
<% module_names.each_with_index do |name, i| %>
|
4
|
+
<%= " " * i %>module <%= name %>
|
5
|
+
<% end %>
|
6
|
+
<%= " " * module_names.length %>autoload :Documentation, "<%= path %>/documentation"
|
7
|
+
<%= " " * module_names.length %>autoload :Service, "<%= path %>/service"
|
8
|
+
<% module_names.each_with_index do |name, i| %>
|
9
|
+
<%= " " * (module_names.length - i - 1) %>end
|
3
10
|
<% end %>
|
4
|
-
autoload :Documentation, "<%= path %>/documentation"
|
5
|
-
autoload :Service, "<%= path %>/service"
|
6
|
-
<% module_names.each do |name| %>
|
7
|
-
end
|
8
|
-
<% end %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: service_contract-generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Ching
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -109,9 +109,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
109
|
version: '0'
|
110
110
|
requirements: []
|
111
111
|
rubyforge_project:
|
112
|
-
rubygems_version: 2.
|
112
|
+
rubygems_version: 2.5.2
|
113
113
|
signing_key:
|
114
114
|
specification_version: 4
|
115
115
|
summary: Generates service contracts
|
116
116
|
test_files: []
|
117
|
-
has_rdoc:
|