papercallio 0.1.0 → 0.1.1
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/bin/papercallio +4 -2
- data/lib/papercallio/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cbb63936f56c57d56b447a05480a58f3b7b94d49
|
|
4
|
+
data.tar.gz: 9d155f364ab7c5310a285ac1867dbee64b90ae04
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a3e629bd6b99a9fd751028dd612e3cf6b1ff30c3653735e345cfa8a0e35cc15c2e8900d70543c0a671584bbd7e2d3215c02b6e2b979bae59f9cf0b85bb8202aa
|
|
7
|
+
data.tar.gz: 45404fe4d5b9d164c8668e46d4bcc34a64901331e56066f2cf04e01356712a93477a1af7a48a42434da10c912070d98d03c80afb00b168d145decd9e473da288
|
data/bin/papercallio
CHANGED
|
@@ -50,7 +50,6 @@ command :submissions do |c|
|
|
|
50
50
|
:desc => 'Sort results. Possible values are: state, rating, ratings_count, title, created_at, talk_format_id, audience_level, confidence'
|
|
51
51
|
|
|
52
52
|
c.action do |global_options,options,args|
|
|
53
|
-
puts global_options
|
|
54
53
|
pcc = PaperCallClient.new(api_token, options)
|
|
55
54
|
response = pcc.submissions
|
|
56
55
|
|
|
@@ -83,17 +82,20 @@ command :submissions do |c|
|
|
|
83
82
|
total_ratings = 0
|
|
84
83
|
individual_ratings = ''
|
|
85
84
|
raters = ''
|
|
85
|
+
comments = ''
|
|
86
86
|
submission_ratings.each do |rate|
|
|
87
87
|
rate.each do |rate_field, rate_value|
|
|
88
88
|
total_ratings += rate_value if rate_field == 'value'
|
|
89
89
|
individual_ratings << "#{rate_value}, " if rate_field == 'value'
|
|
90
90
|
raters << "#{rate_value['name']}, " if rate_field == 'user'
|
|
91
|
+
comments << "#{rate_value['comments']}, " if rate_field == 'comments'
|
|
91
92
|
end
|
|
92
93
|
end
|
|
93
94
|
line[:total_ratings] = total_ratings
|
|
94
95
|
line[:individual_ratings] = individual_ratings
|
|
95
96
|
line[:raters] = raters
|
|
96
|
-
|
|
97
|
+
line[:comments] = comments
|
|
98
|
+
headers.concat([:total_ratings, :individual_ratings, :raters, :comments]) unless headerset
|
|
97
99
|
end
|
|
98
100
|
headerset = true
|
|
99
101
|
submissions << line
|
data/lib/papercallio/version.rb
CHANGED