finatra 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.rspec +1 -0
- data/.rvmrc +83 -0
- data/Gemfile +10 -0
- data/Gemfile.lock +33 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +19 -0
- data/Rakefile +49 -0
- data/VERSION +1 -0
- data/bin/fin +7 -0
- data/finatra.gemspec +72 -0
- data/lib/finatra.rb +45 -0
- data/lib/templates/App.scala.tt +26 -0
- data/lib/templates/project/Procfile.tt +1 -0
- data/lib/templates/project/README.markdown +13 -0
- data/lib/templates/project/pom.xml.tt +113 -0
- data/lib/templates/project/public/dealwithit.gif +0 -0
- data/lib/templates/project/templates/example.mustache +1 -0
- data/spec/finatra-gem_spec.rb +7 -0
- data/spec/spec_helper.rb +12 -0
- metadata +126 -0
data/.document
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/.rvmrc
ADDED
@@ -0,0 +1,83 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
|
3
|
+
# This is an RVM Project .rvmrc file, used to automatically load the ruby
|
4
|
+
# development environment upon cd'ing into the directory
|
5
|
+
|
6
|
+
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional,
|
7
|
+
# Only full ruby name is supported here, for short names use:
|
8
|
+
# echo "rvm use 1.9.2" > .rvmrc
|
9
|
+
environment_id="ruby-1.9.2-p290@finatra-gem"
|
10
|
+
|
11
|
+
#
|
12
|
+
# Uncomment the following lines if you want to verify rvm version per project
|
13
|
+
#
|
14
|
+
# rvmrc_rvm_version="1.10.2" # 1.10.1 seams as a safe start
|
15
|
+
# eval "$(echo ${rvm_version}.${rvmrc_rvm_version} | awk -F. '{print "[[ "$1*65536+$2*256+$3" -ge "$4*65536+$5*256+$6" ]]"}' )" || {
|
16
|
+
# echo "This .rvmrc file requires at least RVM ${rvmrc_rvm_version}, aborting loading."
|
17
|
+
# return 1
|
18
|
+
# }
|
19
|
+
#
|
20
|
+
|
21
|
+
#
|
22
|
+
# Uncomment following line if you want options to be set only for given project.
|
23
|
+
#
|
24
|
+
# PROJECT_JRUBY_OPTS=( --1.9 )
|
25
|
+
#
|
26
|
+
# The variable PROJECT_JRUBY_OPTS requires the following to be run in shell:
|
27
|
+
#
|
28
|
+
# chmod +x ${rvm_path}/hooks/after_use_jruby_opts
|
29
|
+
#
|
30
|
+
|
31
|
+
#
|
32
|
+
# First we attempt to load the desired environment directly from the environment
|
33
|
+
# file. This is very fast and efficient compared to running through the entire
|
34
|
+
# CLI and selector. If you want feedback on which environment was used then
|
35
|
+
# insert the word 'use' after --create as this triggers verbose mode.
|
36
|
+
#
|
37
|
+
if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \
|
38
|
+
&& -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
|
39
|
+
then
|
40
|
+
\. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
|
41
|
+
|
42
|
+
if [[ -s "${rvm_path:-$HOME/.rvm}/hooks/after_use" ]]
|
43
|
+
then
|
44
|
+
. "${rvm_path:-$HOME/.rvm}/hooks/after_use"
|
45
|
+
fi
|
46
|
+
else
|
47
|
+
# If the environment file has not yet been created, use the RVM CLI to select.
|
48
|
+
if ! rvm --create use "$environment_id"
|
49
|
+
then
|
50
|
+
echo "Failed to create RVM environment '${environment_id}'."
|
51
|
+
return 1
|
52
|
+
fi
|
53
|
+
fi
|
54
|
+
|
55
|
+
#
|
56
|
+
# If you use an RVM gemset file to install a list of gems (*.gems), you can have
|
57
|
+
# it be automatically loaded. Uncomment the following and adjust the filename if
|
58
|
+
# necessary.
|
59
|
+
#
|
60
|
+
# filename=".gems"
|
61
|
+
# if [[ -s "$filename" ]]
|
62
|
+
# then
|
63
|
+
# rvm gemset import "$filename" | grep -v already | grep -v listed | grep -v complete | sed '/^$/d'
|
64
|
+
# fi
|
65
|
+
|
66
|
+
# If you use bundler, this might be useful to you:
|
67
|
+
# if [[ -s Gemfile ]] && ! command -v bundle >/dev/null
|
68
|
+
# then
|
69
|
+
# printf "%b" "The rubygem 'bundler' is not installed. Installing it now.\n"
|
70
|
+
# gem install bundler
|
71
|
+
# fi
|
72
|
+
# if [[ -s Gemfile ]] && command -v bundle
|
73
|
+
# then
|
74
|
+
# bundle install
|
75
|
+
# fi
|
76
|
+
|
77
|
+
if [[ $- == *i* ]] # check for interactive shells
|
78
|
+
then
|
79
|
+
echo "Using: $(tput setaf 2)$GEM_HOME$(tput sgr0)" # show the user the ruby and gemset they are using in green
|
80
|
+
else
|
81
|
+
echo "Using: $GEM_HOME" # don't use colors in interactive shells
|
82
|
+
fi
|
83
|
+
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
diff-lcs (1.1.3)
|
5
|
+
git (1.2.5)
|
6
|
+
jeweler (1.8.3)
|
7
|
+
bundler (~> 1.0)
|
8
|
+
git (>= 1.2.5)
|
9
|
+
rake
|
10
|
+
rdoc
|
11
|
+
json (1.7.1)
|
12
|
+
rake (0.9.2.2)
|
13
|
+
rdoc (3.12)
|
14
|
+
json (~> 1.4)
|
15
|
+
rspec (2.8.0)
|
16
|
+
rspec-core (~> 2.8.0)
|
17
|
+
rspec-expectations (~> 2.8.0)
|
18
|
+
rspec-mocks (~> 2.8.0)
|
19
|
+
rspec-core (2.8.0)
|
20
|
+
rspec-expectations (2.8.0)
|
21
|
+
diff-lcs (~> 1.1.2)
|
22
|
+
rspec-mocks (2.8.0)
|
23
|
+
thor (0.15.2)
|
24
|
+
|
25
|
+
PLATFORMS
|
26
|
+
ruby
|
27
|
+
|
28
|
+
DEPENDENCIES
|
29
|
+
bundler
|
30
|
+
jeweler (~> 1.8.3)
|
31
|
+
rdoc (~> 3.12)
|
32
|
+
rspec (~> 2.8.0)
|
33
|
+
thor
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2012 twoism
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
= finatra-gem
|
2
|
+
|
3
|
+
Description goes here.
|
4
|
+
|
5
|
+
== Contributing to finatra-gem
|
6
|
+
|
7
|
+
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
8
|
+
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
9
|
+
* Fork the project.
|
10
|
+
* Start a feature/bugfix branch.
|
11
|
+
* Commit and push until you are happy with your contribution.
|
12
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
13
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
14
|
+
|
15
|
+
== Copyright
|
16
|
+
|
17
|
+
Copyright (c) 2012 twoism. See LICENSE.txt for
|
18
|
+
further details.
|
19
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
+
gem.name = "finatra"
|
18
|
+
gem.homepage = "http://github.com/twoism/finatra-gem"
|
19
|
+
gem.license = "MIT"
|
20
|
+
gem.summary = %Q{Project Generator}
|
21
|
+
gem.description = %Q{Project Generator for Finatra}
|
22
|
+
gem.email = "signalstatic@gmail.com"
|
23
|
+
gem.authors = ["twoism"]
|
24
|
+
gem.executables = ["fin"]
|
25
|
+
end
|
26
|
+
Jeweler::RubygemsDotOrgTasks.new
|
27
|
+
|
28
|
+
require 'rspec/core'
|
29
|
+
require 'rspec/core/rake_task'
|
30
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
31
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
32
|
+
end
|
33
|
+
|
34
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
35
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
36
|
+
spec.rcov = true
|
37
|
+
end
|
38
|
+
|
39
|
+
task :default => :spec
|
40
|
+
|
41
|
+
require 'rdoc/task'
|
42
|
+
Rake::RDocTask.new do |rdoc|
|
43
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
44
|
+
|
45
|
+
rdoc.rdoc_dir = 'rdoc'
|
46
|
+
rdoc.title = "finatra #{version}"
|
47
|
+
rdoc.rdoc_files.include('README*')
|
48
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
49
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.1
|
data/bin/fin
ADDED
data/finatra.gemspec
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{finatra}
|
8
|
+
s.version = "0.0.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = [%q{twoism}]
|
12
|
+
s.date = %q{2012-05-09}
|
13
|
+
s.description = %q{Project Generator for Finatra}
|
14
|
+
s.email = %q{signalstatic@gmail.com}
|
15
|
+
s.executables = [%q{fin}]
|
16
|
+
s.extra_rdoc_files = [
|
17
|
+
"LICENSE.txt",
|
18
|
+
"README.rdoc"
|
19
|
+
]
|
20
|
+
s.files = [
|
21
|
+
".document",
|
22
|
+
".rspec",
|
23
|
+
".rvmrc",
|
24
|
+
"Gemfile",
|
25
|
+
"Gemfile.lock",
|
26
|
+
"LICENSE.txt",
|
27
|
+
"README.rdoc",
|
28
|
+
"Rakefile",
|
29
|
+
"VERSION",
|
30
|
+
"bin/fin",
|
31
|
+
"finatra.gemspec",
|
32
|
+
"lib/finatra.rb",
|
33
|
+
"lib/templates/App.scala.tt",
|
34
|
+
"lib/templates/project/Procfile.tt",
|
35
|
+
"lib/templates/project/README.markdown",
|
36
|
+
"lib/templates/project/pom.xml.tt",
|
37
|
+
"lib/templates/project/public/dealwithit.gif",
|
38
|
+
"lib/templates/project/templates/example.mustache",
|
39
|
+
"spec/finatra-gem_spec.rb",
|
40
|
+
"spec/spec_helper.rb"
|
41
|
+
]
|
42
|
+
s.homepage = %q{http://github.com/twoism/finatra-gem}
|
43
|
+
s.licenses = [%q{MIT}]
|
44
|
+
s.require_paths = [%q{lib}]
|
45
|
+
s.rubygems_version = %q{1.8.6}
|
46
|
+
s.summary = %q{Project Generator}
|
47
|
+
|
48
|
+
if s.respond_to? :specification_version then
|
49
|
+
s.specification_version = 3
|
50
|
+
|
51
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
52
|
+
s.add_runtime_dependency(%q<thor>, [">= 0"])
|
53
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
|
54
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
55
|
+
s.add_development_dependency(%q<bundler>, [">= 0"])
|
56
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
|
57
|
+
else
|
58
|
+
s.add_dependency(%q<thor>, [">= 0"])
|
59
|
+
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
60
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
61
|
+
s.add_dependency(%q<bundler>, [">= 0"])
|
62
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
63
|
+
end
|
64
|
+
else
|
65
|
+
s.add_dependency(%q<thor>, [">= 0"])
|
66
|
+
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
67
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
68
|
+
s.add_dependency(%q<bundler>, [">= 0"])
|
69
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
data/lib/finatra.rb
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
require 'thor'
|
2
|
+
require 'date'
|
3
|
+
|
4
|
+
class Finatra < Thor
|
5
|
+
include Thor::Actions
|
6
|
+
|
7
|
+
def self.source_root
|
8
|
+
File.expand_path(File.dirname(__FILE__))
|
9
|
+
end
|
10
|
+
|
11
|
+
desc "new <MyAppName>", "Create a new Finatra app"
|
12
|
+
def new(name)
|
13
|
+
@app_name = name.to_s.gsub(/[^a-zA-Z0-9]/,'')
|
14
|
+
@dir_name = name.downcase.to_s.gsub(/[^a-zA-Z0-9]/,'')
|
15
|
+
@org_name = ask 'Org Name (com.<username>)' while @org_name.to_s.empty?
|
16
|
+
|
17
|
+
log "Creating #{@app_name} in #{Dir.pwd}..."
|
18
|
+
|
19
|
+
copy_project_files
|
20
|
+
create_controller
|
21
|
+
end
|
22
|
+
|
23
|
+
desc "compile", "compile your app with Maven"
|
24
|
+
def compile
|
25
|
+
puts `mvn compile`
|
26
|
+
end
|
27
|
+
|
28
|
+
private
|
29
|
+
|
30
|
+
def copy_project_files
|
31
|
+
directory "templates/project", @dir_name
|
32
|
+
end
|
33
|
+
|
34
|
+
def create_controller
|
35
|
+
template "templates/App.scala.tt", "#{src_dir}/#{@app_name}.scala"
|
36
|
+
end
|
37
|
+
|
38
|
+
def src_dir
|
39
|
+
"#{@dir_name}/src/main/scala/#{@org_name.gsub('.','/')}/#{@dir_name}"
|
40
|
+
end
|
41
|
+
|
42
|
+
def log(msg)
|
43
|
+
puts "[finatra] :: #{msg}"
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
package <%= @org_name %>.<%= @dir_name %>
|
2
|
+
|
3
|
+
import com.posterous.finatra.{FinatraApp, FinatraServer}
|
4
|
+
import com.capotej.finatra_core.MultipartItem
|
5
|
+
|
6
|
+
object App {
|
7
|
+
|
8
|
+
class <%= @app_name %> extends FinatraApp {
|
9
|
+
|
10
|
+
get("/") { request =>
|
11
|
+
response(body="hey")
|
12
|
+
}
|
13
|
+
|
14
|
+
}
|
15
|
+
|
16
|
+
def main(args: Array[String]) {
|
17
|
+
val port = util.Properties.envOrElse("PORT", "7070").toInt
|
18
|
+
val app = new <%= @app_name %>
|
19
|
+
|
20
|
+
FinatraServer.register(app)
|
21
|
+
FinatraServer.start()
|
22
|
+
}
|
23
|
+
|
24
|
+
}
|
25
|
+
|
26
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
web: java -cp target/classes:target/dependency/* <%= @org_name %>.<%= @app_name %>.App
|
@@ -0,0 +1,113 @@
|
|
1
|
+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
2
|
+
<modelVersion>4.0.0</modelVersion>
|
3
|
+
<groupId><%= @org_name %></groupId>
|
4
|
+
<artifactId><%= @app_name %></artifactId>
|
5
|
+
<version>0.0.1-SNAPSHOT</version>
|
6
|
+
<name>${project.artifactId}</name>
|
7
|
+
<description>Your description here.</description>
|
8
|
+
<inceptionYear><%= Date.today.year %></inceptionYear>
|
9
|
+
<licenses>
|
10
|
+
<license>
|
11
|
+
<name>mit</name>
|
12
|
+
<url>google it</url>
|
13
|
+
<distribution>repo</distribution>
|
14
|
+
</license>
|
15
|
+
</licenses>
|
16
|
+
|
17
|
+
<properties>
|
18
|
+
<maven.compiler.source>1.5</maven.compiler.source>
|
19
|
+
<maven.compiler.target>1.5</maven.compiler.target>
|
20
|
+
<encoding>UTF-8</encoding>
|
21
|
+
<scala.version>2.9.1</scala.version>
|
22
|
+
</properties>
|
23
|
+
|
24
|
+
<repositories>
|
25
|
+
<repository>
|
26
|
+
<id>scala-tools.org</id>
|
27
|
+
<name>Scala-Tools Maven2 Repository</name>
|
28
|
+
<url>http://scala-tools.org/repo-releases</url>
|
29
|
+
</repository>
|
30
|
+
<repository>
|
31
|
+
<id>repo.juliocapote.com</id>
|
32
|
+
<url>http://repo.juliocapote.com</url>
|
33
|
+
</repository>
|
34
|
+
</repositories>
|
35
|
+
|
36
|
+
<pluginRepositories>
|
37
|
+
<pluginRepository>
|
38
|
+
<id>scala-tools.org</id>
|
39
|
+
<name>Scala-Tools Maven2 Repository</name>
|
40
|
+
<url>http://scala-tools.org/repo-releases</url>
|
41
|
+
</pluginRepository>
|
42
|
+
</pluginRepositories>
|
43
|
+
<dependencies>
|
44
|
+
<dependency>
|
45
|
+
<groupId>com.posterous</groupId>
|
46
|
+
<artifactId>finatra</artifactId>
|
47
|
+
<version>4.0.2</version>
|
48
|
+
</dependency>
|
49
|
+
</dependencies>
|
50
|
+
|
51
|
+
<build>
|
52
|
+
<sourceDirectory>src/main/scala</sourceDirectory>
|
53
|
+
<testSourceDirectory>src/test/scala</testSourceDirectory>
|
54
|
+
<plugins>
|
55
|
+
<plugin>
|
56
|
+
<groupId>org.scala-tools</groupId>
|
57
|
+
<artifactId>maven-scala-plugin</artifactId>
|
58
|
+
<version>2.15.0</version>
|
59
|
+
<configuration>
|
60
|
+
<launchers>
|
61
|
+
<launcher>
|
62
|
+
<id>main</id>
|
63
|
+
<mainClass><%= @org_name %>.<%= @dir_name %>.App</mainClass>
|
64
|
+
</launcher>
|
65
|
+
<!-- you could define other launcher -->
|
66
|
+
</launchers>
|
67
|
+
</configuration>
|
68
|
+
<executions>
|
69
|
+
<execution>
|
70
|
+
<goals>
|
71
|
+
<goal>compile</goal>
|
72
|
+
<goal>testCompile</goal>
|
73
|
+
</goals>
|
74
|
+
<configuration>
|
75
|
+
<args>
|
76
|
+
<arg>-make:transitive</arg>
|
77
|
+
<arg>-dependencyfile</arg>
|
78
|
+
<arg>${project.build.directory}/.scala_dependencies</arg>
|
79
|
+
</args>
|
80
|
+
</configuration>
|
81
|
+
</execution>
|
82
|
+
</executions>
|
83
|
+
</plugin>
|
84
|
+
<plugin>
|
85
|
+
<groupId>org.apache.maven.plugins</groupId>
|
86
|
+
<artifactId>maven-dependency-plugin</artifactId>
|
87
|
+
<version>2.4</version>
|
88
|
+
<executions>
|
89
|
+
<execution>
|
90
|
+
<id>copy-dependencies</id>
|
91
|
+
<phase>package</phase>
|
92
|
+
<goals><goal>copy-dependencies</goal></goals>
|
93
|
+
</execution>
|
94
|
+
</executions>
|
95
|
+
</plugin>
|
96
|
+
<plugin>
|
97
|
+
<groupId>org.apache.maven.plugins</groupId>
|
98
|
+
<artifactId>maven-surefire-plugin</artifactId>
|
99
|
+
<version>2.6</version>
|
100
|
+
<configuration>
|
101
|
+
<useFile>false</useFile>
|
102
|
+
<disableXmlReport>true</disableXmlReport>
|
103
|
+
<!-- If you have classpath issue like NoDefClassError,... -->
|
104
|
+
<!-- useManifestOnlyJar>false</useManifestOnlyJar -->
|
105
|
+
<includes>
|
106
|
+
<include>**/*Test.*</include>
|
107
|
+
<include>**/*Suite.*</include>
|
108
|
+
</includes>
|
109
|
+
</configuration>
|
110
|
+
</plugin>
|
111
|
+
</plugins>
|
112
|
+
</build>
|
113
|
+
</project>
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
sup {{foo}}
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
3
|
+
require 'rspec'
|
4
|
+
require 'finatra'
|
5
|
+
|
6
|
+
# Requires supporting files with custom matchers and macros, etc,
|
7
|
+
# in ./support/ and its subdirectories.
|
8
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
9
|
+
|
10
|
+
RSpec.configure do |config|
|
11
|
+
|
12
|
+
end
|
metadata
ADDED
@@ -0,0 +1,126 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: finatra
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- twoism
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-05-09 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: thor
|
16
|
+
requirement: &70279375380620 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70279375380620
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rspec
|
27
|
+
requirement: &70279375380000 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ~>
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 2.8.0
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70279375380000
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rdoc
|
38
|
+
requirement: &70279375379360 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '3.12'
|
44
|
+
type: :development
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *70279375379360
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: bundler
|
49
|
+
requirement: &70279375378760 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *70279375378760
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: jeweler
|
60
|
+
requirement: &70279375378160 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ~>
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: 1.8.3
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *70279375378160
|
69
|
+
description: Project Generator for Finatra
|
70
|
+
email: signalstatic@gmail.com
|
71
|
+
executables:
|
72
|
+
- fin
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files:
|
75
|
+
- LICENSE.txt
|
76
|
+
- README.rdoc
|
77
|
+
files:
|
78
|
+
- .document
|
79
|
+
- .rspec
|
80
|
+
- .rvmrc
|
81
|
+
- Gemfile
|
82
|
+
- Gemfile.lock
|
83
|
+
- LICENSE.txt
|
84
|
+
- README.rdoc
|
85
|
+
- Rakefile
|
86
|
+
- VERSION
|
87
|
+
- bin/fin
|
88
|
+
- finatra.gemspec
|
89
|
+
- lib/finatra.rb
|
90
|
+
- lib/templates/App.scala.tt
|
91
|
+
- lib/templates/project/Procfile.tt
|
92
|
+
- lib/templates/project/README.markdown
|
93
|
+
- lib/templates/project/pom.xml.tt
|
94
|
+
- lib/templates/project/public/dealwithit.gif
|
95
|
+
- lib/templates/project/templates/example.mustache
|
96
|
+
- spec/finatra-gem_spec.rb
|
97
|
+
- spec/spec_helper.rb
|
98
|
+
homepage: http://github.com/twoism/finatra-gem
|
99
|
+
licenses:
|
100
|
+
- MIT
|
101
|
+
post_install_message:
|
102
|
+
rdoc_options: []
|
103
|
+
require_paths:
|
104
|
+
- lib
|
105
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
segments:
|
112
|
+
- 0
|
113
|
+
hash: 686763858493033847
|
114
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
115
|
+
none: false
|
116
|
+
requirements:
|
117
|
+
- - ! '>='
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '0'
|
120
|
+
requirements: []
|
121
|
+
rubyforge_project:
|
122
|
+
rubygems_version: 1.8.6
|
123
|
+
signing_key:
|
124
|
+
specification_version: 3
|
125
|
+
summary: Project Generator
|
126
|
+
test_files: []
|