radar-app 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 147df08f16b84c45254f8accad18b34b9b7d51f7
4
- data.tar.gz: 6a6a25aa283d0fdd57013266091e494fedc599c4
3
+ metadata.gz: 7aee1be7410c0aecfc2167c96e29eba83f136bc5
4
+ data.tar.gz: 910108e4722f0a921f83e6c15dadd4d245a70d49
5
5
  SHA512:
6
- metadata.gz: 33958d283b8d2a5fa3f6a2d1618920f0425c6b91d8c72ed84dc5dc77e93a2c4c470ed2efe046a89f1978fefb02cc88b137b125f350644429b4b47d774b9a890b
7
- data.tar.gz: 35233077784098839247952548484f0ee9dc33495018a49fba45c74360d0d63595dd5ab02643a39dc9c8db1cdb0df6a625122404754f6ea7bfe9ce89bbfe880f
6
+ metadata.gz: c21b5f4174fe0464b2a07d0a27e1b6f893edd1466455cb3043deec6aae738fa3bd49b91d4e4864355878025adc844127b582d79cc8bead63124a76a8c0753026
7
+ data.tar.gz: 15c2476572924c43a62f398e837443261da617abe74e6d554ffb95cd9a4623cb5b837f5221d94015ed1657866de7b71a8db16e00e75783914e1680a2df2aebe6
data/Guardfile CHANGED
@@ -1,4 +1,10 @@
1
+ guard :rspec do
2
+ watch(%r{^spec/.+_spec\.rb$})
3
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
4
+ watch('spec/spec_helper.rb') { "spec" }
5
+ end
6
+
1
7
  guard 'rake', :task => 'install' do
2
- watch(/\.rb$/)
8
+ watch(%r{^lib/(.+)\.rb$})
3
9
  watch(/^bin/)
4
10
  end
data/README.md CHANGED
@@ -1,29 +1,17 @@
1
1
  # Radar::App
2
2
 
