shopify_app_reviews 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f95f870f8004ccf3c2b52865c513b9c5993fae84
4
+ data.tar.gz: 531492f5cb076c6f5917f6eab6b00206cd130a03
5
+ SHA512:
6
+ metadata.gz: 5aab54460082fa44706c479b6f0f08104a476df5da4a2f22e6b8592a2c34fa3f1b61afbbfbf006afe2967fdb8103d9c006e733818151b8b6c380b606a09a5350
7
+ data.tar.gz: 190214df5fc45fb8bcecbc6d643f715b51b0300a8138ff8e38c5002f107ccb418263c9a5018f20f3c639e8b2e2dcf7c132da784d16377d26059c2d4cf83b4373
@@ -0,0 +1,25 @@
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to help us improve
4
+ title: "[BUG]"
5
+ labels: bug
6
+ assignees: eyaltoledano
7
+
8
+ ---
9
+
10
+ **Describe the bug**
11
+ A clear and concise description of what the bug is.
12
+
13
+ **To Reproduce**
14
+ Steps to reproduce the behavior:
15
+ 1. Go to '...'
16
+ 2. Use command '...'
17
+
18
+ **Expected behavior**
19
+ A clear and concise description of what you expected to happen.
20
+
21
+ **Screenshots**
22
+ If applicable, add screenshots to help explain your problem.
23
+
24
+ **Additional context**
25
+ Add any other context about the problem here.
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for the CLI
4
+ title: "[REQUEST]"
5
+ labels: enhancement
6
+ assignees: eyaltoledano
7
+
8
+ ---
9
+
10
+ **Is your feature request related to a problem? Please describe.**
11
+ A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12
+
13
+ **Describe the solution you'd like**
14
+ A clear and concise description of what you want to happen.
15
+
16
+ **Describe alternatives you've considered**
17
+ A clear and concise description of any alternative solutions or features you've considered.
18
+
19
+ **Additional context**
20
+ Add any other context or screenshots about the feature request here.
data/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at eyaltoledano@me.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,11 @@
1
+ ## Contributing
2
+
3
+ Bug reports and pull requests are welcome on GitHub at https://github.com/eyaltoledano/shopify-app-reviews. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
4
+
5
+ ## License
6
+
7
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
8
+
9
+ ## Code of Conduct
10
+
11
+ Everyone interacting in the ShopifyAppReviews project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/shopify_app_reviews/blob/master/CODE_OF_CONDUCT.md).
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in shopify_app_reviews.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,22 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ shopify_app_reviews (0.1.0)
5
+ colorize
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ colorize (0.8.1)
11
+ rake (10.4.2)
12
+
13
+ PLATFORMS
14
+ ruby
15
+
16
+ DEPENDENCIES
17
+ bundler (~> 2.0.1)
18
+ rake (~> 10.0)
19
+ shopify_app_reviews!
20
+
21
+ BUNDLED WITH
22
+ 2.0.1
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 eyaltoledano
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,42 @@
1
+ # ShopifyAppReviews CLI
2
+
3
+ Shopify App Reviews CLI is a handy utility which provides easy terminal access to app review information retrieved from the Shopify App Store. This is an unofficial release, and is not maintained by or affiliated with Shopify in any way.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'shopify_app_reviews'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install shopify_app_reviews
20
+
21
+ ## Usage
22
+
23
+ To start the CLI, navigate to the project root and run:
24
+
25
+ $ bin/shopify_app_reviews
26
+
27
+ You'll be required to supply the program with a Shopify app name or app URL from the Shopify App Store.
28
+
29
+ If a Shopify App is found, you can access its latest 10 reviews using
30
+ `latest reviews`.
31
+
32
+ ## Contributing
33
+
34
+ Bug reports and pull requests are welcome on GitHub at https://github.com/eyaltoledano/shopify-app-reviews. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
35
+
36
+ ## License
37
+
38
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
39
+
40
+ ## Code of Conduct
41
+
42
+ Everyone interacting in the ShopifyAppReviews project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/shopify_app_reviews/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ require 'nokogiri'
3
+ require 'pry'
4
+
5
+ require "bundler/setup"
6
+ require "shopify_app_reviews"
7
+
8
+ # You can add fixtures and/or initialization code here to make experimenting
9
+ # with your gem easier. You can also use a different console, if you like.
10
+
11
+ # (If you use this, don't forget to add pry to your Gemfile!)
12
+ # require "pry"
13
+ # Pry.start
14
+
15
+ require "irb"
16
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require './lib/shopify_app_reviews'
4
+ require "bundler/setup"
5
+ # require 'pry'
6
+ # require 'nokogiri'
7
+ require 'open-uri'
8
+
9
+ ShopifyAppReviews::CLI.new.run
@@ -0,0 +1,9 @@
1
+ module Concerns::Findable
2
+ def find_by_name(name)
3
+ self.all.find {|object| object.name == name || object.name.downcase.include?(name)}
4
+ end
5
+
6
+ def find_by_url(url)
7
+ self.all.find {|object| object.url == url}
8
+ end
9
+ end
@@ -0,0 +1,17 @@
1
+ module Concerns::Methods
2
+ module InstanceMethods
3
+ def save
4
+ self.class.all << self
5
+ end
6
+ end
7
+
8
+ module ClassMethods
9
+ def create(attributes)
10
+ self.new(attributes).tap{ |a| a.save }
11
+ end
12
+
13
+ def destroy_all
14
+ self.class.all.clear
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,25 @@
1
+ require 'open-uri'
2
+ require 'nokogiri'
3
+ require 'pry'
4
+
5
+ class AppListScraper
6
+
7
+ def self.scrape_shopify_apps # returns an array of Shopify App hashes
8
+ html = open('https://asoft.co/shopify-apps/most-reviewed')
9
+ index = Nokogiri::HTML(html)
10
+ app_array = []
11
+ index.css('tr').each do |row|
12
+ unless row == index.css('tr')[0] # Skip the first row (headers)
13
+ hash = {}
14
+ hash[:name] = row.css('td').css('a').first.text
15
+ hash[:url] = row.css('td a').first.attributes["href"].text
16
+ hash[:category] = row.css('td').last.text
17
+ hash[:developer_name] = row.css('td').css('a').last.text
18
+ hash[:developer_url] = row.css('td').css('a').last["href"]
19
+ app_array << hash
20
+ end
21
+ end
22
+ app_array
23
+ end
24
+
25
+ end
@@ -0,0 +1,41 @@
1
+ class AppReview
2
+ attr_accessor :title, :body, :date, :rating, :app
3
+
4
+ @@all = []
5
+
6
+ def initialize(app_attributes, app = nil)
7
+ @title = app_attributes[:title]
8
+ @body = app_attributes[:body]
9
+ @date = app_attributes[:date]
10
+ @rating = app_attributes[:rating]
11
+ @app = app if app
12
+ end
13
+
14
+ def self.all
15
+ @@all
16
+ end
17
+
18
+ def self.destroy_all
19
+ self.class.all.clear
20
+ end
21
+
22
+ def save
23
+ self.class.all << self
24
+ end
25
+
26
+ def self.create(app_attributes, app = nil)
27
+ a = self.new(app_attributes, app)
28
+ a.save
29
+ end
30
+
31
+ def app=
32
+ @app = app
33
+ app.reviews << self unless app.reviews.include?(self)
34
+ end
35
+
36
+ def self.create_from_collection(review_array, app)
37
+ review_array.each do |review_info|
38
+ self.create(review_info, app)
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,33 @@
1
+ require 'open-uri'
2
+ require 'nokogiri'
3
+ require 'pry'
4
+
5
+ class AppReviewScraper
6
+ def self.scrape_app_reviews(app) # returns an array of AppReview hashes
7
+ html = open(app.url+"/reviews")
8
+ index = Nokogiri::HTML(html)
9
+ review_array = []
10
+ index.css('.review-listing').each do |review|
11
+ hash = {}
12
+ hash[:title] = review.css('.review-listing-header__text').text.strip
13
+ hash[:body] = review.css('.review-content').css('p').text
14
+ hash[:date] = review.css('.review-metadata__item')[1].css('div').children.last.text.strip
15
+ hash[:rating] = review.css('.ui-star-rating').css('div.ui-star-rating__text').text
16
+ hash[:app] = app
17
+ review_array << hash
18
+ end
19
+ review_array
20
+ end
21
+
22
+ def self.scrape_app_metadata(app)
23
+ html = open(app.url+"/reviews")
24
+ index = Nokogiri::HTML(html)
25
+ app.description = index.css('.ui-app-store-hero__description-text').text
26
+ overall_rating = index.css('.ui-star-rating__rating').first.text
27
+ app.overall_rating = overall_rating
28
+
29
+ html2 = open(app.url)
30
+ index2 = Nokogiri::HTML(html2)
31
+ app.developer_contact = index2.css('li.app-support-list__item span')[4].text.strip
32
+ end
33
+ end
@@ -0,0 +1,134 @@
1
+ # # CLI Controller
2
+ require_relative 'app_review.rb'
3
+ require_relative 'shopify_app.rb'
4
+ require_relative 'app_list_scraper.rb'
5
+ require_relative 'app_review_scraper.rb'
6
+
7
+ require 'colorize'
8
+
9
+ class ShopifyAppReviews::CLI
10
+ def run
11
+ welcome
12
+ scrape_and_create_apps
13
+ library_updated
14
+ get_input
15
+ goodbye
16
+ end
17
+
18
+ def welcome
19
+ hr
20
+ print "Welcome to Shopify App Reviews CLI.".colorize(:light_green)
21
+ print " The Shopify App Library is updating. One moment...".colorize(:green)
22
+ end
23
+
24
+ def hr
25
+ 80.times {print "-".colorize(:cyan)}
26
+ puts "-".colorize(:cyan)
27
+ end
28
+
29
+ def library_updated
30
+ now = Time.now.asctime
31
+ checkmark = "\u2713"
32
+ puts checkmark.encode('utf-8').colorize(:light_green)
33
+ puts "Library updated as of #{now}".colorize(:green)
34
+ hr
35
+ end
36
+
37
+ def print_instructions
38
+ puts "You can use 'exit cli' to leave at any time.".colorize(:yellow)
39
+ puts "Search for a Shopify app by name or URL to access its information.".colorize(:green)
40
+ print "Enter the name or URL of a Shopify app: ".colorize(:green)
41
+ end
42
+
43
+ def print_sub_instructions(requested_app)
44
+ puts "Use 'latest reviews' to see #{requested_app.name}'s 10 latest reviews.".colorize(:yellow)
45
+ puts "Use 'app details' to review #{requested_app.name}'s details.".colorize(:yellow)
46
+ puts "Use 'new app' to return to the previous menu.".colorize(:yellow)
47
+ puts "You can use 'exit cli' to leave at any time.".colorize(:yellow)
48
+ print "What would you like to do? ".colorize(:green)
49
+ end
50
+
51
+ def get_input
52
+ input = nil
53
+ while input != "exit cli"
54
+ print_instructions
55
+ input = gets.chomp.downcase
56
+ hr
57
+ 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"
58
+ end
59
+ end
60
+
61
+ def display_app_details(input) # if an app is not found, return falsey
62
+ unless input == "exit cli"
63
+ requested_app = ShopifyApp.find_by_url(input)
64
+ requested_app = ShopifyApp.find_by_name(input) if requested_app.nil?
65
+ requested_app.nil? ? false : app_details_table(requested_app)
66
+
67
+ unless false
68
+ sub_input = nil
69
+ while !sub_input != "new app"
70
+ hr
71
+ if requested_app.nil?
72
+ puts("Doesn't look like an app exists for that. Did you spell your request properly?")
73
+ get_input
74
+ else
75
+ print_sub_instructions(requested_app)
76
+ end
77
+ sub_input = gets.chomp.downcase
78
+ if sub_input == "latest reviews"
79
+ display_app_reviews(requested_app)
80
+ end
81
+ get_input if sub_input == "new app"
82
+ if sub_input == "exit" || sub_input == "quit" || sub_input == "exit cli"
83
+ goodbye
84
+ exit
85
+ end
86
+ app_details_table(requested_app) if sub_input == "app details"
87
+ end
88
+ end
89
+ end
90
+ end
91
+
92
+ def app_details_table(app)
93
+ add_metadata_to_app(app)
94
+ puts "Found ".colorize(:green) + "#{app.name.colorize(:white)}" + " in the ".colorize(:green) + "#{app.category.colorize(:white)}" + " category. ".colorize(:green)
95
+ print "#{app.description.colorize(:white)}" + " - ".colorize(:green)
96
+ puts "#{app.overall_rating.colorize(:white)}"
97
+ puts "App URL: ".colorize(:green) + "#{app.url.colorize(:white)}"
98
+ puts "Developer: ".colorize(:green) + "#{app.developer_name.colorize(:white)}" + " (#{app.developer_url})".colorize(:green)
99
+ puts "Developer Contact: ".colorize(:green) + "#{app.developer_contact}".colorize(:white)
100
+
101
+ end
102
+
103
+ def display_app_reviews(app)
104
+ add_reviews_to_app(app)
105
+ total_reviews = app.total_review_count
106
+ puts "#{app.name}'s 10 Latest Reviews:".colorize(:light_green)
107
+ hr
108
+ app.app_reviews.each_with_index do |review, index|
109
+ puts "##{(index + 1)}. ".colorize(:yellow) + "#{review.title.split.map(&:capitalize).join(' ').colorize(:green)} - #{review.rating}".colorize(:green)
110
+ puts "Reviewed on #{review.date}".colorize(:green)
111
+ puts "#{review.body}".colorize(:green)
112
+ hr unless review == app.app_reviews.last
113
+ end
114
+ end
115
+
116
+ def scrape_and_create_apps
117
+ app_array = AppListScraper.scrape_shopify_apps
118
+ ShopifyApp.create_from_collection(app_array)
119
+ end
120
+
121
+ def add_reviews_to_app(app)
122
+ review_array = AppReviewScraper.scrape_app_reviews(app)
123
+ AppReview.create_from_collection(review_array, app)
124
+ app.app_reviews << review_array
125
+ end
126
+
127
+ def add_metadata_to_app(app)
128
+ metadata = AppReviewScraper.scrape_app_metadata(app)
129
+ end
130
+
131
+ def goodbye
132
+ puts "Closing CLI."
133
+ end
134
+ end
@@ -0,0 +1,43 @@
1
+ class ShopifyApp
2
+ attr_accessor :name, :description, :url, :category, :developer_name, :developer_url, :developer_contact, :app_reviews, :overall_rating
3
+
4
+ extend Concerns::Findable
5
+ extend Concerns::Methods::ClassMethods
6
+ include Concerns::Methods::InstanceMethods
7
+
8
+ @@all = []
9
+
10
+ def initialize(attributes)
11
+ @name = attributes[:name]
12
+ @url = attributes[:url]
13
+ @category = attributes[:category]
14
+ @developer_name = attributes[:developer_name]
15
+ @developer_url = attributes[:developer_url]
16
+ @description = attributes[:description] if attributes[:description]
17
+ @overall_rating = attributes[:overall_rating] if attributes[:overall_rating]
18
+ @developer_contact = attributes[:developer_contact] if attributes[:developer_contact]
19
+ @app_reviews = []
20
+ end
21
+
22
+ def self.all
23
+ @@all
24
+ end
25
+
26
+ def app_reviews
27
+ review_array = []
28
+ AppReview.all.each do |review|
29
+ review_array << review if review.app == self
30
+ end
31
+ review_array
32
+ end
33
+
34
+ def total_review_count
35
+ app_reviews.count
36
+ end
37
+
38
+ def self.create_from_collection(app_array)
39
+ app_array.each do |app_info|
40
+ self.create(app_info)
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,3 @@
1
+ module ShopifyAppReviews
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,13 @@
1
+
2
+ require 'pry'
3
+ require 'nokogiri'
4
+ require 'open-uri'
5
+ # require 'colorize'
6
+
7
+ module Concerns
8
+ require_relative "../lib/concerns/findable.rb"
9
+ require_relative "../lib/concerns/methods.rb"
10
+ end
11
+
12
+ require_relative "shopify_app_reviews/version"
13
+ require_relative './shopify_app_reviews/cli'
@@ -0,0 +1,41 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "shopify_app_reviews/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "shopify_app_reviews"
8
+ spec.version = ShopifyAppReviews::VERSION
9
+ spec.authors = ["eyaltoledano"]
10
+ spec.email = ["eyaltoledano@me.com"]
11
+
12
+ spec.summary = %q{An unofficial utility providing access to Shopify App review information retrieved from the Shopify App Store.}
13
+ spec.description = %q{Shopify App Reviews CLI is a handy utility which provides easy terminal access to app review information retrieved from the Shopify App Store. This is an unofficial release, and is not maintained by or affiliated with Shopify in any way.}
14
+ spec.homepage = "https://github.com/eyaltoledano/shopify-apps-reviews-cli"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ # spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
21
+
22
+ spec.metadata["homepage_uri"] = spec.homepage
23
+ spec.metadata["source_code_uri"] = "https://github.com/eyaltoledano/shopify-apps-reviews-cli"
24
+ else
25
+ raise "RubyGems 2.0 or newer is required to protect against " \
26
+ "public gem pushes."
27
+ end
28
+
29
+ # Specify which files should be added to the gem when it is released.
30
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
31
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
32
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
33
+ end
34
+ spec.bindir = "exe"
35
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
36
+ spec.require_paths = ["lib"]
37
+
38
+ spec.add_development_dependency "bundler", "~> 2.0.1"
39
+ spec.add_development_dependency "rake", "~> 10.0"
40
+ spec.add_dependency "colorize"
41
+ end
metadata ADDED
@@ -0,0 +1,114 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: shopify_app_reviews
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - eyaltoledano
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-04-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 2.0.1
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 2.0.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: colorize
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: Shopify App Reviews CLI is a handy utility which provides easy terminal
56
+ access to app review information retrieved from the Shopify App Store. This is an
57
+ unofficial release, and is not maintained by or affiliated with Shopify in any way.
58
+ email:
59
+ - eyaltoledano@me.com
60
+ executables: []
61
+ extensions: []
62
+ extra_rdoc_files: []
63
+ files:
64
+ - ".github/ISSUE_TEMPLATE/bug_report.md"
65
+ - ".github/ISSUE_TEMPLATE/feature_request.md"
66
+ - ".gitignore"
67
+ - CODE_OF_CONDUCT.md
68
+ - CONTRIBUTING.md
69
+ - Gemfile
70
+ - Gemfile.lock
71
+ - LICENSE.txt
72
+ - README.md
73
+ - Rakefile
74
+ - bin/console
75
+ - bin/setup
76
+ - bin/shopify_app_reviews
77
+ - lib/concerns/findable.rb
78
+ - lib/concerns/methods.rb
79
+ - lib/shopify_app_reviews.rb
80
+ - lib/shopify_app_reviews/app_list_scraper.rb
81
+ - lib/shopify_app_reviews/app_review.rb
82
+ - lib/shopify_app_reviews/app_review_scraper.rb
83
+ - lib/shopify_app_reviews/cli.rb
84
+ - lib/shopify_app_reviews/shopify_app.rb
85
+ - lib/shopify_app_reviews/version.rb
86
+ - shopify_app_reviews.gemspec
87
+ homepage: https://github.com/eyaltoledano/shopify-apps-reviews-cli
88
+ licenses:
89
+ - MIT
90
+ metadata:
91
+ homepage_uri: https://github.com/eyaltoledano/shopify-apps-reviews-cli
92
+ source_code_uri: https://github.com/eyaltoledano/shopify-apps-reviews-cli
93
+ post_install_message:
94
+ rdoc_options: []
95
+ require_paths:
96
+ - lib
97
+ required_ruby_version: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ required_rubygems_version: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ version: '0'
107
+ requirements: []
108
+ rubyforge_project:
109
+ rubygems_version: 2.5.1
110
+ signing_key:
111
+ specification_version: 4
112
+ summary: An unofficial utility providing access to Shopify App review information
113
+ retrieved from the Shopify App Store.
114
+ test_files: []