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 +4 -4
- data/README.md +18 -4
- data/lib/generators/turbolog/config_generator.rb +11 -1
- data/lib/turbolog/version.rb +1 -1
- data/turbolog.gemspec +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83c9e3a6d6c3ceee24e4e310957bfc4dc057ec3c3fd32b02a661a2f5d0970120
|
4
|
+
data.tar.gz: 001a977955e80db2d1249fc18512d78286fe36793f427970ac6bf261b39720b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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
|
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
|
data/lib/turbolog/version.rb
CHANGED
data/turbolog.gemspec
CHANGED
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.
|
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-
|
11
|
+
date: 2018-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|