papercall 0.10.0 → 0.11.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4741845b46d4545886a11ef1d4f7b4f0975efc08
4
- data.tar.gz: 4a2d9bfd810267805aacb729273badf7cde964f9
3
+ metadata.gz: ab3476ea98b3978aa2796e5bbe83f822a2838295
4
+ data.tar.gz: 3b9234b7db7bd2ae2003fb07c40e13c82a6ea97b
5
5
  SHA512:
6
- metadata.gz: 9c994b057761d1eb3df3b52197bac299fee4e1c8199e312ca991b055c33dec1549d8f036d82b0f8dd0fe4d8429b1bc04e7cc63d2b84e24ffd34ef48d3a627d15
7
- data.tar.gz: 8cf1d59c4ab15d2f40f33471756185458090747835ae213817b14617179ca455fcb19122635c95d001bbfcee41160466e5bf58061905637241e633a4e10cee56
6
+ metadata.gz: 215d3c4da56232bacc186ae278130f065f106cee0611f4008f64900fa7f0cc379e3210b5d646ae56e4b5b60652f362d9d920c7d10dca15c536d185a365017783
7
+ data.tar.gz: b70eb3e412bc738927c7bfca6b55a6bf837439c05d444b8b2284adb70d0bef71825f896c1cf5cefd9b3e8fe93d4f44a2906320ff08cc77e88247f965d3ab6629
data/README.md CHANGED
@@ -1,8 +1,12 @@
1
1
  # Papercall
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/papercall`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ Papercall.io is a nice conference management system that allows you to put out a call for papers and manage the entire review process. This ruby-gem uses the Papercall API to fetch all the submitted papers and do some analysis.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
5
+ Examples of the type of stats available are:
6
+ * Number of papers in different states
7
+ * Number of active reviewers
8
+ * Number of submitted papers without any feedback
9
+ * Number of papers missing reviews
6
10
 
7
11
  ## Installation
8
12
 
@@ -10,7 +14,7 @@ Add this line to your application's Gemfile:
10
14
 
11
15
  ```ruby
12
16
  gem 'papercall'
13
- ```
17
+ ``````
14
18
 
15
19
  And then execute:
16
20
 
@@ -22,7 +26,31 @@ Or install it yourself as:
22
26
 
23
27
  ## Usage
24
28
 
25
- TODO: Write usage instructions here
29
+ The following code will fetch all the submissions from your event and print a summary of stats:
30
+
31
+ ```ruby
32
+ require 'papercall'
33
+
34
+ Papercall.fetch(:from_papercall, "<your api key>", :submitted, :accepted, :rejected, :waitlist, :declined)
35
+ Papercall.summary
36
+ ```
37
+
38
+ The Papercall gem also allows you to fetch individual states, or just the ones you care about:
39
+
40
+ ```ruby
41
+ Papercall.fetch(:from_papercall, "<your api key", :submitted, :accepted)
42
+ ```
43
+ or
44
+ ```ruby
45
+ Papercall.fetch(:from_papercall, "<your api key", :rejected, :declined, :waitelist)
46
+ ```
47
+ The order does not matter.
48
+
49
+ You can also use this shortcut if you want to fetch all:
50
+ ```ruby
51
+ Papercall.fetch(:from_papercall, "<your api key", :all)
52
+ ```
53
+
26
54
 
27
55
  ## Development
28
56
 
@@ -38,4 +66,3 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERN
38
66
  ## License
39
67
 
40
68
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
-
@@ -18,6 +18,7 @@ module Papercall
18
18
  end
19
19
 
20
20
  def analyze
21
+ puts "Performing analysis..."
21
22
  @analysis['submissions'].each do |submission|
22
23
  submission["ratings"].each do |rating|
23
24
  unless(@analysis['reviewers'].include?(rating["user"]["name"]))
@@ -29,6 +29,7 @@ module Papercall
29
29
  end
30
30
 
31
31
  def fetch(*states)
32
+ states = [[:submitted, :accepted, :rejected, :waitlist, :declined]] if states == [[:all]]
32
33
  states.flatten.each do |state|
33
34
  if state
34
35
  puts "Fetching #{state} submissions from PaperCall API..."
@@ -1,3 +1,3 @@
1
1
  module Papercall
2
- VERSION = '0.10.0'.freeze
2
+ VERSION = '0.11.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: papercall
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jørn Ølmheim
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-07 00:00:00.000000000 Z
11
+ date: 2017-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler