-
Notifications
You must be signed in to change notification settings - Fork 18
Possibly resolves #42 #75
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
base: devel
Are you sure you want to change the base?
Conversation
…r limit for the specific show's title. Changed hard limit in DataMapper class in suggestion.rb from 40 to the value of live show's limit. Not sure of workflow. May be a problem there is no live show in data.json? Also bumped setting LIVE_URL to immediately after call to Dotenv.load, otherwise it gets set too late to initialize the Suggestion class. shows.json example: { "shows": [ { "rss":"http://feeds.feedburner.com/BsdNowHd", "url": "bn", "title": "BSD Now" }, { "rss":"http://feeds.feedburner.com/coderradiovideo", "url": "cr", "title": "Coder Radio", "limit": 10 } ] }
I'd like to see this be able to fall back to the hard limit (40) when no limit is specified, i think if that can be done, this can be accepted. 👍 |
It already does. The condition in show.rb...
This pulls the limit key from the json if it exists, otherwise defaults to 40. |
Whoops, my bad! Totally missed that when i skimmed over the code! |
…alid slug, suggestions.rb crashes. Added a condition for when the live show cannot be found so limit defaults to 40.
Added stability fix but that now puts the default in two different places as a literal, which will haunt us later. Do you have a preferred place to set the default limit as a global constant? .env? |
Generally, anything plugin-related we try to find a way to define in cinchize.yml. .env is usually a last resort location, but is where things should go if it doesn't make sense in cinchize.yml. |
Any update on this? :) |
Same as #76. |
Possibly resolves #42.
shows.json can now contain a "limit" member that specifies a character limit for the specific show's title.
Changed hard limit in DataMapper class in suggestion.rb from 40 to the value of live show's limit. Not sure of workflow. May be a problem there is no live show in data.json?
Also bumped setting LIVE_URL to immediately after call to Dotenv.load, otherwise it gets set too late to
initialize the Suggestion class.