banalize 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/History.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## v.0.0.6
2
+ * Wed May 01 2013 -- Dmytro Kovalov
3
+
4
+ - bugfix. Fix logic in set -u/-e policies
5
+
1
6
  ## v.0.0.5
2
7
  * Tue Apr 30 2013 -- Dmytro Kovalov
3
8
 
@@ -1,4 +1,4 @@
1
- banalizer :exit_on_error do
1
+ banalizer File.basename(__FILE__, '.rb').to_sym do
2
2
 
3
3
  synopsis 'Script should be run with -e option or `set -o errexit`'
4
4
 
@@ -34,10 +34,10 @@ EOF
34
34
  end
35
35
 
36
36
 
37
- if ( code.dont_have?(/set\s+-e/) ||
38
- code.dont_have?(/set\s+-o\s+errexit/)
39
- ) &&
40
- shebang.dont_have?(/\s-e/)
37
+ if ( code.dont_have?(/set\s+-e/) &&
38
+ code.dont_have?(/set\s+-o\s+errexit/) &&
39
+ shebang.dont_have?(/\s-e/)
40
+ )
41
41
  errors.add "Can not find option -e or -o errexit anywhere in the script"
42
42
  end
43
43
  return errors.empty?
@@ -1,4 +1,4 @@
1
- banalizer :should_use_set_nounset do
1
+ banalizer File.basename(__FILE__, '.rb').to_sym do
2
2
 
3
3
 
4
4
  synopsis "Always use 'set -u' or 'set -o nounset' in scripts"
@@ -47,9 +47,10 @@ EOF
47
47
  end
48
48
 
49
49
 
50
- if ( code.dont_have?(/set\s+-u/) ||
51
- code.dont_have?(/set\s+-o\s+nounset/)) &&
52
- shebang.dont_have?(/\s-u/)
50
+ if ( code.dont_have?(/set\s+-u/) &&
51
+ code.dont_have?(/set\s+-o\s+nounset/) &&
52
+ shebang.dont_have?(/\s-u/)
53
+ )
53
54
  errors.add "Can not find option -u or -o nounset anywhere in the script"
54
55
  end
55
56
  return errors.empty?
@@ -1 +1 @@
1
- 0.0.5
1
+ 0.0.6
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: banalize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
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: 2013-04-30 00:00:00.000000000 Z
12
+ date: 2013-05-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mash
@@ -223,13 +223,13 @@ files:
223
223
  - ./lib/policies/comment_coverage.rb
224
224
  - ./lib/policies/consistent_indents.rb
225
225
  - ./lib/policies/define_path.rb
226
- - ./lib/policies/exit_on_error.rb
227
- - ./lib/policies/exit_on_unset_variable.rb
228
226
  - ./lib/policies/indentation_style.rb
229
227
  - ./lib/policies/max_line_length.rb
230
228
  - ./lib/policies/shebang_format.rb
231
229
  - ./lib/policies/trailing_spaces.rb
232
230
  - ./lib/policies/uninitialized_variables.rb
231
+ - ./lib/policies/use_set_errexit.rb
232
+ - ./lib/policies/use_set_nounset.rb
233
233
  - ./lib/policies/minus_n_syntax_check
234
234
  homepage: http://wizcorp.jp
235
235
  licenses: []
@@ -249,12 +249,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
249
249
  - - ! '>='
250
250
  - !ruby/object:Gem::Version
251
251
  version: '0'
252
+ segments:
253
+ - 0
254
+ hash: 3715152829284007780
252
255
  required_rubygems_version: !ruby/object:Gem::Requirement
253
256
  none: false
254
257
  requirements:
255
258
  - - ! '>='
256
259
  - !ruby/object:Gem::Version
257
260
  version: '0'
261
+ segments:
262
+ - 0
263
+ hash: 3715152829284007780
258
264
  requirements: []
259
265
  rubyforge_project:
260
266
  rubygems_version: 1.8.25
@@ -262,4 +268,3 @@ signing_key:
262
268
  specification_version: 3
263
269
  summary: Static syntax analyzer for Bash
264
270
  test_files: []
265
- has_rdoc: true