society 1.4.2 → 1.5.0
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.
- checksums.yaml +4 -4
- data/CODE_OF_CONDUCT.md +68 -7
- data/README.md +1 -9
- data/lib/society/formatter/report/templates/components/society-assets/society.css +33 -8
- data/lib/society/formatter/report/templates/components/society-assets/society.js +26 -20
- data/lib/society/formatter/report/templates/index.htm.haml +33 -15
- data/lib/society/version.rb +1 -1
- metadata +2 -4
- data/.bowerrc +0 -3
- data/bower.json +0 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 673c9e8f1e17a3c47e6605eeaa6e7a70ac9740da
|
|
4
|
+
data.tar.gz: 63318b570c05e025cbcb26375d9e57ac5dba42be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c2098f06fb8b71b4eef9d0a89eef8c1505b30b98c1a9ef9cf48e0e6a3e15e60e6b84f48b42f512b66ec4e8ad9101f099226851b7bfdc0e34507d2b3517266a6a
|
|
7
|
+
data.tar.gz: 871e375bf40378a6592ba6d26d6cf35e765ab26f52e55de508021362ce68420cfa00572757925d1e7ccb32d18644430504ef2888b40a375e92a919c27caf5716
|
data/CODE_OF_CONDUCT.md
CHANGED
|
@@ -1,13 +1,74 @@
|
|
|
1
|
-
# Contributor Code of Conduct
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Our Pledge
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
|
10
|
+
orientation.
|
|
6
11
|
|
|
7
|
-
|
|
12
|
+
## Our Standards
|
|
8
13
|
|
|
9
|
-
|
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
|
15
|
+
include:
|
|
10
16
|
|
|
11
|
-
|
|
17
|
+
* Using welcoming and inclusive language
|
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
|
19
|
+
* Gracefully accepting constructive criticism
|
|
20
|
+
* Focusing on what is best for the community
|
|
21
|
+
* Showing empathy towards other community members
|
|
12
22
|
|
|
13
|
-
|
|
23
|
+
Examples of unacceptable behavior by participants include:
|
|
24
|
+
|
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
|
26
|
+
advances
|
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
|
28
|
+
* Public or private harassment
|
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
|
30
|
+
address, without explicit permission
|
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
|
32
|
+
professional setting
|
|
33
|
+
|
|
34
|
+
## Our Responsibilities
|
|
35
|
+
|
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
|
38
|
+
response to any instances of unacceptable behavior.
|
|
39
|
+
|
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
|
44
|
+
threatening, offensive, or harmful.
|
|
45
|
+
|
|
46
|
+
## Scope
|
|
47
|
+
|
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
|
49
|
+
when an individual is representing the project or its community. Examples of
|
|
50
|
+
representing a project or community include using an official project e-mail
|
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
|
53
|
+
further defined and clarified by project maintainers.
|
|
54
|
+
|
|
55
|
+
## Enforcement
|
|
56
|
+
|
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
58
|
+
reported by contacting the project owner at coraline@idolhands.com. All
|
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
|
63
|
+
|
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
|
66
|
+
members of the project's leadership.
|
|
67
|
+
|
|
68
|
+
## Attribution
|
|
69
|
+
|
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
|
72
|
+
|
|
73
|
+
[homepage]: http://contributor-covenant.org
|
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/README.md
CHANGED
|
@@ -34,14 +34,6 @@ JSON by passing `--format json`
|
|
|
34
34
|
Note that all JSON data is timestamped (regardless of output format) to store
|
|
35
35
|
snapshots of your project over time.
|
|
36
36
|
|
|
37
|
-
## Updating assets
|
|
38
|
-
|
|
39
|
-
All JavaScript and CSS dependencies are checked into the repo, so any given
|
|
40
|
-
commit should have everything it needs. However, if you're developing the gem
|
|
41
|
-
and need to pull in updates from the
|
|
42
|
-
[society-assets](https://github.com/CoralineAda/society-assets) package, you
|
|
43
|
-
can do so on the command line with `$ bower update`.
|
|
44
|
-
|
|
45
37
|
## Recognition
|
|
46
38
|
|
|
47
39
|
Society was inspired by an original idea by Kerri Miller (@kerrizor).
|
|
@@ -53,7 +45,7 @@ Please note that this project is released with a [Contributor Code of Conduct]
|
|
|
53
45
|
By participating in this project you agree to abide by its terms.
|
|
54
46
|
|
|
55
47
|
|
|
56
|
-
1. Fork it ( https://github.com/
|
|
48
|
+
1. Fork it ( https://github.com/CoralineAda/society/fork )
|
|
57
49
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
58
50
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
59
51
|
4. Push to the branch (`git push origin my-new-feature`)
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
stroke: #fff;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
.society-
|
|
13
14
|
.society-heatmap-select,
|
|
14
15
|
.society-network-toggle {
|
|
15
16
|
display: block;
|
|
@@ -18,17 +19,19 @@
|
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
.society-heatmap-select {
|
|
21
|
-
display:
|
|
22
|
+
display: inline;
|
|
22
23
|
color: #555;
|
|
23
24
|
background-color: #fff;
|
|
24
25
|
border: 1px solid #ccc;
|
|
25
26
|
border-radius: 4px;
|
|
26
|
-
height:
|
|
27
|
+
height: 2em;
|
|
27
28
|
padding: 6px 12px;
|
|
28
|
-
font-size: 14px;
|
|
29
29
|
line-height: 1.42857143;
|
|
30
30
|
background-image: none;
|
|
31
|
-
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
label.society-heatmap-select-label {
|
|
34
|
+
font: 300 12px "Helvetica Neue", Helvetica, Arial, sans-serif !important;
|
|
32
35
|
}
|
|
33
36
|
|
|
34
37
|
.society-network-toggle input {
|
|
@@ -49,11 +52,11 @@
|
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
.society-node--source {
|
|
52
|
-
fill: #
|
|
55
|
+
fill: #009191;
|
|
53
56
|
}
|
|
54
57
|
|
|
55
58
|
.society-node--target {
|
|
56
|
-
fill: #
|
|
59
|
+
fill: #d66a00;
|
|
57
60
|
}
|
|
58
61
|
|
|
59
62
|
.society-node--faded {
|
|
@@ -66,10 +69,32 @@
|
|
|
66
69
|
stroke-width: 2px;
|
|
67
70
|
}
|
|
68
71
|
|
|
72
|
+
.society-link {
|
|
73
|
+
stroke: #000;
|
|
74
|
+
}
|
|
75
|
+
|
|
69
76
|
.society-link--source {
|
|
70
|
-
stroke: #
|
|
77
|
+
stroke: #009191;
|
|
71
78
|
}
|
|
72
79
|
|
|
73
80
|
.society-link--target {
|
|
74
|
-
stroke: #
|
|
81
|
+
stroke: #d66a00;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.key-green {
|
|
85
|
+
height: 1em;
|
|
86
|
+
background-color: #009191;
|
|
87
|
+
padding: .25em;
|
|
88
|
+
color: #fff;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.key-red {
|
|
92
|
+
height: 1em;
|
|
93
|
+
background-color: #d66a00;
|
|
94
|
+
padding: .25em;
|
|
95
|
+
color: #fff;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.instructions {
|
|
99
|
+
width: 100%;
|
|
75
100
|
}
|
|
@@ -133,21 +133,21 @@
|
|
|
133
133
|
|
|
134
134
|
var toggleFilterOnlyDeps = function(d) {
|
|
135
135
|
if (this.depsFiltered == false) {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
136
|
+
nodeAnchor.selectAll(".society-node--faded")
|
|
137
|
+
.style("visibility", "hidden");
|
|
138
|
+
linkAnchor.selectAll(".society-link")
|
|
139
|
+
.filter(":not(.society-link--source)")
|
|
140
|
+
.filter(":not(.society-link--target)")
|
|
141
|
+
.style("visibility", "hidden");
|
|
142
|
+
this.depsFiltered = true;
|
|
143
143
|
} else {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
144
|
+
d3
|
|
145
|
+
.selectAll(".society-node")
|
|
146
|
+
.style("visibility", "visible");
|
|
147
|
+
d3
|
|
148
|
+
.selectAll(".society-link")
|
|
149
|
+
.style("visibility", "visible");
|
|
150
|
+
this.depsFiltered = false;
|
|
151
151
|
}
|
|
152
152
|
};
|
|
153
153
|
|
|
@@ -303,12 +303,19 @@
|
|
|
303
303
|
z = d3.scale.linear().domain([0, 4]).clamp(true),
|
|
304
304
|
c = d3.scale.category10().domain(d3.range(10));
|
|
305
305
|
|
|
306
|
-
var
|
|
307
|
-
.attr('class', 'society-heatmap-
|
|
306
|
+
var controls = this.element.append('div')
|
|
307
|
+
.attr('class', 'society-heatmap-controls');
|
|
308
|
+
|
|
309
|
+
var orderSelectLabel = controls.append('label')
|
|
310
|
+
.attr("for", "society-heatmap-select")
|
|
311
|
+
.attr('class', 'society-heatmap-select-label')
|
|
308
312
|
.text('Order by:');
|
|
309
|
-
|
|
310
|
-
orderSelect.append('
|
|
311
|
-
|
|
313
|
+
|
|
314
|
+
var orderSelect = controls.append('select')
|
|
315
|
+
.attr('class', 'society-heatmap-select')
|
|
316
|
+
orderSelect.append('option').text('Name').attr('value', 'name');
|
|
317
|
+
orderSelect.append('option').text('Frequency').attr('value', 'count');
|
|
318
|
+
orderSelect.append('option').text('Cluster').attr('value', 'group');
|
|
312
319
|
orderSelect.on('change', function() {
|
|
313
320
|
order(this.value);
|
|
314
321
|
});
|
|
@@ -400,7 +407,6 @@
|
|
|
400
407
|
.attr("width", x.rangeBand())
|
|
401
408
|
.attr("height", x.rangeBand())
|
|
402
409
|
.style("fill-opacity", function(d) { return z(d.z); })
|
|
403
|
-
.style("fill", function(d) { return nodes[d.x].group == nodes[d.y].group ? c(nodes[d.x].group) : null; })
|
|
404
410
|
.on("mouseover", mouseover)
|
|
405
411
|
.on("mouseout", mouseout);
|
|
406
412
|
}
|
|
@@ -5,7 +5,10 @@
|
|
|
5
5
|
%title Society Relational Analysis
|
|
6
6
|
:css
|
|
7
7
|
@import url(stylesheets/society.css);
|
|
8
|
+
@import url(http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css)
|
|
8
9
|
%script{:src => "javascripts/d3.min.js"}
|
|
10
|
+
%script{:src => "http://code.jquery.com/jquery-1.10.2.js"}
|
|
11
|
+
%script{:src => "http://code.jquery.com/ui/1.11.4/jquery-ui.js"}
|
|
9
12
|
%script{:src => "javascripts/society.js"}
|
|
10
13
|
:css
|
|
11
14
|
body {
|
|
@@ -14,24 +17,37 @@
|
|
|
14
17
|
font-family: Consolas, Verdana, sans-serif;
|
|
15
18
|
font-size: 12px;
|
|
16
19
|
}
|
|
17
|
-
|
|
20
|
+
$(function() {
|
|
21
|
+
$( "#tabs" ).tabs();
|
|
22
|
+
});
|
|
23
|
+
%body
|
|
18
24
|
%div{:style => "text-align: center;"}
|
|
19
|
-
%h1 Relational Matrices
|
|
25
|
+
%h1 Object Relational Matrices
|
|
20
26
|
%h3
|
|
21
27
|
Generated by
|
|
22
28
|
%a{:href => "https://github.com/Bantik/society"} Society
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
#tabs
|
|
30
|
+
%ul
|
|
31
|
+
%li
|
|
32
|
+
%a{:href => "#tabs-1"} Network
|
|
33
|
+
%li
|
|
34
|
+
%a{:href => "#tabs-2"} Heat Map
|
|
35
|
+
#tabs-1
|
|
36
|
+
%div
|
|
37
|
+
%h2 Network
|
|
38
|
+
%p.instructions
|
|
39
|
+
Hover over a class name to see
|
|
40
|
+
%span.key-green incoming references
|
|
41
|
+
and
|
|
42
|
+
= succeed "." do
|
|
43
|
+
%span.key-red outgoing references
|
|
44
|
+
Double-click on a class name to enter
|
|
45
|
+
focus mode. Press ESC to return to the full view.
|
|
46
|
+
#network{:style => "height: 100%; width: 100%;"}
|
|
47
|
+
#tabs-2
|
|
48
|
+
%div
|
|
49
|
+
%h2 Heatmap
|
|
50
|
+
#heatmap
|
|
35
51
|
:javascript
|
|
36
52
|
var data = JSON.parse('#{json_data}');
|
|
37
53
|
Society.generate("#network", {
|
|
@@ -45,4 +61,6 @@
|
|
|
45
61
|
json: data
|
|
46
62
|
}
|
|
47
63
|
});
|
|
48
|
-
|
|
64
|
+
$(function() {
|
|
65
|
+
$( "#tabs" ).tabs();
|
|
66
|
+
});
|
data/lib/society/version.rb
CHANGED
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.
|
|
4
|
+
version: 1.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Coraline Ada Ehmke
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2016-
|
|
12
|
+
date: 2016-06-17 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|
|
@@ -188,7 +188,6 @@ executables:
|
|
|
188
188
|
extensions: []
|
|
189
189
|
extra_rdoc_files: []
|
|
190
190
|
files:
|
|
191
|
-
- ".bowerrc"
|
|
192
191
|
- ".gitignore"
|
|
193
192
|
- ".rspec"
|
|
194
193
|
- CODE_OF_CONDUCT.md
|
|
@@ -198,7 +197,6 @@ files:
|
|
|
198
197
|
- README.md
|
|
199
198
|
- Rakefile
|
|
200
199
|
- bin/society
|
|
201
|
-
- bower.json
|
|
202
200
|
- lib/society.rb
|
|
203
201
|
- lib/society/cli.rb
|
|
204
202
|
- lib/society/edge.rb
|
data/.bowerrc
DELETED