File tree 4 files changed +12
-7
lines changed
4 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 1
- 972.1
1
+ 972.2
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ Gem::Specification.new do |spec|
35
35
spec . executables = spec . files . grep ( %r{^exe/} ) { |f | File . basename ( f ) }
36
36
spec . require_paths = [ "lib" ]
37
37
38
- spec . add_development_dependency "bundler" , "~> 1.17"
38
+ spec . add_development_dependency "bundler"
39
39
spec . add_development_dependency "rake" , "~> 13.0"
40
40
spec . add_development_dependency "rspec" , "~> 3.0"
41
41
spec . add_dependency 'activesupport' , '>= 6.0'
Original file line number Diff line number Diff line change @@ -15,4 +15,5 @@ Changelog
15
15
| 1.12.2020 | creating a dummy Contract#verify to guaranty safe operation of spreads |
16
16
17
17
| | Preparation of a Gem-Release |
18
-
18
+ | 23.2.2021 | Fixed retrieving of ContractDetail requests of Options with strikes < 1
19
+ | | Gem Release |
Original file line number Diff line number Diff line change @@ -111,16 +111,20 @@ def remove_leg contract
111
111
112
112
113
113
def essential
114
- legs . each { |x | x . essential }
115
- self
114
+ invariant_attributes
116
115
end
116
+
117
117
def multiplier
118
118
( legs . map ( &:multiplier ) . sum /legs . size ) . to_i
119
119
end
120
120
121
- # provide a negative con_id
121
+ # provide a negative con_id
122
122
def con_id
123
- -legs . map ( &:con_id ) . sum
123
+ if attributes [ :con_id ] . present? && attributes [ ] < 0
124
+ attributes [ :con_id ]
125
+ else
126
+ -legs . map { |x | x . is_a? ( String ) ? x . expand . con_id : x . con_id } . sum
127
+ end
124
128
end
125
129
126
130
You can’t perform that action at this time.
0 commit comments