ruby-mpfr 0.0.2 → 0.0.4

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.
Files changed (42) hide show
  1. data/History.txt +5 -2
  2. data/Manifest.txt +33 -7
  3. data/README.rdoc +10 -8
  4. data/Rakefile +4 -3
  5. data/ext/{extconf.rb → mpfr/extconf.rb} +4 -0
  6. data/ext/{ruby_mpfr.c → mpfr/ruby_mpfr.c} +466 -199
  7. data/ext/{ruby_mpfr.h → mpfr/ruby_mpfr.h} +2 -0
  8. data/ext/mpfr_matrix/mpfr/extconf.rb +7 -0
  9. data/ext/mpfr_matrix/mpfr/func_mpfr_matrix.c +524 -0
  10. data/ext/mpfr_matrix/mpfr/func_mpfr_matrix.h +72 -0
  11. data/ext/mpfr_matrix/mpfr/ruby_mpfr.h +40 -0
  12. data/ext/mpfr_matrix/mpfr/ruby_mpfr_matrix.c +1056 -0
  13. data/ext/mpfr_matrix/mpfr/ruby_mpfr_matrix.h +13 -0
  14. data/lib/mpfr/matrix.rb +145 -0
  15. data/lib/mpfr/version.rb +3 -0
  16. data/ruby-mpfr.gemspec +36 -0
  17. data/spec/mpfr/allocate_spec.rb +60 -0
  18. data/spec/mpfr/arithmetic_spec.rb +64 -0
  19. data/spec/mpfr/comparison_spec.rb +21 -0
  20. data/spec/mpfr/constant_spec.rb +23 -0
  21. data/spec/mpfr/conversion_spec.rb +14 -0
  22. data/spec/mpfr/exception_spec.rb +60 -0
  23. data/spec/mpfr/functions_spec.rb +25 -0
  24. data/spec/mpfr/generate_number_modulue.rb +44 -0
  25. data/spec/mpfr/precision_roundmode_spec.rb +65 -0
  26. data/spec/mpfr/rounding_spec.rb +51 -0
  27. data/spec/mpfr/set_value_spec.rb +77 -0
  28. data/spec/mpfr/spec_helper.rb +13 -0
  29. data/spec/mpfr/string_spec.rb +58 -0
  30. data/spec/mpfr_matrix/generate_matrix_arguments.rb +55 -0
  31. data/spec/mpfr_matrix/mpfr_matrix_alloc_spec.rb +126 -0
  32. data/spec/mpfr_matrix/mpfr_matrix_arithmetic_spec.rb +93 -0
  33. data/spec/mpfr_matrix/mpfr_matrix_set_element_spec.rb +55 -0
  34. data/spec/mpfr_matrix/mpfr_matrix_string_spec.rb +31 -0
  35. data/spec/mpfr_matrix/mpfr_square_matrix_spec.rb +75 -0
  36. data/spec/mpfr_matrix/spec_helper.rb +16 -0
  37. data/tasks/extconf.rake +36 -0
  38. metadata +48 -16
  39. data/lib/ruby-mpfr.rb +0 -6
  40. data/spec/ruby-mpfr_spec.rb +0 -11
  41. data/spec/spec_helper.rb +0 -10
  42. data/tasks/rspec.rake +0 -21
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-mpfr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takayuki YAMAGUCHI
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-25 00:00:00 +09:00
12
+ date: 2009-12-17 00:00:00 +09:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,38 +20,70 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 2.3.2
23
+ version: 2.4.0
24
24
  version:
