egalitarian 0.0.1 → 0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: '0237944ff1b673ab2716239c4d3efc00858dc22f'
4
- data.tar.gz: 21868ee4cb4d4655159754871fca7208be8047c2
3
+ metadata.gz: 7d3669f835277fbafa25473c70a2b873e6e1ffdb
4
+ data.tar.gz: 103b61a198458abd2fbb32b58e60d18c3858d473
5
5
  SHA512:
6
- metadata.gz: 8d60fd3f7e62cda745a2425201c5cb31e2360c40aeeb6ed5009a4881e11d68feec78e2a72e512a1e5b0f1b34b620e4526cac1b5287706cb65379d5aad50f1086
7
- data.tar.gz: fa63152a485af28598b5d446cbb407dba3777204123bd1d071b094f61720763662dc31f51cfdbeea31c5a013fc7e135e119f56a5a587498d73fdf5788fb5fcdc
6
+ metadata.gz: 73148871211280dc8ee1c359a2692344f0852b3ac01ec63cb2c79168db3c8498840762b5c2f275fd91166854ba3a50f3bb543fe8ffda24c2032bdf98cdb4efa8
7
+ data.tar.gz: 7fe632d3467531ecb84a515e1a4f5c1d02013702c9857e0a36df0896d54c13b0ccda6ba7dcc4ec954608abb2464ae0b4e75e0c58473a360ee84f28807514cce2
@@ -0,0 +1,14 @@
1
+ # Egalitarian gem
2
+
3
+ #### Description & Purpose
4
+ The Egalitarian gem applies a unique system to forum-based applications in order to better combat meaningful content being buried from traditional democratic voting systems.
5
+
6
+ To better understand the underlying problems with current systems, this video by the PBS Idea Channel explains the inherent issues that arise from traditional forum democracy:
7
+
8
+ https://youtu.be/UJdLl8qLgeU
9
+
10
+ Traditional democracy is a fair system in theory but not necessarily egalitarian due to the bias of voters, and systematically appealing to specific user bases with content that is likely to be upvoted. Content that is likely to be upvoted is what people want to see, but not necessarily what people _need_ to see, there could be piles of content that people didn't even know they wanted to see, or discussions that they could have a crucial voice in, however these posts sometimes never see the light of day.
11
+
12
+ Another issue that arises from forums is the sensationalization of posts that cater to the largest demographic. It is undeniable that users are drawn to imagery rather than long blocks of text, often you will see comments like TLDR (too long didn't read), because an idea wasn't summarized into an easily digestible format. To combat this, text posts need to stand out to compete with the sensational nature of image/video posts, something that goes beyond the scope of a sensational title. One possibility is when posts are displayed an algorithm chooses a random sentence from the content body that will display in a larger, more unique font on the post listing page.
13
+
14
+ <img align="center" src="screen_tables.png">
File without changes
Binary file
Binary file
@@ -0,0 +1,16 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = 'egalitarian'
3
+ s.version = '0.0.2'
4
+ s.date = '2017-12-19'
5
+ s.summary = "[in development] Egalitarian is a voting system that promotes equality among posts."
6
+ s.description = "[Egalitarian is a work in progress.] Egalitarian is a voting system that applies unique rules to a forum environment in order to promote meaningful content that might otherwise be lost to downvotes."
7
+ s.authors = ["Nate McGregor"]
8
+ s.email = 'egalitariangem@gmail.com'
9
+ s.files = `git ls-files`.split("\n")
10
+ s.require_paths = ["lib"]
11
+ s.executables << 'egalitarian'
12
+ s.homepage = 'https://github.com/hal2814/egalitarian'
13
+ 'http://rubygems.org/gems/egalitarian'
14
+ s.license = 'MIT'
15
+ s.add_development_dependency "rspec", "~> 3.6"
16
+ end
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+ gem "rails", "5.1.4"
3
+ gemspec path: "../"
@@ -0,0 +1,10 @@
1
+ module Egalitarian
2
+ class Comment < ::ActiveRecord::Base
3
+
4
+ belongs_to :post
5
+ belongs_to :user
6
+
7
+ validates_presence_of :content
8
+ validates_presence_of :score
9
+ end
10
+ end
@@ -4,6 +4,8 @@ module Egalitarian
4
4
  belongs_to :forum
5
5
  belongs_to :user
6
6
 
7
- validates_presence_of :name
7
+ validates_presence_of :title
8
+ validates_presence_of :content
9
+ validates_presence_of :score
8
10
  end
9
11
  end
@@ -4,6 +4,6 @@ module Egalitarian
4
4
  belongs_to :forum
5
5
  belongs_to :user
6
6
 
7
- validates_presence_of :name
7
+ validates_presence_of :ranking
8
8
  end
9
9
  end
Binary file
Binary file
File without changes
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: egalitarian
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nate McGregor
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-18 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2017-12-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.6'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.6'
13
27
  description: "[Egalitarian is a work in progress.] Egalitarian is a voting system
14
28
  that applies unique rules to a forum environment in order to promote meaningful
15
29
  content that might otherwise be lost to downvotes."
@@ -19,12 +33,22 @@ executables:
19
33
  extensions: []
20
34
  extra_rdoc_files: []
21
35
  files:
36
+ - README.md
37
+ - Rakefile
22
38
  - bin/egalitarian
39
+ - egalitarian-0.0.0.gem
40
+ - egalitarian-0.0.1.gem
41
+ - egalitarian.gemspec
42
+ - gemfiles/rails_5_1.gemfile
23
43
  - lib/egalitarian.rb
44
+ - lib/egalitarian/comment.rb
24
45
  - lib/egalitarian/forum.rb
25
46
  - lib/egalitarian/post.rb
26
47
  - lib/egalitarian/standing.rb
27
48
  - lib/egalitarian/user.rb
49
+ - screen_tables.png
50
+ - screentables.png
51
+ - test/test_egalitarian.rb
28
52
  homepage: https://github.com/hal2814/egalitarian
29
53
  licenses:
30
54
  - MIT