ishapi 0.1.8.31 → 0.1.8.32

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: 15e670a22953d1483ab9811e733fc5f532ca2cab
4
- data.tar.gz: 576f70058f9b109d8be1e7758fe93e6559424901
3
+ metadata.gz: 94564bd9fd36c7834f02dc3acfd6c2e4b6c63656
4
+ data.tar.gz: c95b8d283c20dbcacc4a631b8bf34efa2bb15bba
5
5
  SHA512:
6
- metadata.gz: 5288189ada48a7ce8953c82094f178be3302be59d064856f257ad0dcb6246966693532c1fc987abfc13514dd6a0c3e22d82ce5d9c7160abfaf94666c6f479b07
7
- data.tar.gz: e74ccd8b95853c37e6f462fc8b4b503a3b6057cd6a459bf8939e19433a040f887778874e5cc6d80cb76d21745e69ec4b9523c91d8a37e062d97f58f04bd959df
6
+ metadata.gz: 0c994f1e08f6fa81afffb8d441ab1f41277d6efbf73f9d324580062440a86f653c1caf7791cee381ad3bfd44fef72468aad577e8dcc015257b0d8053b7cf04ae
7
+ data.tar.gz: fa549c324c7b6d69057aa9409517a9a005e018c8549d2cc06444f9fdbfcf71c3dd56d26863bc3aa7b61f899b780c15a09829e0296f289a4c6f07b9db723f41a1
@@ -17,6 +17,7 @@ module Ishapi
17
17
  authorize! :show, @site
18
18
 
19
19
  @newsitems = @site.newsitems.limit(10)
20
+ @langs = ::Site.where( :domain => domain ).map( &:lang )
20
21
  end
21
22
 
22
23
  end
@@ -22,6 +22,8 @@ module Ishapi
22
22
  auth = Koala::Facebook::OAuth.new
23
23
  u.fb_long_access_token = auth.exchange_access_token access_token
24
24
 
25
+ puts! u, 'profile, here'
26
+
25
27
  if u.save
26
28
  render :json => { :status => :ok, :profile => u }
27
29
  else
@@ -15,6 +15,7 @@ json.features do
15
15
  json.link_path feature.link_path unless feature.link_path.blank?
16
16
  json.inner_html feature.inner_html unless feature.inner_html.blank?
17
17
  json.photo_url feature.image_path unless feature.image_path.blank?
18
+ json.created_at feature.created_at
18
19
 
19
20
  if feature.report
20
21
  r = feature.report
@@ -9,8 +9,10 @@ json.cache! key do
9
9
  json.id @site.id.to_s
10
10
  json.domain @site.domain
11
11
  json.lang @site.lang
12
+ json.langs @langs
12
13
 
13
- json.is_ads_enabled @site.is_ads_enabled
14
+ json.is_ads_enabled @site.is_ads_enabled
15
+ json.play_videos_in_preview @site.play_videos_in_preview
14
16
 
15
17
  json.partial! 'ishapi/features/index', :features => @site.features, :resource => @site
16
18
  json.partial! 'ishapi/newsitems/index', :newsitems => @newsitems
@@ -5,6 +5,7 @@
5
5
 
6
6
  json.email @user_profile.email
7
7
  json.about @user_profile.about
8
+ json.lang @user_profile.lang
8
9
 
9
10
  if @user_profile.current_city
10
11
  json.current_city_id @user_profile.current_city_id.to_s
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ishapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.31
4
+ version: 0.1.8.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-28 00:00:00.000000000 Z
11
+ date: 2017-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails