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 +38 -39
- data/COPYING.rdoc +1 -4
- data/HISTORY.rdoc +15 -1
- data/QED.rdoc +0 -0
- data/README.rdoc +7 -8
- data/lib/locat/command.rb +1 -1
- data/lib/locat/matcher.rb +28 -1
- data/lib/locat/template/highchart.rhtml +1 -1
- metadata +76 -67
data/.ruby
CHANGED
@@ -1,51 +1,50 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
-
|
9
|
-
|
10
|
-
|
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
|
-
|
17
|
-
group: []
|
18
|
-
|
16
|
+
- name: json
|
19
17
|
- name: detroit
|
20
|
-
|
21
|
-
group:
|
18
|
+
groups:
|
22
19
|
- build
|
20
|
+
development: true
|
23
21
|
- name: qed
|
24
|
-
|
25
|
-
group:
|
22
|
+
groups:
|
26
23
|
- test
|
24
|
+
development: true
|
25
|
+
dependencies: []
|
27
26
|
conflicts: []
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
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
|
-
|
50
|
-
|
51
|
-
|
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'
|
data/COPYING.rdoc
CHANGED
@@ -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
|
-
|
data/HISTORY.rdoc
CHANGED
@@ -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.
|
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
|
|
data/QED.rdoc
ADDED
File without changes
|
data/README.rdoc
CHANGED
@@ -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
|
-
|
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
|
-
==
|
11
|
+
== DESCRIPTION
|
10
12
|
|
11
|
-
|
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
|
data/lib/locat/command.rb
CHANGED
data/lib/locat/matcher.rb
CHANGED
@@ -9,7 +9,7 @@ module LOCat
|
|
9
9
|
@rules = []
|
10
10
|
|
11
11
|
if config_files.empty?
|
12
|
-
|
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.
|
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
|
-
-
|
7
|
+
authors:
|
8
|
+
- Trans
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
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
|
-
|
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:
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
24
22
|
type: :runtime
|
25
|
-
|
26
|
-
|
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
|
-
|
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:
|
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
|
-
|
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:
|
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
|
-
|
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:
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
57
66
|
type: :development
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
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
|
-
|
77
|
+
extra_rdoc_files:
|
78
|
+
- HISTORY.rdoc
|
66
79
|
- README.rdoc
|
67
|
-
|
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
|
-
|
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:
|
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:
|
117
|
+
requirements:
|
118
|
+
- - ! '>='
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: '0'
|
110
121
|
requirements: []
|
111
|
-
|
112
|
-
|
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
|
-
|