coquelicot.git
5 years agoPrepare for 0.9.3 release coquelicot-0.9.3
Lunar [Wed, 7 May 2014 15:13:23 +0000 (17:13 +0200)]
Prepare for 0.9.3 release

5 years agoSupport sub-directory installations
Lunar [Wed, 7 May 2014 14:32:47 +0000 (14:32 +0000)]
Support sub-directory installations

We add a new `path` setting to do so.

Address Debian bug #722528.

5 years agoDrop support for Ruby 1.8
Lunar [Tue, 6 May 2014 20:41:21 +0000 (20:41 +0000)]
Drop support for Ruby 1.8

5 years agoEnsure same timezone when testing file creation time
Lunar [Tue, 6 May 2014 20:33:33 +0000 (20:33 +0000)]
Ensure same timezone when testing file creation time

5 years agoSwitch to GetText::Tools:Task in Rakefile
Lunar [Tue, 6 May 2014 20:32:14 +0000 (20:32 +0000)]
Switch to GetText::Tools:Task in Rakefile

5 years agoAdd LDAP authentication (with uid lookup)
Rowan Thorpe [Tue, 6 May 2014 15:30:53 +0000 (15:30 +0000)]
Add LDAP authentication (with uid lookup)

5 years agoStop spilling authentication errors to users
Lunar [Tue, 6 May 2014 14:09:56 +0000 (14:09 +0000)]
Stop spilling authentication errors to users

Address Debian bug #741421 reported by Rowan Thorpe.

5 years agoAdd Spanish translation
Lunar [Tue, 6 May 2014 13:44:06 +0000 (13:44 +0000)]
Add Spanish translation

Thanks Loïc Raimbault!

5 years agoSwitch to new RSpec expectation syntax
Lunar [Tue, 6 May 2014 13:02:58 +0000 (13:02 +0000)]
Switch to new RSpec expectation syntax

5 years agoAdd support for generating gems using the newer Gem API
Lunar [Tue, 6 May 2014 11:58:46 +0000 (11:58 +0000)]
Add support for generating gems using the newer Gem API

5 years agoUpdate dependencies
Lunar [Tue, 6 May 2014 10:06:43 +0000 (10:06 +0000)]
Update dependencies

5 years agoAdd support for the Psych YAML engine
Jérémy Bobbio [Mon, 5 May 2014 14:42:41 +0000 (16:42 +0200)]
Add support for the Psych YAML engine

Ruby 2 and onwards drop support for syck.

5 years agoSet a default time zone
Jérémy Bobbio [Wed, 3 Apr 2013 10:05:33 +0000 (10:05 +0000)]
Set a default time zone

Otherwise tests using Timecop fail when active_support is loaded.

5 years agoStop using unsupported gem name for activesupport
Lunar [Tue, 6 May 2014 10:00:30 +0000 (10:00 +0000)]
Stop using unsupported gem name for activesupport

6 years agoMore TODO items
Lunar [Sun, 11 Aug 2013 15:29:18 +0000 (17:29 +0200)]
More TODO items

6 years agoDocument installation of libxml2-dev libxslt-dev on Debian
Lunar [Sat, 6 Jul 2013 20:17:20 +0000 (22:17 +0200)]
Document installation of libxml2-dev libxslt-dev on Debian

Building Nokogiri requires both packages (and ruby-dev which should be
installed by rubygems). Thanks Alexandre Garreau for reporting the issue.

6 years agoupdate TODO list: coquelicot is now in Debian
Lunar [Mon, 29 Apr 2013 10:51:52 +0000 (12:51 +0200)]
update TODO list: coquelicot is now in Debian

6 years agofix typo in Helpers::clone_command
Lunar [Tue, 9 Apr 2013 10:08:59 +0000 (10:08 +0000)]
fix typo in Helpers::clone_command

6 years agodocument commands needed to serve the local Git clone
Lunar [Tue, 9 Apr 2013 08:27:02 +0000 (08:27 +0000)]
document commands needed to serve the local Git clone

