wrgem 0.0.2 → 0.0.3

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: 2e411038e02346234b2abf7288c2b757488fc396
4
- data.tar.gz: cd7544952ff8ee0ab16e0a2bf5241f6bf5645eef
3
+ metadata.gz: 185def2bedceb514794a16902cea4dde7ea78c36
4
+ data.tar.gz: f966ec6d750d6674a651c3477145263567972f56
5
5
  SHA512:
6
- metadata.gz: b7a5cde11cea8334a73d214aa74a78490dd05804d7fadcdce5eff5c12d5eea73570c4b4a2ac14d5f32c6217677908344e1c87b6d148f4ed0e5f21a941bcd9257
7
- data.tar.gz: e6fc0a181cbc7465ff89a4b695dc2a89a363b796863bd9292c0a8ba5c971354242e4620836aa9e533d223835c0d0aecd1a4220a974186ae79ebad472b9484bd1
6
+ metadata.gz: 22c3834e0114c0d3494e70d23d00aee378399f13ec18f9bf22585d0182284f8315db91ac5c4b8a0c1dda89f226cb8dd4b6c960640c3ac9c5e2093edf719d0f95
7
+ data.tar.gz: 05edfcbb3dbf2ae9b7bf311cbaddd378f9a391906d65737517fb987462980534cbcd1812a5a51d9dafff5d59aae371857d5fec46a93b98f4684192bbeaf9fd89
@@ -0,0 +1,3 @@
1
+ {
2
+ "directory": "vendor/assets/components"
3
+ }
@@ -0,0 +1 @@
1
+ BetterErrors.editor = :sublime if defined? BetterErrors
@@ -0,0 +1,17 @@
1
+ development:
2
+ adapter: postgresql
3
+ database: <%= app_name %>_database_development
4
+ pool: 5
5
+ timeout: 5000
6
+
7
+ test:
8
+ adapter: postgresql
9
+ database: <%= app_name %>_datbase_test
10
+ pool: 5
11
+ timeout: 5000
12
+
13
+ production:
14
+ adapter: postgresql
15
+ database: <%= app_name %>_datbase_production
16
+ pool: 5
17
+ timeout: 5000
@@ -7,81 +7,71 @@ class WrstartGenerator < Rails::Generators::Base
7
7
  remove_file "Gemfile"
8
8
  copy_file "Gemfile"
9
9
 
10
- run "bundle install"
10
+ run "bundle"
11
11
 
12
12
  remove_file "config/database.yml"
13
13
  template "database.yml", "config/database.yml"
14
14
  run "rake db:create"
15
15
 
16
- copy_file ".bowerrc"
17
-
18
- run "bundle exec guard init"
19
- remove_file "Guardfile"
20
- copy_file "Guardfile"
21
-
22
- run "rails g start:slim"
16
+ run "rails g start:bower"
23
17
  run "rails g start:heroku"
24
18
  run "rails g start:heroku_wake_up"
25
- run "rails g start:unicorn"
26
-
27
19
  run "rails g start:locales"
28
-
20
+ run "rails g start:slim"
21
+ run "rails g start:spec_helpers"
22
+ run "rails g start:unicorn"
29
23
 
30
24
  application do
31
- "config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
32
-
33
- config.generators.stylesheet_engine = :sass
34
- config.assets.initialize_on_precompile = false
25
+ "
35
26
 
27
+ Rails.application.assets.register_engine('.slim', Slim::Template)
28
+ Slim::Engine.set_default_options format: :html5
29
+ config.i18n.default_locale = 'pt-BR'
30
+ config.time_zone = 'Brasilia'
36
31
 
37
32
  config.generators do |g|
38
33
  g.assets false
39
34
  g.helper false
40
- g.view_specs false
41
- g.helper_specs false
42
- g.controller_specs false
43
- end"
35
+ g.test_framework nil
36
+ g.jbuilder false
37
+ end
38
+ "
44
39
  end
45
40
 
46
- remove_file "app/views/layouts/application.html.erb"
47
- run "rails g foundation:install"
48
- run "rails g simple_form:install --foundation"
41
+ # remove_file "app/views/layouts/application.html.erb"
49
42
 
50
43
  copy_file "better_errors.rb", "config/initializers/better_errors.rb"
51
44
 
