ishapi 0.1.8.10 → 0.1.8.11
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/controllers/ishapi/venues_controller.rb +16 -0
- data/app/controllers/ishapi/venues_controller.rb~ +23 -0
- data/app/models/ishapi/ability.rb +4 -0
- data/app/views/ishapi/venues/_index.jbuilder +1 -0
- data/app/views/ishapi/venues/_index.jbuilder~ +14 -0
- data/app/views/ishapi/venues/show.jbuilder +15 -0
- data/app/views/ishapi/venues/show.jbuilder~ +12 -0
- data/config/routes.rb +2 -0
- metadata +6 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d79a3a719d7fa36883dd109423711e35e28cf65b
|
4
|
+
data.tar.gz: 50cd2e9879a2df1eceae77400f6d1560278e7718
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fdfa54a03c5475de38df30c3be81d8a1c2a3586f98d1a7b9ec44e8d1a52d44edbc8fe34a95e6893d610a490f8d363bcafdaa1a0ca2a034fb1845149730736bf
|
7
|
+
data.tar.gz: e3d02942bf3758da0eccbedb10afc692c2a1281561f937f6d8a58b3a8ba44f645577ec9501c16a27a153596e5c34d4a8ba02920ce86cf6bf3ae4302f3820550f
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require_dependency "ishapi/application_controller"
|
2
|
+
module Ishapi
|
3
|
+
class VenuesController < ApplicationController
|
4
|
+
|
5
|
+
def index
|
6
|
+
authorize! :index, ::Venue
|
7
|
+
@venues = ::Venue.all
|
8
|
+
end
|
9
|
+
|
10
|
+
def show
|
11
|
+
@venue = Venue.find_by :name_seo => params[:venuename]
|
12
|
+
authorize! :show, @venue
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require_dependency "ishapi/application_controller"
|
2
|
+
module Ishapi
|
3
|
+
class SitesController < ApplicationController
|
4
|
+
|
5
|
+
def index
|
6
|
+
authorize! :index, ::Site
|
7
|
+
@sites = ::Site.all
|
8
|
+
end
|
9
|
+
|
10
|
+
def show
|
11
|
+
if params[:domain].include?(".json")
|
12
|
+
domain = params[:domain][0...-5]
|
13
|
+
else
|
14
|
+
domain = params[:domain]
|
15
|
+
end
|
16
|
+
@site = ::Site.find_by :domain => domain, :lang => :en
|
17
|
+
authorize! :show, @site
|
18
|
+
|
19
|
+
@newsitems = @site.newsitems.limit(10)
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|
data/config/routes.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ishapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.8.
|
4
|
+
version: 0.1.8.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
@@ -150,6 +150,8 @@ files:
|
|
150
150
|
- app/controllers/ishapi/reports_controller.rb~
|
151
151
|
- app/controllers/ishapi/sites_controller.rb
|
152
152
|
- app/controllers/ishapi/sites_controller.rb~
|
153
|
+
- app/controllers/ishapi/venues_controller.rb
|
154
|
+
- app/controllers/ishapi/venues_controller.rb~
|
153
155
|
- app/helpers/ishapi/application_helper.rb
|
154
156
|
- app/helpers/ishapi/articles_helper.rb
|
155
157
|
- app/jobs/ishapi/application_job.rb
|
@@ -187,6 +189,9 @@ files:
|
|
187
189
|
- app/views/ishapi/sites/show.jbuilder~
|
188
190
|
- app/views/ishapi/venues/_index.haml~
|
189
191
|
- app/views/ishapi/venues/_index.jbuilder
|
192
|
+
- app/views/ishapi/venues/_index.jbuilder~
|
193
|
+
- app/views/ishapi/venues/show.jbuilder
|
194
|
+
- app/views/ishapi/venues/show.jbuilder~
|
190
195
|
- app/views/layouts/ishapi/application.html.erb
|
191
196
|
- config/routes.rb
|
192
197
|
- lib/ishapi.rb
|