prime_sliding_action 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDU5YTQzMjhiYjU3MDI2NDAzMzZjNjNhYTlhYTI3N2NmOTk4ZjU5MQ==
4
+ NThhMzk3NzY5OGFmYWUyNWFhMGU5MzFjMGIwZjQ5NDJmMTA1OGE0MQ==
5
5
  data.tar.gz: !binary |-
6
- OWE0NWNiODE5MzY5MzU4ZTIzMDFlNzZiNTMxYTQ3OTE0ZGVjNzE5NQ==
6
+ ZGVlYTA0YzE1OWI1OTlkOThiYzQ5OWMwYzkzZDYzZjEyZDg3Mzk3ZQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZTQ1NzE3YmQ2OGIwYmFjNzEzY2QxZjQzMjNmM2YyMWQwNWFmMDRjMmFjY2U3
10
- ZWQ4ZmZhNjZiOTM0NjZkOGJlMWVlYjc5OWVhNWRjZTQyMDBiNzIxNWNlZjMx
11
- NzQ1NDNlMDZjOGNkY2NkODVmY2U2NGJkOWE4ZDVjZjk4YjFkYWE=
9
+ ODY1YTUxZDhiYTRjYTMyMzEzN2NmYTcxMGVjMzkyYWEyODQzNzI5YTRjODNl
10
+ ZWU3ZmJmOGZjNTkxMWQzOTgyMjlmZjg1N2Y1MmQzYThmODUyNjBhOWFiNjM4
11
+ ZTlkMWUwZGQ3OGQxOTM5Mzk0NGRhMDU4YWVhNzdhYmQ4YmNlOTM=
12
12
  data.tar.gz: !binary |-
13
- ZDUwMTE3NmExOGQ4MGRlNzZiYjFiOGRiYmNmNmU0MDlkN2NlYzc1NjA3OWNl
14
- YjFmNTVhZDJjMDk1ZjFlMTMwYmM3MTBjZmNmNTAzNDI4YzczMGJlODgyN2I2
15
- ZDgzMTQ0MTcyMzRlNTY3ODZiNTJkZDY5MDljMTkzOTkwMDRkN2E=
13
+ ZjA3ZTg0NGQwZDNiNmI0NjM2ODhmMDhhM2ZlMmNjYjE2NGVmNDA4OWY0ZGUy
14
+ YjY1ZGFhNGI1YTU2MjAwOTYxYzczMTJjZGI3MjhjYWQ5NzJmODBhYjA4N2I3
15
+ NGEyYTVhOGFjZjA5NWY2ZjVhYTQzYTExMzU5OGQ1Mjc0NjE1NzQ=
@@ -14,8 +14,12 @@ module SlidingCellContainerMixin
14
14
  has_drawn_content: true
15
15
  })
16
16
  options[:styles] ||= []
17
- options[:styles] = [:"#{table.name}_first_cell"] if table.data.first == self
18
- options[:styles] = [:"#{table.name}_last_cell"] if table.data.last == self
17
+ if collection_section.data.first == self
18
+ options[:styles] = [:"#{collection_section.name}_first_cell"]
19
+ end
20
+ if collection_section.data.last == self
21
+ options[:styles] = [:"#{collection_section.name}_last_cell"]
22
+ end
19
23
  MotionPrime::BaseElement.factory(:sliding_cell, options)
20
24
  end
21
25
  else
@@ -1,4 +1,4 @@
1
- class SlidingCellView < MPCellWithSection
1
+ class SlidingCellView < MPTableCellWithSection
2
2
  attr_accessor :pan_recognizer, :tap_recognizer, :sliding_action_buttons
3
3
 
4
4
  def setSection(section)
@@ -6,7 +6,7 @@ class SlidingCellView < MPCellWithSection
6
6
  self.content_view.setSection(@section)
7
7
  if section
8
8
  # init section
9
- @table = @section.table.table_view
9
+ @table = @section.collection_section.collection_view
10
10
  @table.directionalLockEnabled = true
11
11
 
12
12
  unless @sliding_action_buttons_rendered
@@ -1,3 +1,3 @@
1
1
  module PrimeSlidingAction
2
- VERSION = '0.2.1'
2
+ VERSION = '0.3.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prime_sliding_action
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Iskander Haziev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-01 00:00:00.000000000 Z
11
+ date: 2014-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
- version: 0.9.7
61
+ version: 0.9.9.1
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ! '>='
67
67
  - !ruby/object:Gem::Version
68
- version: 0.9.7
68
+ version: 0.9.9.1
69
69
  description: Add sliding action cells support to MotionPrime.
70
70
  email:
71
71
  - gvalmon@gmail.com