birt-view 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e47eef3bc7890827105a2ee85f2c059926ca6259
4
- data.tar.gz: 744465b3144ef68b2d6beb80ad3b03e6b955f01d
3
+ metadata.gz: 3d518ff08d2fb771785b2d500b22d07c91e18c4f
4
+ data.tar.gz: ba5045daa59c6ff7fe1255f6bb8ada541c9a7693
5
5
  SHA512:
6
- metadata.gz: cb6e23e9d507b1907ac260169aaa999ef11cbab1986d8cbec25b29f827697dd5f0d354def6983eac501f8a78a4c3f33edfab4e292183fcf39b55260777c40fb1
7
- data.tar.gz: 8729ccc47f3f694b24d60d8068e48e60add14e54e88dbd47d8202b45dce431562ac79887f85db1973d92b4f8f67386d841cadb26d56896970c9ddbf0dbadfc82
6
+ metadata.gz: aab4e354fb2d5d599930248754cb8b7288f83eadeed3fcc96d9eb99614f3c34b81376a26111ca42a3e80077751713de8294f26504faf4bab50221335de7af5b3
7
+ data.tar.gz: 9055b834ed8f5fc87202966d631bb1d46c1a6f06a260832d5576f4a51b37fe5cb768179525acaf007a78cbb18d53c73c7a74473f91d84534f73f36d96a110200
data/.gitignore CHANGED
@@ -8,4 +8,10 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  /.idea/
11
+ /log/
12
+ /test/
13
+ /vendor/
14
+ /tmp/
15
+ /public/assets/
16
+ /config/database.yml
11
17
  *.gem
data/Gemfile CHANGED
@@ -1,4 +1,20 @@
1
- source 'https://rubygems.org'
1
+ source 'https://ruby.taobao.org'
2
+
3
+ gem 'rails', '4.2.3'
4
+ gem 'sqlite3'
5
+ gem 'mysql2'
6
+ gem 'sass-rails', '~> 5.0'
7
+ gem 'uglifier', '>= 1.3.0'
8
+ gem 'coffee-rails', '~> 4.1.0'
9
+ gem 'jquery-rails'
10
+ gem 'turbolinks'
11
+ gem 'jbuilder', '~> 2.0'
12
+ gem 'sdoc', '~> 0.4.0', group: :doc
13
+ gem 'birt-api', '~> 0.1.6'
14
+
15
+ group :development, :test do
16
+ gem 'byebug'
17
+ gem 'web-console', '~> 2.0'
18
+ gem 'spring'
19
+ end
2
20
 
3
- # Specify your gem's dependencies in birt-view.gemspec
4
- gemspec
data/README.rdoc ADDED
@@ -0,0 +1,28 @@
1
+ == README
2
+
3
+ This README would normally document whatever steps are necessary to get the
4
+ application up and running.
5
+
6
+ Things you may want to cover:
7
+
8
+ * Ruby version
9
+
10
+ * System dependencies
11
+
12
+ * Configuration
13
+
14
+ * Database creation
15
+
16
+ * Database initialization
17
+
18
+ * How to run the test suite
19
+
20
+ * Services (job queues, cache servers, search engines, etc.)
21
+
22
+ * Deployment instructions
23
+
24
+ * ...
25
+
26
+
27
+ Please feel free to use a different markup language if you do not plan to run
28
+ <tt>rake doc:app</tt>.
data/Rakefile CHANGED
@@ -1 +1,6 @@
1
- require "bundler/gem_tasks"
1
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
2
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
+
4
+ require File.expand_path('../config/application', __FILE__)
5
+
6
+ Rails.application.load_tasks
File without changes
@@ -0,0 +1,16 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file.
9
+ //
10
+ // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require jquery
14
+ //= require jquery_ujs
15
+ //= require turbolinks
16
+ //= require_tree .
@@ -0,0 +1,15 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any styles
10
+ * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
+ * file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */
@@ -0,0 +1,5 @@
1
+ class ApplicationController < ActionController::Base
2
+ # Prevent CSRF attacks by raising an exception.
3
+ # For APIs, you may want to use :null_session instead.
4
+ protect_from_forgery with: :exception
5
+ end
File without changes
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
data/app/models/.keep ADDED
File without changes
File without changes
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>BirtView</title>
5
+ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6
+ <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
data/bin/bundle ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
+ load Gem.bin_path('bundler', 'bundle')
data/bin/rails ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+ begin
3
+ load File.expand_path("../spring", __FILE__)
4
+ rescue LoadError
5
+ end
6
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
7
+ require_relative '../config/boot'
8
+ require 'rails/commands'
data/bin/rake ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+ begin
3
+ load File.expand_path("../spring", __FILE__)
4
+ rescue LoadError
5
+ end
6
+ require_relative '../config/boot'
7
+ require 'rake'
8
+ Rake.application.run
data/bin/setup CHANGED
@@ -1,7 +1,29 @@
1
- #!/bin/bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
1
+ #!/usr/bin/env ruby
2
+ require 'pathname'
4
3
 
