CapicuaGenGaspar 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d2bf78da0ce6539dfef94e01d8f1e859249766bf
4
- data.tar.gz: c970c402217928b1cf9aa89483a90f7afe59732b
3
+ metadata.gz: c738fa5de863f095f0951e972fbb13a361c0da6c
4
+ data.tar.gz: ae3aa9b24567d292ca931dfc9ad4dd811e027c08
5
5
  SHA512:
6
- metadata.gz: f3df59c9008b2c8f80806ceba764230d0df887db2fb108ba5afb90b20175001ebc15c0e8261499059f6b2cface4bae99dad00bfed714db0dc464150244d95aef
7
- data.tar.gz: afe366cca7253262932169b4c2604247f9b64f71f145132ca55c0b5295c0c928dbf558b1686902a6533499bce2fa62528b733243f728fb1fc0dcb682ee584fab
6
+ metadata.gz: eca0a3396fc1755948c8032c283d4801a96847589bc640bf870fc60f57d35e1eec3ff2e3c753f90d3acf09171958b890980fa14a56e5abf5182962eac6d4e8ea
7
+ data.tar.gz: 7a4c06782fdebe37927b2f77b35fa2a812e4133c888c91769f43f50a22769d19c3afaed28e8a8fa0faf969d7322489f65654c5626a73349553fd9b1b735965c6
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/
@@ -1,60 +1,63 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'CapicuaGenGaspar/version'
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "CapicuaGenGaspar"
8
- spec.version = CapicuaGenGaspar::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.Gaspar es un conjunto de generadores de caracteristicas de ejemplo pertenecientes a CapicuaGen
17
- que generan un proyecto de Windows.
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
- Gaspar es un conjunto de generadores de caracteristicas de ejemplo pertenecientes a CapicuaGen
24
- que generan un proyecto de Windows
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'
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'CapicuaGenGaspar/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "CapicuaGenGaspar"
8
+ spec.version = CapicuaGenGaspar::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.Gaspar es un conjunto de generadores de caracteristicas de ejemplo pertenecientes a CapicuaGen
17
+ que generan un proyecto de Windows.
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
+ Gaspar es un conjunto de generadores de caracteristicas de ejemplo pertenecientes a CapicuaGen
24
+ que generan un proyecto de Windows
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
+ spec.add_runtime_dependency 'rchardet', '~> 1.6', '>= 1.6.1'
61
+
62
+ spec.required_ruby_version = '>= 2.0.0'
60
63
  end
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in CapicuaGenGaspar.gemspec
4
- gemspec
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in CapicuaGenGaspar.gemspec
4
+ gemspec
data/README.md CHANGED
@@ -1,41 +1,58 @@
1
- # CapicuaGenGaspar
2
-
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/CapicuaGenGaspar`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
6
-
7
- ## Installation
8
-
9
- Add this line to your application's Gemfile:
10
-
11
- ```ruby
12
- gem 'CapicuaGenGaspar'
13
- ```
14
-
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install CapicuaGenGaspar
22
-
23
- ## Usage
24
-
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
-
33
- ## Contributing
34
-
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/CapicuaGenGaspar. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
-
37
-
38
- ## License
39
-
40
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
-
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.Gaspar es un conjunto de generadores de caracteristicas de ejemplo pertenecientes a CapicuaGen
6
+ que generan un proyecto de Windows.
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 'CapicuaGenGaspar'
27
+ ```
28
+
29
+ y ejecute:
30
+
31
+ $ bundle
32
+
33
+ O instalela manualmente con el siguiente comando
34
+
35
+ $ gem install CapicuaGenGaspar
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 "CapicuaGenGaspar/gaspar"
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 "CapicuaGenGaspar/gaspar"
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
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  =begin
2
3
 
3
4
  CapicuaGen
@@ -19,9 +20,10 @@ Este software es código libre, y se licencia bajo LGPL.
19
20
  Para más información consultar http://www.gnu.org/licenses/lgpl.html
20
21
  =end
21
22
 
23
+ require 'rubygems'
24
+ require 'rchardet'
22
25
  require 'active_support/core_ext/object/blank'
23
26
 
24
-
25
27
  require_relative '../../../gaspar'
26
28
  require_relative '../../../Mixins/cs_db_connection_provider_mixin'