6 years agofix signature step in release process
Lunar [Mon, 8 Apr 2013 16:22:28 +0000 (16:22 +0000)]
fix signature step in release process

Sign will make an attached signature, resulting in a signature as big as the
tarball… not what we want.

6 years agoretrieve gemspec version from current source tree
Lunar [Mon, 8 Apr 2013 16:15:25 +0000 (18:15 +0200)]
retrieve gemspec version from current source tree

Instead of adding the current source tree with low priority, we now put it
first in coquelicot.gemspec. Otherwise, if another coquelicot gem is installed,
its version would be used instead!

6 years agoupdate NEWS file for version 0.9.2 coquelicot-0.9.2
Lunar [Mon, 8 Apr 2013 15:54:50 +0000 (15:54 +0000)]
update NEWS file for version 0.9.2

6 years agobump version number to 0.9.2
Lunar [Mon, 8 Apr 2013 15:27:03 +0000 (15:27 +0000)]
bump version number to 0.9.2

6 years agoadd a TODO entry about supporting sub-directory installations
Lunar [Mon, 8 Apr 2013 15:29:10 +0000 (15:29 +0000)]
add a TODO entry about supporting sub-directory installations

6 years agoconvert NEWS to proper Markdown
Lunar [Mon, 8 Apr 2013 14:58:52 +0000 (14:58 +0000)]
convert NEWS to proper Markdown

This allows to directly use it in the website.

6 years agorework and split documentation
Lunar [Mon, 8 Apr 2013 14:56:19 +0000 (14:56 +0000)]
rework and split documentation

The very long README file has been split in several files targetting different
audiences:

 * INSTALL: describe how to setup Coquelicot from the source code. This file
   can be omitted in distribution packages for better tailored configuration
   instructions.
 * HACKING: notes for developers and other technical details.
 * TODO: future plans for enthusiasts.

README itself now only contains the detailed list of features and authorship
informations.

Because the size of README is now below 5 kiB, we also need to update the test
on how too large input are handled. We now use the background image instead.

6 years agocleanup old stub launcher for Coquelicot::Application
Lunar [Wed, 3 Apr 2013 15:50:00 +0000 (15:50 +0000)]
cleanup old stub launcher for Coquelicot::Application

It will not work properly as we've switched to prefer Rainbows!.

6 years agomention author and license for JavaScript libraries in README
Lunar [Wed, 3 Apr 2013 15:42:30 +0000 (15:42 +0000)]
mention author and license for JavaScript libraries in README

6 years agoproperly save mtimes in create_archive task
Lunar [Wed, 3 Apr 2013 14:08:00 +0000 (14:08 +0000)]
properly save mtimes in create_archive task

6 years agoexpand TarWriter#add_file_simple and #mkdir in create_archive task
Lunar [Wed, 3 Apr 2013 14:02:21 +0000 (14:02 +0000)]
expand TarWriter#add_file_simple and #mkdir in create_archive task

Unfortunately, Gem::Package::TarWriterTar currently does not provide an
interface to add a file (or a directory) and specify its mtime. So we need to
expand it in order to be able to write proper mtimes later on.

6 years agofix jquery.lightBoxFu.js file mode
Lunar [Wed, 3 Apr 2013 13:54:06 +0000 (13:54 +0000)]
fix jquery.lightBoxFu.js file mode

This piece of JavaScript is not meant to be executed on a server.

6 years agoensure gem files have been unlinked after they have been sent
Lunar [Wed, 3 Apr 2013 12:58:13 +0000 (12:58 +0000)]
ensure gem files have been unlinked after they have been sent

This was previously commented only for debugging purpose.

6 years agoadd a new release step
Lunar [Sat, 30 Mar 2013 15:14:27 +0000 (16:14 +0100)]
add a new release step

