morecane 0.1.0 → 0.2.0

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e0d8fd819d33daa4098e1f92be09286df203be19
4
+ data.tar.gz: 4cc3f05078719b81d7c9c6a13b6038587a1fd2b7
5
+ SHA512:
6
+ metadata.gz: 90a75fe6583d915aa3fe23636eaf3daeade4b86ec97e46220dd9b7120163905fb6b8c26a6f8bdc8a072690c15ab0b5a9d4a32f2df5e4703afa908d1eac2b2119
7
+ data.tar.gz: 36236d8d495ef920beb912665520b5ccaad482fdba9dcb55d1a3a60a06b3e2fb4f41e37727abae33becdfa1abe75a92a60226412fcc65940454b7d6948d7a8a4
data/CHANGELOG CHANGED
@@ -1,2 +1,5 @@
1
+ v0.2.0 (3rd January 2017)
2
+ - update min supported ruby to 1.9.3
3
+
1
4
  v0.1.0 (9th September 2012)
2
5
  - initial release
@@ -22,10 +22,14 @@ module Morecane
22
22
  private
23
23
 
24
24
  def find_violations(file_name)
25
- data = ::File.open(file_name, 'r:utf-8')
26
- line_one, line_two = *data.lines
25
+ lines = []
26
+ ::File.open(file_name, 'r:utf-8') do |data|
27
+ data.each_line do |line|
28
+ lines << line
29
+ end
30
+ end
27
31
 
28
- if !line_one.to_s.match(/coding:/) && !line_two.to_s.match(/coding:/)
32
+ if !lines[0].to_s.match(/coding:/) && !lines[1].to_s.match(/coding:/)
29
33
  {
30
34
  description: "Source file missing an encoding marker",
31
35
  file: file_name
metadata CHANGED
@@ -1,64 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: morecane
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
5
- prerelease:
4
+ version: 0.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - James Healy
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-09-09 00:00:00.000000000 Z
11
+ date: 2017-01-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: cane
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: 2.1.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: 2.1.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rspec
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
- version: '2.3'
47
+ version: '3.5'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ~>
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
- version: '2.3'
54
+ version: '3.5'
62
55
  description: A set of common checks that I use with cane across my projects
63
56
  email:
64
57
  - james@yob.id.au
@@ -66,37 +59,36 @@ executables: []
66
59
  extensions: []
67
60
  extra_rdoc_files: []
68
61
  files:
62
+ - CHANGELOG
63
+ - README.rdoc
69
64
  - lib/morecane.rb
65
+ - lib/morecane/encoding_check.rb
70
66
  - lib/morecane/must_match_check.rb
71
67
  - lib/morecane/must_not_match_check.rb
72
- - lib/morecane/encoding_check.rb
73
- - README.rdoc
74
- - CHANGELOG
75
68
  homepage: http://github.com/yob/morecane
76
69
  licenses: []
70
+ metadata: {}
77
71
  post_install_message:
78
72
  rdoc_options:
79
- - --title
73
+ - "--title"
80
74
  - Morecane
81
- - --line-numbers
75
+ - "--line-numbers"
82
76
  require_paths:
83
77
  - lib
84
78
  required_ruby_version: !ruby/object:Gem::Requirement
85
- none: false
86
79
  requirements:
87
- - - ! '>='
80
+ - - ">="
88
81
  - !ruby/object:Gem::Version
89
- version: 1.8.7
82
+ version: 1.9.3
90
83
  required_rubygems_version: !ruby/object:Gem::Requirement
91
- none: false
92
84
  requirements:
93
- - - ! '>='
85
+ - - ">="
94
86
  - !ruby/object:Gem::Version
95
87
  version: 1.3.2
96
88
  requirements: []
97
89
  rubyforge_project:
98
- rubygems_version: 1.8.23
90
+ rubygems_version: 2.5.2
99
91
  signing_key:
100
- specification_version: 3
92
+ specification_version: 4
101
93
  summary: Extra checks for the cane gem
102
94
  test_files: []