<feed xmlns='http://www.w3.org/2005/Atom'>
<title>leap_web.git/lib/extensions, branch drop/ruby-2.1</title>
<subtitle>[leap_web] 
</subtitle>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/'/>
<entry>
<title>bugfix: handle couch 404s</title>
<updated>2017-03-23T08:49:17+00:00</updated>
<author>
<name>Azul</name>
<email>azul@riseup.net</email>
</author>
<published>2016-11-21T15:14:38+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=1e672227a23afbb9f319a0aefa0b0ca3495fa1c6'/>
<id>1e672227a23afbb9f319a0aefa0b0ca3495fa1c6</id>
<content type='text'>
our special error handler for json requests would turn all exceptions
into 500s - removed it. now the rescue_responses can do their thing
again.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
our special error handler for json requests would turn all exceptions
into 500s - removed it. now the rescue_responses can do their thing
again.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge remote-tracking branch 'origin/develop'</title>
<updated>2016-10-20T12:39:33+00:00</updated>
<author>
<name>Azul</name>
<email>azul@riseup.net</email>
</author>
<published>2016-10-20T12:39:33+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=b97daaed9b513006ace7e8eb5232a2211e965e77'/>
<id>b97daaed9b513006ace7e8eb5232a2211e965e77</id>
<content type='text'>
We'll only use the master branch for development from now on.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We'll only use the master branch for development from now on.
</pre>
</div>
</content>
</entry>
<entry>
<title>simple_form: fix enhancement to work with latest rails</title>
<updated>2016-08-15T19:09:34+00:00</updated>
<author>
<name>Azul</name>
<email>azul@riseup.net</email>
</author>
<published>2016-08-15T19:09:34+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=76821cdd6064f2248948da83ca806598ee18199e'/>
<id>76821cdd6064f2248948da83ca806598ee18199e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>upgrade: {File,Dir}.exists? -&gt; exist?</title>
<updated>2016-05-02T11:31:16+00:00</updated>
<author>
<name>Azul</name>
<email>azul@riseup.net</email>
</author>
<published>2016-03-25T10:06:55+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=00fba5114ae2c6176c88ff0ea152576c5bff657d'/>
<id>00fba5114ae2c6176c88ff0ea152576c5bff657d</id>
<content type='text'>
exists? is deprecated in ruby 2.1
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
exists? is deprecated in ruby 2.1
</pre>
</div>
</content>
</entry>
<entry>
<title>upgrade: remove references to RestClient</title>
<updated>2016-05-02T11:21:52+00:00</updated>
<author>
<name>Azul</name>
<email>azul@riseup.net</email>
</author>
<published>2016-03-23T20:48:52+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=065859b90cc5ef403b8f47bd5394b343e556cc4d'/>
<id>065859b90cc5ef403b8f47bd5394b343e556cc4d</id>
<content type='text'>
CouchRest &gt; 1.2 does not use RestClient anymore. So we should not try to
catch its errors.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
CouchRest &gt; 1.2 does not use RestClient anymore. So we should not try to
catch its errors.
</pre>
</div>
</content>
</entry>
<entry>
<title>remove outdated couchrest hack</title>
<updated>2016-04-26T23:45:07+00:00</updated>
<author>
<name>Azul</name>
<email>azul@riseup.net</email>
</author>
<published>2016-04-26T23:45:07+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=66e2546d6406785c7a085d191bfbaf5e87543245'/>
<id>66e2546d6406785c7a085d191bfbaf5e87543245</id>
<content type='text'>
We had rewritten use_database so it would not crash the entire app
if couch was not available at the time of initialization.

couchrest now moved on and only sets the database name on use_database.
The database will only be queried once it is really needed. So pretty
much exactly what we want.

Our hack instead caused quite a bit of problems as it would still
initialize the database during start. This way the app would remain
in an invalid state even when couch came back.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We had rewritten use_database so it would not crash the entire app
if couch was not available at the time of initialization.

couchrest now moved on and only sets the database name on use_database.
The database will only be queried once it is really needed. So pretty
much exactly what we want.

