zeitungen 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 61ff30b7b693c7e60aa9e15062090abaef9cdfcd
4
+ data.tar.gz: 1ad15b7f9e0254c3ce5d8078f9f3b1f26ab6e2dc
5
+ SHA512:
6
+ metadata.gz: 9caf311c30c32228d665ca46918c749dfe5c276c5bbc4fc8ddce53059bec7e7d0b7fca3d5127aa16e6269b77280d688649a39a22f31f841a25c55aac186b5ffa
7
+ data.tar.gz: 1854578ea04e03ebadae40e7f721a1df5b70f66e0ad869e1515168aeaf180425d180269f073bb82d2608c6ef512b7291773bd9e2feb8ce6a91b62eac4e8d7028
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.3
4
+ before_install: gem install bundler -v 1.10.6
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in zeitungen.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Iwan Buetti
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,41 @@
1
+ # Zeitungen
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/zeitungen`. 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 'zeitungen'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install zeitungen
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ 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.
30
+
31
+ 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).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/zeitungen. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
36
+
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
+
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec) do |task|
5
+ task.rspec_opts = ['--color', '--format', 'progress']
6
+ end
7
+
8
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "zeitungen"
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
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,78 @@
1
+ module Zeitungen
2
+ class Downloader
3
+ def initialize(url, zeitungen, client, passwords)
4
+ @url = url
5
+ @zeitungen = zeitungen
6
+ @client = client
7
+ @passwords = passwords
8
+ end
9
+
10
+ def run(date=Date.today, options={})
11
+ options = {thread_count: 5}.merge(options)
12
+ @date_string = date.strftime("%Y-%m-%d")
13
+ @client.date_string = @date_string
14
+
15
+ page = IndexPage.new(@url, @passwords)
16
+ zeitungen_links = page.links(date)
17
+ puts zeitungen_links.inspect
18
+ queue = enqueue(zeitungen_links)
19
+
20
+ if queue.size==0
21
+ puts "No zeitungen to download"
22
+ else
23
+ puts "Start downloading #{queue.size} zeitungen"
24
+ end
25
+
26
+ download(queue, options[:thread_count])
27
+ end
28
+
29
+ private
30
+
31
+ def filename_w_date(filename, date_string=nil)
32
+ "#{filename} - #{date_string || @date_string}.pdf"
33
+ end
34
+
35
+ def enqueue(zeitungen_links)
36
+ queue = Queue.new
37
+ @zeitungen.each do |z|
38
+ if link = zeitungen_links.find{|l| z.regexp.match l.text } # se c'è un link per il zeitungen corrente
39
+ z.uri = link.uri+"\?directDownload\=true" # zeitungen.uri+"\?directDownload\=true"
40
+ filename = filename_w_date(z.final_name) # "Corriere della Sera - 2015-12-23.pdf"
41
+
42
+ queue << z if !(@client.exist_in_public_dest?(filename) || @client.exist_in_private_dest?(filename))
43
+ end
44
+ end
45
+ queue
46
+ end
47
+
48
+ def download(queue, thread_count)
49
+ threads = thread_count.times.map do
50
+ Thread.new do
51
+ while !queue.empty? && z = queue.pop
52
+ begin
53
+ uri = z.uri
54
+ file = Tempfile.new('zeitungen')
55
+ Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme=='https') do |http|
56
+ request = Net::HTTP::Get.new(uri)
57
+ puts "downloading #{z.final_name}..."
58
+ response = http.request request
59
+ file.write(response.body)
60
+ end
61
+
62
+ filename = filename_w_date(z.final_name)
63
+ z.upload ? @client.mv_file_in_public_dest(filename, file) : @client.mv_file_in_private_dest(filename, file)
64
+ file.close
65
+ file.unlink
66
+
67
+ rescue Exception => e
68
+ puts "Error downloading a newpaper!"
69
+ puts e.inspect
70
+ end
71
+ end
72
+ end
73
+ end
74
+ threads.each(&:join)
75
+ puts "Main thread finish here!"
76
+ end
77
+ end
78
+ end
@@ -0,0 +1,56 @@
1
+ module Zeitungen
2
+ class DropboxClient
3
+ attr_accessor :date_string
4
+
5
+ def public_dest_path(filename)
6
+ File.join("quotidie", @date_string, filename)
7
+ end
8
+
9
+ def private_dest_path(filename)
10
+ File.join("zeitungenen", filename)
11
+ end
12
+
13
+ def exist_in_public_dest?(filename)
14
+ exists?(public_dest_path(filename))
15
+ end
16
+
17
+ def exist_in_private_dest?(filename)
18
+ exists?(private_dest_path(filename))
19
+ end
20
+
21
+ def mv_file_in_public_dest(filename, file)
22
+ f = open(file)
23
+ put_file(public_dest_path(filename), f)
24
+ end
25
+
26
+ def mv_file_in_private_dest(filename, file)
27
+ f = open(file)
28
+ put_file(private_dest_path(filename), f)
29
+ end
30
+
31
+ def include?(dir, file)
32
+ r = metadata(dir)
33
+ r["contents"].map{|e| File.basename(e["path"])}.include?(file)
34
+ end
35
+
36
+ def dir?(path)
37
+ r = metadata(path)
38
+ r["is_dir"]
39
+ end
40
+
41
+ def create_folder(path)
42
+ file_create_folder(path)
43
+ rescue DropboxError => e
44
+ nil
45
+ end
46
+
47
+ # path can be a dir or a file
48
+ def exists?(path)
49
+ r = metadata(path)
50
+ return !r["is_deleted"]
51
+ rescue DropboxError => e
52
+ false
53
+ end
54
+ end
55
+
56
+ end
@@ -0,0 +1,29 @@
1
+ module Zeitungen
2
+ class FileClient
3
+ attr_accessor :date_string
4
+
5
+ def public_dest_path(filename)
6
+ File.join(Dir.home, "Dropbox", "quotidie", @date_string, filename)
7
+ end
8
+
9
+ def private_dest_path(filename)
10
+ File.join(Dir.home, "Dropbox", "zeitungenen", filename)
11
+ end
12
+
13
+ def exist_in_public_dest?(filename)
14
+ File.exists?(public_dest_path(filename))
15
+ end
16
+
17
+ def exist_in_private_dest?(filename)
18
+ File.exists?(private_dest_path(filename))
19
+ end
20
+
21
+ def mv_file_in_public_dest(filename, file)
22
+ FileUtils.mv(file.path, public_dest_path(filename))
23
+ end
24
+
25
+ def mv_file_in_private_dest(filename, file)
26
+ FileUtils.mv(file.path, private_dest_path(filename))
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,43 @@
1
+ module Zeitungen
2
+ class IndexPage
3
+ def initialize(url, passwords)
4
+ @url = url
5
+ @passwords = passwords
6
+ end
7
+
8
+ def links(date)
9
+ date_string = date.to_s # date.strftime("%Y-%m-%d")
10
+ t = Time.now
11
+ all_quotidie_links = []
12
+
13
+ puts "Downloading zeitungens for #{date_string}"
14
+ puts "-----------------------------------"
15
+
16
+ agent = Mechanize.new
17
+ agent.get(@url) do |page|
18
+
19
+ # compilo form autenticazione
20
+ form = page.forms.first
21
+ form.password = @passwords.get(date.year, date.month)
22
+
23
+ # non so perche arriva un'altro form precompilato
24
+ form2 = agent.submit(form).forms.first
25
+
26
+ # la pagina con i diversi giorni
27
+ quotidie_page = agent.submit(form2)
28
+
29
+ # finalmente l'url della pagina con la lista dei quotidiani
30
+ rgxp = Regexp.new("^"+date.strftime("%d.%m.%Y"))
31
+ page = quotidie_page
32
+
33
+ # tutti i link utili
34
+ [0,1,2,3].each do |a|
35
+ all_quotidie_links = page.links.find_all { |link| link.attributes.parent.parent.path == "/html/body/section/section/div/article[#{a}]/div/section[1]/div/div" }
36
+ break if all_quotidie_links.size > 3
37
+ end
38
+ end
39
+ puts "Parsing zeitungen page takes #{Time.now-t}s"
40
+ all_quotidie_links
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,11 @@
1
+ module Zeitungen
2
+ class Password
3
+ attr_reader :year, :month, :passphrase
4
+ def initialize(year, month, passphrase)
5
+ @year = year.to_i
6
+ @month = month.to_i
7
+ @passphrase = passphrase
8
+ end
9
+ end
10
+
11
+ end
@@ -0,0 +1,21 @@
1
+ module Zeitungen
2
+ class Passwords
3
+ def initialize(hash)
4
+ @arr = []
5
+ hash.each_pair do |year, hash2|
6
+ hash2.each_pair do |month, passphrase|
7
+ @arr << Password.new(year, month, passphrase)
8
+ end
9
+ end
10
+ end
11
+
12
+ def get(year, month)
13
+ if p = @arr.find{|e| e.year==year.to_i && e.month==month.to_i}
14
+ p.passphrase
15
+ else
16
+ raise Exception.new("Password not found!")
17
+ end
18
+ end
19
+ end
20
+
21
+ end
@@ -0,0 +1,3 @@
1
+ module Zeitungen
2
+ VERSION = "0.2.0"
3
+ end
@@ -0,0 +1,27 @@
1
+ module Zeitungen
2
+ class Zeitung
3
+ attr_accessor :uri
4
+ attr_reader :final_name, :regexp, :upload
5
+ def initialize(final_name, regexp, upload=false)
6
+ @final_name = final_name
7
+ @regexp = regexp
8
+ @upload = upload
9
+ @uri = nil
10
+ end
11
+
12
+
13
+ def download
14
+ puts "downloading '#{final_name}'..."
15
+ file = nil
16
+ begin
17
+ file = Tempfile.new('zeitungen')
18
+ open(uri+"\?directDownload\=true", "rb") do |read_file|
19
+ file.write(read_file.read)
20
+ end
21
+ rescue Exception => e
22
+ puts "Error downloading '#{final_name}'!"
23
+ end
24
+ file
25
+ end
26
+ end
27
+ end
data/lib/zeitungen.rb ADDED
@@ -0,0 +1,21 @@
1
+ require 'net/http'
2
+ require 'date'
3
+ require 'open-uri'
4
+ require 'fileutils'
5
+ require 'mechanize'
6
+ require 'tempfile'
7
+ require 'dropbox_sdk'
8
+
9
+
10
+ %w(
11
+ version
12
+ zeitung
13
+ dropbox_client
14
+ file_client
15
+ index_page
16
+ downloader
17
+ password
18
+ passwords
19
+ ).each { |file| require File.join(File.dirname(__FILE__), 'zeitungen', file) }
20
+
21
+ include Zeitungen
data/zeitungen.gemspec ADDED
@@ -0,0 +1,45 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'zeitungen/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "zeitungen"
8
+ spec.version = Zeitungen::VERSION
9
+ spec.authors = ["Iwan Buetti"]
10
+ spec.email = ["iwan.buetti@gmail.com"]
11
+
12
+ spec.summary = %q{Library for download newpaper and load them to Dropbox}
13
+ # spec.description = %q{TODO: Write a longer description or delete this line.}
14
+ # spec.homepage = "TODO: Put your gem's website or public repo URL here."
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
18
+ # delete this section to allow pushing this gem to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata['allowed_push_host'] = "https://rubygems.org"
21
+ else
22
+ raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
23
+ end
24
+
25
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
+ spec.bindir = "exe"
27
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
+ spec.require_paths = ["lib"]
29
+
30
+ spec.add_development_dependency "bundler", "~> 1.10"
31
+ spec.add_development_dependency "rake", "~> 10.0"
32
+ spec.add_development_dependency "rspec"
33
+ spec.add_development_dependency "rspec-nc"
34
+ spec.add_development_dependency "guard"
35
+ spec.add_development_dependency "guard-rspec"
36
+ spec.add_development_dependency "pry"
37
+ spec.add_development_dependency "pry-remote"
38
+ spec.add_development_dependency "pry-nav"
39
+ spec.add_development_dependency "byebug"
40
+
41
+ # spec.add_development_dependency "coveralls"
42
+
43
+ spec.add_dependency "mechanize"
44
+ spec.add_dependency "dropbox-sdk"
45
+ end
metadata ADDED
@@ -0,0 +1,233 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: zeitungen
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ platform: ruby
6
+ authors:
7
+ - Iwan Buetti
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-01-07 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: '1.10'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.10'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
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-nc
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: guard
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
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: guard-rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
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: pry
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
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-remote
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: pry-nav
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: byebug
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: mechanize
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: dropbox-sdk
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ description:
182
+ email:
183
+ - iwan.buetti@gmail.com
184
+ executables: []
185
+ extensions: []
186
+ extra_rdoc_files: []
187
+ files:
188
+ - ".gitignore"
189
+ - ".rspec"
190
+ - ".travis.yml"
191
+ - CODE_OF_CONDUCT.md
192
+ - Gemfile
193
+ - LICENSE.txt
194
+ - README.md
195
+ - Rakefile
196
+ - bin/console
197
+ - bin/setup
198
+ - lib/zeitungen.rb
199
+ - lib/zeitungen/downloader.rb
200
+ - lib/zeitungen/dropbox_client.rb
201
+ - lib/zeitungen/file_client.rb
202
+ - lib/zeitungen/index_page.rb
203
+ - lib/zeitungen/password.rb
204
+ - lib/zeitungen/passwords.rb
205
+ - lib/zeitungen/version.rb
206
+ - lib/zeitungen/zeitung.rb
207
+ - zeitungen.gemspec
208
+ homepage:
209
+ licenses:
210
+ - MIT
211
+ metadata:
212
+ allowed_push_host: https://rubygems.org
213
+ post_install_message:
214
+ rdoc_options: []
215
+ require_paths:
216
+ - lib
217
+ required_ruby_version: !ruby/object:Gem::Requirement
218
+ requirements:
219
+ - - ">="
220
+ - !ruby/object:Gem::Version
221
+ version: '0'
222
+ required_rubygems_version: !ruby/object:Gem::Requirement
223
+ requirements:
224
+ - - ">="
225
+ - !ruby/object:Gem::Version
226
+ version: '0'
227
+ requirements: []
228
+ rubyforge_project:
229
+ rubygems_version: 2.4.5.1
230
+ signing_key:
231
+ specification_version: 4
232
+ summary: Library for download newpaper and load them to Dropbox
233
+ test_files: []