mingle 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c43c57e98668764982152775a0399842385cf1b
4
- data.tar.gz: 858097239c271b938ffef39e5d8bd32edc0a7582
3
+ metadata.gz: 60949a367f442c1a324c904715cb48d88576f599
4
+ data.tar.gz: 17e07f3a27586fd103fb98e379b52d6f40726753
5
5
  SHA512:
6
- metadata.gz: 9224cbced5d10027be8818cc74d44a2e8977212101e76ab38b229e19beb47cbb1804e2ae94ff5abbdae4e30fed96b046808a353b7a0550a62b62286d10739571
7
- data.tar.gz: eff301fb665c8dd5dbf95dc14082f6fd84314cb7055e2d24b266178454c4586f84115e3184b81c762aa324d53a499e53c0e4aa6d976b759e7a2f69c467e01814
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 = ENV['TWITTER_API_KEY']
40
- config.consumer_secret = ENV['TWITTER_API_SECRET']
41
- config.access_token = ENV['TWITTER_ACCESS_TOKEN']
42
- config.access_token_secret = ENV['TWITTER_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
 
@@ -1,3 +1,3 @@
1
1
  Mingle::Facebook.configure do |config|
2
- config.access_token = ENV['FACEBOOK_ACCESS_TOKEN']
2
+ config.access_token = Mingle.config.facebook_access_token
3
3
  end
@@ -1,3 +1,3 @@
1
1
  Instagram.configure do |config|
2
- config.client_id = ENV['INSTAGRAM_CLIENT_ID']
2
+ config.client_id = Mingle.config.instagram_client_id
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module Mingle
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
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
- ENV['TWITTER_API_KEY'] = '...'
10
- ENV['TWITTER_API_SECRET'] = '...'
11
- ENV['TWITTER_ACCESS_TOKEN'] = '...'
12
- ENV['TWITTER_ACCESS_TOKEN_SECRET'] = '...'
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.0
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-05 00:00:00.000000000 Z
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/dummy/app/assets/javascripts/application.js
284
- - spec/dummy/app/assets/stylesheets/application.css
285
- - spec/dummy/app/controllers/application_controller.rb
286
- - spec/dummy/app/helpers/application_helper.rb
287
- - spec/dummy/app/views/layouts/application.html.erb
288
- - spec/dummy/bin/bundle
289
- - spec/dummy/bin/rails
290
- - spec/dummy/bin/rake
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/public/404.html
313
- - spec/dummy/public/422.html
314
- - spec/dummy/public/500.html
315
- - spec/dummy/public/favicon.ico
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/README.rdoc
318
- - spec/factories/mingle/facebook/posts.rb
319
- - spec/factories/mingle/hashtaggings.rb
320
- - spec/factories/mingle/hashtags.rb
321
- - spec/factories/mingle/instagram/photos.rb
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/lib/mingle/configuration_spec.rb
331
- - spec/models/mingle/facebook/post_spec.rb
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/spec_helper.rb
340
- - spec/support/fixture.rb
336
+ - spec/models/mingle/twitter/tweet_spec.rb
337
+ - spec/models/mingle/hashtagging_spec.rb
338
+ - spec/models/mingle/facebook/post_spec.rb