society 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -2
- data/heatmap.png +0 -0
- data/lib/society/formatter/report/templates/index.htm.haml +3 -0
- data/lib/society/version.rb +1 -1
- data/network_graph.png +0 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5076fd6cc424a742b05b87b217180db69db82834
|
4
|
+
data.tar.gz: f100e43bbfd76036aa5b67e45c4a6c64055fd702
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a321c55fcf87e30575eea746f84b4864edbc34d698c0f9417042398b6fed6eef3f5ae66d6e36b83e18e4b565d92db6693afb5a2304d01bf401c200893f1eea65
|
7
|
+
data.tar.gz: 743e9ddb3579546dbac9e5531e4ae0b0fedeb173ff3d7eba7941712d6ba5d41afb96863d42901e6d9beb5a335ae67f7c8553e778145694b44b30e3cae44a04a1
|
data/README.md
CHANGED
@@ -1,9 +1,19 @@
|
|
1
1
|
# Society
|
2
2
|
|
3
|
-
Society analyzes and presents
|
3
|
+
Society analyzes and presents social graphs of relationships between classes in a Ruby or Rails project. It displays relationships that are either explicitly declared (e.g. in an ActiveRecord relation) or defined by calls between classes (e.g. in the source of ClassA there is a call to ClassB).
|
4
4
|
|
5
5
|
Please note that Society requires Ruby 2.1 or later.
|
6
6
|
|
7
|
+
## Sample output
|
8
|
+
|
9
|
+
### Network graph
|
10
|
+
|
11
|
+
![Network graph][network]
|
12
|
+
|
13
|
+
### Heatmap
|
14
|
+
|
15
|
+
![Heatmap][heatmap]
|
16
|
+
|
7
17
|
## Installation
|
8
18
|
|
9
19
|
Add this line to your application's Gemfile:
|
@@ -26,7 +36,9 @@ From your terminal:
|
|
26
36
|
|
27
37
|
and then open `doc/society/index.htm` in your browser.
|
28
38
|
|
29
|
-
For more complex applications, society also supports file globbing
|
39
|
+
For more complex applications, society also supports file globbing:
|
40
|
+
|
41
|
+
society from ../path/to/models/*user*
|
30
42
|
|
31
43
|
The default format is HTML; you can skip the HTML interface and just get the
|
32
44
|
JSON by passing `--format json`
|
@@ -50,3 +62,6 @@ By participating in this project you agree to abide by its terms.
|
|
50
62
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
51
63
|
4. Push to the branch (`git push origin my-new-feature`)
|
52
64
|
5. Create a new Pull Request
|
65
|
+
|
66
|
+
[network]: https://raw.githubusercontent.com/CoralineAda/society/master/network_graph.png "Sample network graph"
|
67
|
+
[heatmap]: https://raw.githubusercontent.com/CoralineAda/society/master/heatmap.png "Sample heatmap"
|
data/heatmap.png
ADDED
Binary file
|
@@ -47,6 +47,9 @@
|
|
47
47
|
#tabs-2
|
48
48
|
%div
|
49
49
|
%h2 Heatmap
|
50
|
+
%p.instructions
|
51
|
+
Order by frequency to see how strong the relation between two classes is.
|
52
|
+
Order by hierarchy to visualize the relations in hierarchical clustering.
|
50
53
|
#heatmap
|
51
54
|
:javascript
|
52
55
|
var data = JSON.parse('#{json_data}');
|
data/lib/society/version.rb
CHANGED
data/network_graph.png
ADDED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: society
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Coraline Ada Ehmke
|
@@ -197,6 +197,7 @@ files:
|
|
197
197
|
- README.md
|
198
198
|
- Rakefile
|
199
199
|
- bin/society
|
200
|
+
- heatmap.png
|
200
201
|
- lib/society.rb
|
201
202
|
- lib/society/cli.rb
|
202
203
|
- lib/society/edge.rb
|
@@ -211,6 +212,7 @@ files:
|
|
211
212
|
- lib/society/object_graph.rb
|
212
213
|
- lib/society/parser.rb
|
213
214
|
- lib/society/version.rb
|
215
|
+
- network_graph.png
|
214
216
|
- society.gemspec
|
215
217
|
- spec/cli_spec.rb
|
216
218
|
- spec/fixtures/for_parser_spec/whaler.rb
|