52
- remove_file "app/views/layouts/application.html.erb"
53
- template "application.html.slim", "app/views/layouts/application.html.slim"
54
-
55
- remove_file "app/assets/javascripts/application.js"
56
- copy_file "application.coffee", "app/assets/javascripts/application.coffee"
45
+ remove_dir "app/assets/javascripts"
46
+ copy_dir "javascripts", "app/assets/javascripts"
57
47
 
58
- remove_file "app/assets/stylesheets/application.css"
59
- copy_file "application.sass", "app/assets/stylesheets/application.sass"
48
+ # remove_file "app/assets/stylesheets/application.css"
49
+ # copy_file "application.sass", "app/assets/stylesheets/application.sass"
60
50
 
61
- copy_file "font-awesome.css", "app/assets/stylesheets/font-awesome.css"
51
+ # copy_file "font-awesome.css", "app/assets/stylesheets/font-awesome.css"
62
52
 
63
- directory 'fonts', 'app/assets/fonts'
53
+ # directory 'fonts', 'app/assets/fonts'
64
54
 
65
- remove_file "app/helpers/application_helper.rb"
66
- copy_file "application_helper.rb", "app/helpers/application_helper.rb"
55
+ # remove_file "app/helpers/application_helper.rb"
56
+ # copy_file "application_helper.rb", "app/helpers/application_helper.rb"
67
57
 
68
- copy_file "redactor-rails.css", "app/assets/stylesheets/redactor-rails.css"
58
+ # copy_file "redactor-rails.css", "app/assets/stylesheets/redactor-rails.css"
69
59
 
70
- copy_file "layout.sass", "app/assets/stylesheets/layout.sass"
60
+ # copy_file "layout.sass", "app/assets/stylesheets/layout.sass"
71
61
 
72
- run "bower install bourbon"
73
- run "bower install animate.css"
62
+ # run "bower install bourbon"
63
+ # run "bower install animate.css"
74
64
 
75
- run "rails g controller home index"
65
+ # run "rails g controller home index"
76
66
 
77
- remove_file "app/views/home/index.html.slim"
78
- copy_file "index.html.slim", "app/views/home/index.html.slim"
67
+ # remove_file "app/views/home/index.html.slim"
68
+ # copy_file "index.html.slim", "app/views/home/index.html.slim"
79
69
 
80
70
 
81
- route "root 'home#index'"
71
+ # route "root 'home#index'"
82
72
 
83
- gsub_file 'config/environments/production.rb', 'config.serve_static_assets = false', 'config.serve_static_assets = true'
84
- gsub_file 'config/environments/production.rb', 'config.assets.compile = false', 'config.assets.compile = true'
73
+ # gsub_file 'config/environments/production.rb', 'config.serve_static_assets = false', 'config.serve_static_assets = true'
74
+ # gsub_file 'config/environments/production.rb', 'config.assets.compile = false', 'config.assets.compile = true'
85
75
 
86
76
  end
87
77
 
data/lib/wrgem/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Wrgem
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wrgem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - davidleandro
@@ -14,28 +14,28 @@ dependencies:
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.5'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.5'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description: Generators para startar projeto e criar admin
@@ -45,12 +45,15 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - ".gitignore"
48
+ - .gitignore
49
49
  - Gemfile
50
50
  - LICENSE.txt
51
51
  - README.md
52
52
  - Rakefile
53
+ - lib/generators/wrstart/template/.bowerrc
53
54
  - lib/generators/wrstart/template/Gemfile
55
+ - lib/generators/wrstart/template/better_errors.rb
56
+ - lib/generators/wrstart/template/database.yml
54
57
  - lib/generators/wrstart/template/javascripts/application.js.coffee
55
58
  - lib/generators/wrstart/template/javascripts/components/_accordion.coffee
56
59
  - lib/generators/wrstart/template/javascripts/components/_slidebar_options.coffee
@@ -1475,12 +1478,12 @@ require_paths:
1475
1478
  - lib
1476
1479
  required_ruby_version: !ruby/object:Gem::Requirement
1477
1480
  requirements:
1478
- - - ">="
1481
+ - - '>='
1479
1482
  - !ruby/object:Gem::Version
1480
1483
  version: '0'
1481
1484
  required_rubygems_version: !ruby/object:Gem::Requirement
1482
1485
  requirements:
1483
- - - ">="
1486
+ - - '>='
1484
1487
  - !ruby/object:Gem::Version
1485
1488
  version: '0'
1486
1489
  requirements: []