chaltron 0.2.4 → 0.2.5

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: 6ed34d3ed27ef87d004d967c95fb36fef57e0dfa
4
- data.tar.gz: b717ecf6a423d1e78e170074b747a7831df2709a
3
+ metadata.gz: b457ba5fafda98666569c995a33ee60b3dcf1b61
4
+ data.tar.gz: df13385848e743a73a467e54cfd36e88c205854b
5
5
  SHA512:
6
- metadata.gz: 53cefa04156e5e0cb8dfb54169791eb35f4946351f4028ec876d6c4b6def60e4759e18a5ba9910a35f29e51ab636595e920b876e1ae0e2bdeaf123a24e9dd533
7
- data.tar.gz: e54f2ad1b22fd00caebc20721ecee08acce5511f1dc0ab93be6036f74e1aacc2342e070d5048686dfc8cff7adc56c96f8d3bc20d42dd6923a1a664732fcd23fc
6
+ metadata.gz: 5fd212882632a477bd3f01baac9137da593b850e66ff8fa5db075aaa4c78f336dc896e432a67d2b41655d304557348769231155713502c8143de825d1215a078
7
+ data.tar.gz: 640bc8d68a1510e48f3efa68ec130cc725e60055534de0a0dc791c7793f5323ca7a3c91746062036388c45583a6aadbeab3259bd2340e2680c8e6431e87b075f
@@ -8,8 +8,5 @@
8
8
  //= require nprogress
9
9
  //= require nprogress-turbolinks
10
10
  //= require nprogress-ajax
11
- //= require moment
12
- //= require moment/it.js
13
- //= require datetime-moment
14
11
 
15
12
  //= require_tree ./chaltron
@@ -71,9 +71,6 @@ $(document).on 'turbolinks:load', ->
71
71
  table = new DataTableBuilder
72
72
  table.go()
73
73
 
74
- # specify date format (for sorting)
75
- $.fn.dataTable.moment('DD MMM HH:mm')
76
-
77
74
  $ ->
78
75
  $('form#ldap_create').on 'submit', (e) ->
79
76
 
@@ -57,6 +57,3 @@ class @Chaltron
57
57
  }
58
58
  }
59
59
  ret[field]
60
-
61
- $ ->
62
- moment.locale(Chaltron::lang ? 'en')
@@ -27,24 +27,26 @@
27
27
  <div class='col-md-9'>
28
28
  <div class='panel panel-default'>
29
29
  <div class='panel-body'>
30
- <%= content_tag 'table', id: 'users', class: 'table table-striped' do %>
31
- <thead>
32
- <tr>
33
- <th class='username'>
34
- <%= User.human_attribute_name(:username) %>
35
- </th>
36
- <th class='fullname'>
37
- <%= User.human_attribute_name(:fullname) %>
38
- </th>
39
- <th class='email'>
40
- <%= User.human_attribute_name(:email) %>
41
- </th>
42
- </tr>
43
- </thead>
44
- <tbody>
45
- <%= render @users %>
46
- </tbody>
47
- <% end %>
30
+ <div class='table-responsive'>
31
+ <%= content_tag 'table', id: 'users', class: 'table table-striped' do %>
32
+ <thead>
33
+ <tr>
34
+ <th class='username'>
35
+ <%= User.human_attribute_name(:username) %>
36
+ </th>
37
+ <th class='fullname'>
38
+ <%= User.human_attribute_name(:fullname) %>
39
+ </th>
40
+ <th class='email'>
41
+ <%= User.human_attribute_name(:email) %>
42
+ </th>
43
+ </tr>
44
+ </thead>
45
+ <tbody>
46
+ <%= render @users %>
47
+ </tbody>
48
+ <% end %>
49
+ </div>
48
50
  </div>
49
51
  </div>
50
52
  </div>
@@ -10,7 +10,6 @@ require 'ajax-datatables-rails'
10
10
  require 'bootstrap_form'
11
11
  require 'nprogress-rails'
12
12
  require 'rails-i18n'
13
- require 'momentjs-rails'
14
13
  require 'jquery-rails'
15
14
  require 'jquery-datatables-rails'
