bxm 0.1.9

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.
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1.7
4
+ before_install: gem install bundler -v 1.10.6
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in bxm.gemspec
4
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 alejandro
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,56 @@
1
+ # Bxm
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.
4
+ Put your Ruby code in the file `lib/bxm`.
5
+ To experiment with that code, run `bin/console` for an interactive prompt.
6
+
7
+ TODO: Delete this and the text above, and describe your gem
8
+
9
+ ## Installation
10
+
11
+ Add this line to your application's Gemfile:
12
+
13
+ ```ruby
14
+ gem 'bxm'
15
+ ```
16
+
17
+ And then execute:
18
+
19
+ $ bundle
20
+
21
+ Or install it yourself as:
22
+
23
+ $ gem install bxm
24
+
25
+ ## Usage
26
+
27
+ Password class allows the user to create a password using (n) number of random words
28
+ from some of the most common words used in the english language
29
+ current version only supports english but a plan to support other languages will be available in the future
30
+ Example:
31
+ Bxm::Password.rand_key(4,words)
32
+ => "74CloudRedRedRed"
33
+ Bxm::Password.rand_key(4,palabras)
34
+ => "57SemanaCasoEstupendoHecho"
35
+ Bxm::Password.rand_key(4,wort)
36
+ => "90RegierungHandWocheAuge"
37
+
38
+ ## Development
39
+
40
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests.
41
+ You can also run `bin/console` for an interactive prompt that will allow you to experiment.
42
+
43
+ To install this gem onto your local machine, run `bundle exec rake install`.
44
+ To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`,
45
+ which will create a git tag for the version, push git commits and tags,
46
+ and push the `.gem` file to [rubygems.org](https://rubygems.org).
47
+
48
+ ## Contributing
49
+
50
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/bxm. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
51
+
52
+
53
+ ## License
54
+
55
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
56
+
@@ -0,0 +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
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "bxm"
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
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,28 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'bxm/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "bxm"
8
+ spec.version = Bxm::VERSION
9
+ spec.authors = ["alejandro"]
10
+ spec.email = ["asanchezgiraldo@bauerxcelmedia.com.au"]
11
+
12
+ spec.summary = %q{Creates random passwords in differente lenguages}
13
+ spec.description = %q{simple gem to generate easy and secure password}
14
+ spec.homepage = "https://github.com/asanchezgiraldo"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.extra_rdoc_files = ['lib/words.csv',
19
+ 'lib/palabras.csv',
20
+ 'lib/worts.csv']
21
+ spec.bindir = "exe"
22
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
+ spec.require_paths = ["lib"]
24
+
25
+ spec.add_development_dependency "bundler", "~> 1.10"
26
+ spec.add_development_dependency "rake", "~> 10.0"
27
+ spec.add_development_dependency "rspec"
28
+ end
@@ -0,0 +1,29 @@
1
+ require 'rest-client'
2
+ require 'csv'
3
+ require 'yaml'
4
+
5
+ module Bxm
6
+ #
7
+ #Password class allows the user to create a password using (n) number of random words
8
+ # from some of the most common words used in the english language
9
+ # current version only supports english but a plan to support other languages will be available in the future
10
+ # Example:
11
+ # Bxm::Password.rand_key(4,words)
12
+ # => "74CloudRedRedRed"
13
+ # Bxm::Password.rand_key(4,palabras)
14
+ # => "57SemanaCasoEstupendoHecho"
15
+ # Bxm::Password.rand_key(4,wort)
16
+ # => "90RegierungHandWocheAuge"
17
+ #
18
+ class Password
19
+ def self.rand_key(n=1,leng='words')
20
+ lib = File.expand_path(File.dirname(__FILE__), "words.csv")
21
+ wrds=CSV.read(lib+"/#{leng}.csv")
22
+ super_key = [*('0'..'9')].shuffle[0,2].join
23
+ for i in 1..n
24
+ super_key = super_key + '-' + [*(wrds)].shuffle[0,1].join.capitalize
25
+ end
26
+ return super_key
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,6 @@
1
+ module Bxm
2
+ require 'rest-client'
3
+ require 'csv'
4
+ require 'yaml'
5
+ VERSION = "0.1.9"
6
+ end
@@ -0,0 +1,50 @@
1
+ bien
2
+ nuevo
3
+ primero
4
+ ultimo
5
+ largo
6
+ estupendo
7
+ pastores
8
+ propio
9
+ otro
10
+ viejo
11
+ derecho
12
+ grande
13
+ alto
14
+ diferente
15
+ marcado
16
+ gran
17
+ siguiente
18
+ temprano
19
+ joven
20
+ importante
21
+ pocos
22
+ publico
23
+ malo
24
+ mismo
25
+ poder
26
+ hora
27
+ persona
28
+ carro
29
+ camino
30
+ dia
31
+ cosa
32
+ hombre
33
+ mundo
34
+ vida
35
+ mano
36
+ parte
37
+ pronto
38
+ ojo
39
+ mujer
40
+ lugar
41
+ trabajo
42
+ semana
43
+ caso
44
+ punto
45
+ gobierno
46
+ compartir
47
+ numero
48
+ grupo
49
+ problema
50
+ hecho
@@ -0,0 +1,50 @@
1
+ good
2
+ new
3
+ first
4
+ last
5
+ long
6
+ great
7
+ little
8
+ own
9
+ other
10
+ old
11
+ right
12
+ big
13
+ high
14
+ different
15
+ small
16
+ large
17
+ next
18
+ early
19
+ young
20
+ important
21
+ few
22
+ public
23
+ bad
24
+ same
25
+ able
26
+ time
27
+ person
28
+ year
29
+ way
30
+ day
31
+ thing
32
+ man
33
+ world
34
+ life
35
+ hand
36
+ part
37
+ child
38
+ eye
39
+ woman
40
+ place
41
+ work
42
+ week
43
+ case
44
+ point
45
+ government
46
+ company
47
+ number
48
+ group
49
+ problem
50
+ fact
@@ -0,0 +1,50 @@
1
+ gut
2
+ neu
3
+ erste
4
+ letzte
5
+ lange
6
+ groß
7
+ kleine
8
+ besitzen
9
+ andere
10
+ alt
11
+ Recht
12
+ groß
13
+ hoch
14
+ anders
15
+ klein
16
+ groß
17
+ Nächster
18
+ früh
19
+ jung
20
+ wichtig
21
+ wenige
22
+ Öffentlichkeit
23
+ schlecht
24
+ gleich
25
+ fähig
26
+ Zeit
27
+ Person
28
+ Jahr
29
+ Weg
30
+ Tag
31
+ Ding
32
+ Mann
33
+ Welt
34
+ Leben
35
+ Hand
36
+ Teil
37
+ Kind
38
+ Auge
39
+ Frau
40
+ Ort
41
+ arbeiten
42
+ Woche
43
+ Fall
44
+ Punkt
45
+ Regierung
46
+ Firma
47
+ Anzahl
48
+ Gruppe
49
+ Problem
50
+ Tatsache
metadata ADDED
@@ -0,0 +1,111 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bxm
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.9
5
+ platform: ruby
6
+ authors:
7
+ - alejandro
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-06-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.10'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.10'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: simple gem to generate easy and secure password
56
+ email:
57
+ - asanchezgiraldo@bauerxcelmedia.com.au
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files:
61
+ - lib/words.csv
62
+ - lib/palabras.csv
63
+ - lib/worts.csv
64
+ files:
65
+ - ".gitignore"
66
+ - ".idea/.name"
67
+ - ".idea/bxm.iml"
68
+ - ".idea/misc.xml"
69
+ - ".idea/modules.xml"
70
+ - ".idea/vcs.xml"
71
+ - ".idea/workspace.xml"
72
+ - ".rspec"
73
+ - ".travis.yml"
74
+ - CODE_OF_CONDUCT.md
75
+ - Gemfile
76
+ - LICENSE.txt
77
+ - README.md
78
+ - Rakefile
79
+ - bin/console
80
+ - bin/setup
81
+ - bxm.gemspec
82
+ - lib/bxm.rb
83
+ - lib/bxm/version.rb
84
+ - lib/palabras.csv
85
+ - lib/words.csv
86
+ - lib/worts.csv
87
+ homepage: https://github.com/asanchezgiraldo
88
+ licenses:
89
+ - MIT
90
+ metadata: {}
91
+ post_install_message:
92
+ rdoc_options: []
93
+ require_paths:
94
+ - lib
95
+ required_ruby_version: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ required_rubygems_version: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ requirements: []
106
+ rubyforge_project:
107
+ rubygems_version: 2.6.12
108
+ signing_key:
109
+ specification_version: 4
110
+ summary: Creates random passwords in differente lenguages
111
+ test_files: []