gematria 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 097e83f8cdb1c8f139fe01f9a38fac4ae4a51861
4
+ data.tar.gz: d327bd8373fd33087ba9eb507bc5dda35a507b20
5
+ SHA512:
6
+ metadata.gz: 132e0f091b2f55670786eaf0dc23a81da4e671f94fd232d12c97f8c8cac1c2a952ecf63d24e6734c5c24dbde070251b60b1b667778c4a7c73f087b000a46d5b3
7
+ data.tar.gz: fb49bd802defa70145726e630d38a3ae0234b09a22528037883a0e246dcfa34b75a07ac25256c501097bb70d852ddb10ca84acbb05603c0c59f0c92887b25173
data/.gitignore CHANGED
@@ -4,7 +4,6 @@
4
4
  .config
5
5
  .yardoc
6
6
  .rvmrc
7
- Gemfile.lock
8
7
  InstalledFiles
9
8
  _yardoc
10
9
  coverage
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.0.6
4
+
5
+ * Adds Greek and alternate English (ALW cipher) to built-in tables
6
+
3
7
  ## v0.0.5
4
8
 
5
9
  * Improved documentation
@@ -0,0 +1,26 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ gematria (0.0.6)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ diff-lcs (1.2.1)
10
+ rake (10.0.3)
11
+ rspec (2.13.0)
12
+ rspec-core (~> 2.13.0)
13
+ rspec-expectations (~> 2.13.0)
14
+ rspec-mocks (~> 2.13.0)
15
+ rspec-core (2.13.1)
16
+ rspec-expectations (2.13.0)
17
+ diff-lcs (>= 1.1.3, < 2.0)
18
+ rspec-mocks (2.13.0)
19
+
20
+ PLATFORMS
21
+ ruby
22
+
23
+ DEPENDENCIES
24
+ gematria!
25
+ rake
26
+ rspec
data/README.md CHANGED
@@ -1,10 +1,15 @@
1
1
  # Gematria (גימטריא) [![Build Status](https://travis-ci.org/adamzaninovich/gematria.png?branch=master)](https://travis-ci.org/adamzaninovich/gematria)
2
2
 
