formatter-date 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a1d1b7ed3503913cbdf6b9b495f683639888cbb
4
- data.tar.gz: a0a7c966c14714e23ed248c0766e9bf1c10d6a2a
3
+ metadata.gz: 7be74b653accda6f57b524e897623f95780d1670
4
+ data.tar.gz: ae24521a5038884e1822041a93fc8fa1b72bc4d7
5
5
  SHA512:
6
- metadata.gz: e8ceec176d6c5da892ee830537a32adc056cc739c947f695624b05fcf80b69f224d5ebc8814ee99733a085cba135735653eb1d34461364af917cd1a1a31a0df6
7
- data.tar.gz: 4b6f9973a336b95739816e897479efbbe69cac118b76228b8c863d529a64da892663f2b66b5794d35263efd5a4a18d30ff58e3db386fb76d6616c5fa826ffaf2
6
+ metadata.gz: 5ad6c03873814880291a0ce2ed61a5652a6c50e540f4fe5d86e5cb3f7dca170ee39a777208ccdb7f637544bc2a4679adf78c8c6eb12b3fc2f9c217918f0751bf
7
+ data.tar.gz: f43c8e0c65e9d726ce306cec21ed79b27b3a76f65f905d735fc920de49ad0892a57b77933718963941bfff9a965468eb36bf70926725c56566e80c4c40bb8f62
@@ -1,77 +1,38 @@
1
1
  AllCops:
2
2
  Exclude:
3
- - Gemfile
4
- - bin/**/*
5
- - vendor/**/*
3
+ - 'bin/**/*'
4
+ - 'vendor/**/*'
5
+ DisplayCopNames: true
6
6
 
7
- Encoding:
8
- Enabled: true
7
+ Style/FileName:
8
+ Enabled: false
9
9
 
10
- Documentation:
10
+ Style/Documentation:
11
11
  Enabled: true
12
12
  Exclude:
13
- - test/**/*
14
-
15
- LineLength:
16
- Max: 80
17
-
18
- # Class
19
- ClassLength:
20
- Max: 80
21
-
22
- EmptyLinesAroundAccessModifier:
23
- Enabled: false
24
-
25
- AccessModifierIndentation:
26
- EnforcedStyle: indent
27
-
28
- # Error
29
- RaiseArgs:
30
- EnforcedStyle: exploded
31
-
32
- SignalException:
33
- EnforcedStyle: semantic
13
+ - 'lib/formatter/date/version.rb'
14
+ - 'test/**/*'
34
15
 
35
16
  # Method
36
- MethodLength:
37
- Max: 10
38
-
39
- SingleLineMethods:
17
+ Style/SingleLineMethods:
40
18
  AllowIfMethodIsEmpty: false
41
19
 
42
- CollectionMethods:
43
- PreferredMethods:
44
- collect: 'map'
45
- collect!: 'map!'
46
- reduce: 'inject'
47
- detect: 'find'
48
- find_all: 'select'
49
-
50
- # Parameter
51
- ParameterLists:
52
- Max: 3
53
- CountKeywordArgs: true
54
-
55
- BracesAroundHashParameters:
56
- Enabled: false
57
- EnforcedStyle: braces
58
-
59
- # Block
60
- BlockNesting:
61
- Max: 3
20
+ Style/FormatString:
21
+ EnforcedStyle: percent
62
22
 
63
23
  # Brackets
64
- SpaceInsideBrackets:
65
- Enabled: true
24
+ Style/SpaceInsideBrackets:
25
+ Enabled: false
66
26
 
67
27
  # Hash
68
- IndentHash:
28
+ Style/IndentHash:
69
29
  EnforcedStyle: consistent
70
30
 
71
- SpaceInsideHashLiteralBraces:
31
+ Style/SpaceInsideHashLiteralBraces:
72
32
  EnforcedStyle: space
73
33
  EnforcedStyleForEmptyBraces: space
74
34
 
75
- # String
76
- StringLiterals:
77
- EnforcedStyle: single_quotes
35
+ # Parameter
36
+ Metrics/ParameterLists:
37
+ Max: 3
38
+ CountKeywordArgs: true
@@ -104,7 +104,7 @@ module Formatter
104
104
  end
105
105
 
106
106
  def format_method?(method)
107
- %i(iso8601 xmlschema jisx0301 rfc3339).include? method
107
+ %w(iso8601 xmlschema jisx0301 rfc3339).include? method.to_s
108
108
  end
109
109
 
110
110
  def with_offset(time_or_datetime)
@@ -2,9 +2,7 @@
2
2
 
3
3
  module Formatter
4
4
  class Date
5
-
6
5
  # Gem version
7
- VERSION = '0.1.0'
8
-
6
+ VERSION = '0.1.1'
9
7
  end
10
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formatter-date
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Terje Larsen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-21 00:00:00.000000000 Z
11
+ date: 2015-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tzinfo