16
15
 
@@ -21,7 +20,7 @@ module Chaltron
21
20
  class Engine < ::Rails::Engine
22
21
  config.generators do |g|
23
22
  g.test_framework :rspec, fixture: false
24
- g.fixture_replacement :factory_girl, dir: 'spec/factories'
23
+ g.fixture_replacement :factory_bot, dir: 'spec/factories'
25
24
  g.assets false
26
25
  g.helper false
27
26
  end
@@ -1,3 +1,3 @@
1
1
  module Chaltron
2
- VERSION = '0.2.4'
2
+ VERSION = '0.2.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chaltron
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - vicvega
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-19 00:00:00.000000000 Z
11
+ date: 2018-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -220,20 +220,6 @@ dependencies:
220
220
  - - ">="
221
221
  - !ruby/object:Gem::Version
222
222
  version: '0'
223
- - !ruby/object:Gem::Dependency
224
- name: momentjs-rails
225
- requirement: !ruby/object:Gem::Requirement
226
- requirements:
227
- - - ">="
228
- - !ruby/object:Gem::Version
229
- version: '0'
230
- type: :runtime
231
- prerelease: false
232
- version_requirements: !ruby/object:Gem::Requirement
233
- requirements:
234
- - - ">="
235
- - !ruby/object:Gem::Version
236
- version: '0'
237
223
  - !ruby/object:Gem::Dependency
238
224
  name: jquery-rails
239
225
  requirement: !ruby/object:Gem::Requirement
@@ -333,7 +319,7 @@ dependencies:
333
319
  - !ruby/object:Gem::Version
334
320
  version: '0'
335
321
  - !ruby/object:Gem::Dependency
336
- name: factory_girl_rails
322
+ name: factory_bot_rails
337
323
  requirement: !ruby/object:Gem::Requirement
338
324
  requirements:
339
325
  - - ">="
@@ -404,7 +390,6 @@ files:
404
390
  - app/assets/javascripts/chaltron/localization.js.coffee
405
391
  - app/assets/javascripts/chaltron/main.js.coffee
406
392
  - app/assets/javascripts/dataTables/extras/dataTables.select.min.js
407
- - app/assets/javascripts/datetime-moment.js
408
393
  - app/assets/stylesheets/chaltron.scss
409
394
  - app/assets/stylesheets/chaltron/layout.scss
410
395
  - app/assets/stylesheets/chaltron/mixins.scss
@@ -1,41 +0,0 @@
1
- /**
2
- * This plug-in for DataTables represents the ultimate option in extensibility
3
- * for sorting date / time strings correctly. It uses
4
- * [Moment.js](http://momentjs.com) to create automatic type detection and
5
- * sorting plug-ins for DataTables based on a given format. This way, DataTables
6
- * will automatically detect your temporal information and sort it correctly.
7
- *
8
- * For usage instructions, please see the DataTables blog
9
- * post that [introduces it](//datatables.net/blog/2014-12-18).
10
- *
11
- * @name Ultimate Date / Time sorting
12
- * @summary Sort date and time in any format using Moment.js
13
- * @author [Allan Jardine](//datatables.net)
14
- * @depends DataTables 1.10+, Moment.js 1.7+
15
- *
16
- * @example
17
- * $.fn.dataTable.moment( 'HH:mm MMM D, YY' );
18
- * $.fn.dataTable.moment( 'dddd, MMMM Do, YYYY' );
19
- *
20
- * $('#example').DataTable();
21
- */
22
-
23
- (function($) {
24
-
25
- $.fn.dataTable.moment = function ( format, locale ) {
26
- var types = $.fn.dataTable.ext.type;
27
-
28
- // Add type detection
29
- types.detect.unshift( function ( d ) {
30
- return moment( d, format, locale, true ).isValid() ?
31
- 'moment-'+format :
32
- null;
33
- } );
34
-
35
- // Add sorting method - use an integer for the sorting
36
- types.order[ 'moment-'+format+'-pre' ] = function ( d ) {
37
- return moment( d, format, locale, true ).unix();
38
- };
39
- };
40
-
41
- }(jQuery));