zebra-datepicker-rails 0.0.1 → 0.0.2

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: 62ba7ffb58d30656e4589548d15da46d7866b962
4
- data.tar.gz: 4461d20fc403daa1bd1a7843fa08cd2cf657c1bb
3
+ metadata.gz: ed19a461f13ccbbe0a83334d0c2bae01798bb7f6
4
+ data.tar.gz: bd7aac2eb6b94e3ddeb89911bf57655837ce35cf
5
5
  SHA512:
6
- metadata.gz: afcf3d29def4120ef97b8ac371264b4c78ea66eba1e7fdb06b7eaa4035014eed5f214bfc82814e61a29f82352ea4c4fcb9bc9a7f4e8b1afe510e2954fd3e3c32
7
- data.tar.gz: c88b88714e7eecec4a6901649cfe0bbfb397be60a26dfcd5c2936f601638f06a96d9c181e7107462714d9b226fd277cfd0c4eb99afdf43bc9f805eb5eadfe429
6
+ metadata.gz: e44d53d9cb9529a2036b4786bc0412942e919c4f6b271edda5a28305501ba19d82f2ce0c976332508a6f38aa0a1ab7ea60d764d47ec9e258b1a5c4fb337adf9e
7
+ data.tar.gz: a9c93f0c98d5d1603393915bc691d3a364634bbfa155e5d479f78b96b86e7402225b83408995026917934ea78a28505a8942cfa097bee99cd33f612703d22b5d
data/README.md CHANGED
@@ -1,29 +1,57 @@
1
- # Zebra::Datepicker::Rails
1
+ # Zebra Datepicker for Rails
2
2
 
3
- TODO: Write a gem description
3
+ zebra-datepicker-rails gem integrates the Zebra Datepicker with Rails assets pipeline.
4
4
 
5
- ## Installation
5
+ http://github.com/derencius/zebra-datepicker-rails
6
6
 
7
- Add this line to your application's Gemfile:
7
+ https://github.com/stefangabos/Zebra_Datepicker/
8
8
 
9
- gem 'zebra-datepicker-rails'
9
+ ## Rails > 3.1
10
+ Include zebra-datepicker-rails in Gemfile;
10
11
 
11
- And then execute:
12
+ ``` ruby
13
+ gem 'zebra-datepicker-rails'
14
+ ```
12
15
 
13
- $ bundle
16
+ and run bundle install.
14
17
 
15
- Or install it yourself as:
18
+ ## Configuration
16
19
 
17
- $ gem install zebra-datepicker-rails
20
+ Add this line to app/assets/stylesheets/application.css
18
21
 
19
- ## Usage
22
+ ``` css
23
+ @import "zebra-datepicker/default";
24
+ ```
20
25
 
21
- TODO: Write usage instructions here
26
+ Add this line to app/assets/javascripts/application.js
22
27
 
23
- ## Contributing
28
+ ``` javascript
29
+ //= require zebra-datepicker/core
30
+ ```
24
31
 
25
- 1. Fork it
26
- 2. Create your feature branch (`git checkout -b my-new-feature`)
27
- 3. Commit your changes (`git commit -am 'Add some feature'`)
28
- 4. Push to the branch (`git push origin my-new-feature`)
29
- 5. Create new Pull Request
32
+ ## Using zebra-datepicker-rails
33
+
34
+ Call .Zebra_DatePicker() with any selector.
35
+
36
+ ```html
37
+ <input type="text" data-behaviour='datepicker' >
38
+
39
+ <script type="text/javascript">
40
+ $('[data-behaviour~=datepicker]').Zebra_DatePicker();
41
+ </script>
42
+ ```
43
+
44
+ ## Questions? Bugs?
45
+
46
+ Use Github Issues.
47
+
48
+ ## Thanks To
49
+
50
+ This project is based on https://raw.github.com/Nerian/bootstrap-datepicker-rails
51
+
52
+ ## License
53
+ Copyright (c) 2013 Marcus Derencius
54
+
55
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
56
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
57
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,5 +1,5 @@
1
1
  module ZebraDatepickerRails
2
2
  module Rails
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -0,0 +1 @@
1
+ //= require zebra-datepicker/zebra_datepicker
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zebra-datepicker-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcus Derencius
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-17 00:00:00.000000000 Z
11
+ date: 2013-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -88,7 +88,8 @@ files:
88
88
  - vendor/assets/images/zebra-datepicker/metallic/disabled-date.png
89
89
  - vendor/assets/images/zebra-datepicker/metallic/header.png
90
90
  - vendor/assets/images/zebra-datepicker/metallic/selected-date.png
91
- - vendor/assets/javascripts/zebra-datepicker/zebra_datepicker.src.js
91
+ - vendor/assets/javascripts/zebra-datepicker/core.js
92
+ - vendor/assets/javascripts/zebra-datepicker/zebra_datepicker.js
92
93
  - vendor/assets/stylesheets/zebra-datepicker/bootstrap.css
93
94
  - vendor/assets/stylesheets/zebra-datepicker/default.css
94
95
  - vendor/assets/stylesheets/zebra-datepicker/metallic.css