ishapi 0.1.8.68 → 0.1.8.69

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: 60fd766447e4ad594ec954e9df629574695a76c9
4
- data.tar.gz: a3687232348097cc5a94634f1045e09d8c14408c
3
+ metadata.gz: 673c9fe837a1ba77d8bb26a1ca23fb2b6e135b2e
4
+ data.tar.gz: 6be81ac105a8e49db4e40d341eef339750620405
5
5
  SHA512:
6
- metadata.gz: dd1e61d66a76807385abd0ab8818ed3c1d08f566f5b9f541cd4a872a594bf170b3b5b01040ab474b37f6ceb1946b280fc93726515a26c8ca8f9c95863bd5c710
7
- data.tar.gz: 5548c3d0c7330a924b6e8bdef118786260314002908f24f7d7ed7487bb477277c7cbb3fa2b91d3b6ac9e0a9265ef5728a529ddd8d14c8d84c11968f7926ec74c
6
+ metadata.gz: 3890acc78628bada8285236719ca9c480638ddf98e5fa8e0f4061c84122fc9e43b057520cb2cb3569afade071522c5e3526e7db531b04cd5d0cc6b57d398f7bf
7
+ data.tar.gz: f9b7aaee47cba2bcad6a2d4c8bd84519626580b5d61d270d4fb2570ec28f3587530b56da2b817a94ac62fc1925b36e03e0385d6550e9e92c0f48db59ead0b001
@@ -11,7 +11,6 @@ module Ishapi
11
11
  def features
12
12
  authorize! :index, City
13
13
  @cities = City.where( :is_feature => true )
14
- render 'index'
15
14
  end
16
15
 
17
16
  def show
@@ -8,6 +8,7 @@ module Ishapi
8
8
  authorize! :create, CoTailors::Order
9
9
 
10
10
  # byebug
11
+ # HEREHERE
11
12
 
12
13
  =begin
13
14
  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"}}
@@ -0,0 +1,11 @@
1
+
2
+ json.array! @cities do |city|
3
+ json.id city.id.to_s
4
+ json.name city.name
5
+ json.cityname city.cityname
6
+ json.x city.x
7
+ json.y city.y
8
+ if city.profile_photo
9
+ json.photo city.profile_photo.photo.url( :thumb )
10
+ end
11
+ end
@@ -0,0 +1,9 @@
1
+
2
+ #
3
+ # ishapi / cities / features
4
+ #
5
+
6
+ key = [ ::IshModels::CacheKey.one.feature_cities ]
7
+ json.cache! key do
8
+ json.partial! 'index', :cities => @cities
9
+ end
@@ -5,14 +5,5 @@
5
5
 
6
6
  key = [ ::IshModels::CacheKey.one.cities ]
7
7
  json.cache! key do
8
- json.array! @cities do |city|
9
- json.id city.id.to_s
10
- json.name city.name
11
- json.cityname city.cityname
12
- json.x city.x
13
- json.y city.y
14
- if city.profile_photo
15
- json.photo city.profile_photo.photo.url( :thumb )
16
- end
17
- end
8
+ json.partial! 'index', :cities => @cities
18
9
  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.68
4
+ version: 0.1.8.69
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-10 00:00:00.000000000 Z
11
+ date: 2018-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -227,6 +227,8 @@ files:
227
227
  - app/views/ishapi/articles/index.html.erb
228
228
  - app/views/ishapi/articles/new.html.erb
229
229
  - app/views/ishapi/articles/show.html.erb
230
+ - app/views/ishapi/cities/_index.jbuilder
231
+ - app/views/ishapi/cities/features.jbuilder
230
232
  - app/views/ishapi/cities/index.jbuilder
231
233
  - app/views/ishapi/cities/show.jbuilder
232
234
  - app/views/ishapi/cities/show.jbuilder~