6 years agofallback on code version when the gem version is unavailable
Lunar [Fri, 22 Mar 2013 10:45:00 +0000 (10:45 +0000)]
fallback on code version when the gem version is unavailable

6 years agoadd missing require for Coquelicot::Helpers
Lunar [Fri, 22 Mar 2013 10:42:27 +0000 (10:42 +0000)]
add missing require for Coquelicot::Helpers

`Coquelicot::Helpers#gem_version` needs `Gem` to be loaded.

6 years agodocument the release process
Lunar [Thu, 21 Mar 2013 15:15:55 +0000 (16:15 +0100)]
document the release process

6 years agoupdate NEWS file for version 0.9.1 coquelicot-0.9.1
Lunar [Thu, 21 Mar 2013 14:24:03 +0000 (15:24 +0100)]
update NEWS file for version 0.9.1

6 years agobump version number to 0.9.1
Lunar [Thu, 21 Mar 2013 14:48:41 +0000 (15:48 +0100)]
bump version number to 0.9.1

6 years agofix upload progress tracking
Lunar [Thu, 21 Mar 2013 14:19:36 +0000 (15:19 +0100)]
fix upload progress tracking

The conditional inclusion of the Upr middle does not work when we are the one
starting Rainbows!. As this is now the preferred webserver, the simple fix
is to always include it.

6 years agofix an embarassing typo which prevented Coquelicot to load with Ruby >= 1.9
Lunar [Thu, 21 Mar 2013 14:19:30 +0000 (15:19 +0100)]
fix an embarassing typo which prevented Coquelicot to load with Ruby >= 1.9

6 years agobe more specific when catching loading failures
Lunar [Thu, 14 Mar 2013 18:59:38 +0000 (19:59 +0100)]
be more specific when catching loading failures

6 years agoadd missing XML namespace in default layout
Lunar [Thu, 14 Mar 2013 16:43:42 +0000 (17:43 +0100)]
add missing XML namespace in default layout

6 years agoaccess rubygems.org over HTTPS coquelicot-0.9
Lunar [Thu, 14 Mar 2013 12:00:51 +0000 (13:00 +0100)]
access rubygems.org over HTTPS

6 years agoclarify, reword and improve README
Lunar [Thu, 14 Mar 2013 10:42:22 +0000 (11:42 +0100)]
clarify, reword and improve README

Thanks intrigeri for being so good with details.

6 years agominor rewording of extended description
Lunar [Thu, 14 Mar 2013 09:31:03 +0000 (10:31 +0100)]
minor rewording of extended description

A "specific focus" is a little bit redundant.

6 years agoupdate german translation
Lunar [Wed, 13 Mar 2013 23:30:22 +0000 (00:30 +0100)]
update german translation

Thanks to casper.

6 years agoupdate french translation
Lunar [Wed, 13 Mar 2013 17:24:47 +0000 (18:24 +0100)]
update french translation

6 years agorefresh PO files
Lunar [Wed, 13 Mar 2013 17:08:53 +0000 (18:08 +0100)]
refresh PO files

6 years agoadd NEWS file
Lunar [Wed, 13 Mar 2013 15:49:54 +0000 (16:49 +0100)]
add NEWS file

6 years agobump version number to 0.9 (final)
Lunar [Wed, 13 Mar 2013 15:49:46 +0000 (16:49 +0100)]
bump version number to 0.9 (final)

6 years agouse gem version number when creating translation catalogs
Lunar [Wed, 13 Mar 2013 17:11:18 +0000 (18:11 +0100)]
use gem version number when creating translation catalogs

6 years agowhitespaces
Lunar [Wed, 13 Mar 2013 17:09:48 +0000 (18:09 +0100)]
whitespaces

6 years agocope with Sinatra more aggressively trying to guess Content-Type
Lunar [Wed, 13 Mar 2013 17:43:44 +0000 (18:43 +0100)]
cope with Sinatra more aggressively trying to guess Content-Type

