da_face 0.0.1

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.
Files changed (86) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +20 -0
  3. data/.ruby-gemset +1 -0
  4. data/.ruby-version +1 -0
  5. data/Gemfile +6 -0
  6. data/Gemfile.lock +51 -0
  7. data/LICENSE.txt +22 -0
  8. data/README.md +114 -0
  9. data/Rakefile +2 -0
  10. data/da_face.gemspec +27 -0
  11. data/lib/da_face/api/adapter.rb +42 -0
  12. data/lib/da_face/api/adapters/base.rb +59 -0
  13. data/lib/da_face/api/adapters/em_http_request_adapter.rb +8 -0
  14. data/lib/da_face/api/adapters/excon_adapter.rb +33 -0
  15. data/lib/da_face/api/core.rb +0 -0
  16. data/lib/da_face/api/push.rb +77 -0
  17. data/lib/da_face/api/push_log.rb +11 -0
  18. data/lib/da_face/api/push_log_entry.rb +15 -0
  19. data/lib/da_face/api/push_subscription.rb +141 -0
  20. data/lib/da_face/configuration.rb +11 -0
  21. data/lib/da_face/datasift/da_object.rb +35 -0
  22. data/lib/da_face/datasift/demographic.rb +12 -0
  23. data/lib/da_face/datasift/errors.rb +9 -0
  24. data/lib/da_face/datasift/interaction.rb +33 -0
  25. data/lib/da_face/datasift/language.rb +14 -0
  26. data/lib/da_face/datasift/link.rb +34 -0
  27. data/lib/da_face/datasift/links.rb +38 -0
  28. data/lib/da_face/datasift/parser.rb +35 -0
  29. data/lib/da_face/datasift/salience.rb +16 -0
  30. data/lib/da_face/datasift/twitter.rb +46 -0
  31. data/lib/da_face/datasift/twitter_delete_notification.rb +16 -0
  32. data/lib/da_face/datasift/twitter_user_status.rb +37 -0
  33. data/lib/da_face/errors.rb +7 -0
  34. data/lib/da_face/twitter/parser.rb +16 -0
  35. data/lib/da_face/twitter/tweet.rb +49 -0
  36. data/lib/da_face/twitter/user.rb +55 -0
  37. data/lib/da_face/utilities.rb +41 -0
  38. data/lib/da_face/version.rb +3 -0
  39. data/lib/da_face.rb +69 -0
  40. data/spec/da_face/api/adapter_spec.rb +58 -0
  41. data/spec/da_face/api/adapters/base_spec.rb +125 -0
  42. data/spec/da_face/api/push_log_spec.rb +34 -0
  43. data/spec/da_face/api/push_spec.rb +108 -0
  44. data/spec/da_face/api/push_subscription_spec.rb +220 -0
  45. data/spec/da_face/configuration_spec.rb +15 -0
  46. data/spec/da_face/datasift/da_object_spec.rb +191 -0
  47. data/spec/da_face/datasift/demographic_spec.rb +30 -0
  48. data/spec/da_face/datasift/interaction_spec.rb +93 -0
  49. data/spec/da_face/datasift/language_spec.rb +45 -0
  50. data/spec/da_face/datasift/link_spec.rb +80 -0
  51. data/spec/da_face/datasift/links_spec.rb +70 -0
  52. data/spec/da_face/datasift/parser_spec.rb +5 -0
  53. data/spec/da_face/datasift/salience_spec.rb +33 -0
  54. data/spec/da_face/datasift/twitter_delete_notification_spec.rb +45 -0
  55. data/spec/da_face/datasift/twitter_spec.rb +56 -0
  56. data/spec/da_face/datasift/twitter_user_status_spec.rb +36 -0
  57. data/spec/da_face/twitter/parser_spec.rb +16 -0
  58. data/spec/da_face/twitter/tweet_spec.rb +77 -0
  59. data/spec/da_face/twitter/user_spec.rb +116 -0
  60. data/spec/da_face/utilities_spec.rb +74 -0
  61. data/spec/da_face_spec.rb +120 -0
  62. data/spec/fixtures/api_responses/get_subscriptions.json +26 -0
  63. data/spec/fixtures/api_responses/log.json +126 -0
  64. data/spec/fixtures/api_responses/validate_success.json +4 -0
  65. data/spec/fixtures/demographic/simple.json +5 -0
  66. data/spec/fixtures/interaction/simple.json +28 -0
  67. data/spec/fixtures/interactions/collection.json +1 -0
  68. data/spec/fixtures/interactions/simple.json +102 -0
  69. data/spec/fixtures/language/simple.json +5 -0
  70. data/spec/fixtures/links/multiples.json +69 -0
  71. data/spec/fixtures/links/simple.json +65 -0
  72. data/spec/fixtures/links/simple_failing.json +65 -0
  73. data/spec/fixtures/notifications/delete.json +10 -0
  74. data/spec/fixtures/notifications/user_delete.json +16 -0
  75. data/spec/fixtures/notifications/user_protect.json +16 -0
  76. data/spec/fixtures/notifications/user_suspend.json +16 -0
  77. data/spec/fixtures/notifications/user_undelete.json +16 -0
  78. data/spec/fixtures/notifications/user_unprotect.json +16 -0
  79. data/spec/fixtures/notifications/user_unsuspend.json +16 -0
  80. data/spec/fixtures/salience/simple.json +5 -0
  81. data/spec/fixtures/twitter/retweet.json +70 -0
  82. data/spec/fixtures/twitter/simple.json +33 -0
  83. data/spec/integration/stress_spec.rb +16 -0
  84. data/spec/spec_helper.rb +23 -0
  85. data/spec/test_spec.rb +7 -0
  86. metadata +259 -0
