facets 2.9.0.pre.1 → 2.9.0.pre.2
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +1 -0
- data/COPYING +1 -2
- data/HISTORY.rdoc +16 -8
- data/lib/core/facets/hash/subset.rb +24 -0
- data/lib/core/facets/hash/zip.rb +18 -0
- data/lib/core/facets/kernel/try.rb +3 -3
- data/lib/core/facets/module/home.rb +90 -0
- data/lib/core/facets/module/homename.rb +1 -0
- data/lib/core/facets/module/housing.rb +1 -0
- data/lib/core/facets/module/modname.rb +1 -22
- data/lib/core/facets/na.rb +11 -5
- data/lib/core/facets/object/clone.rb +1 -0
- data/lib/core/facets/{kernel/try_dup.rb → object/dup.rb} +41 -35
- data/lib/core/facets/{kernel → object}/object_state.rb +15 -18
- data/lib/core/facets/object/replace.rb +43 -0
- data/lib/core/facets/object/try_dup.rb +1 -0
- data/lib/core/facets/string/cleanlines.rb +2 -0
- data/lib/core/facets/time/ago.rb +1 -1
- data/lib/core/facets/time/in.rb +1 -93
- data/lib/core/facets/time/less.rb +1 -0
- data/lib/core/facets/time/shift.rb +95 -0
- data/lib/more/facets/interval.rb +284 -0
- data/lib/more/facets/math.rb +6 -0
- data/lib/more/facets/math/abs.rb +8 -0
- data/lib/more/facets/math/acot.rb +8 -0
- data/lib/more/facets/math/acoth.rb +8 -0
- data/lib/more/facets/math/acsc.rb +8 -0
- data/lib/more/facets/math/acsch.rb +8 -0
- data/lib/more/facets/math/amd.rb +17 -0
- data/lib/more/facets/math/approx_equal.rb +15 -0
- data/lib/more/facets/math/asec.rb +8 -0
- data/lib/more/facets/math/asech.rb +8 -0
- data/lib/more/facets/math/atkinson_index.rb +16 -0
- data/lib/more/facets/math/beta.rb +9 -0
- data/lib/more/facets/math/cdf.rb +10 -0
- data/lib/more/facets/math/ceil.rb +8 -0
- data/lib/more/facets/math/cot.rb +8 -0
- data/lib/more/facets/math/coth.rb +8 -0
- data/lib/more/facets/math/csc.rb +8 -0
- data/lib/more/facets/math/csch.rb +8 -0
- data/lib/more/facets/math/delta.rb +8 -0
- data/lib/more/facets/math/epsilon.rb +21 -0
- data/lib/more/facets/math/exp10.rb +8 -0
- data/lib/more/facets/math/exp2.rb +8 -0
- data/lib/more/facets/math/factorial.rb +37 -0
- data/lib/more/facets/math/floor.rb +8 -0
- data/lib/more/facets/math/gamma.rb +12 -0
- data/lib/more/facets/math/gcd.rb +23 -0
- data/lib/more/facets/math/gini_coefficient.rb +33 -0
- data/lib/more/facets/math/kldivergence.rb +19 -0
- data/lib/more/facets/math/lcm.rb +15 -0
- data/lib/more/facets/math/lgamma.rb +21 -0
- data/lib/more/facets/math/linsolve.rb +10 -0
- data/lib/more/facets/math/log2.rb +14 -0
- data/lib/more/facets/math/max.rb +1 -0
- data/lib/more/facets/math/mean.rb +16 -0
- data/lib/more/facets/math/median.rb +15 -0
- data/lib/more/facets/math/min.rb +35 -0
- data/lib/more/facets/math/pow.rb +8 -0
- data/lib/more/facets/math/pstd.rb +1 -0
- data/lib/more/facets/math/pvariance.rb +1 -0
- data/lib/more/facets/math/rmd.rb +16 -0
- data/lib/more/facets/math/root.rb +8 -0
- data/lib/more/facets/math/sec.rb +8 -0
- data/lib/more/facets/math/sech.rb +8 -0
- data/lib/more/facets/math/sign.rb +9 -0
- data/lib/more/facets/math/sinc.rb +8 -0
- data/lib/more/facets/math/sqr.rb +8 -0
- data/lib/more/facets/math/sqsolve.rb +53 -0
- data/lib/more/facets/math/std.rb +27 -0
- data/lib/more/facets/math/stderr.rb +1 -0
- data/lib/more/facets/math/sum.rb +16 -0
- data/lib/more/facets/math/summed_sqdevs.rb +14 -0
- data/lib/more/facets/math/theil_index.rb +24 -0
- data/lib/more/facets/math/variance.rb +31 -0
- data/lib/more/facets/thread.rb +24 -0
- data/lib/tour/facets/array/op_pow.rb +5 -0
- data/lib/tour/facets/module/enclosure.rb +15 -1
- data/lib/tour/facets/module/preextend.rb +26 -0
- data/lib/tour/facets/module/prepend.rb +39 -13
- data/meta/gemfile +1 -1
- data/qed/core/binding/caller.rdoc +1 -3
- data/test/core/array/test_after.rb +1 -1
- data/test/core/array/test_before.rb +1 -1
- data/test/core/array/test_conjoin.rb +1 -1
- data/test/core/array/test_store.rb +1 -1
- data/test/core/hash/test_argumentize.rb +1 -1
- data/test/core/hash/test_join.rb +1 -1
- data/test/core/kernel/test_dup.rb +1 -1
- data/test/core/kernel/test_get.rb +1 -1
- data/test/core/kernel/test_qua_class.rb +1 -1
- data/test/core/time/test_ago.rb +5 -117
- data/test/core/time/test_hence.rb +2 -2
- data/test/core/time/test_in.rb +4 -115
- data/test/core/time/test_less.rb +137 -0
- data/test/core/time/test_set.rb +1 -1
- data/test/core/time/test_shift.rb +126 -0
- data/test/more/test_date.rb +1 -1
- data/test/tour/module/test_cattr.rb +1 -1
- data/test/tour/module/test_class_extend.rb +1 -1
- data/test/tour/module/test_instance_function.rb +1 -1
- data/test/tour/module/test_method_space.rb +1 -1
- metadata +76 -10
- data/lib/core/facets/hash/zipnew.rb +0 -18
- data/lib/core/facets/kernel/clone.rb +0 -1
- data/lib/core/facets/kernel/dup.rb +0 -34
- data/lib/core/facets/kernel/replace.rb +0 -1
@@ -0,0 +1,137 @@
|
|
1
|
+
=begin
|
2
|
+
covers 'facets/time/less'
|
3
|
+
|
4
|
+
Time.test do
|
5
|
+
|
6
|
+
unit :less do
|
7
|
+
|
8
|
+
setup "January 20th 2010 at Noon" do
|
9
|
+
Time.utc(2010,01,20,12,00,00)
|
10
|
+
end
|
11
|
+
|
12
|
+
test 'years' do |t|
|
13
|
+
t.less(1, :year).year.assert = 2009
|
14
|
+
t.less(2, :years).year.assert = 2008
|
15
|
+
end
|
16
|
+
|
17
|
+
test 'weeks' do |t|
|
18
|
+
t.less(1, :week).day.assert == 13
|
19
|
+
t.less(2, :weeks).day.assert == 6
|
20
|
+
end
|
21
|
+
|
22
|
+
test 'days' do |t|
|
23
|
+
t.less(1, :day).day.assert == 19
|
24
|
+
t.less(2, :days).day.assert == 18
|
25
|
+
end
|
26
|
+
|
27
|
+
test 'hours' do |t|
|
28
|
+
t.less(1, :hour).hour.assert == 11
|
29
|
+
t.less(2, :hours).hour.assert == 10
|
30
|
+
t.less(12, :hours).hour.assert == 0
|
31
|
+
end
|
32
|
+
|
33
|
+
test 'minutes' do |t|
|
34
|
+
t.less(1, :minute).min.assert == 59
|
35
|
+
t.less(2, :minutes).min.assert == 58
|
36
|
+
t.less(60, :minutes).min.assert == 0
|
37
|
+
end
|
38
|
+
|
39
|
+
test 'seconds' do |t|
|
40
|
+
t.less(1, :second).sec.assert == 59
|
41
|
+
t.less(2, :seconds).sec.assert == 58
|
42
|
+
t.less(60, :seconds).sec.assert == 0
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
46
|
+
|
47
|
+
unit :less, "verify via dates" do
|
48
|
+
|
49
|
+
test "change years" do
|
50
|
+
e = Time.utc(2007,11, 1, 18,30,57)
|
51
|
+
r = Time.utc(2008,11, 1, 18,30,57).less(1, :years)
|
52
|
+
r.assert == e
|
53
|
+
end
|
54
|
+
|
55
|
+
test "change weeks" do |t|
|
56
|
+
e = Time.utc(2008,11,24, 18,30,57)
|
57
|
+
r = Time.utc(2008,12, 1, 18,30,57).less(1, :weeks)
|
58
|
+
r.assert == e
|
59
|
+
end
|
60
|
+
|
61
|
+
test "change days" do
|
62
|
+
e = Time.utc(2008,11,30, 18,30,57)
|
63
|
+
r = Time.utc(2008,12, 1, 18,30,57).less(1, :days)
|
64
|
+
r.assert == e
|
65
|
+
end
|
66
|
+
|
67
|
+
test "change hours" do
|
68
|
+
e = Time.utc(2008,11,30, 23,30,57)
|
69
|
+
r = Time.utc(2008,12, 1, 0,30,57).less(1, :hours)
|
70
|
+
r.assert == e
|
71
|
+
end
|
72
|
+
|
73
|
+
test "change minutes" do
|
74
|
+
e = Time.utc(2008,11,30, 23,58,57)
|
75
|
+
r = Time.utc(2008,12, 1, 0, 0,57).less(2, :minutes)
|
76
|
+
r.assert == e
|
77
|
+
end
|
78
|
+
|
79
|
+
test "change seconds" do
|
80
|
+
e = Time.utc(2008,11,30, 23,59,57)
|
81
|
+
r = Time.utc(2008,12, 1, 0, 0, 1).less(4, :seconds)
|
82
|
+
r.assert == e
|
83
|
+
end
|
84
|
+
|
85
|
+
end
|
86
|
+
|
87
|
+
unit :less, "months do not have a fixed duration" do
|
88
|
+
|
89
|
+
test "change month no year wrap" do
|
90
|
+
e = Time.utc(2008,11, 1)
|
91
|
+
r = Time.utc(2008,12, 1).less(1, :months)
|
92
|
+
r.assert == e
|
93
|
+
end
|
94
|
+
|
95
|
+
test "change month with year wrap due to month" do
|
96
|
+
e = Time.utc(2007,12, 1)
|
97
|
+
r = Time.utc(2008, 1, 1).less(1, :months)
|
98
|
+
r.assert == e
|
99
|
+
end
|
100
|
+
|
101
|
+
test "change month with 12 or more converts extra months into a year adjustment" do
|
102
|
+
e = Time.utc(2007, 1, 1)
|
103
|
+
r = Time.utc(2008, 1, 1).less(12, :months)
|
104
|
+
r.assert == e
|
105
|
+
|
106
|
+
e = Time.utc(2006,11, 1)
|
107
|
+
r = Time.utc(2008,12, 1).less(25, :months)
|
108
|
+
r.assert == e
|
109
|
+
end
|
110
|
+
|
111
|
+
# 13 months = 1 year + 1 month AND month changing from 12 to 1,
|
112
|
+
# when going backward, means going back 1 extra year.
|
113
|
+
test "change month with 12 or more AND year wrap due to month" do
|
114
|
+
e = Time.utc(2006,12, 1)
|
115
|
+
r = Time.utc(2008, 1, 1).less(13, :months)
|
116
|
+
r.assert == e
|
117
|
+
end
|
118
|
+
|
119
|
+
test "smaller units should remain unchanged" do
|
120
|
+
e = Time.utc(2005, 8,20, 15,37,59)
|
121
|
+
r = Time.utc(2006, 1,20, 15,37,59).less(5, :months)
|
122
|
+
r.assert == e
|
123
|
+
end
|
124
|
+
|
125
|
+
test "passing a negative number to #less should be same as a positive number to #shift" do
|
126
|
+
e = Time.utc(2008, 1, 1)
|
127
|
+
r = Time.utc(2006,12, 1).less(-13, :months)
|
128
|
+
r.assert == e
|
129
|
+
|
130
|
+
r = Time.utc(2006,12, 1).shift(13, :months)
|
131
|
+
r.assert == e
|
132
|
+
end
|
133
|
+
|
134
|
+
end
|
135
|
+
|
136
|
+
end
|
137
|
+
=end
|
data/test/core/time/test_set.rb
CHANGED
@@ -0,0 +1,126 @@
|
|
1
|
+
covers 'facets/time/shift'
|
2
|
+
|
3
|
+
tests Time do
|
4
|
+
|
5
|
+
setup "January 1st 2010 at Noon" do
|
6
|
+
Time.utc(2010,01,01, 12,00,00)
|
7
|
+
end
|
8
|
+
|
9
|
+
unit :shift => 'years' do |t|
|
10
|
+
t.shift(1, :year).year.assert = 2011
|
11
|
+
t.shift(2, :years).year.assert = 2012
|
12
|
+
end
|
13
|
+
|
14
|
+
unit :shift => 'weeks' do |t|
|
15
|
+
t.shift(1, :week).day.assert == 8
|
16
|
+
t.shift(2, :weeks).day.assert == 15
|
17
|
+
end
|
18
|
+
|
19
|
+
unit :shift => 'days' do |t|
|
20
|
+
t.shift(1, :day).day.assert == 2
|
21
|
+
t.shift(2, :days).day.assert == 3
|
22
|
+
end
|
23
|
+
|
24
|
+
unit :shift => 'hours' do |t|
|
25
|
+
t.shift(1, :hour).hour.assert == 13
|
26
|
+
t.shift(2, :hours).hour.assert == 14
|
27
|
+
t.shift(12, :hours).hour.assert == 0
|
28
|
+
end
|
29
|
+
|
30
|
+
unit :shift => 'minutes' do |t|
|
31
|
+
t.shift(1, :minute).min.assert == 1
|
32
|
+
t.shift(2, :minutes).min.assert == 2
|
33
|
+
t.shift(60, :minutes).min.assert == 0
|
34
|
+
end
|
35
|
+
|
36
|
+
unit :shift => 'seconds' do |t|
|
37
|
+
t.shift(1, :second).sec.assert == 1
|
38
|
+
t.shift(2, :seconds).sec.assert == 2
|
39
|
+
t.shift(60, :seconds).sec.assert == 0
|
40
|
+
end
|
41
|
+
|
42
|
+
|
43
|
+
unit :shift => "change years" do
|
44
|
+
e = Time.utc(2008,11, 1, 18,30,57)
|
45
|
+
r = Time.utc(2007,11, 1, 18,30,57).shift(1, :years)
|
46
|
+
r.assert == e
|
47
|
+
end
|
48
|
+
|
49
|
+
unit :shift => "change weeks" do
|
50
|
+
e = Time.utc(2008,12, 1, 18,30,57)
|
51
|
+
r = Time.utc(2008,11,24, 18,30,57).shift(1, :weeks)
|
52
|
+
r.assert == e
|
53
|
+
end
|
54
|
+
|
55
|
+
unit :shift => "change days" do
|
56
|
+
e = Time.utc(2008,12, 1, 18,30,57)
|
57
|
+
r = Time.utc(2008,11,30, 18,30,57).shift(1, :days)
|
58
|
+
r.assert == e
|
59
|
+
end
|
60
|
+
|
61
|
+
unit :shift => "change hours" do
|
62
|
+
e = Time.utc(2008,12, 1, 0,30,57)
|
63
|
+
r = Time.utc(2008,11,30, 23,30,57).shift(1, :hours)
|
64
|
+
r.assert == e
|
65
|
+
end
|
66
|
+
|
67
|
+
unit :shift => "change minutes" do
|
68
|
+
e = Time.utc(2008,12, 1, 0, 0,57)
|
69
|
+
r = Time.utc(2008,11,30, 23,58,57).shift(2, :minutes)
|
70
|
+
r.assert == e
|
71
|
+
end
|
72
|
+
|
73
|
+
unit :shift => "change seconds" do
|
74
|
+
e = Time.utc(2008,12, 1, 0, 0, 1)
|
75
|
+
r = Time.utc(2008,11,30, 23,59,57).shift(4, :seconds)
|
76
|
+
r.assert == e
|
77
|
+
end
|
78
|
+
|
79
|
+
|
80
|
+
concern "months are more difficult, so they get their own section"
|
81
|
+
|
82
|
+
unit :shift => "change month no year wrap" do
|
83
|
+
e = Time.utc(2008,12, 1)
|
84
|
+
r = Time.utc(2008,11, 1).shift(1, :months)
|
85
|
+
r.assert == e
|
86
|
+
end
|
87
|
+
|
88
|
+
unit :shift => "change month with year wrap due to month" do
|
89
|
+
e = Time.utc(2008, 1, 1)
|
90
|
+
r = Time.utc(2007,12, 1).shift(1, :months)
|
91
|
+
r.assert == e
|
92
|
+
end
|
93
|
+
|
94
|
+
unit :shift => "change month with 12 or more converts extra months into a year adjustment" do
|
95
|
+
e = Time.utc(2008, 1, 1)
|
96
|
+
r = Time.utc(2007, 1, 1).shift(12, :months)
|
97
|
+
r.assert == e
|
98
|
+
|
99
|
+
e = Time.utc(2008,12, 1)
|
100
|
+
r = Time.utc(2006,11, 1).shift(25, :months)
|
101
|
+
r.assert == e
|
102
|
+
end
|
103
|
+
|
104
|
+
unit :shift => "change month with 12 or more AND year wrap due to month" do
|
105
|
+
e = Time.utc(2008, 1, 1)
|
106
|
+
r = Time.utc(2006,12, 1).shift(13, :months)
|
107
|
+
r.assert == e
|
108
|
+
end
|
109
|
+
|
110
|
+
unit :shift => "smaller units should remain unchanged" do
|
111
|
+
e = Time.utc(2006, 1,20, 15,37,59)
|
112
|
+
r = Time.utc(2005, 8,20, 15,37,59).shift(5, :months)
|
113
|
+
r.assert == e
|
114
|
+
end
|
115
|
+
|
116
|
+
unit :shift => "passing a negative number to #shift should be same as a positive number to #ago" do
|
117
|
+
e = Time.utc(2005, 8,20)
|
118
|
+
r = Time.utc(2006, 1,20).shift(-5, :months)
|
119
|
+
r.assert == e
|
120
|
+
|
121
|
+
r = Time.utc(2006, 1,20).ago(5, :months)
|
122
|
+
r.assert == e
|
123
|
+
end
|
124
|
+
|
125
|
+
end
|
126
|
+
|
data/test/more/test_date.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: facets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1923831933
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 9
|
9
9
|
- 0
|
10
10
|
- pre
|
11
|
-
-
|
12
|
-
version: 2.9.0.pre.
|
11
|
+
- 2
|
12
|
+
version: 2.9.0.pre.2
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Thomas Sawyer <transfire@gmail.com>
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2010-09-
|
20
|
+
date: 2010-09-25 00:00:00 -04:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -243,6 +243,7 @@ files:
|
|
243
243
|
- lib/core/facets/hash/select.rb
|
244
244
|
- lib/core/facets/hash/slice.rb
|
245
245
|
- lib/core/facets/hash/stringify_keys.rb
|
246
|
+
- lib/core/facets/hash/subset.rb
|
246
247
|
- lib/core/facets/hash/swap.rb
|
247
248
|
- lib/core/facets/hash/symbolize_keys.rb
|
248
249
|
- lib/core/facets/hash/to_h.rb
|
@@ -256,7 +257,7 @@ files:
|
|
256
257
|
- lib/core/facets/hash/update_keys.rb
|
257
258
|
- lib/core/facets/hash/update_values.rb
|
258
259
|
- lib/core/facets/hash/weave.rb
|
259
|
-
- lib/core/facets/hash/
|
260
|
+
- lib/core/facets/hash/zip.rb
|
260
261
|
- lib/core/facets/hash.rb
|
261
262
|
- lib/core/facets/indexable.rb
|
262
263
|
- lib/core/facets/instance.rb
|
@@ -284,14 +285,12 @@ files:
|
|
284
285
|
- lib/core/facets/kernel/call_stack.rb
|
285
286
|
- lib/core/facets/kernel/callstack.rb
|
286
287
|
- lib/core/facets/kernel/case.rb
|
287
|
-
- lib/core/facets/kernel/clone.rb
|
288
288
|
- lib/core/facets/kernel/complete.rb
|
289
289
|
- lib/core/facets/kernel/constant.rb
|
290
290
|
- lib/core/facets/kernel/d.rb
|
291
291
|
- lib/core/facets/kernel/deep_clone.rb
|
292
292
|
- lib/core/facets/kernel/deep_copy.rb
|
293
293
|
- lib/core/facets/kernel/disable_warnings.rb
|
294
|
-
- lib/core/facets/kernel/dup.rb
|
295
294
|
- lib/core/facets/kernel/enable_warnings.rb
|
296
295
|
- lib/core/facets/kernel/equate.rb
|
297
296
|
- lib/core/facets/kernel/ergo.rb
|
@@ -317,12 +316,10 @@ files:
|
|
317
316
|
- lib/core/facets/kernel/object_class.rb
|
318
317
|
- lib/core/facets/kernel/object_hexid.rb
|
319
318
|
- lib/core/facets/kernel/object_send.rb
|
320
|
-
- lib/core/facets/kernel/object_state.rb
|
321
319
|
- lib/core/facets/kernel/p.rb
|
322
320
|
- lib/core/facets/kernel/presence.rb
|
323
321
|
- lib/core/facets/kernel/present.rb
|
324
322
|
- lib/core/facets/kernel/qua_class.rb
|
325
|
-
- lib/core/facets/kernel/replace.rb
|
326
323
|
- lib/core/facets/kernel/require_all.rb
|
327
324
|
- lib/core/facets/kernel/require_relative.rb
|
328
325
|
- lib/core/facets/kernel/respond.rb
|
@@ -336,7 +333,6 @@ files:
|
|
336
333
|
- lib/core/facets/kernel/temporarily.rb
|
337
334
|
- lib/core/facets/kernel/true.rb
|
338
335
|
- lib/core/facets/kernel/try.rb
|
339
|
-
- lib/core/facets/kernel/try_dup.rb
|
340
336
|
- lib/core/facets/kernel/val.rb
|
341
337
|
- lib/core/facets/kernel/with.rb
|
342
338
|
- lib/core/facets/kernel/writers.rb
|
@@ -360,6 +356,9 @@ files:
|
|
360
356
|
- lib/core/facets/module/class_def.rb
|
361
357
|
- lib/core/facets/module/class_method_defined.rb
|
362
358
|
- lib/core/facets/module/extend.rb
|
359
|
+
- lib/core/facets/module/home.rb
|
360
|
+
- lib/core/facets/module/homename.rb
|
361
|
+
- lib/core/facets/module/housing.rb
|
363
362
|
- lib/core/facets/module/include_function_module.rb
|
364
363
|
- lib/core/facets/module/instance_method.rb
|
365
364
|
- lib/core/facets/module/instance_method_defined.rb
|
@@ -398,6 +397,11 @@ files:
|
|
398
397
|
- lib/core/facets/numeric/round_to.rb
|
399
398
|
- lib/core/facets/numeric/spacing.rb
|
400
399
|
- lib/core/facets/numeric.rb
|
400
|
+
- lib/core/facets/object/clone.rb
|
401
|
+
- lib/core/facets/object/dup.rb
|
402
|
+
- lib/core/facets/object/object_state.rb
|
403
|
+
- lib/core/facets/object/replace.rb
|
404
|
+
- lib/core/facets/object/try_dup.rb
|
401
405
|
- lib/core/facets/object.rb
|
402
406
|
- lib/core/facets/objectspace/classes.rb
|
403
407
|
- lib/core/facets/objectspace/op_fetch.rb
|
@@ -513,9 +517,11 @@ files:
|
|
513
517
|
- lib/core/facets/time/future.rb
|
514
518
|
- lib/core/facets/time/hence.rb
|
515
519
|
- lib/core/facets/time/in.rb
|
520
|
+
- lib/core/facets/time/less.rb
|
516
521
|
- lib/core/facets/time/past.rb
|
517
522
|
- lib/core/facets/time/round_to.rb
|
518
523
|
- lib/core/facets/time/set.rb
|
524
|
+
- lib/core/facets/time/shift.rb
|
519
525
|
- lib/core/facets/time/stamp.rb
|
520
526
|
- lib/core/facets/time/to_time.rb
|
521
527
|
- lib/core/facets/time/trunc.rb
|
@@ -543,7 +549,61 @@ files:
|
|
543
549
|
- lib/more/facets/fileutils.rb
|
544
550
|
- lib/more/facets/find.rb
|
545
551
|
- lib/more/facets/getoptlong.rb
|
552
|
+
- lib/more/facets/interval.rb
|
546
553
|
- lib/more/facets/main.rb
|
554
|
+
- lib/more/facets/math/abs.rb
|
555
|
+
- lib/more/facets/math/acot.rb
|
556
|
+
- lib/more/facets/math/acoth.rb
|
557
|
+
- lib/more/facets/math/acsc.rb
|
558
|
+
- lib/more/facets/math/acsch.rb
|
559
|
+
- lib/more/facets/math/amd.rb
|
560
|
+
- lib/more/facets/math/approx_equal.rb
|
561
|
+
- lib/more/facets/math/asec.rb
|
562
|
+
- lib/more/facets/math/asech.rb
|
563
|
+
- lib/more/facets/math/atkinson_index.rb
|
564
|
+
- lib/more/facets/math/beta.rb
|
565
|
+
- lib/more/facets/math/cdf.rb
|
566
|
+
- lib/more/facets/math/ceil.rb
|
567
|
+
- lib/more/facets/math/cot.rb
|
568
|
+
- lib/more/facets/math/coth.rb
|
569
|
+
- lib/more/facets/math/csc.rb
|
570
|
+
- lib/more/facets/math/csch.rb
|
571
|
+
- lib/more/facets/math/delta.rb
|
572
|
+
- lib/more/facets/math/epsilon.rb
|
573
|
+
- lib/more/facets/math/exp10.rb
|
574
|
+
- lib/more/facets/math/exp2.rb
|
575
|
+
- lib/more/facets/math/factorial.rb
|
576
|
+
- lib/more/facets/math/floor.rb
|
577
|
+
- lib/more/facets/math/gamma.rb
|
578
|
+
- lib/more/facets/math/gcd.rb
|
579
|
+
- lib/more/facets/math/gini_coefficient.rb
|
580
|
+
- lib/more/facets/math/kldivergence.rb
|
581
|
+
- lib/more/facets/math/lcm.rb
|
582
|
+
- lib/more/facets/math/lgamma.rb
|
583
|
+
- lib/more/facets/math/linsolve.rb
|
584
|
+
- lib/more/facets/math/log2.rb
|
585
|
+
- lib/more/facets/math/max.rb
|
586
|
+
- lib/more/facets/math/mean.rb
|
587
|
+
- lib/more/facets/math/median.rb
|
588
|
+
- lib/more/facets/math/min.rb
|
589
|
+
- lib/more/facets/math/pow.rb
|
590
|
+
- lib/more/facets/math/pstd.rb
|
591
|
+
- lib/more/facets/math/pvariance.rb
|
592
|
+
- lib/more/facets/math/rmd.rb
|
593
|
+
- lib/more/facets/math/root.rb
|
594
|
+
- lib/more/facets/math/sec.rb
|
595
|
+
- lib/more/facets/math/sech.rb
|
596
|
+
- lib/more/facets/math/sign.rb
|
597
|
+
- lib/more/facets/math/sinc.rb
|
598
|
+
- lib/more/facets/math/sqr.rb
|
599
|
+
- lib/more/facets/math/sqsolve.rb
|
600
|
+
- lib/more/facets/math/std.rb
|
601
|
+
- lib/more/facets/math/stderr.rb
|
602
|
+
- lib/more/facets/math/sum.rb
|
603
|
+
- lib/more/facets/math/summed_sqdevs.rb
|
604
|
+
- lib/more/facets/math/theil_index.rb
|
605
|
+
- lib/more/facets/math/variance.rb
|
606
|
+
- lib/more/facets/math.rb
|
547
607
|
- lib/more/facets/memoizable.rb
|
548
608
|
- lib/more/facets/metaid.rb
|
549
609
|
- lib/more/facets/multipliers.rb
|
@@ -565,6 +625,7 @@ files:
|
|
565
625
|
- lib/more/facets/yaml.rb
|
566
626
|
- lib/more/facets/zlib.rb
|
567
627
|
- lib/tour/facets/array/median.rb
|
628
|
+
- lib/tour/facets/array/op_pow.rb
|
568
629
|
- lib/tour/facets/array/percentile.rb
|
569
630
|
- lib/tour/facets/class/preallocate.rb
|
570
631
|
- lib/tour/facets/integer/roman.rb
|
@@ -590,6 +651,7 @@ files:
|
|
590
651
|
- lib/tour/facets/module/memoize.rb
|
591
652
|
- lib/tour/facets/module/method_space.rb
|
592
653
|
- lib/tour/facets/module/module_load.rb
|
654
|
+
- lib/tour/facets/module/preextend.rb
|
593
655
|
- lib/tour/facets/module/prepend.rb
|
594
656
|
- lib/tour/facets/regexp/op_or.rb
|
595
657
|
- lib/tour/facets/string/crypt.rb
|
@@ -1049,9 +1111,11 @@ files:
|
|
1049
1111
|
- test/core/time/test_future.rb
|
1050
1112
|
- test/core/time/test_hence.rb
|
1051
1113
|
- test/core/time/test_in.rb
|
1114
|
+
- test/core/time/test_less.rb
|
1052
1115
|
- test/core/time/test_past.rb
|
1053
1116
|
- test/core/time/test_round_to.rb
|
1054
1117
|
- test/core/time/test_set.rb
|
1118
|
+
- test/core/time/test_shift.rb
|
1055
1119
|
- test/core/time/test_stamp.rb
|
1056
1120
|
- test/core/time/test_to_time.rb
|
1057
1121
|
- test/core/time/test_trunc.rb
|
@@ -1480,9 +1544,11 @@ test_files:
|
|
1480
1544
|
- test/core/time/test_future.rb
|
1481
1545
|
- test/core/time/test_hence.rb
|
1482
1546
|
- test/core/time/test_in.rb
|
1547
|
+
- test/core/time/test_less.rb
|
1483
1548
|
- test/core/time/test_past.rb
|
1484
1549
|
- test/core/time/test_round_to.rb
|
1485
1550
|
- test/core/time/test_set.rb
|
1551
|
+
- test/core/time/test_shift.rb
|
1486
1552
|
- test/core/time/test_stamp.rb
|
1487
1553
|
- test/core/time/test_to_time.rb
|
1488
1554
|
- test/core/time/test_trunc.rb
|