25
- description: ruby-mpfr is library to use MPFR which is a C library for multiple-precision floating-point computations.
25
+ description: |-
26
+ ruby-mpfr is library to use MPFR[http://www.mpfr.org/] which is a C library for
27
+ multiple-precision floating-point computations.
26
28
  email:
27
29
  - d@ytak.info
28
30
  executables: []
29
31
 
30
32
  extensions:
31
- - ext/extconf.rb
33
+ - ext/mpfr/extconf.rb
34
+ - ext/mpfr_matrix/mpfr/extconf.rb
32
35
  extra_rdoc_files:
33
36
  - History.txt
34
37
  - Manifest.txt
35
38
  - PostInstall.txt
39
+ - README.rdoc
36
40
  files:
37
41
  - History.txt
38
42
  - Manifest.txt
39
43
  - PostInstall.txt
40
44
  - README.rdoc
41
45
  - Rakefile
42
- - lib/ruby-mpfr.rb
43
- - ext/ruby_mpfr.c
44
- - ext/ruby_mpfr.h
45
- - ext/extconf.rb
46
+ - ext/mpfr/extconf.rb
47
+ - ext/mpfr/ruby_mpfr.c
48
+ - ext/mpfr/ruby_mpfr.h
49
+ - ext/mpfr_matrix/mpfr/extconf.rb
50
+ - ext/mpfr_matrix/mpfr/func_mpfr_matrix.c
51
+ - ext/mpfr_matrix/mpfr/func_mpfr_matrix.h
52
+ - ext/mpfr_matrix/mpfr/ruby_mpfr.h
53
+ - ext/mpfr_matrix/mpfr/ruby_mpfr_matrix.c
54
+ - ext/mpfr_matrix/mpfr/ruby_mpfr_matrix.h
55
+ - lib/mpfr/matrix.rb
56
+ - lib/mpfr/version.rb
57
+ - ruby-mpfr.gemspec
46
58
  - script/console
47
59
  - script/destroy
48
60
  - script/generate
49
- - spec/ruby-mpfr_spec.rb
61
+ - spec/mpfr/allocate_spec.rb
62
+ - spec/mpfr/arithmetic_spec.rb
63
+ - spec/mpfr/comparison_spec.rb
64
+ - spec/mpfr/constant_spec.rb
65
+ - spec/mpfr/conversion_spec.rb
66
+ - spec/mpfr/exception_spec.rb
67
+ - spec/mpfr/functions_spec.rb
68
+ - spec/mpfr/generate_number_modulue.rb
69
+ - spec/mpfr/precision_roundmode_spec.rb
70
+ - spec/mpfr/rounding_spec.rb
71
+ - spec/mpfr/set_value_spec.rb
72
+ - spec/mpfr/spec_helper.rb
73
+ - spec/mpfr/string_spec.rb
74
+ - spec/mpfr_matrix/generate_matrix_arguments.rb
75
+ - spec/mpfr_matrix/mpfr_matrix_alloc_spec.rb
76
+ - spec/mpfr_matrix/mpfr_matrix_arithmetic_spec.rb
77
+ - spec/mpfr_matrix/mpfr_matrix_set_element_spec.rb
78
+ - spec/mpfr_matrix/mpfr_matrix_string_spec.rb
79
+ - spec/mpfr_matrix/mpfr_square_matrix_spec.rb
80
+ - spec/mpfr_matrix/spec_helper.rb
50
81
  - spec/spec.opts
51
- - spec/spec_helper.rb
52
- - tasks/rspec.rake
82
+ - tasks/extconf.rake
53
83
  has_rdoc: true
54
- homepage: http://github.com/#{github_username}/#{project_name}
84
+ homepage: http://rubyforge.org/projects/ruby-mpfr/
85
+ licenses: []
86
+
55
87
  post_install_message: PostInstall.txt
56
88
  rdoc_options:
57
89
  - --main
@@ -74,9 +106,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
106
  requirements: []
75
107
 
76
108
  rubyforge_project: ruby-mpfr
77
- rubygems_version: 1.3.1
109
+ rubygems_version: 1.3.5
78
110
  signing_key:
79
- specification_version: 2
80
- summary: ruby-mpfr is library to use MPFR which is a C library for multiple-precision floating-point computations.
111
+ specification_version: 3
112
+ summary: ruby-mpfr is library to use MPFR[http://www.mpfr.org/] which is a C library for multiple-precision floating-point computations.
81
113
  test_files: []
82
114
 
data/lib/ruby-mpfr.rb DELETED
@@ -1,6 +0,0 @@
1
- $:.unshift(File.dirname(__FILE__)) unless
2
- $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
-
4
- module RubyMpfr
5
- VERSION = '0.0.2'
6
- end
@@ -1,11 +0,0 @@
1
- require File.dirname(__FILE__) + '/spec_helper.rb'
2
-
3
- # Time to add your specs!
4
- # http://rspec.info/
5
- describe "Place your specs here" do
6
-
7
- it "find this spec in spec directory" do
8
- # violated "Be sure to write your specs"
9
- end
10
-
11
- end
data/spec/spec_helper.rb DELETED
@@ -1,10 +0,0 @@
1
- begin
2
- require 'spec'
3
- rescue LoadError
4
- require 'rubygems' unless ENV['NO_RUBYGEMS']
5
- gem 'rspec'
6
- require 'spec'
7
- end
8
-
9
- $:.unshift(File.dirname(__FILE__) + '/../lib')
10
- require 'ruby-mpfr'
data/tasks/rspec.rake DELETED
@@ -1,21 +0,0 @@
1
- begin
2
- require 'spec'
3
- rescue LoadError
4
- require 'rubygems' unless ENV['NO_RUBYGEMS']
5
- require 'spec'
6
- end
7
- begin
8
- require 'spec/rake/spectask'
9
- rescue LoadError
10
- puts <<-EOS
11
- To use rspec for testing you must install rspec gem:
12
- gem install rspec
13
- EOS
14
- exit(0)
15
- end
16
-
17
- desc "Run the specs under spec/models"
18
- Spec::Rake::SpecTask.new do |t|
19
- t.spec_opts = ['--options', "spec/spec.opts"]
20
- t.spec_files = FileList['spec/**/*_spec.rb']
21
- end