It looks like recent Sinatra are now trying to guess Content-Type more
aggressively when using attachment. So we now set Content-Length and
Content-Type before calling Sinatra's methods in Application#send_stored_file.

6 years agostop recommending to use bundler --binstubs
Lunar [Wed, 13 Mar 2013 17:05:54 +0000 (18:05 +0100)]
stop recommending to use bundler --binstubs

As this actually overwrites bin/coquelicot and thus prevents the
software to work properly, it is a pretty bad idea.

6 years agofix app not starting when using Ruby 1.8
Lunar [Wed, 13 Mar 2013 17:00:52 +0000 (18:00 +0100)]
fix app not starting when using Ruby 1.8

It looks like wrapping the application inside a lambda is not supported when
using Ruby 1.8. So we skip the "half-close" monkeypatch when using something
before Ruby 1.9 and build the Rack application directly.

6 years agoadd a create_archive rake task to create source tarball
Lunar [Wed, 13 Mar 2013 15:02:35 +0000 (16:02 +0100)]
add a create_archive rake task to create source tarball

6 years agomention Coquelicot version in a meta generator header
Lunar [Wed, 13 Mar 2013 15:02:11 +0000 (16:02 +0100)]
mention Coquelicot version in a meta generator header

6 years agoadd TODO entry about using better encryption
Lunar [Wed, 13 Mar 2013 15:01:50 +0000 (16:01 +0100)]
add TODO entry about using better encryption

6 years agorephrase README section about the "download password" feature
Lunar [Wed, 13 Mar 2013 15:01:26 +0000 (16:01 +0100)]
rephrase README section about the "download password" feature

6 years agodo not include .gitignore, .placeholder files and coquelicot.git symlink in gem
Lunar [Wed, 13 Mar 2013 14:57:52 +0000 (15:57 +0100)]
do not include .gitignore, .placeholder files and coquelicot.git symlink in gem

6 years agoexplicitly add rake to development dependencies
Lunar [Wed, 13 Mar 2013 11:58:59 +0000 (12:58 +0100)]
explicitly add rake to development dependencies

6 years agobe more explicit when data collection and download passwords
Lunar [Wed, 13 Mar 2013 11:57:51 +0000 (12:57 +0100)]
be more explicit when data collection and download passwords

6 years agoadjust footer position in stylesheet
Lunar [Wed, 13 Mar 2013 11:56:45 +0000 (12:56 +0100)]
adjust footer position in stylesheet

6 years agoupdate TOOD entry in README about gemification
Lunar [Wed, 13 Mar 2013 11:56:33 +0000 (12:56 +0100)]
update TOOD entry in README about gemification

6 years agostop failing when rubygems or bundler cannot be loaded
Lunar [Wed, 13 Mar 2013 11:54:11 +0000 (12:54 +0100)]
stop failing when rubygems or bundler cannot be loaded

When installed from a system-wide package or from a Gem, Coquelicot might not
need Rubygems or Bundler to work. So we now try to load them, but we continue
if we can't, as maybe dependencies have been handled in another way.

6 years agoproperly set paths when using a configuration file
Lunar [Wed, 13 Mar 2013 11:53:30 +0000 (12:53 +0100)]
properly set paths when using a configuration file

6 years agoimplement better AGPL compliance
Lunar [Wed, 13 Mar 2013 11:39:58 +0000 (12:39 +0100)]
implement better AGPL compliance

We now detect if Coquelicot is running from a serviceable Git clone.
When it is the case, we offer to retrieve source using Git as we did
previously.

If there is a Git repository which is not usable, a warning is sent to the
logs.

In case source can't be provided by Git, we offer a link to an on-the-fly
created Gem that can be downloaded and unpacked. The version number of
the running software is mangled to add the server hostname and a date.

6 years agoadd a link to project homepage in README
Lunar [Wed, 13 Mar 2013 11:38:31 +0000 (12:38 +0100)]
add a link to project homepage in README

