sinatra-export 0.9.2 → 0.9.3
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.
- data/Gemfile +12 -0
- data/Gemfile.lock +20 -11
- data/LICENSE +25 -0
- data/README.md +19 -7
- data/sinatra-export.gemspec +3 -7
- metadata +2 -65
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
sinatra-export (0.9)
|
|
4
|
+
sinatra-export (0.9.3)
|
|
5
5
|
rack
|
|
6
6
|
sinatra
|
|
7
7
|
sinatra-advanced-routes
|
|
@@ -11,20 +11,28 @@ GEM
|
|
|
11
11
|
remote: http://rubygems.org/
|
|
12
12
|
specs:
|
|
13
13
|
awesome_print (1.1.0)
|
|
14
|
-
backports (
|
|
14
|
+
backports (3.0.3)
|
|
15
|
+
columnize (0.3.6)
|
|
16
|
+
debugger (1.3.3)
|
|
17
|
+
columnize (>= 0.3.1)
|
|
18
|
+
debugger-linecache (~> 1.1.1)
|
|
19
|
+
debugger-ruby_core_source (~> 1.2.0)
|
|
20
|
+
debugger-linecache (1.1.2)
|
|
21
|
+
debugger-ruby_core_source (>= 1.1.1)
|
|
22
|
+
debugger-ruby_core_source (1.2.0)
|
|
15
23
|
monkey-lib (0.5.4)
|
|
16
24
|
backports
|
|
17
|
-
rack (1.
|
|
18
|
-
rack-protection (1.
|
|
25
|
+
rack (1.5.2)
|
|
26
|
+
rack-protection (1.4.0)
|
|
19
27
|
rack
|
|
20
28
|
rack-test (0.6.2)
|
|
21
29
|
rack (>= 1.0)
|
|
22
|
-
rake (10.0.
|
|
23
|
-
sinatra (1.3.
|
|
24
|
-
rack (~> 1.
|
|
25
|
-
rack-protection (~> 1.
|
|
30
|
+
rake (10.0.3)
|
|
31
|
+
sinatra (1.3.5)
|
|
32
|
+
rack (~> 1.4)
|
|
33
|
+
rack-protection (~> 1.3)
|
|
26
34
|
tilt (~> 1.3, >= 1.3.3)
|
|
27
|
-
sinatra-advanced-routes (0.5.
|
|
35
|
+
sinatra-advanced-routes (0.5.2)
|
|
28
36
|
monkey-lib (~> 0.5.0)
|
|
29
37
|
sinatra (~> 1.0)
|
|
30
38
|
sinatra-sugar (~> 0.5.0)
|
|
@@ -32,14 +40,15 @@ GEM
|
|
|
32
40
|
monkey-lib (~> 0.5.0)
|
|
33
41
|
sinatra (~> 1.0)
|
|
34
42
|
term-ansicolor (1.0.7)
|
|
35
|
-
test-unit (2.5.
|
|
36
|
-
tilt (1.3.
|
|
43
|
+
test-unit (2.5.4)
|
|
44
|
+
tilt (1.3.4)
|
|
37
45
|
|
|
38
46
|
PLATFORMS
|
|
39
47
|
ruby
|
|
40
48
|
|
|
41
49
|
DEPENDENCIES
|
|
42
50
|
awesome_print
|
|
51
|
+
debugger
|
|
43
52
|
rack-test
|
|
44
53
|
rake
|
|
45
54
|
sinatra-export!
|
data/LICENSE
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
LICENSE
|
|
3
|
+
|
|
4
|
+
The MIT License
|
|
5
|
+
|
|
6
|
+
Copyright (c) 2011-2013 Paul Asmuth, Jean-Philippe Doyle, Hookt Studios inc.
|
|
7
|
+
|
|
8
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
+
in the Software without restriction, including without limitation the rights
|
|
11
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
+
furnished to do so, subject to the following conditions:
|
|
14
|
+
|
|
15
|
+
The above copyright notice and this permission notice shall be included in
|
|
16
|
+
all copies or substantial portions of the Software.
|
|
17
|
+
|
|
18
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
24
|
+
THE SOFTWARE.
|
|
25
|
+
|
data/README.md
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
> Exports all your Sinatra application routes to static files in your public folder.
|
|
4
4
|
|
|
5
5
|
[](https://travis-ci.org/hooktstudios/sinatra-export)
|
|
6
|
-
[](https://gemnasium.com/hooktstudios/sinatra-export)
|
|
7
|
+
[](https://codeclimate.com/github/hooktstudios/sinatra-export)
|
|
8
|
+
[](https://rubygems.org/gems/sinatra-export)
|
|
7
9
|
|
|
8
10
|
## Installation
|
|
9
11
|
|
|
@@ -13,7 +15,7 @@ Add to your `Gemfile` :
|
|
|
13
15
|
gem 'sinatra-export'
|
|
14
16
|
```
|
|
15
17
|
|
|
16
|
-
Setup your application with [sinatra-advanced-routes](https://github.com/
|
|
18
|
+
Setup your application with [sinatra-advanced-routes](https://github.com/hooktstudios/sinatra-advanced-routes) :
|
|
17
19
|
|
|
18
20
|
```ruby
|
|
19
21
|
register Sinatra::AdvancedRoutes
|
|
@@ -66,14 +68,24 @@ Running your app ex. `rake sinatra:export` will automatically generate theses fi
|
|
|
66
68
|
|
|
67
69
|
$ rake sinatra:export
|
|
68
70
|
|
|
69
|
-
Or invoke it manually :
|
|
71
|
+
Or invoke it manually within ruby code :
|
|
70
72
|
|
|
71
73
|
````ruby
|
|
72
74
|
Sinatra::Export.new(App).build!
|
|
73
75
|
```
|
|
74
76
|
|
|
75
|
-
|
|
77
|
+
## Other resources
|
|
76
78
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
79
|
+
* [capistrano-s3](http://github.com/hooktstudios/capistrano-s3) : build and deploy a static website to Amazon S3
|
|
80
|
+
* [sinatra-assetpack](https://github.com/rstacruz/sinatra-assetpack) : package your assets transparently in Sinatra
|
|
81
|
+
* [sinatra-static-bp](https://github.com/hooktstudios/sinatra-static-bp) : boilerplate to setup complete static website
|
|
82
|
+
|
|
83
|
+
## Contributing
|
|
84
|
+
|
|
85
|
+
See [CONTRIBUTING.md](https://github.com/hooktstudios/sinatra-export/blob/master/CONTRIBUTING.md) for more details on contributing and running test.
|
|
86
|
+
|
|
87
|
+
## Credits
|
|
88
|
+
|
|
89
|
+

|
|
90
|
+
|
|
91
|
+
[sinatra-export](https://rubygems.org/gems/sinatra-export) is maintained and funded by [hooktstudios](https://github.com/hooktstudios)
|
data/sinatra-export.gemspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = 'sinatra-export'
|
|
3
|
-
s.version = '0.9.
|
|
3
|
+
s.version = '0.9.3'
|
|
4
4
|
|
|
5
5
|
s.authors = ['Jean-Philippe Doyle', 'Paul Asmuth']
|
|
6
6
|
s.date = '2013-01-16'
|
|
@@ -13,7 +13,8 @@ Gem::Specification.new do |s|
|
|
|
13
13
|
'sinatra-export.gemspec',
|
|
14
14
|
'lib/sinatra/export.rb',
|
|
15
15
|
'lib/sinatra/export/rake.rb',
|
|
16
|
-
'README.md'
|
|
16
|
+
'README.md',
|
|
17
|
+
'LICENSE'
|
|
17
18
|
]
|
|
18
19
|
s.homepage = 'http://github.com/hooktstudios/sinatra-export'
|
|
19
20
|
s.license = 'MIT'
|
|
@@ -23,10 +24,5 @@ Gem::Specification.new do |s|
|
|
|
23
24
|
s.add_runtime_dependency 'sinatra'
|
|
24
25
|
s.add_runtime_dependency 'sinatra-advanced-routes'
|
|
25
26
|
s.add_runtime_dependency 'rack'
|
|
26
|
-
|
|
27
|
-
s.add_development_dependency 'rack-test'
|
|
28
|
-
s.add_development_dependency 'rake'
|
|
29
|
-
s.add_development_dependency 'awesome_print'
|
|
30
|
-
s.add_development_dependency 'test-unit'
|
|
31
27
|
end
|
|
32
28
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sinatra-export
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.3
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -76,70 +76,6 @@ dependencies:
|
|
|
76
76
|
- !ruby/object:Gem::Version
|
|
77
77
|
version: '0'
|
|
78
78
|
none: false
|
|
79
|
-
- !ruby/object:Gem::Dependency
|
|
80
|
-
name: rack-test
|
|
81
|
-
prerelease: false
|
|
82
|
-
requirement: !ruby/object:Gem::Requirement
|
|
83
|
-
requirements:
|
|
84
|
-
- - ! '>='
|
|
85
|
-
- !ruby/object:Gem::Version
|
|
86
|
-
version: '0'
|
|
87
|
-
none: false
|
|
88
|
-
type: :development
|
|
89
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
90
|
-
requirements:
|
|
91
|
-
- - ! '>='
|
|
92
|
-
- !ruby/object:Gem::Version
|
|
93
|
-
version: '0'
|
|
94
|
-
none: false
|
|
95
|
-
- !ruby/object:Gem::Dependency
|
|
96
|
-
name: rake
|
|
97
|
-
prerelease: false
|
|
98
|
-
requirement: !ruby/object:Gem::Requirement
|
|
99
|
-
requirements:
|
|
100
|
-
- - ! '>='
|
|
101
|
-
- !ruby/object:Gem::Version
|
|
102
|
-
version: '0'
|
|
103
|
-
none: false
|
|
104
|
-
type: :development
|
|
105
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
106
|
-
requirements:
|
|
107
|
-
- - ! '>='
|
|
108
|
-
- !ruby/object:Gem::Version
|
|
109
|
-
version: '0'
|
|
110
|
-
none: false
|
|
111
|
-
- !ruby/object:Gem::Dependency
|
|
112
|
-
name: awesome_print
|
|
113
|
-
prerelease: false
|
|
114
|
-
requirement: !ruby/object:Gem::Requirement
|
|
115
|
-
requirements:
|
|
116
|
-
- - ! '>='
|
|
117
|
-
- !ruby/object:Gem::Version
|
|
118
|
-
version: '0'
|
|
119
|
-
none: false
|
|
120
|
-
type: :development
|
|
121
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
122
|
-
requirements:
|
|
123
|
-
- - ! '>='
|
|
124
|
-
- !ruby/object:Gem::Version
|
|
125
|
-
version: '0'
|
|
126
|
-
none: false
|
|
127
|
-
- !ruby/object:Gem::Dependency
|
|
128
|
-
name: test-unit
|
|
129
|
-
prerelease: false
|
|
130
|
-
requirement: !ruby/object:Gem::Requirement
|
|
131
|
-
requirements:
|
|
132
|
-
- - ! '>='
|
|
133
|
-
- !ruby/object:Gem::Version
|
|
134
|
-
version: '0'
|
|
135
|
-
none: false
|
|
136
|
-
type: :development
|
|
137
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
138
|
-
requirements:
|
|
139
|
-
- - ! '>='
|
|
140
|
-
- !ruby/object:Gem::Version
|
|
141
|
-
version: '0'
|
|
142
|
-
none: false
|
|
143
79
|
description: Exports all your Sinatra application routes to static files in your public
|
|
144
80
|
folder
|
|
145
81
|
email: jeanphilippe.doyle@hooktstudios.com
|
|
@@ -153,6 +89,7 @@ files:
|
|
|
153
89
|
- lib/sinatra/export.rb
|
|
154
90
|
- lib/sinatra/export/rake.rb
|
|
155
91
|
- README.md
|
|
92
|
+
- LICENSE
|
|
156
93
|
homepage: http://github.com/hooktstudios/sinatra-export
|
|
157
94
|
licenses:
|
|
158
95
|
- MIT
|