lib/generators/socials/install_generator.rb
# Add dependency GEMs & run the bundle install
Add dependency GEMs & run the bundle install
Add dependency GEMs & run the bundle install
def update_gemfile
        inject_into_file 'Gemfile', after: "source 'https://rubygems.org'\n" do <<-'RUBY'
# Easier & faster then ERB
gem 'slim-rails', '~> 2.1.5'
# For easy user session management
gem 'devise', '~> 3.4.1'
# Gem to generate SocialShareURLs
gem 'just_share', '~> 1.0.4'
# Social network with PaymentMethod
gem 'rents', '~> 1.0.0'
# OAuth
gem 'koala', '~> 1.11.1'
gem 'omniauth', '~> 1.2.2'
gem 'omniauth-oauth2', '~> 1.2.0'
gem 'omniauth-facebook', '~> 2.0.0'
gem 'omniauth-github', '~> 1.1.2'
gem 'omniauth-google-oauth2', '~> 0.2.6'
gem 'omniauth-linkedin', '~> 0.2.0'
gem 'omniauth-twitter', '~> 1.1.0'
# Social
gem 'twitter', '~> 5.13.0'
gem 'linkedin', '~> 1.0.0'
          RUBY
        end
        puts 'Check out your Gemfile to know the GEMs which were added to run the Devise OAuth integration'.colorize(:light_green)
        puts 'Run `bundle install` & then run `rake socials:devise`'.red
      end
def update_gemfile inject_into_file 'Gemfile' , after : "source 'https://rubygems.org'\n" do <<-'RUBY' 
# Easier & faster then ERB
gem 'slim-rails', '~> 2.1.5'

# For easy user session management
gem 'devise', '~> 3.4.1'

# Gem to generate SocialShareURLs
gem 'just_share', '~> 1.0.4'

# Social network with PaymentMethod
gem 'rents', '~> 1.0.0'

# OAuth
gem 'koala', '~> 1.11.1'
gem 'omniauth', '~> 1.2.2'
gem 'omniauth-oauth2', '~> 1.2.0'
gem 'omniauth-facebook', '~> 2.0.0'
gem 'omniauth-github', '~> 1.1.2'
gem 'omniauth-google-oauth2', '~> 0.2.6'
gem 'omniauth-linkedin', '~> 0.2.0'
gem 'omniauth-twitter', '~> 1.1.0'

# Social
gem 'twitter', '~> 5.13.0'
gem 'linkedin', '~> 1.0.0'
           RUBY end puts 'Check out your Gemfile to know the GEMs which were added to run the Devise OAuth integration' . colorize ( :light_green ) puts 'Run `bundle install` & then run `rake socials:devise`' . red end
Add dependency GEMs & run the bundle install
Add dependency GEMs & run the bundle install