CapicuaGen 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +19 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/CapicuaGen.gemspec +57 -0
- data/Gemfile +4 -0
- data/LICENSE +165 -0
- data/README.md +36 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/capicuagen.rb +26 -0
- data/lib/CapicuaGen/Examples/Example/Source/example_feature.rb +63 -0
- data/lib/CapicuaGen/Examples/Example/Template/SplashForm.designer.erb +141 -0
- data/lib/CapicuaGen/Examples/Example/Template/SplashForm.erb +160 -0
- data/lib/CapicuaGen/Examples/Example/Template/SplashForm.resx.erb +535 -0
- data/lib/CapicuaGen/Mixins/attributes_mixin.rb +62 -0
- data/lib/CapicuaGen/Mixins/parameter_mixin.rb +46 -0
- data/lib/CapicuaGen/Mixins/reflection_mixin.rb +83 -0
- data/lib/CapicuaGen/Tools/message_helper.rb +105 -0
- data/lib/CapicuaGen/Tools/template_helper.rb +87 -0
- data/lib/CapicuaGen/Tools/xml_helper.rb +100 -0
- data/lib/CapicuaGen/attribute_mixer.rb +77 -0
- data/lib/CapicuaGen/capicua_gen.rb +38 -0
- data/lib/CapicuaGen/feature.rb +151 -0
- data/lib/CapicuaGen/file_information.rb +52 -0
- data/lib/CapicuaGen/generator.rb +289 -0
- data/lib/CapicuaGen/generator_command_line.rb +216 -0
- data/lib/CapicuaGen/target.rb +49 -0
- data/lib/CapicuaGen/template.rb +39 -0
- data/lib/CapicuaGen/template_feature.rb +331 -0
- data/lib/CapicuaGen/template_target.rb +60 -0
- data/lib/CapicuaGen/version.rb +3 -0
- metadata +185 -0
@@ -0,0 +1,60 @@
|
|
1
|
+
=begin
|
2
|
+
|
3
|
+
CapicuaGen
|
4
|
+
|
5
|
+
CapicuaGen es un software que ayuda a la creación automática de
|
6
|
+
sistemas empresariales a través de la definición y ensamblado de
|
7
|
+
diversos generadores de características.
|
8
|
+
|
9
|
+
El proyecto fue iniciado por José Luis Bautista Martin, el 6 de enero
|
10
|
+
del 2016.
|
11
|
+
|
12
|
+
Puede modificar y distribuir este software, según le plazca, y usarlo
|
13
|
+
para cualquier fin ya sea comercial, personal, educativo, o de cualquier
|
14
|
+
índole, siempre y cuando incluya este mensaje, y se permita acceso el
|
15
|
+
código fuente.
|
16
|
+
|
17
|
+
Este software es código libre, y se licencia bajo LGPL.
|
18
|
+
|
19
|
+
Para más información consultar http://www.gnu.org/licenses/lgpl.html
|
20
|
+
=end
|
21
|
+
|
22
|
+
require_relative 'Mixins/reflection_mixin'
|
23
|
+
|
24
|
+
module CapicuaGen
|
25
|
+
|
26
|
+
# Define el objetivo de una plantilla
|
27
|
+
class TemplateTarget
|
28
|
+
include CapicuaGen
|
29
|
+
|
30
|
+
public
|
31
|
+
attr_accessor :name, :out_file, :template_name, :append_outdir, :types, :copy_only
|
32
|
+
|
33
|
+
def initialize(attributes= {})
|
34
|
+
initialize_properties(attributes)
|
35
|
+
|
36
|
+
@name= @template_name if @template_name and not @name
|
37
|
+
|
38
|
+
# Configuro los parametros de tipo
|
39
|
+
@types= []
|
40
|
+
if attributes[:types]
|
41
|
+
@types= attributes[:types]
|
42
|
+
@types= [@types] if @types and not @types.instance_of?(Array)
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
46
|
+
|
47
|
+
|
48
|
+
# Indica que el destino es de un tipo determinado
|
49
|
+
def is_type?(type)
|
50
|
+
return type.include?(type)
|
51
|
+
end
|
52
|
+
|
53
|
+
# Indica que el destino es de un tipo determinado
|
54
|
+
def is_any_type?(types)
|
55
|
+
return (@types & types).length>0
|
56
|
+
end
|
57
|
+
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
metadata
ADDED
@@ -0,0 +1,185 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: CapicuaGen
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- José Luis Bautista Martín
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-04-15 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.11'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.11'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: activesupport
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 2.3.18
|
48
|
+
- - "~>"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '2.3'
|
51
|
+
type: :runtime
|
52
|
+
prerelease: false
|
53
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: 2.3.18
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '2.3'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: nokogiri
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: 1.6.7
|
68
|
+
- - "~>"
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '1.6'
|
71
|
+
type: :runtime
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 1.6.7
|
78
|
+
- - "~>"
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '1.6'
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: uuidtools
|
83
|
+
requirement: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - ">="
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: 2.1.5
|
88
|
+
- - "~>"
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '2.1'
|
91
|
+
type: :runtime
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: 2.1.5
|
98
|
+
- - "~>"
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: '2.1'
|
101
|
+
description: |-
|
102
|
+
CapicuaGen es un software que ayuda a la creación automática de
|
103
|
+
sistemas empresariales a través de la definición y ensamblado de
|
104
|
+
diversos generadores de características.
|
105
|
+
|
106
|
+
El proyecto fue iniciado por José Luis Bautista Martin, el 6 de enero
|
107
|
+
del 2016.
|
108
|
+
|
109
|
+
Puede modificar y distribuir este software, según le plazca, y usarlo
|
110
|
+
para cualquier fin ya sea comercial, personal, educativo, o de cualquier
|
111
|
+
índole, siempre y cuando incluya este mensaje, y se permita acceso el
|
112
|
+
código fuente.
|
113
|
+
|
114
|
+
Este software es código libre, y se licencia bajo LGPL.
|
115
|
+
|
116
|
+
Para más información consultar http://www.gnu.org/licenses/lgpl.html
|
117
|
+
email:
|
118
|
+
- joseluisbautista@gmail.com
|
119
|
+
executables:
|
120
|
+
- capicuagen.rb
|
121
|
+
extensions: []
|
122
|
+
extra_rdoc_files: []
|
123
|
+
files:
|
124
|
+
- ".gitignore"
|
125
|
+
- ".rspec"
|
126
|
+
- ".travis.yml"
|
127
|
+
- CODE_OF_CONDUCT.md
|
128
|
+
- CapicuaGen.gemspec
|
129
|
+
- Gemfile
|
130
|
+
- Gemfile.lock
|
131
|
+
- LICENSE
|
132
|
+
- README.md
|
133
|
+
- Rakefile
|
134
|
+
- bin/console
|
135
|
+
- bin/setup
|
136
|
+
- exe/capicuagen.rb
|
137
|
+
- lib/CapicuaGen/Examples/Example/Source/example_feature.rb
|
138
|
+
- lib/CapicuaGen/Examples/Example/Template/SplashForm.designer.erb
|
139
|
+
- lib/CapicuaGen/Examples/Example/Template/SplashForm.erb
|
140
|
+
- lib/CapicuaGen/Examples/Example/Template/SplashForm.resx.erb
|
141
|
+
- lib/CapicuaGen/Mixins/attributes_mixin.rb
|
142
|
+
- lib/CapicuaGen/Mixins/parameter_mixin.rb
|
143
|
+
- lib/CapicuaGen/Mixins/reflection_mixin.rb
|
144
|
+
- lib/CapicuaGen/Tools/message_helper.rb
|
145
|
+
- lib/CapicuaGen/Tools/template_helper.rb
|
146
|
+
- lib/CapicuaGen/Tools/xml_helper.rb
|
147
|
+
- lib/CapicuaGen/attribute_mixer.rb
|
148
|
+
- lib/CapicuaGen/capicua_gen.rb
|
149
|
+
- lib/CapicuaGen/feature.rb
|
150
|
+
- lib/CapicuaGen/file_information.rb
|
151
|
+
- lib/CapicuaGen/generator.rb
|
152
|
+
- lib/CapicuaGen/generator_command_line.rb
|
153
|
+
- lib/CapicuaGen/target.rb
|
154
|
+
- lib/CapicuaGen/template.rb
|
155
|
+
- lib/CapicuaGen/template_feature.rb
|
156
|
+
- lib/CapicuaGen/template_target.rb
|
157
|
+
- lib/CapicuaGen/version.rb
|
158
|
+
homepage: http://desdelashorasextras.blogspot.mx/
|
159
|
+
licenses:
|
160
|
+
- LGPL
|
161
|
+
metadata:
|
162
|
+
allowed_push_host: https://rubygems.org
|
163
|
+
post_install_message:
|
164
|
+
rdoc_options: []
|
165
|
+
require_paths:
|
166
|
+
- lib
|
167
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
168
|
+
requirements:
|
169
|
+
- - ">="
|
170
|
+
- !ruby/object:Gem::Version
|
171
|
+
version: '0'
|
172
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
173
|
+
requirements:
|
174
|
+
- - ">="
|
175
|
+
- !ruby/object:Gem::Version
|
176
|
+
version: '0'
|
177
|
+
requirements: []
|
178
|
+
rubyforge_project:
|
179
|
+
rubygems_version: 2.4.5.1
|
180
|
+
signing_key:
|
181
|
+
specification_version: 4
|
182
|
+
summary: CapicuaGen es un software que ayuda a la creación automática de sistemas
|
183
|
+
empresariales a través de la definición y ensamblado de diversos generadores de
|
184
|
+
características.
|
185
|
+
test_files: []
|