How to use custom label types?
mathuin opened this issue · comments
I have Avery 6572 labels. I have created a types.yaml file containing this information:
Avery6572:
paper_size: LETTER
top_margin: 36
bottom_margin: 36
left_margin: 9
right_margin: 9
columns: 3
rows: 5
column_gutter: 9
row_gutter: 0
Unfortunately, prawn-labels isn't picking up the types.yaml file in my local directory. How can I use this label definition? Do I need to modify a system-wide file instead?
Jack.
Hey Jack,
Yeah that is something I've never been too happy about with prawn-labels. The best way to get your new type in the gem is to shoot over a pull request and I'll merge it and push a new version.
Otherwise you'll have to modify the installed gem which isn't great.
Jordan
On Oct 20, 2011, at 3:29 PM, Jack Twilley wrote:
I have Avery 6572 labels. I have created a types.yaml file containing this information:
Avery6572:
paper_size: LETTER
top_margin: 36
bottom_margin: 36
left_margin: 9
right_margin: 9
columns: 3
rows: 5
column_gutter: 9
row_gutter: 0Unfortunately, prawn-labels isn't picking up the types.yaml file in my local directory. How can I use this label definition? Do I need to modify a system-wide file instead?
Jack.
Reply to this email directly or view it on GitHub:
#6
I will add my information to the gem's types.yaml file and send you a pull request.
I can also write some code that will check for a types.yaml in the current directory which can be imported after the system-level file, and send you a pull request for that later.
Thanks!
Jack.