27
29
  require_relative '../../../Mixins/cs_namespace_mixin'
@@ -97,20 +99,56 @@ module CapicuaGen::Gaspar
97
99
  Dir.chdir directory_base do
98
100
  # Cargo el acrhivo
99
101
  file_content= File.read(file)
102
+ file_content.force_encoding(CharDet.detect(file_content)['encoding'])
100
103
  end
101
104
 
102
105
 
103
106
  # Genero los las licencias
104
- header= generate_template_target(@header_template_target, binding)
105
- return if not header.blank? and file_content.include?(header)
107
+ modified=false
108
+
109
+ # Limpio file_content para comparciones
110
+
111
+ # Genero cabecera
112
+ header =generate_template_target(@header_template_target, binding)
113
+ begin
114
+ header_check=header.clone
115
+ header_check.force_encoding(CharDet.detect(file_content)['encoding']) unless header.blank?
116
+ header_check.blank?
117
+ header=header_check
118
+ rescue
119
+ end
120
+
121
+ if header.blank? or file_content.gsub(/\s*/, '').include?(header.gsub(/\s*/, ''))
122
+ header =''
123
+ else
124
+ modified=true
125
+ end
126
+
127
+ # Genero pie
106
128
  footer= generate_template_target(@footer_template_target, binding)
107
- return if not footer.blank? and file_content.include?(footer)
129
+ begin
130
+ footer_check=footer.clone
131
+ footer_check.force_encoding(CharDet.detect(file_content)['encoding']) unless footer.blank?
132
+ footer_check.blank?
133
+ footer_check=footer_check
134
+ rescue
135
+ end
108
136
 
109
- file_out= "#{header}#{file_content}#{footer}"
110
- Dir.chdir directory_base do
111
- # Guardo el archivo
112
- File.write(file, file_out)
113
- message_helper.puts_created_template("header.erb, footer.erb", file, :override)
137
+ if footer.blank? or file_content.gsub(/\s*/, '').include?(footer.gsub(/\s*/, ''))
138
+ footer =''
139
+ else
140
+ modified=true
141
+ end
142
+
143
+ if modified
144
+ file_out= "#{header}#{file_content}#{footer}"
145
+ Dir.chdir directory_base do
146
+ # Guardo el archivo
147
+ File.write(file, file_out)
148
+ message_helper.puts_created_template("header.erb, footer.erb", file, :override)
149
+ end
150
+ else
151
+ message_helper.puts_created_template("header.erb, footer.erb", file, :ignore)
114
152
  end
115
153
  end
116
154
 
@@ -32,6 +32,6 @@ Para más información consultar http://www.gnu.org/licenses/lgpl.html
32
32
  * Puede cambiar este pie de pagina haciendo un checkout de los templates de
33
33
  * la caracteristica, y modificando el template 'footer.erb'.
34
34
  *
35
- * capicuagen.rb checkout CapicuaGenGaspar/CSHeaderFooter/template
35
+ * capicuagen template -g CapicuaGenGaspar -t CodeTransformer -f CSHeaderFooter
36
36
  *
37
37
  */
@@ -37,7 +37,7 @@ Para más información consultar http://www.gnu.org/licenses/lgpl.html
37
37
  * Puede cambiar este encabezado haciendo un checkout de los templates de
38
38
  * la caracteristica, y modificando el template 'header.erb'.
39
39
  *
40
- * capicuagen.rb checkout CapicuaGenGaspar/CSHeaderFooter/template
40
+ * capicuagen template -g CapicuaGenGaspar -t CodeTransformer -f CSHeaderFooter
41
41
  *
42
42
  */
43
43
 
@@ -35,8 +35,8 @@ module CapicuaGen::Gaspar
35
35
 
36
36
  # Devuelve una coleccion de namespace
37
37
  def get_namespaces(target_types= [])
38
- get_attributes( :attributes=>:namespace, :target_types=>target_types) do |a,values|
39
- values.each {|v| yield v}
38
+ get_attributes(:attributes => :namespace, :target_types => target_types) do |a, values|
39
+ values.each { |v| yield v }
40
40
  end
41
41
  end
42
42
 
@@ -51,3 +51,5 @@ module CapicuaGen::Gaspar
51
51
  end
52
52
  end
53
53
 
