picfisher 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54dd426f55d53a5b00b37c2b53ec9c942e473e4adf0efa72ba34aabe1b3d8ab1
4
- data.tar.gz: 5e163219957bc33cdc08cfe9363038c75630113ce2916eff45465002ef61d1fa
3
+ metadata.gz: 2b9de04d8a277e0aa73fe18b4656954e2b5990e855f6d1f566709b71ab0748e2
4
+ data.tar.gz: bf12cd94fb5f13307d9dd29503ba0fdc640f713ab377c024950b182521a9299d
5
5
  SHA512:
6
- metadata.gz: ca9a1f9a68b39298658df183f7691ea9980242f50200488ac8b9c864cc182540919085b6ffb16ce63a4749f83bfbae2d276c4d795fd19b0f9c1a7e3da359ef8a
7
- data.tar.gz: 1672ef2e47030c7875d9900479bb50daf52c850af73fb6b505d72cb2f8aebe80d3908b38af6cf2ee7793a2230db61c016e3d2762f63ff9629209a28489000832
6
+ metadata.gz: d4b6edaff475b278d2c68a523a76b3301b057144de4d8b4943fe976898dc37bfe63e7dd1034ad5606022bfcbaa239801fcf9a6b7fad61de0716abc3f7bd4e1f0
7
+ data.tar.gz: 5ab3cd2201cf568a5836131d575c312c391ef928fbce49a26e6573b98fe4efc2b084095018aa66bd788d18aafe34749ddb287e2b4f7b1cecb063d62378449735
data/REQUIREMENTS.md ADDED
@@ -0,0 +1,27 @@
1
+ # Getsafe Backend Coding Challenge
2
+
3
+ ## Task context
4
+ Imagine you are employed at a hypothetical company called “The Big Picture Corp” where the product department is requesting a tool to download a list of images from a plain text file. For now there are not many requirements from product yet and you only know that they want a simple command line tool for downloading images from a list of urls and storing them on the local harddrive. From the product vision however, it’s already clear that having the functionality of batch downloading images will be important to the product and is likely to be used in several different contexts.
5
+
6
+ ## Assignment
7
+ Implement the functionality of downloading images from a given plain text file. Document your solution in this github repository and quickly explain why you think this is a good solution to the given task.
8
+
9
+ ## Some things to keep in mind
10
+ - We prefer if you use Ruby, but we’re ok if you use a different language
11
+ - You can assume that the image urls in a given file are separated by whitespace and can potentially include invalid urls
12
+ - Your code should be executable through a command line interface (script, rake task, ...)
13
+ - You can assume your code will be used in production and will also be further developed by other developers over time - therefore make decision accordingly
14
+ - Try to keep your commits history well organised and clean, like you would do in a pull request for a real task assignment.
15
+
16
+ ## What we pay attention to
17
+ 1. Does your solution work?
18
+ 2. Is the code clear and maintainable?
19
+ 3. Is the code tested?
20
+ 4. Is your solution documented?
21
+ 5. Have all instructions been followed?
22
+
23
+ Bonus: Document your thought process.
24
+
25
+ We're here for you in case you have any questions!
26
+
27
+ ## Above all: have fun!✌🏻
data/exe/picfisher CHANGED
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- require "bundler/setup"
5
4
  require "picfisher"
6
5
 
7
6
  PicFisher.fish(ARGV[0], ARGV[1])
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PicFisher
4
- VERSION = "0.2.2"
4
+ VERSION = "0.2.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: picfisher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fernando Guillen
@@ -67,25 +67,19 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '2.3'
69
69
  - !ruby/object:Gem::Dependency
70
- name: webmock
70
+ name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '3.23'
76
- - - ">="
77
- - !ruby/object:Gem::Version
78
- version: 3.23.1
75
+ version: '13.0'
79
76
  type: :development
80
77
  prerelease: false
81
78
  version_requirements: !ruby/object:Gem::Requirement
82
79
  requirements:
83
80
  - - "~>"
84
81
  - !ruby/object:Gem::Version
85
- version: '3.23'
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- version: 3.23.1
82
+ version: '13.0'
89
83
  - !ruby/object:Gem::Dependency
90
84
  name: rubocop
91
85
  requirement: !ruby/object:Gem::Requirement
@@ -101,19 +95,25 @@ dependencies:
101
95
  - !ruby/object:Gem::Version
102
96
  version: '1.21'
103
97
  - !ruby/object:Gem::Dependency
104
- name: rake
98
+ name: webmock
105
99
  requirement: !ruby/object:Gem::Requirement
106
100
  requirements:
107
101
  - - "~>"
108
102
  - !ruby/object:Gem::Version
109
- version: '13.0'
103
+ version: '3.23'
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ version: 3.23.1
110
107
  type: :development
111
108
  prerelease: false
112
109
  version_requirements: !ruby/object:Gem::Requirement
113
110
  requirements:
114
111
  - - "~>"
115
112
  - !ruby/object:Gem::Version
116
- version: '13.0'
113
+ version: '3.23'
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: 3.23.1
117
117
  description: Reading all the image URLs from a given text file and download them to
118
118
  a given directory.
119
119
  email:
@@ -127,6 +127,7 @@ files:
127
127
  - CHANGELOG.md
128
128
  - LICENSE.txt
129
129
  - README.md
130
+ - REQUIREMENTS.md
130
131
  - Rakefile
131
132
  - TODO.md
132
133
  - exe/picfisher
@@ -145,7 +146,7 @@ metadata:
145
146
  homepage_uri: https://github.com/fguillen/PicFisher
146
147
  source_code_uri: https://github.com/fguillen/PicFisher
147
148
  changelog_uri: https://github.com/fguillen/PicFisher/blob/main/CHANGELOG.md
148
- rubygems_mfa_required: 'false'
149
+ rubygems_mfa_required: 'true'
149
150
  post_install_message:
150
151
  rdoc_options: []
151
152
  require_paths: