flexa_lib 0.1.18 → 0.1.19

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.
data/Rakefile CHANGED
@@ -16,3 +16,26 @@ require 'rdoc/task'
16
16
  # t.pattern = 'test/**/*_test.rb'
17
17
  # t.verbose = true
18
18
  #end
19
+
20
+ #require "rake/rdoctask"
21
+ Rake::RDocTask.new do |rdoc|
22
+
23
+ # Especifica a página inicial da documentação
24
+ rdoc.main = "README.rdoc"
25
+
26
+ # Nome do diretório onde a documentação será exportada
27
+ rdoc.rdoc_dir = "docs"
28
+
29
+ # Especifica o título
30
+ rdoc.title = "Commander Documentation"
31
+
32
+ # Define opções da linha de comando
33
+ rdoc.options += %w[ --line-numbers --inline-source --charset utf-8 ]
34
+
35
+ # Nome do template que será usado
36
+ rdoc.template = "darkfish"
37
+
38
+ # Arquivos que serão incluídos na geração da documentação
39
+ #rdoc.rdoc_files.include("README.rdoc", "CHANGELOG.rdoc")
40
+ rdoc.rdoc_files.include("lib/**/*.rb")
41
+ end
data/flexa_lib.gemspec CHANGED
@@ -7,7 +7,7 @@ require 'flexa_lib/version'
7
7
  Gem::Specification.new do |s|
8
8
  s.name = 'flexa_lib'
9
9
  # s.version = FlexaLib::VERSION
10
- s.version = '0.1.18'
10
+ s.version = '0.1.19'
11
11
  s.platform = Gem::Platform::RUBY
12
12
 
13
13
  s.authors = ['Allan Freitas','Marcio Sfalsin']
@@ -1,6 +1,6 @@
1
- module FlexaLib
1
+ module FormtasticBootstrap
2
2
  module Inputs
3
- class LookupInput < Formtastic::Inputs::StringInput
3
+ class LookupInput < FormtasticBootstrap::Inputs::StringInput
4
4
 
5
5
  def to_html
6
6
  lookup_feedback_fields = Array.new
@@ -1,8 +1,3 @@
1
1
  require 'flexa_lib/inputs/lookup_input'
2
- require 'flexa_lib/inputs/date_picker_input'
2
+ #require 'flexa_lib/inputs/date_picker_input'
3
3
 
4
- module FlexaLib
5
- module Inputs
6
-
7
- end
8
- end
data/lib/flexa_lib.rb CHANGED
@@ -1,5 +1,53 @@
1
+ # :main: flexa_lib.rb
2
+ # = FlexaLib
3
+ #
4
+ # Biblioteca para Equipe da Flexa de Desenvolvimento
5
+ #
6
+ # Incluir a gem no Gemfile do projeto
7
+ #
8
+ # gem 'flexa_lib'
9
+ #
10
+ # ---
11
+ #
12
+ # Usando os Geradores Disponiveis
13
+ #
14
+ # - Gerador de CRUD(templates de VIEW)
15
+ #
16
+ # rails g flexa_lib:crud NomeDoController
17
+ #
18
+ # - Gerador de LOOKUP(gera um controller e
19
+ # uma view de Lookup em Namespace)
20
+ # os parametros são o nome do model e a
21
+ # lista de campos que devem aparecer no grid do lookup
22
+ #
23
+ # rails g flexa_lib:lookup NomeDoModel campo1 campo2
24
+ #
25
+ #
26
+ # Aplicação do Twitter-Bootstrap na Aplicação
27
+ #
28
+ # - No "application.css" deve ficar como no exemplo abaixo:
29
+ #
30
+ # /*
31
+ # *= require_self
32
+ # *= require flexa-theme
33
+ # */
34
+ #
35
+ #
36
+ # - No "application.js" deve ficar como no exemplo abaixo:
37
+ #
38
+ # //= require jquery
39
+ # //= require jquery_ujs
40
+ # //= require flexa-themejs
41
+ #
42
+ #
43
+ module FlexaLib end
44
+
45
+
46
+
47
+
48
+
1
49
  ########################################
2
- ###### BIBLIOTECAS DE TERCEIROS #########
50
+ ###### BIBLIOTECAS DE TERCEIROS ########
3
51
  ########################################
4
52
 
5
53
  #WILL_PAGINATE
@@ -10,12 +58,9 @@ require 'will_paginate_twitter_bootstrap'
10
58
  require 'table_for_collection'
11
59
 
12
60
  #FORMTASTIC
13
- require 'formtastic'
14
61
  require 'formtastic-bootstrap'
15
62
 
16
63
 
17
- #require 'bootstrap-sass'
18
-
19
64
  ########################################
20
65
  ############## FLEXA LIB ###############
21
66
  ########################################
@@ -25,12 +70,6 @@ require 'flexa_lib/version'
25
70
  #inputs flexa
26
71
  require 'flexa_lib/inputs'
27
72
 
28
- module FormtasticBootstrap
29
- module Inputs
30
- include FlexaLib::Inputs
31
- end
32
- end
33
-
34
73
 
35
74
  #helpers flexa
36
75
  require 'flexa_lib/helpers'
@@ -38,10 +77,19 @@ require 'flexa_lib/helpers'
38
77
  module ActionView
39
78
  class Base
40
79
  include FlexaLib::Helpers
80
+
41
81
  end
42
82
  end
43
83
 
44
84
 
85
+ ####################################
86
+ #### Definir o Formtastic-Bootstrap
87
+ #### como FormBuilder Padrão
88
+ ###################################
89
+ Formtastic::Helpers::FormHelper.builder = FormtasticBootstrap::FormBuilder
90
+
91
+
45
92
  #validacoes de CPF e CNPJ
46
93
  require 'flexa_lib/brcpfcnpj'
47
94
 
95
+ #### FIM DO ARQUIVO ##########
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flexa_lib
3
3
  version: !ruby/object:Gem::Version
4
- hash: 63
4
+ hash: 61
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 18
10
- version: 0.1.18
9
+ - 19
10
+ version: 0.1.19
11
11
  platform: ruby
12
12
  authors:
13
13
  - Allan Freitas
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-03-13 00:00:00 Z
19
+ date: 2012-03-14 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: rails