soulheart 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e4cad89d20572615c5206b58e5af9b1d974bf99
4
- data.tar.gz: f87a9e0a1e20371e462bffefc15ffac916265529
3
+ metadata.gz: 1087fd94a27c97abf2d467ddc42654da2efa5b2b
4
+ data.tar.gz: 476d8003d86fb2b38adc00e8306904091c1ed25d
5
5
  SHA512:
6
- metadata.gz: 9bb3531690cdcbd2f67fb3cdacc6609465465349b85caa4e718be9553d1dd905e1ab4031531789d240b77214284003d36a3d22193c71c65d9d014781c386402c
7
- data.tar.gz: 36ed6866cf3de19a9a22edf91fec640411ddac96e72d2333111303462e64744b6f6af3825ed24f09e239e57beb2c85acef20b63f4e87af32903201f403375fff
6
+ metadata.gz: e89a98fb8371a656ec5270c190b18d3e8eb120dbde36c13ecda9f3cdb2c93897e34a27823d9c063be9caea85c44df27a12ab6d0af01858b9f84d4b5b71324c8f
7
+ data.tar.gz: 14b59ea3289fc49b3f2aa22390bf0c6b4cc998a0bbd5a347f7b4e10deedc8ea24d44eaecc721f68636b6ceb468ab19529275f529011f7ed227a826ea5291ceed
data/README.md CHANGED
@@ -36,7 +36,7 @@ See the [Soulheart demo page](https://sethherr.github.io/soulheart/) for a step-
36
36
 
37
37
  #### With Heroku [![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)
38
38
 
39
- You can instantly deploy Soulheart to Heroku for free.
39
+ **You can instantly deploy Soulheart to Heroku for free!** This requires a verified Heroku account—you will have to add a payment method to Heroku but you won't be charged.
40
40
 
41
41
  To update your Heroku deploy of Soulheart, use the [Heroku CLI](https://devcenter.heroku.com/articles/heroku-command) and redeploy the app:
42
42
 
@@ -45,11 +45,11 @@ To update your Heroku deploy of Soulheart, use the [Heroku CLI](https://devcente
45
45
 
46
46
  #### In a Rails app
47
47
 
48
- Soulheart is also a gem. Add it to your gemfile:
48
+ Soulheart is a gem. Add it to your gemfile:
49
49
 
50
50
  gem 'soulheart'
51
51
 
52
- And then put this in your routes.rb -
52
+ And then put this in your routes.rb
53
53
 
54
54
  require 'soulheart/server'
55
55
  mount Soulheart::Server => "/soulhearts"
@@ -60,17 +60,19 @@ You can then access the server when your rails app is running. You can run the [
60
60
 
61
61
  ## Testing
62
62
 
63
- Tested with rspec, check out test information at [Code Climate](https://codeclimate.com/github/sethherr/soulheart).
63
+ Tested with rspec. Check out test information at [Code Climate](https://codeclimate.com/github/sethherr/soulheart).
64
64
 
65
- Run `bundle exec guard` to watch for changes and rerun the tests when files are saved.
65
+ You can run `bundle exec guard` to watch for changes and rerun the tests when files are saved.
66
66
 
67
67
 
68
68
  ## Requirements
69
69
 
70
- Soulheart is a Redis backed Sinatra server. I test with the latest MRI (2.2, 2.1, 2.0) and JRuby versions (1.7). Other versions/VMs are untested but might work fine.
70
+ Soulheart is a Redis backed Sinatra server. It's tested with the latest MRI (2.2, 2.1, 2.0) and JRuby versions (1.7). Other versions/VMs are untested but might work fine.
71
71
 
72
72
  It requires Redis >= 3.0
73
73
 
74
74
  ## Additional info
75
75
 
76
- This started as a fork of [Soulmate](https://github.com/seatgeek/soulmate), to bring it up to date and make it slicker. It's MIT licensed.
76
+ This is an extended fork of [Soulmate](https://github.com/seatgeek/soulmate), to bring it up to date, make it slicker, and make it deployable to Heroku.
77
+
78
+ It's MIT licensed.
@@ -18,8 +18,15 @@ module Soulheart
18
18
  MultiJson.encode(matches: matches)
19
19
  end
20
20
 
21
- get '/version' do
22
- MultiJson.encode(soulheart: Soulheart::VERSION)
21
+ get '/categories' do
22
+ MultiJson.encode(categories: Base.new.sorted_category_array)
23
+ end
24
+
25
+ get '/info' do
26
+ MultiJson.encode({
27
+ soulheart: Soulheart::VERSION,
28
+ time: Time.now.utc.strftime('%H:%M:%S UTC')
29
+ })
23
30
  end
24
31
 
25
32
  not_found do
@@ -1,3 +1,3 @@
1
1
  module Soulheart
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soulheart
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Herr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-09 00:00:00.000000000 Z
11
+ date: 2015-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hiredis