ayadn 1.8.2 → 2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +4 -0
  3. data/CHANGELOG.md +73 -52
  4. data/README.md +17 -3
  5. data/ayadn.gemspec +3 -4
  6. data/doc/01-index.md +6 -5
  7. data/doc/02-install.md +23 -1
  8. data/doc/03-first-steps.md +22 -28
  9. data/doc/04-options.md +1 -1
  10. data/doc/05-streams.md +29 -9
  11. data/doc/06-post.md +13 -5
  12. data/doc/07-actions.md +63 -1
  13. data/doc/08-listings.md +112 -4
  14. data/doc/09-accounts.md +17 -3
  15. data/doc/10-nicerank.md +5 -5
  16. data/doc/11-blacklist.md +8 -14
  17. data/doc/12-alias.md +1 -13
  18. data/doc/14-set.md +8 -110
  19. data/doc/15-nowplaying.md +16 -4
  20. data/doc/18-contact.md +14 -13
  21. data/doc/19-examples.md +2 -0
  22. data/lib/ayadn/action.rb +322 -183
  23. data/lib/ayadn/alias.rb +17 -45
  24. data/lib/ayadn/annotations.rb +1 -1
  25. data/lib/ayadn/api.rb +7 -8
  26. data/lib/ayadn/app.rb +99 -12
  27. data/lib/ayadn/authorize.rb +92 -57
  28. data/lib/ayadn/blacklist.rb +52 -62
  29. data/lib/ayadn/check.rb +81 -74
  30. data/lib/ayadn/cnx.rb +77 -26
  31. data/lib/ayadn/databases.rb +890 -105
  32. data/lib/ayadn/debug.rb +30 -89
  33. data/lib/ayadn/descriptions.rb +876 -329
  34. data/lib/ayadn/endpoints.rb +2 -2
  35. data/lib/ayadn/errors.rb +9 -9
  36. data/lib/ayadn/extend.rb +8 -1
  37. data/lib/ayadn/fileops.rb +10 -8
  38. data/lib/ayadn/mark.rb +79 -56
  39. data/lib/ayadn/migration.rb +427 -0
  40. data/lib/ayadn/nicerank.rb +74 -72
  41. data/lib/ayadn/nowplaying.rb +123 -60
  42. data/lib/ayadn/nowwatching.rb +26 -10
  43. data/lib/ayadn/pinboard.rb +12 -7
  44. data/lib/ayadn/post.rb +40 -37
  45. data/lib/ayadn/profile.rb +5 -2
  46. data/lib/ayadn/scroll.rb +20 -5
  47. data/lib/ayadn/search.rb +30 -22
  48. data/lib/ayadn/set.rb +146 -50
  49. data/lib/ayadn/settings.rb +66 -67
  50. data/lib/ayadn/status.rb +459 -234
  51. data/lib/ayadn/stream.rb +80 -46
  52. data/lib/ayadn/switch.rb +51 -47
  53. data/lib/ayadn/tvshow.rb +47 -15
  54. data/lib/ayadn/version.rb +1 -1
  55. data/lib/ayadn/view.rb +119 -60
  56. data/lib/ayadn/workers.rb +144 -92
  57. data/lib/ayadn.rb +7 -8
  58. data/spec/mock/ayadn/accounts.sqlite +0 -0
  59. data/spec/mock/ayadn.sqlite +0 -0
  60. data/spec/unit/annotations_spec.rb +12 -13
  61. data/spec/unit/api_spec.rb +3 -4
  62. data/spec/unit/blacklistworkers_spec.rb +18 -23
  63. data/spec/unit/databases_spec.rb +51 -36
  64. data/spec/unit/endpoints_spec.rb +5 -2
  65. data/spec/unit/extend_spec.rb +24 -0
  66. data/spec/unit/nicerank_spec.rb +13 -13
  67. data/spec/unit/post_spec.rb +47 -36
  68. data/spec/unit/set_spec.rb +67 -96
  69. data/spec/unit/view_spec.rb +12 -6
  70. data/spec/unit/workers_spec.rb +38 -12
  71. data/tags +1285 -0
  72. metadata +29 -39
  73. data/spec/mock/aliases.db +0 -0
  74. data/spec/mock/blacklist.db +0 -0
  75. data/spec/mock/bookmarks.db +0 -0
  76. data/spec/mock/channels.db +0 -0
  77. data/spec/mock/index.db +0 -0
  78. data/spec/mock/nicerank.db +0 -0
  79. data/spec/mock/pagination.db +0 -0
  80. data/spec/mock/users.db +0 -0
  81. data/spec/unit/status_spec.rb +0 -9
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ayadn
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.2
4
+ version: '2.0'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Dejonckheere
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-31 00:00:00.000000000 Z
11
+ date: 2014-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -137,75 +137,75 @@ dependencies:
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0.7'
139
139
  - !ruby/object:Gem::Dependency
140
- name: bundler
140
+ name: amalgalite
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: '1.6'
146
- type: :development
145
+ version: '1.3'
146
+ type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: '1.6'
152
+ version: '1.3'
153
153
  - !ruby/object:Gem::Dependency
154
- name: rake
154
+ name: fast_cache
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: '10.3'
160
- type: :development
159
+ version: '1.0'
160
+ type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: '10.3'
166
+ version: '1.0'
167
167
  - !ruby/object:Gem::Dependency
168
- name: rspec
168
+ name: bundler
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: '3.1'
173
+ version: '1.6'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: '3.1'
180
+ version: '1.6'
181
181
  - !ruby/object:Gem::Dependency
182
- name: rb-fsevent
182
+ name: rake
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: '0.9'
187
+ version: '10.3'
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: '0.9'
194
+ version: '10.3'
195
195
  - !ruby/object:Gem::Dependency
