poper 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/poper.rb +1 -1
- data/lib/poper/cli.rb +2 -1
- data/lib/poper/config.rb +2 -2
- data/lib/poper/config_file.rb +4 -4
- data/lib/poper/rule/character_limit.rb +1 -1
- data/lib/poper/version.rb +1 -1
- metadata +33 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 68f983c9d84be0ae5bec7d4ee6edf110cb490b20874d34643c8d5dace29eb3fa
|
4
|
+
data.tar.gz: 4f5ccdf68f318495e3044c9ff435594acca6eefec4b935e42cfbb9395896dcf3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 006c98bd80c6c7d7d8d2711cf26371a7450902a741e6d11332ed0a18a3924a585535ff5d0e8648f15d5f59ddd57065fe626723b9dec326fd46c211c4ceabbecb
|
7
|
+
data.tar.gz: 852c49640d1e502aa5606f1a2d7a5a14a99a1d8a645721380616401b417a44ea3bad87a0357d2604536c1a34da95353200f03a5991917b1f552847bb428b0a74
|
data/lib/poper.rb
CHANGED
data/lib/poper/cli.rb
CHANGED
@@ -8,6 +8,7 @@ module Poper
|
|
8
8
|
class << self
|
9
9
|
def is_thor_reserved_word?(word, type)
|
10
10
|
return false if word == 'run'
|
11
|
+
|
11
12
|
super
|
12
13
|
end
|
13
14
|
end
|
@@ -24,7 +25,7 @@ module Poper
|
|
24
25
|
end
|
25
26
|
|
26
27
|
desc 'version', 'Show the Poper version'
|
27
|
-
map %w
|
28
|
+
map %w[-v --version] => :version
|
28
29
|
|
29
30
|
def version
|
30
31
|
puts "Poper version #{::Poper::VERSION}"
|
data/lib/poper/config.rb
CHANGED
@@ -4,13 +4,13 @@ module Poper
|
|
4
4
|
@config_hash = config_hash
|
5
5
|
end
|
6
6
|
|
7
|
-
%w
|
7
|
+
%w[
|
8
8
|
disallow_single_word
|
9
9
|
character_limit
|
10
10
|
summary_character_limit
|
11
11
|
disallow_generic
|
12
12
|
enforce_capitalized
|
13
|
-
|
13
|
+
].each do |rule|
|
14
14
|
ConfigFile::EMPTY[rule].each do |key, _|
|
15
15
|
name = "#{rule}_#{key}"
|
16
16
|
define_method(name) { ENV["POPER_#{name.upcase}"] || @config_hash[rule][key] }
|
data/lib/poper/config_file.rb
CHANGED
@@ -14,12 +14,12 @@ module Poper
|
|
14
14
|
},
|
15
15
|
'disallow_generic' => {
|
16
16
|
'enabled' => true,
|
17
|
-
'words' => %w
|
18
|
-
|
17
|
+
'words' => %w[fix fixed fixes oops todo fixme commit changes hm hmm hmmm
|
18
|
+
test tests quickfix]
|
19
19
|
},
|
20
20
|
'enforce_capitalized' => {
|
21
21
|
'enabled' => true
|
22
|
-
}
|
22
|
+
}
|
23
23
|
}.freeze
|
24
24
|
|
25
25
|
def initialize(path = '.poper.yml')
|
@@ -45,4 +45,4 @@ module Poper
|
|
45
45
|
hash.merge(EMPTY, &merger)
|
46
46
|
end
|
47
47
|
end
|
48
|
-
end
|
48
|
+
end
|
data/lib/poper/version.rb
CHANGED
metadata
CHANGED
@@ -1,35 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: poper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mindaugas Mozūras
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rugged
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0.23'
|
20
17
|
- - ">="
|
21
18
|
- !ruby/object:Gem::Version
|
22
19
|
version: 0.23.0
|
20
|
+
- - "~>"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0.23'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- - "~>"
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0.23'
|
30
27
|
- - ">="
|
31
28
|
- !ruby/object:Gem::Version
|
32
29
|
version: 0.23.0
|
30
|
+
- - "~>"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0.23'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: thor
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -45,103 +45,103 @@ dependencies:
|
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: 0.19.0
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
48
|
+
name: bundler
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- - "
|
51
|
+
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
53
|
+
version: '1.10'
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- - "
|
58
|
+
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
60
|
+
version: '1.10'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
62
|
+
name: codeclimate-test-reporter
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '
|
67
|
+
version: '1.0'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
74
|
+
version: '1.0'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
|
-
name:
|
76
|
+
name: pry
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: '
|
81
|
+
version: '0.10'
|
82
82
|
type: :development
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: '
|
88
|
+
version: '0.10'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
|
-
name:
|
90
|
+
name: rake
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
93
|
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: '
|
95
|
+
version: '12.0'
|
96
96
|
type: :development
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
102
|
+
version: '12.0'
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
|
-
name:
|
104
|
+
name: rspec
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
107
|
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
109
|
+
version: '3.4'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
116
|
+
version: '3.4'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
|
-
name:
|
118
|
+
name: rspec-its
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
120
120
|
requirements:
|
121
121
|
- - "~>"
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version: '1.
|
123
|
+
version: '1.2'
|
124
124
|
type: :development
|
125
125
|
prerelease: false
|
126
126
|
version_requirements: !ruby/object:Gem::Requirement
|
127
127
|
requirements:
|
128
128
|
- - "~>"
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version: '1.
|
130
|
+
version: '1.2'
|
131
131
|
- !ruby/object:Gem::Dependency
|
132
|
-
name:
|
132
|
+
name: simplecov
|
133
133
|
requirement: !ruby/object:Gem::Requirement
|
134
134
|
requirements:
|
135
135
|
- - "~>"
|
136
136
|
- !ruby/object:Gem::Version
|
137
|
-
version: '0.
|
137
|
+
version: '0.14'
|
138
138
|
type: :development
|
139
139
|
prerelease: false
|
140
140
|
version_requirements: !ruby/object:Gem::Requirement
|
141
141
|
requirements:
|
142
142
|
- - "~>"
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: '0.
|
144
|
+
version: '0.14'
|
145
145
|
description:
|
146
146
|
email: mindaugas.mozuras@gmail.com
|
147
147
|
executables:
|
@@ -176,15 +176,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
176
176
|
requirements:
|
177
177
|
- - ">="
|
178
178
|
- !ruby/object:Gem::Version
|
179
|
-
version: 2.
|
179
|
+
version: 2.3.0
|
180
180
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
181
181
|
requirements:
|
182
182
|
- - ">="
|
183
183
|
- !ruby/object:Gem::Version
|
184
184
|
version: 1.3.6
|
185
185
|
requirements: []
|
186
|
-
|
187
|
-
rubygems_version: 2.6.10
|
186
|
+
rubygems_version: 3.0.1
|
188
187
|
signing_key:
|
189
188
|
specification_version: 4
|
190
189
|
summary: Poper makes sure that your git commit messages are well-formed
|