mingle 0.3.1 → 0.4.0
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.
- checksums.yaml +4 -4
- data/app/models/mingle/facebook.rb +13 -1
- data/app/models/mingle/facebook/post.rb +1 -34
- data/app/models/mingle/instagram.rb +12 -0
- data/app/models/mingle/instagram/photo.rb +1 -26
- data/app/models/mingle/twitter.rb +15 -2
- data/app/models/mingle/twitter/tweet.rb +1 -24
- data/db/migrate/20140403083806_add_url_to_mingle_twitter_tweets.rb +5 -0
- data/lib/generators/mingle/install/USAGE +9 -0
- data/lib/generators/mingle/install/install_generator.rb +7 -0
- data/lib/generators/mingle/install/templates/mingle_config.rb +8 -0
- data/lib/mingle.rb +16 -0
- data/lib/mingle/concerns.rb +3 -0
- data/lib/mingle/concerns/models.rb +5 -0
- data/lib/mingle/concerns/models/facebook.rb +3 -0
- data/lib/mingle/concerns/models/facebook/post.rb +40 -0
- data/lib/mingle/concerns/models/instagram.rb +3 -0
- data/lib/mingle/concerns/models/instagram/photo.rb +20 -0
- data/lib/mingle/concerns/models/twitter.rb +3 -0
- data/lib/mingle/concerns/models/twitter/tweet.rb +26 -0
- data/lib/mingle/configuration.rb +28 -5
- data/lib/mingle/engine.rb +4 -0
- data/lib/mingle/version.rb +1 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +6458 -0
- data/spec/lib/mingle/configuration_spec.rb +28 -5
- data/spec/lib/mingle_spec.rb +15 -0
- data/spec/models/mingle/facebook_spec.rb +12 -0
- data/spec/models/mingle/instagram_spec.rb +15 -6
- data/spec/models/mingle/twitter/tweet_spec.rb +8 -0
- data/spec/models/mingle/twitter_spec.rb +20 -2
- metadata +66 -54
- data/MIT-LICENSE +0 -20
- data/app/assets/javascripts/mingle/application.js +0 -13
- data/app/assets/stylesheets/mingle/application.css +0 -15
- data/app/controllers/mingle/application_controller.rb +0 -4
- data/app/helpers/mingle/application_helper.rb +0 -4
- data/app/views/layouts/mingle/application.html.erb +0 -14
@@ -1,16 +1,31 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe Mingle::Configuration do
|
4
|
-
|
4
|
+
around do |example|
|
5
|
+
Mingle.temporarily &example
|
6
|
+
end
|
7
|
+
|
8
|
+
after :all do
|
9
|
+
ENVIRONMENT_ENABLED_CONFIGURATIONS.each { |key, value| ENV[key.to_s.upcase] = nil }
|
10
|
+
end
|
11
|
+
|
12
|
+
ENVIRONMENT_ENABLED_CONFIGURATIONS = {
|
5
13
|
facebook_access_token: 'FACEBOOK_ACCESS_TOKEN',
|
6
14
|
twitter_api_key: 'TWITTER_API_KEY',
|
7
15
|
twitter_api_secret: 'TWITTER_API_SECRET',
|
8
16
|
twitter_access_token: 'TWITTER_ACCESS_TOKEN',
|
9
17
|
twitter_access_token_secret: 'TWITTER_ACCESS_TOKEN_SECRET',
|
10
|
-
instagram_client_id: 'INSTAGRAM_CLIENT_ID'
|
11
|
-
}
|
12
|
-
|
18
|
+
instagram_client_id: 'INSTAGRAM_CLIENT_ID',
|
19
|
+
}
|
20
|
+
|
21
|
+
NON_ENVIRONMENT_ENABLED_CONFIGURATIONS = {
|
22
|
+
since: 2.days.ago,
|
23
|
+
twitter_ignore_retweets: true
|
24
|
+
}
|
25
|
+
|
26
|
+
CONFIGURATIONS = ENVIRONMENT_ENABLED_CONFIGURATIONS.merge NON_ENVIRONMENT_ENABLED_CONFIGURATIONS
|
13
27
|
|
28
|
+
CONFIGURATIONS.each do |key, value|
|
14
29
|
it "responds to #{key}=" do
|
15
30
|
expect(subject).to respond_to "#{key}=".to_sym
|
16
31
|
end
|
@@ -21,10 +36,12 @@ describe Mingle::Configuration do
|
|
21
36
|
|
22
37
|
describe '##{key}' do
|
23
38
|
context 'when it is not configured through Mingle.configure' do
|
39
|
+
before { ENV[key.to_s.upcase] = 'some-environment-secret' }
|
40
|
+
|
24
41
|
it "fetches the configuration from the #{value} environment variable" do
|
25
42
|
expect(subject.send(key)).to eq 'some-environment-secret'
|
26
43
|
end
|
27
|
-
end
|
44
|
+
end unless key.in? NON_ENVIRONMENT_ENABLED_CONFIGURATIONS
|
28
45
|
|
29
46
|
context 'when it has been configured through Mingle' do
|
30
47
|
before do
|
@@ -37,4 +54,10 @@ describe Mingle::Configuration do
|
|
37
54
|
end
|
38
55
|
end
|
39
56
|
end
|
57
|
+
|
58
|
+
describe "twitter_ignore_retweets" do
|
59
|
+
it "defaults to `false`" do
|
60
|
+
expect(subject.twitter_ignore_retweets).not_to be # it's not
|
61
|
+
end
|
62
|
+
end
|
40
63
|
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Mingle do
|
4
|
+
describe '.temporarily' do
|
5
|
+
it 'sets temporary configuration options' do
|
6
|
+
expect(Mingle.config.facebook_access_token).to be_nil
|
7
|
+
|
8
|
+
Mingle.temporarily facebook_access_token: 'new access token' do
|
9
|
+
expect(Mingle.config.facebook_access_token).to eq 'new access token'
|
10
|
+
end
|
11
|
+
|
12
|
+
expect(Mingle.config.facebook_access_token).to be_nil
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -27,6 +27,18 @@ describe Mingle::Facebook do
|
|
27
27
|
Mingle::Facebook.fetch klhd_hashtag
|
28
28
|
end
|
29
29
|
|
30
|
+
it 'can fetch posts since the configured time' do
|
31
|
+
offset = 2.days.ago
|
32
|
+
|
33
|
+
Mingle.temporarily since: offset do
|
34
|
+
Mingle::Facebook.should_receive(:posts_through_search).once
|
35
|
+
.with(klhd_hashtag, offset)
|
36
|
+
.and_call_original
|
37
|
+
|
38
|
+
Mingle::Facebook.fetch klhd_hashtag
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
30
42
|
it 'accepts multiple hashtags' do
|
31
43
|
Mingle::Facebook.should_receive(:posts_through_search).once
|
32
44
|
.with(klhd_hashtag, nil)
|
@@ -23,25 +23,25 @@ describe Mingle::Instagram do
|
|
23
23
|
photo = photos.first
|
24
24
|
|
25
25
|
expect(photo.created_at).to eq Time.at(1369985275)
|
26
|
-
expect(photo.link).to eq '
|
26
|
+
expect(photo.link).to eq 'http://instagram.com/p/Z97x-zEBXL/'
|
27
27
|
expect(photo.photo_id).to eq '467792855743600075_272366028'
|
28
28
|
expect(photo.message).to eq 'foo'
|
29
|
-
expect(photo.url).to eq '
|
29
|
+
expect(photo.url).to eq 'http://distilleryimage7.s3.amazonaws.com/9c90802cc9c311e2868a22000a9f18a6_7.jpg'
|
30
30
|
expect(photo.user_handle).to eq 'eivindhilling'
|
31
31
|
expect(photo.user_id).to eq '272366028'
|
32
|
-
expect(photo.user_image_url).to eq '
|
32
|
+
expect(photo.user_image_url).to eq 'http://images.ak.instagram.com/profiles/profile_272366028_75sq_1365676035.jpg'
|
33
33
|
expect(photo.user_name).to eq 'Eivind Hilling'
|
34
34
|
|
35
35
|
photo = photos.last
|
36
36
|
|
37
37
|
expect(photo.created_at).to eq Time.at(1366202692)
|
38
|
-
expect(photo.link).to eq '
|
38
|
+
expect(photo.link).to eq 'http://instagram.com/p/YNNE4ckBfI/'
|
39
39
|
expect(photo.photo_id).to eq '436062249016104904_272366028'
|
40
40
|
expect(photo.message).to eq nil
|
41
|
-
expect(photo.url).to eq '
|
41
|
+
expect(photo.url).to eq 'http://distilleryimage4.s3.amazonaws.com/995b39c6a75c11e2918122000a9f4d8a_7.jpg'
|
42
42
|
expect(photo.user_handle).to eq 'eivindhilling'
|
43
43
|
expect(photo.user_id).to eq '272366028'
|
44
|
-
expect(photo.user_image_url).to eq '
|
44
|
+
expect(photo.user_image_url).to eq 'http://images.ak.instagram.com/profiles/profile_272366028_75sq_1365676035.jpg'
|
45
45
|
expect(photo.user_name).to eq 'Eivind Hilling'
|
46
46
|
|
47
47
|
expect(Mingle::Instagram::Photo.count).to be 2
|
@@ -57,4 +57,13 @@ describe Mingle::Instagram do
|
|
57
57
|
expect(photo.hashtags).to eq [ hashtag ]
|
58
58
|
end
|
59
59
|
|
60
|
+
it 'will ignore photos that are too old' do
|
61
|
+
stub_request(:get, /api\.instagram\.com\/v1\/tags\/klhd\/media\/recent\.json/).to_return body: fixture('mingle/instagram/photos.json')
|
62
|
+
|
63
|
+
Mingle.temporarily since: Time.now do
|
64
|
+
photos = Mingle::Instagram.fetch hashtag
|
65
|
+
|
66
|
+
expect(photos.count).to eq 0
|
67
|
+
end
|
68
|
+
end
|
60
69
|
end
|
@@ -12,4 +12,12 @@ describe Mingle::Twitter::Tweet do
|
|
12
12
|
expect(subject.avatar).to eq subject.user_image_url
|
13
13
|
end
|
14
14
|
end
|
15
|
+
|
16
|
+
describe "#url" do
|
17
|
+
it 'should be the tweet url' do
|
18
|
+
subject.stub(:user_handle).and_return 'sindre'
|
19
|
+
subject.stub(:tweet_id).and_return '1337'
|
20
|
+
expect(subject.url).to eq "https://twitter.com/sindre/status/1337"
|
21
|
+
end
|
22
|
+
end
|
15
23
|
end
|
@@ -11,6 +11,7 @@ describe Mingle::Twitter do
|
|
11
11
|
config.twitter_api_secret = '...'
|
12
12
|
config.twitter_access_token = '...'
|
13
13
|
config.twitter_access_token_secret = '...'
|
14
|
+
config.twitter_ignore_retweets = false
|
14
15
|
end
|
15
16
|
end
|
16
17
|
|
@@ -32,6 +33,14 @@ describe Mingle::Twitter do
|
|
32
33
|
Mingle::Twitter.fetch hashtag, 12391
|
33
34
|
end
|
34
35
|
|
36
|
+
it 'can fetch tweets and ignore retweets' do
|
37
|
+
Mingle.config.twitter_ignore_retweets = true
|
38
|
+
Twitter::REST::Client.any_instance.should_receive(:search).with("#klhd", exclude: 'retweets', since_id: nil)
|
39
|
+
.and_return double(collect: [])
|
40
|
+
|
41
|
+
Mingle::Twitter.fetch hashtag
|
42
|
+
end
|
43
|
+
|
35
44
|
it 'will create model instances for fetched tweets' do
|
36
45
|
stub_request(:get, /api.twitter.com\/1\.1\/search\/tweets\.json/).to_return body: fixture('mingle/twitter/tweets.json')
|
37
46
|
|
@@ -43,7 +52,7 @@ describe Mingle::Twitter do
|
|
43
52
|
expect(tweet.text).to match /^Klar for dagens plikter! Ha en fin lørdag/
|
44
53
|
expect(tweet.user_id).to eq '280615050'
|
45
54
|
expect(tweet.user_handle).to eq 'anitairenLFC'
|
46
|
-
expect(tweet.user_image_url).to eq '
|
55
|
+
expect(tweet.user_image_url).to eq 'http://si0.twimg.com/profile_images/3521212093/20a837ff967f5f1685f00506df7550e5_normal.jpeg'
|
47
56
|
expect(tweet.user_name).to eq 'Anita Iren Vassli'
|
48
57
|
|
49
58
|
tweet = tweets.last
|
@@ -52,7 +61,7 @@ describe Mingle::Twitter do
|
|
52
61
|
expect(tweet.text).to match /^Av erfaring er det en ting som er sikkert/
|
53
62
|
expect(tweet.user_id).to eq '87887606'
|
54
63
|
expect(tweet.user_handle).to eq 'Hbjorg'
|
55
|
-
expect(tweet.user_image_url).to eq '
|
64
|
+
expect(tweet.user_image_url).to eq 'http://si0.twimg.com/profile_images/1364414120/Profil_twitter_normal.jpg'
|
56
65
|
expect(tweet.user_name).to eq 'Hans Fredrik'
|
57
66
|
|
58
67
|
expect(Mingle::Twitter::Tweet.count).to be 2
|
@@ -68,4 +77,13 @@ describe Mingle::Twitter do
|
|
68
77
|
expect(tweet.hashtags).to eq [ hashtag ]
|
69
78
|
end
|
70
79
|
|
80
|
+
it 'will ignore tweets that are too old' do
|
81
|
+
stub_request(:get, /api.twitter.com\/1\.1\/search\/tweets\.json/).to_return body: fixture('mingle/twitter/tweets.json')
|
82
|
+
|
83
|
+
Mingle.temporarily(since: Time.now) do
|
84
|
+
tweets = Mingle::Twitter.fetch hashtag
|
85
|
+
|
86
|
+
expect(tweets.count).to eq 0
|
87
|
+
end
|
88
|
+
end
|
71
89
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mingle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Johannes Gorset
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-
|
13
|
+
date: 2014-11-17 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -60,28 +60,28 @@ dependencies:
|
|
60
60
|
requirements:
|
61
61
|
- - "~>"
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: '0
|
63
|
+
version: '1.0'
|
64
64
|
type: :runtime
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - "~>"
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
version: '0
|
70
|
+
version: '1.0'
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
|
-
name:
|
72
|
+
name: google-api-client
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
75
|
- - "~>"
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: 0.
|
77
|
+
version: '0.7'
|
78
78
|
type: :runtime
|
79
79
|
prerelease: false
|
80
80
|
version_requirements: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
82
|
- - "~>"
|
83
83
|
- !ruby/object:Gem::Version
|
84
|
-
version: 0.
|
84
|
+
version: '0.7'
|
85
85
|
- !ruby/object:Gem::Dependency
|
86
86
|
name: sqlite3
|
87
87
|
requirement: !ruby/object:Gem::Requirement
|
@@ -161,12 +161,7 @@ executables: []
|
|
161
161
|
extensions: []
|
162
162
|
extra_rdoc_files: []
|
163
163
|
files:
|
164
|
-
- MIT-LICENSE
|
165
164
|
- Rakefile
|
166
|
-
- app/assets/javascripts/mingle/application.js
|
167
|
-
- app/assets/stylesheets/mingle/application.css
|
168
|
-
- app/controllers/mingle/application_controller.rb
|
169
|
-
- app/helpers/mingle/application_helper.rb
|
170
165
|
- app/jobs/mingle/facebook/fetch.rb
|
171
166
|
- app/jobs/mingle/instagram/fetch.rb
|
172
167
|
- app/jobs/mingle/twitter/fetch.rb
|
@@ -180,7 +175,6 @@ files:
|
|
180
175
|
- app/models/mingle/instagram/photo.rb
|
181
176
|
- app/models/mingle/twitter.rb
|
182
177
|
- app/models/mingle/twitter/tweet.rb
|
183
|
-
- app/views/layouts/mingle/application.html.erb
|
184
178
|
- config/initializers/facebook.rb
|
185
179
|
- config/initializers/instagram.rb
|
186
180
|
- config/routes.rb
|
@@ -192,7 +186,19 @@ files:
|
|
192
186
|
- db/migrate/20140222125715_create_mingle_feed_items.rb
|
193
187
|
- db/migrate/20140224155358_drop_mingle_feed_items.rb
|
194
188
|
- db/migrate/20140305093743_add_user_name_to_mingle_instagram_photos.rb
|
189
|
+
- db/migrate/20140403083806_add_url_to_mingle_twitter_tweets.rb
|
190
|
+
- lib/generators/mingle/install/USAGE
|
191
|
+
- lib/generators/mingle/install/install_generator.rb
|
192
|
+
- lib/generators/mingle/install/templates/mingle_config.rb
|
195
193
|
- lib/mingle.rb
|
194
|
+
- lib/mingle/concerns.rb
|
195
|
+
- lib/mingle/concerns/models.rb
|
196
|
+
- lib/mingle/concerns/models/facebook.rb
|
197
|
+
- lib/mingle/concerns/models/facebook/post.rb
|
198
|
+
- lib/mingle/concerns/models/instagram.rb
|
199
|
+
- lib/mingle/concerns/models/instagram/photo.rb
|
200
|
+
- lib/mingle/concerns/models/twitter.rb
|
201
|
+
- lib/mingle/concerns/models/twitter/tweet.rb
|
196
202
|
- lib/mingle/configuration.rb
|
197
203
|
- lib/mingle/engine.rb
|
198
204
|
- lib/mingle/version.rb
|
@@ -225,8 +231,10 @@ files:
|
|
225
231
|
- spec/dummy/config/locales/en.yml
|
226
232
|
- spec/dummy/config/routes.rb
|
227
233
|
- spec/dummy/config/secrets.yml
|
234
|
+
- spec/dummy/db/development.sqlite3
|
228
235
|
- spec/dummy/db/schema.rb
|
229
236
|
- spec/dummy/db/test.sqlite3
|
237
|
+
- spec/dummy/log/test.log
|
230
238
|
- spec/dummy/public/404.html
|
231
239
|
- spec/dummy/public/422.html
|
232
240
|
- spec/dummy/public/500.html
|
@@ -244,6 +252,7 @@ files:
|
|
244
252
|
- spec/jobs/mingle/instagram/fetch_spec.rb
|
245
253
|
- spec/jobs/mingle/twitter/fetch_spec.rb
|
246
254
|
- spec/lib/mingle/configuration_spec.rb
|
255
|
+
- spec/lib/mingle_spec.rb
|
247
256
|
- spec/models/mingle/facebook/post_spec.rb
|
248
257
|
- spec/models/mingle/facebook_spec.rb
|
249
258
|
- spec/models/mingle/hashtag_spec.rb
|
@@ -279,60 +288,63 @@ signing_key:
|
|
279
288
|
specification_version: 4
|
280
289
|
summary: Social media integration for Ruby on Rails
|
281
290
|
test_files:
|
282
|
-
- spec/
|
283
|
-
- spec/
|
284
|
-
- spec/
|
285
|
-
- spec/
|
286
|
-
- spec/
|
287
|
-
- spec/
|
288
|
-
- spec/
|
289
|
-
- spec/
|
290
|
-
- spec/dummy/README.rdoc
|
291
|
-
- spec/dummy/public/422.html
|
292
|
-
- spec/dummy/public/500.html
|
293
|
-
- spec/dummy/public/favicon.ico
|
294
|
-
- spec/dummy/public/404.html
|
291
|
+
- spec/dummy/app/assets/javascripts/application.js
|
292
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
293
|
+
- spec/dummy/app/controllers/application_controller.rb
|
294
|
+
- spec/dummy/app/helpers/application_helper.rb
|
295
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
296
|
+
- spec/dummy/bin/bundle
|
297
|
+
- spec/dummy/bin/rails
|
298
|
+
- spec/dummy/bin/rake
|
295
299
|
- spec/dummy/config/application.rb
|
300
|
+
- spec/dummy/config/boot.rb
|
301
|
+
- spec/dummy/config/database.yml
|
302
|
+
- spec/dummy/config/environment.rb
|
303
|
+
- spec/dummy/config/environments/development.rb
|
304
|
+
- spec/dummy/config/environments/production.rb
|
305
|
+
- spec/dummy/config/environments/test.rb
|
306
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
296
307
|
- spec/dummy/config/initializers/cookies_serializer.rb
|
297
|
-
- spec/dummy/config/initializers/
|
308
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
309
|
+
- spec/dummy/config/initializers/inflections.rb
|
298
310
|
- spec/dummy/config/initializers/mime_types.rb
|
311
|
+
- spec/dummy/config/initializers/session_store.rb
|
299
312
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
300
|
-
- spec/dummy/config/initializers/inflections.rb
|
301
|
-
- spec/dummy/config/initializers/backtrace_silencers.rb
|
302
|
-
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
303
|
-
- spec/dummy/config/environments/production.rb
|
304
|
-
- spec/dummy/config/environments/test.rb
|
305
|
-
- spec/dummy/config/environments/development.rb
|
306
313
|
- spec/dummy/config/locales/en.yml
|
307
|
-
- spec/dummy/config/database.yml
|
308
|
-
- spec/dummy/config/environment.rb
|
309
|
-
- spec/dummy/config/boot.rb
|
310
314
|
- spec/dummy/config/routes.rb
|
311
315
|
- spec/dummy/config/secrets.yml
|
312
316
|
- spec/dummy/config.ru
|
313
|
-
- spec/dummy/db/
|
317
|
+
- spec/dummy/db/development.sqlite3
|
314
318
|
- spec/dummy/db/schema.rb
|
315
|
-
- spec/dummy/
|
316
|
-
- spec/dummy/
|
317
|
-
- spec/dummy/
|
319
|
+
- spec/dummy/db/test.sqlite3
|
320
|
+
- spec/dummy/log/test.log
|
321
|
+
- spec/dummy/public/404.html
|
322
|
+
- spec/dummy/public/422.html
|
323
|
+
- spec/dummy/public/500.html
|
324
|
+
- spec/dummy/public/favicon.ico
|
318
325
|
- spec/dummy/Rakefile
|
319
|
-
- spec/dummy/
|
320
|
-
- spec/
|
321
|
-
- spec/
|
322
|
-
- spec/
|
323
|
-
- spec/
|
324
|
-
- spec/
|
325
|
-
- spec/
|
326
|
-
- spec/
|
326
|
+
- spec/dummy/README.rdoc
|
327
|
+
- spec/factories/mingle/facebook/posts.rb
|
328
|
+
- spec/factories/mingle/hashtaggings.rb
|
329
|
+
- spec/factories/mingle/hashtags.rb
|
330
|
+
- spec/factories/mingle/instagram/photos.rb
|
331
|
+
- spec/factories/mingle/twitter/tweets.rb
|
332
|
+
- spec/fixtures/mingle/facebook/page_posts.json
|
333
|
+
- spec/fixtures/mingle/facebook/search_posts.json
|
327
334
|
- spec/fixtures/mingle/instagram/photos.json
|
328
335
|
- spec/fixtures/mingle/twitter/tweets.json
|
329
|
-
- spec/
|
330
|
-
- spec/
|
331
|
-
- spec/
|
336
|
+
- spec/jobs/mingle/facebook/fetch_spec.rb
|
337
|
+
- spec/jobs/mingle/instagram/fetch_spec.rb
|
338
|
+
- spec/jobs/mingle/twitter/fetch_spec.rb
|
339
|
+
- spec/lib/mingle/configuration_spec.rb
|
340
|
+
- spec/lib/mingle_spec.rb
|
341
|
+
- spec/models/mingle/facebook/post_spec.rb
|
332
342
|
- spec/models/mingle/facebook_spec.rb
|
333
343
|
- spec/models/mingle/hashtag_spec.rb
|
344
|
+
- spec/models/mingle/hashtagging_spec.rb
|
345
|
+
- spec/models/mingle/instagram/photo_spec.rb
|
334
346
|
- spec/models/mingle/instagram_spec.rb
|
335
|
-
- spec/models/mingle/twitter_spec.rb
|
336
347
|
- spec/models/mingle/twitter/tweet_spec.rb
|
337
|
-
- spec/models/mingle/
|
338
|
-
- spec/
|
348
|
+
- spec/models/mingle/twitter_spec.rb
|
349
|
+
- spec/spec_helper.rb
|
350
|
+
- spec/support/fixture.rb
|
data/MIT-LICENSE
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright 2014 Hyper AS.
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -1,13 +0,0 @@
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
-
// listed below.
|
3
|
-
//
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
-
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
-
//
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
-
// compiled file.
|
9
|
-
//
|
10
|
-
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
|
11
|
-
// about supported directives.
|
12
|
-
//
|
13
|
-
//= require_tree .
|