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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aaee603cae0ab279d2525fcd1c1999c23d8a2edf5c5427efdb987e4e26311854
4
- data.tar.gz: 9762414bbe6d17a1d31a6c18518ad4b717e431c8e708ccaba24c92956556d63a
3
+ metadata.gz: c5be51d65f93eff729a7162962e9b6c81d059501d000d0960b21c50d59aa5bad
4
+ data.tar.gz: d1f46ed6da707dbde9d9dbdc5c90e053c4f49629f4c11aa8f02f6282088816ca
5
5
  SHA512:
6
- metadata.gz: 0f5f2975a82ac9d6f0ac21342689d338b4e3d592a30f6c5ce576caa24a71aced6a67937da15d7a8b79c8ab67e0f935d9a2e462a854c687d7780f3ac76e7c03a2
7
- data.tar.gz: 356d32a47c94bddeede35636f23714920d83280ed96b273c774e5741aa351ee515e67aacf96fc81071ac29ddc42071c7fd2c2ed37774c530d0a8176059fff97b
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
- @name = @name.split('/').last + (@extension[0] == '.' ? '' : @extension.insert(0, '.'))
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)
@@ -1,3 +1,3 @@
1
1
  module Ortega
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ortega
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Farhad