Our hack instead caused quite a bit of problems as it would still
initialize the database during start. This way the app would remain
in an invalid state even when couch came back.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix missing translations: get help and cancel.</title>
<updated>2015-08-03T23:36:54+00:00</updated>
<author>
<name>elijah</name>
<email>elijah@riseup.net</email>
</author>
<published>2015-08-03T23:36:54+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=ba3e2451b8bce4dad34e8e28855d16d8c26c118b'/>
<id>ba3e2451b8bce4dad34e8e28855d16d8c26c118b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>rename warden extension to patch the original</title>
<updated>2014-07-15T10:12:51+00:00</updated>
<author>
<name>Azul</name>
<email>azul@leap.se</email>
</author>
<published>2014-07-08T08:23:05+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=ff697316c85f9edc5a568d66f6c92ff6d13862cc'/>
<id>ff697316c85f9edc5a568d66f6c92ff6d13862cc</id>
<content type='text'>
the Warden::SessionSerializer was not getting loaded at all because we had a file by the same name. We want it to get loaded and be patched instead.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
the Warden::SessionSerializer was not getting loaded at all because we had a file by the same name. We want it to get loaded and be patched instead.
</pre>
</div>
</content>
</entry>
<entry>
<title>minor: fix typo in load_views</title>
<updated>2014-07-12T07:14:24+00:00</updated>
<author>
<name>Azul</name>
<email>azul@leap.se</email>
</author>
<published>2014-07-10T08:56:17+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=0666c06fd7e66c783345a9810ace319a1cd9321f'/>
<id>0666c06fd7e66c783345a9810ace319a1cd9321f</id>
<content type='text'>
It removed most of the reduce functions... really not what we wanted
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It removed most of the reduce functions... really not what we wanted
</pre>
</div>
</content>
</entry>
<entry>
<title>Identity view cert_fingerprints_by_expiry</title>
<updated>2014-07-12T07:14:23+00:00</updated>
<author>
<name>Azul</name>
<email>azul@leap.se</email>
</author>
<published>2014-07-07T08:12:53+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=cc1666d9832415058bf0b22bb5912e432261af4f'/>
<id>cc1666d9832415058bf0b22bb5912e432261af4f</id>
<content type='text'>
Also move complex identity views into js designs.
Includes test.

Here's how you would query it from outside rails:
```
$ curl
'localhost:5984/identities/_design/Identity/_view/cert_fingerprints_by_expiry?startkey="2014-07-05"'
{"total_rows":4,"offset":1,"rows":[
{"id":"6c9091d4f13eaeaa6062c9d0528fd34d","key":"2014-07-05","value":"fingerprint"},
{"id":"6f3aa93828b4f6978d551f2623b9d103","key":"2014-07-05","value":"fingerprint"},
{"id":"b6cafacfa65042679691cd5065fb19e3","key":"2014-07-07","value":"fp"}
]}
```

Note that the expiry will be used as the key. So you should use the
current data (or yesterday) as the startkey to get all fingerprints that
have not expired yet.

The fingerprint itself is in the value. No need to include docs.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also move complex identity views into js designs.
Includes test.

Here's how you would query it from outside rails:
```
$ curl
'localhost:5984/identities/_design/Identity/_view/cert_fingerprints_by_expiry?startkey="2014-07-05"'
{"total_rows":4,"offset":1,"rows":[
{"id":"6c9091d4f13eaeaa6062c9d0528fd34d","key":"2014-07-05","value":"fingerprint"},
{"id":"6f3aa93828b4f6978d551f2623b9d103","key":"2014-07-05","value":"fingerprint"},
{"id":"b6cafacfa65042679691cd5065fb19e3","key":"2014-07-07","value":"fp"}
]}
```

Note that the expiry will be used as the key. So you should use the
current data (or yesterday) as the startkey to get all fingerprints that
have not expired yet.

The fingerprint itself is in the value. No need to include docs.
</pre>
</div>
</content>
</entry>
</feed>