5
- bundle install
4
+ # path to your application root.
5
+ APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
6
6
 
7
- # Do any other automated setup that you need to do here
7
+ Dir.chdir APP_ROOT do
8
+ # This script is a starting point to setup your application.
9
+ # Add necessary setup steps to this file:
10
+
11
+ puts "== Installing dependencies =="
12
+ system "gem install bundler --conservative"
13
+ system "bundle check || bundle install"
14
+
15
+ # puts "\n== Copying sample files =="
16
+ # unless File.exist?("config/database.yml")
17
+ # system "cp config/database.yml.sample config/database.yml"
18
+ # end
19
+
20
+ puts "\n== Preparing database =="
21
+ system "bin/rake db:setup"
22
+
23
+ puts "\n== Removing old logs and tempfiles =="
24
+ system "rm -f log/*"
25
+ system "rm -rf tmp/cache"
26
+
27
+ puts "\n== Restarting application server =="
28
+ system "touch tmp/restart.txt"
29
+ end
data/bin/spring ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # This file loads spring without using Bundler, in order to be fast.
4
+ # It gets overwritten when you run the `spring binstub` command.
5
+
6
+ unless defined?(Spring)
7
+ require "rubygems"
8
+ require "bundler"
9
+
10
+ if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m)
11
+ Gem.paths = { "GEM_PATH" => [Bundler.bundle_path.to_s, *Gem.path].uniq }
12
+ gem "spring", match[1]
13
+ require "spring/binstub"
14
+ end
15
+ end
data/birt-view.gemspec CHANGED
@@ -6,7 +6,7 @@ require 'birt/view/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "birt-view"
8
8
  spec.version = Birt::View::VERSION
9
- spec.authors = ["Stream"]
9
+ spec.authors = ["Saxer"]
10
10
  spec.email = ["15201280641@qq.com"]
11
11
 
12
12
  spec.summary = %q{birt view}
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = "https://github.com/mumaoxi/birt-view"
15
15
  spec.license = "MIT"
16
16
 
17
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(db|log|public|config|test|spec|features)/}) }
18
18
  spec.bindir = "exe"
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
@@ -25,4 +25,5 @@ Gem::Specification.new do |spec|
25
25
 
26
26
  spec.add_development_dependency "bundler", "~> 1.9"
27
27
  spec.add_development_dependency "rake", "~> 10.0"
28
+ spec.add_runtime_dependency "birt-api", "~> 0.1.6"
28
29
  end
data/config.ru ADDED
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Rails.application
data/lib/assets/.keep ADDED
File without changes
@@ -1,5 +1,5 @@
1
1
  module Birt
2
2
  module View
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
data/lib/tasks/.keep ADDED
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: birt-view
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
- - Stream
7
+ - Saxer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-07-31 00:00:00.000000000 Z
11
+ date: 2015-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: birt-api
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.1.6
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.1.6
41
55
  description: birt view includes csss javascript etc.
42
56
  email:
43
57
  - 15201280641@qq.com
@@ -50,12 +64,29 @@ files:
50
64
  - Gemfile
51
65
  - LICENSE
52
66
  - README.md
67
+ - README.rdoc
53
68
  - Rakefile
69
+ - app/assets/images/.keep
70
+ - app/assets/javascripts/application.js
71
+ - app/assets/stylesheets/application.css
72
+ - app/controllers/application_controller.rb
73
+ - app/controllers/concerns/.keep
74
+ - app/helpers/application_helper.rb
75
+ - app/models/.keep
76
+ - app/models/concerns/.keep
77
+ - app/views/layouts/application.html.erb
78
+ - bin/bundle
54
79
  - bin/console
80
+ - bin/rails
81
+ - bin/rake
55
82
  - bin/setup
83
+ - bin/spring
56
84
  - birt-view.gemspec
85
+ - config.ru
86
+ - lib/assets/.keep
57
87
  - lib/birt/view.rb
58
88
  - lib/birt/view/version.rb
89
+ - lib/tasks/.keep
59
90
  homepage: https://github.com/mumaoxi/birt-view
60
91
  licenses:
61
92
  - MIT