society 1.4.2 → 1.5.0

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: 1bc37087bf77e5926995f88e6dfd7a272014262e
4
- data.tar.gz: 66dd7cc197f88380fd15eaacfd716db8ca0e4f21
3
+ metadata.gz: 673c9e8f1e17a3c47e6605eeaa6e7a70ac9740da
4
+ data.tar.gz: 63318b570c05e025cbcb26375d9e57ac5dba42be
5
5
  SHA512:
6
- metadata.gz: bd1dbd1bc16568ed19d5bd4916b9d014a561228faefd17ca6e47e027a1dda36120dc50dc748c14d88ee549b6efd69067b054cf10c18bdc98adf02da8f685e0f7
7
- data.tar.gz: 4d29dbb97f01bd056050d3955cd28035f21b0bac4a273abea3483cc37d73d65bc9787c6b34babc59c88134acef7effc88138fcd34cbbc810e48c1350c1280ff4
6
+ metadata.gz: c2098f06fb8b71b4eef9d0a89eef8c1505b30b98c1a9ef9cf48e0e6a3e15e60e6b84f48b42f512b66ec4e8ad9101f099226851b7bfdc0e34507d2b3517266a6a
7
+ data.tar.gz: 871e375bf40378a6592ba6d26d6cf35e765ab26f52e55de508021362ce68420cfa00572757925d1e7ccb32d18644430504ef2888b40a375e92a919c27caf5716
@@ -1,13 +1,74 @@
1
- # Contributor Code of Conduct
1
+ # Contributor Covenant Code of Conduct
2
2
 
3
- As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
3
+ ## Our Pledge
4
4
 
5
- We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
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
- Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
12
+ ## Our Standards
8
13
 
9
- Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
10
16
 
11
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
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
- This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
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/[my-github-username]/society/fork )
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: block;
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: 3em;
27
+ height: 2em;
27
28
  padding: 6px 12px;
28
- font-size: 14px;
29
29
  line-height: 1.42857143;
30
30
  background-image: none;
31
- margin: auto;
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: #2ca02c;
55
+ fill: #009191;
53
56
  }
54
57
 
55
58
  .society-node--target {
56
- fill: #d62728;
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: #d62728;
77
+ stroke: #009191;
71
78
  }
72
79
 
73
80
  .society-link--target {
74
- stroke: #2ca02c;
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
- 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;
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
- d3
145
- .selectAll(".society-node")
146
- .style("visibility", "visible");
147
- d3
148
- .selectAll(".society-link")
149
- .style("visibility", "visible");
150
- this.depsFiltered = false;
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 orderSelect = this.element.append('select')
307
- .attr('class', 'society-heatmap-select')
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
- orderSelect.append('option').text('by Name').attr('value', 'name');
310
- orderSelect.append('option').text('by Frequency').attr('value', 'count');
311
- orderSelect.append('option').text('by Cluster').attr('value', 'group');
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
- %body
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
- %hr{:size => "1"}/
24
- %div{:style => "text-align: center;"}
25
- %h2 Heatmap
26
- #heatmap
27
- %hr{:size => "1"}/
28
- %div{:style => "text-align: center;"}
29
- %h2 Network
30
- %p
31
- %em
32
- Hover over a class name to see incoming references (green) and outgoing
33
- references (red).
34
- #network{:style => "height: 100%; width: 100%;"}
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
+ });
@@ -1,3 +1,3 @@
1
1
  module Society
2
- VERSION = "1.4.2"
2
+ VERSION = "1.5.0"
3
3
  end
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.2
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-03-16 00:00:00.000000000 Z
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
@@ -1,3 +0,0 @@
1
- {
2
- "directory": "lib/society/formatter/report/templates/components"
3
- }
data/bower.json DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "name": "society",
3
- "dependencies": {
4
- "society-assets": "1.2.0"
5
- }
6
- }