CapicuaGen 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +23 -19
- data/.rspec +2 -2
- data/.travis.yml +4 -4
- data/CODE_OF_CONDUCT.md +48 -48
- data/CapicuaGen.gemspec +60 -57
- data/Gemfile +4 -4
- data/README.md +57 -36
- data/Rakefile +2 -2
- data/bin/console +14 -14
- data/bin/setup +8 -8
- data/exe/{capicuagen.rb → capicuagen} +2 -0
- data/lib/CapicuaGen/Examples/Example/Source/example_feature.rb +2 -2
- data/lib/CapicuaGen/Examples/Example/Template/Gemfile.erb +8 -0
- data/lib/CapicuaGen/Examples/Example/Template/generator.erb +240 -0
- data/lib/CapicuaGen/Examples/Example/Template/instnwnd.erb +9336 -0
- data/lib/CapicuaGen/Tools/message_helper.rb +45 -6
- data/lib/CapicuaGen/Tools/template_helper.rb +86 -86
- data/lib/CapicuaGen/Tools/xml_helper.rb +100 -100
- data/lib/CapicuaGen/generator.rb +157 -32
- data/lib/CapicuaGen/generator_command_line.rb +55 -3
- data/lib/CapicuaGen/template_feature.rb +26 -10
- data/lib/CapicuaGen/version.rb +3 -3
- metadata +22 -8
- data/lib/CapicuaGen/Examples/Example/Template/SplashForm.designer.erb +0 -141
- data/lib/CapicuaGen/Examples/Example/Template/SplashForm.erb +0 -160
- data/lib/CapicuaGen/Examples/Example/Template/SplashForm.resx.erb +0 -535
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b954ff08cf81228dab37ecaa146876fc57d624c5
|
4
|
+
data.tar.gz: 3eb21d1811b703bf7d2b06858e2f1a7fe287679b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc6b05e104d51c062074e9946dcde1099e302bf434134d1d8bc8f26f12c756095d017679404aec4d17d64df5096e2dbc0b0540c269bfb3b5ff25b2283f999560
|
7
|
+
data.tar.gz: 05a62e81f4915bd11011abde0f541d2b3176d593cbf62a5e50d9470507d16749626c2f945938820aaebecc93d7529efba99b146554e6bc1ffb89ec78b959eea0
|
data/.gitignore
CHANGED
@@ -1,19 +1,23 @@
|
|
1
|
-
/.bundle/
|
2
|
-
/.yardoc
|
3
|
-
/Gemfile.lock
|
4
|
-
/_yardoc/
|
5
|
-
/coverage/
|
6
|
-
/doc/
|
7
|
-
/pkg/
|
8
|
-
/spec/reports/
|
9
|
-
/tmp/
|
10
|
-
/*.gem
|
11
|
-
/.idea/.rakeTasks
|
12
|
-
/.idea/CapicuaGen.iml
|
13
|
-
/.idea/encodings.xml
|
14
|
-
/.idea/misc.xml
|
15
|
-
/.idea/modules.xml
|
16
|
-
/.idea/runConfigurations/main.xml
|
17
|
-
/.idea/vcs.xml
|
18
|
-
/.idea/workspace.xml
|
19
|
-
/.idea
|
1
|
+
/.bundle/
|
2
|
+
/.yardoc
|
3
|
+
/Gemfile.lock
|
4
|
+
/_yardoc/
|
5
|
+
/coverage/
|
6
|
+
/doc/
|
7
|
+
/pkg/
|
8
|
+
/spec/reports/
|
9
|
+
/tmp/
|
10
|
+
/*.gem
|
11
|
+
/.idea/.rakeTasks
|
12
|
+
/.idea/CapicuaGen.iml
|
13
|
+
/.idea/encodings.xml
|
14
|
+
/.idea/misc.xml
|
15
|
+
/.idea/modules.xml
|
16
|
+
/.idea/runConfigurations/main.xml
|
17
|
+
/.idea/vcs.xml
|
18
|
+
/.idea/workspace.xml
|
19
|
+
/.idea
|
20
|
+
/althazar/*.gem
|
21
|
+
/ssential/*.gem
|
22
|
+
/aspar/*.gem
|
23
|
+
/elchior/*.gem
|
data/.rspec
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
--format documentation
|
2
|
-
--color
|
1
|
+
--format documentation
|
2
|
+
--color
|
data/.travis.yml
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
language: ruby
|
2
|
-
rvm:
|
3
|
-
- 2.2.3
|
4
|
-
before_install: gem install bundler -v 1.11.2
|
1
|
+
language: ruby
|
2
|
+
rvm:
|
3
|
+
- 2.2.3
|
4
|
+
before_install: gem install bundler -v 1.11.2
|
data/CODE_OF_CONDUCT.md
CHANGED
@@ -1,49 +1,49 @@
|
|
1
|
-
# Contributor Code of Conduct
|
2
|
-
|
3
|
-
As contributors and maintainers of this project, and in the interest of
|
4
|
-
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
-
contribute through reporting issues, posting feature requests, updating
|
6
|
-
documentation, submitting pull requests or patches, and other activities.
|
7
|
-
|
8
|
-
We are committed to making participation in this project a harassment-free
|
9
|
-
experience for everyone, regardless of level of experience, gender, gender
|
10
|
-
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
-
body size, race, ethnicity, age, religion, or nationality.
|
12
|
-
|
13
|
-
Examples of unacceptable behavior by participants include:
|
14
|
-
|
15
|
-
* The use of sexualized language or imagery
|
16
|
-
* Personal attacks
|
17
|
-
* Trolling or insulting/derogatory comments
|
18
|
-
* Public or private harassment
|
19
|
-
* Publishing other's private information, such as physical or electronic
|
20
|
-
addresses, without explicit permission
|
21
|
-
* Other unethical or unprofessional conduct
|
22
|
-
|
23
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
-
threatening, offensive, or harmful.
|
28
|
-
|
29
|
-
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
-
fairly and consistently applying these principles to every aspect of managing
|
31
|
-
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
-
Conduct may be permanently removed from the project team.
|
33
|
-
|
34
|
-
This code of conduct applies both within project spaces and in public spaces
|
35
|
-
when an individual is representing the project or its community.
|
36
|
-
|
37
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
-
reported by contacting a project maintainer at jbautista@bansi.com.mx. All
|
39
|
-
complaints will be reviewed and investigated and will result in a response that
|
40
|
-
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
-
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
-
incident.
|
43
|
-
|
44
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
-
version 1.3.0, available at
|
46
|
-
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
-
|
48
|
-
[homepage]: http://contributor-covenant.org
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at jbautista@bansi.com.mx. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
49
|
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/CapicuaGen.gemspec
CHANGED
@@ -1,57 +1,60 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'CapicuaGen/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = "CapicuaGen"
|
8
|
-
spec.version = CapicuaGen::VERSION
|
9
|
-
spec.authors = ["José Luis Bautista Martín"]
|
10
|
-
spec.email = ["joseluisbautista@gmail.com"]
|
11
|
-
spec.date = Date.today.to_s
|
12
|
-
|
13
|
-
|
14
|
-
spec.summary = %q{CapicuaGen es un software que ayuda a la creación automática de
|
15
|
-
sistemas empresariales a través de la definición y ensamblado de
|
16
|
-
diversos generadores de características.
|
17
|
-
}
|
18
|
-
spec.description = %q{CapicuaGen es un software que ayuda a la creación automática de
|
19
|
-
sistemas empresariales a través de la definición y ensamblado de
|
20
|
-
diversos generadores de características.
|
21
|
-
|
22
|
-
El proyecto fue iniciado por José Luis Bautista Martin, el 6 de enero
|
23
|
-
del 2016.
|
24
|
-
|
25
|
-
Puede modificar y distribuir este software, según le plazca, y usarlo
|
26
|
-
para cualquier fin ya sea comercial, personal, educativo, o de cualquier
|
27
|
-
índole, siempre y cuando incluya este mensaje, y se permita acceso el
|
28
|
-
código fuente.
|
29
|
-
|
30
|
-
Este software es código libre, y se licencia bajo LGPL.
|
31
|
-
|
32
|
-
Para más información consultar http://www.gnu.org/licenses/lgpl.html}
|
33
|
-
|
34
|
-
spec.homepage = "http://desdelashorasextras.blogspot.mx/"
|
35
|
-
spec.licenses = ['LGPL']
|
36
|
-
|
37
|
-
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
38
|
-
# delete this section to allow pushing this gem to any host.
|
39
|
-
if spec.respond_to?(:metadata)
|
40
|
-
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
41
|
-
else
|
42
|
-
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
43
|
-
end
|
44
|
-
|
45
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|\.idea)/}) }
|
46
|
-
spec.bindir = "exe"
|
47
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
48
|
-
spec.require_paths = ["lib"]
|
49
|
-
|
50
|
-
spec.add_development_dependency "bundler", "~> 1.11"
|
51
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
52
|
-
|
53
|
-
spec.add_runtime_dependency 'activesupport', '>=2.3.18', '~>2.3'
|
54
|
-
spec.add_runtime_dependency 'nokogiri', '>=1.6.7', '~>1.6'
|
55
|
-
spec.add_runtime_dependency 'uuidtools', '>=2.1.5', '~>2.1'
|
56
|
-
|
57
|
-
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'CapicuaGen/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "CapicuaGen"
|
8
|
+
spec.version = CapicuaGen::VERSION
|
9
|
+
spec.authors = ["José Luis Bautista Martín"]
|
10
|
+
spec.email = ["joseluisbautista@gmail.com"]
|
11
|
+
spec.date = Date.today.to_s
|
12
|
+
|
13
|
+
|
14
|
+
spec.summary = %q{CapicuaGen es un software que ayuda a la creación automática de
|
15
|
+
sistemas empresariales a través de la definición y ensamblado de
|
16
|
+
diversos generadores de características.
|
17
|
+
}
|
18
|
+
spec.description = %q{CapicuaGen es un software que ayuda a la creación automática de
|
19
|
+
sistemas empresariales a través de la definición y ensamblado de
|
20
|
+
diversos generadores de características.
|
21
|
+
|
22
|
+
El proyecto fue iniciado por José Luis Bautista Martin, el 6 de enero
|
23
|
+
del 2016.
|
24
|
+
|
25
|
+
Puede modificar y distribuir este software, según le plazca, y usarlo
|
26
|
+
para cualquier fin ya sea comercial, personal, educativo, o de cualquier
|
27
|
+
índole, siempre y cuando incluya este mensaje, y se permita acceso el
|
28
|
+
código fuente.
|
29
|
+
|
30
|
+
Este software es código libre, y se licencia bajo LGPL.
|
31
|
+
|
32
|
+
Para más información consultar http://www.gnu.org/licenses/lgpl.html}
|
33
|
+
|
34
|
+
spec.homepage = "http://desdelashorasextras.blogspot.mx/"
|
35
|
+
spec.licenses = ['LGPL']
|
36
|
+
|
37
|
+
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
38
|
+
# delete this section to allow pushing this gem to any host.
|
39
|
+
if spec.respond_to?(:metadata)
|
40
|
+
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
41
|
+
else
|
42
|
+
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
43
|
+
end
|
44
|
+
|
45
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|\.idea)/}) }
|
46
|
+
spec.bindir = "exe"
|
47
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
48
|
+
spec.require_paths = ["lib"]
|
49
|
+
|
50
|
+
spec.add_development_dependency "bundler", "~> 1.11"
|
51
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
52
|
+
|
53
|
+
spec.add_runtime_dependency 'activesupport', '>=2.3.18', '~>2.3'
|
54
|
+
spec.add_runtime_dependency 'nokogiri', '>=1.6.7', '~>1.6'
|
55
|
+
spec.add_runtime_dependency 'uuidtools', '>=2.1.5', '~>2.1'
|
56
|
+
spec.add_runtime_dependency 'colorize', '~> 0.7.7'
|
57
|
+
|
58
|
+
spec.required_ruby_version = '>= 2.0.0'
|
59
|
+
|
60
|
+
end
|
data/Gemfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
# Specify your gem's dependencies in CapicuaGen.gemspec
|
4
|
-
gemspec
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
# Specify your gem's dependencies in CapicuaGen.gemspec
|
4
|
+
gemspec
|
data/README.md
CHANGED
@@ -1,36 +1,57 @@
|
|
1
|
-
# CapicuaGen
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
1
|
+
# CapicuaGen
|
2
|
+
|
3
|
+
CapicuaGen es un software que ayuda a la creación automática de
|
4
|
+
sistemas empresariales a través de la definición y ensamblado de
|
5
|
+
diversos generadores de características.
|
6
|
+
|
7
|
+
El proyecto fue iniciado por José Luis Bautista Martin, el 6 de enero
|
8
|
+
del 2016.
|
9
|
+
|
10
|
+
Puede modificar y distribuir este software, según le plazca, y usarlo
|
11
|
+
para cualquier fin ya sea comercial, personal, educativo, o de cualquier
|
12
|
+
índole, siempre y cuando incluya este mensaje, y se permita acceso el
|
13
|
+
código fuente.
|
14
|
+
|
15
|
+
Este software es código libre, y se licencia bajo LGPL.
|
16
|
+
|
17
|
+
Para más información consultar http://www.gnu.org/licenses/lgpl.html
|
18
|
+
|
19
|
+
|
20
|
+
## Instalación
|
21
|
+
|
22
|
+
Agrege la siguiente linea al archuivo GemFile de tu aplicación
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
gem 'CapicuaGen'
|
26
|
+
```
|
27
|
+
|
28
|
+
y ejecute:
|
29
|
+
|
30
|
+
$ bundle
|
31
|
+
|
32
|
+
O instalela manualmente con el siguiente comando
|
33
|
+
|
34
|
+
$ gem install CapicuaGen
|
35
|
+
|
36
|
+
Para obtener un ambiente completamente funcionar de CapicuaGen, puede ejecutar el siguiente comando
|
37
|
+
|
38
|
+
$ gem install CapicuaGenEssential
|
39
|
+
|
40
|
+
## Uso
|
41
|
+
|
42
|
+
CapicuaGen permite comenzar a trabajar con él desde el mismo momento en que es instalado. Para obtener un ejemplo funcional simplemente ejecutamos el comando CapicuaGen con el parámetro example:
|
43
|
+
|
44
|
+
$ capicuagen example
|
45
|
+
|
46
|
+
Se crearan los siguientes archivos:
|
47
|
+
|
48
|
+
* generator.rb: Ejemplo de un generador de codigo
|
49
|
+
* GemFile: Archivo de configuración de depencias para bundler .
|
50
|
+
* instnwnd.sql: Ejemplo de base de datos NorthWind, para Microsoft SQL Server
|
51
|
+
|
52
|
+
Revise el archivo generator.rb para tener una introducción a CapicuaGen.
|
53
|
+
|
54
|
+
## Contribuir
|
55
|
+
|
56
|
+
Reporte de fallos y solicitudes de pull son bien recibidas en https://github.com/jbautistamartin/CapicuaGen
|
57
|
+
|
data/Rakefile
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
require "bundler/gem_tasks"
|
2
|
-
task :default => :spec
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
task :default => :spec
|
data/bin/console
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "CapicuaGen/capicua_gen"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "CapicuaGen/capicua_gen"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
#!/usr/bin/env bash
|
2
|
-
set -euo pipefail
|
3
|
-
IFS=$'\n\t'
|
4
|
-
set -vx
|
5
|
-
|
6
|
-
bundle install
|
7
|
-
|
8
|
-
# Do any other automated setup that you need to do here
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
set -euo pipefail
|
3
|
+
IFS=$'\n\t'
|
4
|
+
set -vx
|
5
|
+
|
6
|
+
bundle install
|
7
|
+
|
8
|
+
# Do any other automated setup that you need to do here
|