shopify_app_reviews 0.2.0 → 0.2.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 +5 -5
- data/bin/shopify_app_reviews +0 -3
- data/lib/shopify_app_reviews/cli.rb +10 -5
- data/lib/shopify_app_reviews/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9d0115b095605540f25715f0edd8fbf752de2a8b706ac8ea868296d3b079adf8
|
4
|
+
data.tar.gz: 464062361133bb51538b5ea7b55da1ee3eb09bc840d397f3085614c47f01ebee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be867346bd1fda1db2829db33ebba98c0d7427069e17d97394a78858ed2b130527235414f65a8e656128c4aa53eb5c329e1fe9a766f3e7d1640775afc0ec64b2
|
7
|
+
data.tar.gz: 7f167749d8ea6abee023ab54e063375210eda3524ae7439c19c3968a1d68dd0648dc77670c9dfc9b6a1e6e5650ac602ff0b7ea972d8a601e301e176584143591
|
data/bin/shopify_app_reviews
CHANGED
@@ -57,7 +57,6 @@ class ShopifyAppReviews::CLI
|
|
57
57
|
while input != "exit cli"
|
58
58
|
print_instructions
|
59
59
|
input = gets.chomp.downcase
|
60
|
-
hr
|
61
60
|
display_app_details(input) ? display_app_details(input) : puts("Doesn't look like an app exists for that. Did you spell your request properly?").colorize(:red) unless input == "exit cli"
|
62
61
|
end
|
63
62
|
end
|
@@ -73,7 +72,8 @@ class ShopifyAppReviews::CLI
|
|
73
72
|
while !sub_input != "new app"
|
74
73
|
hr
|
75
74
|
if requested_app.nil?
|
76
|
-
puts
|
75
|
+
puts "Doesn't look like an app exists for that. Did you spell your request properly?".colorize(:red)
|
76
|
+
hr
|
77
77
|
get_input
|
78
78
|
else
|
79
79
|
print_sub_instructions(requested_app)
|
@@ -89,7 +89,13 @@ class ShopifyAppReviews::CLI
|
|
89
89
|
end
|
90
90
|
app_details_table(requested_app) if sub_input == "app details"
|
91
91
|
overall_sentiment(requested_app) if sub_input == "overall sentiment"
|
92
|
-
|
92
|
+
unless requested_app.app_reviews.empty?
|
93
|
+
if sub_input == "trending sentiment"
|
94
|
+
hr
|
95
|
+
trending_sentiment(requested_app)
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
93
99
|
end
|
94
100
|
end
|
95
101
|
end
|
@@ -101,7 +107,6 @@ class ShopifyAppReviews::CLI
|
|
101
107
|
end
|
102
108
|
|
103
109
|
def trending_sentiment(app)
|
104
|
-
hr
|
105
110
|
puts "The trending sentiment for".colorize(:green) + " #{app.name.colorize(:white)} " + "is ".colorize(:green) + "#{app.trending_sentiment}"
|
106
111
|
end
|
107
112
|
|
@@ -125,7 +130,7 @@ class ShopifyAppReviews::CLI
|
|
125
130
|
app.app_reviews.each_with_index do |review, index|
|
126
131
|
puts "##{(index + 1)}. ".colorize(:yellow) + "#{review.title.split.map(&:capitalize).join(' ').colorize(:green)} - #{review.rating}".colorize(:green)
|
127
132
|
puts "Reviewed on #{review.date}".colorize(:green)
|
128
|
-
puts "#{review.body}".colorize(:
|
133
|
+
puts "#{review.body}".colorize(:white)
|
129
134
|
hr unless review == app.app_reviews.last
|
130
135
|
end
|
131
136
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shopify_app_reviews
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- eyaltoledano
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -105,8 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
105
|
- !ruby/object:Gem::Version
|
106
106
|
version: '0'
|
107
107
|
requirements: []
|
108
|
-
|
109
|
-
rubygems_version: 2.5.1
|
108
|
+
rubygems_version: 3.0.3
|
110
109
|
signing_key:
|
111
110
|
specification_version: 4
|
112
111
|
summary: An unofficial utility providing access to Shopify App review information
|