danica 2.7.2 → 2.7.7
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 -5
- data/.circleci/config.yml +71 -0
- data/.gitignore +6 -1
- data/.rubocop.yml +18 -0
- data/.rubocop_todo.yml +123 -0
- data/Dockerfile +22 -0
- data/Gemfile +2 -1
- data/README.md +9 -1
- data/Rakefile +4 -0
- data/config/check_specs.yml +13 -0
- data/config/rubycritc.rb +12 -0
- data/config/yardstick.rb +13 -0
- data/config/yardstick.yml +33 -0
- data/danica.gemspec +19 -10
- data/docker-compose.yml +14 -9
- data/lib/danica.rb +2 -1
- data/lib/danica/base_operations.rb +3 -0
- data/lib/danica/builder.rb +2 -0
- data/lib/danica/common.rb +8 -4
- data/lib/danica/dsl.rb +8 -6
- data/lib/danica/dsl/builder.rb +4 -1
- data/lib/danica/equation.rb +3 -3
- data/lib/danica/equation/builder.rb +2 -0
- data/lib/danica/exception.rb +3 -2
- data/lib/danica/expressable.rb +14 -8
- data/lib/danica/expression.rb +4 -2
- data/lib/danica/expression/gauss.rb +5 -5
- data/lib/danica/formatted.rb +27 -8
- data/lib/danica/function.rb +5 -3
- data/lib/danica/function/name.rb +2 -0
- data/lib/danica/operator.rb +13 -9
- data/lib/danica/operator/addition.rb +4 -3
- data/lib/danica/operator/chained.rb +4 -3
- data/lib/danica/operator/cos.rb +2 -1
- data/lib/danica/operator/division.rb +2 -1
- data/lib/danica/operator/exponential.rb +2 -1
- data/lib/danica/operator/functional.rb +3 -2
- data/lib/danica/operator/multiplication.rb +4 -2
- data/lib/danica/operator/power.rb +4 -3
- data/lib/danica/operator/sin.rb +2 -1
- data/lib/danica/operator/squared_root.rb +2 -1
- data/lib/danica/variables_holder.rb +7 -4
- data/lib/danica/variables_holder/alias_builder.rb +4 -4
- data/lib/danica/variables_holder/calculator.rb +2 -0
- data/lib/danica/variables_holder/store.rb +3 -2
- data/lib/danica/variables_holder/variables_builder.rb +2 -1
- data/lib/danica/version.rb +3 -1
- data/lib/danica/wrapper.rb +14 -9
- data/lib/danica/wrapper/constant.rb +10 -14
- data/lib/danica/wrapper/container.rb +3 -3
- data/lib/danica/wrapper/group.rb +3 -2
- data/lib/danica/wrapper/negative.rb +3 -1
- data/lib/danica/wrapper/number.rb +6 -3
- data/lib/danica/wrapper/plus_minus.rb +3 -1
- data/lib/danica/wrapper/variable.rb +13 -8
- data/scripts/check_readme.sh +6 -0
- data/scripts/rubycritic.sh +10 -0
- data/spec/integration/global/danica/formatted_spec.rb +87 -0
- data/spec/integration/global/danica/operator/addition_spec.rb +32 -0
- data/spec/integration/{multiplication_spec.rb → global/danica/operator/multiplication_spec.rb} +12 -9
- data/spec/integration/{power_spec.rb → global/danica/operator/power_spec.rb} +4 -2
- data/spec/integration/{negative_spec.rb → global/danica/wrapper/negative_spec.rb} +9 -8
- data/spec/integration/{plus_minus_spec.rb → global/danica/wrapper/plus_minus_spec.rb} +5 -4
- data/spec/integration/readme/constant_spec.rb +4 -1
- data/spec/integration/readme/danica/formatted_spec.rb +24 -0
- data/spec/integration/readme/danica_spec.rb +20 -4
- data/spec/integration/readme/equation_spec.rb +4 -2
- data/spec/integration/readme/expression_spec.rb +11 -8
- data/spec/integration/readme/function_spec.rb +11 -7
- data/spec/integration/readme/number_spec.rb +9 -8
- data/spec/integration/readme/operator_spec.rb +3 -1
- data/spec/integration/readme/variables_spec.rb +8 -6
- data/spec/lib/danica/common_spec.rb +71 -10
- data/spec/lib/danica/dsl_spec.rb +21 -18
- data/spec/lib/danica/equation_spec.rb +10 -8
- data/spec/lib/danica/expressable_spec.rb +5 -2
- data/spec/lib/danica/expression/gauss_spec.rb +6 -3
- data/spec/lib/danica/expression_spec.rb +48 -26
- data/spec/lib/danica/formatted_spec.rb +34 -13
- data/spec/lib/danica/function/name_spec.rb +3 -1
- data/spec/lib/danica/function_spec.rb +14 -10
- data/spec/lib/danica/operator/addition_spec.rb +16 -15
- data/spec/lib/danica/operator/cos_spec.rb +9 -8
- data/spec/lib/danica/operator/division_spec.rb +18 -17
- data/spec/lib/danica/operator/exponential_spec.rb +9 -8
- data/spec/lib/danica/operator/multiplication_spec.rb +16 -15
- data/spec/lib/danica/operator/power_spec.rb +17 -16
- data/spec/lib/danica/operator/sin_spec.rb +9 -8
- data/spec/lib/danica/operator/squared_root_spec.rb +9 -8
- data/spec/lib/danica/operator_spec.rb +13 -4
- data/spec/lib/danica/variables_holder/store_spec.rb +19 -13
- data/spec/lib/danica/variables_holder_spec.rb +76 -59
- data/spec/lib/danica/wrapper/constant_spec.rb +9 -2
- data/spec/lib/danica/wrapper/group_spec.rb +4 -1
- data/spec/lib/danica/wrapper/negative_spec.rb +4 -1
- data/spec/lib/danica/wrapper/number_spec.rb +8 -3
- data/spec/lib/danica/wrapper/plus_minus_spec.rb +4 -1
- data/spec/lib/danica/wrapper/variable_spec.rb +6 -3
- data/spec/lib/danica/wrapper_spec.rb +14 -12
- data/spec/lib/danica_spec.rb +6 -5
- data/spec/spec_helper.rb +3 -2
- data/spec/support/models/expression/baskara.rb +3 -3
- data/spec/support/models/expression/parabole.rb +2 -0
- data/spec/support/models/expression/quadratic_sum.rb +3 -1
- data/spec/support/models/expression/spatial.rb +2 -1
- data/spec/support/models/function/my_function.rb +3 -1
- data/spec/support/models/function/parabole.rb +1 -1
- data/spec/support/models/function/quadratic_sum.rb +2 -0
- data/spec/support/models/function/spatial.rb +2 -0
- data/spec/support/models/operator/inverse.rb +3 -1
- data/spec/support/models/operator/my_operator.rb +3 -1
- data/spec/support/models/variables_holder/dummy.rb +3 -1
- data/spec/support/shared_contexts/common.rb +4 -2
- data/spec/support/shared_examples/base_operations.rb +7 -4
- data/spec/support/shared_examples/common.rb +3 -1
- data/spec/support/shared_examples/operator/chained.rb +12 -6
- data/spec/support/shared_examples/operator/dual_term.rb +9 -8
- data/spec/support/shared_examples/operator/single_input.rb +7 -2
- data/spec/support/shared_examples/variable.rb +8 -4
- metadata +158 -36
- data/spec/integration/addition_spec.rb +0 -28
- data/spec/integration/formatted_spec.rb +0 -75
- data/spec/integration/readme/formatting_spec.rb +0 -34
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
shared_examples 'a operator that joins many variables with same operation' do |arguments|
|
2
4
|
it_behaves_like 'a operator that knows how to calculate', arguments
|
3
5
|
it_behaves_like 'a operator that knows how to write to tex', arguments
|
@@ -5,14 +7,15 @@ shared_examples 'a operator that joins many variables with same operation' do |a
|
|
5
7
|
end
|
6
8
|
|
7
9
|
shared_examples 'a operator that knows how to calculate' do |arguments|
|
8
|
-
include_context 'variables are initialized', arguments, 'calculated'
|
10
|
+
include_context 'when variables are initialized', arguments, 'calculated'
|
11
|
+
subject { described_class.new(*variables) }
|
12
|
+
|
9
13
|
let(:variables) do
|
10
14
|
(1..4).map do |i|
|
11
|
-
{ name: "X#{i}", value: numeric_variables[i-1] }
|
15
|
+
{ name: "X#{i}", value: numeric_variables[i - 1] }
|
12
16
|
end
|
13
17
|
end
|
14
|
-
let(:numeric_variables){ (1..4).to_a }
|
15
|
-
subject { described_class.new(*variables) }
|
18
|
+
let(:numeric_variables) { (1..4).to_a }
|
16
19
|
|
17
20
|
describe 'to_f' do
|
18
21
|
it 'returns the addition of variables value' do
|
@@ -46,10 +49,11 @@ shared_examples 'a operator that knows how to write to gnu' do |arguments|
|
|
46
49
|
end
|
47
50
|
|
48
51
|
shared_examples 'a operator that knows how to write to a string' do |format, arguments|
|
49
|
-
let(:numeric_variables) { arguments[:numeric_variables] }
|
50
|
-
include_context 'variables are initialized', arguments[format], *%w(integer_expected string_expected float_expected)
|
51
52
|
subject { described_class.new(*variables) }
|
52
53
|
|
54
|
+
let(:numeric_variables) { arguments[:numeric_variables] }
|
55
|
+
include_context 'when variables are initialized', arguments[format], 'integer_expected', 'string_expected', 'float_expected'
|
56
|
+
|
53
57
|
describe "#to(#{format})" do
|
54
58
|
let(:variables) do
|
55
59
|
(1..4).map { |i| "X#{i}" }
|
@@ -63,6 +67,7 @@ shared_examples 'a operator that knows how to write to a string' do |format, arg
|
|
63
67
|
|
64
68
|
context 'when some variables have values' do
|
65
69
|
let(:numeric_variables_index) { 1 }
|
70
|
+
|
66
71
|
before do
|
67
72
|
(0..numeric_variables_index).each do |i|
|
68
73
|
subject.variables[i].value = numeric_variables[i]
|
@@ -84,6 +89,7 @@ shared_examples 'a operator that knows how to write to a string' do |format, arg
|
|
84
89
|
|
85
90
|
context 'when some variables are numbers' do
|
86
91
|
let(:numeric_variables_index) { 1 }
|
92
|
+
|
87
93
|
before do
|
88
94
|
(0..numeric_variables_index).each do |i|
|
89
95
|
variables[i] = numeric_variables[i]
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
shared_examples 'a operator that has two terms' do |name, arguments|
|
2
4
|
it_behaves_like 'a operator that has two terms and knows how to calculate it', name, arguments
|
3
5
|
it_behaves_like 'a operator that has two terms and knows how to call to_tex', arguments
|
@@ -5,11 +7,11 @@ shared_examples 'a operator that has two terms' do |name, arguments|
|
|
5
7
|
end
|
6
8
|
|
7
9
|
shared_examples 'a operator that has two terms and knows how to calculate it' do |name, arguments|
|
8
|
-
include_context 'variables are initialized', arguments,
|
10
|
+
include_context 'when variables are initialized', arguments, 'values', 'calculated'
|
9
11
|
|
10
12
|
let(:variables) do
|
11
|
-
[
|
12
|
-
{ name: "X#{i}", value: values[i-1] }
|
13
|
+
[1, 2].map do |i|
|
14
|
+
{ name: "X#{i}", value: values[i - 1] }
|
13
15
|
end
|
14
16
|
end
|
15
17
|
|
@@ -63,17 +65,17 @@ end
|
|
63
65
|
shared_examples 'a operator that has two terms and knows how to return a string out of it' do |command, arguments|
|
64
66
|
let(:values) { arguments[:values] }
|
65
67
|
|
66
|
-
include_context 'variables are initialized', arguments[command],
|
68
|
+
include_context 'when variables are initialized', arguments[command], 'string_expected', 'numeric_string_expected', 'partial_string_expected'
|
67
69
|
describe "##{command}" do
|
68
70
|
let(:variables) do
|
69
|
-
[
|
70
|
-
{ name: "X#{i}", value: values[i-1] }
|
71
|
+
[1, 2].map do |i|
|
72
|
+
{ name: "X#{i}", value: values[i - 1] }
|
71
73
|
end
|
72
74
|
end
|
73
75
|
|
74
76
|
context 'when variables have no value' do
|
75
77
|
let(:variables) do
|
76
|
-
[
|
78
|
+
[1, 2].map { |i| "X#{i}" }
|
77
79
|
end
|
78
80
|
|
79
81
|
it 'returns a text format fraction' do
|
@@ -109,4 +111,3 @@ shared_examples 'a operator that has two terms and knows how to return a string
|
|
109
111
|
end
|
110
112
|
end
|
111
113
|
end
|
112
|
-
|
@@ -1,8 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
shared_examples 'a operator with a single input value' do |arguments|
|
2
|
-
include_context 'variables are initialized', arguments,
|
3
|
-
let(:variable) { { name: "X", value: variable_value } }
|
4
|
+
include_context 'when variables are initialized', arguments, 'variable_value', 'expected_number', 'expected_tex', 'expected_number_tex', 'expected_gnu', 'expected_number_gnu'
|
4
5
|
subject { described_class.new(variable) }
|
5
6
|
|
7
|
+
let(:variable) { { name: 'X', value: variable_value } }
|
8
|
+
|
6
9
|
describe '#to_f' do
|
7
10
|
context 'when variables are not numbers but have value' do
|
8
11
|
it 'returns the division of the values' do
|
@@ -40,6 +43,7 @@ shared_examples 'a operator with a single input value' do |arguments|
|
|
40
43
|
before do
|
41
44
|
subject.variables[0].value = variable_value
|
42
45
|
end
|
46
|
+
|
43
47
|
it 'prints both numbers' do
|
44
48
|
expect(subject.to_tex).to eq(expected_number_tex)
|
45
49
|
end
|
@@ -59,6 +63,7 @@ shared_examples 'a operator with a single input value' do |arguments|
|
|
59
63
|
before do
|
60
64
|
subject.variables[0].value = variable_value
|
61
65
|
end
|
66
|
+
|
62
67
|
it 'prints both numbers' do
|
63
68
|
expect(subject.to_gnu).to eq(expected_number_gnu)
|
64
69
|
end
|
@@ -1,8 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
shared_examples 'a variable method to formated string' do |method, format|
|
4
|
+
subject { described_class.new(arguments) }
|
5
|
+
|
2
6
|
let(:name) { :delta }
|
3
7
|
let(:value) { 10.0 }
|
4
8
|
let(:arguments) { { name: name, latex: '\delta', gnuplot: 'del' } }
|
5
|
-
subject { described_class.new(arguments) }
|
6
9
|
|
7
10
|
context "when #{format} is not defined" do
|
8
11
|
before { arguments.delete(format) }
|
@@ -13,6 +16,7 @@ shared_examples 'a variable method to formated string' do |method, format|
|
|
13
16
|
|
14
17
|
context 'when value is defined' do
|
15
18
|
before { arguments[:value] = value }
|
19
|
+
|
16
20
|
it_behaves_like 'a method that display the numeric value', method
|
17
21
|
end
|
18
22
|
end
|
@@ -32,7 +36,7 @@ shared_examples 'a method that display the numeric value' do |method|
|
|
32
36
|
expect(subject.public_send(method)).to eq('10')
|
33
37
|
end
|
34
38
|
|
35
|
-
context '
|
39
|
+
context 'when passing the decimals argument' do
|
36
40
|
it 'returns the value float string' do
|
37
41
|
expect(subject.public_send(method, decimals: 4)).to eq('10')
|
38
42
|
end
|
@@ -46,13 +50,13 @@ shared_examples 'a method that display the numeric value' do |method|
|
|
46
50
|
expect(subject.public_send(method)).to eq('3.3333333333333335')
|
47
51
|
end
|
48
52
|
|
49
|
-
context '
|
53
|
+
context 'when passing the decimals argument' do
|
50
54
|
it 'returns the value float string' do
|
51
55
|
expect(subject.public_send(method, decimals: 4)).to eq('3.3333')
|
52
56
|
end
|
53
57
|
end
|
54
58
|
|
55
|
-
context '
|
59
|
+
context 'when the number has less decimals' do
|
56
60
|
let(:value) { 10.5 }
|
57
61
|
|
58
62
|
it 'returns the value integer string' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: danica
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Darthjee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,112 +16,224 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 5.
|
19
|
+
version: 5.2.x
|
20
20
|
type: :runtime
|
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: 5.
|
26
|
+
version: 5.2.x
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: darthjee-core_ext
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 2.x
|
34
34
|
type: :runtime
|
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: 2.x
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 1.16.1
|
48
48
|
type: :development
|
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: 1.16.1
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: pry-nav
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.3.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.3.0
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: rake
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
73
|
- - ">="
|
60
74
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
75
|
+
version: 13.0.3
|
62
76
|
type: :development
|
63
77
|
prerelease: false
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
65
79
|
requirements:
|
66
80
|
- - ">="
|
67
81
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
82
|
+
version: 13.0.3
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: rspec
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
|
-
- - "
|
87
|
+
- - ">="
|
74
88
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
89
|
+
version: 3.9.0
|
76
90
|
type: :development
|
77
91
|
prerelease: false
|
78
92
|
version_requirements: !ruby/object:Gem::Requirement
|
79
93
|
requirements:
|
80
|
-
- - "
|
94
|
+
- - ">="
|
81
95
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
96
|
+
version: 3.9.0
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec-core
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 3.9.3
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 3.9.3
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rspec-expectations
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 3.9.4
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 3.9.4
|
83
125
|
- !ruby/object:Gem::Dependency
|
84
126
|
name: rspec-mocks
|
85
127
|
requirement: !ruby/object:Gem::Requirement
|
86
128
|
requirements:
|
87
129
|
- - ">="
|
88
130
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
131
|
+
version: 3.9.1
|
90
132
|
type: :development
|
91
133
|
prerelease: false
|
92
134
|
version_requirements: !ruby/object:Gem::Requirement
|
93
135
|
requirements:
|
94
136
|
- - ">="
|
95
137
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
138
|
+
version: 3.9.1
|
97
139
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
140
|
+
name: rspec-support
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 3.9.4
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 3.9.4
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: rubocop
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - '='
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 0.80.1
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - '='
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 0.80.1
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: rubocop-rspec
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - '='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: 1.38.1
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - '='
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: 1.38.1
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: rubycritic
|
99
183
|
requirement: !ruby/object:Gem::Requirement
|
100
184
|
requirements:
|
101
185
|
- - ">="
|
102
186
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
187
|
+
version: 4.6.1
|
104
188
|
type: :development
|
105
189
|
prerelease: false
|
106
190
|
version_requirements: !ruby/object:Gem::Requirement
|
107
191
|
requirements:
|
108
192
|
- - ">="
|
109
193
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
194
|
+
version: 4.6.1
|
111
195
|
- !ruby/object:Gem::Dependency
|
112
196
|
name: simplecov
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - "~>"
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: 0.17.1
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - "~>"
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: 0.17.1
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: yard
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: 0.9.26
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: 0.9.26
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: yardstick
|
113
225
|
requirement: !ruby/object:Gem::Requirement
|
114
226
|
requirements:
|
115
227
|
- - ">="
|
116
228
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
229
|
+
version: 0.9.9
|
118
230
|
type: :development
|
119
231
|
prerelease: false
|
120
232
|
version_requirements: !ruby/object:Gem::Requirement
|
121
233
|
requirements:
|
122
234
|
- - ">="
|
123
235
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
236
|
+
version: 0.9.9
|
125
237
|
description:
|
126
238
|
email:
|
127
239
|
- darthjee@gmail.com
|
@@ -129,13 +241,21 @@ executables: []
|
|
129
241
|
extensions: []
|
130
242
|
extra_rdoc_files: []
|
131
243
|
files:
|
244
|
+
- ".circleci/config.yml"
|
132
245
|
- ".gitignore"
|
133
246
|
- ".rspec"
|
247
|
+
- ".rubocop.yml"
|
248
|
+
- ".rubocop_todo.yml"
|
249
|
+
- Dockerfile
|
134
250
|
- Gemfile
|
135
251
|
- LICENSE
|
136
252
|
- README.md
|
137
253
|
- Rakefile
|
138
254
|
- circle.yml
|
255
|
+
- config/check_specs.yml
|
256
|
+
- config/rubycritc.rb
|
257
|
+
- config/yardstick.rb
|
258
|
+
- config/yardstick.yml
|
139
259
|
- danica.gemspec
|
140
260
|
- docker-compose.yml
|
141
261
|
- lib/danica.rb
|
@@ -178,17 +298,19 @@ files:
|
|
178
298
|
- lib/danica/wrapper/number.rb
|
179
299
|
- lib/danica/wrapper/plus_minus.rb
|
180
300
|
- lib/danica/wrapper/variable.rb
|
181
|
-
-
|
182
|
-
-
|
183
|
-
- spec/integration/
|
184
|
-
- spec/integration/
|
185
|
-
- spec/integration/
|
186
|
-
- spec/integration/power_spec.rb
|
301
|
+
- scripts/check_readme.sh
|
302
|
+
- scripts/rubycritic.sh
|
303
|
+
- spec/integration/global/danica/formatted_spec.rb
|
304
|
+
- spec/integration/global/danica/operator/addition_spec.rb
|
305
|
+
- spec/integration/global/danica/operator/multiplication_spec.rb
|
306
|
+
- spec/integration/global/danica/operator/power_spec.rb
|
307
|
+
- spec/integration/global/danica/wrapper/negative_spec.rb
|
308
|
+
- spec/integration/global/danica/wrapper/plus_minus_spec.rb
|
187
309
|
- spec/integration/readme/constant_spec.rb
|
310
|
+
- spec/integration/readme/danica/formatted_spec.rb
|
188
311
|
- spec/integration/readme/danica_spec.rb
|
189
312
|
- spec/integration/readme/equation_spec.rb
|
190
313
|
- spec/integration/readme/expression_spec.rb
|
191
|
-
- spec/integration/readme/formatting_spec.rb
|
192
314
|
- spec/integration/readme/function_spec.rb
|
193
315
|
- spec/integration/readme/number_spec.rb
|
194
316
|
- spec/integration/readme/operator_spec.rb
|
@@ -259,22 +381,22 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
259
381
|
version: '0'
|
260
382
|
requirements: []
|
261
383
|
rubyforge_project:
|
262
|
-
rubygems_version: 2.6
|
384
|
+
rubygems_version: 2.7.6
|
263
385
|
signing_key:
|
264
386
|
specification_version: 4
|
265
387
|
summary: Danica
|
266
388
|
test_files:
|
267
|
-
- spec/integration/
|
268
|
-
- spec/integration/
|
269
|
-
- spec/integration/multiplication_spec.rb
|
270
|
-
- spec/integration/
|
271
|
-
- spec/integration/
|
272
|
-
- spec/integration/
|
389
|
+
- spec/integration/global/danica/formatted_spec.rb
|
390
|
+
- spec/integration/global/danica/operator/addition_spec.rb
|
391
|
+
- spec/integration/global/danica/operator/multiplication_spec.rb
|
392
|
+
- spec/integration/global/danica/operator/power_spec.rb
|
393
|
+
- spec/integration/global/danica/wrapper/negative_spec.rb
|
394
|
+
- spec/integration/global/danica/wrapper/plus_minus_spec.rb
|
273
395
|
- spec/integration/readme/constant_spec.rb
|
396
|
+
- spec/integration/readme/danica/formatted_spec.rb
|
274
397
|
- spec/integration/readme/danica_spec.rb
|
275
398
|
- spec/integration/readme/equation_spec.rb
|
276
399
|
- spec/integration/readme/expression_spec.rb
|
277
|
-
- spec/integration/readme/formatting_spec.rb
|
278
400
|
- spec/integration/readme/function_spec.rb
|
279
401
|
- spec/integration/readme/number_spec.rb
|
280
402
|
- spec/integration/readme/operator_spec.rb
|