finishing_moves 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -3
- data/.travis.yml +1 -1
- data/README.md +38 -1162
- data/finishing_moves.gemspec +1 -1
- data/lib/finishing_moves/array.rb +1 -0
- data/lib/finishing_moves/fiscal_logic.rb +132 -0
- data/lib/finishing_moves/string.rb +127 -127
- data/lib/finishing_moves/version.rb +1 -1
- data/provision.sh +2 -2
- data/spec/fiscal_logic_spec.rb +255 -0
- data/spec/string_spec.rb +0 -1
- metadata +7 -7
- data/.ruby-version +0 -1
- data/Gemfile.lock +0 -58
- data/lib/finishing_moves/date_and_time.rb +0 -25
data/spec/string_spec.rb
CHANGED
@@ -126,7 +126,6 @@ describe String do
|
|
126
126
|
end
|
127
127
|
|
128
128
|
it '#keyify' do
|
129
|
-
expect(SizedQueue.keyify).to eq :thread_sized_queue
|
130
129
|
expect(Integer.keyify).to eq :integer
|
131
130
|
expect(Math::DomainError.keyify).to eq :math_domain_error
|
132
131
|
expect('FooBarBaz'.keyify).to eq :foo_bar_baz
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: finishing_moves
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frank Koehl
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-04-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rb-readline
|
@@ -92,10 +92,8 @@ extra_rdoc_files: []
|
|
92
92
|
files:
|
93
93
|
- ".gitignore"
|
94
94
|
- ".rspec"
|
95
|
-
- ".ruby-version"
|
96
95
|
- ".travis.yml"
|
97
96
|
- Gemfile
|
98
|
-
- Gemfile.lock
|
99
97
|
- LICENSE
|
100
98
|
- README.md
|
101
99
|
- Rakefile
|
@@ -103,8 +101,8 @@ files:
|
|
103
101
|
- finishing_moves.gemspec
|
104
102
|
- lib/finishing_moves.rb
|
105
103
|
- lib/finishing_moves/array.rb
|
106
|
-
- lib/finishing_moves/date_and_time.rb
|
107
104
|
- lib/finishing_moves/enumerable.rb
|
105
|
+
- lib/finishing_moves/fiscal_logic.rb
|
108
106
|
- lib/finishing_moves/fixnum.rb
|
109
107
|
- lib/finishing_moves/hash.rb
|
110
108
|
- lib/finishing_moves/kernel.rb
|
@@ -115,6 +113,7 @@ files:
|
|
115
113
|
- provision.sh
|
116
114
|
- spec/array_spec.rb
|
117
115
|
- spec/enumerable_spec.rb
|
116
|
+
- spec/fiscal_logic_spec.rb
|
118
117
|
- spec/fixnum_spec.rb
|
119
118
|
- spec/hash_spec.rb
|
120
119
|
- spec/kernel_spec.rb
|
@@ -145,7 +144,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
145
144
|
requirements:
|
146
145
|
- - ">="
|
147
146
|
- !ruby/object:Gem::Version
|
148
|
-
version:
|
147
|
+
version: 2.0.0
|
149
148
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
150
149
|
requirements:
|
151
150
|
- - ">="
|
@@ -153,13 +152,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
152
|
version: '0'
|
154
153
|
requirements: []
|
155
154
|
rubyforge_project:
|
156
|
-
rubygems_version: 2.
|
155
|
+
rubygems_version: 2.4.5
|
157
156
|
signing_key:
|
158
157
|
specification_version: 4
|
159
158
|
summary: Small, focused, incredibly useful methods added to core Ruby classes.
|
160
159
|
test_files:
|
161
160
|
- spec/array_spec.rb
|
162
161
|
- spec/enumerable_spec.rb
|
162
|
+
- spec/fiscal_logic_spec.rb
|
163
163
|
- spec/fixnum_spec.rb
|
164
164
|
- spec/hash_spec.rb
|
165
165
|
- spec/kernel_spec.rb
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.1.5
|
data/Gemfile.lock
DELETED
@@ -1,58 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
finishing_moves (0.3.0)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
byebug (3.5.1)
|
10
|
-
columnize (~> 0.8)
|
11
|
-
debugger-linecache (~> 1.2)
|
12
|
-
slop (~> 3.6)
|
13
|
-
coderay (1.1.0)
|
14
|
-
colorize (0.7.3)
|
15
|
-
columnize (0.8.9)
|
16
|
-
debugger-linecache (1.2.0)
|
17
|
-
diff-lcs (1.2.5)
|
18
|
-
fuubar (2.0.0)
|
19
|
-
rspec (~> 3.0)
|
20
|
-
ruby-progressbar (~> 1.4)
|
21
|
-
method_source (0.8.2)
|
22
|
-
priscilla (1.0.3)
|
23
|
-
colorize (~> 0.7)
|
24
|
-
rumoji (~> 0.3)
|
25
|
-
pry (0.10.1)
|
26
|
-
coderay (~> 1.1.0)
|
27
|
-
method_source (~> 0.8.1)
|
28
|
-
slop (~> 3.4)
|
29
|
-
pry-byebug (2.0.0)
|
30
|
-
byebug (~> 3.4)
|
31
|
-
pry (~> 0.10)
|
32
|
-
rb-readline (0.5.1)
|
33
|
-
rspec (3.1.0)
|
34
|
-
rspec-core (~> 3.1.0)
|
35
|
-
rspec-expectations (~> 3.1.0)
|
36
|
-
rspec-mocks (~> 3.1.0)
|
37
|
-
rspec-core (3.1.7)
|
38
|
-
rspec-support (~> 3.1.0)
|
39
|
-
rspec-expectations (3.1.2)
|
40
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
41
|
-
rspec-support (~> 3.1.0)
|
42
|
-
rspec-mocks (3.1.3)
|
43
|
-
rspec-support (~> 3.1.0)
|
44
|
-
rspec-support (3.1.2)
|
45
|
-
ruby-progressbar (1.7.0)
|
46
|
-
rumoji (0.4.0)
|
47
|
-
slop (3.6.0)
|
48
|
-
|
49
|
-
PLATFORMS
|
50
|
-
ruby
|
51
|
-
|
52
|
-
DEPENDENCIES
|
53
|
-
finishing_moves!
|
54
|
-
fuubar
|
55
|
-
priscilla
|
56
|
-
pry-byebug
|
57
|
-
rb-readline
|
58
|
-
rspec (~> 3.1.0)
|
@@ -1,25 +0,0 @@
|
|
1
|
-
module FinishingMovesFiscalLogic
|
2
|
-
|
3
|
-
def fiscal_quarter
|
4
|
-
((self.month - 1) / 3) + 1
|
5
|
-
end
|
6
|
-
|
7
|
-
# return array of month integers correspond to appropriate quarter interger
|
8
|
-
def quarter_months
|
9
|
-
quarters = [[1,2,3], [4,5,6], [7,8,9], [10,11,12]]
|
10
|
-
quarters[self.month - 1]
|
11
|
-
end
|
12
|
-
|
13
|
-
end
|
14
|
-
|
15
|
-
class Time
|
16
|
-
include FinishingMovesFiscalLogic
|
17
|
-
end
|
18
|
-
|
19
|
-
class Date
|
20
|
-
include FinishingMovesFiscalLogic
|
21
|
-
end
|
22
|
-
|
23
|
-
class DateTime
|
24
|
-
include FinishingMovesFiscalLogic
|
25
|
-
end
|