ishapi 0.1.8.40 → 0.1.8.41

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 89fcd96a1a5fd1d61b520030884fa5de0cb8e2ce
4
- data.tar.gz: 645baf85d6b1321a17fb13f0b4cba0bf838c6e92
3
+ metadata.gz: a883e11d90f8f74f961c6a91097556c3c2016d51
4
+ data.tar.gz: 92ffa965314c84944c1748276aee2d537915904c
5
5
  SHA512:
6
- metadata.gz: 788554098c180689be69d9061dd4ed80549cd346e316cf6562267eb6bfd7615eb2fd54c45fbc66661303d2e6dccd60974633d3421d078884627c5be552ebe838
7
- data.tar.gz: 716ac31a8709504622a90e6e63b951b1ff0eca956bd5aba88fe7b58451b5fe0d792cecfb54543957e31c3a28c03ae338754e94140b67f38b7ea194927d01602a
6
+ metadata.gz: ed517c30f438b146139b95ea752e655557d2e7f67e8f24a5413ee0a0a0e77c9d689f05300fdec57dd98b9a137dbca75bcf873f1a152d7820f644ed4c53d587eb
7
+ data.tar.gz: f737444d0684f66300004a740e3e55afefc1a1037ae63054877242d88b26f809ef893b09f7cdb0bb15c78b6224cd98997a5b6ee7516bd9cbb000fb43966eec83
@@ -5,6 +5,10 @@ module Ishapi
5
5
  def index
6
6
  authorize! :index, ::Venue
7
7
  @venues = ::Venue.all
8
+ if params[:cityname]
9
+ city = City.find_by :cityname => params[:cityname]
10
+ @venues = @venues.where( :city => city )
11
+ end
8
12
  end
9
13
 
10
14
  def show
@@ -3,7 +3,6 @@ json.n_users users.count
3
3
  json.users do
4
4
  json.array! users do |user|
5
5
  json.id user.id.to_s
6
- json.username user.username
7
6
  json.name user.name
8
7
  json.email user.email
9
8
  end
@@ -0,0 +1,2 @@
1
+
2
+ json.partial! 'ishapi/venues/index', :venues => @venues
@@ -15,5 +15,5 @@ if video.tag
15
15
  end
16
16
 
17
17
  if video.user_profile
18
- json.username video.user_profile.username
18
+ json.username video.user_profile.name
19
19
  end
data/config/routes.rb CHANGED
@@ -36,6 +36,7 @@ Ishapi::Engine.routes.draw do
36
36
  post 'users/profile/update', :to => 'users#update'
37
37
  get 'users/profile', :to => 'users#show' # @TODO: only for testing! accessToken must be hidden
38
38
 
39
+ get 'venues', :to => 'venues#index'
39
40
  get 'venues/view/:venuename', :to => 'venues#show'
40
-
41
+
41
42
  end
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.40
4
+ version: 0.1.8.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-08 00:00:00.000000000 Z
11
+ date: 2017-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -241,6 +241,7 @@ files:
241
241
  - app/views/ishapi/venues/_index.haml~
242
242
  - app/views/ishapi/venues/_index.jbuilder
243
243
  - app/views/ishapi/venues/_index.jbuilder~
244
+ - app/views/ishapi/venues/index.jbuilder
244
245
  - app/views/ishapi/venues/show.jbuilder
245
246
  - app/views/ishapi/venues/show.jbuilder~
246
247
  - app/views/ishapi/videos/_index.jbuilder