6 years agosupport multiple languages for about_text
Lunar [Sat, 9 Mar 2013 12:51:21 +0000 (13:51 +0100)]
support multiple languages for about_text

6 years agoreset session after testing language features in app
Lunar [Sat, 9 Mar 2013 12:26:42 +0000 (13:26 +0100)]
reset session after testing language features in app

The application will set save through a session cookie the preferred language.
In order to not have leaky tests, we now reset the session when we do not use
the default language.

6 years agofactor out 'browser prefers french' spec context
Lunar [Sat, 9 Mar 2013 11:59:13 +0000 (12:59 +0100)]
factor out 'browser prefers french' spec context

6 years agoadd test for the about_text setting
Lunar [Sat, 9 Mar 2013 11:50:39 +0000 (12:50 +0100)]
add test for the about_text setting

6 years agoadd more files to .gitignore
Lunar [Fri, 8 Mar 2013 21:40:20 +0000 (22:40 +0100)]
add more files to .gitignore

6 years agoupdate copyright years
Lunar [Fri, 8 Mar 2013 21:38:43 +0000 (22:38 +0100)]
update copyright years

6 years agomove to an all-in-one command shell interface
Lunar [Fri, 8 Mar 2013 21:21:23 +0000 (22:21 +0100)]
move to an all-in-one command shell interface

Instead of having several different commands, we now move to a model where
there is one `coquelicot` command with several sub-commands.

`coquelicot-collect-garbage` is replaced by `coquelicot gc`.