3
- A Ruby gem that calculates Gematria. The gem comes with built-in correspondence tables for English and Hebrew text, but allows for user-configurable tables. The gem supports raw conversion to number (by simple summation), mapping (breakdown of individual numbers), and reduction to a single digit (mispar katan mispari).
3
+ A Ruby gem that calculates Gematria. The gem comes with a few built-in correspondence tables, but allows for user-configurable tables. The gem supports raw conversion to number (by simple summation), mapping (breakdown of individual numbers), and reduction to a single digit (mispar katan mispari).
4
+
5
+ See the [website](http://adamzaninovich.github.com/gematria) for more detailed information.
4
6
 
5
7
  The included correspondence tables are as follows:
6
8
 
7
- ![Correspondence Tables](https://dl.dropbox.com/u/2436753/github/gematria/correspondence_tables.png)
9
+ ![Hebrew Correspondence Table](http://adamzaninovich.github.com/gematria/images/hebrew.png)
10
+ ![Greek Correspondence Table](http://adamzaninovich.github.com/gematria/images/greek.png)
11
+ ![English Correspondence Table](http://adamzaninovich.github.com/gematria/images/english.png)
12
+ ![English ALW Correspondence Table](http://adamzaninovich.github.com/gematria/images/alw.png)
8
13
 
9
14
  ## Documentation
10
15
 
@@ -49,7 +54,9 @@ Defining a custom table
49
54
  abcd.converted # => 111
50
55
  abcd.reduced # => 3
51
56
 
52
- ## Issues
57
+ ## Known Issues
58
+
59
+ * Not compatible with Ruby 1.8.7 or below. (If you need 1.8.7, use v0.0.2)
53
60
 
54
61
  If you find any issues or errors with this gem, please report them on [Github Issues](http://github.com/adamzaninovich/gematria/issues).
55
62
 
@@ -2,6 +2,7 @@
2
2
  require "gematria/version"
3
3
  require "gematria/table_manager"
4
4
  require "gematria/calculator"
5
+ require "gematria/built_in_tables"
5
6
 
6
7
  # A Ruby gem that calculates Gematria
7
8
  module Gematria
@@ -9,18 +10,7 @@ module Gematria
9
10
  Tables = TableManager.new
10
11
 
11
12
  # Add built-in tables
12
-
13
- # applies "mispar hechrachi" method to English alphabet (http://www.inner.org/gematria/fourways.php)
14
- Tables.add_table :english, {
15
- 'a' => 1, 'b' => 2, 'c' => 3, 'd' => 4, 'e' => 5, 'f' => 6, 'g' => 7, 'h' => 8, 'i' => 9,
16
- 'j' => 10, 'k' => 20, 'l' => 30, 'm' => 40, 'n' => 50, 'o' => 60, 'p' => 70, 'q' => 80, 'r' => 90,
17
- 's' => 100, 't' => 200, 'u' => 300, 'v' => 400, 'w' => 500, 'x' => 600, 'y' => 700, 'z' => 800
18
- }
19
-
20
- # Mispar gadol table
21
- Tables.add_table :hebrew, {
22
- 'א' => 1, 'ב' => 2, 'ג' => 3, 'ד' => 4, 'ה' => 5, 'ו' => 6, 'ז' => 7, 'ח' => 8, 'ט' => 9,
23
- 'י' => 10, 'כ' => 20, 'ל' => 30, 'מ' => 40, 'נ' => 50, 'ס' => 60, 'ע' => 70, 'פ' => 80, 'צ' => 90,
24
- 'ק' => 100, 'ר' => 200, 'ש' => 300, 'ת' => 400, 'ך' => 500, 'ם' => 600, 'ן' => 700, 'ף' => 800, 'ץ' => 900
25
- }
13
+ BUILT_IN_TABLES.each do |name, table|
14
+ Tables.add_table name, table
15
+ end
26
16
  end
@@ -0,0 +1,35 @@
1
+ # -*- encoding : utf-8 -*-
2
+ module Gematria
3
+ BUILT_IN_TABLES = {
4
+ # applies "mispar hechrachi" method to English alphabet (http://www.inner.org/gematria/fourways.php)
5
+ english: {
6
+ 'a' => 1, 'b' => 2, 'c' => 3, 'd' => 4, 'e' => 5, 'f' => 6, 'g' => 7, 'h' => 8, 'i' => 9,
7
+ 'j' => 10, 'k' => 20, 'l' => 30, 'm' => 40, 'n' => 50, 'o' => 60, 'p' => 70, 'q' => 80, 'r' => 90,
8
+ 's' => 100, 't' => 200, 'u' => 300, 'v' => 400, 'w' => 500, 'x' => 600, 'y' => 700, 'z' => 800
9
+ },
10
+
11
+ # English (ALW cipher)
12
+ alw: {
13
+ 'a' => 1, 'l' => 2, 'w' => 3, 'h' => 4, 's' => 5, 'd' => 6, 'o' => 7, 'z' => 8, 'k' => 9,
14
+ 'v' => 10, 'g' => 11, 'r' => 12, 'c' => 13, 'n' => 14, 'y' => 15, 'j' => 16, 'u' => 17, 'f' => 18,
15
+ 'q' => 19, 'b' => 20, 'm' => 21, 'x' => 22, 'i' => 23, 't' => 24, 'e' => 25, 'p' => 26
16
+ },
17
+
18
+ # Mispar gadol table
19
+ hebrew: {
20
+ 'א' => 1, 'ב' => 2, 'ג' => 3, 'ד' => 4, 'ה' => 5, 'ו' => 6, 'ז' => 7, 'ח' => 8, 'ט' => 9,
21
+ 'י' => 10, 'כ' => 20, 'ל' => 30, 'מ' => 40, 'נ' => 50, 'ס' => 60, 'ע' => 70, 'פ' => 80, 'צ' => 90,
22
+ 'ק' => 100, 'ר' => 200, 'ש' => 300, 'ת' => 400, 'ך' => 500, 'ם' => 600, 'ן' => 700, 'ף' => 800, 'ץ' => 900
23
+ },
24
+
25
+ # Greek (Isopsephy)
26
+ greek: {
27
+ 'Α' => 1, 'Β' => 2, 'Γ' => 3, 'Δ' => 4, 'Ε' => 5, 'Ϝ' => 6, 'Ζ' => 7, 'Η' => 8, 'Θ' => 9,
28
+ 'α' => 1, 'β' => 2, 'γ' => 3, 'δ' => 4, 'ε' => 5, 'ϛ' => 6, 'ζ' => 7, 'η' => 8, 'θ' => 9,
29
+ 'Ι' => 10, 'Κ' => 20, 'Λ' => 30, 'Μ' => 40, 'Ν' => 50, 'Ξ' => 60, 'Ο' => 70, 'Π' => 80, 'Ϙ' => 90,
30
+ 'ι' => 10, 'κ' => 20, 'λ' => 30, 'μ' => 40, 'ν' => 50, 'ξ' => 60, 'ο' => 70, 'π' => 80,
31
+ 'Ρ' => 100,'Σ' => 200, 'Τ' => 300, 'Υ' => 400, 'Φ' => 500, 'Χ' => 600, 'Ψ' => 700, 'Ω' => 800,'ϡ' => 900,
32
+ 'ρ' => 100,'σ' => 200, 'τ' => 300, 'υ' => 400, 'φ' => 500,'χ' => 600, 'ψ' => 700, 'ω' => 800
33
+ }
34
+ }
35
+ end
@@ -1,5 +1,5 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Gematria
3
3
  # Official version of gematria gem
4
- VERSION = "0.0.5"
4
+ VERSION = "0.0.6"
5
5
  end
metadata CHANGED
@@ -1,46 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gematria
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
5
- prerelease:
4
+ version: 0.0.6
6
5
  platform: ruby
7
6
  authors:
8
7
  - Adam Zaninovich
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-02-28 00:00:00.000000000 Z
11
+ date: 2013-03-15 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  description: A Ruby gem that calculates Gematria. The gem comes with built-in correspondence
@@ -57,12 +52,14 @@ files:
57
52
  - .travis.yml
58
53
  - CHANGELOG.md
59
54
  - Gemfile
55
+ - Gemfile.lock
60
56
  - LICENSE.txt
61
57
  - README.md
62
58
  - ROADMAP.md
63
59
  - Rakefile
64
60
  - gematria.gemspec
65
61
  - lib/gematria.rb
62
+ - lib/gematria/built_in_tables.rb
66
63
  - lib/gematria/calculator.rb
67
64
  - lib/gematria/table_manager.rb
68
65
  - lib/gematria/version.rb
@@ -71,30 +68,28 @@ files:
71
68
  - spec/spec_helper.rb
72
69
  homepage: http://github.com/adamzaninovich/gematria
73
70
  licenses: []
71
+ metadata: {}
74
72
  post_install_message:
75
73
  rdoc_options: []
76
74
  require_paths:
77
75
  - lib
78
76
  required_ruby_version: !ruby/object:Gem::Requirement
79
- none: false
80
77
  requirements:
81
- - - ! '>='
78
+ - - '>='
82
79
  - !ruby/object:Gem::Version
83
80
  version: '0'
84
81
  required_rubygems_version: !ruby/object:Gem::Requirement
85
- none: false
86
82
  requirements:
87
- - - ! '>='
83
+ - - '>='
88
84
  - !ruby/object:Gem::Version
89
85
  version: '0'
90
86
  requirements: []
91
87
  rubyforge_project:
92
- rubygems_version: 1.8.24
88
+ rubygems_version: 2.0.0
93
89
  signing_key:
94
- specification_version: 3
90
+ specification_version: 4
95
91
  summary: A Ruby gem that calculates Gematria
96
92
  test_files:
97
93
  - spec/gematria/calculator_spec.rb
98
94
  - spec/gematria/table_manager_spec.rb
99
95
  - spec/spec_helper.rb
100
- has_rdoc: