detroit-locat 0.2.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: affb5cfd51e930d87546f74f2d4bb896bf2d485a
4
+ data.tar.gz: 79479bc5e6012a62cff8af5040798a2c739188ae
5
+ SHA512:
6
+ metadata.gz: a56a3dba742c982d5360a51e45a78be774704ae38e446af8860f42d6f67e801991242bd6553265afe907611cdaa23322395014529786308251ea00fbaa37a23f
7
+ data.tar.gz: aafade3bca6a9c6b29b68a86d6aeedc23a73e81b9f02c49fd1cb83716e1c53799f3172cfc25957e15dc046ce5f0f4afca618dff2ef4f0821e361ec17bfade122
@@ -0,0 +1,44 @@
1
+ # Detroit LOCat Tool
2
+
3
+ [Website](http://rubyworks.github.com/detroit-locat) /
4
+ [Report Issue](http://github.com/rubyworks/detroit-locat/issues) /
5
+ [Development](http://github.com/rubyworks/detroit-locat)
6
+
7
+ [![Build Status](https://secure.travis-ci.org/rubyworks/detroit-locat.png)](http://travis-ci.org/rubyworks/detroit-locat)
8
+ [![Gem Version](https://badge.fury.io/rb/detroit-locat.png)](http://badge.fury.io/rb/detroit-locat)    
9
+ [![Flattr Me](http://api.flattr.com/button/flattr-badge-large.png)](http://flattr.com/thing/324911/Rubyworks-Ruby-Development-Fund)
10
+
11
+
12
+ ## About
13
+
14
+ The LOCat tool provides detailed LOC chart generation during
15
+ the standard `analyize` phase.
16
+
17
+ See http://rubyworks.github.com/locat for more information.
18
+
19
+
20
+ ## Install
21
+
22
+ Per the usual gem install process:
23
+
24
+ $ gem install detroit-locat
25
+
26
+
27
+ ## Legal
28
+
29
+ Detroit LOCat
30
+
31
+ Copyright (c) 2011 Rubyworks
32
+
33
+ This program is free software: you can redistribute it and/or modify
34
+ it under the terms of the GNU General Public License as published by
35
+ the Free Software Foundation, either version 3 of the License, or
36
+ (at your option) any later version.
37
+
38
+ This program is distributed in the hope that it will be useful,
39
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
40
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41
+ GNU General Public License for more details.
42
+
43
+ See LICENSE.txt for details.
44
+
@@ -1,11 +1,31 @@
1
- require 'detroit/tool'
1
+ require 'detroit-standard'
2
2
 
3
3
  module Detroit
4
4
 
5
+ ##
6
+ # LOCat is tool for generating LOC statistics.
7
+ #
8
+ # This tool targets the following stations of the standard toolchain:
9
+ #
10
+ # * generate
5
11
  #
6
12
  class LOCat < Tool
7
13
 
8
- # A T T R I B U T E S
14
+ # Attach to the `generate` phase.
15
+ #
16
+ # @!parse
17
+ # include Standard
18
+ #
19
+ assembly Standard
20
+
21
+ # Location of manpage for this tool.
22
+ MANPAGE = File.dirname(__FILE__) + '/../man/detroit-locat.5'
23
+
24
+ #
25
+ def prerequisite
26
+ require 'locat'
27
+ @path = 'lib'
28
+ end
9
29
 
10
30
  # Limit paths of files to render.
11
31
  attr_accessor :path
@@ -35,23 +55,6 @@ module Detroit
35
55
  # File to generate.
36
56
  attr_accessor :output
37
57
 
38
-
39
- # A S S E M B L Y M E T H O D S
40
-
41
- #
42
- def assemble?(station, options={})
43
- case station
44
- when :generate then true
45
- end
46
- end
47
-
48
- # Attach to the :generate phase.
49
- def assemble(station, options={})
50
- case station
51
- when :generate then generate
52
- end
53
- end
54
-
55
58
  # S E R V I C E M E T H O D S
56
59
 
57
60
  # Render templates.
@@ -69,6 +72,15 @@ module Detroit
69
72
  locat.run
70
73
  end
71
74
 
75
+ # This tool ties into the `generate` station of the
76
+ # standard assembly.
77
+ #
78
+ # @return [Boolean]
79
+ def assemble?(station, options={})
80
+ return true if station == :generate
81
+ return false
82
+ end
83
+
72
84
  private
73
85
 
74
86
  #
@@ -79,22 +91,6 @@ module Detroit
79
91
  amass(f, x, i)
80
92
  end
81
93
 
82
- #
83
- def initialize_requires
84
- require 'locat'
85
- end
86
-
87
- #
88
- def initialize_defaults
89
- @path = 'lib'
90
- end
91
-
92
- public
93
-
94
- def self.man_page
95
- File.dirname(__FILE__)+'/../man/detroit-locat.5'
96
- end
97
-
98
94
  end
99
95
 
100
96
  end
@@ -9,8 +9,8 @@ to generate detailed LOC analysis charts for Ruby projects.
9
9
 
10
10
  ## OPTIONS
11
11
 
12
- The following options can be used in the Detroit assembly file
13
- for defining a LOCat service.
12
+ The following options can be used in the Detroit toolchain file
13
+ for defining a LOCat tool instance.
14
14
 
15
15
  * `path` - File paths to analyze. Default is `lib`.
16
16
 
@@ -54,7 +54,7 @@ For more information:
54
54
 
55
55
  ## COPYRIGHT
56
56
 
57
- Copyright (c) 2011 Thomas Sawyer, Rubyworks
57
+ Copyright (c) 2011 Rubyworks
58
58
 
59
59
  Detroit LOCat is distributable in accordance with the GPL v3.0 license.
60
60
 
metadata CHANGED
@@ -1,39 +1,58 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: detroit-locat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
5
- prerelease:
4
+ version: 0.4.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - 7rans
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-04-02 00:00:00.000000000 Z
11
+ date: 2014-01-14 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: detroit
16
- requirement: &22745500 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
- version: 0.3.0
19
+ version: 0.4.0
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *22745500
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: 0.4.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: detroit-standard
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
25
41
  - !ruby/object:Gem::Dependency
26
42
  name: locat
27
- requirement: &22744540 !ruby/object:Gem::Requirement
28
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
29
44
  requirements:
30
- - - ! '>='
45
+ - - '>='
31
46
  - !ruby/object:Gem::Version
32
47
  version: '0'
33
48
  type: :runtime
34
49
  prerelease: false
35
- version_requirements: *22744540
36
- description: ! "LOCat plugin for Detroit build system. Generate detailed LOC charts
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: "LOCat plugin for Detroit build system. Generate detailed LOC charts
37
56
  for \nyour Ruby project."
38
57
  email:
39
58
  - transfire@gmail.com
@@ -41,40 +60,37 @@ executables: []
41
60
  extensions: []
42
61
  extra_rdoc_files:
43
62
  - LICENSE.txt
44
- - README.rdoc
45
- - COPYING.rdoc
63
+ - README.md
46
64
  files:
47
- - .ruby
48
65
  - lib/detroit-locat.rb
49
66
  - man/detroit-locat.5
50
67
  - man/detroit-locat.5.html
51
68
  - man/detroit-locat.5.ronn
69
+ - README.md
52
70
  - LICENSE.txt
53
- - README.rdoc
54
- - COPYING.rdoc
55
71
  homepage: http://detroit.github.com
56
72
  licenses:
57
- - GPL3
73
+ - GPL-3.0
74
+ metadata: {}
58
75
  post_install_message:
59
76
  rdoc_options: []
60
77
  require_paths:
61
78
  - lib
62
79
  required_ruby_version: !ruby/object:Gem::Requirement
63
- none: false
64
80
  requirements:
65
- - - ! '>='
81
+ - - '>='
66
82
  - !ruby/object:Gem::Version
67
83
  version: '0'
68
84
  required_rubygems_version: !ruby/object:Gem::Requirement
69
- none: false
70
85
  requirements:
71
- - - ! '>='
86
+ - - '>='
72
87
  - !ruby/object:Gem::Version
73
88
  version: '0'
74
89
  requirements: []
75
90
  rubyforge_project:
76
- rubygems_version: 1.8.11
91
+ rubygems_version: 2.0.3
77
92
  signing_key:
78
- specification_version: 3
93
+ specification_version: 4
79
94
  summary: LOCat plugin for Detroit
80
95
  test_files: []
96
+ has_rdoc:
data/.ruby DELETED
@@ -1,36 +0,0 @@
1
- ---
2
- source:
3
- - meta
4
- authors:
5
- - name: 7rans
6
- email: transfire@gmail.com
7
- copyrights:
8
- - holder: Rubyworks
9
- year: '2011'
10
- license: GPL3
11
- requirements:
12
- - name: detroit
13
- version: 0.3.0+
14
- - name: locat
15
- dependencies: []
16
- alternatives: []
17
- conflicts: []
18
- repositories: []
19
- resources:
20
- home: http://detroit.github.com
21
- code: http://github.com/detroit/detroit-locat
22
- mail: http://groups.google.com/group/rubyworks-mailinglist
23
- extra: {}
24
- load_path:
25
- - lib
26
- revision: 0
27
- created: '2011-10-16'
28
- summary: LOCat plugin for Detroit
29
- title: Detroit LOCat
30
- version: 0.2.0
31
- name: detroit-locat
32
- suite: detroit
33
- description: ! "LOCat plugin for Detroit build system. Generate detailed LOC charts
34
- for \nyour Ruby project."
35
- organization: rubyworks
36
- date: '2012-04-01'
@@ -1,23 +0,0 @@
1
- = COPYRIGHT NOTICES
2
-
3
- == Detroit LOCat
4
-
5
- Copyright:: (c) 2011 Rubyworks
6
- License:: GPL-3
7
- Website:: http://detroit.github.com
8
-
9
- Copyright (c) 2011 Rubyworks. All rights reserved.
10
-
11
- This program is free software: you can redistribute it and/or modify
12
- it under the terms of the GNU General Public License as published by
13
- the Free Software Foundation, either version 3 of the License, or
14
- (at your option) any later version.
15
-
16
- This program is distributed in the hope that it will be useful,
17
- but WITHOUT ANY WARRANTY; without even the implied warranty of
18
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
- GNU General Public License for more details.
20
-
21
- You should have received a copy of the GNU General Public License
22
- along with this program. If not, see <http://www.gnu.org/licenses/>.
23
-
@@ -1,27 +0,0 @@
1
- = Detroit LOCat Tool
2
-
3
-
4
- == DESCRIPTION
5
-
6
- The LOCat tool provides detailed LOC chart generation during
7
- the standard `analyize` phase.
8
-
9
- See http://rubyworks.github.com/locat for more information.
10
-
11
-
12
- == INSTALL
13
-
14
- Per the usual gem install process:
15
-
16
- $ gem install detroit-locat
17
-
18
-
19
- == COPYRIGHT
20
-
21
- Copyright (c) 2011 Rubyworks
22
-
23
- Detroit LOCat is distributable in accordance with the *GPL v.3*
24
- open source license.
25
-
26
- See COPYING.rdoc and GPL3.txt file for details.
27
-