54
+
55
+
@@ -1,59 +1,59 @@
1
- <%
2
- #encoding: UTF-8
3
-
4
- =begin
5
-
6
- CapicuaGen
7
-
8
- CapicuaGen es un software que ayuda a la creación automática de
9
- sistemas empresariales a través de la definición y ensamblado de
10
- diversos generadores de características.
11
-
12
- El proyecto fue iniciado por José Luis Bautista Martin, el 6 de enero
13
- del 2016.
14
-
15
- Puede modificar y distribuir este software, según le plazca, y usarlo
16
- para cualquier fin ya sea comercial, personal, educativo, o de cualquier
17
- índole, siempre y cuando incluya este mensaje, y se permita acceso el
18
- código fuente.
19
-
20
- Este software es código libre, y se licencia bajo LGPL.
21
-
22
- Para más información consultar http://www.gnu.org/licenses/lgpl.html
23
- =end
24
- %>using System.Reflection;
25
- using System.Runtime.InteropServices;
26
-
27
- // General Information about an assembly is controlled through the following
28
- // set of attributes. Change these attribute values to modify the information
29
- // associated with an assembly.
30
-
31
- [assembly: AssemblyTitle("<%=generation_attributes[:assembly_title]%>")]
32
- [assembly: AssemblyDescription("<%=generation_attributes[:assembly_description]%>")]
33
- [assembly: AssemblyConfiguration("<%=generation_attributes[:assembly_configuration]%>")]
34
- [assembly: AssemblyCompany("<%=generation_attributes[:assembly_company]%>")]
35
- [assembly: AssemblyProduct("<%=generation_attributes[:assembly_product]%>")]
36
- [assembly: AssemblyCopyright("<%=generation_attributes[:assembly_copyright]%>")]
37
- [assembly: AssemblyTrademark("<%=generation_attributes[:assembly_trademark]%>")]
38
- [assembly: AssemblyCulture(<%=generation_attributes[:assembly_culture]%>)]
39
-
40
-
41
- // Setting ComVisible to false makes the types in this assembly not visible
42
- // to COM components. If you need to access a type in this assembly from
43
- // COM, set the ComVisible attribute to true on that type.
44
- [assembly: ComVisible(false)]
45
-
46
- // Version information for an assembly consists of the following four values:
47
- //
48
- // Major Version
49
- // Minor Version
50
- // Build Number
51
- // Revision
52
- //
53
- // You can specify all the values or you can default the Build and Revision Numbers
54
- // by using the '*' as shown below:
55
- // [assembly: AssemblyVersion("1.0.*")]
56
-
57
-
58
- [assembly: AssemblyVersion("<%=generation_attributes[:assembly_version]%>")]
59
- [assembly: AssemblyFileVersion("<%=generation_attributes[:assembly_file_version]%>")]
1
+ <%
2
+ #encoding: UTF-8
3
+
4
+ =begin
5
+
6
+ CapicuaGen
7
+
8
+ CapicuaGen es un software que ayuda a la creación automática de
9
+ sistemas empresariales a través de la definición y ensamblado de
10
+ diversos generadores de características.
11
+
12
+ El proyecto fue iniciado por José Luis Bautista Martin, el 6 de enero
13
+ del 2016.
14
+
15
+ Puede modificar y distribuir este software, según le plazca, y usarlo
16
+ para cualquier fin ya sea comercial, personal, educativo, o de cualquier
17
+ índole, siempre y cuando incluya este mensaje, y se permita acceso el
18
+ código fuente.
19
+
20
+ Este software es código libre, y se licencia bajo LGPL.
21
+
22
+ Para más información consultar http://www.gnu.org/licenses/lgpl.html
23
+ =end
24
+ %>using System.Reflection;
25
+ using System.Runtime.InteropServices;
26
+
27
+ // General Information about an assembly is controlled through the following
28
+ // set of attributes. Change these attribute values to modify the information
29
+ // associated with an assembly.
30
+
31
+ [assembly: AssemblyTitle("<%=generation_attributes[:assembly_title]%>")]
32
+ [assembly: AssemblyDescription("<%=generation_attributes[:assembly_description]%>")]
33
+ [assembly: AssemblyConfiguration("<%=generation_attributes[:assembly_configuration]%>")]
34
+ [assembly: AssemblyCompany("<%=generation_attributes[:assembly_company]%>")]
35
+ [assembly: AssemblyProduct("<%=generation_attributes[:assembly_product]%>")]
36
+ [assembly: AssemblyCopyright("<%=generation_attributes[:assembly_copyright]%>")]
37
+ [assembly: AssemblyTrademark("<%=generation_attributes[:assembly_trademark]%>")]
38
+ [assembly: AssemblyCulture(<%=generation_attributes[:assembly_culture]%>)]
39
+
40
+
41
+ // Setting ComVisible to false makes the types in this assembly not visible
42
+ // to COM components. If you need to access a type in this assembly from
43
+ // COM, set the ComVisible attribute to true on that type.
44
+ [assembly: ComVisible(false)]
45
+
46
+ // Version information for an assembly consists of the following four values:
47
+ //
48
+ // Major Version
49
+ // Minor Version
50
+ // Build Number
51
+ // Revision
52
+ //
53
+ // You can specify all the values or you can default the Build and Revision Numbers
54
+ // by using the '*' as shown below:
55
+ // [assembly: AssemblyVersion("1.0.*")]
56
+
57
+
58
+ [assembly: AssemblyVersion("<%=generation_attributes[:assembly_version]%>")]
59
+ [assembly: AssemblyFileVersion("<%=generation_attributes[:assembly_file_version]%>")]
@@ -1,59 +1,59 @@
1
- <%
2
- #encoding: UTF-8
3
-
4
- =begin
5
-
6
- CapicuaGen
7
-
8
- CapicuaGen es un software que ayuda a la creación automática de
9
- sistemas empresariales a través de la definición y ensamblado de
10
- diversos generadores de características.
11
-
12
- El proyecto fue iniciado por José Luis Bautista Martin, el 6 de enero
13
- del 2016.
14
-
15
- Puede modificar y distribuir este software, según le plazca, y usarlo
16
- para cualquier fin ya sea comercial, personal, educativo, o de cualquier
17
- índole, siempre y cuando incluya este mensaje, y se permita acceso el
18
- código fuente.
19
-
20
- Este software es código libre, y se licencia bajo LGPL.
21
-
22
- Para más información consultar http://www.gnu.org/licenses/lgpl.html
23
- =end
24
- %>using System.Reflection;
25
- using System.Runtime.InteropServices;
26
-
27
- // General Information about an assembly is controlled through the following
28
- // set of attributes. Change these attribute values to modify the information
29
- // associated with an assembly.
30
-
31
- [assembly: AssemblyTitle("<%=generation_attributes[:assembly_title]%>")]
32
- [assembly: AssemblyDescription("<%=generation_attributes[:assembly_description]%>")]
33
- [assembly: AssemblyConfiguration("<%=generation_attributes[:assembly_configuration]%>")]
34
- [assembly: AssemblyCompany("<%=generation_attributes[:assembly_company]%>")]
35
- [assembly: AssemblyProduct("<%=generation_attributes[:assembly_product]%>")]
36
- [assembly: AssemblyCopyright("<%=generation_attributes[:assembly_copyright]%>")]
37
- [assembly: AssemblyTrademark("<%=generation_attributes[:assembly_trademark]%>")]
38
- [assembly: AssemblyCulture(<%=generation_attributes[:assembly_culture]%>)]
39
-
40
-
41
- // Setting ComVisible to false makes the types in this assembly not visible
42
- // to COM components. If you need to access a type in this assembly from
43
- // COM, set the ComVisible attribute to true on that type.
44
- [assembly: ComVisible(false)]
45
-
46
- // Version information for an assembly consists of the following four values:
47
- //
48
- // Major Version
49
- // Minor Version
50
- // Build Number
51
- // Revision
52
- //
53
- // You can specify all the values or you can default the Build and Revision Numbers
54
- // by using the '*' as shown below:
55
- // [assembly: AssemblyVersion("1.0.*")]
56
-
57
-
58
- [assembly: AssemblyVersion("<%=generation_attributes[:assembly_version]%>")]
59
- [assembly: AssemblyFileVersion("<%=generation_attributes[:assembly_file_version]%>")]
1
+ <%
2
+ #encoding: UTF-8
3
+
4
+ =begin
5
+
6
+ CapicuaGen
7
+
8
+ CapicuaGen es un software que ayuda a la creación automática de
9
+ sistemas empresariales a través de la definición y ensamblado de
10
+ diversos generadores de características.
11
+
12
+ El proyecto fue iniciado por José Luis Bautista Martin, el 6 de enero
13
+ del 2016.
14
+
15
+ Puede modificar y distribuir este software, según le plazca, y usarlo
16
+ para cualquier fin ya sea comercial, personal, educativo, o de cualquier
17
+ índole, siempre y cuando incluya este mensaje, y se permita acceso el
18
+ código fuente.
19
+
20
+ Este software es código libre, y se licencia bajo LGPL.
21
+
22
+ Para más información consultar http://www.gnu.org/licenses/lgpl.html
23
+ =end
24
+ %>using System.Reflection;
25
+ using System.Runtime.InteropServices;
26
+
27
+ // General Information about an assembly is controlled through the following
28
+ // set of attributes. Change these attribute values to modify the information
29
+ // associated with an assembly.
30
+
31
+ [assembly: AssemblyTitle("<%=generation_attributes[:assembly_title]%>")]
32
+ [assembly: AssemblyDescription("<%=generation_attributes[:assembly_description]%>")]
33
+ [assembly: AssemblyConfiguration("<%=generation_attributes[:assembly_configuration]%>")]
34
+ [assembly: AssemblyCompany("<%=generation_attributes[:assembly_company]%>")]
35
+ [assembly: AssemblyProduct("<%=generation_attributes[:assembly_product]%>")]
36
+ [assembly: AssemblyCopyright("<%=generation_attributes[:assembly_copyright]%>")]
37
+ [assembly: AssemblyTrademark("<%=generation_attributes[:assembly_trademark]%>")]
38
+ [assembly: AssemblyCulture(<%=generation_attributes[:assembly_culture]%>)]
39
+
40
+
41
+ // Setting ComVisible to false makes the types in this assembly not visible
42
+ // to COM components. If you need to access a type in this assembly from
43
+ // COM, set the ComVisible attribute to true on that type.
44
+ [assembly: ComVisible(false)]
45
+
46
+ // Version information for an assembly consists of the following four values:
47
+ //
48
+ // Major Version
49
+ // Minor Version
50
+ // Build Number
51
+ // Revision
52
+ //
53
+ // You can specify all the values or you can default the Build and Revision Numbers
54
+ // by using the '*' as shown below:
55
+ // [assembly: AssemblyVersion("1.0.*")]
56
+
57
+
58
+ [assembly: AssemblyVersion("<%=generation_attributes[:assembly_version]%>")]
59
+ [assembly: AssemblyFileVersion("<%=generation_attributes[:assembly_file_version]%>")]
@@ -31,8 +31,7 @@ module CapicuaGen
31
31
 
