Skip to content

Multiples improvements : travis-ci for tests, missing gems #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 156 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
156 commits
Select commit Hold shift + click to select a range
ba97a30
optimized the 'build_routes'-function to work well in combination wit…
Sep 6, 2012
e76a75c
Reformat & simplify Readme
j15e Nov 17, 2012
15211c1
Add missing advanced routes registration in sample app
j15e Nov 17, 2012
e594d19
Format Ruby code & minor adjustements
j15e Nov 17, 2012
01cd8b9
Add optional advanced assets management instructions
j15e Nov 17, 2012
776dcee
Minor README adjustments
j15e Nov 17, 2012
50bb31f
Update gemspec with new readme
j15e Nov 17, 2012
b21bd11
Update gems & use gemspec as Gemfile source
j15e Nov 25, 2012
bdfc708
Add Rakefile to run tests
j15e Nov 25, 2012
eb16a32
Add awesome_print
j15e Nov 25, 2012
274c248
Add failing tests
j15e Nov 25, 2012
77088a6
Add travis-ci config
j15e Nov 25, 2012
b4a1f04
Remove json/csv example as it is currently broken. Ref #1
j15e Nov 25, 2012
74e8a6d
Add travis build status
j15e Nov 25, 2012
0686764
Add missing dependency for 1.8.7
j15e Nov 25, 2012
97f69fa
Remove notice for issue fixed in this fork
j15e Nov 25, 2012
dba6068
Add Gemfile require options for easy setup
j15e Nov 25, 2012
7dd9390
Add Code Climate badge
j15e Nov 27, 2012
11b43f4
Add MIT licence as specified in original gemspec
j15e Jan 11, 2013
30f79c3
Release new gem as 'sinatra-export' and use Sinatra namespace
j15e Jan 11, 2013
aa888be
Update travis and code-climate badges
j15e Jan 11, 2013
f2763b3
Fix readme exemple name
j15e Jan 11, 2013
46c712f
Add rake task and update instructions. Fix #2
j15e Jan 11, 2013
e5d1b06
Use Sinatra :public_folder setting
j15e Jan 11, 2013
f479fce
Create NEWS to track gem changes
j15e Jan 11, 2013
0a191f8
Update news and release version 0.9.1
j15e Jan 11, 2013
75bdbbf
Update description
j15e Jan 11, 2013
f3a5da6
Minor readme update
j15e Jan 11, 2013
4e0e54c
Readme as README
j15e Jan 11, 2013
4c18203
Add details about sinatra-advanced-routes dependency
j15e Jan 12, 2013
660c5de
More README formatting
j15e Jan 12, 2013
797de18
sinatra-advanced-routes is already in gem dependencies, no need to ad…
j15e Jan 12, 2013
74ce42f
Get path content before creating file for write. Fix #1
j15e Jan 12, 2013
36cc6e8
Move require to file top
j15e Jan 12, 2013
1809a90
Update README with JSON example
j15e Jan 12, 2013
574a5b6
Bump to 0.9.2
j15e Jan 12, 2013
943d2ff
Test against more ruby versions
j15e Jan 12, 2013
12324d7
Refer to updated Sinatra extensions forks
j15e Jan 12, 2013
798c9db
Minor README update
j15e Jan 12, 2013
3bc7d99
Update dependencies
j15e Jan 20, 2013
c20a621
Add dependency status
j15e Jan 20, 2013
25f1efe
Update test-unit
j15e Jan 25, 2013
c5ece06
Update badges
j15e Feb 12, 2013
f756f50
Add credits to HS
j15e Feb 14, 2013
37a9dd4
Update README with additional resources
j15e Feb 14, 2013
8425f00
Add contributing guide
j15e Feb 14, 2013
da3df0d
Add link to contributing guide & update text [ci skip]
j15e Feb 14, 2013
1cf3151
Link to github (website in french only)
j15e Feb 14, 2013
ecaf3c3
Update rack dependency for CVE-2013-0263
j15e Feb 28, 2013
7943692
Ignore generated gems
j15e Feb 28, 2013
4265fa5
LICENCE -> LICENSE
j15e Mar 2, 2013
efebc0c
Move debug & tests gems to gem not gemspec
j15e Mar 2, 2013
47d59b7
Update depencencies
j15e Mar 2, 2013
fc1e6a5
Specify gem groups for travis
j15e Mar 2, 2013
a041ccb
Remove awesome_print
j15e Mar 2, 2013
9e0288d
Release 0.9.3
j15e Mar 2, 2013
a17166d
Add ruby 2.0.0
j15e Mar 2, 2013
0eb32a1
Set file mtime according to response Last-Modified header
j15e Mar 2, 2013
4ea3f0c
Use 1.8.7 compatible time method
j15e Mar 2, 2013
2e73fb2
Skip debugger on 1.8.7 [ci skip]
j15e Mar 2, 2013
66abfb7
Release 0.9.4 [ci skip]
j15e Mar 2, 2013
ab32411
Remove forced date [ci skip]
j15e Mar 2, 2013
de14b28
Force HTTPS rubygems
j15e Mar 3, 2013
a588008
Update dependencies
j15e Mar 11, 2013
e042356
Release 0.2.5 now signed gem
j15e Mar 11, 2013
5e29e90
Update README with updated sinatra-advanced-routes
j15e Mar 11, 2013
e8ca2df
Update dependencies (Sinatra 1.3.5 -> 1.4.1)
j15e Mar 17, 2013
b17633a
Fix build status badge to master branch [ci skip]
j15e Mar 17, 2013
b2852d8
Rewrite as a sinatra extension : calls/register
j15e Mar 17, 2013
3a96e9d
Rewrite as a real Sinatra registrable extension. Fix #5
j15e Mar 17, 2013
535adb3
Update README : advanced routes is now auto-registered
j15e Mar 17, 2013
c202c85
Rename build! -> export!
j15e Mar 17, 2013
865c31f
Merge branch 'feature/extension'
j15e Mar 17, 2013
4bedc3c
Update NEWS for 1.0.0
j15e Mar 17, 2013
d6c76e0
Improve changelog format & rename file [ci skip]
j15e Mar 17, 2013
e03179f
Add upgrade note for 1.0.0
j15e Mar 17, 2013
c9f26a1
Release 1.0.0 [ci skip]
j15e Mar 17, 2013
6ade092
Use lean classic Sinatra style for README
j15e Mar 17, 2013
92c3c4a
Update README with default classic app class
j15e Mar 17, 2013
d0eb3dd
Add missing dependencies
j15e Mar 17, 2013
56aabf4
Update tilt
j15e Mar 17, 2013
c034b78
Release 1.0.1 [ci skip]
j15e Mar 17, 2013
2e7f09e
Update README with classic app class usage
j15e Mar 18, 2013
55448c5
Update README with leaner install instructions [ci skip]
j15e Apr 28, 2013
5f58a53
Update LICENSE -> LICENSE.md [ci skip]
j15e Apr 28, 2013
b553ec6
Use an env var to make the build directory configurable for now.
Dec 4, 2015
4ba461b
Merge branch 'build-dir-location-configurable' into develop
Dec 4, 2015
7d8131d
Mostly updated to use Pathname, but need to do file_for_path
Dec 4, 2015
fee77a7
Cleaned up the patterns to make them more readable.
Dec 4, 2015
50f1d11
Ignore bundler artefacts.
Dec 6, 2015
bc4faf3
Use pry instead.
Dec 6, 2015
2cde863
Ignore coverage generated files.
Dec 6, 2015
cef71e2
Using rspec.
Dec 6, 2015
cf0659f
Added specs
Dec 6, 2015
576930e
Updated to make the export directory choosable, and the start of bein…
Dec 6, 2015
fe92e4f
Pass on the arguments.
Dec 6, 2015
9e87021
Added in missing specs.
Dec 7, 2015
eed7601
Merge branch 'use-pathname' into develop
Dec 7, 2015
cf5acc6
Processes only paths given.
Dec 7, 2015
bf1f281
Can pass paths to skip.
Dec 7, 2015
9166d2a
Merge branch 'paths-and-skips' into develop
Dec 7, 2015
ab8c993
Shouldn't have removed this.
Dec 8, 2015
299fb79
Updated lock file.
Dec 8, 2015
2c9e1df
Lock file shouldn't be tracked.
Dec 8, 2015
cb9ca80
A little bit of convenience.
Dec 8, 2015
b9854e4
Using an external iterator so that the provided block can add extra p…
Dec 8, 2015
2669c8c
Make a bit more 'object'
Dec 9, 2015
f35c1eb
Will ignore named parameter paths; can provide block with self as par…
Dec 9, 2015
a7908d5
Bit of yardoc.
Dec 9, 2015
854b522
So it doesn't get caught by simplecov.
Dec 9, 2015
6a0704c
Can provide a Builder instance to use.
Dec 9, 2015
1380280
Added some yardoc.
Dec 9, 2015
556fb28
Merge branch 'crawler' into develop
Dec 9, 2015
e035d8b
Added filtering to the content that gets written.
Dec 9, 2015
2eab0f8
Merge branch 'filters' into develop
Dec 9, 2015
9fc3c3e
A convenience method to make checking the path is usable a bit easier.
Dec 10, 2015
c744bbc
Ignore paths with special characters in them.
Dec 10, 2015
3a2db19
Handle paths with special chars and question marks better.
Dec 10, 2015
922911c
Tidied up the specs; bit of formatting; added an @visited so that log…
Dec 11, 2015
4bed327
Can define status for a page, so can generate a 404.
Dec 11, 2015
fb850bb
Fixed method signature.
Dec 11, 2015
d53d867
Can receive either a URI or a string for the path now.
Dec 11, 2015
b994c5e
Tidied up the names and made clear that the instance var for @last_pa…
Dec 12, 2015
687570b
Useful for when trying to check dynamic methods' callers, like forwar…
Dec 12, 2015
aeac088
More description in the errors, can check for errored pages too.
Dec 13, 2015
4bae873
Added expect syntax. Not sure why RSpec can't do all this nonsense fo…
Dec 13, 2015
e7cfa81
Can pass an alternative error handler now.
Dec 13, 2015
461c183
Merge branch 'handling-errors' into develop
Dec 13, 2015
48209e0
Should be using app not self. Fixed.
Dec 13, 2015
7ba4f77
Couldn't get fakefs to work with this in the end, removing.
Dec 14, 2015
5f4fad3
Should pass on the use_routes too. Fixed.
Dec 14, 2015
28d8b61
No point having yard docs without yard.
Dec 14, 2015
10f946c
Don't track yard generated files.
Dec 14, 2015
7e94b72
Pass on the error_handler.
Dec 14, 2015
640aec2
A bit of formatting, a lot more yard docs, and fixed the attributes t…
Dec 14, 2015
ee76648
More yardoc.
Dec 14, 2015
1d737aa
And more yardoc.
Dec 14, 2015
bf6d0ea
Reached my limit for yardocking.
Dec 14, 2015
741d4ca
Removed unit tests; made RSpec the default Rake task.
Dec 15, 2015
7ad0da7
Formatting, one line ternary preferred.
Dec 15, 2015
c818807
Use a do block, nothing will be returned with that throw/catch.
Dec 15, 2015
4426131
Formatting, added parens and removed spaces to method definitions and…
Dec 15, 2015
ef7eb48
Updated Travis settings, no more 1.8 or 1.9.
Dec 15, 2015
082f25f
Updated Rake so old 'rake test' will still run the same.
Dec 15, 2015
c410d06
Updated README with examples. [skip ci]
Dec 15, 2015
d2d9808
Added yard generation task to Rakefile. [skip ci]
Dec 15, 2015
db3be48
Updated README with yard gen instructions. [skip ci]
Dec 15, 2015
f2ba27e
Expanded on filtering example.
Dec 15, 2015
c7313a2
Moved block prior to build_path so that the block can do further work…
Dec 15, 2015
c1fb3ba
Added missing Ruby versions 2.0.0 and 2.1.0. to Travis config.
Dec 15, 2015
fd4f689
Added yard to the gemspec or else Travis borks.
Dec 15, 2015
f1ca39a
Suggested changes to make Travis happier.
Dec 16, 2015
d519d0e
Make yard optional in the Rakefile to make Travis happy.
Dec 16, 2015
8fc30b6
Added required argument checks for Ruby v2.0.
Dec 16, 2015
90e253c
More argument checks.
Dec 16, 2015
27aa499
Merge pull request #7 from yb66/develop
Dec 22, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
test/app/public/
*.gem
.bundle/
bin/
vendor/
vendor.noindex/
coverage/
Gemfile.lock
doc/
.yardoc/
2 changes: 2 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--color
--format documentation
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
language: ruby
bundler_args: "--without development"
rvm:
- 2.0.0-p647
- 2.1.7
- 2.2.3
# see note about issue at https://docs.travis-ci.com/user/languages/ruby/#Choosing-Ruby-versions-and-implementations-to-test-against
- rbx-2
# - jruby-19mode
- jruby-head
- ruby-head
matrix:
allow_failures:
- rvm: rbx-2
# - jruby-19mode
- rvm: jruby-head
- rvm: ruby-head
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Changelog

