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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 007bc58cd6706a2358f6be770aa4ec65329dccc4
4
- data.tar.gz: 79709122776b26429f7bb8a69719fe932d6a0dff
2
+ SHA256:
3
+ metadata.gz: 68f983c9d84be0ae5bec7d4ee6edf110cb490b20874d34643c8d5dace29eb3fa
4
+ data.tar.gz: 4f5ccdf68f318495e3044c9ff435594acca6eefec4b935e42cfbb9395896dcf3
5
5
  SHA512:
6
- metadata.gz: f0331ca98a0531c7465fc56311e8de34c88a0397413c1319631e7faf787e222d3f72c4f863e197881f94efe3766deff90f3b7a3031a97f8d04c617fde7b0c276
7
- data.tar.gz: 32f0d2b141b645d013e6c6bae64ad155ff0f0c25c42e6655320ee362f9c5f5d84345840d8de9de641e3acb12d5ae54977731fa03bf8f489ec93886fbb98a486c
6
+ metadata.gz: 006c98bd80c6c7d7d8d2711cf26371a7450902a741e6d11332ed0a18a3924a585535ff5d0e8648f15d5f59ddd57065fe626723b9dec326fd46c211c4ceabbecb
7
+ data.tar.gz: 852c49640d1e502aa5606f1a2d7a5a14a99a1d8a645721380616401b417a44ea3bad87a0357d2604536c1a34da95353200f03a5991917b1f552847bb428b0a74
@@ -9,4 +9,4 @@ require 'poper/rule/character_limit'
9
9
  require 'poper/rule/generic'
10
10
 
11
11
  require 'poper/config_file'
12
- require 'poper/config'
12
+ require 'poper/config'
@@ -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(-v --version) => :version
28
+ map %w[-v --version] => :version
28
29
 
29
30
  def version
30
31
  puts "Poper version #{::Poper::VERSION}"
@@ -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
- ).each do |rule|
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] }
@@ -14,12 +14,12 @@ module Poper
14
14
  },
15
15
  'disallow_generic' => {
16
16
  'enabled' => true,
17
- 'words' => %w(fix fixed fixes oops todo fixme commit changes hm hmm hmmm
18
- test tests quickfix)
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
@@ -3,7 +3,7 @@ module Poper
3
3
  class CharacterLimit < Rule
4
4
  def check(message)
5
5
  error_message if message.lines.any? do |line|
6
- line.length > character_limit
6
+ line.chomp.length > character_limit
7
7
  end
8
8
  end
9
9
 
@@ -1,3 +1,3 @@
1
1
  module Poper
2
- VERSION = '0.2.1'.freeze
2
+ VERSION = '0.2.2'.freeze
3
3
  end
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.1
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: 2017-04-26 00:00:00.000000000 Z
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: rake
48
+ name: bundler
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - "~>"
51
+ - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: '12.0'
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: '12.0'
60
+ version: '1.10'
61
61
  - !ruby/object:Gem::Dependency
62
- name: rspec
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: '3.4'
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: '3.4'
74
+ version: '1.0'
75
75
  - !ruby/object:Gem::Dependency
76
- name: rspec-its
76
+ name: pry
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '1.2'
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: '1.2'
88
+ version: '0.10'
89
89
  - !ruby/object:Gem::Dependency
90
- name: bundler
90
+ name: rake
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: '1.3'
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: '1.3'
102
+ version: '12.0'
103
103
  - !ruby/object:Gem::Dependency
104
- name: simplecov
104
+ name: rspec
105
105
  requirement: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: '0.14'
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: '0.14'
116
+ version: '3.4'
117
117
  - !ruby/object:Gem::Dependency
118
- name: codeclimate-test-reporter
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.0'
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.0'
130
+ version: '1.2'
131
131
  - !ruby/object:Gem::Dependency
132
- name: pry
132
+ name: simplecov
133
133
  requirement: !ruby/object:Gem::Requirement
134
134
  requirements:
135
135
  - - "~>"
136
136
  - !ruby/object:Gem::Version
137
- version: '0.10'
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.10'
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.0.0
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
- rubyforge_project:
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