This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Services | |
| module ServiceName | |
| class UploadFileByUrl | |
| def call image_url | |
| api_key = ENV[:api_secret] | |
| upload_url = ENV[:upload_url] | |
| conn = Faraday.new( | |
| url: upload_url, | |
| headers: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # encoding: UTF-8 | |
| #!/usr/bin/env ruby | |
| def check(password) | |
| if password.length < 7 | |
| "Sorry, too few characters." | |
| elsif password.length < 20 | |
| "Sorry, you must use no fewer than 20 total characters." | |
| elsif !(/\d/ =~ password) | |
| "Sorry, you must use at least one numerical character." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Rails template appication file for gem 'deployconfig' ssh://git@git.snpdev.ru:42204/deployconfig.git | |
| #USAGE | |
| #rails new app_name -m template.rb | |
| #Application name from command-line arguments 'rails new application_name' | |
| application_name = ARGV[0] | |
| #Gemfile | |
| gem_group :development do | |
| # Use SQLite for development DB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Rails template appication file for gem 'deployconfig' https://github.com/Sergey-B/deployconfig-generator | |
| #USAGE | |
| #rails new app_name -m template.rb | |
| #Application name from command-line arguments 'rails new application_name' | |
| application_name = ARGV[0] | |
| #Gemfile | |
| gem 'deployconfig', '0.0.1', :git => 'https://github.com/Sergey-B/deployconfig-generator.git' | |
| gem 'capistrano' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Rails template appication file for gem 'deployconfig' https://github.com/Sergey-B/deployconfig-generator | |
| #USAGE | |
| #rails new app_name -m template.rb | |
| #Application name from command-line arguments 'rails new application_name' | |
| application_name = ARGV[0] | |
| #Gemfile | |
| gem 'deployconfig', '0.0.1', :git => 'sh://git@git.snpdev.ru:42204/deployconfig.git' | |
| gem 'capistrano' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # template1.rb | |
| application_name = ARGV[0] | |
| gem 'deployconfig', '0.0.1', :git => 'git@github.com:Sergey-B/deployconfig-generator.git' | |
| gem 'capistrano' | |
| gem 'capistrano-ext' | |
| gem_group :assets do | |
| gem 'therubyracer', :platforms => :ruby | |
| end |