## 1.0.1 - 2013-03-17

* Add missing rake & rack-test depencendies

## 1.0.0 - 2013-03-17

* You must now register Sinatra::Export extension.
* Sinatra::AdvancedRoutes is now auto loaded. (#5)
* Renamed build! method export!.

## 0.9.5

* Improvement : signed gem.

## 0.9.4

* Now set files mtime according to response Last-Modified header

## 0.9.3

* Removed unnecessary development dependencies.

## 0.9.2

* Bug fix: Correctly support path with file extension (.json, .csv, etc.). Issue #1

## 0.9.1

* API CHANGE: Now calling .build! without path parameter, using Sinatra application :public_folder setting.
* Feature: Added a rake task sinatra:export
29 changes: 29 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Contributing

> If I have seen further, it is by standing on the shoulders of giants. - Isaac Newton

We love to work with people around the globe and make earth a better place for mankind!

Please follow theses simples steps to contribute to this project :

1. Fork the repo.

2. Run the tests before doing anything.

3. Add test(s) for your code modification.

4. Rebase your code onto upstream master (this repository) if not up to date.

5. Squash or fixup your commits to achieve a clean commit log.

6. Submit a pull request and ensure tests passes on travis-ci for all supported ruby versions.

## Running the tests

As simple as running the `rake` command.

The default `rake` task is `rake test`.

## Syntax

Follow [Ruby Styleguide](https://github.com/styleguide/ruby) by Github and existing code.
27 changes: 21 additions & 6 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
source :rubygems
gem 'sinatra'
gem 'sinatra-advanced-routes'
gem 'term-ansicolor'
gem 'rack'
gem 'rack-test'
source 'https://rubygems.org'

group :development do
gem "term-ansicolor"
gem "pry-byebug"
gem "pry-stack_explorer"
end

group :development, :test do
gem 'yard'
end

group :test do
gem 'rack-test'
gem 'rake'
gem 'rspec'
gem 'rspec-its'
gem 'simplecov'
end

gemspec
34 changes: 0 additions & 34 deletions Gemfile.lock

This file was deleted.

24 changes: 24 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# LICENSE

The MIT License

Copyright (c) 2011-2013 Paul Asmuth, Jean-Philippe Doyle, Hookt Studios inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

Loading