mix-rails-core 0.26.1 → 0.26.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: d26c3019be1080ef903f17a3c4186e291c2960dc
4
- data.tar.gz: f868dd1bc21d1ae6543bfdff5cc0c999069d961b
3
+ metadata.gz: a2c29c6a2b139e60d77f5bc804cb7e8191a08425
4
+ data.tar.gz: 587e8eadc8291c2d468ae4a1d6a1f474665d8bfe
5
5
  SHA512:
6
- metadata.gz: 20e994b2be3734a8cd9e12a2d6f261c2a0a0ba5c1b284cab9148b6485c848f031d62fefee8d1cac27d1f2b7abc50ca7afb222e57776313b029ce6f5f6bd1b037
7
- data.tar.gz: 5055ec74aecf6d00c1ae3d65c1671138d99968262e28bd5941e31e3133b45ed4fd5bd4df0adefc7a717e070acc4272a1ad8dbeb27f845a554b1f7cc6b8b5970f
6
+ metadata.gz: a79a45fb2d8f8f61dfd6b40ddcb7520464abf732f95549f4085fc5a2190591a63d39363bceebc5f09b434e6c4cee7f15d653426a3f1ee51bba2d4cb399802a7b
7
+ data.tar.gz: c5ca17c1aad785d41e702f1f4c376d68b963b5c4d8c2d431b1e1ee229fde07552b89d076aaaf751610b7fd416127ee5cf907082e3db0e03ec7f7bda550bcb186
@@ -0,0 +1,7 @@
1
+ #= require jquery/jquery.livequery
2
+ #= require jquery.meio.mask.min
3
+ $(".cell, .phone").livequery ->
4
+ $(@).setMask('(84) 9999-9999')
5
+
6
+ $(".cep").livequery ->
7
+ $(@).setMask('99999-999')
@@ -10,7 +10,9 @@ class ApplicationAuthorizer < Authority::Authorizer
10
10
  def self.default(adjective, user)
11
11
  # 'Whitelist' strategy for security: anything not explicitly allowed is
12
12
  # considered forbidden.
13
- false
13
+
14
+ # default was false
15
+ user.has_role? :admin
14
16
  end
15
17
 
16
18
  end
@@ -0,0 +1,30 @@
1
+ class ActsAsTaggableOnMigration < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :tags do |t|
4
+ t.string :name
5
+ end
6
+
7
+ create_table :taggings do |t|
8
+ t.references :tag
9
+
10
+ # You should make sure that the column created is
11
+ # long enough to store the required class names.
12
+ t.references :taggable, :polymorphic => true
13
+ t.references :tagger, :polymorphic => true
14
+
15
+ # Limit is created to prevent MySQL error on index
16
+ # length for MyISAM table type: http://bit.ly/vgW2Ql
17
+ t.string :context, :limit => 128
18
+
19
+ t.datetime :created_at
20
+ end
21
+
22
+ add_index :taggings, :tag_id
23
+ add_index :taggings, [:taggable_id, :taggable_type, :context]
24
+ end
25
+
26
+ def self.down
27
+ drop_table :taggings
28
+ drop_table :tags
29
+ end
30
+ end
@@ -23,6 +23,7 @@ require 'default_value_for'
23
23
  require 'haml-rails'
24
24
  require 'ckeditor'
25
25
  require 'active_menu'
26
+ require 'acts-as-taggable-on'
26
27
 
27
28
  module MixRailsCore
28
29
  end
@@ -2,7 +2,7 @@ module MixRailsCore
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 26
5
- TINY = 1
5
+ TINY = 2
6
6
  PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mix-rails-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.1
4
+ version: 0.26.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sadjow Leão
@@ -326,6 +326,7 @@ files:
326
326
  - app/assets/javascripts/jquery/jquery.livequery.js
327
327
  - app/assets/javascripts/gmaps.js
328
328
  - app/assets/javascripts/jquery.maskedinput.js
329
+ - app/assets/javascripts/inputs_masks.coffee
329
330
  - app/assets/javascripts/jquery.meio.mask.min.js
330
331
  - app/assets/javascripts/angular-google-maps.js
331
332
  - app/assets/javascripts/jquery.globalmoney.js
@@ -1077,6 +1078,7 @@ files:
1077
1078
  - config/initializers/ckeditor.rb
1078
1079
  - config/initializers/carrierwave.rb
1079
1080
  - config/routes.rb
1081
+ - db/migrate/20130313020623_acts_as_taggable_on_migration.rb
1080
1082
  - db/migrate/20130207132351_create_categorizations.rb
1081
1083
  - db/migrate/20130214134814_add_related_id_related_type_to_attachment.rb
1082
1084
  - db/migrate/20130206195145_create_attachments.rb