tomosia_icons8_crawl 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.travis.yml +6 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +10 -0
- data/Gemfile.lock +60 -0
- data/LICENSE.txt +21 -0
- data/README.md +80 -0
- data/Rakefile +11 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/tomosia_icons8_crawl +6 -0
- data/lib/tomosia_icons8_crawl.rb +153 -0
- data/lib/tomosia_icons8_crawl/cli.rb +14 -0
- data/lib/tomosia_icons8_crawl/version.rb +3 -0
- data/spec/spec_helper.rb +18 -0
- data/spec/tomosia_icon8_crawl_spec.rb +9 -0
- data/tomosia_icons8_crawl.gemspec +30 -0
- metadata +174 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c93c1c6c6c5f771cdde2855e2cf9337e89d390df6e7d8fe9ef027e1bb6b11cfb
|
4
|
+
data.tar.gz: a8e561ffc3206e715ba8789d09c513016dfad2b36b6427718e6851dc784571e2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ea64f88a7578ab99e93ec490dd122d6ed4ffd13bc17e5dfb5e87a49cf0bb9c173a620c164a1ccd71e8112a12989ac4716c7c0ce00426a8ca4cd8ebf015686ebc
|
7
|
+
data.tar.gz: a5b208d1c483dc0613f28f10d36999fa2c5e31d088b056160f8d1e82777d84c587f3d5d94513b92de3efbd70109933205bc264db107867abc11c0c9f1d469c0f
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -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 tt.ninh.le@tomosia.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 [https://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: https://contributor-covenant.org
|
74
|
+
[version]: https://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
tomosia_icons8_crawl (0.1.0)
|
5
|
+
httparty
|
6
|
+
nokogiri
|
7
|
+
pry
|
8
|
+
thor
|
9
|
+
writeexcel
|
10
|
+
|
11
|
+
GEM
|
12
|
+
remote: https://rubygems.org/
|
13
|
+
specs:
|
14
|
+
coderay (1.1.3)
|
15
|
+
diff-lcs (1.4.4)
|
16
|
+
httparty (0.17.3)
|
17
|
+
mime-types (~> 3.0)
|
18
|
+
multi_xml (>= 0.5.2)
|
19
|
+
method_source (1.0.0)
|
20
|
+
mime-types (3.3.1)
|
21
|
+
mime-types-data (~> 3.2015)
|
22
|
+
mime-types-data (3.2020.0512)
|
23
|
+
mini_portile2 (2.4.0)
|
24
|
+
multi_xml (0.6.0)
|
25
|
+
nokogiri (1.10.10-x64-mingw32)
|
26
|
+
mini_portile2 (~> 2.4.0)
|
27
|
+
pry (0.13.1)
|
28
|
+
coderay (~> 1.1)
|
29
|
+
method_source (~> 1.0)
|
30
|
+
rake (12.3.3)
|
31
|
+
rspec (3.9.0)
|
32
|
+
rspec-core (~> 3.9.0)
|
33
|
+
rspec-expectations (~> 3.9.0)
|
34
|
+
rspec-mocks (~> 3.9.0)
|
35
|
+
rspec-core (3.9.2)
|
36
|
+
rspec-support (~> 3.9.3)
|
37
|
+
rspec-expectations (3.9.2)
|
38
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
39
|
+
rspec-support (~> 3.9.0)
|
40
|
+
rspec-mocks (3.9.1)
|
41
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
42
|
+
rspec-support (~> 3.9.0)
|
43
|
+
rspec-support (3.9.3)
|
44
|
+
thor (1.0.1)
|
45
|
+
writeexcel (1.0.5)
|
46
|
+
|
47
|
+
PLATFORMS
|
48
|
+
x64-mingw32
|
49
|
+
|
50
|
+
DEPENDENCIES
|
51
|
+
bundler
|
52
|
+
httparty (~> 0.17.3)
|
53
|
+
pry (~> 0.13.1)
|
54
|
+
rake (~> 12.0)
|
55
|
+
rspec (~> 3.0)
|
56
|
+
tomosia_icons8_crawl!
|
57
|
+
writeexcel (~> 1.0, >= 1.0.5)
|
58
|
+
|
59
|
+
BUNDLED WITH
|
60
|
+
2.1.4
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020 ninh-tomosia
|
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,80 @@
|
|
1
|
+
# TomosiaIcons8Crawl
|
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/tomosia_icons8_crawl`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'tomosia_icons8_crawl'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle install
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install tomosia_icons8_crawl
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
### Commandline or Terminal:
|
26
|
+
|
27
|
+
Download all photos including pages from icon8.com with keyword you search
|
28
|
+
|
29
|
+
$ tomosia_icons8_crawl crawl "keyword" --destination="storage path"
|
30
|
+
|
31
|
+
Download pictures with number you want to get from icon8.com with keyword to find
|
32
|
+
|
33
|
+
$ tomosia_icons8_crawl crawl "keyword" --destination="storage path" --max=number
|
34
|
+
|
35
|
+
### Developers:
|
36
|
+
|
37
|
+
Gemfile:
|
38
|
+
|
39
|
+
$ gem 'tomosia_icons8_crawl'
|
40
|
+
|
41
|
+
Require:
|
42
|
+
|
43
|
+
$ require 'tomosia_icons8_crawl'
|
44
|
+
|
45
|
+
Download all photos including pages from icon8.com with keyword you search
|
46
|
+
|
47
|
+
$ TomosiaIcons8Crawl::CrawlIcons8.crawl("keyword", "destination")
|
48
|
+
|
49
|
+
Download pictures with number you want to get from icon8.com with keyword to find
|
50
|
+
|
51
|
+
$ TomosiaIcons8Crawl::CrawlIcons8.crawl("keyword", "destination", max)
|
52
|
+
|
53
|
+
Help:
|
54
|
+
- keyword is the word used for searching.
|
55
|
+
ex: corona, car, virus,...
|
56
|
+
- destination is the path of the directory where the image was downloaded.
|
57
|
+
ex: E:\download, C:\download, C:\Desktop,...
|
58
|
+
- max max is the number of images you want to download.
|
59
|
+
ex: 100, 10, 5, 1000,...
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
## Development
|
64
|
+
|
65
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
66
|
+
|
67
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
68
|
+
|
69
|
+
## Contributing
|
70
|
+
|
71
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/tomosia-icons8-crawl. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/tomosia-icons8-crawl/blob/master/CODE_OF_CONDUCT.md).
|
72
|
+
|
73
|
+
|
74
|
+
## License
|
75
|
+
|
76
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
77
|
+
|
78
|
+
## Code of Conduct
|
79
|
+
|
80
|
+
Everyone interacting in the TomosiaIcon8Crawl project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/tomosia-icons8-crawl/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "tomosia_icon8_crawl"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,153 @@
|
|
1
|
+
module TomosiaIcons8Crawl
|
2
|
+
require 'open-uri'
|
3
|
+
require "HTTParty"
|
4
|
+
require 'pry'
|
5
|
+
require 'WriteExcel'
|
6
|
+
class CrawlIcons8
|
7
|
+
|
8
|
+
# get data from website
|
9
|
+
def self.json(key, max)
|
10
|
+
if key == nil
|
11
|
+
p "No data!"
|
12
|
+
else
|
13
|
+
if max == nil
|
14
|
+
uri = "https://search.icons8.com/api/iconsets/v5/search?term=#{key}&amount=1"
|
15
|
+
page = HTTParty.get(uri)
|
16
|
+
res = page.parsed_response
|
17
|
+
countAll = res['parameters']['countAll']
|
18
|
+
url = "https://search.icons8.com/api/iconsets/v5/search?term=#{key}&amount=#{countAll}"
|
19
|
+
else
|
20
|
+
url = "https://search.icons8.com/api/iconsets/v5/search?term=#{key}&amount=#{max}"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
page_data = HTTParty.get(url)
|
24
|
+
@responses = page_data.parsed_response
|
25
|
+
end
|
26
|
+
|
27
|
+
# save file to txt
|
28
|
+
def self.save_file_txt(index, name, url, size, extension)
|
29
|
+
File.open("log_image.txt", "a+") do |f|
|
30
|
+
f.write("#{index}. name: #{name} | url: #{url} | size: #{size}Kb | extension: #{extension} \n")
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
# save file to excel
|
35
|
+
def self.save_file_excel( path, data = {})
|
36
|
+
begin
|
37
|
+
des = path + '/export.xls'
|
38
|
+
workbook = WriteExcel.new(des)
|
39
|
+
format = workbook.add_format
|
40
|
+
format.set_bold()
|
41
|
+
format.set_align('center')
|
42
|
+
|
43
|
+
data_col = workbook.add_format
|
44
|
+
data_col.set_align('center')
|
45
|
+
format_url = workbook.add_format
|
46
|
+
format_url.set_color('blue')
|
47
|
+
format_url.set_align('center')
|
48
|
+
|
49
|
+
worksheet = workbook.add_worksheet
|
50
|
+
|
51
|
+
worksheet.write_string(0, 0, 'STT', format)
|
52
|
+
worksheet.write_string(0, 1, 'NAME', format)
|
53
|
+
worksheet.write_string(0, 2, 'URL', format)
|
54
|
+
worksheet.write_string(0, 3, 'SIZE', format)
|
55
|
+
worksheet.write_string(0, 4, 'EXTENSION', format)
|
56
|
+
|
57
|
+
multi = []
|
58
|
+
data.each_with_index do |row, index|
|
59
|
+
i = index + 1
|
60
|
+
# p i
|
61
|
+
# p row
|
62
|
+
multi << Thread.new do
|
63
|
+
row.each do |key, value|
|
64
|
+
# p key
|
65
|
+
|
66
|
+
worksheet.write_string(i, 0, row['index'], data_col)
|
67
|
+
worksheet.write_string(i, 1, row['name'], data_col)
|
68
|
+
worksheet.write_url(i, 2, row['url'], format_url)
|
69
|
+
worksheet.write_string(i, 3, row['size'], data_col)
|
70
|
+
worksheet.write_string(i, 4, row['extension'], data_col)
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
multi.each{ |m| m.join }
|
75
|
+
|
76
|
+
workbook.close
|
77
|
+
rescue Exception => e
|
78
|
+
p "Can't saved file"
|
79
|
+
p e
|
80
|
+
# break
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
# download image
|
85
|
+
def self.download_image(path, img)
|
86
|
+
timeout = 0
|
87
|
+
begin
|
88
|
+
open(img) do |image|
|
89
|
+
File.open(path, 'wb') do |file|
|
90
|
+
file.write(image.read)
|
91
|
+
@size = image.size
|
92
|
+
# p @size
|
93
|
+
end
|
94
|
+
end
|
95
|
+
rescue
|
96
|
+
if timeout < 5
|
97
|
+
timeout += 1
|
98
|
+
p "Retry download image"
|
99
|
+
retry
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
# multi download image
|
105
|
+
def self.multi_download_image(path, imgs)
|
106
|
+
begin
|
107
|
+
threads = []
|
108
|
+
@data = []
|
109
|
+
|
110
|
+
imgs.each_with_index do |img, index|
|
111
|
+
# p index
|
112
|
+
title = File.basename(img, '.png')
|
113
|
+
des = path. + "/" + index.to_s + "-" + title + ".png"
|
114
|
+
ext = File.extname(img).delete('.')
|
115
|
+
threads << Thread.new do
|
116
|
+
download_image(des, img)
|
117
|
+
@size = @size.to_s + "byte"
|
118
|
+
row = {"index" => index, "name" => title, "url" => img, "size" => @size, "extension" => ext}
|
119
|
+
@data.push(row)
|
120
|
+
end
|
121
|
+
end
|
122
|
+
threads.each{ |t| t.join }
|
123
|
+
rescue Exception => e
|
124
|
+
p "no data"
|
125
|
+
p e
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
# main
|
130
|
+
def self.crawl(keyword = nil, path = ".", max = nil)
|
131
|
+
begin
|
132
|
+
|
133
|
+
images = []
|
134
|
+
des = ""
|
135
|
+
json(keyword, max)
|
136
|
+
@responses['icons'].each_with_index do |item, index|
|
137
|
+
|
138
|
+
src = "https://img.icons8.com/#{item['platform']}/2x/#{item['commonName']}.png"
|
139
|
+
|
140
|
+
# add image
|
141
|
+
images.push(src)
|
142
|
+
end
|
143
|
+
|
144
|
+
multi_download_image(path, images)
|
145
|
+
save_file_excel(path, @data)
|
146
|
+
rescue Exception => e
|
147
|
+
p "--Runtime error--"
|
148
|
+
p e
|
149
|
+
end
|
150
|
+
end
|
151
|
+
end
|
152
|
+
end
|
153
|
+
# TomosiaIcons8Crawl::CrawlIcons8.crawl("dog", "E:\img")
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'thor'
|
2
|
+
require_relative '../tomosia_icons8_crawl'
|
3
|
+
|
4
|
+
module TomosiaIcons8Crawl
|
5
|
+
class Cli < Thor
|
6
|
+
|
7
|
+
desc "crawl KEYWORD", "enter KEYWORD to search"
|
8
|
+
option :destination
|
9
|
+
option :max
|
10
|
+
def crawl(keyword)
|
11
|
+
TomosiaIcons8Crawl::CrawlIcons8.crawl(keyword, options[:destination], options[:max])
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require "bundler/setup"
|
2
|
+
require "tomosia_icons8_crawl"
|
3
|
+
|
4
|
+
RSpec.configure do |config|
|
5
|
+
|
6
|
+
config.treat_symbols_as_metadata_keys_with_true_values = true
|
7
|
+
config.run_all_when_everything_filtered = true
|
8
|
+
config.filter_run :focus
|
9
|
+
# Enable flags like --only-failures and --next-failure
|
10
|
+
config.example_status_persistence_file_path = ".rspec_status"
|
11
|
+
|
12
|
+
# Disable RSpec exposing methods globally on `Module` and `main`
|
13
|
+
config.disable_monkey_patching!
|
14
|
+
|
15
|
+
config.expect_with :rspec do |c|
|
16
|
+
c.syntax = :expect
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require_relative 'lib/tomosia_icons8_crawl/version'
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = "tomosia_icons8_crawl"
|
5
|
+
spec.version = TomosiaIcons8Crawl::VERSION
|
6
|
+
spec.authors = ["Ninh Tomosia"]
|
7
|
+
spec.email = ["tt.ninh.le@tomosia.com"]
|
8
|
+
|
9
|
+
spec.summary = %q{tomosia-icons8-crawl using download image from icon8.com}
|
10
|
+
spec.homepage = "https://github.com/ninh-tomosia/tomosia-icons8-crawl"
|
11
|
+
spec.license = "MIT"
|
12
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
13
|
+
|
14
|
+
spec.add_development_dependency "bundler"
|
15
|
+
spec.add_development_dependency "rake"
|
16
|
+
spec.add_runtime_dependency "thor"
|
17
|
+
spec.add_development_dependency "rspec"
|
18
|
+
spec.add_runtime_dependency "httparty"
|
19
|
+
spec.add_runtime_dependency "writeexcel"
|
20
|
+
spec.add_runtime_dependency "nokogiri"
|
21
|
+
spec.add_runtime_dependency "pry"
|
22
|
+
|
23
|
+
# Specify which files should be added to the gem when it is released.
|
24
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
25
|
+
|
26
|
+
spec.files = `git ls-files`.split("\n")
|
27
|
+
spec.bindir = "exe"
|
28
|
+
spec.executables = 'tomosia_icons8_crawl'
|
29
|
+
spec.require_paths = ["lib"]
|
30
|
+
end
|
metadata
ADDED
@@ -0,0 +1,174 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tomosia_icons8_crawl
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ninh Tomosia
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-08-10 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: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: thor
|
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
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: httparty
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: writeexcel
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: nokogiri
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: pry
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
description:
|
126
|
+
email:
|
127
|
+
- tt.ninh.le@tomosia.com
|
128
|
+
executables:
|
129
|
+
- tomosia_icons8_crawl
|
130
|
+
extensions: []
|
131
|
+
extra_rdoc_files: []
|
132
|
+
files:
|
133
|
+
- ".gitignore"
|
134
|
+
- ".rspec"
|
135
|
+
- ".travis.yml"
|
136
|
+
- CODE_OF_CONDUCT.md
|
137
|
+
- Gemfile
|
138
|
+
- Gemfile.lock
|
139
|
+
- LICENSE.txt
|
140
|
+
- README.md
|
141
|
+
- Rakefile
|
142
|
+
- bin/console
|
143
|
+
- bin/setup
|
144
|
+
- exe/tomosia_icons8_crawl
|
145
|
+
- lib/tomosia_icons8_crawl.rb
|
146
|
+
- lib/tomosia_icons8_crawl/cli.rb
|
147
|
+
- lib/tomosia_icons8_crawl/version.rb
|
148
|
+
- spec/spec_helper.rb
|
149
|
+
- spec/tomosia_icon8_crawl_spec.rb
|
150
|
+
- tomosia_icons8_crawl.gemspec
|
151
|
+
homepage: https://github.com/ninh-tomosia/tomosia-icons8-crawl
|
152
|
+
licenses:
|
153
|
+
- MIT
|
154
|
+
metadata: {}
|
155
|
+
post_install_message:
|
156
|
+
rdoc_options: []
|
157
|
+
require_paths:
|
158
|
+
- lib
|
159
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
160
|
+
requirements:
|
161
|
+
- - ">="
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
version: 2.3.0
|
164
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
165
|
+
requirements:
|
166
|
+
- - ">="
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: '0'
|
169
|
+
requirements: []
|
170
|
+
rubygems_version: 3.1.2
|
171
|
+
signing_key:
|
172
|
+
specification_version: 4
|
173
|
+
summary: tomosia-icons8-crawl using download image from icon8.com
|
174
|
+
test_files: []
|