mingle 0.3.0 → 0.3.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.
- checksums.yaml +4 -4
- data/app/models/mingle/twitter.rb +4 -4
- data/config/initializers/facebook.rb +1 -1
- data/config/initializers/instagram.rb +1 -1
- data/lib/mingle/version.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/models/mingle/twitter_spec.rb +6 -4
- metadata +43 -45
- data/spec/dummy/db/development.sqlite3 +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60949a367f442c1a324c904715cb48d88576f599
|
4
|
+
data.tar.gz: 17e07f3a27586fd103fb98e379b52d6f40726753
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cb632bf16a925ea6efc6749b8da84d70e27c66ba1b76cb8bce68b92fd018abce8551c5d60673ecb1eef47b1fa80d1bdc350038fd2fd32dd8eb8a92c8d9e2cb8
|
7
|
+
data.tar.gz: ab1d144d20d2949589e8e244668c66ead49c9d90f692d55ba49b848c108fc9dfeca7ca048042565828bdcb12bbb620f79a136270d77f13059caa64f2941229e7
|
@@ -36,10 +36,10 @@ module Mingle::Twitter
|
|
36
36
|
# Returns a new Twitter::REST::Client instance.
|
37
37
|
def client
|
38
38
|
Twitter::REST::Client.new do |config|
|
39
|
-
config.consumer_key =
|
40
|
-
config.consumer_secret =
|
41
|
-
config.access_token =
|
42
|
-
config.access_token_secret =
|
39
|
+
config.consumer_key = Mingle.config.twitter_api_key
|
40
|
+
config.consumer_secret = Mingle.config.twitter_api_secret
|
41
|
+
config.access_token = Mingle.config.twitter_access_token
|
42
|
+
config.access_token_secret = Mingle.config.twitter_access_token_secret
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
data/lib/mingle/version.rb
CHANGED
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -6,10 +6,12 @@ describe Mingle::Twitter do
|
|
6
6
|
let(:hashtag) { create :mingle_hashtag, tag_name: '#klhd' }
|
7
7
|
|
8
8
|
before do
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
Mingle.configure do |config|
|
10
|
+
config.twitter_api_key = '...'
|
11
|
+
config.twitter_api_secret = '...'
|
12
|
+
config.twitter_access_token = '...'
|
13
|
+
config.twitter_access_token_secret = '...'
|
14
|
+
end
|
13
15
|
end
|
14
16
|
|
15
17
|
it 'should prefix the database table name of namespaced models' do
|
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.3.
|
4
|
+
version: 0.3.1
|
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-03-
|
13
|
+
date: 2014-03-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -225,7 +225,6 @@ files:
|
|
225
225
|
- spec/dummy/config/locales/en.yml
|
226
226
|
- spec/dummy/config/routes.rb
|
227
227
|
- spec/dummy/config/secrets.yml
|
228
|
-
- spec/dummy/db/development.sqlite3
|
229
228
|
- spec/dummy/db/schema.rb
|
230
229
|
- spec/dummy/db/test.sqlite3
|
231
230
|
- spec/dummy/public/404.html
|
@@ -280,61 +279,60 @@ signing_key:
|
|
280
279
|
specification_version: 4
|
281
280
|
summary: Social media integration for Ruby on Rails
|
282
281
|
test_files:
|
283
|
-
- spec/
|
284
|
-
- spec/
|
285
|
-
- spec/
|
286
|
-
- spec/
|
287
|
-
- spec/
|
288
|
-
- spec/
|
289
|
-
- spec/
|
290
|
-
- spec/
|
282
|
+
- spec/factories/mingle/instagram/photos.rb
|
283
|
+
- spec/factories/mingle/hashtags.rb
|
284
|
+
- spec/factories/mingle/hashtaggings.rb
|
285
|
+
- spec/factories/mingle/twitter/tweets.rb
|
286
|
+
- spec/factories/mingle/facebook/posts.rb
|
287
|
+
- spec/spec_helper.rb
|
288
|
+
- spec/lib/mingle/configuration_spec.rb
|
289
|
+
- spec/support/fixture.rb
|
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
295
|
- spec/dummy/config/application.rb
|
292
|
-
- spec/dummy/config/boot.rb
|
293
|
-
- spec/dummy/config/database.yml
|
294
|
-
- spec/dummy/config/environment.rb
|
295
|
-
- spec/dummy/config/environments/development.rb
|
296
|
-
- spec/dummy/config/environments/production.rb
|
297
|
-
- spec/dummy/config/environments/test.rb
|
298
|
-
- spec/dummy/config/initializers/backtrace_silencers.rb
|
299
296
|
- spec/dummy/config/initializers/cookies_serializer.rb
|
300
|
-
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
301
|
-
- spec/dummy/config/initializers/inflections.rb
|
302
|
-
- spec/dummy/config/initializers/mime_types.rb
|
303
297
|
- spec/dummy/config/initializers/session_store.rb
|
298
|
+
- spec/dummy/config/initializers/mime_types.rb
|
304
299
|
- 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
|
305
306
|
- spec/dummy/config/locales/en.yml
|
307
|
+
- spec/dummy/config/database.yml
|
308
|
+
- spec/dummy/config/environment.rb
|
309
|
+
- spec/dummy/config/boot.rb
|
306
310
|
- spec/dummy/config/routes.rb
|
307
311
|
- spec/dummy/config/secrets.yml
|
308
312
|
- spec/dummy/config.ru
|
309
|
-
- spec/dummy/db/development.sqlite3
|
310
|
-
- spec/dummy/db/schema.rb
|
311
313
|
- spec/dummy/db/test.sqlite3
|
312
|
-
- spec/dummy/
|
313
|
-
- spec/dummy/
|
314
|
-
- spec/dummy/
|
315
|
-
- spec/dummy/
|
314
|
+
- spec/dummy/db/schema.rb
|
315
|
+
- spec/dummy/bin/rails
|
316
|
+
- spec/dummy/bin/bundle
|
317
|
+
- spec/dummy/bin/rake
|
316
318
|
- spec/dummy/Rakefile
|
317
|
-
- spec/dummy/
|
318
|
-
- spec/
|
319
|
-
- spec/
|
320
|
-
- spec/
|
321
|
-
- spec/
|
322
|
-
- spec/factories/mingle/twitter/tweets.rb
|
323
|
-
- spec/fixtures/mingle/facebook/page_posts.json
|
324
|
-
- spec/fixtures/mingle/facebook/search_posts.json
|
325
|
-
- spec/fixtures/mingle/instagram/photos.json
|
326
|
-
- spec/fixtures/mingle/twitter/tweets.json
|
327
|
-
- spec/jobs/mingle/facebook/fetch_spec.rb
|
319
|
+
- spec/dummy/app/assets/javascripts/application.js
|
320
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
321
|
+
- spec/dummy/app/controllers/application_controller.rb
|
322
|
+
- spec/dummy/app/helpers/application_helper.rb
|
323
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
328
324
|
- spec/jobs/mingle/instagram/fetch_spec.rb
|
329
325
|
- spec/jobs/mingle/twitter/fetch_spec.rb
|
330
|
-
- spec/
|
331
|
-
- spec/
|
326
|
+
- spec/jobs/mingle/facebook/fetch_spec.rb
|
327
|
+
- spec/fixtures/mingle/instagram/photos.json
|
328
|
+
- spec/fixtures/mingle/twitter/tweets.json
|
329
|
+
- spec/fixtures/mingle/facebook/search_posts.json
|
330
|
+
- spec/fixtures/mingle/facebook/page_posts.json
|
331
|
+
- spec/models/mingle/instagram/photo_spec.rb
|
332
332
|
- spec/models/mingle/facebook_spec.rb
|
333
333
|
- spec/models/mingle/hashtag_spec.rb
|
334
|
-
- spec/models/mingle/hashtagging_spec.rb
|
335
|
-
- spec/models/mingle/instagram/photo_spec.rb
|
336
334
|
- spec/models/mingle/instagram_spec.rb
|
337
|
-
- spec/models/mingle/twitter/tweet_spec.rb
|
338
335
|
- spec/models/mingle/twitter_spec.rb
|
339
|
-
- spec/
|
340
|
-
- spec/
|
336
|
+
- spec/models/mingle/twitter/tweet_spec.rb
|
337
|
+
- spec/models/mingle/hashtagging_spec.rb
|
338
|
+
- spec/models/mingle/facebook/post_spec.rb
|
Binary file
|