simplyscroll-rails 1.0.0 → 1.0.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
- SHA1:
3
- metadata.gz: 613c890183aff15e4f71319771d98629c6069714
4
- data.tar.gz: f346372b87d33b27d3b1086776d8f0c6f9322e4d
5
2
  SHA512:
6
- metadata.gz: 042a09a501c17e6789dbfd1c3ff1d1282d3ef02d9e208bb9b4656e5fe069f3a3698bde774fbe80c971e1c19cb2f89e68699829a935642a5c18ae4c61fa9753bd
7
- data.tar.gz: a1ac1d830fa78cc409f9cdad885900f39084ead62f6ab4374cc01d83afb9223acbf0e5dc81f626981ffbd06cc493d8da5a5311e8bc2cdb9c39e44b9bbc5291b2
3
+ metadata.gz: 7632753b10e292b108f90cd1f065988b8f18bc3223f4efb6e9522afcd958edd0987aacc489d0fa9ad35d2caaff40677474aee5aa998c090852cbb94c127b22b5
4
+ data.tar.gz: 53c733e1adae03edb686c2300a9dd89d8b31b9b8a652d02b72b4e29682e8f18b0a73ff0a907f161e32252d2ab70c1a191553be0ee3b8235d70a5673e0d6b03b4
5
+ SHA1:
6
+ metadata.gz: 3abc92c717778dac85aa495087505d0f0378be97
7
+ data.tar.gz: 1d829bd5ee4e1d514250f3da06c3c6913ae63224
data/README.md CHANGED
@@ -1,41 +1,68 @@
1
1
  # SimplyScroll Rails Gem
2
2
 
3
+ For ruby ~> 1.9.3
3
4
 
4
5
  ## Installation
5
6
 
6
7
  Add this line to your application's Gemfile:
7
8
 
9
+ ```ruby
8
10
  gem 'simplyscroll-rails'
9
-
10
- Alternatively, you can get it from Github
11
-
12
- gem 'simplyscroll-rails', :git => 'https://github.com/twoweb/simplyscroll-rails.git'
11
+ ```
13
12
 
14
13
  And then execute:
15
-
14
+ ```
16
15
  $ bundle install
16
+ ```
17
17
 
18
18
  ## Usage
19
19
 
20
- simplyscroll-rails is dependant on jQuery, so make sure you have it in your Gemfile.
20
+ SimplyScroll is dependant on jQuery, so make sure you have it in your Gemfile.
21
21
 
22
+ ```
22
23
  //= require jquery
24
+ ```
23
25
 
24
26
  Add to your app/assets/javascripts/application.js
25
27
 
28
+ ```
26
29
  //= require jquery.simplyscroll
30
+ ```
27
31
 
28
32
  Or for the minified version
29
33
 
34
+ ```
30
35
  //= require jquery.simplyscroll-min
36
+ ```
31
37
 
32
38
  And to your app/assets/stylesheets/application.css
33
39
 
34
- *= require simplyscroll.css
40
+ ```
41
+ @import simplyscroll.css
42
+ ```
43
+
44
+ ## Example
45
+ You don't need any special markup. All you need is to wrap your uls inside the container element. ID "scroller" is mandatory to apply proper styles that come from owl.carousel.css file.
46
+
47
+ ```html
48
+ <ul id="scroller">
49
+ <li><img src="image1.jpg"></li>
50
+ <li><img src="image2.jpg"></li>
51
+ <li><img src="image3.jpg"></li>
52
+ ...
53
+ </ul>
54
+
55
+ <script type="text/javascript">
56
+ $(document).ready(function() {
57
+ $("#scroller").simplyScroll();
58
+ });
59
+ </script>
60
+ ```
35
61
 
36
62
  ## Documentation
37
63
 
38
64
  Usage documentation as well as demos can be found at:
39
65
 
40
- https://github.com/logicbox/jquery-simplyscroll
41
66
  http://logicbox.net/jquery/simplyscroll/
67
+
68
+ https://github.com/logicbox/jquery-simplyscroll
@@ -1,3 +1,3 @@
1
1
  module Simplyscroll
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -59,7 +59,7 @@ Note all DIVs are generated and should not be hard-coded
59
59
 
60
60
  .simply-scroll-btn {
61
61
  position: absolute;
62
- background-image: url(../images/buttons.png);
62
+ background-image: url(buttons.png);
63
63
  width: 42px;
64
64
  height: 44px;
65
65
  z-index:3;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplyscroll-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - TwoWeb
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2015-01-31 00:00:00 Z
12
+ date: 2015-02-02 00:00:00 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails