adops_report_scrapper 0.1.1 → 0.1.2

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
  SHA1:
3
- metadata.gz: 4ed4888eb209682c4179f2320fc0c76dcc9bb266
4
- data.tar.gz: b4ec13ef9772b23179c18dab0863607387bacb33
3
+ metadata.gz: 6976c74818c330b6a0473ed93201c8214ad0d4c8
4
+ data.tar.gz: 6d9c27cfd9b2d80cc630ece48bca6d5c3c996f78
5
5
  SHA512:
6
- metadata.gz: 3bcc8a0ac2d9b7c01232a5663cd97e0eb06cdd39d1f7d767faa6a9ed6d5e75c30572dfc0abc9cfa2b04362e299521f60092d7ef4d3a4b28aaf392ee8d96bea25
7
- data.tar.gz: c8056cda55d69c3993de465e19021f948bd81b5ff859ede4564f4322fcc35b9aa638da47d57b67c6a302e92869554fe3978daba32fffaad94dbe94a827250658
6
+ metadata.gz: 5b02fe7daa7dd72e84cc0e232e8c63df93a7187714c63bdc0198939aeec59f21a5d0a48f86daf42a6667890f6851a42374bcffd2a701100f60c43c54941b250d
7
+ data.tar.gz: c1cdddf33aab46fb603b06482d7a81ab2ed799a185790b8638623f9a8f8e692743e92d3930d2ef422484b80f529bc2ab31b329455e0004ad8ea6d39f9fb4a450
data/Rakefile CHANGED
@@ -131,11 +131,11 @@ def date
131
131
  end
132
132
 
133
133
  def get_yesterdays_file_path(adnetwork)
134
- "tmp/#{@date}/#{adnetwork}.csv"
134
+ "tmp/#{date}/#{adnetwork}.csv"
135
135
  end
136
136
 
137
137
  def write_csv(adnet, data)
138
- Dir.mkdir "tmp/#{@date}" unless Dir.exists? "tmp/#{@date}"
138
+ Dir.mkdir "tmp/#{date}" unless Dir.exists? "tmp/#{date}"
139
139
  CSV.open(get_yesterdays_file_path(adnet), 'w') do |csv|
140
140
  data.each do |row|
141
141
  csv << row
@@ -150,6 +150,6 @@ def save_as_csv(adnet, scrapper) # adnet and scrapper are both sym
150
150
  end
151
151
  puts "========== working on #{adnet}"
152
152
  cred = YAML.load_file('secret.yml')[adnet.to_s]
153
- data = AdopsReportScrapper.get_scrapper(adnet, cred['login'], cred['secret'], cred['options']).get_data(date)
153
+ data = AdopsReportScrapper.get_scrapper(scrapper, cred['login'], cred['secret'], cred['options']).get_data(date)
154
154
  write_csv(adnet, data)
155
155
  end
@@ -19,6 +19,18 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
+ spec.add_dependency 'httpclient', '~> 2.8'
23
+ spec.add_dependency 'kaminari', '~> 0.17'
24
+ spec.add_dependency 'rest-client', '~> 2.0'
25
+ spec.add_dependency 'capybara', '~> 2.7'
26
+ spec.add_dependency 'poltergeist', '~> 1.10'
27
+ spec.add_dependency 'phantomjs', '~> 2.1'
28
+ spec.add_dependency 'http-cookie', '~> 1.0'
29
+ spec.add_dependency 'rubyzip', '~> 1.2'
30
+ spec.add_dependency 'google-api-client', '~> 0.8'
31
+ spec.add_dependency 'cheddar', '~> 1.0'
32
+ spec.add_dependency 'roo', '~> 2.4'
33
+
22
34
  spec.add_development_dependency "bundler", "~> 1.8"
23
35
  spec.add_development_dependency "rake", "~> 10.0"
24
36
  end
@@ -1,3 +1,3 @@
1
1
  module AdopsReportScrapper
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adops_report_scrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stayman Hou
@@ -10,6 +10,160 @@ bindir: exe
10
10
  cert_chain: []
11
11
  date: 2016-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: httpclient
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.8'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.8'
27
+ - !ruby/object:Gem::Dependency
28
+ name: kaminari
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.17'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.17'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rest-client
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: capybara
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2.7'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2.7'
69
+ - !ruby/object:Gem::Dependency
70
+ name: poltergeist
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.10'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.10'
83
+ - !ruby/object:Gem::Dependency
84
+ name: phantomjs
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '2.1'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '2.1'
97
+ - !ruby/object:Gem::Dependency
98
+ name: http-cookie
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '1.0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '1.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rubyzip
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '1.2'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '1.2'
125
+ - !ruby/object:Gem::Dependency
126
+ name: google-api-client
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '0.8'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '0.8'
139
+ - !ruby/object:Gem::Dependency
140
+ name: cheddar
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '1.0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '1.0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: roo
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '2.4'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '2.4'
13
167
  - !ruby/object:Gem::Dependency
14
168
  name: bundler
15
169
  requirement: !ruby/object:Gem::Requirement