196
- name: guard-rspec
196
+ name: rspec
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
199
  - - "~>"
200
200
  - !ruby/object:Gem::Version
201
- version: '4.3'
201
+ version: '3.1'
202
202
  type: :development
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - "~>"
207
207
  - !ruby/object:Gem::Version
208
- version: '4.3'
208
+ version: '3.1'
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: coveralls
211
211
  requirement: !ruby/object:Gem::Requirement
@@ -280,6 +280,7 @@ files:
280
280
  - lib/ayadn/fileops.rb
281
281
  - lib/ayadn/logs.rb
282
282
  - lib/ayadn/mark.rb
283
+ - lib/ayadn/migration.rb
283
284
  - lib/ayadn/nicerank.rb
284
285
  - lib/ayadn/nowplaying.rb
285
286
  - lib/ayadn/nowwatching.rb
@@ -300,24 +301,18 @@ files:
300
301
  - spec/helpers.rb
301
302
  - spec/mock/@ericd.json
302
303
  - spec/mock/@m.json
303
- - spec/mock/aliases.db
304
- - spec/mock/blacklist.db
305
- - spec/mock/bookmarks.db
306
- - spec/mock/channels.db
304
+ - spec/mock/ayadn.sqlite
305
+ - spec/mock/ayadn/accounts.sqlite
307
306
  - spec/mock/channels.json
308
307
  - spec/mock/checkins.json
309
308
  - spec/mock/files.json
310
309
  - spec/mock/fwr_@ayadn.json
311
- - spec/mock/index.db
312
310
  - spec/mock/int.json
313
- - spec/mock/nicerank.db
314
311
  - spec/mock/nicerank.json
315
312
  - spec/mock/nicerank.log
316
- - spec/mock/pagination.db
317
313
  - spec/mock/posted.json
318
314
  - spec/mock/regex.json
319
315
  - spec/mock/stream.json
320
- - spec/mock/users.db
321
316
  - spec/spec_helper.rb
322
317
  - spec/unit/annotations_spec.rb
323
318
  - spec/unit/api_spec.rb
@@ -325,17 +320,18 @@ files:
325
320
  - spec/unit/databases_spec.rb
326
321
  - spec/unit/descriptions_spec.rb
327
322
  - spec/unit/endpoints_spec.rb
323
+ - spec/unit/extend_spec.rb
328
324
  - spec/unit/nicerank_spec.rb
329
325
  - spec/unit/post_spec.rb
330
326
  - spec/unit/set_spec.rb
331
- - spec/unit/status_spec.rb
332
327
  - spec/unit/view_spec.rb
333
328
  - spec/unit/workers_spec.rb
329
+ - tags
334
330
  homepage: http://ayadn-app.net
335
331
  licenses:
336
332
  - MIT
337
333
  metadata:
338
- documentation: http://ayadn-app.net/doc/
334
+ documentation: https://github.com/ericdke/na/tree/master/doc
339
335
  post_install_message: Thank you for installing Ayadn!
340
336
  rdoc_options: []
341
337
  require_paths:
@@ -352,7 +348,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
352
348
  version: '0'
353
349
  requirements: []
354
350
  rubyforge_project:
355
- rubygems_version: 2.4.1
351
+ rubygems_version: 2.2.2
356
352
  signing_key:
357
353
  specification_version: 4
358
354
  summary: App.net command-line client.
@@ -360,24 +356,18 @@ test_files:
360
356
  - spec/helpers.rb
361
357
  - spec/mock/@ericd.json
362
358
  - spec/mock/@m.json
363
- - spec/mock/aliases.db
364
- - spec/mock/blacklist.db
365
- - spec/mock/bookmarks.db
366
- - spec/mock/channels.db
359
+ - spec/mock/ayadn.sqlite
360
+ - spec/mock/ayadn/accounts.sqlite
367
361
  - spec/mock/channels.json
368
362
  - spec/mock/checkins.json
369
363
  - spec/mock/files.json
370
364
  - spec/mock/fwr_@ayadn.json
371
- - spec/mock/index.db
372
365
  - spec/mock/int.json
373
- - spec/mock/nicerank.db
374
366
  - spec/mock/nicerank.json
375
367
  - spec/mock/nicerank.log
376
- - spec/mock/pagination.db
377
368
  - spec/mock/posted.json
378
369
  - spec/mock/regex.json
379
370
  - spec/mock/stream.json
380
- - spec/mock/users.db
381
371
  - spec/spec_helper.rb
382
372
  - spec/unit/annotations_spec.rb
383
373
  - spec/unit/api_spec.rb
@@ -385,9 +375,9 @@ test_files:
385
375
  - spec/unit/databases_spec.rb
386
376
  - spec/unit/descriptions_spec.rb
387
377
  - spec/unit/endpoints_spec.rb
378
+ - spec/unit/extend_spec.rb
388
379
  - spec/unit/nicerank_spec.rb
389
380
  - spec/unit/post_spec.rb
390
381
  - spec/unit/set_spec.rb
391
- - spec/unit/status_spec.rb
392
382
  - spec/unit/view_spec.rb
393
383
  - spec/unit/workers_spec.rb
data/spec/mock/aliases.db DELETED
Binary file
Binary file
Binary file
Binary file
data/spec/mock/index.db DELETED
Binary file
Binary file
Binary file
data/spec/mock/users.db DELETED
Binary file
@@ -1,9 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Ayadn::Status do
4
- describe ".done" do
5
- it 'returns a green Done string' do
6
- expect(Ayadn::Status.done).to eq("\e[32m\nDone.\n\e[0m")
7
- end
8
- end
9
- end