CapicuaGenBalthazar 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 +11 -11
- data/.rspec +2 -2
- data/.travis.yml +4 -4
- data/CODE_OF_CONDUCT.md +48 -48
- data/CapicuaGenBalthazar.gemspec +61 -60
- data/Gemfile +4 -4
- data/README.md +58 -41
- data/Rakefile +6 -6
- data/bin/console +14 -14
- data/bin/setup +8 -8
- data/lib/CapicuaGenBalthazar/{AndroidLenguaje/AndroContextProvider → AndroidLanguage/AndyContextProvider}/Source/andy_context_provider_feature.rb +0 -0
- data/lib/CapicuaGenBalthazar/GUI/AndyMainActivity/Source/andy_main_activity_feature.rb +14 -1
- data/lib/CapicuaGenBalthazar/GUI/AndySplashActivity/Source/andy_splash_activity_feature.rb +14 -1
- data/lib/CapicuaGenBalthazar/balthazar.rb +1 -1
- data/lib/CapicuaGenBalthazar/version.rb +3 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57f3ea44fbc464aab231e6d8ad8fc1de26dbf0f5
|
4
|
+
data.tar.gz: cc64223d7359088d212eca5cd2019e93e7b11cb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9532c4f086e65c51606abec17f4518f7e4e402b15f953db94702895bcec30701a8b1c926e9a871167be2ebd9024a43d5b52f5ca68ca59f9780550ead291e215
|
7
|
+
data.tar.gz: d83fe8bf7d1e1205566fc09ca9c6ce0ca23ce9b5832af19ea2bb955583b9c55aeb615121ab0eb282f2724be99578ab868e98ea46672da468ee23cdb94dac3593
|
data/.gitignore
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
/.bundle/
|
2
|
-
/.yardoc
|
3
|
-
/Gemfile.lock
|
4
|
-
/_yardoc/
|
5
|
-
/coverage/
|
6
|
-
/doc/
|
7
|
-
/pkg/
|
8
|
-
/spec/reports/
|
9
|
-
/tmp/
|
10
|
-
/.idea
|
11
|
-
/*.gem
|
1
|
+
/.bundle/
|
2
|
+
/.yardoc
|
3
|
+
/Gemfile.lock
|
4
|
+
/_yardoc/
|
5
|
+
/coverage/
|
6
|
+
/doc/
|
7
|
+
/pkg/
|
8
|
+
/spec/reports/
|
9
|
+
/tmp/
|
10
|
+
/.idea
|
11
|
+
/*.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/CapicuaGenBalthazar.gemspec
CHANGED
@@ -1,61 +1,62 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'CapicuaGenBalthazar/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = "CapicuaGenBalthazar"
|
8
|
-
spec.version = CapicuaGenBalthazar::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. Balthazar es un conjunto de generadores de caracteristicas de ejemplo pertenecientes a CapicuaGen
|
17
|
-
que generan un proyecto de Android.
|
18
|
-
}
|
19
|
-
spec.description = %q{CapicuaGen es un software que ayuda a la creación automática de
|
20
|
-
sistemas empresariales a través de la definición y ensamblado de
|
21
|
-
diversos generadores de características.
|
22
|
-
|
23
|
-
Balthazar es un conjunto de generadores de caracteristicas de ejemplo pertenecientes a CapicuaGen
|
24
|
-
que generan un proyecto de Android
|
25
|
-
|
26
|
-
El proyecto fue iniciado por José Luis Bautista Martin, el 6 de enero
|
27
|
-
del 2016.
|
28
|
-
|
29
|
-
Puede modificar y distribuir este software, según le plazca, y usarlo
|
30
|
-
para cualquier fin ya sea comercial, personal, educativo, o de cualquier
|
31
|
-
índole, siempre y cuando incluya este mensaje, y se permita acceso el
|
32
|
-
código fuente.
|
33
|
-
|
34
|
-
Este software es código libre, y se licencia bajo LGPL.
|
35
|
-
|
36
|
-
Para más información consultar http://www.gnu.org/licenses/lgpl.html
|
37
|
-
}
|
38
|
-
|
39
|
-
spec.homepage = "http://desdelashorasextras.blogspot.mx/"
|
40
|
-
spec.licenses = ['LGPL']
|
41
|
-
|
42
|
-
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
43
|
-
# delete this section to allow pushing this gem to any host.
|
44
|
-
if spec.respond_to?(:metadata)
|
45
|
-
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
46
|
-
else
|
47
|
-
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
48
|
-
end
|
49
|
-
|
50
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|\.idea)/}) }
|
51
|
-
spec.bindir = "exe"
|
52
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
53
|
-
spec.require_paths = ["lib"]
|
54
|
-
|
55
|
-
spec.add_development_dependency "bundler", "~> 1.11"
|
56
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
57
|
-
|
58
|
-
spec.add_runtime_dependency 'CapicuaGen','>=0.0.1', '~> 0.0'
|
59
|
-
spec.add_runtime_dependency 'CapicuaGenMelchior','>=0.0.1', '~> 0.0'
|
60
|
-
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'CapicuaGenBalthazar/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "CapicuaGenBalthazar"
|
8
|
+
spec.version = CapicuaGenBalthazar::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. Balthazar es un conjunto de generadores de caracteristicas de ejemplo pertenecientes a CapicuaGen
|
17
|
+
que generan un proyecto de Android.
|
18
|
+
}
|
19
|
+
spec.description = %q{CapicuaGen es un software que ayuda a la creación automática de
|
20
|
+
sistemas empresariales a través de la definición y ensamblado de
|
21
|
+
diversos generadores de características.
|
22
|
+
|
23
|
+
Balthazar es un conjunto de generadores de caracteristicas de ejemplo pertenecientes a CapicuaGen
|
24
|
+
que generan un proyecto de Android
|
25
|
+
|
26
|
+
El proyecto fue iniciado por José Luis Bautista Martin, el 6 de enero
|
27
|
+
del 2016.
|
28
|
+
|
29
|
+
Puede modificar y distribuir este software, según le plazca, y usarlo
|
30
|
+
para cualquier fin ya sea comercial, personal, educativo, o de cualquier
|
31
|
+
índole, siempre y cuando incluya este mensaje, y se permita acceso el
|
32
|
+
código fuente.
|
33
|
+
|
34
|
+
Este software es código libre, y se licencia bajo LGPL.
|
35
|
+
|
36
|
+
Para más información consultar http://www.gnu.org/licenses/lgpl.html
|
37
|
+
}
|
38
|
+
|
39
|
+
spec.homepage = "http://desdelashorasextras.blogspot.mx/"
|
40
|
+
spec.licenses = ['LGPL']
|
41
|
+
|
42
|
+
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
43
|
+
# delete this section to allow pushing this gem to any host.
|
44
|
+
if spec.respond_to?(:metadata)
|
45
|
+
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
46
|
+
else
|
47
|
+
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
48
|
+
end
|
49
|
+
|
50
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|\.idea)/}) }
|
51
|
+
spec.bindir = "exe"
|
52
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
53
|
+
spec.require_paths = ["lib"]
|
54
|
+
|
55
|
+
spec.add_development_dependency "bundler", "~> 1.11"
|
56
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
57
|
+
|
58
|
+
spec.add_runtime_dependency 'CapicuaGen','>=0.0.1', '~> 0.0'
|
59
|
+
spec.add_runtime_dependency 'CapicuaGenMelchior','>=0.0.1', '~> 0.0'
|
60
|
+
|
61
|
+
spec.required_ruby_version = '>= 2.0.0'
|
61
62
|
end
|
data/Gemfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
# Specify your gem's dependencies in CapicuaGenBalthazar.gemspec
|
4
|
-
gemspec
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
# Specify your gem's dependencies in CapicuaGenBalthazar.gemspec
|
4
|
+
gemspec
|
data/README.md
CHANGED
@@ -1,41 +1,58 @@
|
|
1
|
-
# CapicuaGenBalthazar
|
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
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
1
|
+
# CapicuaGenBalthazar
|
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.Balthazar es un conjunto de generadores de caracteristicas de ejemplo pertenecientes a CapicuaGen
|
6
|
+
que generan un proyecto de Android.
|
7
|
+
|
8
|
+
El proyecto fue iniciado por José Luis Bautista Martin, el 6 de enero
|
9
|
+
del 2016.
|
10
|
+
|
11
|
+
Puede modificar y distribuir este software, según le plazca, y usarlo
|
12
|
+
para cualquier fin ya sea comercial, personal, educativo, o de cualquier
|
13
|
+
índole, siempre y cuando incluya este mensaje, y se permita acceso el
|
14
|
+
código fuente.
|
15
|
+
|
16
|
+
Este software es código libre, y se licencia bajo LGPL.
|
17
|
+
|
18
|
+
Para más información consultar http://www.gnu.org/licenses/lgpl.html
|
19
|
+
|
20
|
+
|
21
|
+
## Instalación
|
22
|
+
|
23
|
+
Agrege la siguiente linea al archuivo GemFile de tu aplicación
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
gem 'CapicuaGenBalthazar'
|
27
|
+
```
|
28
|
+
|
29
|
+
y ejecute:
|
30
|
+
|
31
|
+
$ bundle
|
32
|
+
|
33
|
+
O instalela manualmente con el siguiente comando
|
34
|
+
|
35
|
+
$ gem install CapicuaGenBalthazar
|
36
|
+
|
37
|
+
Para obtener un ambiente completamente funcionar de CapicuaGen, puede ejecutar el siguiente comando
|
38
|
+
|
39
|
+
$ gem install CapicuaGenEssential
|
40
|
+
|
41
|
+
## Uso
|
42
|
+
|
43
|
+
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:
|
44
|
+
|
45
|
+
$ capicuagen example
|
46
|
+
|
47
|
+
Se crearan los siguientes archivos:
|
48
|
+
|
49
|
+
* generator.rb: Ejemplo de un generador de codigo
|
50
|
+
* GemFile: Archivo de configuración de depencias para bundler .
|
51
|
+
* instnwnd.sql: Ejemplo de base de datos NorthWind, para Microsoft SQL Server
|
52
|
+
|
53
|
+
Revise el archivo generator.rb para tener una introducción a CapicuaGen.
|
54
|
+
|
55
|
+
## Contribuir
|
56
|
+
|
57
|
+
Reporte de fallos y solicitudes de pull son bien recibidas en https://github.com/jbautistamartin/CapicuaGen
|
58
|
+
|
data/Rakefile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
require "bundler/gem_tasks"
|
2
|
-
require "rspec/core/rake_task"
|
3
|
-
|
4
|
-
RSpec::Core::RakeTask.new(:spec)
|
5
|
-
|
6
|
-
task :default => :spec
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
require "rspec/core/rake_task"
|
3
|
+
|
4
|
+
RSpec::Core::RakeTask.new(:spec)
|
5
|
+
|
6
|
+
task :default => :spec
|
data/bin/console
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "CapicuaGenBalthazar/balthazar"
|
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 "CapicuaGenBalthazar/balthazar"
|
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
|
File without changes
|
@@ -73,7 +73,13 @@ module CapicuaGen::Balthazar
|
|
73
73
|
# Genera el codigo de la carateristica
|
74
74
|
def generate
|
75
75
|
super()
|
76
|
-
|
76
|
+
begin
|
77
|
+
message_helper.add_indent
|
78
|
+
generate_configuration
|
79
|
+
ensure
|
80
|
+
message_helper.remove_indent
|
81
|
+
end
|
82
|
+
|
77
83
|
end
|
78
84
|
|
79
85
|
|
@@ -84,6 +90,11 @@ module CapicuaGen::Balthazar
|
|
84
90
|
|
85
91
|
return unless manifest_file
|
86
92
|
|
93
|
+
if not File.exist? manifest_file
|
94
|
+
message_helper.puts_file_modified manifest_file, :ignore
|
95
|
+
return
|
96
|
+
end
|
97
|
+
|
87
98
|
# Ruta para conseguir el archivo manifiest.xml
|
88
99
|
|
89
100
|
xml= Nokogiri::XML(File.read(manifest_file))
|
@@ -120,6 +131,8 @@ module CapicuaGen::Balthazar
|
|
120
131
|
# Guardo el resultado
|
121
132
|
File.write(manifest_file, formatted_xml)
|
122
133
|
|
134
|
+
message_helper.puts_file_modified manifest_file, :override
|
135
|
+
|
123
136
|
end
|
124
137
|
|
125
138
|
end
|
@@ -76,7 +76,12 @@ module CapicuaGen::Balthazar
|
|
76
76
|
# Genera la caracteristica
|
77
77
|
def generate
|
78
78
|
super()
|
79
|
-
|
79
|
+
begin
|
80
|
+
message_helper.add_indent
|
81
|
+
generate_configuration
|
82
|
+
ensure
|
83
|
+
message_helper.remove_indent
|
84
|
+
end
|
80
85
|
end
|
81
86
|
|
82
87
|
# Modifica el archivo Manifest para agregar las actividades.
|
@@ -86,6 +91,12 @@ module CapicuaGen::Balthazar
|
|
86
91
|
|
87
92
|
return unless manifest_file
|
88
93
|
|
94
|
+
if not File.exist? manifest_file
|
95
|
+
message_helper.puts_file_modified manifest_file, :ignore
|
96
|
+
return
|
97
|
+
end
|
98
|
+
|
99
|
+
|
89
100
|
# Ruta para conseguir el archivo app.config
|
90
101
|
|
91
102
|
xml= Nokogiri::XML(File.read(manifest_file))
|
@@ -149,6 +160,8 @@ module CapicuaGen::Balthazar
|
|
149
160
|
# Guardo el resultado
|
150
161
|
File.write(manifest_file, formatted_xml)
|
151
162
|
|
163
|
+
message_helper.puts_file_modified manifest_file, :override
|
164
|
+
|
152
165
|
end
|
153
166
|
end
|
154
167
|
|
@@ -26,7 +26,7 @@ que generan un proyecto de Android
|
|
26
26
|
|
27
27
|
require_relative 'version'
|
28
28
|
require 'CapicuaGen/capicua_gen'
|
29
|
-
require_relative '
|
29
|
+
require_relative 'AndroidLanguage/AndyContextProvider/Source/andy_context_provider_feature'
|
30
30
|
require_relative 'Business/AndySqlEntity/Source/andy_sql_entity_feature'
|
31
31
|
require_relative 'Entities/AndyEntity/Source/entity_field_schema.rb'
|
32
32
|
require_relative 'GUI/AndyEntityCardViewFragment/Source/andy_entity_card_view_fragment_feature'
|
@@ -1,3 +1,3 @@
|
|
1
|
-
module CapicuaGenBalthazar
|
2
|
-
VERSION = "0.0
|
3
|
-
end
|
1
|
+
module CapicuaGenBalthazar
|
2
|
+
VERSION = "0.1.0"
|
3
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: CapicuaGenBalthazar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- José Luis Bautista Martín
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -115,7 +115,7 @@ files:
|
|
115
115
|
- Rakefile
|
116
116
|
- bin/console
|
117
117
|
- bin/setup
|
118
|
-
- lib/CapicuaGenBalthazar/
|
118
|
+
- lib/CapicuaGenBalthazar/AndroidLanguage/AndyContextProvider/Source/andy_context_provider_feature.rb
|
119
119
|
- lib/CapicuaGenBalthazar/Business/AndySqlEntity/Source/andy_sql_entity_feature.rb
|
120
120
|
- lib/CapicuaGenBalthazar/Business/AndySqlEntity/Template/table_entity.erb
|
121
121
|
- lib/CapicuaGenBalthazar/Entities/AndyEntity/Source/entity_field_schema.rb
|
@@ -156,7 +156,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
156
156
|
requirements:
|
157
157
|
- - ">="
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
159
|
+
version: 2.0.0
|
160
160
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
161
161
|
requirements:
|
162
162
|
- - ">="
|