metadata ADDED
@@ -0,0 +1,259 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: da_face
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Rayko
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-10-10 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.6'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.6'
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: pry
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: json
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
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: excon
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description: Interface to interact with Datasift API and get pretty data from them.
98
+ email:
99
+ - rayko.drg@gmail.com
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - ".gitignore"
105
+ - ".ruby-gemset"
106
+ - ".ruby-version"
107
+ - Gemfile
108
+ - Gemfile.lock
109
+ - LICENSE.txt
110
+ - README.md
111
+ - Rakefile
112
+ - da_face.gemspec
113
+ - lib/da_face.rb
114
+ - lib/da_face/api/adapter.rb
115
+ - lib/da_face/api/adapters/base.rb
116
+ - lib/da_face/api/adapters/em_http_request_adapter.rb
117
+ - lib/da_face/api/adapters/excon_adapter.rb
118
+ - lib/da_face/api/core.rb
119
+ - lib/da_face/api/push.rb
120
+ - lib/da_face/api/push_log.rb
121
+ - lib/da_face/api/push_log_entry.rb
122
+ - lib/da_face/api/push_subscription.rb
123
+ - lib/da_face/configuration.rb
124
+ - lib/da_face/datasift/da_object.rb
125
+ - lib/da_face/datasift/demographic.rb
126
+ - lib/da_face/datasift/errors.rb
127
+ - lib/da_face/datasift/interaction.rb
128
+ - lib/da_face/datasift/language.rb
129
+ - lib/da_face/datasift/link.rb
130
+ - lib/da_face/datasift/links.rb
131
+ - lib/da_face/datasift/parser.rb
132
+ - lib/da_face/datasift/salience.rb
133
+ - lib/da_face/datasift/twitter.rb
134
+ - lib/da_face/datasift/twitter_delete_notification.rb
135
+ - lib/da_face/datasift/twitter_user_status.rb
136
+ - lib/da_face/errors.rb
137
+ - lib/da_face/twitter/parser.rb
138
+ - lib/da_face/twitter/tweet.rb
139
+ - lib/da_face/twitter/user.rb
140
+ - lib/da_face/utilities.rb
141
+ - lib/da_face/version.rb
142
+ - spec/da_face/api/adapter_spec.rb
143
+ - spec/da_face/api/adapters/base_spec.rb
144
+ - spec/da_face/api/push_log_spec.rb
145
+ - spec/da_face/api/push_spec.rb
146
+ - spec/da_face/api/push_subscription_spec.rb
147
+ - spec/da_face/configuration_spec.rb
148
+ - spec/da_face/datasift/da_object_spec.rb
149
+ - spec/da_face/datasift/demographic_spec.rb
150
+ - spec/da_face/datasift/interaction_spec.rb
151
+ - spec/da_face/datasift/language_spec.rb
152
+ - spec/da_face/datasift/link_spec.rb
153
+ - spec/da_face/datasift/links_spec.rb
154
+ - spec/da_face/datasift/parser_spec.rb
155
+ - spec/da_face/datasift/salience_spec.rb
156
+ - spec/da_face/datasift/twitter_delete_notification_spec.rb
157
+ - spec/da_face/datasift/twitter_spec.rb
158
+ - spec/da_face/datasift/twitter_user_status_spec.rb
159
+ - spec/da_face/twitter/parser_spec.rb
160
+ - spec/da_face/twitter/tweet_spec.rb
161
+ - spec/da_face/twitter/user_spec.rb
162
+ - spec/da_face/utilities_spec.rb
163
+ - spec/da_face_spec.rb
164
+ - spec/fixtures/api_responses/get_subscriptions.json
165
+ - spec/fixtures/api_responses/log.json
166
+ - spec/fixtures/api_responses/validate_success.json
167
+ - spec/fixtures/demographic/simple.json
168
+ - spec/fixtures/interaction/simple.json
169
+ - spec/fixtures/interactions/collection.json
170
+ - spec/fixtures/interactions/simple.json
171
+ - spec/fixtures/language/simple.json
172
+ - spec/fixtures/links/multiples.json
173
+ - spec/fixtures/links/simple.json
174
+ - spec/fixtures/links/simple_failing.json
175
+ - spec/fixtures/notifications/delete.json
176
+ - spec/fixtures/notifications/user_delete.json
177
+ - spec/fixtures/notifications/user_protect.json
178
+ - spec/fixtures/notifications/user_suspend.json
179
+ - spec/fixtures/notifications/user_undelete.json
180
+ - spec/fixtures/notifications/user_unprotect.json
181
+ - spec/fixtures/notifications/user_unsuspend.json
182
+ - spec/fixtures/salience/simple.json
183
+ - spec/fixtures/twitter/retweet.json
184
+ - spec/fixtures/twitter/simple.json
185
+ - spec/integration/stress_spec.rb
186
+ - spec/spec_helper.rb
187
+ - spec/test_spec.rb
188
+ homepage: https://github.com/rayko/da_face
189
+ licenses:
190
+ - MIT
191
+ metadata: {}
192
+ post_install_message:
193
+ rdoc_options: []
194
+ require_paths:
195
+ - lib
196
+ - api
197
+ required_ruby_version: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ required_rubygems_version: !ruby/object:Gem::Requirement
203
+ requirements:
204
+ - - ">="
205
+ - !ruby/object:Gem::Version
206
+ version: '0'
207
+ requirements: []
208
+ rubyforge_project:
209
+ rubygems_version: 2.2.1
210
+ signing_key:
211
+ specification_version: 4
212
+ summary: DataSift Interface.
213
+ test_files:
214
+ - spec/da_face/api/adapter_spec.rb
215
+ - spec/da_face/api/adapters/base_spec.rb
216
+ - spec/da_face/api/push_log_spec.rb
217
+ - spec/da_face/api/push_spec.rb
218
+ - spec/da_face/api/push_subscription_spec.rb
219
+ - spec/da_face/configuration_spec.rb
220
+ - spec/da_face/datasift/da_object_spec.rb
221
+ - spec/da_face/datasift/demographic_spec.rb
222
+ - spec/da_face/datasift/interaction_spec.rb
223
+ - spec/da_face/datasift/language_spec.rb
224
+ - spec/da_face/datasift/link_spec.rb
225
+ - spec/da_face/datasift/links_spec.rb
226
+ - spec/da_face/datasift/parser_spec.rb
227
+ - spec/da_face/datasift/salience_spec.rb
228
+ - spec/da_face/datasift/twitter_delete_notification_spec.rb
229
+ - spec/da_face/datasift/twitter_spec.rb
230
+ - spec/da_face/datasift/twitter_user_status_spec.rb
231
+ - spec/da_face/twitter/parser_spec.rb
232
+ - spec/da_face/twitter/tweet_spec.rb
233
+ - spec/da_face/twitter/user_spec.rb
234
+ - spec/da_face/utilities_spec.rb
235
+ - spec/da_face_spec.rb
236
+ - spec/fixtures/api_responses/get_subscriptions.json
237
+ - spec/fixtures/api_responses/log.json
238
+ - spec/fixtures/api_responses/validate_success.json
239
+ - spec/fixtures/demographic/simple.json
240
+ - spec/fixtures/interaction/simple.json
241
+ - spec/fixtures/interactions/collection.json
242
+ - spec/fixtures/interactions/simple.json
243
+ - spec/fixtures/language/simple.json
244
+ - spec/fixtures/links/multiples.json
245
+ - spec/fixtures/links/simple.json
246
+ - spec/fixtures/links/simple_failing.json
247
+ - spec/fixtures/notifications/delete.json
248
+ - spec/fixtures/notifications/user_delete.json
249
+ - spec/fixtures/notifications/user_protect.json
250
+ - spec/fixtures/notifications/user_suspend.json
251
+ - spec/fixtures/notifications/user_undelete.json
252
+ - spec/fixtures/notifications/user_unprotect.json
253
+ - spec/fixtures/notifications/user_unsuspend.json
254
+ - spec/fixtures/salience/simple.json
255
+ - spec/fixtures/twitter/retweet.json
256
+ - spec/fixtures/twitter/simple.json
257
+ - spec/integration/stress_spec.rb
258
+ - spec/spec_helper.rb
259
+ - spec/test_spec.rb