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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: bcfcb07d32a35d2b9d38e20ba7b46afee69c3637
4
- data.tar.gz: 46ebacd5c1b0107f793f673ade83e2a02bb2bbf9
2
+ SHA256:
3
+ metadata.gz: 9d0115b095605540f25715f0edd8fbf752de2a8b706ac8ea868296d3b079adf8
4
+ data.tar.gz: 464062361133bb51538b5ea7b55da1ee3eb09bc840d397f3085614c47f01ebee
5
5
  SHA512:
6
- metadata.gz: 1cc87de2a5def3d9159c659258eb2256378c8096eafeabfb8efec6222c5037e769e1dfa74039bbc5862a5b9f8d4f567c16d85ba310a6f64707af31ae3bf04ede
7
- data.tar.gz: 63ffe378dde8ae42c592347b774f20c35b60dceb0bc0e7c97596e44738041f6b7f6b71bdc003fa9586e7f0660f1c85c17eb410c5b38cd14d80a147ac5026352d
6
+ metadata.gz: be867346bd1fda1db2829db33ebba98c0d7427069e17d97394a78858ed2b130527235414f65a8e656128c4aa53eb5c329e1fe9a766f3e7d1640775afc0ec64b2
7
+ data.tar.gz: 7f167749d8ea6abee023ab54e063375210eda3524ae7439c19c3968a1d68dd0648dc77670c9dfc9b6a1e6e5650ac602ff0b7ea972d8a601e301e176584143591
@@ -2,8 +2,5 @@
2
2
 
3
3
  require './lib/shopify_app_reviews'
4
4
  require "bundler/setup"
5
- # require 'pry'
6
- # require 'nokogiri'
7
- require 'open-uri'
8
5
 
9
6
  ShopifyAppReviews::CLI.new.run
@@ -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("Doesn't look like an app exists for that. Did you spell your request properly?")
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
- trending_sentiment(requested_app) if sub_input == "trending sentiment" unless requested_app.app_reviews.empty?
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(:green)
133
+ puts "#{review.body}".colorize(:white)
129
134
  hr unless review == app.app_reviews.last
130
135
  end
131
136
  end
@@ -1,3 +1,3 @@
1
1
  module ShopifyAppReviews
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  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.0
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-02 00:00:00.000000000 Z
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
- rubyforge_project:
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