jquery-datetimepicker-rails 2.0.9.0 → 2.1.0.0

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: b6906eae163239f9fd7e1b8c5d9af7b879e5db37
4
- data.tar.gz: dfc1e87ef79d0a31771d50324c4be3a101f98fd8
3
+ metadata.gz: ab0c45d73dc4569f78d9049d511bad790595b000
4
+ data.tar.gz: 78af93a2575c8e7f669fdf66493818faf406f6c9
5
5
  SHA512:
6
- metadata.gz: ab58649b83c1e876fd7b6d31c89393557f41d109c614021d78d400e7ea52a70bbdef87eee25ff93418e8e438ab96265778100bd26bdca464c8e510ff94d1e3fd
7
- data.tar.gz: 34c295abbe4f2c73f2e58a9ced89de5b0e33d072ff8f41eee18d33ec3a6c3574de832f35fed27dafd5a44e72a672dc78227c08c8a875101551f5233522ca5ede
6
+ metadata.gz: d0420259efe8301b3f7fab8a1e14499c7f3452b9e110a2bff0771f514b3ec85a54e693e255cc380d3b7872c63bf3bf2933ae3d25ae2934cb4a796bc444238ade
7
+ data.tar.gz: 542e4a3322be1e27daeb589fe2f0971fa84995ccfaa8ae092c3e48f19224eb1f13c92033e17051c29d7884ae90fee783d411aacb63f7aea01e0fb05a9e1252c4
@@ -1,9 +1,92 @@
1
1
  /**
2
- * @preserve jQuery DateTimePicker plugin v2.0.9
2
+ * @preserve jQuery DateTimePicker plugin v2.1.0
3
3
  * @homepage http://xdsoft.net/jqplugins/datetimepicker/
4
4
  * (c) 2013, Chupurnov Valeriy.
5
5
  */
