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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb2bd16368abd55458bba86541741021ef3928a2
4
- data.tar.gz: 522d9fe673b0aac572284216cad8ceabb105bf28
3
+ metadata.gz: 9c39458232a64c6cd0fc566eefef37b18c432a31
4
+ data.tar.gz: aa18adc0236b3d4051b328c25aed02a5f2a101e1
5
5
  SHA512:
6
- metadata.gz: f789b0e3c3a4682972ba7887cd49c2df8bafb5bf7ac76873da57ee473be4bf98b88a728ac6f7b98a63cde6485ec668ed72f6ebeb44e16066afe47054502f3f8a
7
- data.tar.gz: 6fe21a4558b682ba7382be5a1fe6f5c31d5958b25164a5663bea04673e56a766927fb70837cb48fd8268f63f0fc3975bf7640c651ce9b0229058f8ba42577c87
6
+ metadata.gz: 814703c5232bd0fb32bccec0ab2a00cdc987a4ae46e84b5aa88793b9a574042b0caf3d5b46a0d2d9f84e28f4fd39165abab9d52a8b287a1d305ae1d92db51179
7
+ data.tar.gz: 60f161f6e601762a9dc6c9d981714d78600cac4d1696b5bbec789176f327bb0e78611b40b997a3e9cfb06d5696f0117808325470e00634dc92e91a8d8a2c78ae
@@ -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.6", require: false
15
+ gem "linner", "~> 0.7", require: false
17
16
  end
18
17
 
19
18
  group :production do
@@ -29,7 +29,8 @@ sprites:
29
29
  selector: ".icon-"
30
30
  path: "/assets/images/"
31
31
  url: "/assets/images/"
32
- revision: true
32
+ revision:
33
+ manifest: manifest.yml
33
34
  notification: true
34
35
  bundles:
35
36
  jquery.js:
data/lib/simba/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Simba
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  end
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.0
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-04-07 00:00:00.000000000 Z
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
@@ -1,6 +0,0 @@
1
- .DS_Store
2
- .sass-cache
3
- *.db
4
- public/*.*
5
- coverage/
6
- .bundle
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,3 +0,0 @@
1
- # load rake tasks
2
- require "sinatra/activerecord/rake"
3
- Dir["./lib/tasks/**/*.rake"].sort.each { |ext| load ext }
@@ -1 +0,0 @@
1
-
File without changes
File without changes
@@ -1,3 +0,0 @@
1
- get "/" do
2
- slim :"home/index"
3
- end
@@ -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
@@ -1,2 +0,0 @@
1
- class User < Sequel::Model
2
- end
@@ -1 +0,0 @@
1
- h3 <%= @class_name %> Homepage
@@ -1,9 +0,0 @@
1
- doctype html
2
- html
3
- head
4
- title <%= @class_name %>
5
- meta name="keywords" content="website"
6
- == js :application
7
- == css :application
8
- body
9
- == yield
@@ -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
@@ -1,2 +0,0 @@
1
- default:
2
- url: sqlite://db/development.db # postgres://user:password@host:port/database_name
data/template/config.ru DELETED
@@ -1,2 +0,0 @@
1
- require "./config/boot.rb"
2
- run Sinatra::Application
@@ -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,6 +0,0 @@
1
- # https://github.com/thoughtbot/factory_girl/wiki/Usage
2
- FactoryGirl.define do
3
- factory :user do
4
- name "simba"
5
- end
6
- end
@@ -1,4 +0,0 @@
1
- require_relative "../test_helper"
2
-
3
- class UserControllerTest < FunctionalTestCase
4
- 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
@@ -1,11 +0,0 @@
1
- require_relative "../test_helper"
2
-
3
- class UserTest < TestCase
4
- def setup
5
- @user = build :user
6
- end
7
-
8
- def test_user_name
9
- # dummy
10
- end
11
- end