in_place_edit_with_datepicker 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 71091b6f9913d5cef546bfbc8fc9a052b2593d08
4
- data.tar.gz: c33ba645faa7b55b314a7bcd63a70bcdd8039988
3
+ metadata.gz: 51cd4cd679a9b0441d47f6d35c955c1b5b726ffa
4
+ data.tar.gz: dd03f1a693cc3e3bbd989ad6a8514b88f753dae1
5
5
  SHA512:
6
- metadata.gz: a6a45e8ce37580aa70aa5ba05a39636eb753159731c8a025bfa8c3b9820734519fed9a4943c74656554e6956d0bb4344fa81a79b356aa282d4babbb6faa7815e
7
- data.tar.gz: 0116203acfdbb1255a068888063963866e8984acc1b3659072c68e3dc52f2965967103691a2905d0492a713bf09f11f8e0575df21f762888dd47f788e2ed8802
6
+ metadata.gz: 898fbdf5c746ffe924a440fe82839873ebdf3069fb0c70dfa7faa0f55a65570cadefc392ab35edb863faf5351e17bf83fda7c6871a3c90bd178751ecfb2c629b
7
+ data.tar.gz: 49bf6edd36c50216aca4ed8d4bdc3dc2a49d3f710d0c7683fcae9d3f0ac34c5c4697914cce3f3d26a84fb9a2d38b18332246c68b36d129aed413ca7ca64545c9
data/README.md CHANGED
@@ -18,13 +18,44 @@ Or install it yourself as:
18
18
 
19
19
  $ gem install in_place_edit_with_datepicker
20
20
 
21
- ## Usage
21
+ ## Setup
22
22
 
23
- TODO: Write usage instructions here
23
+ Add the following lines in your application.js in this sequence
24
+ ```ruby
25
+ //= require jquery
26
+ //= require jquery_ujs
27
+ //= require jquery-ui
28
+ //= require jquery-ui-timepicker-addon
29
+ //= require jquery.purr
30
+ //= require best_in_place
31
+ //= require best_in_place_datetime
32
+ //= require turbolinks
33
+ //= require_tree .
34
+ ```
35
+ Add the following to your application.css in this sequence
36
+ ```ruby
37
+ *= jquery-ui-timepicker-addon
38
+ *= require_tree .
39
+ *= require_self
40
+ */
41
+ ```
42
+ Download the following files:
43
+ 1) http://trentrichardson.com/examples/timepicker/jquery-ui-timepicker-addon.css and save to assets/stylesheets
44
+ 2) http://trentrichardson.com/examples/timepicker/jquery-ui-timepicker-addon.js and save to assets/javascripts
24
45
 
46
+ ## Usage
47
+
48
+ The gem works exactly as the best_in_place gem, say for eg:
49
+ ```ruby
50
+ <%= best_in_place @user, :name %>
51
+ ```
52
+ For type datetime,
53
+ ```ruby
54
+ <%= best_in_place @user, :date_of_birth, as: :datetime %>
55
+ ```
25
56
  ## Contributing
26
57
 
27
- 1. Fork it ( https://github.com/[my-github-username]/in_place_edit_with_datepicker/fork )
58
+ 1. Fork it ( https://github.com/AasthaKesarwani1539/in_place_edit_with_datepicker/fork )
28
59
  2. Create your feature branch (`git checkout -b my-new-feature`)
29
60
  3. Commit your changes (`git commit -am 'Add some feature'`)
30
61
  4. Push to the branch (`git push origin my-new-feature`)
@@ -1,3 +1,3 @@
1
1
  module InPlaceEditWithDatepicker
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: in_place_edit_with_datepicker
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
  - Aastha Kesarwani
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-07-13 00:00:00.000000000 Z
12
+ date: 2015-07-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler