ui_datepicker-rails3 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.mdown CHANGED
@@ -110,7 +110,7 @@ Activate datepicker on all matching input elements in one of your javascript (or
110
110
  ```javascript
111
111
  $(document).ready(function(){
112
112
  $('input.ui-date-picker').datepicker();
113
- $('input.ui-datetime-picker').datepicker();
113
+ $('input.ui-datetime-picker').datetimepicker();
114
114
  });
115
115
  ```
116
116
 
@@ -119,7 +119,7 @@ The same in coffescript:
119
119
  ```coffeescript
120
120
  $->
121
121
  $('input.ui-date-picker').datepicker
122
- $('input.ui-datetime-picker').datepicker
122
+ $('input.ui-datetime-picker').datetimepicker
123
123
  ```
124
124
 
125
125
  ## Localization (optional)
@@ -167,10 +167,12 @@ You can use the *Themeroller* (http://jqueryui.com/themeroller/) to define and d
167
167
 
168
168
  Note: It is also possible to load only the js needed for the datepicker widget by using the js files that are downloaded from Themeroller.
169
169
 
170
- A 'smoothness' theme is included with this gem. Simply do:
170
+ A 'smoothness' theme is included with this gem. Simply add to application.css:
171
171
 
172
- ```ruby
173
- <%= stylesheet_link_tag UiDatePickerRails3.ui_theme :smoothness %>
172
+ ```css
173
+ /*
174
+ *= require ui/smoothness/jquery-ui-theme
175
+ */
174
176
  ```
175
177
 
176
178
  ## Advanced configuration
data/lib/engine.rb ADDED
@@ -0,0 +1,4 @@
1
+ module UiDatePickerRails3
2
+ class Engine < Rails::Engine
3
+ end
4
+ end
@@ -27,7 +27,7 @@ module Formtastic::Inputs
27
27
  end
28
28
 
29
29
  def localized value
30
- value.nil? ? nil : I18n.localize(value)
30
+ value.nil? ? nil : I18n.localize(object.send(method))
31
31
  end
32
32
  end
33
33
  end
@@ -1,4 +1,5 @@
1
1
  require 'date_util/localize'
2
+ require 'engine'
2
3
 
3
4
  module UiDatePickerRails3
4
5
  module ClassMethods
@@ -38,4 +39,4 @@ module UiDatePickerRails3
38
39
  end
39
40
  end
40
41
  extend ClassMethods
41
- end
42
+ end
metadata CHANGED
@@ -1,28 +1,37 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ui_datepicker-rails3
3
- version: !ruby/object:Gem::Version
4
- version: 1.0.0
3
+ version: !ruby/object:Gem::Version
4
+ hash: 19
5
5
  prerelease:
6
+ segments:
7
+ - 1
8
+ - 1
9
+ - 0
10
+ version: 1.1.0
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Kristian Mandrup
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2011-11-25 00:00:00.000000000Z
17
+
18
+ date: 2011-11-25 00:00:00 Z
13
19
  dependencies: []
14
- description: jQuery UI datepicker integration for Formtastic, Simple Form and Active
15
- Admin
20
+
21
+ description: jQuery UI datepicker integration for Formtastic, Simple Form and Active Admin
16
22
  email: kmandrup@gmail.com
17
23
  executables: []
24
+
18
25
  extensions: []
19
- extra_rdoc_files:
26
+
27
+ extra_rdoc_files:
20
28
  - README.mdown
21
- files:
29
+ files:
22
30
  - lib/active_admin/inputs/ui_date_picker_input.rb
23
31
  - lib/active_admin/inputs/ui_date_time_picker_input.rb
24
32
  - lib/active_admin/inputs_ext.rb
25
33
  - lib/date_util/localize.rb
34
+ - lib/engine.rb
26
35
  - lib/formtastic/inputs/ui_date_picker_input.rb
27
36
  - lib/formtastic/inputs/ui_date_time_picker_input.rb
28
37
  - lib/formtastic/inputs_ext.rb
@@ -42,31 +51,39 @@ files:
42
51
  - spec/ui_datepicker-rails3_spec.rb
43
52
  - spec/use_in_rails_spec.rb
44
53
  homepage: http://github.com/kristianmandrup/ui_datepicker-rails3x
45
- licenses:
54
+ licenses:
46
55
  - MIT
47
56
  post_install_message:
48
57
  rdoc_options: []
49
- require_paths:
58
+
59
+ require_paths:
50
60
  - lib
51
- required_ruby_version: !ruby/object:Gem::Requirement
61
+ required_ruby_version: !ruby/object:Gem::Requirement
52
62
  none: false
53
- requirements:
54
- - - ! '>='
55
- - !ruby/object:Gem::Version
56
- version: '0'
57
- required_rubygems_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ hash: 3
67
+ segments:
68
+ - 0
69
+ version: "0"
70
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
71
  none: false
59
- requirements:
60
- - - ! '>='
61
- - !ruby/object:Gem::Version
62
- version: '0'
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ hash: 3
76
+ segments:
77
+ - 0
78
+ version: "0"
63
79
  requirements: []
80
+
64
81
  rubyforge_project:
65
- rubygems_version: 1.8.6
82
+ rubygems_version: 1.8.22
66
83
  signing_key:
67
84
  specification_version: 3
68
85
  summary: Use jQuery UI's date picker with formtastic easily
69
- test_files:
86
+ test_files:
70
87
  - spec/base_helper.rb
71
88
  - spec/configure_spec.rb
72
89
  - spec/spec_helper.rb