locat 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/.ruby CHANGED
@@ -1,51 +1,50 @@
1
- ---
2
- name: locat
3
- version: 0.1.2
4
- title: LOCat
5
- summary: Lines of Code Attache
6
- description: LOCat is a customizable Lines-Of-Code analysis tool. LOC might not be the most useful metric in the universe, but it still provides useful information and can be a lot of fun.
7
- loadpath:
8
- - lib
9
- manifest: MANIFEST
10
- requires:
1
+ ---
2
+ source:
3
+ - meta
4
+ authors:
5
+ - name: Trans
6
+ email: transfire@gmail.com
7
+ copyrights:
8
+ - holder: Rubyworks
9
+ year: '2011'
10
+ license: BSD-2-Clause
11
+ replacements: []
12
+ alternatives: []
13
+ requirements:
11
14
  - name: grit
12
- version: 0+
13
- group: []
14
-
15
15
  - name: ansi
16
- version: 0+
17
- group: []
18
-
16
+ - name: json
19
17
  - name: detroit
20
- version: 0+
21
- group:
18
+ groups:
22
19
  - build
20
+ development: true
23
21
  - name: qed
24
- version: 0+
25
- group:
22
+ groups:
26
23
  - test
24
+ development: true
25
+ dependencies: []
27
26
  conflicts: []
28
-
29
- replaces: []
30
-
31
- engine_check: []
32
-
33
- organization: Rubyworks
34
- contact: trans <transfire@gmail.com>
35
- created: 2011-07-07
36
- copyright: Copyright (c) 2011 Thomas Sawyer
37
- licenses:
38
- - BSD-2-Clause
39
- authors:
40
- - Thomas Sawyer
41
- maintainers: []
42
-
43
- resources:
27
+ repositories:
28
+ - uri: git://github.com/rubyworks/locat.git
29
+ scm: git
30
+ name: upstream
31
+ resources:
44
32
  home: http://rubyworks.github.com/locat
45
33
  code: http://github.com/rubyworks/locat
46
34
  docs: http://rubydoc.info/gems/locat/frames
47
35
  bugs: http://github.com/rubyworks/locat/issues
48
36
  mail: http://groups.google.com/group/rubyworks-mailinglist
49
- repositories:
50
- public: git://github.com/rubyworks/locat.git
51
- spec_version: 1.0.0
37
+ extra: {}
38
+ load_path:
39
+ - lib
40
+ revision: 0
41
+ created: '2011-07-07'
42
+ summary: Lines of Code Attache
43
+ title: LOCat
44
+ version: 0.2.0
45
+ name: locat
46
+ description: LOCat is a customizable Lines-Of-Code analysis tool. LOC might not be
47
+ the most useful metric in the universe, but it still provides useful information
48
+ and can be a lot of fun.
49
+ organization: Rubyworks
50
+ date: '2011-11-04'
@@ -4,6 +4,7 @@
4
4
 
5
5
  Copyright:: (c) 2011 Thomas Sawyer, Rubyworks
6
6
  License:: BSD-2-Clause
7
+ Website:: http://rubyworks.github.com/locat
7
8
 
8
9
  Copyright (c) 2011 Thomas Sawyer. All rights reserved.
9
10
 
@@ -27,7 +28,3 @@ License:: BSD-2-Clause
27
28
  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
28
29
  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
30
 
30
- The views and conclusions contained in the software and documentation are those of the
31
- authors and should not be interpreted as representing official policies, either expressed
32
- or implied, of Thomas Sawyer.
33
-
@@ -1,8 +1,22 @@
1
1
  = RELEASE HISTORY
2
2
 
3
+ == 0.2.0 | 2011-11-04
4
+
5
+ This release upgrades the HighCharts javascript dependency a notch
6
+ to v2.1.6, and provides a default configuration when none is provided
7
+ by a project --which makes it even easier to get started using LOCat!
8
+
9
+ Changes:
10
+
11
+ * Use default configuration if none supplied by project.
12
+ * Update HighCharts dependency to 2.1.6.
13
+
14
+
3
15
  == 0.1.2 | 2011-07-11
