ortega 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -7
- data/lib/ortega/file.rb +2 -1
- data/lib/ortega/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5be51d65f93eff729a7162962e9b6c81d059501d000d0960b21c50d59aa5bad
|
4
|
+
data.tar.gz: d1f46ed6da707dbde9d9dbdc5c90e053c4f49629f4c11aa8f02f6282088816ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 787cb9e1f4816a8e8d018d987064f526b6a60aa1f2ef6e1a10b75451cc887754bf04a65b25e7673810a89d3df4bd70bafe6de1df28154abaf7c0da294609a06a
|
7
|
+
data.tar.gz: 4e92af70d865437de5fea39860e81fd916e90e7a69cbb7c4f50d8cc9d0e1b739d1ea698af1c79cc0d0bdc3ecfe38d6fb2e1667ba58f9d0eb12334c3b89cc39c5
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Ortega
|
1
|
+
# Ortega [![Gem Version](https://badge.fury.io/rb/ortega.svg)](https://badge.fury.io/rb/ortega)
|
2
2
|
|
3
3
|
Ruby file downloader
|
4
4
|
|
@@ -47,12 +47,6 @@ If url does not contain the extension, it should be good to spectify it manually
|
|
47
47
|
Ortega.download('example.com/downloadable_file', extension: 'pdf')
|
48
48
|
```
|
49
49
|
|
50
|
-
## Development
|
51
|
-
|
52
|
-
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.
|
53
|
-
|
54
|
-
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).
|
55
|
-
|
56
50
|
## Contributing
|
57
51
|
|
58
52
|
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/ortega.
|
data/lib/ortega/file.rb
CHANGED
@@ -43,7 +43,8 @@ module Ortega
|
|
43
43
|
file = new(options)
|
44
44
|
|
45
45
|
file.instance_eval do
|
46
|
-
@
|
46
|
+
@extension[0] == '.' ? '' : @extension.insert(0, '.')
|
47
|
+
@name = @name.split('/').last + @extension
|
47
48
|
@destination = ::File.join(
|
48
49
|
"#{file.destination ? ::File.expand_path(file.destination) : '.'}",
|
49
50
|
file.name)
|
data/lib/ortega/version.rb
CHANGED