pokeplot 0.2.0beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +4 -0
- data/LICENSE.txt +621 -0
- data/README.md +99 -0
- data/Rakefile +9 -0
- data/bin/pokeplot +223 -0
- data/lib/pokeplot/api.rb +109 -0
- data/lib/pokeplot/database.rb +22 -0
- data/lib/pokeplot/helpers/array.rb +5 -0
- data/lib/pokeplot/helpers/cell_ids.rb +14 -0
- data/lib/pokeplot/helpers/math.rb +20 -0
- data/lib/pokeplot/helpers/time.rb +15 -0
- data/lib/pokeplot/miner.rb +241 -0
- data/lib/pokeplot/pushbullet.rb +41 -0
- data/lib/pokeplot/socket.rb +65 -0
- data/lib/pokeplot/version.rb +3 -0
- data/lib/pokeplot/web/canvasjs.min.js +555 -0
- data/lib/pokeplot/web/index.html +158 -0
- data/lib/pokeplot/web.rb +26 -0
- data/lib/pokeplot.rb +7 -0
- data/spec/api_spec.rb +148 -0
- data/spec/database_spec.rb +33 -0
- data/spec/miner_spec.rb +110 -0
- data/spec/pushbullet_spec.rb +31 -0
- data/spec/socket_spec.rb +45 -0
- data/spec/spec_helper.rb +115 -0
- data/spec/web_spec.rb +18 -0
- metadata +240 -0
data/spec/web_spec.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'pokeplot/web'
|
2
|
+
|
3
|
+
describe Pokeplot::Web do
|
4
|
+
|
5
|
+
describe ".config" do
|
6
|
+
it "should set the database, bind, and port" do
|
7
|
+
expect(Pokeplot::Database).to receive(:mongo)
|
8
|
+
expect(Sinatra::Base).to receive(:set).twice
|
9
|
+
described_class.config
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
it "should be OK" do
|
14
|
+
get '/'
|
15
|
+
expect(last_response).to be_ok
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
metadata
ADDED
@@ -0,0 +1,240 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: pokeplot
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0beta
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Sawyer Charles
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-08-12 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: sinatra-contrib
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.4'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.4'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: puma
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.6'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.6'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: mongo
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.2'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.2'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: poke-go-api
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.1'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.1'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: em-websocket
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.5'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.5'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: washbullet
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.4'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.4'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: bundler
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '1.12'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '1.12'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rake
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '10.0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '10.0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rspec
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '3.5'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '3.5'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: simplecov
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0.12'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0.12'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: rack-test
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0.6'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0.6'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: codeclimate-test-reporter
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
description: pokeplot is a tool to collect collect pokemon go spawning data and store
|
182
|
+
it in mongodb
|
183
|
+
email:
|
184
|
+
- xssc@users.noreply.github.com
|
185
|
+
executables:
|
186
|
+
- pokeplot
|
187
|
+
extensions: []
|
188
|
+
extra_rdoc_files: []
|
189
|
+
files:
|
190
|
+
- ".rspec"
|
191
|
+
- LICENSE.txt
|
192
|
+
- README.md
|
193
|
+
- Rakefile
|
194
|
+
- bin/pokeplot
|
195
|
+
- lib/pokeplot.rb
|
196
|
+
- lib/pokeplot/api.rb
|
197
|
+
- lib/pokeplot/database.rb
|
198
|
+
- lib/pokeplot/helpers/array.rb
|
199
|
+
- lib/pokeplot/helpers/cell_ids.rb
|
200
|
+
- lib/pokeplot/helpers/math.rb
|
201
|
+
- lib/pokeplot/helpers/time.rb
|
202
|
+
- lib/pokeplot/miner.rb
|
203
|
+
- lib/pokeplot/pushbullet.rb
|
204
|
+
- lib/pokeplot/socket.rb
|
205
|
+
- lib/pokeplot/version.rb
|
206
|
+
- lib/pokeplot/web.rb
|
207
|
+
- lib/pokeplot/web/canvasjs.min.js
|
208
|
+
- lib/pokeplot/web/index.html
|
209
|
+
- spec/api_spec.rb
|
210
|
+
- spec/database_spec.rb
|
211
|
+
- spec/miner_spec.rb
|
212
|
+
- spec/pushbullet_spec.rb
|
213
|
+
- spec/socket_spec.rb
|
214
|
+
- spec/spec_helper.rb
|
215
|
+
- spec/web_spec.rb
|
216
|
+
homepage: https://github.com/xssc/pokeplot
|
217
|
+
licenses:
|
218
|
+
- GPL-3.0
|
219
|
+
metadata: {}
|
220
|
+
post_install_message:
|
221
|
+
rdoc_options: []
|
222
|
+
require_paths:
|
223
|
+
- lib
|
224
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
225
|
+
requirements:
|
226
|
+
- - ">="
|
227
|
+
- !ruby/object:Gem::Version
|
228
|
+
version: 2.3.1
|
229
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
230
|
+
requirements:
|
231
|
+
- - ">"
|
232
|
+
- !ruby/object:Gem::Version
|
233
|
+
version: 1.3.1
|
234
|
+
requirements: []
|
235
|
+
rubyforge_project:
|
236
|
+
rubygems_version: 2.5.1
|
237
|
+
signing_key:
|
238
|
+
specification_version: 4
|
239
|
+
summary: pokeplot
|
240
|
+
test_files: []
|