rumanu 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/.rspec +3 -0
- data/.travis.yml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +42 -0
- data/LICENSE.txt +21 -0
- data/README.md +67 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/rumanu/alphabets.rb +11 -0
- data/lib/rumanu/helpers.rb +32 -0
- data/lib/rumanu/meaning.rb +33 -0
- data/lib/rumanu/meanings/en.yml +40 -0
- data/lib/rumanu/numerology.rb +93 -0
- data/lib/rumanu/version.rb +3 -0
- data/lib/rumanu.rb +5 -0
- data/rumanu.gemspec +40 -0
- metadata +134 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5bc7c8a56b6d9cf4024a092cf18a6a946c43a2cca34f29072db5fc6db32d6fb9
|
4
|
+
data.tar.gz: 54a793b29db980a2b27e8ca7c5a7054f616e041e3c8414d1423e825fa5d171c6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a1045fd5b8c23a365272ddda0db5d99906e14126675f9534ec614bb4caa66713294d95a48252d2e327dcaafcf2856fe93114fc03518a1f8dbb086c83410fb56b
|
7
|
+
data.tar.gz: 204a4a6dbc6f6f0d36af749dd8b24aae5715e8920868e20485931a22e4711877a02baa3b85f7dc6951df4b7c6a1b4599d39d7bd9642b0aa2f9b3c2e124f8cd59
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at albertonegron@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
rumanu (0.11.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
coderay (1.1.2)
|
10
|
+
diff-lcs (1.3)
|
11
|
+
method_source (0.9.2)
|
12
|
+
pry (0.12.2)
|
13
|
+
coderay (~> 1.1.0)
|
14
|
+
method_source (~> 0.9.0)
|
15
|
+
rake (10.5.0)
|
16
|
+
rspec (3.8.0)
|
17
|
+
rspec-core (~> 3.8.0)
|
18
|
+
rspec-expectations (~> 3.8.0)
|
19
|
+
rspec-mocks (~> 3.8.0)
|
20
|
+
rspec-core (3.8.0)
|
21
|
+
rspec-support (~> 3.8.0)
|
22
|
+
rspec-expectations (3.8.1)
|
23
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
24
|
+
rspec-support (~> 3.8.0)
|
25
|
+
rspec-mocks (3.8.0)
|
26
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
27
|
+
rspec-support (~> 3.8.0)
|
28
|
+
rspec-support (3.8.0)
|
29
|
+
|
30
|
+
PLATFORMS
|
31
|
+
ruby
|
32
|
+
|
33
|
+
DEPENDENCIES
|
34
|
+
bundler (~> 1.16)
|
35
|
+
coderay (~> 1.1)
|
36
|
+
pry
|
37
|
+
rake (~> 10.0)
|
38
|
+
rspec (~> 3.0)
|
39
|
+
rumanu!
|
40
|
+
|
41
|
+
BUNDLED WITH
|
42
|
+
1.17.2
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 Alberto Negron
|
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.
|
data/README.md
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
# Rumanu
|
2
|
+
|
3
|
+
Tiny gem for Numerology. Calculate your Life Path and Destiny Numbers
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'rumanu'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install rumanu
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
require 'rumanu'
|
25
|
+
|
26
|
+
jl = Rumanu::Numerology.new("John Lennon","09.10.1940");
|
27
|
+
puts jl.dob
|
28
|
+
# "09.10.1940"
|
29
|
+
puts jl.destiny
|
30
|
+
# 6
|
31
|
+
puts jl.destiny.destiny
|
32
|
+
# "Your destiny is to provide a nurturing safe ‘nest’ for yourself and your loved ones."
|
33
|
+
|
34
|
+
puts 9.destiny
|
35
|
+
# "Your destiny is to achieve a higher state of consciousness and teach others how to achieve theirs."
|
36
|
+
|
37
|
+
puts jl.motivation
|
38
|
+
# 8
|
39
|
+
puts jl.motivation.meaning
|
40
|
+
# {"positive"=>"decisive, determined, political skills, strong willed, loyal, fighter for a cause",
|
41
|
+
# "negative"=>"workaholic, cruel, greedy, impatient, revengeful"}
|
42
|
+
|
43
|
+
puts jl.expression.meaning
|
44
|
+
# {"positive"=>"integrity, solid, organized, highly practical, visionary",
|
45
|
+
# "negative"=>"indifference, skewed to details vs. big picture, slow, narrow, spiteful"}
|
46
|
+
|
47
|
+
puts jl.personality.meaning
|
48
|
+
# {"positive"=>"visionary, traveler, explorer, flexible, quick to learn", "negative"=>"impatient, vulgar, # # restless, impulsive"}
|
49
|
+
```
|
50
|
+
|
51
|
+
## Development
|
52
|
+
|
53
|
+
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.
|
54
|
+
|
55
|
+
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).
|
56
|
+
|
57
|
+
## Contributing
|
58
|
+
|
59
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/Altons/rumanu. 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.
|
60
|
+
|
61
|
+
## License
|
62
|
+
|
63
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
64
|
+
|
65
|
+
## Code of Conduct
|
66
|
+
|
67
|
+
Everyone interacting in the Rumanu project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/rumanu/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "rumanu"
|
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(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
module Rumanu
|
2
|
+
# Pythagoras alphabet
|
3
|
+
PY_VOWELS = { 'a' => 1, 'á' => 1, 'e' => 5, 'é' => 5, 'i' => 9,
|
4
|
+
'í' => 9, 'o' => 6, 'ó' => 6, 'u' => 3, 'ú' => 3, 'ü' => 3 }
|
5
|
+
|
6
|
+
PY_CONSONANTS = { 'b' => 2, 'c' => 3, 'd' => 4, 'f' => 6, 'g' => 7,
|
7
|
+
'h' => 8, 'j' => 1, 'k' => 2, 'l' => 3, 'm' => 4, 'n' => 5,
|
8
|
+
'p' => 7, 'q' => 8, 'r' => 9, 's' => 1, 't' => 2, 'v' => 4,
|
9
|
+
'w' => 5, 'x' => 6, 'y' => 7, 'z' => 8 }
|
10
|
+
|
11
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'date'
|
2
|
+
module Rumanu
|
3
|
+
|
4
|
+
def digit_sum(n)
|
5
|
+
cum = n.digits.sum
|
6
|
+
cum = digit_sum(cum) unless cum.to_s.length == 1
|
7
|
+
return cum
|
8
|
+
end
|
9
|
+
|
10
|
+
def reduce_list(l,alphabet)
|
11
|
+
init = 0
|
12
|
+
l.each do |c|
|
13
|
+
alphabet.each do |k,v|
|
14
|
+
init += v if c == k
|
15
|
+
end
|
16
|
+
end
|
17
|
+
digit_sum(init)
|
18
|
+
end
|
19
|
+
|
20
|
+
def valid_date?(str)
|
21
|
+
valid_formats = [/\d{2}\.\d{2}\.\d{4}/, /\d{2}\/\d{2}\/\d{4}/, /\d{2}-\d{2}-\d{4}/, /\d{4}-\d{2}-\d{2}/]
|
22
|
+
check_format = valid_formats.map { |f| f.match?(str) && 1 || 0}.reduce(0,:+)
|
23
|
+
raise ArgumentError.new("Incorrect date format") if check_format.zero?
|
24
|
+
end
|
25
|
+
|
26
|
+
def valid_hash?(h)
|
27
|
+
raise ArgumentError.new("Object must me a Hash") unless h.is_a? Hash
|
28
|
+
raise ArgumentError.new("Hash can not be empty") unless h.empty? true
|
29
|
+
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
|
2
|
+
require 'yaml'
|
3
|
+
module Rumanu
|
4
|
+
module Meaning
|
5
|
+
GEM_ROOT = File.expand_path("../..", __FILE__)
|
6
|
+
def load_meaning
|
7
|
+
YAML.load_file("#{GEM_ROOT}/rumanu/meanings/en.yml")
|
8
|
+
end
|
9
|
+
|
10
|
+
def meaning
|
11
|
+
case self
|
12
|
+
when 1..9
|
13
|
+
return load_meaning['meaning'][self]
|
14
|
+
else
|
15
|
+
return "Value out of range. Please choose a number between 1 and 9"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
def destiny
|
20
|
+
case self
|
21
|
+
when 1..9
|
22
|
+
return load_meaning['destiny'][self]
|
23
|
+
else
|
24
|
+
return "Value out of range. Please choose a number between 1 and 9"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
class Integer
|
31
|
+
include Rumanu::Meaning
|
32
|
+
end
|
33
|
+
|
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
meaning:
|
3
|
+
1:
|
4
|
+
positive: original, courage, leadership, forceful, will, ambitious, determination
|
5
|
+
negative: bossy, boastful, selfish, bullying, impulsive, impatient
|
6
|
+
2:
|
7
|
+
positive: gentle, cooperative, artistic, considerate, loving, sincere
|
8
|
+
negative: self-consciousness, shyness, depression, moody, sloppy, insincere
|
9
|
+
3:
|
10
|
+
positive: optimism, proud, imagination, active, popular, artistic abilities
|
11
|
+
negative: moodiness, wasteful, gossipy, lack of clear direction, excess
|
12
|
+
4:
|
13
|
+
positive: integrity, solid, organized, highly practical, visionary
|
14
|
+
negative: indifference, skewed to details vs. big picture, slow, narrow, spiteful
|
15
|
+
5:
|
16
|
+
positive: visionary, traveler, explorer, flexible, quick to learn
|
17
|
+
negative: impatient, vulgar, restless, impulsive
|
18
|
+
6:
|
19
|
+
positive: compassionate, artist, humanitarian, balanced, magnetic
|
20
|
+
negative: stubbornness, doubtful, self-righteousness, uncaring
|
21
|
+
7:
|
22
|
+
positive: silent, spiritual, analytical, independent, meditative
|
23
|
+
negative: skeptical, inflexible, cynical, fault finding, isolated
|
24
|
+
8:
|
25
|
+
positive: decisive, determined, political skills, strong willed, loyal, fighter for a cause
|
26
|
+
negative: workaholic, cruel, greedy, impatient, revengeful
|
27
|
+
9:
|
28
|
+
positive: creative, organizer, good writer, inspirational, daring, warm personality
|
29
|
+
negative: moody, impulsive, day dreamer, careless with money, lack of direction
|
30
|
+
destiny:
|
31
|
+
1: Your destiny is to become number 1 at all you do in your life.
|
32
|
+
2: Your destiny is to bring people together in an atmosphere of harmony and love.
|
33
|
+
3: Your destiny is to inspire, motivate, heal, and uplift people.
|
34
|
+
4: Your destiny is to leave something of value that people can find beneficial in their day-to-day lives.
|
35
|
+
5: Your destiny is to effect change and show people how to live life to the maximum.
|
36
|
+
6: Your destiny is to provide a nurturing safe ‘nest’ for yourself and your loved ones.
|
37
|
+
7: Your destiny is to develop trust and faith and find your own answer to the meaning of life.
|
38
|
+
8: Your destiny is to manifest financial security that allows you freedom to make a difference in the world.
|
39
|
+
9: Your destiny is to achieve a higher state of consciousness and teach others how to achieve theirs.
|
40
|
+
|
@@ -0,0 +1,93 @@
|
|
1
|
+
module Rumanu
|
2
|
+
class Numerology
|
3
|
+
include Rumanu
|
4
|
+
attr_reader :alphabet, :dob, :vowels, :consonants
|
5
|
+
|
6
|
+
def initialize(name="Vance Louis Wheeler",dob="03/08/1944")
|
7
|
+
@vowels = PY_VOWELS
|
8
|
+
@consonants = PY_CONSONANTS
|
9
|
+
@alphabet = @vowels.merge @consonants
|
10
|
+
@name = name
|
11
|
+
@dob = dob
|
12
|
+
end
|
13
|
+
|
14
|
+
def name=(name)
|
15
|
+
validate_name(name)
|
16
|
+
@name = name
|
17
|
+
|
18
|
+
end
|
19
|
+
|
20
|
+
def name
|
21
|
+
@name.split.map(&:capitalize).join(' ').dup
|
22
|
+
end
|
23
|
+
|
24
|
+
def dob=(dob)
|
25
|
+
validate_dob(dob)
|
26
|
+
@dob = dob
|
27
|
+
end
|
28
|
+
|
29
|
+
# def alphabet=(alphabet)
|
30
|
+
# validate_alphabet(alphabet)
|
31
|
+
# @alphabet = alphabet
|
32
|
+
# end
|
33
|
+
|
34
|
+
def vowels=(vowels)
|
35
|
+
#validate_alphabet(alphabet)
|
36
|
+
@vowels = vowels
|
37
|
+
end
|
38
|
+
|
39
|
+
def consonants=(consonants)
|
40
|
+
#validate_alphabet(alphabet)
|
41
|
+
@consonants = consonants
|
42
|
+
end
|
43
|
+
|
44
|
+
def destiny
|
45
|
+
r = dob.split(/\.|-|\//).inject(0) {|sum,element| sum+element.to_i}
|
46
|
+
value = digit_sum(r)
|
47
|
+
return value unless value.to_s.length >1
|
48
|
+
digit_sum(value)
|
49
|
+
end
|
50
|
+
|
51
|
+
# Sum of all name's vowels
|
52
|
+
def motivation
|
53
|
+
reduce_list(prep_name, @vowels)
|
54
|
+
end
|
55
|
+
|
56
|
+
# Sum of all name's consonants
|
57
|
+
def personality
|
58
|
+
reduce_list(prep_name, @consonants)
|
59
|
+
end
|
60
|
+
|
61
|
+
# Sum of all name's characters
|
62
|
+
def expression
|
63
|
+
reduce_list(prep_name, @alphabet)
|
64
|
+
end
|
65
|
+
|
66
|
+
|
67
|
+
# Private methods
|
68
|
+
|
69
|
+
def prep_name
|
70
|
+
@name.downcase.split('').delete_if{|i| i == " "}
|
71
|
+
end
|
72
|
+
|
73
|
+
def validate_name(arg)
|
74
|
+
raise ArgumentError.new("Name must be a string") unless arg.is_a? String
|
75
|
+
raise ArgumentError.new("Name can't be blank") unless arg.length > 0
|
76
|
+
raise ArgumentError.new("Name can't be just numbers or special characters") unless arg.gsub(/[^A-Za-z ]/, '').length > 0
|
77
|
+
end
|
78
|
+
|
79
|
+
def validate_alphabet(arg)
|
80
|
+
valid_hash?(arg)
|
81
|
+
valid_alphabet = arg.map {|k,v| k.is_a?(String) && v.is_a?(Integer) && 1 || 0 }.reduce(0,:+)
|
82
|
+
raise ArgumentError.new("Invalid Alphabet") unless valid_alphabet>0
|
83
|
+
|
84
|
+
end
|
85
|
+
|
86
|
+
def validate_dob(arg)
|
87
|
+
valid_date?(arg)
|
88
|
+
end
|
89
|
+
|
90
|
+
private :validate_name, :validate_dob, :validate_alphabet, :prep_name
|
91
|
+
|
92
|
+
end
|
93
|
+
end
|
data/lib/rumanu.rb
ADDED
data/rumanu.gemspec
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "rumanu/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "rumanu"
|
8
|
+
spec.version = Rumanu::VERSION
|
9
|
+
spec.authors = ["Alberto Negron"]
|
10
|
+
spec.email = ["albertonegron@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Magic Numerology with Ruby}
|
13
|
+
spec.description = %q{Numerology is the study of numbers and the meaning associated with each number.}
|
14
|
+
spec.homepage = "https://github.com/Altons/rumanu"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
21
|
+
else
|
22
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
23
|
+
"public gem pushes."
|
24
|
+
end
|
25
|
+
|
26
|
+
# Specify which files should be added to the gem when it is released.
|
27
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
28
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
29
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
30
|
+
end
|
31
|
+
spec.bindir = "exe"
|
32
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
33
|
+
spec.require_paths = ["lib"]
|
34
|
+
|
35
|
+
spec.add_development_dependency "bundler", "~> 1.16"
|
36
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
37
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
38
|
+
spec.add_development_dependency "coderay", "~> 1.1"
|
39
|
+
spec.add_development_dependency "pry"
|
40
|
+
end
|
metadata
ADDED
@@ -0,0 +1,134 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rumanu
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.11.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Alberto Negron
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-08-15 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.16'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.16'
|
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: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: coderay
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.1'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.1'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: pry
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
description: Numerology is the study of numbers and the meaning associated with each
|
84
|
+
number.
|
85
|
+
email:
|
86
|
+
- albertonegron@gmail.com
|
87
|
+
executables: []
|
88
|
+
extensions: []
|
89
|
+
extra_rdoc_files: []
|
90
|
+
files:
|
91
|
+
- ".gitignore"
|
92
|
+
- ".rspec"
|
93
|
+
- ".travis.yml"
|
94
|
+
- CODE_OF_CONDUCT.md
|
95
|
+
- Gemfile
|
96
|
+
- Gemfile.lock
|
97
|
+
- LICENSE.txt
|
98
|
+
- README.md
|
99
|
+
- Rakefile
|
100
|
+
- bin/console
|
101
|
+
- bin/setup
|
102
|
+
- lib/rumanu.rb
|
103
|
+
- lib/rumanu/alphabets.rb
|
104
|
+
- lib/rumanu/helpers.rb
|
105
|
+
- lib/rumanu/meaning.rb
|
106
|
+
- lib/rumanu/meanings/en.yml
|
107
|
+
- lib/rumanu/numerology.rb
|
108
|
+
- lib/rumanu/version.rb
|
109
|
+
- rumanu.gemspec
|
110
|
+
homepage: https://github.com/Altons/rumanu
|
111
|
+
licenses:
|
112
|
+
- MIT
|
113
|
+
metadata:
|
114
|
+
allowed_push_host: https://rubygems.org
|
115
|
+
post_install_message:
|
116
|
+
rdoc_options: []
|
117
|
+
require_paths:
|
118
|
+
- lib
|
119
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
124
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
125
|
+
requirements:
|
126
|
+
- - ">="
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: '0'
|
129
|
+
requirements: []
|
130
|
+
rubygems_version: 3.0.3
|
131
|
+
signing_key:
|
132
|
+
specification_version: 4
|
133
|
+
summary: Magic Numerology with Ruby
|
134
|
+
test_files: []
|