sigsurv 1.0.1 → 1.0.2
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.
- data/README.md +5 -11
- data/lib/sigsurv/version.rb +1 -1
- data/lib/sigsurv.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -1,24 +1,18 @@
|
|
1
1
|
# Sigsurv
|
2
2
|
|
3
|
-
|
3
|
+
This is a stupid implementation of Ward Cunningham's clever [Signature Survey](http://c2.com/doc/SignatureSurvey/).
|
4
4
|
|
5
|
-
## Installation
|
6
|
-
|
7
|
-
Add this line to your application's Gemfile:
|
8
|
-
|
9
|
-
gem 'sigsurv'
|
10
5
|
|
11
|
-
|
12
|
-
|
13
|
-
$ bundle
|
6
|
+
## Installation
|
14
7
|
|
15
|
-
|
8
|
+
install it as:
|
16
9
|
|
17
10
|
$ gem install sigsurv
|
18
11
|
|
19
12
|
## Usage
|
20
13
|
|
21
|
-
|
14
|
+
$ cd yourapp
|
15
|
+
$ sigsurv
|
22
16
|
|
23
17
|
## Contributing
|
24
18
|
|
data/lib/sigsurv/version.rb
CHANGED
data/lib/sigsurv.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require "sigsurv/version"
|
2
2
|
|
3
3
|
module Sigsurv
|
4
|
-
SYMBOLS = {module: "m", class: "c", def: "d", do: "o",
|
4
|
+
SYMBOLS = {module: "m", class: "c", def: "d", do: "o", if: "i", end: "e"}
|
5
5
|
def self.analyze(directory)
|
6
6
|
Dir["#{directory}/**/*\.rb"].map do |file_path|
|
7
7
|
contents = IO.read(file_path)
|