32
32
  # Indica que un archivo fue limpiado (por CodeMaid)
33
33
  def puts_code_clean(out_file)
34
- result= ''
35
- result= "* -> '#{out_file}': Limpiado"
34
+ result= "*".colorize(:yellow) + " -> '#{out_file}': Modificado"
36
35
  puts_message result
37
36
  end
38
37
 
@@ -1,3 +1,3 @@
1
- module CapicuaGenGaspar
2
- VERSION = "0.0.3"
3
- end
1
+ module CapicuaGenGaspar
2
+ VERSION = "0.1.0"
3
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: CapicuaGenGaspar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
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-04-15 00:00:00.000000000 Z
11
+ date: 2016-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -78,6 +78,26 @@ dependencies:
78
78
  - - "~>"
79
79
  - !ruby/object:Gem::Version
80
80
  version: '0.0'
81
+ - !ruby/object:Gem::Dependency
82
+ name: rchardet
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: '1.6'
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: 1.6.1
91
+ type: :runtime
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '1.6'
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: 1.6.1
81
101
  description: |
82
102
  CapicuaGen es un software que ayuda a la creación automática de
83
103
  sistemas empresariales a través de la definición y ensamblado de
@@ -198,7 +218,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
198
218
  requirements:
199
219
  - - ">="
200
220
  - !ruby/object:Gem::Version
201
- version: '0'
221
+ version: 2.0.0
202
222
  required_rubygems_version: !ruby/object:Gem::Requirement
203
223
  requirements:
204
224
  - - ">="