breakpoint-slicer 1.3.4 → 1.3.5.alpha.pre.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 015aa6e59d2d2858f2293181dc4c4a7e7a35ba3b
4
- data.tar.gz: c8e461089e313b91df34f46b279b0fd6e3f49d5d
3
+ metadata.gz: ac6d26ff7668ad716717ac63c79fbda5e9875767
4
+ data.tar.gz: 1e3a751fd2923fb1adfa769862d1b6f0e2bee34a
5
5
  SHA512:
6
- metadata.gz: 12d8099d1049633be87cd5e1172aaa2b5ede10e780bf33c7982c30b5c771915a3ef02a6557e840d11871083ba8633c11dcd7d92c7051b005dbba8c6cde77564a
7
- data.tar.gz: 6f36e4220db7d5e09bed6fe9dcab1f6f82f80ea135184f7134daca8722aad9fe5c381cb362a10bc1312ad7abff866eb8f43946ba7bfd7e7a229237fd14dd2f41
6
+ metadata.gz: 904e243f2a29e0c11762ee0781d5c3c8b04708e4e476ab5c4c35927ca2bb618a61933e55eae6dc02b7ae2bffc704121a2c4a3cce96e1509f354ecea4bf6f574f
7
+ data.tar.gz: 41f5c00c895a399cca68fd66a62f76401ba77c2112592048e8e0f5646112ad50d655da8fb10aca264589c33b9ef867181be8b1b584751e7357803b3ba09499e5
@@ -4,6 +4,6 @@ require 'breakpoint'
4
4
  Compass::Frameworks.register("breakpoint-slicer", :path => "#{File.dirname(__FILE__)}/..")
5
5
 
6
6
  module BreakpointSlicer
7
- VERSION = "1.3.4"
8
- DATE = "2014-06-15"
7
+ VERSION = "1.3.5.alpha-1"
8
+ DATE = "2014-10-23"
9
9
  end
@@ -122,4 +122,34 @@
122
122
  //@warn "slice-id is falsy"
123
123
 
124
124
  // Assume an id was given in the first place
125
- @return $slice-id-or-name
125
+ @return $slice-id-or-name
126
+
127
+
128
+ // prev-slice($slice-id-or-name)
129
+ //
130
+ // Returns previous slice id for the given slice
131
+ @function prev-slice($slice-id-or-name)
132
+
133
+ $slice-id: get-slice-id($slice-id-or-name)
134
+
135
+ @if $slice-id > 1
136
+ $slice-id: $slice-id - 1
137
+ @else
138
+ @warn "Previous slice for the first slice requested"
139
+
140
+ @return $slice-id
141
+
142
+
143
+ // next-slice($slice-id-or-name)
144
+ //
145
+ // Returns next slice id for the given slice
146
+ @function prev-slice($slice-id-or-name)
147
+
148
+ $slice-id: get-slice-id($slice-id-or-name)
149
+
150
+ @if $slice-id < total-slices()
151
+ $slice-id: $slice-id + 1
152
+ @else
153
+ @warn "Previous slice for the first slice requested"
154
+
155
+ @return $slice-id
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: breakpoint-slicer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.4
4
+ version: 1.3.5.alpha.pre.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey 'lolmaus' Mikhaylov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-15 00:00:00.000000000 Z
11
+ date: 2014-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass
@@ -82,8 +82,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  - !ruby/object:Gem::Version
83
83
  version: '1.2'
84
84
  requirements: []
85
- rubyforge_project: singularitygs
86
- rubygems_version: 2.3.0
85
+ rubyforge_project:
86
+ rubygems_version: 2.4.1
87
87
  signing_key:
88
88
  specification_version: 4
89
89
  summary: Along with Respond To, Breakpoint Slicer is an alternative syntax for Breakpoint.