c12-commons 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,7 +29,7 @@ module C12
29
29
  # If you need a short version of the month's name, then use
30
30
  # <code>:format => :short</code> in options.
31
31
  def self.month(month, opts = {})
32
- if month.instance_of? Time
32
+ if month.respond_to? :month
33
33
  index = month.month
34
34
  elsif month.instance_of? Fixnum
35
35
  index = month % 12
@@ -1,6 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module C12
3
3
  module Commons
4
- VERSION = "0.0.2"
4
+ VERSION = "0.0.3"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: c12-commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-05 00:00:00.000000000 Z
12
+ date: 2012-03-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &84622480 !ruby/object:Gem::Requirement
16
+ requirement: &70314126813520 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '2'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *84622480
24
+ version_requirements: *70314126813520
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: simplecov
27
- requirement: &84622280 !ruby/object:Gem::Requirement
27
+ requirement: &70314126828540 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *84622280
35
+ version_requirements: *70314126828540
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: actionpack
38
- requirement: &84622010 !ruby/object:Gem::Requirement
38
+ requirement: &70314126826520 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '3'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *84622010
46
+ version_requirements: *70314126826520
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: prawn
49
- requirement: &84621760 !ruby/object:Gem::Requirement
49
+ requirement: &70314126825360 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0.12'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *84621760
57
+ version_requirements: *70314126825360
58
58
  description: Simple functionality used in my projects
59
59
  email:
60
60
  - dimitri@c12.ge
@@ -103,9 +103,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  version: '0'
104
104
  requirements: []
105
105
  rubyforge_project: c12-commons
106
- rubygems_version: 1.8.13
106
+ rubygems_version: 1.8.15
107
107
  signing_key:
108
108
  specification_version: 3
109
109
  summary: Simple functions
110
- test_files: []
110
+ test_files:
111
+ - spec/c12-commons/core_spec.rb
112
+ - spec/c12-commons/date_spec.rb
113
+ - spec/c12-commons/number_spec.rb
114
+ - spec/c12-commons/pdf_spec.rb
115
+ - spec/spec_helper.rb
111
116
  has_rdoc: