smoothslider 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 43803043030414df20049be2f902b12c8edbb2ce
4
+ data.tar.gz: 1048bd25c01c4e823883b36defe971cb822d5ddc
5
+ SHA512:
6
+ metadata.gz: 7a3d890b902a22841f47b8706fb211b920bff4a42992ee31bbc9f3b8e1fefdeb13363609a5086737e747899af3e49159c1b36f7eacf89a5ec0cbfca4eb128c8a
7
+ data.tar.gz: 2b75f4b8706c771cb428899d2a9ac2dbd1a2cc4c469d9d361947d8c73957428bc3d0efc30f0827dbab002d4534ed677c3bdd2b6a5a504a2c0f4e6e72e4d864fe
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.4.1
5
+ before_install: gem install bundler -v 1.16.1
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at arjunghimire0714@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in smoothslider.gemspec
6
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Arjun Ghimire
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 ADDED
@@ -0,0 +1,482 @@
1
+ # Smoothslider
2
+
3
+ Welcome to Everybody!.
4
+ The best responsive slider. Period.
5
+
6
+ ## Installation
7
+
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem 'smoothslider'
12
+ ```
13
+
14
+ And then execute:
15
+
16
+ $ bundle
17
+
18
+ Or install it yourself as:
19
+
20
+ $ gem install smoothslider
21
+
22
+ ## Usage
23
+ Import Bootstrap styles in app/assets/stylesheets/application.scss:
24
+ ```scss
25
+ @import "smoothslider";
26
+ ```
27
+
28
+ Require Bootstrap Javascripts in app/assets/javascripts/application.js:
29
+ ```js
30
+ //= require smoothslider
31
+ ```
32
+
33
+ How to use:
34
+ 1.Single page Smooth slider
35
+ ```html
36
+ <a href="#menu1" class="scroll">Menu 1</a>
37
+ <a href="#menu2" class="scroll">Menu 2</a>
38
+ <a href="#menu3" class="scroll">Menu 3</a>
39
+
40
+ <div id="menu1"></div>
41
+ <div id="menu2"></div>
42
+ <div id="menu3"></div>
43
+ ```
44
+ 2.Basic Slider
45
+ ```html
46
+ <div class="flexslider">
47
+ <ul class="slides">
48
+ <li>
49
+ <img src="slide1.jpg" />
50
+ </li>
51
+ <li>
52
+ <img src="slide2.jpg" />
53
+ </li>
54
+ <li>
55
+ <img src="slide3.jpg" />
56
+ </li>
57
+ <li>
58
+ <img src="slide4.jpg" />
59
+ </li>
60
+ </ul>
61
+ </div>
62
+ ```
63
+ ```js
64
+ // Can also be used with $(document).ready()
65
+ $(window).load(function() {
66
+ $('.flexslider').flexslider({
67
+ animation: "slide"
68
+ });
69
+ });
70
+ ```
71
+ 3.Basic Slider customDirectionNav
72
+ ```html
73
+ <div class="flexslider">
74
+ <ul class="slides">
75
+ <li>
76
+ <img src="slide1.jpg" />
77
+ </li>
78
+ <li>
79
+ <img src="slide2.jpg" />
80
+ </li>
81
+ <li>
82
+ <img src="slide3.jpg" />
83
+ </li>
84
+ <li>
85
+ <img src="slide4.jpg" />
86
+ </li>
87
+ </ul>
88
+ </div>
89
+ <div class="custom-navigation">
90
+ <a href="#" class="flex-prev">Prev</a>
91
+ <div class="custom-controls-container"></div>
92
+ <a href="#" class="flex-next">Next</a>
93
+ </div>
94
+ ```
95
+ ```js
96
+ // Can also be used with $(document).ready()
97
+ $(window).load(function() {
98
+ $('.flexslider').flexslider({
99
+ animation: "slide",
100
+ controlsContainer: $(".custom-controls-container"),
101
+ customDirectionNav: $(".custom-navigation a")
102
+ });
103
+ });
104
+ ```
105
+ 4.Basic Slider with Simple Caption
106
+ ```html
107
+ <div class="flexslider">
108
+ <ul class="slides">
109
+ <li>
110
+ <img src="slide1.jpg" />
111
+ <p class="flex-caption">Adventurer Cheesecake Brownie</p>
112
+ </li>
113
+ <li>
114
+ <img src="slide2.jpg" />
115
+ <p class="flex-caption">Adventurer Lemon</p>
116
+ </li>
117
+ <li>
118
+ <img src="slide3.jpg" />
119
+ <p class="flex-caption">Adventurer Donut</p>
120
+ </li>
121
+ <li>
122
+ <img src="slide4.jpg" />
123
+ <p class="flex-caption">Adventurer Caramel</p>
124
+ </li>
125
+ </ul>
126
+ </div>
127
+ ```
128
+ ```css
129
+ .flex-caption {
130
+ width: 100%;
131
+ padding: 2%;
132
+ left: 0;
133
+ bottom: 0;
134
+ background: rgba(0,0,0,.5);
135
+ color: #fff;
136
+ text-shadow: 0 -1px 0 rgba(0,0,0,.3);
137
+ font-size: 14px;
138
+ line-height: 18px;
139
+ }
140
+ ```
141
+ ```js
142
+ // Can also be used with $(document).ready()
143
+ $(window).load(function() {
144
+ $('.flexslider').flexslider({
145
+ animation: "slide"
146
+ });
147
+ });
148
+ ```
149
+ 5.Slider w/thumbnail controlNav pattern
150
+ ```html
151
+ <div class="flexslider">
152
+ <ul class="slides">
153
+ <li data-thumb="slide1-thumb.jpg">
154
+ <img src="slide1.jpg" />
155
+ </li>
156
+ <li data-thumb="slide2-thumb.jpg">
157
+ <img src="slide2.jpg" />
158
+ </li>
159
+ <li data-thumb="slide3-thumb.jpg">
160
+ <img src="slide3.jpg" />
161
+ </li>
162
+ <li data-thumb="slide4-thumb.jpg">
163
+ <img src="slide4.jpg" />
164
+ </li>
165
+ </ul>
166
+ </div>
167
+ ```
168
+ ```js
169
+ // Can also be used with $(document).ready()
170
+ $(window).load(function() {
171
+ $('.flexslider').flexslider({
172
+ animation: "slide",
173
+ controlNav: "thumbnails"
174
+ });
175
+ })
176
+ ```
177
+ 6.Slider w/thumbnail slider
178
+ ```html
179
+ <div id="slider" class="flexslider">
180
+ <ul class="slides">
181
+ <li>
182
+ <img src="slide1.jpg" />
183
+ </li>
184
+ <li>
185
+ <img src="slide2.jpg" />
186
+ </li>
187
+ <li>
188
+ <img src="slide3.jpg" />
189
+ </li>
190
+ <li>
191
+ <img src="slide4.jpg" />
192
+ </li>
193
+ <!-- items mirrored twice, total of 12 -->
194
+ </ul>
195
+ </div>
196
+ <div id="carousel" class="flexslider">
197
+ <ul class="slides">
198
+ <li>
199
+ <img src="slide1.jpg" />
200
+ </li>
201
+ <li>
202
+ <img src="slide2.jpg" />
203
+ </li>
204
+ <li>
205
+ <img src="slide3.jpg" />
206
+ </li>
207
+ <li>
208
+ <img src="slide4.jpg" />
209
+ </li>
210
+ <!-- items mirrored twice, total of 12 -->
211
+ </ul>
212
+ </div>
213
+ ```
214
+ ```js
215
+ $(window).load(function() {
216
+ // The slider being synced must be initialized first
217
+ $('#carousel').flexslider({
218
+ animation: "slide",
219
+ controlNav: false,
220
+ animationLoop: false,
221
+ slideshow: false,
222
+ itemWidth: 210,
223
+ itemMargin: 5,
224
+ asNavFor: '#slider'
225
+ });
226
+
227
+ $('#slider').flexslider({
228
+ animation: "slide",
229
+ controlNav: false,
230
+ animationLoop: false,
231
+ slideshow: false,
232
+ sync: "#carousel"
233
+ });
234
+ });
235
+
236
+ ```
237
+ 7.Basic Carousel
238
+ ```html
239
+ <div class="flexslider">
240
+ <ul class="slides">
241
+ <li>
242
+ <img src="slide1.jpg" />
243
+ </li>
244
+ <li>
245
+ <img src="slide2.jpg" />
246
+ </li>
247
+ <li>
248
+ <img src="slide3.jpg" />
249
+ </li>
250
+ <li>
251
+ <img src="slide4.jpg" />
252
+ </li>
253
+ <!-- items mirrored twice, total of 12 -->
254
+ </ul>
255
+ </div>
256
+ ```
257
+ ```js
258
+ $(window).load(function() {
259
+ $('.flexslider').flexslider({
260
+ animation: "slide",
261
+ animationLoop: false,
262
+ itemWidth: 210,
263
+ itemMargin: 5
264
+ });
265
+ });
266
+ ```
267
+ 8.Carousel With Min & Max Ranges
268
+ ```html
269
+ <div class="flexslider">
270
+ <ul class="slides">
271
+ <li>
272
+ <img src="slide1.jpg" />
273
+ </li>
274
+ <li>
275
+ <img src="slide2.jpg" />
276
+ </li>
277
+ <li>
278
+ <img src="slide3.jpg" />
279
+ </li>
280
+ <li>
281
+ <img src="slide4.jpg" />
282
+ </li>
283
+ <!-- items mirrored twice, total of 12 -->
284
+ </ul>
285
+ </div>
286
+ ```
287
+ ```js
288
+ $(window).load(function() {
289
+ $('.flexslider').flexslider({
290
+ animation: "slide",
291
+ animationLoop: false,
292
+ itemWidth: 210,
293
+ itemMargin: 5,
294
+ minItems: 2,
295
+ maxItems: 4
296
+ });
297
+ });
298
+ ```
299
+ 9.Carousel With Min & Max Ranges
300
+ ```html
301
+ <div class="flexslider">
302
+ <ul class="slides">
303
+ <li>
304
+ <img src="slide1.jpg" />
305
+ </li>
306
+ <li>
307
+ <img src="slide2.jpg" />
308
+ </li>
309
+ <li>
310
+ <img src="slide3.jpg" />
311
+ </li>
312
+ <li>
313
+ <img src="slide4.jpg" />
314
+ </li>
315
+ <!-- items mirrored twice, total of 12 -->
316
+ </ul>
317
+ </div>
318
+ ```
319
+ ```js
320
+ (function() {
321
+
322
+ // store the slider in a local variable
323
+ var $window = $(window),
324
+ flexslider = { vars:{} };
325
+
326
+ // tiny helper function to add breakpoints
327
+ function getGridSize() {
328
+ return (window.innerWidth < 600) ? 2 :
329
+ (window.innerWidth < 900) ? 3 : 4;
330
+ }
331
+
332
+ $(function() {
333
+ SyntaxHighlighter.all();
334
+ });
335
+
336
+ $window.load(function() {
337
+ $('.flexslider').flexslider({
338
+ animation: "slide",
339
+ animationLoop: false,
340
+ itemWidth: 210,
341
+ itemMargin: 5,
342
+ minItems: getGridSize(), // use function to pull in initial value
343
+ maxItems: getGridSize() // use function to pull in initial value
344
+ });
345
+ });
346
+
347
+ // check grid size on resize event
348
+ $window.resize(function() {
349
+ var gridSize = getGridSize();
350
+
351
+ flexslider.vars.minItems = gridSize;
352
+ flexslider.vars.maxItems = gridSize;
353
+ });
354
+ }());
355
+ ```
356
+ 10.Video & the api (vimeo)
357
+ ```html
358
+ <div class="flexslider">
359
+ <ul class="slides">
360
+ <li>
361
+ <iframe id="player_1" src="https://player.vimeo.com/video/39683393?api=1&player_id=player_1" width="500" height="281" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
362
+ </li>
363
+ <li>
364
+ <img src="slide2.jpg" />
365
+ </li>
366
+ <li>
367
+ <img src="slide3.jpg" />
368
+ </li>
369
+ <li>
370
+ <img src="slide4.jpg" />
371
+ </li>
372
+ </ul>
373
+ </div>
374
+ ```
375
+ ```js
376
+ // Can also be used with $(document).ready()
377
+ $(window).load(function() {
378
+
379
+ // Vimeo API nonsense
380
+ var player = document.getElementById('player_1');
381
+ $f(player).addEvent('ready', ready);
382
+
383
+ function addEvent(element, eventName, callback) {
384
+ if (element.addEventListener) {
385
+ element.addEventListener(eventName, callback, false)
386
+ } else {
387
+ element.attachEvent(eventName, callback, false);
388
+ }
389
+ }
390
+
391
+ function ready(player_id) {
392
+ var froogaloop = $f(player_id);
393
+ froogaloop.addEvent('play', function(data) {
394
+ $('.flexslider').flexslider("pause");
395
+ });
396
+ froogaloop.addEvent('pause', function(data) {
397
+ $('.flexslider').flexslider("play");
398
+ });
399
+ }
400
+
401
+
402
+ // Call fitVid before FlexSlider initializes, so the proper initial height can be retrieved.
403
+ $(".flexslider")
404
+ .fitVids()
405
+ .flexslider({
406
+ animation: "slide",
407
+ useCSS: false,
408
+ animationLoop: false,
409
+ smoothHeight: true,
410
+ before: function(slider){
411
+ $f(player).api('pause');
412
+ }
413
+ });
414
+ });
415
+ ```
416
+ 11.Video & the api (wistia)
417
+ ```html
418
+ <div class="flexslider">
419
+ <ul class="slides">
420
+ <li>
421
+ <iframe id="player_1" src="http://fast.wistia.com/embed/iframe/t4yniozocs?controlsVisibleOnLoad=true&playerColor=474745&version=v1&videoHeight=366&videoWidth=650&volumeControl=true&videoFoam=true" allowtransparency="true" frameborder="0" scrolling="no" class="wistia_embed" name="wistia_embed" width="650" height="366"></iframe>
422
+ </li>
423
+ <li>
424
+ <img src="slide2.jpg" />
425
+ </li>
426
+ <li>
427
+ <img src="slide3.jpg" />
428
+ </li>
429
+ <li>
430
+ <img src="slide4.jpg" />
431
+ </li>
432
+ </ul>
433
+ </div>
434
+ ```
435
+ ```js
436
+ // Can also be used with $(document).ready()
437
+ $(window).load(function(){
438
+ // Wistia handler.
439
+ wistiaEmbed = document.getElementById( 'player_1' ).wistiaApi;
440
+
441
+ // Call fitVid before FlexSlider initializes, so the proper initial height can be retrieved.
442
+ $( '.flexslider' )
443
+ .fitVids()
444
+ .flexslider({
445
+ animation: 'slide',
446
+ useCSS: false,
447
+ animationLoop: false,
448
+ smoothHeight: true,
449
+ start: function( slider ) {
450
+ $('body').removeClass( 'loading' );
451
+ },
452
+ before: function ( slider ) {
453
+ wistiaEmbed.pause();
454
+ }
455
+ });
456
+
457
+ wistiaEmbed.bind( 'play', function() {
458
+ jQuery( '.flexslider' ).flexslider( 'pause' );
459
+ });
460
+
461
+ wistiaEmbed.bind( 'end', function() {
462
+ jQuery( '.flexslider' ).flexslider( 'play' );
463
+ });
464
+ });
465
+ ```
466
+ ## Development
467
+
468
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
469
+
470
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
471
+
472
+ ## Contributing
473
+
474
+ Bug reports and pull requests are welcome on GitHub at https://github.com/arjunghimire/smoothslider. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
475
+
476
+ ## License
477
+
478
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
479
+
480
+ ## Code of Conduct
481
+
482
+ Everyone interacting in the Flexslider project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/arjunghimire/smoothslider/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "smoothslider"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,3 @@
1
+ module Smoothslider
2
+ VERSION = "1.0.0"
3
+ end
@@ -0,0 +1,5 @@
1
+ require "smoothslider/version"
2
+
3
+ module Smoothslider
4
+ class Engine < ::Rails::Engine; end
5
+ end
@@ -0,0 +1,36 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "smoothslider/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "smoothslider"
8
+ spec.version = Smoothslider::VERSION
9
+ spec.authors = ["Arjun Ghimire"]
10
+ spec.email = ["arjunghimire0714@gmail.com"]
11
+
12
+ spec.summary = "Smoothslider is a slider which can use for smooth navigation in a single page websites & responsive slider for many websites."
13
+ spec.description = "Smoothslider is a slider which can use for smooth navigation in a single page websites & responsive slider for many websites"
14
+ spec.homepage = "https://github.com/careyousit/smoothslider.git"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
21
+ else
22
+ raise "RubyGems 2.0 or newer is required to protect against " \
23
+ "public gem pushes."
24
+ end
25
+
26
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
+ f.match(%r{^(test|spec|features)/})
28
+ end
29
+ spec.bindir = "exe"
30
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
+ spec.require_paths = ["lib"]
32
+
33
+ spec.add_development_dependency "bundler", "~> 1.16"
34
+ spec.add_development_dependency "rake", "~> 10.0"
35
+ spec.add_development_dependency "rspec", "~> 3.0"
36
+ end
metadata ADDED
@@ -0,0 +1,102 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: smoothslider
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Arjun Ghimire
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-01-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.16'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.16'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ description: Smoothslider is a slider which can use for smooth navigation in a single
56
+ page websites & responsive slider for many websites
57
+ email:
58
+ - arjunghimire0714@gmail.com
59
+ executables: []
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - ".gitignore"
64
+ - ".rspec"
65
+ - ".travis.yml"
66
+ - CODE_OF_CONDUCT.md
67
+ - Gemfile
68
+ - LICENSE.txt
69
+ - README.md
70
+ - Rakefile
71
+ - bin/console
72
+ - bin/setup
73
+ - lib/smoothslider.rb
74
+ - lib/smoothslider/version.rb
75
+ - smoothslider.gemspec
76
+ homepage: https://github.com/careyousit/smoothslider.git
77
+ licenses:
78
+ - MIT
79
+ metadata:
80
+ allowed_push_host: https://rubygems.org
81
+ post_install_message:
82
+ rdoc_options: []
83
+ require_paths:
84
+ - lib
85
+ required_ruby_version: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ required_rubygems_version: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
95
+ requirements: []
96
+ rubyforge_project:
97
+ rubygems_version: 2.6.14
98
+ signing_key:
99
+ specification_version: 4
100
+ summary: Smoothslider is a slider which can use for smooth navigation in a single
101
+ page websites & responsive slider for many websites.
102
+ test_files: []