DropSync 1.0.1.pre → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c7a6903992529ecc2c8c1bf00fee3a3bc2fd2e36
4
- data.tar.gz: f8e0607ee547df63618421d364d1c1f2db7ca9fc
3
+ metadata.gz: 807c9c7926c022c86b0923b935b7beddf1fae1f5
4
+ data.tar.gz: 28977733d1e1c6dcf2181e26733655d536801e6f
5
5
  SHA512:
6
- metadata.gz: 9b2d50c21a0ccccc564aea2837f691163b22d769029e168b1fd8a7b53d486a7cccd2695278690aefaf76469983ea5dd0c3fba35a510624b13af22bb09f43d95b
7
- data.tar.gz: 3215f81094f886939f88e365e8024f42c0c7427ffdd0657d5400117a04f86e72d01bbe3638d692c242f0f16b40e657f640d4bdfc725c1720924a2abecf00f61a
6
+ metadata.gz: ce8be2778cb15706eb8d6cfcd4a019fc4ec3c170f8404fde19c939198fb4d027fa6df05d0897c7e0a01a81b4617504bc712b55da3f0d37393cda13ee2980c624
7
+ data.tar.gz: feb358e2ba6f5258005ea631caaf96d893081c02da3bcae422902cab32ace9d188fb4b0a32bdd63666a4a3fc52d2f3e2adc245dabcd83bf3e0331d7a09d786fe
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- DropSync (1.0.1.pre)
4
+ DropSync (1.0.2)
5
5
  dropbox-sdk (= 1.6.5)
6
6
  mechanize (= 2.7.5)
7
7
 
data/README.md CHANGED
@@ -4,42 +4,25 @@ A simple Dropbox client to download files or folders.
4
4
 
5
5
  ## Installation
6
6
 
7
- Add this line to your application's Gemfile:
8
-
9
- ```ruby
10
- gem 'DropSync'
11
- ```
12
-
13
- And then execute:
14
-
15
- $ bundle
16
-
17
- Or install it yourself as:
18
-
19
- $ gem install DropSync
7
+ $ gem install DropSync --pre
20
8
 
21
9
  ## Usage
22
10
 
23
11
  On your terminal, call:
24
12
 
25
- `./dropsync access_token filename`
13
+ $ dropsync access_token filename
26
14
 
27
15
  The access token can be found at [Dropbox Developers](https://www.dropbox.com/developers).
28
16
 
29
17
  That's it :)
30
18
 
31
- ## Development
32
-
33
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
34
-
35
- 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).
36
-
37
- ## Contributing
38
-
39
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/DropSync.
19
+ ## Developing and Contributing
40
20
 
21
+ To install this gem onto your local machine, run `bundle exec rake install`.
41
22
 
42
- ## License
23
+ Bug reports and pull requests are welcome!
43
24
 
44
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
25
+ ## Next steps
45
26
 
27
+ 1) Error handling
28
+ 2) Tests
@@ -1,4 +1,4 @@
1
- # !/usr/bin/env ruby
1
+ #!/usr/bin/env ruby
2
2
  require 'dropsync'
3
3
 
4
4
  unless ARGV.count == 2
@@ -1,4 +1,4 @@
1
- require 'dropsync/dropsync'
1
+ require 'dropsync/engine'
2
2
  require 'dropsync/version'
3
3
  require 'dropsync/mecha'
4
4
  require 'dropbox_sdk'
File without changes
@@ -17,7 +17,8 @@ module DropSync
17
17
  FileUtils.cd(filename)
18
18
  system("curl -L -s -o #{download_path}/#{filename}/#{filename}.zip #{link}")
19
19
  system("unzip #{download_path}/#{filename}/#{filename}.zip > /dev/null 2>&1")
20
- system("rmdir __MACOSX | rm #{filename}.zip")
20
+ FileUtils.rm_rf("__MACOSX")
21
+ system("rm #{filename}.zip")
21
22
  end
22
23
  end
23
24
  end
@@ -1,3 +1,3 @@
1
1
  module DropSync
2
- VERSION = "1.0.1.pre"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: DropSync
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1.pre
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Kair
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-16 00:00:00.000000000 Z
11
+ date: 2017-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -82,7 +82,7 @@ files:
82
82
  - Rakefile
83
83
  - bin/dropsync
84
84
  - lib/dropsync.rb
85
- - lib/dropsync/dropsync.rb
85
+ - lib/dropsync/engine.rb
86
86
  - lib/dropsync/mecha.rb
87
87
  - lib/dropsync/version.rb
88
88
  - pkg/DropSync-1.0.1.pre.gem
@@ -101,9 +101,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
101
101
  version: '0'
102
102
  required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  requirements:
104
- - - ">"
104
+ - - ">="
105
105
  - !ruby/object:Gem::Version
106
- version: 1.3.1
106
+ version: '0'
107
107
  requirements: []
108
108
  rubyforge_project:
109
109
  rubygems_version: 2.4.5.1