unicode_math 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -3,3 +3,8 @@ rvm:
3
3
  - 1.9.2
4
4
  - 1.9.3
5
5
  script: rspec
6
+ notifications:
7
+ webhooks:
8
+ urls:
9
+ - http://buildlight.collectiveidea.com/
10
+ on_start: true
data/README.md CHANGED
@@ -34,6 +34,7 @@ Easily use unicode costants:
34
34
  τ
35
35
  𝑒
36
36
 
37
+ 𝐢
37
38
 
38
39
  And have fun with them:
39
40
 
@@ -22,6 +22,12 @@ module UnicodeMath
22
22
  end
23
23
  end
24
24
 
25
+ %w(𝐢 𝑖 𝒊 𝒾 𝓲 𝔦 𝕚 𝖎 𝗂 𝗶 𝘪 𝙞 𝚒).each do |i|
26
+ define_method(i) do
27
+ Complex::I
28
+ end
29
+ end
30
+
25
31
  define_method('∞') do
26
32
  1.0 / 0
27
33
  end
@@ -15,6 +15,10 @@ describe UnicodeMath::Constants do
15
15
  expect(𝑒).to be_within(0.00005).of(2.7183)
16
16
  end
17
17
 
18
+ it 'defines 𝑖' do
19
+ expect(𝑖 * 𝑖).to eq(-1)
20
+ end
21
+
18
22
  it 'defines ∞' do
19
23
  expect(∞ + 1).to eq(∞)
20
24
  end
@@ -0,0 +1,9 @@
1
+ # encoding: utf-8
2
+
3
+ require 'spec_helper'
4
+
5
+ describe "Euler's identity" do
6
+ it 'elegantly relates ℯ, 𝒊, π, 1 and 0' do
7
+ expect((ℯ.ⁿ(𝒊*π)+1).real).to eq(0)
8
+ end
9
+ end
data/unicode_math.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'unicode_math'
5
- gem.version = '1.2.0'
5
+ gem.version = '1.3.0'
6
6
 
7
7
  gem.author = 'Collective Idea'
8
8
  gem.email = 'info@collectiveidea.com'
@@ -10,8 +10,8 @@ Gem::Specification.new do |gem|
10
10
  gem.summary = gem.description
11
11
  gem.homepage = 'https://github.com/collectiveidea/unicode_math'
12
12
 
13
- gem.add_development_dependency 'rake', '~> 0.9'
14
- gem.add_development_dependency 'rspec', '~> 2.11'
13
+ gem.add_development_dependency 'rake', '~> 10.0'
14
+ gem.add_development_dependency 'rspec', '~> 2.12'
15
15
 
16
16
  gem.files = `git ls-files`.split($/)
17
17
  gem.test_files = gem.files.grep(/^spec/)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unicode_math
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-15 00:00:00.000000000 Z
12
+ date: 2012-12-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: '0.9'
21
+ version: '10.0'
22
22
  type: :development
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: '0.9'
29
+ version: '10.0'
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rspec
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - ~>
36
36
  - !ruby/object:Gem::Version
37
- version: '2.11'
37
+ version: '2.12'
38
38
  type: :development
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
- version: '2.11'
45
+ version: '2.12'
46
46
  description: Fun Ruby extensions for doing math with Unicode
47
47
  email: info@collectiveidea.com
48
48
  executables: []
@@ -69,6 +69,7 @@ files:
69
69
  - spec/support/random.rb
70
70
  - spec/unicode_math/constants_spec.rb
71
71
  - spec/unicode_math/division_spec.rb
72
+ - spec/unicode_math/equations/euler_spec.rb
72
73
  - spec/unicode_math/exponents_spec.rb
73
74
  - spec/unicode_math/fractions_spec.rb
74
75
  - spec/unicode_math/multiplication_spec.rb
@@ -91,7 +92,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
91
92
  version: '0'
92
93
  segments:
93
94
  - 0
94
- hash: -2333945918950048942
95
+ hash: 2351725633103773453
95
96
  required_rubygems_version: !ruby/object:Gem::Requirement
96
97
  none: false
97
98
  requirements:
@@ -100,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
101
  version: '0'
101
102
  segments:
102
103
  - 0
103
- hash: -2333945918950048942
104
+ hash: 2351725633103773453
104
105
  requirements: []
105
106
  rubyforge_project:
106
107
  rubygems_version: 1.8.24
@@ -112,6 +113,7 @@ test_files:
112
113
  - spec/support/random.rb
113
114
  - spec/unicode_math/constants_spec.rb
114
115
  - spec/unicode_math/division_spec.rb
116
+ - spec/unicode_math/equations/euler_spec.rb
115
117
  - spec/unicode_math/exponents_spec.rb
116
118
  - spec/unicode_math/fractions_spec.rb
117
119
  - spec/unicode_math/multiplication_spec.rb