CapicuaGen 0.0.3 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c34d94616c46425e86e6887575afeb2ae53beec8
4
- data.tar.gz: b9027d16af1e9c96ecf8716c503cff258cc82a18
3
+ metadata.gz: b954ff08cf81228dab37ecaa146876fc57d624c5
4
+ data.tar.gz: 3eb21d1811b703bf7d2b06858e2f1a7fe287679b
5
5
  SHA512:
6
- metadata.gz: 46c3a8a23aaea6c4fd6da5f4a36be7823bfdb695211b794191c3952eeeb8cb95b97e04ae23bc47efd771d595247f787c1741f5aab9cdb07f505e682a210c88ed
7
- data.tar.gz: 1d71c70d0c8c1b2d582b2f95400a3d27fba040aa1549f3eca6e1348adc0c7cdaf087effc779c70bc96b87c3d0b8e6f5e8ee6b1c20c741f57fed6902f5a6cdc69
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
@@ -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
@@ -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,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
- end
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
- 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/CapicuaGen`. 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 'CapicuaGen'
13
- ```
14
-
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install CapicuaGen
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. 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]/CapicuaGen.
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
@@ -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
@@ -23,4 +23,6 @@ Para más información consultar http://www.gnu.org/licenses/lgpl.html
23
23
 
24
24
  require 'CapicuaGen/capicua_gen'
25
25
 
26
+ generator=CapicuaGen::Generator.new
27
+ generator.generate
26
28