rails_baseline 0.1.9 → 0.2.9

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.
@@ -0,0 +1,41 @@
1
+ def test_suite
2
+ gem_group :development do
3
+ gem 'spring-commands-rspec'
4
+ gem 'rails_apps_testing'
5
+ end
6
+
7
+ gem_group :development, :test do
8
+ gem "rspec-rails"
9
+ gem 'factory_girl_rails'
10
+ gem 'faker'
11
+ end
12
+
13
+ gem_group :test do
14
+ gem 'capybara'
15
+ gem 'database_cleaner'
16
+ gem 'launchy'
17
+ gem 'selenium-webdriver'
18
+ end
19
+
20
+ rspec_text = <<-TEXT
21
+ \n
22
+ config.generators do |g|
23
+ g.test_framework :rspec,
24
+ fixtures: true,
25
+ view_specs: false,
26
+ helper_specs: false,
27
+ routing_specs: false,
28
+ controller_specs: true,
29
+ request_specs: false
30
+ g.fixture_replacement :factory_girl, dir: "spec/factories"
31
+ end
32
+ TEXT
33
+
34
+ after_bundler do
35
+ run 'bundle binstubs rspec-core'
36
+ generate 'rspec:install'
37
+ remove_dir 'test'
38
+
39
+ inject_into_file "config/application.rb", rspec_text, :after => "# config.i18n.default_locale = :de"
40
+ end
41
+ end
@@ -0,0 +1,65 @@
1
+ def application_layout
2
+ application_html_file = <<-TEXT
3
+ <!DOCTYPE html>
4
+ <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
5
+ <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
6
+ <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
7
+ <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
8
+ <html>
9
+ <head>
10
+ <meta charset="utf-8">
11
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
12
+ <meta name="viewport" content="width=device-width, initial-scale=1">
13
+ <title>Title</title>
14
+ <meta name="description" content="This is the description">
15
+ <meta content="width=device-width, initial-scale=1.0" name="viewport">
16
+
17
+ <meta property="og:title" content="Title" />
18
+ <meta property="og:type" content="article" />
19
+ <meta property="og:url" content="<%= root_url %>" />
20
+ <meta property="og:image" content="<%= root_url %>/logo.png" />
21
+ <meta property="og:description" content="This is the description" />
22
+
23
+ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
24
+ <%= csrf_meta_tags %>
25
+ <!--[if lt IE 9]>
26
+ <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
27
+ <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
28
+ <![endif]-->
29
+ </head>
30
+ <body>
31
+ <!--[if lt IE 7]>
32
+ <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
33
+ <![endif]-->
34
+ <!-- Google Tag Manager -->
35
+ <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-XXXXXX"
36
+ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
37
+ <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
38
+ new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
39
+ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
40
+ '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
41
+ })(window,document,'script','dataLayer','GTM-XXXXXX');</script>
42
+ <!-- End Google Tag Manager -->
43
+
44
+ <%= yield %>
45
+
46
+ <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
47
+ </body>
48
+ </html>
49
+ TEXT
50
+
51
+ after_bundler do
52
+ remove_file 'app/views/layouts/application.html.erb'
53
+ create_file 'app/views/layouts/application.html.erb', application_html_file
54
+ say_wizard "--------------------------- APPLICATION VIEWS -----------------------------"
55
+ say_wizard "|Please change your GTM, title and meta settings in application.html.erb. |"
56
+ say_wizard "---------------------------------------------------------------------------"
57
+ end
58
+ end
59
+
60
+ def home_page
61
+ after_bundler do
62
+ generate "controller home index"
63
+ inject_into_file "config/routes.rb", "\n root 'home#index'", :after => "devise_for :users"
64
+ end
65
+ end
@@ -1,3 +1,3 @@
1
1
  module RailsBaseline
2
- VERSION = "0.1.9"
2
+ VERSION = "0.2.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_baseline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoon Wai Yan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-15 00:00:00.000000000 Z
11
+ date: 2016-05-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Create baseline rails app with ease. Based on the normal practices by
14
14
  Cloud Coder team.
@@ -27,8 +27,27 @@ files:
27
27
  - bin/rails_baseline
28
28
  - lib/rails_baseline.rb
29
29
  - lib/rails_baseline/command.rb
30
+ - lib/rails_baseline/helper_functions.rb
31
+ - lib/rails_baseline/old_template.rb
30
32
  - lib/rails_baseline/recipes.txt
33
+ - lib/rails_baseline/recipes.yml
31
34
  - lib/rails_baseline/template.rb
35
+ - lib/rails_baseline/template_configurations.rb
36
+ - lib/rails_baseline/template_configurations/active_admin.rb
37
+ - lib/rails_baseline/template_configurations/assets.rb
38
+ - lib/rails_baseline/template_configurations/backrground_processor.rb
39
+ - lib/rails_baseline/template_configurations/commands.rb
40
+ - lib/rails_baseline/template_configurations/database.rb
41
+ - lib/rails_baseline/template_configurations/deployment.rb
42
+ - lib/rails_baseline/template_configurations/devise.rb
43
+ - lib/rails_baseline/template_configurations/email.rb
44
+ - lib/rails_baseline/template_configurations/environment.rb
45
+ - lib/rails_baseline/template_configurations/file_upload.rb
46
+ - lib/rails_baseline/template_configurations/jquery_plugins.rb
47
+ - lib/rails_baseline/template_configurations/rails_config.rb
48
+ - lib/rails_baseline/template_configurations/rails_plugins.rb
49
+ - lib/rails_baseline/template_configurations/test_suite.rb
50
+ - lib/rails_baseline/template_configurations/views.rb
32
51
  - lib/rails_baseline/version.rb
33
52
  - rails_baseline.gemspec
34
53
  homepage: https://github.com/cloudcodermy/baseline
@@ -51,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
51
70
  version: '0'
52
71
  requirements: []
53
72
  rubyforge_project:
54
- rubygems_version: 2.2.2
73
+ rubygems_version: 2.4.5
55
74
  signing_key:
56
75
  specification_version: 4
57
76
  summary: Rails 4.2 template