simba 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/simba/templates/Gemfile +1 -2
- data/lib/simba/templates/Linnerfile +2 -1
- data/lib/simba/version.rb +1 -1
- metadata +2 -22
- data/template/.gitignore +0 -6
- data/template/Gemfile +0 -25
- data/template/Rakefile +0 -3
- data/template/app/assets/css/application.scss +0 -1
- data/template/app/assets/img/.gitkeep +0 -0
- data/template/app/assets/js/application.coffee +0 -0
- data/template/app/controllers/application_controller.rb +0 -3
- data/template/app/helpers/application_helper.rb +0 -14
- data/template/app/models/user.rb +0 -2
- data/template/app/views/home/index.slim.tt +0 -1
- data/template/app/views/layout.slim.tt +0 -9
- data/template/config/boot.rb.tt +0 -27
- data/template/config/database.yml +0 -2
- data/template/config.ru +0 -2
- data/template/lib/tasks/stat.rake +0 -27
- data/template/lib/tasks/test.rake +0 -15
- data/template/test/factory/user_factory.rb +0 -6
- data/template/test/functional/user_controller_test.rb +0 -4
- data/template/test/test_helper.rb +0 -27
- data/template/test/unit/user_test.rb +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c39458232a64c6cd0fc566eefef37b18c432a31
|
4
|
+
data.tar.gz: aa18adc0236b3d4051b328c25aed02a5f2a101e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 814703c5232bd0fb32bccec0ab2a00cdc987a4ae46e84b5aa88793b9a574042b0caf3d5b46a0d2d9f84e28f4fd39165abab9d52a8b287a1d305ae1d92db51179
|
7
|
+
data.tar.gz: 60f161f6e601762a9dc6c9d981714d78600cac4d1696b5bbec789176f327bb0e78611b40b997a3e9cfb06d5696f0117808325470e00634dc92e91a8d8a2c78ae
|
data/lib/simba/templates/Gemfile
CHANGED
@@ -11,9 +11,8 @@ gem "sinatra-activerecord", "~> 1.2.3"
|
|
11
11
|
# gem "pony"
|
12
12
|
|
13
13
|
group :development do
|
14
|
-
gem "http", "~> 0.5.0"
|
15
14
|
gem "therubyracer", "~> 0.12.0"
|
16
|
-
gem "linner", "~> 0.
|
15
|
+
gem "linner", "~> 0.7", require: false
|
17
16
|
end
|
18
17
|
|
19
18
|
group :production do
|
data/lib/simba/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simba
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Saito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -62,26 +62,6 @@ files:
|
|
62
62
|
- lib/simba/templates/test/unit/user_test.rb
|
63
63
|
- lib/simba/version.rb
|
64
64
|
- simba.gemspec
|
65
|
-
- template/.gitignore
|
66
|
-
- template/Gemfile
|
67
|
-
- template/Rakefile
|
68
|
-
- template/app/assets/css/application.scss
|
69
|
-
- template/app/assets/img/.gitkeep
|
70
|
-
- template/app/assets/js/application.coffee
|
71
|
-
- template/app/controllers/application_controller.rb
|
72
|
-
- template/app/helpers/application_helper.rb
|
73
|
-
- template/app/models/user.rb
|
74
|
-
- template/app/views/home/index.slim.tt
|
75
|
-
- template/app/views/layout.slim.tt
|
76
|
-
- template/config.ru
|
77
|
-
- template/config/boot.rb.tt
|
78
|
-
- template/config/database.yml
|
79
|
-
- template/lib/tasks/stat.rake
|
80
|
-
- template/lib/tasks/test.rake
|
81
|
-
- template/test/factory/user_factory.rb
|
82
|
-
- template/test/functional/user_controller_test.rb
|
83
|
-
- template/test/test_helper.rb
|
84
|
-
- template/test/unit/user_test.rb
|
85
65
|
homepage: https://github.com/SaitoWu/simba
|
86
66
|
licenses: []
|
87
67
|
metadata: {}
|
data/template/.gitignore
DELETED
data/template/Gemfile
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
source "https://rubygems.org"
|
2
|
-
|
3
|
-
gem "sqlite3"
|
4
|
-
gem "slim", "~> 2.0.1"
|
5
|
-
gem "sinatra", "~> 1.4.3"
|
6
|
-
gem "sinatra-contrib", "~> 1.4.1"
|
7
|
-
gem "sinatra-activerecord", "~> 1.2.3"
|
8
|
-
|
9
|
-
# If you want to use mail
|
10
|
-
# gem "pony"
|
11
|
-
|
12
|
-
group :development do
|
13
|
-
gem "linner", "~> 0.4"
|
14
|
-
end
|
15
|
-
|
16
|
-
group :production do
|
17
|
-
gem "puma"
|
18
|
-
end
|
19
|
-
|
20
|
-
group :test do
|
21
|
-
gem "pry"
|
22
|
-
gem "rack-test"
|
23
|
-
gem "factory_girl"
|
24
|
-
gem "database_cleaner"
|
25
|
-
end
|
data/template/Rakefile
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
|
File without changes
|
File without changes
|
@@ -1,14 +0,0 @@
|
|
1
|
-
helpers do
|
2
|
-
include Sprockets::Helpers
|
3
|
-
|
4
|
-
def js file
|
5
|
-
file = "js/#{file}.js"
|
6
|
-
%Q|<script src="#{asset_path file}"></script>|
|
7
|
-
end
|
8
|
-
|
9
|
-
def css file
|
10
|
-
file = "css/#{file}.css"
|
11
|
-
%Q|<link rel="stylesheet" href="#{asset_path file}"/>|
|
12
|
-
end
|
13
|
-
|
14
|
-
end
|
data/template/app/models/user.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
h3 <%= @class_name %> Homepage
|
data/template/config/boot.rb.tt
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
require "rubygems"
|
2
|
-
require "bundler"
|
3
|
-
require "yaml"
|
4
|
-
|
5
|
-
# require "bundle gems"
|
6
|
-
ENV["RACK_ENV"] ||= "development"
|
7
|
-
Bundler.require(:default, ENV["RACK_ENV"].to_sym)
|
8
|
-
|
9
|
-
# init database
|
10
|
-
DB = Sequel.connect(YAML.load_file("./config/database.yml")["default"]["url"])
|
11
|
-
|
12
|
-
# init sinatra
|
13
|
-
set :sessions, true
|
14
|
-
set :session_secret, "<%= @session_secret %>"
|
15
|
-
set :root, File.expand_path(".")
|
16
|
-
set :views, settings.root + "/app/views"
|
17
|
-
|
18
|
-
# sinatra reloader
|
19
|
-
if development?
|
20
|
-
require "sinatra/reloader"
|
21
|
-
also_reload "lib/**/*.rb", "app/{models,helpers}/**/*.rb"
|
22
|
-
end
|
23
|
-
|
24
|
-
# require project files
|
25
|
-
Dir.glob "./{lib,app/models,app/helpers,app/controllers}/**/*.rb" do |f|
|
26
|
-
require f
|
27
|
-
end
|
data/template/config.ru
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
namespace :metric do
|
2
|
-
|
3
|
-
desc "project statistics"
|
4
|
-
task "stat" do
|
5
|
-
puts "All:"
|
6
|
-
stat_files Dir.glob("**/*.{rb,slim,coffee,scss}")
|
7
|
-
puts "\nRuby:"
|
8
|
-
stat_files Dir.glob("**/*.rb") - Dir.glob("test/**/*.rb")
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
private
|
13
|
-
|
14
|
-
def stat_files fs
|
15
|
-
c = 0
|
16
|
-
fc = 0
|
17
|
-
total_size = 0.0
|
18
|
-
fs.each do |f|
|
19
|
-
fc += 1
|
20
|
-
data = File.binread f
|
21
|
-
c += data.count "\n"
|
22
|
-
total_size += data.bytesize
|
23
|
-
end
|
24
|
-
puts "files: #{fc}"
|
25
|
-
puts "lines: #{c}"
|
26
|
-
puts "chars: #{total_size.to_i}"
|
27
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
%w[unit functional integration performance].each do |type|
|
2
|
-
desc "run #{type} tests"
|
3
|
-
task "test:#{type}" do
|
4
|
-
Dir.glob "./test/#{type}/*_test.rb" do |f|
|
5
|
-
require f
|
6
|
-
end
|
7
|
-
end
|
8
|
-
end
|
9
|
-
|
10
|
-
desc "run all tests"
|
11
|
-
task "test" do
|
12
|
-
Dir.glob "./test/**/*_test.rb" do |f|
|
13
|
-
require f
|
14
|
-
end
|
15
|
-
end
|
@@ -1,27 +0,0 @@
|
|
1
|
-
ENV["RACK_ENV"] ||= "test"
|
2
|
-
require_relative "../config/boot.rb"
|
3
|
-
|
4
|
-
# factory_girl
|
5
|
-
dir = File.expand_path File.dirname(__FILE__)
|
6
|
-
Dir.glob "#{dir}/factory/**/*_factory.rb" do |f|
|
7
|
-
require f
|
8
|
-
end
|
9
|
-
|
10
|
-
require "minitest/autorun"
|
11
|
-
require "rack/test"
|
12
|
-
DatabaseCleaner.strategy = :truncation
|
13
|
-
|
14
|
-
class TestCase < MiniTest::Unit::TestCase
|
15
|
-
include FactoryGirl::Syntax::Methods
|
16
|
-
def initialize *xs
|
17
|
-
super
|
18
|
-
DatabaseCleaner.clean
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
class FunctionalTestCase < TestCase
|
23
|
-
include Rack::Test::Methods
|
24
|
-
def app
|
25
|
-
Sinatra::Application
|
26
|
-
end
|
27
|
-
end
|