conquer 0.1.3 → 0.1.4

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: be21e7ddd8cedfeaaba0cc9bc90d6423096452f3
4
- data.tar.gz: 06f98150f741a61d627f707aa10e7f5a52bad25a
3
+ metadata.gz: 0dd0686e30b1c25647935b4bde7d804e54ef54b5
4
+ data.tar.gz: 0f1e71d3cb3e5e4df481d18f5e1023d3db96272f
5
5
  SHA512:
6
- metadata.gz: 24e854bde7307befc1374b5357071c2157ddf2f8f5b4debbbf8373104b9d1d171ef2da689af832e2b3883251afc173fab2aa7164f2dc0ac0ea4aa02faf0e934e
7
- data.tar.gz: 3af0893c38747bd6324ce96bd77c196ee4be3228d1826fc854b8e6a94ef1e83c58a6ba4c9f31f03f3a4b628dc0a920fa55ec3916921c6a911a63d3db91d96b3e
6
+ metadata.gz: 4f72708b4fd8cab0393ebc54b3e28d329f56519519e7e4c5d07b06d39ccf79bcbf00d266297160ad135f38bc6c45a8bbfabbad022cab6b358841f68f5d0dbb7e
7
+ data.tar.gz: 2ea036fe42849d434c84f0eb577696493a2237da5e49e1b43f803b304f4e5ab258c3f635b66cb0ed0d3d797f6b5e11053e55631df2fed5584bc4b6e81117ab23
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Joakim Reinert
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md CHANGED
@@ -32,5 +32,4 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
32
32
 
33
33
  ## Contributing
34
34
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/conquer.
36
-
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/jreinert/conquer.
@@ -37,6 +37,8 @@ module Conquer
37
37
 
38
38
  def advance_scroll_position
39
39
  content_size = @content.size
40
+ return if content_size <= @options[:width]
41
+
40
42
  scroll_position = @scroll_position + @options[:step]
41
43
  margin = @options[:width] - @options[:step]
42
44
  scroll_position = 0 if scroll_position > (content_size - margin)
@@ -1,3 +1,3 @@
1
1
  module Conquer
2
- VERSION = '0.1.3'.freeze
2
+ VERSION = '0.1.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conquer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joakim Reinert
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-06-09 00:00:00.000000000 Z
11
+ date: 2016-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -92,6 +92,7 @@ files:
92
92
  - ".rspec"
93
93
  - ".travis.yml"
94
94
  - Gemfile
95
+ - LICENSE
95
96
  - README.md
96
97
  - Rakefile
97
98
  - bin/console