4
16
 
5
- Doh. Eoughg said.
17
+ Doh. Can I not write one line of code with a bug creeping
18
+ into it! Any how, this release just fixes a typo in the CLI
19
+ parsing code, and adds a default encoding for Ruby 1.9.
6
20
 
7
21
  Changes:
8
22
 
File without changes
@@ -1,17 +1,16 @@
1
1
  = LOCat
2
2
 
3
+ {Homepage}[http://rubyworks.github.com/locat] |
4
+ {Development}[http://github.com/rubyworks/locat] |
5
+ {Issue Tracker}[http://github.com/rubyworks/locat/issues] |
6
+ {Mailing List}[http://groups.google.com/group/rubyworks-mailinglist]
3
7
 
4
- == DESCRIPTION
5
-
6
- LOCat is a fancy Lines-Of-Code analysis tool.
8
+ {<img src="http://travis-ci.org/rubyworks/locat.png" />}[http://travis-ci.org/rubyworks/locat]
7
9
 
8
10
 
9
- == RESOURCES
11
+ == DESCRIPTION
10
12
 
11
- * {Homepage}[http://rubyworks.github.com/locat]
12
- * {Development}[http://github.com/rubyworks/locat]
13
- * {Issue Tracker}[http://github.com/rubyworks/locat/issues]
14
- * {Mailing List}[http://groups.google.com/group/rubyworks-mailinglist]
13
+ LOCat is a fancy Lines-Of-Code analysis tool.
15
14
 
16
15
 
17
16
  == SYNOPSIS
@@ -86,7 +86,7 @@ module LOCat
86
86
 
87
87
  #
88
88
  def matcher
89
- @matcher ||= Matcher.new(*config)
89
+ @matcher ||= Matcher.new(*([config].flatten))
90
90
  end
91
91
 
92
92
  #
@@ -9,7 +9,7 @@ module LOCat
9
9
  @rules = []
10
10
 
11
11
  if config_files.empty?
12
- raise ArgumentError, 'no configuration files'
12
+ default
13
13
  end
14
14
 
15
15
  config_files.each do |f|
@@ -34,6 +34,33 @@ module LOCat
34
34
  def size
35
35
  @rules.size
36
36
  end
37
+
38
+ private
39
+
40
+ # Default configuration if none is supplied by the project.
41
+ def default
42
+ match 'lib/**.rb' do |file, line|
43
+ case line
44
+ when /^\s*#/
45
+ 'Comment'
46
+ when /^\s*$/
47
+ 'Blank'
48
+ else
49
+ 'Code'
50
+ end
51
+ end
52
+ match 'test/**.rb' do |file, line|
53
+ case line
54
+ when /^\s*#/
55
+ 'Comment'
56
+ when /^\s*$/
57
+ 'Blank'
58
+ else
59
+ 'Test'
60
+ end
61
+ end
62
+ end
63
+
37
64
  end
38
65
 
39
66
  end
@@ -24,7 +24,7 @@
24
24
  </style>
25
25
 
26
26
  <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
27
- <script src="http://cdnjs.cloudflare.com/ajax/libs/highcharts/2.1.5/highcharts.js" type="text/javascript"></script>
27
+ <script src="http://cdnjs.cloudflare.com/ajax/libs/highcharts/2.1.6/highcharts.js" type="text/javascript"></script>
28
28
 
29
29
  <script>
30
30
  <%= javascript %>
metadata CHANGED
@@ -1,70 +1,85 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: locat
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
4
5
  prerelease:
5
- version: 0.1.2
6
6
  platform: ruby
7
- authors:
8
- - Thomas Sawyer
7
+ authors:
8
+ - Trans
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-07-11 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+ date: 2011-11-04 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
16
15
  name: grit
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &26222540 !ruby/object:Gem::Requirement
19
17
  none: false
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
24
22
  type: :runtime
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
23
+ prerelease: false
24
+ version_requirements: *26222540
25
+ - !ruby/object:Gem::Dependency
27
26
  name: ansi
27
+ requirement: &26255180 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :runtime
28
34
  prerelease: false
29
- requirement: &id002 !ruby/object:Gem::Requirement
35
+ version_requirements: *26255180
36
+ - !ruby/object:Gem::Dependency
37
+ name: json
38
+ requirement: &26254680 !ruby/object:Gem::Requirement
30
39
  none: false
31
- requirements:
32
- - - ">="
33
- - !ruby/object:Gem::Version
34
- version: "0"
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
35
44
  type: :runtime
36
- version_requirements: *id002
37
- - !ruby/object:Gem::Dependency
38
- name: detroit
39
45
  prerelease: false
40
- requirement: &id003 !ruby/object:Gem::Requirement
46
+ version_requirements: *26254680
47
+ - !ruby/object:Gem::Dependency
48
+ name: detroit
49
+ requirement: &26254160 !ruby/object:Gem::Requirement
41
50
  none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- version: "0"
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
46
55
  type: :development
47
- version_requirements: *id003
48
- - !ruby/object:Gem::Dependency
49
- name: qed
50
56
  prerelease: false
51
- requirement: &id004 !ruby/object:Gem::Requirement
57
+ version_requirements: *26254160
58
+ - !ruby/object:Gem::Dependency
59
+ name: qed
60
+ requirement: &26253640 !ruby/object:Gem::Requirement
52
61
  none: false
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- version: "0"
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
57
66
  type: :development
58
- version_requirements: *id004
59
- description: LOCat is a customizable Lines-Of-Code analysis tool. LOC might not be the most useful metric in the universe, but it still provides useful information and can be a lot of fun.
60
- email: transfire@gmail.com
61
- executables:
67
+ prerelease: false
68
+ version_requirements: *26253640
69
+ description: LOCat is a customizable Lines-Of-Code analysis tool. LOC might not be
70
+ the most useful metric in the universe, but it still provides useful information
71
+ and can be a lot of fun.
72
+ email:
73
+ - transfire@gmail.com
74
+ executables:
62
75
  - locat
63
76
  extensions: []
64
-
65
- extra_rdoc_files:
77
+ extra_rdoc_files:
78
+ - HISTORY.rdoc
66
79
  - README.rdoc
67
- files:
80
+ - QED.rdoc
81
+ - COPYING.rdoc
82
+ files:
68
83
  - .ruby
69
84
  - bin/locat
70
85
  - lib/locat/command.rb
@@ -82,37 +97,31 @@ files:
82
97
  - spec/testrun.rdoc
83
98
  - HISTORY.rdoc
84
99
  - README.rdoc
100
+ - QED.rdoc
85
101
  - COPYING.rdoc
86
102
  homepage: http://rubyworks.github.com/locat
87
- licenses:
88
- - BSD-2-Clause
103
+ licenses:
89
104
  - BSD-2-Clause
90
105
  post_install_message:
91
- rdoc_options:
92
- - --title
93
- - LOCat API
94
- - --main
95
- - README.rdoc
96
- require_paths:
106
+ rdoc_options: []
107
+ require_paths:
97
108
  - lib
98
- required_ruby_version: !ruby/object:Gem::Requirement
109
+ required_ruby_version: !ruby/object:Gem::Requirement
99
110
  none: false
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: "0"
104
- required_rubygems_version: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - ! '>='
113
+ - !ruby/object:Gem::Version
114
+ version: '0'
115
+ required_rubygems_version: !ruby/object:Gem::Requirement
105
116
  none: false
106
- requirements:
107
- - - ">="
108
- - !ruby/object:Gem::Version
109
- version: "0"
117
+ requirements:
118
+ - - ! '>='
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
110
121
  requirements: []
111
-
112
- rubyforge_project: locat
113
- rubygems_version: 1.8.2
122
+ rubyforge_project:
123
+ rubygems_version: 1.8.10
114
124
  signing_key:
115
125
  specification_version: 3
116
126
  summary: Lines of Code Attache
117
127
  test_files: []
118
-