soulheart 0.1.0 → 0.1.1
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.
- checksums.yaml +4 -4
- data/README.md +9 -7
- data/lib/soulheart/server.rb +9 -2
- data/lib/soulheart/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1087fd94a27c97abf2d467ddc42654da2efa5b2b
|
|
4
|
+
data.tar.gz: 476d8003d86fb2b38adc00e8306904091c1ed25d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 [](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
|
|
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
|
|
63
|
+
Tested with rspec. Check out test information at [Code Climate](https://codeclimate.com/github/sethherr/soulheart).
|
|
64
64
|
|
|
65
|
-
|
|
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.
|
|
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
|
|
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.
|
data/lib/soulheart/server.rb
CHANGED
|
@@ -18,8 +18,15 @@ module Soulheart
|
|
|
18
18
|
MultiJson.encode(matches: matches)
|
|
19
19
|
end
|
|
20
20
|
|
|
21
|
-
get '/
|
|
22
|
-
MultiJson.encode(
|
|
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
|
data/lib/soulheart/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2015-07-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: hiredis
|