soybean 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/soybean +17 -3
- data/lib/soybean/generators/model_spec_generator.rb +2 -2
- data/soybean.gemspec +1 -2
- metadata +18 -19
- data/spec/spec/services/models/get_registrars_service.rb +0 -14
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.
|
1
|
+
2.1.1
|
data/bin/soybean
CHANGED
@@ -10,21 +10,35 @@ require 'soybean'
|
|
10
10
|
class Soybean::CLI < Thor
|
11
11
|
include Thor::Actions
|
12
12
|
class_options :quiet => :boolean, :force => :boolean, :pretend => :boolean
|
13
|
+
class_option :remove, :type => :boolean, :aliases => [:undo]
|
13
14
|
|
14
15
|
desc "types [PATH_TO_XSD]", "Generate Ruby classes for xsd-schema from file_path.xsd"
|
15
16
|
def types(location, destination = '.')
|
16
17
|
Soybean::Generators::TypesGenerator.new(URI.parse(location)).generate do |filename, content|
|
17
|
-
|
18
|
+
if options[:remove]
|
19
|
+
remove_file File.join(destination, filename), options
|
20
|
+
else
|
21
|
+
create_file File.join(destination, filename), content, options
|
22
|
+
end
|
18
23
|
end
|
19
24
|
end
|
20
25
|
|
21
26
|
desc "service [PATH_TO_WSDL] [DESTINATION_DIR]", "Generate classes for WebService from WSDL"
|
22
27
|
def service(wsdl, dir)
|
23
28
|
Soybean::Generators::ServiceGenerator.new(dir, wsdl, spec_dir(dir)).generate do |filename, content|
|
24
|
-
|
29
|
+
if options[:remove]
|
30
|
+
remove_file filename, options
|
31
|
+
else
|
32
|
+
create_file filename, content, options
|
33
|
+
end
|
25
34
|
end
|
26
35
|
end
|
27
36
|
|
37
|
+
desc "version", "Show current version"
|
38
|
+
def version
|
39
|
+
puts File.read File.expand_path('../../VERSION', __FILE__)
|
40
|
+
end
|
41
|
+
|
28
42
|
no_tasks do
|
29
43
|
def spec_dir(dir)
|
30
44
|
default_spec_dir = "spec/#{dir}/models"
|
@@ -37,4 +51,4 @@ class Soybean::CLI < Thor
|
|
37
51
|
end
|
38
52
|
end
|
39
53
|
|
40
|
-
Soybean::CLI.start
|
54
|
+
Soybean::CLI.start
|
@@ -8,7 +8,7 @@ module Soybean
|
|
8
8
|
# @param model [ModelGenerator]
|
9
9
|
def initialize(model, spec_dir)
|
10
10
|
@model, @spec_dir = model, spec_dir
|
11
|
-
@name = model.name
|
11
|
+
@name = model.name + '_spec'
|
12
12
|
end
|
13
13
|
|
14
14
|
def fullpath(basedir)
|
@@ -36,4 +36,4 @@ module Soybean
|
|
36
36
|
|
37
37
|
end
|
38
38
|
end
|
39
|
-
end
|
39
|
+
end
|
data/soybean.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{soybean}
|
8
|
-
s.version = "2.1.
|
8
|
+
s.version = "2.1.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Anton Sozontov"]
|
@@ -45,7 +45,6 @@ Gem::Specification.new do |s|
|
|
45
45
|
"lib/soybean/literal_mapping_registry_creator.rb",
|
46
46
|
"soybean.gemspec",
|
47
47
|
"spec/soybean_spec.rb",
|
48
|
-
"spec/spec/services/models/get_registrars_service.rb",
|
49
48
|
"spec/spec_helper.rb",
|
50
49
|
"vendor/soap4r/soap/attachment.rb",
|
51
50
|
"vendor/soap4r/soap/attrproxy.rb",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soybean
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ default_executable: soybean
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: thor
|
17
|
-
requirement: &
|
17
|
+
requirement: &11354520 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *11354520
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: activesupport
|
28
|
-
requirement: &
|
28
|
+
requirement: &11353880 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: '3.1'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *11353880
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: i18n
|
39
|
-
requirement: &
|
39
|
+
requirement: &11353360 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
version: '0'
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *11353360
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: rspec
|
50
|
-
requirement: &
|
50
|
+
requirement: &11352760 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ~>
|
@@ -55,10 +55,10 @@ dependencies:
|
|
55
55
|
version: 2.3.0
|
56
56
|
type: :development
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *11352760
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: yard
|
61
|
-
requirement: &
|
61
|
+
requirement: &11352100 !ruby/object:Gem::Requirement
|
62
62
|
none: false
|
63
63
|
requirements:
|
64
64
|
- - ~>
|
@@ -66,10 +66,10 @@ dependencies:
|
|
66
66
|
version: 0.6.0
|
67
67
|
type: :development
|
68
68
|
prerelease: false
|
69
|
-
version_requirements: *
|
69
|
+
version_requirements: *11352100
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: bundler
|
72
|
-
requirement: &
|
72
|
+
requirement: &11351360 !ruby/object:Gem::Requirement
|
73
73
|
none: false
|
74
74
|
requirements:
|
75
75
|
- - ~>
|
@@ -77,10 +77,10 @@ dependencies:
|
|
77
77
|
version: 1.0.0
|
78
78
|
type: :development
|
79
79
|
prerelease: false
|
80
|
-
version_requirements: *
|
80
|
+
version_requirements: *11351360
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
82
|
name: jeweler
|
83
|
-
requirement: &
|
83
|
+
requirement: &11337120 !ruby/object:Gem::Requirement
|
84
84
|
none: false
|
85
85
|
requirements:
|
86
86
|
- - ~>
|
@@ -88,10 +88,10 @@ dependencies:
|
|
88
88
|
version: 1.6.4
|
89
89
|
type: :development
|
90
90
|
prerelease: false
|
91
|
-
version_requirements: *
|
91
|
+
version_requirements: *11337120
|
92
92
|
- !ruby/object:Gem::Dependency
|
93
93
|
name: rcov
|
94
|
-
requirement: &
|
94
|
+
requirement: &11336260 !ruby/object:Gem::Requirement
|
95
95
|
none: false
|
96
96
|
requirements:
|
97
97
|
- - ! '>='
|
@@ -99,7 +99,7 @@ dependencies:
|
|
99
99
|
version: '0'
|
100
100
|
type: :development
|
101
101
|
prerelease: false
|
102
|
-
version_requirements: *
|
102
|
+
version_requirements: *11336260
|
103
103
|
description: ! 'Generate soap web-services from you wsdl. Generate: all classes from
|
104
104
|
xsd, and other.'
|
105
105
|
email: a.sozontov@gmail.com
|
@@ -136,7 +136,6 @@ files:
|
|
136
136
|
- lib/soybean/literal_mapping_registry_creator.rb
|
137
137
|
- soybean.gemspec
|
138
138
|
- spec/soybean_spec.rb
|
139
|
-
- spec/spec/services/models/get_registrars_service.rb
|
140
139
|
- spec/spec_helper.rb
|
141
140
|
- vendor/soap4r/soap/attachment.rb
|
142
141
|
- vendor/soap4r/soap/attrproxy.rb
|
@@ -313,7 +312,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
313
312
|
version: '0'
|
314
313
|
segments:
|
315
314
|
- 0
|
316
|
-
hash:
|
315
|
+
hash: 3122320076611588572
|
317
316
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
318
317
|
none: false
|
319
318
|
requirements:
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
require 'spec_helper'
|
3
|
-
|
4
|
-
describe GetRegistrarsService do
|
5
|
-
|
6
|
-
it 'should be subclass of GetRegistrarsInterface' do
|
7
|
-
GetRegistrarsService.should < GetRegistrarsInterface
|
8
|
-
end
|
9
|
-
|
10
|
-
it 'should overload all interface methods (actions)' do
|
11
|
-
GetRegistrarsService.actions.should eql GetRegistrarsInterface.actions
|
12
|
-
end
|
13
|
-
|
14
|
-
end
|