Last active
October 25, 2017 20:00
-
-
Save maxlapshin/7936dcc88eb58aa5fb80 to your computer and use it in GitHub Desktop.
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
| source 'https://rubygems.org' | |
| gem 'rails', '~>4.0.2' | |
| gem 'activerecord-session_store' | |
| gem 'pg' | |
| gem 'foreigner' | |
| gem 'airbrake' | |
| gem 'redcarpet' | |
| gem 'pygments.rb' | |
| gem 'dropbox-api' | |
| gem 'sass-rails', '~>4.0.0' | |
| gem 'coffee-rails', '~>4.0.0' | |
| gem 'bootstrap-sass', '~> 3.1.1' | |
| gem 'font-awesome-sass' | |
| gem 'haml-rails' | |
| gem 'simple_form', '~>3.1.0.beta' | |
| gem 'russian' | |
| gem 'uglifier', '>=1.3.0' | |
| gem 'jquery-rails' | |
| gem 'jquery-ui-rails' | |
| gem 'wysiwyg-rails' | |
| gem 'ru_propisju' | |
| gem 'grit' | |
| gem 'unicode' | |
| gem 'will_paginate', '~> 3.0.5' | |
| gem 'rubyzip' | |
| gem 'nokogiri' | |
| gem 'iconv' | |
| gem 'puma' | |
| # Deploy with Capistrano | |
| gem 'capistrano', '< 3.0.0' | |
| gem 'capistrano-puma', '~> 0.0.1', require: false | |
| gem 'httparty' | |
| gem 'devise' | |
| gem 'mail_view', '~> 2.0.4' | |
| gem 'paypal-sdk-merchant' | |
| gem 'paypal-sdk-rest' | |
| gem 'paypal-recurring' | |
| gem 'whenever', require: false | |
| gem 'ransack', github: 'activerecord-hackery/ransack', branch: 'rails-4' | |
| gem 'arbre' | |
| gem 'enumerize' | |
| gem 'recurrence' | |
| gem 'dotenv-rails' | |
| gem 'dotenv-deployment' | |
| gem 'rack-utf8_sanitizer' | |
| #gem "intellij-coffee-script-debugger", :git => "git://github.com/JetBrains/intellij-coffee-script-debugger.git" | |
| group :development do | |
| gem 'quiet_assets' | |
| gem 'letter_opener' | |
| gem 'spring' | |
| gem 'annotate', '>=2.6.0' | |
| gem 'guard-rspec', '~> 4.2.8', require: false | |
| gem 'pry-rails' | |
| gem 'pry-nav' | |
| end | |
| group :development, :test do | |
| gem 'spring-commands-rspec' | |
| gem 'rspec', '~> 3.0.0' | |
| gem 'rspec-rails', '~> 3.0.0' | |
| gem "rails-erd" | |
| end | |
| group :test do | |
| gem 'capybara' | |
| gem 'factory_girl_rails', '~> 4.0' | |
| gem 'database_cleaner' | |
| gem 'sqlite3' | |
| gem 'vcr' | |
| gem 'webmock' | |
| gem 'timecop', '~> 0.6.1' | |
| gem 'rspec-html-matchers' | |
| end |
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
| GIT | |
| remote: git://github.com/activerecord-hackery/ransack.git | |
| revision: 6fa74a079ae33e520c9d69a6e6dfc45cc055b323 | |
| branch: rails-4 | |
| specs: | |
| ransack (1.2.3) | |
| actionpack (>= 4.0) | |
| activerecord (>= 4.0) | |
| activesupport (>= 4.0) | |
| i18n | |
| polyamorous (~> 1.0.0) | |
| GEM | |
| remote: https://rubygems.org/ | |
| specs: | |
| actionmailer (4.0.5) | |
| actionpack (= 4.0.5) | |
| mail (~> 2.5.4) | |
| actionpack (4.0.5) | |
| activesupport (= 4.0.5) | |
| builder (~> 3.1.0) | |
| erubis (~> 2.7.0) | |
| rack (~> 1.5.2) | |
| rack-test (~> 0.6.2) | |
| activemodel (4.0.5) | |
| activesupport (= 4.0.5) | |
| builder (~> 3.1.0) | |
| activerecord (4.0.5) | |
| activemodel (= 4.0.5) | |
| activerecord-deprecated_finders (~> 1.0.2) | |
| activesupport (= 4.0.5) | |
| arel (~> 4.0.0) | |
| activerecord-deprecated_finders (1.0.3) | |
| activerecord-session_store (0.1.0) | |
| actionpack (>= 4.0.0, < 5) | |
| activerecord (>= 4.0.0, < 5) | |
| railties (>= 4.0.0, < 5) | |
| activesupport (4.0.5) | |
| i18n (~> 0.6, >= 0.6.9) | |
| minitest (~> 4.2) | |
| multi_json (~> 1.3) | |
| thread_safe (~> 0.1) | |
| tzinfo (~> 0.3.37) | |
| addressable (2.3.6) | |
| airbrake (4.0.0) | |
| builder | |
| multi_json | |
| annotate (2.6.5) | |
| activerecord (>= 2.3.0) | |
| rake (>= 0.8.7) | |
| arbre (1.0.1) | |
| activesupport (>= 3.0.0) | |
| arel (4.0.2) | |
| bcrypt (3.1.7) | |
| bootstrap-sass (3.1.1.1) | |
| sass (~> 3.2) | |
| builder (3.1.4) | |
| capistrano (2.15.5) | |
| highline | |
| net-scp (>= 1.0.0) | |
| net-sftp (>= 2.0.0) | |
| net-ssh (>= 2.0.14) | |
| net-ssh-gateway (>= 1.1.0) | |
| capistrano-puma (0.0.1) | |
| capybara (2.4.1) | |
| mime-types (>= 1.16) | |
| nokogiri (>= 1.3.3) | |
| rack (>= 1.0.0) | |
| rack-test (>= 0.5.4) | |
| xpath (~> 2.0) | |
| celluloid (0.15.2) | |
| timers (~> 1.1.0) | |
| choice (0.1.6) | |
| chronic (0.10.2) | |
| coderay (1.1.0) | |
| coffee-rails (4.0.1) | |
| coffee-script (>= 2.2.0) | |
| railties (>= 4.0.0, < 5.0) | |
| coffee-script (2.2.0) | |
| coffee-script-source | |
| execjs | |
| coffee-script-source (1.7.0) | |
| crack (0.4.2) | |
| safe_yaml (~> 1.0.0) | |
| database_cleaner (1.3.0) | |
| devise (3.2.4) | |
| bcrypt (~> 3.0) | |
| orm_adapter (~> 0.1) | |
| railties (>= 3.2.6, < 5) | |
| thread_safe (~> 0.1) | |
| warden (~> 1.2.3) | |
| diff-lcs (1.2.5) | |
| dotenv (0.11.1) | |
| dotenv-deployment (~> 0.0.2) | |
| dotenv-deployment (0.0.2) | |
| dotenv-rails (0.11.1) | |
| dotenv (= 0.11.1) | |
| dropbox-api (0.4.2) | |
| hashie | |
| multi_json | |
| oauth | |
| enumerize (0.8.0) | |
| activesupport (>= 3.2) | |
| erubis (2.7.0) | |
| execjs (2.2.0) | |
| factory_girl (4.4.0) | |
| activesupport (>= 3.0.0) | |
| factory_girl_rails (4.4.1) | |
| factory_girl (~> 4.4.0) | |
| railties (>= 3.0.0) | |
| ffi (1.9.3) | |
| font-awesome-rails (4.1.0.0) | |
| railties (>= 3.2, < 5.0) | |
| font-awesome-sass (4.0.3.1) | |
| sass (~> 3.2) | |
| foreigner (1.6.1) | |
| activerecord (>= 3.0.0) | |
| formatador (0.2.5) | |
| grit (2.5.0) | |
| diff-lcs (~> 1.1) | |
| mime-types (~> 1.15) | |
| posix-spawn (~> 0.3.6) | |
| guard (2.6.1) | |
| formatador (>= 0.2.4) | |
| listen (~> 2.7) | |
| lumberjack (~> 1.0) | |
| pry (>= 0.9.12) | |
| thor (>= 0.18.1) | |
| guard-rspec (4.2.10) | |
| guard (~> 2.1) | |
| rspec (>= 2.14, < 4.0) | |
| haml (4.0.5) | |
| tilt | |
| haml-rails (0.5.3) | |
| actionpack (>= 4.0.1) | |
| activesupport (>= 4.0.1) | |
| haml (>= 3.1, < 5.0) | |
| railties (>= 4.0.1) | |
| hashie (3.3.2) | |
| highline (1.6.21) | |
| hike (1.2.3) | |
| httparty (0.13.1) | |
| json (~> 1.8) | |
| multi_xml (>= 0.5.2) | |
| i18n (0.6.11) | |
| iconv (1.0.4) | |
| jquery-rails (3.1.2) | |
| railties (>= 3.0, < 5.0) | |
| thor (>= 0.14, < 2.0) | |
| jquery-ui-rails (5.0.3) | |
| railties (>= 3.2.16) | |
| json (1.8.1) | |
| launchy (2.4.2) | |
| addressable (~> 2.3) | |
| letter_opener (1.2.0) | |
| launchy (~> 2.2) | |
| listen (2.7.8) | |
| celluloid (>= 0.15.2) | |
| rb-fsevent (>= 0.9.3) | |
| rb-inotify (>= 0.9) | |
| lumberjack (1.0.6) | |
| mail (2.5.4) | |
| mime-types (~> 1.16) | |
| treetop (~> 1.4.8) | |
| mail_view (2.0.4) | |
| tilt | |
| method_source (0.8.2) | |
| mime-types (1.25.1) | |
| mini_portile (0.6.0) | |
| minitest (4.7.5) | |
| multi_json (1.10.1) | |
| multi_xml (0.5.5) | |
| net-scp (1.2.1) | |
| net-ssh (>= 2.6.5) | |
| net-sftp (2.1.2) | |
| net-ssh (>= 2.6.5) | |
| net-ssh (2.9.1) | |
| net-ssh-gateway (1.2.0) | |
| net-ssh (>= 2.6.5) | |
| nokogiri (1.6.3.1) | |
| mini_portile (= 0.6.0) | |
| oauth (0.4.7) | |
| orm_adapter (0.5.0) | |
| paypal-recurring (1.1.0) | |
| paypal-sdk-core (0.2.9) | |
| multi_json (~> 1.0) | |
| xml-simple | |
| paypal-sdk-merchant (1.114.0) | |
| paypal-sdk-core (~> 0.2.7) | |
| paypal-sdk-rest (0.6.1) | |
| paypal-sdk-core (~> 0.2.8) | |
| uuidtools (~> 2.1) | |
| pg (0.17.1) | |
| polyamorous (1.0.0) | |
| activerecord (>= 3.0) | |
| polyglot (0.3.5) | |
| posix-spawn (0.3.8) | |
| pry (0.10.0) | |
| coderay (~> 1.1.0) | |
| method_source (~> 0.8.1) | |
| slop (~> 3.4) | |
| pry-nav (0.2.4) | |
| pry (>= 0.9.10, < 0.11.0) | |
| pry-rails (0.3.2) | |
| pry (>= 0.9.10) | |
| puma (2.8.2) | |
| rack (>= 1.1, < 2.0) | |
| pygments.rb (0.6.0) | |
| posix-spawn (~> 0.3.6) | |
| yajl-ruby (~> 1.1.0) | |
| quiet_assets (1.0.2) | |
| railties (>= 3.1, < 5.0) | |
| rack (1.5.2) | |
| rack-test (0.6.2) | |
| rack (>= 1.0) | |
| rack-utf8_sanitizer (1.2.2) | |
| rack (~> 1.0) | |
| rails (4.0.5) | |
| actionmailer (= 4.0.5) | |
| actionpack (= 4.0.5) | |
| activerecord (= 4.0.5) | |
| activesupport (= 4.0.5) | |
| bundler (>= 1.3.0, < 2.0) | |
| railties (= 4.0.5) | |
| sprockets-rails (~> 2.0.0) | |
| rails-erd (1.1.0) | |
| activerecord (>= 3.0) | |
| activesupport (>= 3.0) | |
| choice (~> 0.1.6) | |
| ruby-graphviz (~> 1.0.4) | |
| railties (4.0.5) | |
| actionpack (= 4.0.5) | |
| activesupport (= 4.0.5) | |
| rake (>= 0.8.7) | |
| thor (>= 0.18.1, < 2.0) | |
| rake (10.4.2) | |
| rb-fsevent (0.9.4) | |
| rb-inotify (0.9.5) | |
| ffi (>= 0.5.0) | |
| recurrence (1.3.0) | |
| activesupport | |
| i18n | |
| redcarpet (3.1.2) | |
| rspec (3.0.0) | |
| rspec-core (~> 3.0.0) | |
| rspec-expectations (~> 3.0.0) | |
| rspec-mocks (~> 3.0.0) | |
| rspec-core (3.0.4) | |
| rspec-support (~> 3.0.0) | |
| rspec-expectations (3.0.4) | |
| diff-lcs (>= 1.2.0, < 2.0) | |
| rspec-support (~> 3.0.0) | |
| rspec-html-matchers (0.6.1) | |
| nokogiri (~> 1) | |
| rspec (~> 3) | |
| rspec-mocks (3.0.4) | |
| rspec-support (~> 3.0.0) | |
| rspec-rails (3.0.2) | |
| actionpack (>= 3.0) | |
| activesupport (>= 3.0) | |
| railties (>= 3.0) | |
| rspec-core (~> 3.0.0) | |
| rspec-expectations (~> 3.0.0) | |
| rspec-mocks (~> 3.0.0) | |
| rspec-support (~> 3.0.0) | |
| rspec-support (3.0.4) | |
| ru_propisju (2.3.0) | |
| ruby-graphviz (1.0.9) | |
| rubyzip (1.1.6) | |
| russian (0.6.0) | |
| i18n (>= 0.5.0) | |
| safe_yaml (1.0.3) | |
| sass (3.2.19) | |
| sass-rails (4.0.3) | |
| railties (>= 4.0.0, < 5.0) | |
| sass (~> 3.2.0) | |
| sprockets (~> 2.8, <= 2.11.0) | |
| sprockets-rails (~> 2.0) | |
| simple_form (3.1.0.rc2) | |
| actionpack (~> 4.0) | |
| activemodel (~> 4.0) | |
| slop (3.5.0) | |
| spring (1.1.3) | |
| spring-commands-rspec (1.0.2) | |
| spring (>= 0.9.1) | |
| sprockets (2.11.0) | |
| hike (~> 1.2) | |
| multi_json (~> 1.0) | |
| rack (~> 1.0) | |
| tilt (~> 1.1, != 1.3.0) | |
| sprockets-rails (2.0.1) | |
| actionpack (>= 3.0) | |
| activesupport (>= 3.0) | |
| sprockets (~> 2.8) | |
| sqlite3 (1.3.9) | |
| thor (0.19.1) | |
| thread_safe (0.3.4) | |
| tilt (1.4.1) | |
| timecop (0.6.3) | |
| timers (1.1.0) | |
| treetop (1.4.15) | |
| polyglot | |
| polyglot (>= 0.3.1) | |
| tzinfo (0.3.42) | |
| uglifier (2.5.1) | |
| execjs (>= 0.3.0) | |
| json (>= 1.8.0) | |
| unicode (0.4.4.1) | |
| uuidtools (2.1.4) | |
| vcr (2.9.2) | |
| warden (1.2.3) | |
| rack (>= 1.0) | |
| webmock (1.18.0) | |
| addressable (>= 2.3.6) | |
| crack (>= 0.3.2) | |
| whenever (0.9.2) | |
| activesupport (>= 2.3.4) | |
| chronic (>= 0.6.3) | |
| will_paginate (3.0.5) | |
| wysiwyg-rails (1.1.7) | |
| font-awesome-rails (= 4.1.0.0) | |
| railties (>= 3.2, < 5.0) | |
| xml-simple (1.1.3) | |
| xpath (2.0.0) | |
| nokogiri (~> 1.3) | |
| yajl-ruby (1.1.0) | |
| PLATFORMS | |
| ruby | |
| DEPENDENCIES | |
| activerecord-session_store | |
| airbrake | |
| annotate (>= 2.6.0) | |
| arbre | |
| bootstrap-sass (~> 3.1.1) | |
| capistrano (< 3.0.0) | |
| capistrano-puma (~> 0.0.1) | |
| capybara | |
| coffee-rails (~> 4.0.0) | |
| database_cleaner | |
| devise | |
| dotenv-deployment | |
| dotenv-rails | |
| dropbox-api | |
| enumerize | |
| factory_girl_rails (~> 4.0) | |
| font-awesome-sass | |
| foreigner | |
| grit | |
| guard-rspec (~> 4.2.8) | |
| haml-rails | |
| httparty | |
| iconv | |
| jquery-rails | |
| jquery-ui-rails | |
| letter_opener | |
| mail_view (~> 2.0.4) | |
| nokogiri | |
| paypal-recurring | |
| paypal-sdk-merchant | |
| paypal-sdk-rest | |
| pg | |
| pry-nav | |
| pry-rails | |
| puma | |
| pygments.rb | |
| quiet_assets | |
| rack-utf8_sanitizer | |
| rails (~> 4.0.2) | |
| rails-erd | |
| ransack! | |
| recurrence | |
| redcarpet | |
| rspec (~> 3.0.0) | |
| rspec-html-matchers | |
| rspec-rails (~> 3.0.0) | |
| ru_propisju | |
| rubyzip | |
| russian | |
| sass-rails (~> 4.0.0) | |
| simple_form (~> 3.1.0.beta) | |
| spring | |
| spring-commands-rspec | |
| sqlite3 | |
| timecop (~> 0.6.1) | |
| uglifier (>= 1.3.0) | |
| unicode | |
| vcr | |
| webmock | |
| whenever | |
| will_paginate (~> 3.0.5) | |
| wysiwyg-rails |
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
| class LogUploader | |
| def initialize(app) | |
| @app = app | |
| end | |
| def call(env) | |
| if env["PATH_INFO"] == "/logs/upload" | |
| ticket = SecureRandom.uuid | |
| FileUtils.mkdir_p("uploaded") | |
| File.open("uploaded/#{ticket}.zip", "wb") do |f| | |
| f.write env["rack.input"].read | |
| end | |
| [200, {"Content-Type" => "application/json"}, [{ticket: ticket}.to_json]] | |
| else | |
| @app.call(env) | |
| end | |
| end | |
| end |
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 Admin | |
| class LogsController < ApplicationController | |
| layout 'admin' | |
| before_action :authenticate_admin_account!, except: [:upload] | |
| def upload | |
| ticket = SecureRandom.uuid | |
| FileUtils.mkdir_p("uploaded") | |
| File.open("uploaded/#{ticket}.zip", "wb") do |f| | |
| f.write request.raw_post | |
| end | |
| render json: {ticket: ticket} | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment