rubysl-rational 0.0.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +0 -1
- data/.travis.yml +7 -0
- data/README.md +2 -2
- data/Rakefile +0 -1
- data/lib/rational.rb +1 -0
- data/lib/rubysl/rational.rb +2 -0
- data/lib/rubysl/rational/rational.rb +562 -0
- data/lib/{rubysl-rational → rubysl/rational}/version.rb +1 -1
- data/rubysl-rational.gemspec +17 -18
- data/spec/Rational_spec.rb +7 -0
- data/spec/abs_spec.rb +7 -0
- data/spec/ceil_spec.rb +7 -0
- data/spec/coerce_spec.rb +7 -0
- data/spec/comparison_spec.rb +23 -0
- data/spec/denominator_spec.rb +7 -0
- data/spec/div_spec.rb +19 -0
- data/spec/divide_spec.rb +19 -0
- data/spec/divmod_spec.rb +15 -0
- data/spec/equal_value_spec.rb +19 -0
- data/spec/exponent_spec.rb +7 -0
- data/spec/fdiv_spec.rb +7 -0
- data/spec/floor_spec.rb +7 -0
- data/spec/hash_spec.rb +7 -0
- data/spec/initialize_spec.rb +9 -0
- data/spec/inspect_spec.rb +7 -0
- data/spec/minus_spec.rb +7 -0
- data/spec/modulo_spec.rb +7 -0
- data/spec/multiply_spec.rb +19 -0
- data/spec/new_spec.rb +20 -0
- data/spec/numerator_spec.rb +7 -0
- data/spec/plus_spec.rb +18 -0
- data/spec/quo_spec.rb +7 -0
- data/spec/reduce_spec.rb +32 -0
- data/spec/remainder_spec.rb +7 -0
- data/spec/round_spec.rb +7 -0
- data/spec/to_f_spec.rb +7 -0
- data/spec/to_i_spec.rb +7 -0
- data/spec/to_r_spec.rb +7 -0
- data/spec/to_s_spec.rb +7 -0
- data/spec/truncate_spec.rb +7 -0
- metadata +116 -89
- data/lib/rubysl-rational.rb +0 -7
metadata
CHANGED
@@ -1,118 +1,145 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubysl-rational
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 1
|
10
|
-
version: 0.0.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Brian Shirai
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
11
|
+
date: 2013-08-28 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.3'
|
20
|
+
type: :development
|
22
21
|
prerelease: false
|
23
|
-
|
24
|
-
|
25
|
-
requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
26
24
|
- - ~>
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
|
30
|
-
- 1
|
31
|
-
- 0
|
32
|
-
version: "1.0"
|
33
|
-
type: :runtime
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
36
28
|
name: rake
|
37
|
-
|
38
|
-
|
39
|
-
none: false
|
40
|
-
requirements:
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
41
31
|
- - ~>
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
segments:
|
45
|
-
- 10
|
46
|
-
- 0
|
47
|
-
version: "10.0"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
48
34
|
type: :development
|
49
|
-
version_requirements: *id002
|
50
|
-
- !ruby/object:Gem::Dependency
|
51
|
-
name: mspec
|
52
35
|
prerelease: false
|
53
|
-
|
54
|
-
|
55
|
-
requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
56
38
|
- - ~>
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
- 5
|
62
|
-
version: "1.5"
|
63
|
-
type: :development
|
64
|
-
version_requirements: *id003
|
65
|
-
description: Ruby Standard Library - rational
|
66
|
-
email:
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
description: Ruby standard library rational.
|
42
|
+
email:
|
67
43
|
- brixen@gmail.com
|
68
44
|
executables: []
|
69
|
-
|
70
45
|
extensions: []
|
71
|
-
|
72
46
|
extra_rdoc_files: []
|
73
|
-
|
74
|
-
files:
|
47
|
+
files:
|
75
48
|
- .gitignore
|
49
|
+
- .travis.yml
|
76
50
|
- Gemfile
|
77
51
|
- LICENSE
|
78
52
|
- README.md
|
79
53
|
- Rakefile
|
80
|
-
- lib/
|
81
|
-
- lib/rubysl
|
54
|
+
- lib/rational.rb
|
55
|
+
- lib/rubysl/rational.rb
|
56
|
+
- lib/rubysl/rational/rational.rb
|
57
|
+
- lib/rubysl/rational/version.rb
|
82
58
|
- rubysl-rational.gemspec
|
83
|
-
|
84
|
-
|
85
|
-
|
59
|
+
- spec/Rational_spec.rb
|
60
|
+
- spec/abs_spec.rb
|
61
|
+
- spec/ceil_spec.rb
|
62
|
+
- spec/coerce_spec.rb
|
63
|
+
- spec/comparison_spec.rb
|
64
|
+
- spec/denominator_spec.rb
|
65
|
+
- spec/div_spec.rb
|
66
|
+
- spec/divide_spec.rb
|
67
|
+
- spec/divmod_spec.rb
|
68
|
+
- spec/equal_value_spec.rb
|
69
|
+
- spec/exponent_spec.rb
|
70
|
+
- spec/fdiv_spec.rb
|
71
|
+
- spec/floor_spec.rb
|
72
|
+
- spec/hash_spec.rb
|
73
|
+
- spec/initialize_spec.rb
|
74
|
+
- spec/inspect_spec.rb
|
75
|
+
- spec/minus_spec.rb
|
76
|
+
- spec/modulo_spec.rb
|
77
|
+
- spec/multiply_spec.rb
|
78
|
+
- spec/new_spec.rb
|
79
|
+
- spec/numerator_spec.rb
|
80
|
+
- spec/plus_spec.rb
|
81
|
+
- spec/quo_spec.rb
|
82
|
+
- spec/reduce_spec.rb
|
83
|
+
- spec/remainder_spec.rb
|
84
|
+
- spec/round_spec.rb
|
85
|
+
- spec/to_f_spec.rb
|
86
|
+
- spec/to_i_spec.rb
|
87
|
+
- spec/to_r_spec.rb
|
88
|
+
- spec/to_s_spec.rb
|
89
|
+
- spec/truncate_spec.rb
|
90
|
+
homepage: https://github.com/rubysl/rubysl-rational
|
91
|
+
licenses:
|
92
|
+
- BSD
|
93
|
+
metadata: {}
|
86
94
|
post_install_message:
|
87
95
|
rdoc_options: []
|
88
|
-
|
89
|
-
require_paths:
|
96
|
+
require_paths:
|
90
97
|
- lib
|
91
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
none: false
|
102
|
-
requirements:
|
103
|
-
- - ">="
|
104
|
-
- !ruby/object:Gem::Version
|
105
|
-
hash: 2002549777813010636
|
106
|
-
segments:
|
107
|
-
- 0
|
108
|
-
version: "0"
|
98
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - '>='
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
|
+
requirements:
|
105
|
+
- - '>='
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '0'
|
109
108
|
requirements: []
|
110
|
-
|
111
109
|
rubyforge_project:
|
112
|
-
rubygems_version:
|
110
|
+
rubygems_version: 2.0.7
|
113
111
|
signing_key:
|
114
|
-
specification_version:
|
115
|
-
summary: Ruby
|
116
|
-
test_files:
|
117
|
-
|
118
|
-
|
112
|
+
specification_version: 4
|
113
|
+
summary: Ruby standard library rational.
|
114
|
+
test_files:
|
115
|
+
- spec/Rational_spec.rb
|
116
|
+
- spec/abs_spec.rb
|
117
|
+
- spec/ceil_spec.rb
|
118
|
+
- spec/coerce_spec.rb
|
119
|
+
- spec/comparison_spec.rb
|
120
|
+
- spec/denominator_spec.rb
|
121
|
+
- spec/div_spec.rb
|
122
|
+
- spec/divide_spec.rb
|
123
|
+
- spec/divmod_spec.rb
|
124
|
+
- spec/equal_value_spec.rb
|
125
|
+
- spec/exponent_spec.rb
|
126
|
+
- spec/fdiv_spec.rb
|
127
|
+
- spec/floor_spec.rb
|
128
|
+
- spec/hash_spec.rb
|
129
|
+
- spec/initialize_spec.rb
|
130
|
+
- spec/inspect_spec.rb
|
131
|
+
- spec/minus_spec.rb
|
132
|
+
- spec/modulo_spec.rb
|
133
|
+
- spec/multiply_spec.rb
|
134
|
+
- spec/new_spec.rb
|
135
|
+
- spec/numerator_spec.rb
|
136
|
+
- spec/plus_spec.rb
|
137
|
+
- spec/quo_spec.rb
|
138
|
+
- spec/reduce_spec.rb
|
139
|
+
- spec/remainder_spec.rb
|
140
|
+
- spec/round_spec.rb
|
141
|
+
- spec/to_f_spec.rb
|
142
|
+
- spec/to_i_spec.rb
|
143
|
+
- spec/to_r_spec.rb
|
144
|
+
- spec/to_s_spec.rb
|
145
|
+
- spec/truncate_spec.rb
|