3
- TODO: Write a gem description
3
+ [![Build Status](https://travis-ci.org/investtools/radar-app.svg)](https://travis-ci.org/investtools/radar-app)
4
4
 
5
- ## Installation
5
+ Radar::App é um framework para criação de apps para o Radar.
6
6
 
7
- Add this line to your application's Gemfile:
7
+ ## Documentação
8
8
 
9
- gem 'radar-app'
9
+ Para ler a documentação do Radar::App, acesse https://github.com/investtools/radar-app/wiki.
10
10
 
11
- And then execute:
11
+ ## Que contribuir?
12
12
 
13
- $ bundle
14
-
15
- Or install it yourself as:
16
-
17
- $ gem install radar-app
18
-
19
- ## Usage
20
-
21
- TODO: Write usage instructions here
22
-
23
- ## Contributing
24
-
25
- 1. Fork it ( http://github.com/<my-github-username>/radar-app/fork )
26
- 2. Create your feature branch (`git checkout -b my-new-feature`)
27
- 3. Commit your changes (`git commit -am 'Add some feature'`)
28
- 4. Push to the branch (`git push origin my-new-feature`)
29
- 5. Create new Pull Request
13
+ 1. Faça um fork ( http://github.com/investtools/radar-app/fork )
14
+ 2. Crie sua feature branch (`git checkout -b minha-nova-funcionalidade`)
15
+ 3. Faça commit das suas mudanças (`git commit -am 'Adicionando tal funcionalidade'`)
16
+ 4. Dê push para o novo branch (`git push origin minha-nova-funcionalidade`)
17
+ 5. Faça um Pull Request
data/bin/radar-app CHANGED
@@ -1,123 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- $: << File.expand_path('../lib/', __FILE__)
3
+ require 'radar/app/runner'
4
4
 
5
+ $templates_path = File.join(File.dirname(__FILE__), '..', 'templates')
5
6
 
6
- require 'rubygems'
7
- require 'bundler/setup'
8
- require 'thor'
9
-
10
- class RadarApp < Thor
11
-
12
- include Thor::Actions
13
-
14
- def self.source_root
15
- dir = File.dirname(__FILE__)
16
- "#{dir}/../templates"
17
- end
18
-
19
- desc 'new NAME', 'Creates a new project with the given name'
20
- method_option :alias => 'n'
21
- method_option :language, :type => :string, :aliases => '-l', :default => 'ruby',
22
- :desc => 'Choose the project language. Available options [Java, Ruby]'
23
- def new(project_name)
24
- if File.directory?(project_name.to_s)
25
- puts 'directory already exists'
26
- return
27
- end
28
-
29
- empty_directory project_name.to_s
30
-
31
- language = options[:language].downcase
32
- case language
33
- when 'ruby'
34
- new_ruby_project project_name
35
- when 'java'
36
- new_java_project project_name
37
- else
38
- puts 'language not available'
39
- end
40
- end
41
-
42
- desc 'server', 'Starts the app server'
43
- method_option :aliases => 's'
44
- def server
45
- require 'radar-app'
46
- require 'active_support/dependencies'
47
- require 'active_support/descendants_tracker'
48
- ActiveSupport::Dependencies.autoload_paths << './analyzers'
49
- require './config/app.rb'
50
- Radar::App::Server.start
51
- end
52
-
53
- desc 'generate', 'generates an analyzer'
54
- method_option :alias => 'g'
55
- def generate(command, analyzer_name)
56
- case command.to_s.downcase
57
- when 'analyzer'
58
- generate_analyzer(analyzer_name) if command == 'analyzer'
59
- else
60
- puts 'invalid command'
61
- end
62
- end
63
-
64
-
65
- no_commands do
66
- def generate_analyzer(analyzer_name)
67
- file_name = "#{analyzer_name}.rb"
68
- copy_file 'analyzer.rb', file_name
69
-
70
- names = analyzer_name.split '_'
71
- class_name = ''
72
- names.each {|name| class_name = class_name + name.capitalize}
73
- gsub_file file_name, 'ClassName', class_name
74
-
75
- empty_directory 'spec' unless File.directory?('spec')
76
- spec_file_name = "spec/#{analyzer_name}_spec.rb"
77
- copy_file 'spec/analyzer_spec.rb', spec_file_name
78
- gsub_file spec_file_name, 'file_name', analyzer_name
79
- gsub_file spec_file_name, 'ClassName', class_name
80
-
81
- #append_to_file 'analyzers_registry.rb', "RadarApp::AnalyzerController.register_analyzer('#{class_name}', '#{class_name}')"
82
- end
83
-
84
- def new_ruby_project(project_name)
85
- copy_file 'Gemfile', "#{project_name}/Gemfile"
86
- copy_file 'analyzers_registry.rb', "#{project_name}/analyzers_registry.rb"
87
- end
88
-
89
- def new_java_project(project_name)
90
- lib_directory = "#{project_name.to_s}/lib"
91
- empty_directory lib_directory
92
- empty_directory "#{project_name.to_s}/src"
93
-
94
- download('http://repo2.maven.org/maven2/org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.jar', lib_directory)
95
- download('http://repo2.maven.org/maven2/org/apache/httpcomponents/httpclient/4.2.5/httpclient-4.2.5.jar', lib_directory)
96
- download('http://repo2.maven.org/maven2/org/apache/httpcomponents/httpcore/4.2.4/httpcore-4.2.4.jar', lib_directory)
97
- download('http://repo2.maven.org/maven2/org/apache/thrift/libthrift/0.9.1/libthrift-0.9.1.jar', lib_directory)
98
- download('http://central.maven.org/maven2/log4j/log4j/1.2.16/log4j-1.2.16.jar', lib_directory)
99
- download('http://central.maven.org/maven2/org/slf4j/slf4j-api/1.5.8/slf4j-api-1.5.8.jar', lib_directory)
100
- download('http://central.maven.org/maven2/org/slf4j/slf4j-log4j12/1.5.8/slf4j-log4j12-1.5.8.jar', lib_directory)
101
- end
102
-
103
- def download(url, dir)
104
- File.join(dir, File.basename(url)).tap do |localpath|
105
- File.open(localpath, 'wb') do |localfile|
106
- begin
107
- Net::HTTP.get_response(URI.parse(url)) do |resp|
108
- puts "error downloading #{url}" if resp.code == '404'
109
- resp.read_body do |segment|
110
- localfile << segment
111
- end
112
- end
113
- rescue EOFError
114
- puts "error downloading #{url}"
115
- end
116
- end
117
- end
118
- end
119
- end
120
-
121
- end
122
-
123
- RadarApp.start
7
+ Radar::App::Runner.start
@@ -0,0 +1,25 @@
1
+ module Radar
2
+ module App
3
+ module Bootstrap
4
+ def self.startup
5
+ load_env_config
6
+ load_app_config
7
+ Radar::App::Server.new(ENV['PORT'] || 5000).start
8
+ end
9
+
10
+ protected
11
+
12
+ def self.load_env_config
13
+ require env_config if File.exist?(env_config)
14
+ end
15
+
16
+ def self.env_config
17
+ "./config/#{Radar::App.env}.rb"
18
+ end
19
+
20
+ def self.load_app_config
21
+ require './config/app.rb'
22
+ end
23
+ end
24
+ end
25
+ end
@@ -1,9 +1,29 @@
1
+ require 'active_support/concern'
2
+
1
3
  module Radar
2
4
  module App
5
+
6
+ def self.logger=(logger)
7
+ @logger = logger
8
+ end
9
+
10
+ def self.logger
11
+ @logger ||= ::Logger.new(STDERR)
12
+ end
13
+
3
14
  module Logger
15
+
16
+ extend ActiveSupport::Concern
17
+
4
18
  def logger
5
19
  Radar::App.logger
6
20
  end
21
+
22
+ module ClassMethods
23
+ def logger
24
+ Radar::App.logger
25
+ end
26
+ end
7
27
  end
8
28
  end
9
29
  end
@@ -0,0 +1,13 @@
1
+ require 'bundler/setup'
2
+ require 'thor'
3
+ require 'radar/app/tasks'
4
+
5
+ module Radar
6
+ module App
7
+ class Runner < Thor
8
+ register(Radar::App::Tasks::New, :new, 'new APP', 'Create a new app')
9
+ register(Radar::App::Tasks::Generate, :generate, 'generate TYPE', 'Generate source files')
10
+ register(Radar::App::Tasks::Server, :server, 'server', 'Start the app server')
11
+ end
12
+ end
13
+ end
@@ -2,14 +2,16 @@ require 'radar-api'
2
2
 
3
3
  module Radar
4
4
  module App
5
- class Server
6
- def self.start
7
- port = ENV['PORT'] || 5000
5
+ class Server < Struct.new(:port)
6
+
7
+ include Radar::App::Logger
8
+
9
+ def start
8
10
  handler = Radar::App::AnalyzerController.new
9
11
  processor = Radar::API::AnalyzerController::Processor.new(handler)
10
12
  transport = Thrift::ServerSocket.new(port)
11
13
  server = Thrift::NonblockingServer.new(processor, transport, Thrift::FramedTransportFactory.new)
12
- $stderr.puts "Starting app on port #{port}..."
14
+ logger.info { "Starting app on port #{port}..." }
13
15
  server.serve
14
16
  end
15
17
  end
@@ -0,0 +1,35 @@
1
+ require 'thor'
2
+ require 'active_support/core_ext/string'
3
+
4
+ module Radar
5
+ module App
6
+ module Tasks
7
+ class Generate < Thor
8
+ include Thor::Actions
9
+
10
+ def self.source_root
11
+ $templates_path
12
+ end
13
+
14
+ desc 'analyzer', 'Generate an analyzer'
15
+ argument :name, type: :string, desc: 'Class name'
16
+ def analyzer
17
+ @class_name = name.underscore.camelcase
18
+ template 'analyzers/analyzer.rb.erb', "analyzers/#{filename}"
19
+ template 'spec/analyzers/analyzer_spec.rb.erb', "spec/analyzers/#{spec_filename}"
20
+ append_to_file 'config/app.rb', "\nRadar::App::AnalyzerController << #{@class_name}"
21
+ end
22
+
23
+ protected
24
+
25
+ def filename
26
+ "#{name.underscore}.rb"
27
+ end
28
+ def spec_filename
29
+ "#{name.underscore}_spec.rb"
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
35
+
@@ -0,0 +1,86 @@
1
+ module Radar
2
+ module App
3
+ module Tasks
4
+ class New < Thor::Group
5
+ include Thor::Actions
6
+ namespace :new
7
+
8
+ argument :app_name, :type => :string, :desc => "The number to start counting"
9
+
10
+ class_option :lang, :type => :string, :aliases => '-l', :default => 'ruby',
11
+ :desc => 'Choose the programming language. Available options: ruby, java'
12
+
13
+ def self.source_root
14
+ $templates_path
15
+ end
16
+
17
+ def create_root_directory
18
+ empty_directory app_name.to_s
19
+ end
20
+
21
+ def create_basic_files
22
+ copy_file 'Gemfile', "#{app_name}/Gemfile"
23
+ copy_file 'Procfile', "#{app_name}/Procfile"
24
+ copy_file '.webhook', "#{app_name}/.webhook"
25
+ copy_file 'config/app.rb', "#{app_name}/config/app.rb"
26
+ end
27
+
28
+ def create_git_repo
29
+ inside app_name do
30
+ run 'git init'
31
+ run "git remote add production dokku@radar.investtools.com.br:#{app_name}"
32
+ end
33
+ end
34
+
35
+
36
+ def run_bundle
37
+ inside app_name do
38
+ run 'bundle install'
39
+ end
40
+ end
41
+
42
+
43
+ # def new_java_project(app_name)
44
+ # lib_directory = "#{app_name.to_s}/lib"
45
+ # empty_directory lib_directory
46
+ # empty_directory "#{app_name.to_s}/src"
47
+
48
+ # download('http://repo2.maven.org/maven2/org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.jar', lib_directory)
49
+ # download('http://repo2.maven.org/maven2/org/apache/httpcomponents/httpclient/4.2.5/httpclient-4.2.5.jar', lib_directory)
50
+ # download('http://repo2.maven.org/maven2/org/apache/httpcomponents/httpcore/4.2.4/httpcore-4.2.4.jar', lib_directory)
51
+ # download('http://repo2.maven.org/maven2/org/apache/thrift/libthrift/0.9.1/libthrift-0.9.1.jar', lib_directory)
52
+ # download('http://central.maven.org/maven2/log4j/log4j/1.2.16/log4j-1.2.16.jar', lib_directory)
53
+ # download('http://central.maven.org/maven2/org/slf4j/slf4j-api/1.5.8/slf4j-api-1.5.8.jar', lib_directory)
54
+ # download('http://central.maven.org/maven2/org/slf4j/slf4j-log4j12/1.5.8/slf4j-log4j12-1.5.8.jar', lib_directory)
55
+ # end
56
+ # def create_project
57
+ # lang = options[:lang].downcase
58
+ # case lang
59
+ # when 'ruby'
60
+ # new_ruby_project app_name
61
+ # when 'java'
62
+ # new_java_project app_name
63
+ # else
64
+ # puts 'lang not available'
65
+ # end
66
+ # end
67
+ # def download(url, dir)
68
+ # File.join(dir, File.basename(url)).tap do |localpath|
69
+ # File.open(localpath, 'wb') do |localfile|
70
+ # begin
71
+ # Net::HTTP.get_response(URI.parse(url)) do |resp|
72
+ # puts "error downloading #{url}" if resp.code == '404'
73
+ # resp.read_body do |segment|
74
+ # localfile << segment
75
+ # end
76
+ # end
77
+ # rescue EOFError
78
+ # puts "error downloading #{url}"
79
+ # end
80
+ # end
81
+ # end
82
+ # end
83
+ end
84
+ end
85
+ end
86
+ end
@@ -0,0 +1,15 @@
1
+ module Radar
2
+ module App
3
+ module Tasks
4
+ class Server < Thor::Group
5
+ include Thor::Actions
6
+ namespace :server
7
+
8
+ def start_server
9
+ require 'radar-app'
10
+ Radar::App::Bootstrap.startup
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,3 @@
1
+ require 'radar/app/tasks/new'
2
+ require 'radar/app/tasks/server'
3
+ require 'radar/app/tasks/generate'
@@ -1,5 +1,5 @@
1
1
  module Radar
2
2
  module App
3
- VERSION = "0.0.13"
3
+ VERSION = "0.0.14"
4
4
  end
5
5
  end
data/lib/radar/app.rb CHANGED
@@ -5,6 +5,7 @@ require 'radar/app/session'
5
5
  require 'radar/app/controller'
6
6
  require 'radar/app/analyzer_controller'
7
7
  require 'radar/app/server'
8
+ require 'radar/app/bootstrap'
8
9
 
9
10
  require 'radar-api'
10
11
  require 'connection_pool'
@@ -13,14 +14,6 @@ require 'active_support/string_inquirer'
13
14
 
14
15
  module Radar
15
16
  module App
16
- def self.logger=(logger)
17
- @logger = logger
18
- end
19
-
20
- def self.logger
21
- @logger ||= ::Logger.new(STDERR)
22
- end
23
-
24
17
  def self.env
25
18
  @env ||= ActiveSupport::StringInquirer.new(ENV['RADAR_ENV'] || 'development')
26
19
  end
data/radar-app.gemspec CHANGED
@@ -6,8 +6,8 @@ require 'radar/app/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "radar-app"
8
8
  spec.version = Radar::App::VERSION
9
- spec.authors = ["Leonardo Mendonca"]
10
- spec.email = ["leonardo.mendonca@investtools.com.br"]
9
+ spec.authors = ["Leonardo Mendonca", "André Aizim Kelmanson"]
10
+ spec.email = ["desenvolvimento@investtools.com.br"]
11
11
  spec.summary = %q{radar-app generator}
12
12
  spec.description = %q{generates and run a radar-app.}
13
13
  spec.homepage = "http://www.investtools.com.br/"
@@ -20,6 +20,8 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.5"
22
22
  spec.add_development_dependency "guard-rake", "0.0.9"
23
+ spec.add_development_dependency "guard-rspec", "4.2"
24
+ spec.add_development_dependency "rspec", "~> 2.14"
23
25
 
24
26
  spec.add_dependency "thor", "~> 0.19"
25
27
  spec.add_dependency "radar-api", "~> 0.1"
@@ -0,0 +1 @@
1
+ POST http://${RADAR_HOST:-radar.indicativos.com.br}/apps/$APP/up port=$PORT
@@ -0,0 +1 @@
1
+ web: bundle exec radar-app server
@@ -1,11 +1,11 @@
1
1
  require 'radar-api'
2
2
 
3
- class ClassName
3
+ class <%= @class_name %>
4
4
 
5
5
  def config
6
6
  Radar::API::AnalyzerConfig.new(
7
7
  result_type: Radar::API::ResultType::TABLE,
8
- accepted_events: Set.new([Radar::API::Event::EACH_DAY, Radar::API::Event::EACH_MONTH, Radar::API::Event::FINISH])
8
+ accepted_events: [Radar::API::Event::EACH_DAY, Radar::API::Event::EACH_MONTH, Radar::API::Event::FINISH].to_set
9
9
  )
10
10
  end
11
11
 
@@ -0,0 +1,25 @@
1
+ require 'active_support'
2
+
3
+ require 'active_support/core_ext/date'
4
+ require 'active_support/core_ext/numeric'
5
+
6
+ ActiveSupport::Dependencies.autoload_paths << './analyzers'
7
+
8
+
9
+ def watchable_args
10
+ files, dirs = [], {}
11
+
12
+ ActiveSupport::Dependencies.autoload_paths.each do |path|
13
+ dirs[path.to_s] = [:rb]
14
+ end
15
+
16
+ [files, dirs]
17
+ end
18
+
19
+ $class_reloader = ActiveSupport::FileUpdateChecker.new(*watchable_args) do
20
+ ActiveSupport::DescendantsTracker.clear
21
+ ActiveSupport::Dependencies.clear
22
+ end
23
+
24
+ Bundler.require(:default, Radar::App.env)
25
+
@@ -0,0 +1,3 @@
1
+ describe <%= @class_name => do
2
+
3
+ end
metadata CHANGED
@@ -1,27 +1,28 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radar-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leonardo Mendonca
8
+ - André Aizim Kelmanson
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-05-06 00:00:00.000000000 Z
12
+ date: 2014-07-11 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler
15
16
  requirement: !ruby/object:Gem::Requirement
16
17
  requirements:
17
- - - "~>"
18
+ - - ~>
18
19
  - !ruby/object:Gem::Version
19
20
  version: '1.5'
20
21
  type: :development
21
22
  prerelease: false
22
23
  version_requirements: !ruby/object:Gem::Requirement
23
24
  requirements:
24
- - - "~>"
25
+ - - ~>
25
26
  - !ruby/object:Gem::Version
26
27
  version: '1.5'
27
28
  - !ruby/object:Gem::Dependency
@@ -38,32 +39,60 @@ dependencies:
38
39
  - - '='
39
40
  - !ruby/object:Gem::Version
40
41
  version: 0.0.9
42
+ - !ruby/object:Gem::Dependency
43
+ name: guard-rspec
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - '='
47
+ - !ruby/object:Gem::Version
48
+ version: '4.2'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - '='
54
+ - !ruby/object:Gem::Version
55
+ version: '4.2'
56
+ - !ruby/object:Gem::Dependency
57
+ name: rspec
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ~>
61
+ - !ruby/object:Gem::Version
62
+ version: '2.14'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: '2.14'
41
70
  - !ruby/object:Gem::Dependency
42
71
  name: thor
43
72
  requirement: !ruby/object:Gem::Requirement
44
73
  requirements:
45
- - - "~>"
74
+ - - ~>
46
75
  - !ruby/object:Gem::Version
47
76
  version: '0.19'
48
77
  type: :runtime
49
78
  prerelease: false
50
79
  version_requirements: !ruby/object:Gem::Requirement
51
80
  requirements:
52
- - - "~>"
81
+ - - ~>
53
82
  - !ruby/object:Gem::Version
54
83
  version: '0.19'
55
84
  - !ruby/object:Gem::Dependency
56
85
  name: radar-api
57
86
  requirement: !ruby/object:Gem::Requirement
58
87
  requirements:
59
- - - "~>"
88
+ - - ~>
60
89
  - !ruby/object:Gem::Version
61
90
  version: '0.1'
62
91
  type: :runtime
63
92
  prerelease: false
64
93
  version_requirements: !ruby/object:Gem::Requirement
65
94
  requirements:
66
- - - "~>"
95
+ - - ~>
67
96
  - !ruby/object:Gem::Version
68
97
  version: '0.1'
69
98
  - !ruby/object:Gem::Dependency
@@ -84,53 +113,53 @@ dependencies:
84
113
  name: connection_pool
85
114
  requirement: !ruby/object:Gem::Requirement
86
115
  requirements:
87
- - - "~>"
116
+ - - ~>
88
117
  - !ruby/object:Gem::Version
89
118
  version: '2.0'
90
119
  type: :runtime
91
120
  prerelease: false
92
121
  version_requirements: !ruby/object:Gem::Requirement
93
122
  requirements:
94
- - - "~>"
123
+ - - ~>
95
124
  - !ruby/object:Gem::Version
96
125
  version: '2.0'
97
126
  - !ruby/object:Gem::Dependency
98
127
  name: activesupport
99
128
  requirement: !ruby/object:Gem::Requirement
100
129
  requirements:
101
- - - "~>"
130
+ - - ~>
102
131
  - !ruby/object:Gem::Version
103
132
  version: '4.1'
104
133
  type: :runtime
105
134
  prerelease: false
106
135
  version_requirements: !ruby/object:Gem::Requirement
107
136
  requirements:
108
- - - "~>"
137
+ - - ~>
109
138
  - !ruby/object:Gem::Version
110
139
  version: '4.1'
111
140
  - !ruby/object:Gem::Dependency
112
141
  name: thrift_client
113
142
  requirement: !ruby/object:Gem::Requirement
114
143
  requirements:
115
- - - "~>"
144
+ - - ~>
116
145
  - !ruby/object:Gem::Version
117
146
  version: '0.9'
118
147
  type: :runtime
119
148
  prerelease: false
120
149
  version_requirements: !ruby/object:Gem::Requirement
121
150
  requirements:
122
- - - "~>"
151
+ - - ~>
123
152
  - !ruby/object:Gem::Version
124
153
  version: '0.9'
125
154
  description: generates and run a radar-app.
126
155
  email:
127
- - leonardo.mendonca@investtools.com.br
156
+ - desenvolvimento@investtools.com.br
128
157
  executables:
129
158
  - radar-app
130
159
  extensions: []
131
160
  extra_rdoc_files: []
132
161
  files:
133
- - ".gitignore"
162
+ - .gitignore
134
163
  - Gemfile
135
164
  - Guardfile
136
165
  - LICENSE.txt
@@ -140,18 +169,26 @@ files:
140
169
  - lib/radar-app.rb
141
170
  - lib/radar/app.rb
142
171
  - lib/radar/app/analyzer_controller.rb
172
+ - lib/radar/app/bootstrap.rb
143
173
  - lib/radar/app/controller.rb
144
174
  - lib/radar/app/core_ext.rb
145
175
  - lib/radar/app/core_ext/date.rb
146
176
  - lib/radar/app/logger.rb
177
+ - lib/radar/app/runner.rb
147
178
  - lib/radar/app/server.rb
148
179
  - lib/radar/app/session.rb
180
+ - lib/radar/app/tasks.rb
181
+ - lib/radar/app/tasks/generate.rb
182
+ - lib/radar/app/tasks/new.rb
183
+ - lib/radar/app/tasks/server.rb
149
184
  - lib/radar/app/version.rb
150
185
  - radar-app.gemspec
186
+ - templates/.webhook
151
187
  - templates/Gemfile
152
- - templates/analyzer.rb
153
- - templates/analyzers_registry.rb
154
- - templates/spec/analyzer_spec.rb
188
+ - templates/Procfile
189
+ - templates/analyzers/analyzer.rb.erb
190
+ - templates/config/app.rb
191
+ - templates/spec/analyzers/analyzer_spec.rb.erb
155
192
  homepage: http://www.investtools.com.br/
156
193
  licenses:
157
194
  - MIT
@@ -162,17 +199,17 @@ require_paths:
162
199
  - lib
163
200
  required_ruby_version: !ruby/object:Gem::Requirement
164
201
  requirements:
165
- - - ">="
202
+ - - '>='
166
203
  - !ruby/object:Gem::Version
167
204
  version: '0'
168
205
  required_rubygems_version: !ruby/object:Gem::Requirement
169
206
  requirements:
170
- - - ">="
207
+ - - '>='
171
208
  - !ruby/object:Gem::Version
172
209
  version: '0'
173
210
  requirements: []
174
211
  rubyforge_project:
175
- rubygems_version: 2.2.1
212
+ rubygems_version: 2.1.11
176
213
  signing_key:
177
214
  specification_version: 4
178
215
  summary: radar-app generator
@@ -1,5 +0,0 @@
1
- require 'radar-app'
2
-
3
- #register your analyzer
4
- #RadarApp::AnalyzerController.register_analyzer('analyzer_id', AnalyzerClass)
5
-
@@ -1,6 +0,0 @@
1
- require 'radar-api'
2
- require './file_name'
3
-
4
- describe ClassName do
5
-
6
- end