turbolog 0.1.1 → 0.1.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
  SHA256:
3
- metadata.gz: a6b91e162d230d3c088b04f88b8c234f60b4d44a0df1b50226bb1092bdab7930
4
- data.tar.gz: 1b165bc8490a438eb63a61553c34691908dbd000a057b10c2fecef83cf479770
3
+ metadata.gz: 83c9e3a6d6c3ceee24e4e310957bfc4dc057ec3c3fd32b02a661a2f5d0970120
4
+ data.tar.gz: 001a977955e80db2d1249fc18512d78286fe36793f427970ac6bf261b39720b9
5
5
  SHA512:
6
- metadata.gz: e2e164e3a1843ed19a3134e1ecf51845cd0a6375a7f02be7333dedcd9600fb6f46bfb70f6a9fe913dcefa1ff0e496ca2ba7289371abccd6d4130a5357ae86d34
7
- data.tar.gz: c3ca3b9969c45cf3b09bf76d0d68e7541628eaecbcf9086819e480d7197159343575750ab7267049f3cc2f4c108eba35a241b2443ca7e2cdb2292271e50b64de
6
+ metadata.gz: 860a7d567a8210b641e8aa82869f8cf60645b913fcd950671a0f042c46acab311ac024dc12f9fddee0f7f4a1ab9bd2cf635aa6c30c477bc792ed95418950a91d
7
+ data.tar.gz: a515f355ffc11178b5cde3d98b6b83425ca0fc8892387d4aa9654ae4cf016fd779d5f8e2c813f9f204f9336752a9cdb668793601beee0aeff1be65f6b7b03f62
data/README.md CHANGED
@@ -26,23 +26,37 @@ Or install it yourself as:
26
26
 
27
27
  $ gem install turbolog
28
28
 
29
- Then execute :
29
+ Once turbolog gem bundled, there are 3 steps to install.
30
+
31
+ Step 1/3 execute :
30
32
 
31
33
  $ rails g turbolog:install
32
34
 
33
- It will backup and include several gems
35
+ It will backup and will include several gems
36
+
37
+ Step 2/3 bundle install
34
38
 
39
+ $ bundle install
35
40
 
36
- Then execute :
41
+
42
+ Step 3/3 execute :
37
43
 
38
44
  $ rails g turbolog:config
39
45
 
40
- It will run mongoid:config, devise install, devise Users and config omniauth and generate scaffold welcome to be an example
46
+ It will run mongoid:config, devise install, devise Users and config omniauth and generate scaffold welcome as an example
41
47
 
42
48
  ## Usage
43
49
 
44
50
  Your rails app will have Log In/Log Out with Facebook authentication as a template for your modification.
45
51
 
52
+ Additional Setup For Facebook in .env
53
+ for example
54
+ FACEBOOK_API="xxxxxxxxxxxxxxxxx"
55
+ FACEBOOK_SECRET="xxxxxxxxxxxxxxxxxxxxxxxxxx"
56
+
57
+
58
+
59
+
46
60
  Other command:
47
61
 
48
62
  To remove devise line from config/routes by execute the following command
@@ -9,6 +9,11 @@ module Turbolog
9
9
  def config_mongoid
10
10
  run "rails g mongoid:config"
11
11
  end
12
+
13
+ def create_welcome
14
+ run "rails g scaffold welcome greeting:text"
15
+ end
16
+
12
17
  desc "Configure Devise"
13
18
  def config_devise
14
19
  puts "rails g devise:install...............\n"
@@ -17,8 +22,13 @@ module Turbolog
17
22
  run "rails generate devise User"
18
23
  #remove another devise from rails g devise User
19
24
  gsub_file 'config/routes.rb',/devise_for :users\n/,''
25
+ gsub_file 'config/routes.rb',/root.*/,'root to: \'welcomes#index\''
26
+ end
27
+ def get_welcome
28
+ inject_into_file 'config/routes.rb', :after => 'Rails.application.routes.draw do' do
29
+ "\n get 'welcomes/index'\n"
30
+ end
20
31
  end
21
-
22
32
 
23
33
  desc "Backup Files if previous installed"
24
34
  # def backup_files
@@ -1,3 +1,3 @@
1
1
  module Turbolog
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/turbolog.gemspec CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  lib = File.expand_path("../lib", __FILE__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
3
  require "turbolog/version"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbolog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Prateep Kul
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-02-08 00:00:00.000000000 Z
11
+ date: 2018-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler