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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 673c9e8f1e17a3c47e6605eeaa6e7a70ac9740da
4
- data.tar.gz: 63318b570c05e025cbcb26375d9e57ac5dba42be
3
+ metadata.gz: 5076fd6cc424a742b05b87b217180db69db82834
4
+ data.tar.gz: f100e43bbfd76036aa5b67e45c4a6c64055fd702
5
5
  SHA512:
6
- metadata.gz: c2098f06fb8b71b4eef9d0a89eef8c1505b30b98c1a9ef9cf48e0e6a3e15e60e6b84f48b42f512b66ec4e8ad9101f099226851b7bfdc0e34507d2b3517266a6a
7
- data.tar.gz: 871e375bf40378a6592ba6d26d6cf35e765ab26f52e55de508021362ce68420cfa00572757925d1e7ccb32d18644430504ef2888b40a375e92a919c27caf5716
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 a social graph of relationships between classes in a Ruby or Rails project.
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"
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}');
@@ -1,3 +1,3 @@
1
1
  module Society
2
- VERSION = "1.5.0"
2
+ VERSION = "1.5.1"
3
3
  end
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.0
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