fyuk 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.6.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "fyuk"
8
- s.version = "0.6.0"
8
+ s.version = "0.6.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nigel Lowry"]
12
- s.date = "2012-06-27"
12
+ s.date = "2012-06-28"
13
13
  s.description = "Small library with methods for finding the financial or fiscal year for a particular date and suchlike"
14
14
  s.email = "nigel-lowry@ultra.eclipse.co.uk"
15
15
  s.extra_rdoc_files = [
@@ -19,7 +19,7 @@ class UkFinancialYear
19
19
  # @return [String] representation in the form of the first year as four
20
20
  # digits, a '/', then the last year as two digits
21
21
  def to_s
22
- "#{self.first_day.year}/#{self.last_day.year.to_s.last(2)}"
22
+ "#{first_day.year}/#{last_day.year.to_s[-2..-1]}"
23
23
  end
24
24
 
25
25
  # creates a new UkFinancialYear from a string in the form '2000/01'
@@ -122,12 +122,6 @@ class UkFinancialYear
122
122
  end
123
123
  end
124
124
 
125
- class String
126
- def last n
127
- self[-n, n]
128
- end
129
- end
130
-
131
125
  class Date
132
126
  def before? other
133
127
  self < other
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fyuk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-27 00:00:00.000000000 Z
12
+ date: 2012-06-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -144,7 +144,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
144
144
  version: '0'
145
145
  segments:
146
146
  - 0
147
- hash: -341857106633386202
147
+ hash: -1917093770822144806
148
148
  required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements: