ishapi 0.1.8.64 → 0.1.8.65
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4739332da55fad4246588eae7394e8688023c991
|
4
|
+
data.tar.gz: 907379ad9fa9cda721c9330b8790375ed035aac4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d504edbadad3432502c4126f275b3d909f6f205b050a8579f9d8a96856ea8d5caf3ffaffcf7779c387d405231132e1b72e6b5c7572d7936291d4cf78310c28e5
|
7
|
+
data.tar.gz: a7c07b476ec84f76b2f11c5f90b9f8821c6324c9e615d39a81c34616dd1a92dc567911e0c92d93fa75c43736730e915c6690476e57f676dd0559daf9423691b4
|
@@ -9,6 +9,10 @@ module Ishapi
|
|
9
9
|
|
10
10
|
# byebug
|
11
11
|
|
12
|
+
=begin
|
13
|
+
params = {"token"=>{"id"=>"tok_1BoLkRDpn3WurCccVNQK4pfV", "object"=>"token", "card"=>{"id"=>"card_1BoLkRDpn3WurCccET5cyAMU", "object"=>"card", "address_city"=>nil, "address_country"=>nil, "address_line1"=>nil, "address_line1_check"=>nil, "address_line2"=>nil, "address_state"=>nil, "address_zip"=>"42424", "address_zip_check"=>"unchecked", "brand"=>"Visa", "country"=>"US", "cvc_check"=>"unchecked", "dynamic_last4"=>nil, "exp_month"=>4, "exp_year"=>2024, "funding"=>"credit", "last4"=>"4242", "metadata"=>{}, "name"=>nil, "tokenization_method"=>nil}, "client_ip"=>"76.103.54.198", "created"=>1516929079, "livemode"=>false, "type"=>"card", "used"=>false}, "accessToken"=>"EAAcgM1d2EyABAFAvisZBJy0vnlmunq1RM5rbcfUN0B1G6WGwulGkwqfJyP8Ue8Gb1DsyHyjLZCmEmMKKjhZCFF8JIyyZAGLLyqpIr8kg6wWhAIzLQ7HbYfmwFI8aZARtJB4ZBo4KZBbBx4wHUmLoPqAsG2Ca2DXKPkZD", "order"=>{"token"=>{"id"=>"tok_1BoLkRDpn3WurCccVNQK4pfV", "object"=>"token", "card"=>{"id"=>"card_1BoLkRDpn3WurCccET5cyAMU", "object"=>"card", "address_city"=>nil, "address_country"=>nil, "address_line1"=>nil, "address_line1_check"=>nil, "address_line2"=>nil, "address_state"=>nil, "address_zip"=>"42424", "address_zip_check"=>"unchecked", "brand"=>"Visa", "country"=>"US", "cvc_check"=>"unchecked", "dynamic_last4"=>nil, "exp_month"=>4, "exp_year"=>2024, "funding"=>"credit", "last4"=>"4242", "metadata"=>{}, "name"=>nil, "tokenization_method"=>nil}, "client_ip"=>"76.103.54.198", "created"=>1516929079, "livemode"=>false, "type"=>"card", "used"=>false}, "accessToken"=>"EAAcgM1d2EyABAFAvisZBJy0vnlmunq1RM5rbcfUN0B1G6WGwulGkwqfJyP8Ue8Gb1DsyHyjLZCmEmMKKjhZCFF8JIyyZAGLLyqpIr8kg6wWhAIzLQ7HbYfmwFI8aZARtJB4ZBo4KZBbBx4wHUmLoPqAsG2Ca2DXKPkZD"}}
|
14
|
+
=end
|
15
|
+
|
12
16
|
@order = CoTailors::Order.where( :profile_id => @current_profile.id, :submitted_at => nil ).first
|
13
17
|
@order.submitted_at = Time.now
|
14
18
|
flag = @order.save
|
@@ -16,10 +16,11 @@ module Ishapi
|
|
16
16
|
@site = ::Site.find_by :domain => domain, :lang => :en
|
17
17
|
authorize! :show, @site
|
18
18
|
|
19
|
-
@galleries
|
20
|
-
@newsitems
|
21
|
-
@reports
|
22
|
-
@langs
|
19
|
+
@galleries = @site.galleries.limit( 10 )
|
20
|
+
@newsitems = @site.newsitems.limit(10)
|
21
|
+
@reports = @site.reports.limit( 10 )
|
22
|
+
@langs = ::Site.where( :domain => domain ).map( &:lang )
|
23
|
+
@feature_tags = @site.tags.where( :is_feature => true )
|
23
24
|
end
|
24
25
|
|
25
26
|
end
|
@@ -23,5 +23,11 @@ json.cache! key do
|
|
23
23
|
json.partial! 'ishapi/reports/index', :reports => @reports, :resource => @site
|
24
24
|
json.partial! 'ishapi/videos/index', :videos => @site.videos
|
25
25
|
|
26
|
+
json.feature_tags do
|
27
|
+
json.array! @feature_tags do |feature_tag|
|
28
|
+
json.partial! 'ishapi/tags/widget', :tag => feature_tag
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
26
32
|
end
|
27
33
|
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
|
2
|
+
#
|
3
|
+
# _vp_ 20180201
|
4
|
+
# ishapi / tags / _widget
|
5
|
+
#
|
6
|
+
|
7
|
+
json.id tag.id.to_s
|
8
|
+
json.name tag.name
|
9
|
+
json.tagname tag.tagname
|
10
|
+
|
11
|
+
json.partial! 'ishapi/newsitems/index', :newsitems => tag.newsitems.limit(1)
|
12
|
+
|
13
|
+
=begin
|
14
|
+
json.videos do
|
15
|
+
json.array! @tag.videos
|
16
|
+
end
|
17
|
+
json.reports do
|
18
|
+
json.array! @tag.reports
|
19
|
+
end
|
20
|
+
json.galleries do
|
21
|
+
json.array! @tag.galleries
|
22
|
+
end
|
23
|
+
=end
|
@@ -1,20 +1,14 @@
|
|
1
1
|
|
2
|
+
#
|
3
|
+
# _vp_ 20180204
|
2
4
|
# ishapi / tags / show
|
5
|
+
#
|
3
6
|
|
4
7
|
json.id @tag.id.to_s
|
5
8
|
json.name @tag.name
|
6
9
|
json.tagname @tag.tagname
|
7
10
|
|
8
11
|
json.partial! 'ishapi/newsitems/index', :newsitems => @tag.newsitems.page( params[:newsitems_page] ).per( 25 )
|
9
|
-
|
10
|
-
|
11
|
-
json.videos
|
12
|
-
json.array! @tag.videos
|
13
|
-
end
|
14
|
-
json.reports do
|
15
|
-
json.array! @tag.reports
|
16
|
-
end
|
17
|
-
json.galleries do
|
18
|
-
json.array! @tag.galleries
|
19
|
-
end
|
20
|
-
=end
|
12
|
+
json.partial! 'ishapi/reports/index', :reports => @tag.reports.page( params[:reports_page] ).per(25)
|
13
|
+
json.partial! 'ishapi/galleries/index', :galleries => @tag.galleries.page( params[:galleries_page] ).per(25)
|
14
|
+
json.partial! 'ishapi/videos/index', :videos => @tag.videos.page( params[:videos_page] ).per(25)
|
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.
|
4
|
+
version: 0.1.8.65
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -260,6 +260,7 @@ files:
|
|
260
260
|
- app/views/ishapi/reports/show.jbuilder~
|
261
261
|
- app/views/ishapi/sites/show.jbuilder
|
262
262
|
- app/views/ishapi/sites/show.jbuilder~
|
263
|
+
- app/views/ishapi/tags/_widget.jbuilder
|
263
264
|
- app/views/ishapi/tags/index.jbuilder
|
264
265
|
- app/views/ishapi/tags/show.jbuilder
|
265
266
|
- app/views/ishapi/users/_index.jbuilder
|