sinatra-exstatic-assets 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -0
- data/.travis.yml +11 -0
- data/CHANGES.md +9 -0
- data/Gemfile +29 -0
- data/LICENCE +27 -0
- data/README.md +76 -0
- data/Rakefile +38 -0
- data/examples/app/main.rb +13 -0
- data/examples/app/public/css/base.css +93 -0
- data/examples/app/public/css/screen.css +8 -0
- data/examples/app/public/favicon.ico +0 -0
- data/examples/app/public/images/3609420787_f7fc0e53c7.jpg +0 -0
- data/examples/app/views/index.erb +90 -0
- data/examples/app/views/layout.erb +40 -0
- data/examples/app2/main.rb +12 -0
- data/examples/app2/public/css/base.css +93 -0
- data/examples/app2/public/css/screen.css +8 -0
- data/examples/app2/public/favicon +0 -0
- data/examples/app2/views/index.erb +105 -0
- data/examples/app2/views/layout.erb +40 -0
- data/examples/config.rb +17 -0
- data/examples/config.ru +11 -0
- data/examples/views/index.erb +83 -0
- data/examples/views/layout.erb +40 -0
- data/lib/sinatra/exstatic-assets.rb +1 -0
- data/lib/sinatra/exstatic_assets.rb +304 -0
- data/lib/sinatra/exstatic_assets/version.rb +6 -0
- data/sinatra-exstatic-assets.gemspec +20 -0
- data/spec/spec_helper.rb +38 -0
- data/spec/static_assets_spec.rb +156 -0
- data/spec/support/fixtures/app2.txt +144 -0
- data/spec/support/fixtures/main.txt +129 -0
- data/spec/support/shared/all_routes.rb +20 -0
- metadata +101 -0
@@ -0,0 +1,20 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
|
3
|
+
config_path = File.expand_path '../../../examples/config.rb', File.dirname(__FILE__)
|
4
|
+
require_relative config_path
|
5
|
+
|
6
|
+
shared_context "All routes" do
|
7
|
+
include Rack::Test::Methods
|
8
|
+
let(:app){
|
9
|
+
Example.app
|
10
|
+
}
|
11
|
+
end
|
12
|
+
|
13
|
+
shared_examples_for "Any route" do
|
14
|
+
subject {
|
15
|
+
last_response
|
16
|
+
}
|
17
|
+
it { should be_ok }
|
18
|
+
end
|
19
|
+
|
20
|
+
|
metadata
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sinatra-exstatic-assets
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Włodek Bzyl
|
9
|
+
- Iain Barnett
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2013-05-25 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: sinatra
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ! '>='
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '0'
|
31
|
+
description: Helpers for writing the HTML and caching of static assets. A fork of
|
32
|
+
Sinatra Static Assets.
|
33
|
+
email:
|
34
|
+
- iainspeed@gmail.com
|
35
|
+
executables: []
|
36
|
+
extensions: []
|
37
|
+
extra_rdoc_files: []
|
38
|
+
files:
|
39
|
+
- .gitignore
|
40
|
+
- .travis.yml
|
41
|
+
- CHANGES.md
|
42
|
+
- Gemfile
|
43
|
+
- LICENCE
|
44
|
+
- README.md
|
45
|
+
- Rakefile
|
46
|
+
- examples/app/main.rb
|
47
|
+
- examples/app/public/css/base.css
|
48
|
+
- examples/app/public/css/screen.css
|
49
|
+
- examples/app/public/favicon.ico
|
50
|
+
- examples/app/public/images/3609420787_f7fc0e53c7.jpg
|
51
|
+
- examples/app/views/index.erb
|
52
|
+
- examples/app/views/layout.erb
|
53
|
+
- examples/app2/main.rb
|
54
|
+
- examples/app2/public/css/base.css
|
55
|
+
- examples/app2/public/css/screen.css
|
56
|
+
- examples/app2/public/favicon
|
57
|
+
- examples/app2/views/index.erb
|
58
|
+
- examples/app2/views/layout.erb
|
59
|
+
- examples/config.rb
|
60
|
+
- examples/config.ru
|
61
|
+
- examples/views/index.erb
|
62
|
+
- examples/views/layout.erb
|
63
|
+
- lib/sinatra/exstatic-assets.rb
|
64
|
+
- lib/sinatra/exstatic_assets.rb
|
65
|
+
- lib/sinatra/exstatic_assets/version.rb
|
66
|
+
- sinatra-exstatic-assets.gemspec
|
67
|
+
- spec/spec_helper.rb
|
68
|
+
- spec/static_assets_spec.rb
|
69
|
+
- spec/support/fixtures/app2.txt
|
70
|
+
- spec/support/fixtures/main.txt
|
71
|
+
- spec/support/shared/all_routes.rb
|
72
|
+
homepage: https://github.com/yb66/sinatra-exstatic-assets
|
73
|
+
licenses: []
|
74
|
+
post_install_message:
|
75
|
+
rdoc_options: []
|
76
|
+
require_paths:
|
77
|
+
- lib
|
78
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
79
|
+
none: false
|
80
|
+
requirements:
|
81
|
+
- - ! '>='
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
|
+
none: false
|
86
|
+
requirements:
|
87
|
+
- - ! '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
requirements: []
|
91
|
+
rubyforge_project:
|
92
|
+
rubygems_version: 1.8.25
|
93
|
+
signing_key:
|
94
|
+
specification_version: 3
|
95
|
+
summary: A Sinatra extension of helpers for static assets.
|
96
|
+
test_files:
|
97
|
+
- spec/spec_helper.rb
|
98
|
+
- spec/static_assets_spec.rb
|
99
|
+
- spec/support/fixtures/app2.txt
|
100
|
+
- spec/support/fixtures/main.txt
|
101
|
+
- spec/support/shared/all_routes.rb
|