6
6
  (function( $ ) {
7
+ var default_options = {
8
+ i18n:{
9
+ ru:{
10
+ months:[
11
+ 'Январь','Февраль','Март','Апрель','Май','Июнь','Июль','Август','Сентябрь','Октябрь','Ноябрь','Декабрь'
12
+ ],
13
+ dayOfWeek:[
14
+ "Вск", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"
15
+ ]
16
+ },
17
+ en:{
18
+ months: [
19
+ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
20
+ ],
21
+ dayOfWeek: [
22
+ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"
23
+ ]
24
+ },
25
+ de:{
26
+ months:[
27
+ 'Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'
28
+ ],
29
+ dayOfWeek:[
30
+ "So.", "Mo", "Di", "Mi", "Do", "Fr", "Sa."
31
+ ]
32
+ },
33
+ nl:{
34
+ months:[
35
+ "januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december"
36
+ ],
37
+ dayOfWeek:[
38
+ "zo", "ma", "di", "wo", "do", "vr", "za"
39
+ ]
40
+ }
41
+ },
42
+ value:'',
43
+ lang:'en',
44
+ format:'Y/m/d H:i',
45
+ formatTime:'H:i',
46
+ formatDate:'Y/m/d',
47
+ step:60,
48
+ closeOnDateSelect:0,
49
+ closeOnWithoutClick:true,
50
+ timepicker:true,
51
+ datepicker:true,
52
+ minDate:false,
53
+ maxDate:false,
54
+ minTime:false,
55
+ maxTime:false,
56
+ allowTimes:[],
57
+ opened:false,
58
+ inline:false,
59
+ onSelectDate:function() {},
60
+ onSelectTime:function() {},
61
+ onChangeMonth:function() {},
62
+ onChangeDateTime:function() {},
63
+ onShow:function() {},
64
+ onClose:function() {},
65
+ onGenerate:function() {},
66
+ withoutCopyright:true,
67
+ inverseButton:false,
68
+ hours12:false,
69
+ next: 'xdsoft_next',
70
+ prev : 'xdsoft_prev',
71
+ dayOfWeekStart:0,
72
+ timeHeightInTimePicker:25,
73
+ timepickerScrollbar:true,
74
+ todayButton:true, // 2.1.0
75
+ defaultSelect:true, // 2.1.0
76
+ scrollMonth:true,
77
+ scrollTime:true,
78
+ scrollInput:true,
79
+ mask:false,
80
+ validateOnBlur:true,
81
+ allowBlank:false,
82
+ yearStart:1950,
83
+ yearEnd:2050,
84
+ style:'',
85
+ id:'',
86
+ roundTime:'round', // ceil, floor
87
+ className:'',
88
+ weekends : []
89
+ };
7
90
  // fix for ie8
8
91
  if (!Array.prototype.indexOf) {
9
92
  Array.prototype.indexOf = function(obj, start) {
@@ -127,93 +210,12 @@
127
210
  ZKEY = 90,
128
211
  YKEY = 89,
129
212
  ctrlDown = false,
130
- default_options = {
131
- i18n:{
132
- ru:{
133
- months:[
134
- 'Январь','Февраль','Март','Апрель','Май','Июнь','Июль','Август','Сентябрь','Октябрь','Ноябрь','Декабрь'
135
- ],
136
- dayOfWeek:[
137
- "Вск", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"
138
- ]
139
- },
140
- en:{
141
- months: [
142
- "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
143
- ],
144
- dayOfWeek: [
145
- "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"
146
- ]
147
- },
148
- de:{
149
- months:[
150
- 'Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'
151
- ],
152
- dayOfWeek:[
153
- "So.", "Mo", "Di", "Mi", "Do", "Fr", "Sa."
154
- ]
155
- },
156
- nl:{
157
- months:[
158
- "januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december"
159
- ],
160
- dayOfWeek:[
161
- "zo", "ma", "di", "wo", "do", "vr", "za"
162
- ]
163
- }
164
- },
165
- value:'',
166
- lang:'en',
167
- format:'Y/m/d H:i',
168
- formatTime:'H:i',
169
- formatDate:'Y/m/d',
170
- step:60,
171
- closeOnDateSelect:0,
172
- closeOnWithoutClick:true,
173
- timepicker:true,
174
- datepicker:true,
175
- minDate:false,
176
- maxDate:false,
177
- minTime:false,
178
- maxTime:false,
179
- allowTimes:[],
180
- opened:false,
181
- inline:false,
182
- onSelectDate:function() {},
183
- onSelectTime:function() {},
184
- onChangeMonth:function() {},
185
- onChangeDateTime:function() {},
186
- onShow:function() {},
187
- onClose:function() {},
188
- onGenerate:function() {},
189
- withoutCopyright:true,
190
- inverseButton:false,
191
- hours12:false,
192
- next: 'xdsoft_next',
193
- prev : 'xdsoft_prev',
194
- dayOfWeekStart:0,
195
- timeHeightInTimePicker:25,
196
- timepickerScrollbar:true,
197
- scrollMonth:true,
198
- scrollTime:true,
199
- scrollInput:true,
200
- mask:false,
201
- validateOnBlur:true,
202
- allowBlank:false,
203
- yearStart:1950,
204
- yearEnd:2050,
205
- style:'',
206
- id:'',
207
- roundTime:'round', // ceil, floor
208
- className:'',
209
- weekends : []
210
- },
211
213
  options = ($.isPlainObject(opt)||!opt)?$.extend({},default_options,opt):$.extend({},default_options),
212
214
  createDateTimePicker = function( input ) {
213
215
  var datetimepicker = $('<div '+(options.id?'id="'+options.id+'"':'')+' '+(options.style?'style="'+options.style+'"':'')+' class="xdsoft_datetimepicker xdsoft_noselect '+options.className+'"></div>'),
214
216
  xdsoft_copyright = $('<div class="xdsoft_copyright"><a target="_blank" href="http://xdsoft.net/jqplugins/datetimepicker/">xdsoft.net</a></div>'),
215
217
  datepicker = $('<div class="xdsoft_datepicker active"></div>'),
216
- mounth_picker = $('<div class="xdsoft_mounthpicker"><button type="button" class="xdsoft_prev"></button><div class="xdsoft_label xdsoft_month"><span></span></div><div class="xdsoft_label xdsoft_year"><span></span></div><button type="button" class="xdsoft_next"></button></div>'),
218
+ mounth_picker = $('<div class="xdsoft_mounthpicker"><button type="button" class="xdsoft_prev"></button><button type="button" class="xdsoft_today_button"></button><div class="xdsoft_label xdsoft_month"><span></span></div><div class="xdsoft_label xdsoft_year"><span></span></div><button type="button" class="xdsoft_next"></button></div>'),
217
219
  calendar = $('<div class="xdsoft_calendar"></div>'),
218
220
  timepicker = $('<div class="xdsoft_timepicker active"><button type="button" class="xdsoft_prev"></button><div class="xdsoft_time_box"></div><button type="button" class="xdsoft_next"></button></div>'),
219
221
  timeboxparent = timepicker.find('.xdsoft_time_box').eq(0),
@@ -315,6 +317,11 @@
315
317
  timeOffset = tmpDate.getTime()+-1*(tmpDate.getTimezoneOffset())*60000;
316
318
  options.maxDate = new Date((new Date).getTime()+timeOffset).dateFormat( options.formatDate );
317
319
  }
320
+
321
+ mounth_picker
322
+ .find('.xdsoft_today_button')
323
+ .css('visibility',!options.todayButton?'hidden':'visible');
324
+
318
325
  if( options.mask ) {
319
326
  var e,
320
327
  getCaretPos = function ( input ) {
@@ -535,7 +542,13 @@
535
542
  };
536
543
  },
537
544
  _xdsoft_datetime = new XDSoftDateTime;
538
-
545
+ mounth_picker
546
+ .find('.xdsoft_today_button')
547
+ .on('mousedown.xdsoft',function() {
548
+ datetimepicker.data('changed',true);
549
+ _xdsoft_datetime.setCurrentTime(new Date);
550
+ datetimepicker.trigger('afterOpen.xdsoft');
551
+ });
539
552
  mounth_picker
540
553
  .find('.xdsoft_prev,.xdsoft_next')
541
554
  .on('mousedown.xdsoft',function() {
@@ -595,7 +608,6 @@
595
608
  start = new Date(_xdsoft_datetime.currentTime.getFullYear(),_xdsoft_datetime.currentTime.getMonth(),1),
596
609
  i = 0,
597
610
  today = new Date;
598
-
599
611
  while( start.getDay()!=options.dayOfWeekStart )
600
612
  start.setDate(start.getDate()-1);
601
613
 
@@ -633,7 +645,7 @@
633
645
 
634
646
  if( _xdsoft_datetime.currentTime.getMonth()!=m ) classes.push('xdsoft_other_month');
635
647
 
636
- if( _xdsoft_datetime.currentTime.dateFormat('d.m.Y')==start.dateFormat('d.m.Y') ) {
648
+ if( (options.defaultSelect||datetimepicker.data('changed')) && _xdsoft_datetime.currentTime.dateFormat('d.m.Y')==start.dateFormat('d.m.Y') ) {
637
649
  classes.push('xdsoft_current');
638
650
  }
639
651
 
@@ -672,17 +684,15 @@
672
684
  h = parseInt(now.getHours());
673
685
  now.setMinutes(m);
674
686
  m = parseInt(now.getMinutes());
675
- time+= '<div class="xdsoft_time '+
676
- ( (options.maxTime!==false&&_xdsoft_datetime.strtotime(options.maxTime).getTime()<now.getTime())||
677
- (options.minTime!==false&&_xdsoft_datetime.strtotime(options.minTime).getTime()>now.getTime())
678
- ?'xdsoft_disabled ':' ')+
679
- (
680
- (parseInt(_xdsoft_datetime.currentTime.getHours())==parseInt(h)
681
- &&
682
- (options.step>59||Math[options.roundTime](_xdsoft_datetime.currentTime.getMinutes()/options.step)*options.step==parseInt(m))
683
- )?' xdsoft_current ':'')+
684
- ((parseInt(today.getHours())==parseInt(h)&&parseInt(today.getMinutes())==parseInt(m))?' xdsoft_today ':'')+
685
- '" data-hour="'+h+'" data-minute="'+m+'">'+now.dateFormat(options.formatTime)+'</div>';
687
+
688
+ classes = [];
689
+ if( (options.maxTime!==false&&_xdsoft_datetime.strtotime(options.maxTime).getTime()<now.getTime())||(options.minTime!==false&&_xdsoft_datetime.strtotime(options.minTime).getTime()>now.getTime()))
690
+ classes.push('xdsoft_disabled');
691
+ if( (options.defaultSelect||datetimepicker.data('changed')) && parseInt(_xdsoft_datetime.currentTime.getHours())==parseInt(h)&&(options.step>59||Math[options.roundTime](_xdsoft_datetime.currentTime.getMinutes()/options.step)*options.step==parseInt(m)))
692
+ classes.push('xdsoft_current');
693
+ if( parseInt(today.getHours())==parseInt(h)&&parseInt(today.getMinutes())==parseInt(m))
694
+ classes.push('xdsoft_today');
695
+ time+= '<div class="xdsoft_time '+classes.join(' ')+'" data-hour="'+h+'" data-minute="'+m+'">'+now.dateFormat(options.formatTime)+'</div>';
686
696
  };
687
697
 
688
698
  if( !options.allowTimes || !$.isArray(options.allowTimes) || !options.allowTimes.length ) {
@@ -753,13 +763,14 @@
753
763
  options.onSelectDate.call(datetimepicker,_xdsoft_datetime.currentTime,datetimepicker.data('input'));
754
764
  }
755
765
 
766
+ datetimepicker.data('changed',true);
756
767
  datetimepicker.trigger('xchange.xdsoft');
757
768
  datetimepicker.trigger('changedatetime.xdsoft');
758
769
  setTimeout(function(){
759
770
  timerclick = 0;
760
771
  },200);
761
772
  });
762
-
773
+
763
774
  timebox
764
775
  .on('click.xdsoft','div',function() {
765
776
  var $this = $(this),
@@ -777,7 +788,7 @@
777
788
  if( options.onSelectTime&&options.onSelectTime.call ) {
778
789
  options.onSelectTime.call(datetimepicker,_xdsoft_datetime.currentTime,datetimepicker.data('input'));
779
790
  }
780
-
791
+ datetimepicker.data('changed',true);
781
792
  datetimepicker.trigger('xchange.xdsoft');
782
793
  datetimepicker.trigger('changedatetime.xdsoft');
783
794
  });
@@ -888,7 +899,14 @@
888
899
 
889
900
  datetimepicker.data('xdsoft_datetime',_xdsoft_datetime);
890
901
  datetimepicker.setOptions(options);
891
- _xdsoft_datetime.setCurrentTime( options.value?options.value:(input&&input.val&&input.val())?input.val():new Date );
902
+
903
+ var ct = options.value?options.value:(input&&input.val&&input.val())?input.val():'';
904
+ if( ct && _xdsoft_datetime.isValidDate(ct = Date.parseDate(ct, options.format)) ) {
905
+ datetimepicker.data('changed',true);
906
+ }else
907
+ ct = '';
908
+
909
+ _xdsoft_datetime.setCurrentTime( ct?ct:new Date );
892
910
 
893
911
  datetimepicker.trigger('afterOpen.xdsoft');
894
912
 
@@ -929,7 +947,7 @@
929
947
  destroyDateTimePicker = function( input ) {
930
948
  var datetimepicker = input.data('xdsoft_datetimepicker');
931
949
  if( datetimepicker ) {
932
- var _xdsoft_datetime = _xdsoft_datetime;
950
+ var _xdsoft_datetime = datetimepicker.data('xdsoft_datetime');
933
951
  delete _xdsoft_datetime;
934
952
  datetimepicker.remove();
935
953
  delete datetimepicker;
@@ -967,6 +985,12 @@
967
985
  case 'destroy':
968
986
  destroyDateTimePicker($(this));
969
987
  break;
988
+ case 'reset':
989
+ this.value = this.defaultValue;
990
+ if(!this.value || !datetimepicker.data('xdsoft_datetime').isValidDate(Date.parseDate(this.value, options.format)))
991
+ datetimepicker.data('changed',false);
992
+ datetimepicker.data('xdsoft_datetime').setCurrentTime(this.value);
993
+ break;
970
994
  }
971
995
  }else{
972
996
  datetimepicker
@@ -66,13 +66,18 @@
66
66
  text-align: center;
67
67
  }
68
68
 
69
- .xdsoft_datetimepicker .xdsoft_prev, .xdsoft_datetimepicker .xdsoft_next{
70
- background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYA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jJEMkM5N0FFQjUwIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjNCNEJCNEZERTgyQ0UzMTFCNENCQjJEMkM5N0FFQjUwIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+ZZiqAgAAAR5JREFUeNrs2W0OgjAMBmAnHJjoOZq8FzYTUAkfG9KuJFDaZD8MpoYHmG0JMcabxzLuTuAwDqMR9dlPIISQO0TtqtrVpA7+21troxe8Q3mMPjfsDJ3cmVcGJc4WuOdtDSaFksQphvn+WNHdthJQhFlDWeBowMQcTiEMPilUYLagTHC0YJI4BTD45VWA4aAMOJowCxwhDMY5D7t3MWEmOAIYzPNZghlwmDBI5bIG0+MwYJDLc1SYkl6pYnz3dbraWXjHQPAokfVHCQWbL1mFgcLfNVmDgWKBR4oFHgQFHmnBYIeWgBRbAg4OabUE2LGJJMUmEltRrjh2wBaUK8LkcOjqg6oUjmhkYnXm24wq7qdoyO5vIv29ksM4zI7xFmAAj1yMVcKZ+nYAAAAASUVORK5CYII=');
69
+ .xdsoft_datetimepicker .xdsoft_prev, .xdsoft_datetimepicker .xdsoft_next,.xdsoft_datetimepicker .xdsoft_today_button{
70
+ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAAAeCAYAAACsYQl4AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSRE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znpt6rZ0AGWQj7TvCU8d9UM+QAGDrhdyc2Bnc1WVVPBev9V8lBnY+rDwncWZThG4xk4lmxtJy2AHgoY/FySgbSBPwPZ8mEXbQx3aDERb0EbYAYFC7pcAtAvkMWwC0D3NX58S9D/YnoGC7nPWr3Dg9JTbtuHhDShBT8D2CBSK/iIEvVXxpuxSgh7DdgwUTL4iA92zmJb6lKB/YTsECmV+IgK947AGDIqgQ/LojsO135Hn51l2cWlov0JdGNrPUceueXRwilSVgkUyom9Rd6gbLfYTDeO+1v6orn0InTogYDGUkYLO3/wc9BdqqTCKP1Tfi+oTIaCBIL2TES+GTyruT9S61p6BHam+99DFEAgLFklYsIBHwSI9QY80H5ta+1rB/6ovaKihBJeEJbgLbBlQgl+j3lDPqA2tfQV1j3pVn8s+oKHGTSVJ+FqDLeR5bCqJ2E/BCycsoLZETXaKGs7rhKVt+9HZScrZNMi88V8P7LlDbvOZYaJVpMMmBCT4n0o8dTBoNgbdWPsRYACs3r7XyNfbnAAAAABJRU5ErkJggg==');
71
71
  }
72
72
  .xdsoft_datetimepicker .xdsoft_prev{
73
73
  float: left;
74
74
  background-position:-20px 0px;
75
75
  }
76
+ .xdsoft_datetimepicker .xdsoft_today_button{
77
+ float: left;
78
+ background-position:-70px 0px;
79
+ margin-left:5px;
80
+ }
76
81
 
77
82
  .xdsoft_datetimepicker .xdsoft_next{
78
83
  float: right;
@@ -80,7 +85,7 @@
80
85
  }
81
86
  .xdsoft_datetimepicker .xdsoft_next:active,.xdsoft_datetimepicker .xdsoft_prev:active{
82
87
  }
83
- .xdsoft_datetimepicker .xdsoft_next,.xdsoft_datetimepicker .xdsoft_prev {
88
+ .xdsoft_datetimepicker .xdsoft_next,.xdsoft_datetimepicker .xdsoft_prev ,.xdsoft_datetimepicker .xdsoft_today_button{
84
89
  background-color: transparent;
85
90
  background-repeat: no-repeat;
86
91
  border: 0px none currentColor;
@@ -132,6 +137,7 @@
132
137
  .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div > div:first-child{
133
138
  border-top-width:0px;
134
139
  }
140
+ .xdsoft_datetimepicker .xdsoft_today_button:hover,
135
141
  .xdsoft_datetimepicker .xdsoft_next:hover,
136
142
  .xdsoft_datetimepicker .xdsoft_prev:hover {
137
143
  opacity: 1;
@@ -182,7 +188,7 @@
182
188
  font-weight: 700;
183
189
  }
184
190
  .xdsoft_datetimepicker .xdsoft_month{
185
- width:114px;
191
+ width:95px;
186
192
  text-align:right;
187
193
  }
188
194
  .xdsoft_datetimepicker .xdsoft_calendar{
@@ -221,6 +227,7 @@
221
227
  .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_today{
222
228
  color:#33AAFF;
223
229
  }
230
+ .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_default,
224
231
  .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current,
225
232
  .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div >div.xdsoft_current{
226
233
  background: #33AAFF;
@@ -1,7 +1,7 @@
1
1
  module Jquery
2
2
  module Datetimepicker
3
3
  module Rails
4
- VERSION = '2.0.9.0'
4
+ VERSION = '2.1.0.0'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jquery-datetimepicker-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.9.0
4
+ version: 2.1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Novikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-24 00:00:00.000000000 Z
11
+ date: 2013-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  version: '0'
77
77
  requirements: []
78
78
  rubyforge_project:
79
- rubygems_version: 2.1.11
79
+ rubygems_version: 2.0.14
80
80
  signing_key:
81
81
  specification_version: 4
82
82
  summary: This gem packages the datetimepicker jQuery plugin for Rails 3.1+ asset pipeline