`coquelicot-migrate-jyraphe` is replaced by coquelicot migrate-jyraphe`.

And two new sub-commands have been added: `start` and `stop`. They respectively
start and stop the Rainbows! web server, properly configured to run Coquelicot.

The configuration file for Coquelicot has gained new settings for web server
configuration:

 * `pid`: a path to the pid file,
 * `log`: a path to the log file,
 * `listen`: addresses on which requests should be accepted.

All of them are passed unmodified to Rainbows!: they are provided for the
administrator's convenience in order to keep all settings for Coquelicot in a
single configuration file.

Because there is no different environment for development and production,
`show_exceptions` is also mentioned in the default configuration file. Its
default value has been adjusted to false.

6 years agoupdate all remaining dependencies
Lunar [Fri, 8 Mar 2013 18:33:57 +0000 (19:33 +0100)]
update all remaining dependencies

6 years agoupdate to Moneta 0.7 and its new API
Lunar [Fri, 8 Mar 2013 18:32:55 +0000 (19:32 +0100)]
update to Moneta 0.7 and its new API

We explicitly set a dependency on the new version instead of relying on 'upr'
depending on the moneta gem.

6 years agofix wrong removal of files which expired after the gone period
Lunar [Fri, 31 Aug 2012 11:03:22 +0000 (13:03 +0200)]
fix wrong removal of files which expired after the gone period

When expiration period is longer than the gone period, the files are kept
unmodified longer than the actual gone period. Previously, this would
get them erased, a serious bug.

Now we properly skip files that have not yet been erased (and truncated to zero
size) when looking for files that have been kept longer than the gone period.

6 years agodisplay nicer error messages in main app
Lunar [Mon, 9 Apr 2012 12:16:19 +0000 (14:16 +0200)]
display nicer error messages in main app

6 years agowarn users when they generate a download password
Lunar [Mon, 9 Apr 2012 10:51:47 +0000 (12:51 +0200)]
warn users when they generate a download password

6 years agoremove '5 minutes' option in 'available for'
Lunar [Mon, 9 Apr 2012 09:58:29 +0000 (11:58 +0200)]
remove '5 minutes' option in 'available for'

This is way too short for most downloads. For big files, it's even
worse as it is '5 minutes' since the very begining of the upload. That
means that if the upload itself is taking more than 5 minutes, the whole
transfer is useless.

6 years agovarious UI improvements
Lunar [Mon, 9 Apr 2012 09:57:40 +0000 (11:57 +0200)]
various UI improvements

6 years agoproperly i18n'ize Coquelicot::Rack::Upload
Lunar [Wed, 4 Apr 2012 17:02:52 +0000 (19:02 +0200)]
properly i18n'ize Coquelicot::Rack::Upload

6 years agoget an RSpec version with a working --backtrace
Lunar [Sat, 24 Mar 2012 15:32:30 +0000 (16:32 +0100)]
get an RSpec version with a working --backtrace

6 years agointernationalize error_for_empty
Lunar [Fri, 23 Mar 2012 18:35:42 +0000 (19:35 +0100)]
internationalize error_for_empty

6 years agointernationalize error_for_max_length
Lunar [Fri, 23 Mar 2012 18:26:30 +0000 (19:26 +0100)]
internationalize error_for_max_length

6 years agointernationalize Fixnum#as_size
Lunar [Fri, 23 Mar 2012 17:43:35 +0000 (18:43 +0100)]
internationalize Fixnum#as_size

6 years agoupdate and fix french translation
Lunar [Fri, 23 Mar 2012 17:57:21 +0000 (18:57 +0100)]
update and fix french translation

6 years agorefresh PO files
Lunar [Fri, 23 Mar 2012 17:49:16 +0000 (18:49 +0100)]
refresh PO files

6 years agoadd a page to help users understand what Coquelicot does and its limits
Lunar [Fri, 23 Mar 2012 16:01:22 +0000 (17:01 +0100)]
add a page to help users understand what Coquelicot does and its limits

6 years agorefresh PO files
Lunar [Fri, 23 Mar 2012 17:44:46 +0000 (18:44 +0100)]
refresh PO files

6 years agoallow users to select and retain a language
Lunar [Tue, 20 Mar 2012 17:47:19 +0000 (18:47 +0100)]
allow users to select and retain a language

Instead of relying purely on the `Accept-language` header and on an hidden
parameter, we now offer links for users to select one of the supported
languages.

This selection is then retained by using Sinatra cookie based sessions.

6 years agoimprove compatibility with Ruby 1.9.1 or later
Lunar [Tue, 20 Mar 2012 11:27:40 +0000 (12:27 +0100)]
improve compatibility with Ruby 1.9.1 or later

6 years agouppercase title in layout
Lunar [Mon, 12 Mar 2012 09:46:37 +0000 (10:46 +0100)]
uppercase title in layout

6 years agorewrite Jyraphe migration system
Lunar [Sun, 4 Mar 2012 10:01:08 +0000 (11:01 +0100)]
rewrite Jyraphe migration system

Instead of the old quickly hacked script, we now have a properly integated,
tested migration system to migrate from Jyraphe installations.

6 years agospec and implement coquelicot-collect-garbage
Lunar [Fri, 9 Mar 2012 14:18:07 +0000 (15:18 +0100)]
spec and implement coquelicot-collect-garbage

It is located in the bin/ directory and replaces the old ext/coquelicot_gc.rb.

6 years agoturn Coquelicot into a gem
Lunar [Fri, 9 Mar 2012 16:24:17 +0000 (17:24 +0100)]
turn Coquelicot into a gem

6 years agoissue a warning when Depot.gc! is unable to read a file
Lunar [Fri, 9 Mar 2012 16:36:22 +0000 (17:36 +0100)]
issue a warning when Depot.gc! is unable to read a file

6 years agoadd helper for specs testing std{out,err}
Lunar [Sat, 10 Mar 2012 10:06:37 +0000 (11:06 +0100)]
add helper for specs testing std{out,err}

6 years agoproperly half-close both sides of the HTTP connection
Lunar [Wed, 29 Feb 2012 21:19:03 +0000 (22:19 +0100)]
properly half-close both sides of the HTTP connection

Half-closing the write part first and draining our input makes sure the client
will properly receive an error message instead of TCP RST (a.k.a. "Connection
reset by peer") when we interrupt it in the middle of a POST request.