horoscope 1.0.1 → 1.0.3
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 +5 -13
- data/.ruby-version +1 -1
- data/.travis.yml +3 -3
- data/README.md +1 -1
- data/horoscope.gemspec +9 -8
- data/lib/horoscope/version.rb +1 -1
- data/spec/horoscope_spec.rb +5 -6
- metadata +30 -29
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
YmE4ZDY3NDdiNGNkODNkYjkwMzVkNDdhNjI2MDc2ZWI5MjdhZmIxYg==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 58019fa185f3d09f6b20bba6523245c1e7b20938
|
4
|
+
data.tar.gz: fd980a217fe6b6de0f201a341ebbe02e7513b556
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
NTc3OThiYzNiYWQzNTI3MTE2NTEwN2IxNDY4NmE0ODNmZDk4ZDc5Zjk2ODk4
|
11
|
-
MWM3NzRlYzUyNDRhYjI5OTE5MThhYjQ4OWExYWNiOTcyZDhiMWQ=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NDk0ZjFmZGU4Y2VkM2YzYWIwMjg1NmZlYjkxNTRkMzg0N2Q1NGY1ZDdjMzI0
|
14
|
-
Mzk0MzI0ODcyNDM4MjAyNDhjYWMyNThhM2RiYWIxZWY2ODUyYTMyZjlkNzEy
|
15
|
-
MmU5YTY4OTFjZjdkMzllYWM2YWZiNGZiMTE5MmExY2I0YWRlMGI=
|
6
|
+
metadata.gz: 970851c097a40fae1bd26d1e586e30f7a3f10fd632cd44381618a249a24f514435da186c1fdd3222abb72ba81ea25e13ac136136c1d7a32f711f24e24d319213
|
7
|
+
data.tar.gz: 825e1d463ce8108914ee5736af460d99c4e86f45139461219f6fe296e91c1e826b0205c895188bcb2626594d210e8e6b7f6ba83f8916c1bc557892f8b6054c2f
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
2.2.2
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
data/horoscope.gemspec
CHANGED
@@ -4,18 +4,19 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
require 'horoscope/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |gem|
|
7
|
-
gem.name =
|
7
|
+
gem.name = 'horoscope'
|
8
8
|
gem.version = Horoscope::VERSION
|
9
|
-
gem.authors = [
|
10
|
-
gem.email = [
|
9
|
+
gem.authors = ['bragboy']
|
10
|
+
gem.email = ['bragboy@gmail.com']
|
11
11
|
gem.description = %q{Calculate the horoscope of a person given the birth date and time}
|
12
12
|
gem.summary = %q{Calculate the accurate horoscope of a person using Vedic Horoscope technique given the birth time and birth place of the subject.}
|
13
|
-
gem.homepage =
|
13
|
+
gem.homepage = 'https://github.com/bragboy/horoscope'
|
14
|
+
gem.license = 'MIT'
|
14
15
|
|
15
|
-
gem.add_development_dependency
|
16
|
-
gem.add_development_dependency
|
17
|
-
gem.add_dependency
|
18
|
-
gem.add_dependency
|
16
|
+
gem.add_development_dependency 'rspec', '~>3.3'
|
17
|
+
gem.add_development_dependency 'pry-byebug', '~>3.3'
|
18
|
+
gem.add_dependency 'rmagick', '~>2.15'
|
19
|
+
gem.add_dependency 'erubis', '~>2.7'
|
19
20
|
|
20
21
|
gem.files = `git ls-files`.split($/)
|
21
22
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
data/lib/horoscope/version.rb
CHANGED
data/spec/horoscope_spec.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'spec_helper'
|
2
|
-
require 'ruby-debug'
|
3
2
|
|
4
3
|
describe Horoscope do
|
5
4
|
it "should error out for blanks" do
|
@@ -79,10 +78,10 @@ describe Horoscope do
|
|
79
78
|
h = Horoscope::Horo.new(:datetime => Time.utc(1973, 4, 24, 14, 25), :zone => 5.5, :lat => 18.60, :lon => -72.50)
|
80
79
|
h.compute
|
81
80
|
chart_html = h.create_chart format: :html
|
82
|
-
chart_html.
|
83
|
-
chart_html.
|
84
|
-
chart_html.
|
85
|
-
chart_html.
|
86
|
-
chart_html.
|
81
|
+
expect(chart_html).to match("<td style = \"width:25%\" cell_index = \"0\">Su<br/>Ve</td>")
|
82
|
+
expect(chart_html).to match("<td style = \"width:25%\" cell_index = \"4\">As</td>")
|
83
|
+
expect(chart_html).to match("<td style = \"width:25%\" cell_index = \"11\">Me</td>")
|
84
|
+
expect(chart_html).to match("<td style = \"width:25%\" cell_index = \"1\">Sa</td>")
|
85
|
+
expect(chart_html).to match("<td style = \"width:25%\" cell_index = \"8\">Mo<br/>Ra</td>")
|
87
86
|
end
|
88
87
|
end
|
metadata
CHANGED
@@ -1,71 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: horoscope
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bragboy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '3.3'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '3.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: pry-byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '3.3'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '3.3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rmagick
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '2.15'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '2.15'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: erubis
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '2.7'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '2.7'
|
69
69
|
description: Calculate the horoscope of a person given the birth date and time
|
70
70
|
email:
|
71
71
|
- bragboy@gmail.com
|
@@ -73,12 +73,12 @@ executables: []
|
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
-
- .coveralls.yml
|
77
|
-
- .gitignore
|
78
|
-
- .rspec
|
79
|
-
- .ruby-gemset
|
80
|
-
- .ruby-version
|
81
|
-
- .travis.yml
|
76
|
+
- ".coveralls.yml"
|
77
|
+
- ".gitignore"
|
78
|
+
- ".rspec"
|
79
|
+
- ".ruby-gemset"
|
80
|
+
- ".ruby-version"
|
81
|
+
- ".travis.yml"
|
82
82
|
- Gemfile
|
83
83
|
- LICENSE.txt
|
84
84
|
- README.md
|
@@ -101,7 +101,8 @@ files:
|
|
101
101
|
- spec/spec_helper.rb
|
102
102
|
- views/horoscope_chart_html.eruby
|
103
103
|
homepage: https://github.com/bragboy/horoscope
|
104
|
-
licenses:
|
104
|
+
licenses:
|
105
|
+
- MIT
|
105
106
|
metadata: {}
|
106
107
|
post_install_message:
|
107
108
|
rdoc_options: []
|
@@ -109,17 +110,17 @@ require_paths:
|
|
109
110
|
- lib
|
110
111
|
required_ruby_version: !ruby/object:Gem::Requirement
|
111
112
|
requirements:
|
112
|
-
- -
|
113
|
+
- - ">="
|
113
114
|
- !ruby/object:Gem::Version
|
114
115
|
version: '0'
|
115
116
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
117
|
requirements:
|
117
|
-
- -
|
118
|
+
- - ">="
|
118
119
|
- !ruby/object:Gem::Version
|
119
120
|
version: '0'
|
120
121
|
requirements: []
|
121
122
|
rubyforge_project:
|
122
|
-
rubygems_version: 2.
|
123
|
+
rubygems_version: 2.4.8
|
123
124
|
signing_key:
|
124
125
|
specification_version: 4
|
125
126
|
summary: Calculate the accurate horoscope of a person using Vedic Horoscope technique
|