lablr 0.0.1 → 0.1.2

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.
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/Gemfile ADDED
@@ -0,0 +1,18 @@
1
+ source "http://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
5
+
6
+ # Add dependencies to develop your gem here.
7
+ # Include everything needed to run rake, tests, features, etc.
8
+
9
+ gem "htmldoc" # require rubygems htmldoc to install native gem, even though lablr uses a modified htmldoc in vendor/gems
10
+ #gem "htmldoc", "0.0.0", :git => "git://github.com/hulihanapplications/htmldoc.git"#, ">= 0.2.3"
11
+
12
+ group :development do
13
+ gem "shoulda", ">= 0"
14
+ gem "bundler", "~> 1.0.0"
15
+ gem "jeweler", "~> 1.6.4"
16
+ gem "rcov", ">= 0"
17
+ gem "rspec"
18
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,32 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ diff-lcs (1.1.3)
5
+ git (1.2.5)
6
+ htmldoc (0.2.3)
7
+ jeweler (1.6.4)
8
+ bundler (~> 1.0)
9
+ git (>= 1.2.5)
10
+ rake
11
+ rake (0.9.2)
12
+ rcov (0.9.10)
13
+ rspec (2.6.0)
14
+ rspec-core (~> 2.6.0)
15
+ rspec-expectations (~> 2.6.0)
16
+ rspec-mocks (~> 2.6.0)
17
+ rspec-core (2.6.4)
18
+ rspec-expectations (2.6.0)
19
+ diff-lcs (~> 1.1.2)
20
+ rspec-mocks (2.6.0)
21
+ shoulda (2.11.3)
22
+
23
+ PLATFORMS
24
+ ruby
25
+
26
+ DEPENDENCIES
27
+ bundler (~> 1.0.0)
28
+ htmldoc
29
+ jeweler (~> 1.6.4)
30
+ rcov
31
+ rspec
32
+ shoulda
data/README.textile CHANGED
@@ -17,14 +17,10 @@ sudo apt-get install
17
17
  </pre>
18
18
 
19
19
  Then install the htmldoc gem:
20
- <pre>
21
- sudo gem install htmldoc
22
- </pre>
20
+ <pre>sudo gem install htmldoc</pre>
23
21
 
24
22
  h2. Installation
25
- <pre>
26
- gem install Lablr
27
- </pre>
23
+ <pre>gem install lablr</pre>
28
24
 
29
25
  h2. Usage
30
26
 
@@ -34,4 +30,5 @@ Lablr.generate_labels(:template => :avery_5163, :format => :pdf, :content => "Te
34
30
 
35
31
  # Generate PDF and write to file
36
32
  Lablr.generate_labels(:template => :avery_5163, :format => :pdf, :content => "Test Label!", :to_file => "x.pdf")
33
+ </pre>
37
34
 
data/Rakefile CHANGED
@@ -1,12 +1,53 @@
1
- require 'rubygems'
2
- require 'rake'
3
- require 'echoe'
4
-
5
- Echoe.new('lablr', '0.0.1') do |p|
6
- p.description = "A Ruby Gem for generating printable labels in a variety of formats(pdf, html, etc.) and templates."
7
- p.url = "https://github.com/hulihanapplications/Lablr"
8
- p.author = "Hulihan Applications"
9
- p.email = "dave@hulihanapplications.com"
10
- p.ignore_pattern = ["tmp/*", "script/*"]
11
- p.runtime_dependencies = ["htmldoc >=0.2.3"]
12
- end
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
+ gem.name = "lablr"
18
+ gem.homepage = "http://github.com/hulihanapplications/lablr"
19
+ gem.license = "MIT"
20
+ gem.summary = %Q{Generate printable labels with Ruby!}
21
+ gem.description = %Q{A Ruby Gem for generating printable labels in a variety of formats(pdf, html, etc.) and templates(Avery, etc.).}
22
+ gem.email = "dave@hulihanapplications.com"
23
+ gem.authors = ["Hulihan Applications", "Dave Hulihan"]
24
+ # dependencies defined in Gemfile
25
+ end
26
+ Jeweler::RubygemsDotOrgTasks.new
27
+
28
+ require 'rake/testtask'
29
+ Rake::TestTask.new(:test) do |test|
30
+ test.libs << 'lib' << 'test'
31
+ test.pattern = 'test/**/test_*.rb'
32
+ test.verbose = true
33
+ end
34
+
35
+ require 'rcov/rcovtask'
36
+ Rcov::RcovTask.new do |test|
37
+ test.libs << 'test'
38
+ test.pattern = 'test/**/test_*.rb'
39
+ test.verbose = true
40
+ test.rcov_opts << '--exclude "gems/*"'
41
+ end
42
+
43
+ task :default => :test
44
+
45
+ require 'rake/rdoctask'
46
+ Rake::RDocTask.new do |rdoc|
47
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
48
+
49
+ rdoc.rdoc_dir = 'rdoc'
50
+ rdoc.title = "lablr #{version}"
51
+ rdoc.rdoc_files.include('README*')
52
+ rdoc.rdoc_files.include('lib/**/*.rb')
53
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.2
@@ -2,7 +2,7 @@
2
2
  options ||= Hash.new
3
3
  options[:cell_width] ||= 320
4
4
  options[:cell_height] ||= 172
5
- options[:spacer_center_width] ||= 15
5
+ options[:spacer_center_width] ||= 30
6
6
  options[:title_1] ||= ""
7
7
  options[:title_2] ||= ""
8
8
  options[:title_3] ||= ""
@@ -12,7 +12,7 @@
12
12
  options[:img] ||= ""
13
13
  %>
14
14
  <div class="sheet">
15
- <table <%= self.style[:border] ? "border=1" : "border=0" %> align=center>
15
+ <table <%= @style.borders ? "border=1" : "border=0" %> align=center>
16
16
  <% for i in (0..4) %>
17
17
  <tr>
18
18
  <!--
data/lablr.gemspec CHANGED
@@ -1,35 +1,70 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
1
4
  # -*- encoding: utf-8 -*-
2
5
 
3
6
  Gem::Specification.new do |s|
4
7
  s.name = %q{lablr}
5
- s.version = "0.0.1"
8
+ s.version = "0.1.2"
6
9
 
7
- s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
- s.authors = ["Hulihan Applications"]
9
- s.cert_chain = ["/aqpwr/.ssl/gem/gem-public_cert.pem"]
10
- s.date = %q{2010-11-22}
11
- s.description = %q{A Ruby Gem for generating printable labels in a variety of formats(pdf, html, etc.) and templates.}
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Hulihan Applications", "Dave Hulihan"]
12
+ s.date = %q{2011-09-09}
13
+ s.description = %q{A Ruby Gem for generating printable labels in a variety of formats(pdf, html, etc.) and templates(Avery, etc.).}
12
14
  s.email = %q{dave@hulihanapplications.com}
13
- s.extra_rdoc_files = ["README.textile", "lib/lablr.rb"]
14
- s.files = ["README.textile", "Rakefile", "assets/layouts/label.html.erb", "assets/templates/_avery_5163.erb", "init.rb", "lablr-0.0.1.gemspec", "lib/lablr.rb", "test.rb", "Manifest", "lablr.gemspec"]
15
- s.homepage = %q{https://github.com/hulihanapplications/Lablr}
16
- s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Lablr", "--main", "README.textile"]
15
+ s.extra_rdoc_files = [
16
+ "README.textile"
17
+ ]
18
+ s.files = [
19
+ ".document",
20
+ "Gemfile",
21
+ "Gemfile.lock",
22
+ "README.textile",
23
+ "Rakefile",
24
+ "VERSION",
25
+ "assets/layouts/label.html.erb",
26
+ "assets/templates/_avery_5163.erb",
27
+ "init.rb",
28
+ "lablr.gemspec",
29
+ "lib/lablr.rb",
30
+ "lib/lablr/template.rb",
31
+ "lib/lablr/template_style.rb",
32
+ "spec/fixtures/content.html",
33
+ "spec/lib/lablr_spec.rb",
34
+ "spec/spec_helper.rb",
35
+ "test.rb"
36
+ ]
37
+ s.homepage = %q{http://github.com/hulihanapplications/lablr}
38
+ s.licenses = ["MIT"]
17
39
  s.require_paths = ["lib"]
18
- s.rubyforge_project = %q{lablr}
19
- s.rubygems_version = %q{1.3.7}
20
- s.signing_key = %q{/aqpwr/.ssl/gem/gem-private_key.pem}
21
- s.summary = %q{A Ruby Gem for generating printable labels in a variety of formats(pdf, html, etc.) and templates.}
40
+ s.rubygems_version = %q{1.6.2}
41
+ s.summary = %q{Generate printable labels with Ruby!}
22
42
 
23
43
  if s.respond_to? :specification_version then
24
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
25
44
  s.specification_version = 3
26
45
 
27
46
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
28
- s.add_runtime_dependency(%q<htmldoc>, [">= 0.2.3"])
47
+ s.add_runtime_dependency(%q<htmldoc>, [">= 0"])
48
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
49
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
50
+ s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
51
+ s.add_development_dependency(%q<rcov>, [">= 0"])
52
+ s.add_development_dependency(%q<rspec>, [">= 0"])
29
53
  else
30
- s.add_dependency(%q<htmldoc>, [">= 0.2.3"])
54
+ s.add_dependency(%q<htmldoc>, [">= 0"])
55
+ s.add_dependency(%q<shoulda>, [">= 0"])
56
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
57
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
58
+ s.add_dependency(%q<rcov>, [">= 0"])
59
+ s.add_dependency(%q<rspec>, [">= 0"])
31
60
  end
32
61
  else
33
- s.add_dependency(%q<htmldoc>, [">= 0.2.3"])
62
+ s.add_dependency(%q<htmldoc>, [">= 0"])
63
+ s.add_dependency(%q<shoulda>, [">= 0"])
64
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
65
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
66
+ s.add_dependency(%q<rcov>, [">= 0"])
67
+ s.add_dependency(%q<rspec>, [">= 0"])
34
68
  end
35
69
  end
70
+
data/lib/lablr.rb CHANGED
@@ -1,60 +1,36 @@
1
- require "htmldoc"
1
+ require File.expand_path("../../vendor/gems/htmldoc/init", __FILE__) # load custom htmldoc instead of broken rubygems version
2
2
  require "erb"
3
+ require "lablr/template"
4
+ require "lablr/template_style"
5
+
3
6
 
4
7
  module Lablr
5
8
  def self.GEM_ROOT
6
9
  return File.join(File.dirname(File.join(__FILE__)), "..")
7
10
  end
8
11
 
9
- class Template # templates define label layout(with erb) and rendering
10
- attr_accessor :erb, :name, :content, :style
11
- #@erb_template = nil
12
- #@name = nil
13
-
14
- def initialize(options = {})
15
- @erb = options[:erb] ||= nil
16
- @name = options[:name] ||= nil
17
- @content = options[:content] ||= "No Content Set"
18
- @style = options[:style] ||= TemplateStyle.new
19
- @erb = ERB.new(File.read(File.join(Lablr.GEM_ROOT, "assets", "templates", "_" + @name.to_s + ".erb")))
20
- end
21
-
22
- def getBinding # make binding accessible to pass into erb
23
- return binding()
24
- end
25
-
26
- # You can Render this template by
27
- end
28
-
29
- class TemplateStyle # visual styles for Templates
30
- attr_accessor :options
31
-
32
- def initialize(options = {})
33
- # Set defaults
34
- options[:borders] = true if options[:borders].nil? # border around labels
35
-
36
- @options = options
37
- end
38
- end
39
-
40
12
  def self.generate_labels(options = {})
41
13
  options[:format] ||= :pdf
42
- options[:template] ||= :avery_5163
14
+ options[:template] ||= "avery_5163"
43
15
  options[:content] ||= "No Content Set"
44
- options[:style] ||= TemplateStyle.new
16
+ options[:style] ||= {}
45
17
  options[:to_file] ||= nil # to a specific file
46
-
47
- template = Lablr::Template.new(:name => options[:template].to_s, :content => options[:content], :style => options[:style])
48
- rendered_template = template.erb.result(template.getBinding) # render erb template
49
- #puts data
18
+
19
+ #puts options.inspect
20
+
21
+ lablr_template = Lablr::Template::Base.new(:name => options[:template], :content => options[:content], :style => TemplateStyle.new(options[:style]))
22
+ rendered_template = lablr_template.erb.result(lablr_template.getBinding) # render erb template
23
+
50
24
  if options[:format] == :pdf
51
25
  data = Lablr.render_to_pdf(rendered_template)
52
26
  elsif options[:format] == :html
53
27
  data = rendered_template
54
28
  end
29
+
55
30
  #puts rendered_template
56
31
  if options[:to_file] # write to file
57
- file = File.basename(options[:to_file], "." + options[:format].to_s) + "." + options[:format].to_s
32
+ filename = File.basename(options[:to_file], "." + options[:format].to_s) + "." + options[:format].to_s
33
+ file = File.join(File.dirname(options[:to_file]), filename)
58
34
  File.open(file, "w"){|f| f.write(data)}
59
35
  return "Labels written to #{File.basename(file)}"
60
36
  else # return data
@@ -63,31 +39,26 @@ module Lablr
63
39
  end
64
40
 
65
41
 
66
-
67
- def self.render_to_pdf(html) # create a pdf
68
- #data = render_to_string(options)
69
- pdf = PDF::HTMLDoc.new
70
- pdf.set_option :bodycolor, :white
71
- pdf.set_option :toc, false
72
- pdf.set_option :portrait, true
73
- pdf.set_option :links, false
74
- pdf.set_option :webpage, true
75
- pdf.set_option :top, '0cm'
76
- pdf.set_option :left, '0cm'
77
- pdf.set_option :right, '0cm'
78
- pdf.set_option :bottom, '0cm'
79
- pdf.footer ".1."
80
- pdf << html
81
- pdf.generate
82
- end
83
-
42
+
43
+ def self.render_to_pdf(html) # create a pdf
44
+ #data = render_to_string(options)
45
+ pdf = ::PDF::HTMLDoc.new
46
+ pdf.set_option :bodycolor, :white
47
+ pdf.set_option :toc, false
48
+ pdf.set_option :portrait, true
49
+ pdf.set_option :links, false
50
+ pdf.set_option :webpage, true
51
+ pdf.set_option :top, '0cm'
52
+ pdf.set_option :left, '0cm'
53
+ pdf.set_option :right, '0cm'
54
+ pdf.set_option :bottom, '0cm'
55
+ pdf.footer ".1."
56
+ pdf << html
57
+ pdf.generate
58
+ end
59
+
84
60
  module VERSION #:nodoc:
85
- MAJOR = 0
86
- MINOR = 0
87
- TINY = 1
88
-
89
- STRING = [MAJOR, MINOR, TINY].join(".")
61
+ File.read(File.expand_path("../../VERSION", __FILE__))
90
62
  end
91
63
 
92
-
93
- end
64
+ end
@@ -0,0 +1,33 @@
1
+ module Lablr
2
+ module Template # templates define label layout(with erb) and rendering
3
+ class Base
4
+ attr_accessor :erb, :name, :content, :style
5
+ #@erb_template = nil
6
+ #@name = nil
7
+
8
+ def initialize(options = {})
9
+ #@erb = options[:erb] ||= nil
10
+ options[:name] ||= "avery_5163"
11
+ options[:content] ||= "No Content Set"
12
+ options[:style] ||= TemplateStyle.new
13
+
14
+ @name = options[:name]
15
+ @content = options[:content]
16
+ @style = options[:style]
17
+
18
+ template_file = File.join(Lablr.GEM_ROOT, "assets", "templates", "_" + (@name.to_s) + ".erb")
19
+ template_content = File.exists?(template_file) ? File.read(template_file) : "Template Not Found: #{template_file}"
20
+
21
+ @erb = ::ERB.new(template_content)
22
+ end
23
+
24
+ def getBinding # make binding accessible to pass into erb
25
+ return binding
26
+ end
27
+ end
28
+
29
+
30
+ class Avery5163
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,12 @@
1
+ module Lablr
2
+ class TemplateStyle # visual styles for Templates
3
+ attr_accessor :borders
4
+
5
+ def initialize(options = {})
6
+ # Set defaults
7
+ options[:borders] = true if options[:borders].nil? # border around labels
8
+
9
+ @borders = options[:borders]
10
+ end
11
+ end
12
+ end
@@ -0,0 +1 @@
1
+ This is test content to be placed on a label.
@@ -0,0 +1,30 @@
1
+ require "spec_helper"
2
+
3
+ describe Lablr do
4
+ describe "generate_labels" do
5
+ before(:each) do
6
+ end
7
+
8
+ after(:each) do
9
+ # cleanup
10
+ end
11
+
12
+ describe "generate_labels" do
13
+ describe "to_file" do
14
+ before(:each) do
15
+ end
16
+
17
+ after(:each) do
18
+ #File.delete(@file_path) if File.exists?(file)
19
+ end
20
+
21
+ it "should create a pdf file" do
22
+ @file_path = File.expand_path("../../tmp/label.pdf", __FILE__)
23
+ Lablr.generate_labels(:template => :avery_5163, :format => :pdf, :content => "Test Label!", :to_file => @file_path)
24
+ File.exists?(@file_path).should == true
25
+ File.delete(@file_path) if File.exists?(@file_path)
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,9 @@
1
+ require File.expand_path(File.join("..", "..", "lib", "lablr"), __FILE__)
2
+
3
+ # Requires supporting ruby files with custom matchers and macros, etc,
4
+ # in spec/support/ and its subdirectories.
5
+ Dir["spec/support/**/*.rb"].each {|f| require f}
6
+
7
+ RSpec.configure do |config|
8
+ config.mock_with :rspec
9
+ end
metadata CHANGED
@@ -1,61 +1,113 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lablr
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
5
- prerelease: false
4
+ hash: 31
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
- - 0
9
8
  - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Hulihan Applications
14
+ - Dave Hulihan
14
15
  autorequire:
15
16
  bindir: bin
16
- cert_chain:
17
- - |
18
- -----BEGIN CERTIFICATE-----
19
- MIIDRjCCAi6gAwIBAgIBADANBgkqhkiG9w0BAQUFADBJMQ0wCwYDVQQDDARkYXZl
20
- MSMwIQYKCZImiZPyLGQBGRYTaHVsaWhhbmFwcGxpY2F0aW9uczETMBEGCgmSJomT
21
- 8ixkARkWA2NvbTAeFw0xMDExMjIyMTUxMzNaFw0xMTExMjIyMTUxMzNaMEkxDTAL
22
- BgNVBAMMBGRhdmUxIzAhBgoJkiaJk/IsZAEZFhNodWxpaGFuYXBwbGljYXRpb25z
23
- MRMwEQYKCZImiZPyLGQBGRYDY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
24
- CgKCAQEAxNMbIxxvKYHyRV6qUmCMQQqY8+b4bFJ3k941sTxeDv0hNnfABz73wrHV
25
- q1v0iUaNN7EgniQhH2hA0xmEIcHWWeJJ0eomYJbcWdR1Vmx3qr8OZf4bRhtcINOY
26
- S/wBQ32vwwDnwpqbNT5SejwEzO5GhLThMwtEF8CkTCCNPIxa5JekTY5zLjUjGXHk
27
- Wkxe2sHYoME2vGF2GBsMZcA0DdaNR5YfhMPpZ1BplUMKe4JFiOJvY/yxSPhQZLWk
28
- ai3ZjeZ7V1gUq8cUucV//Fb64q2BqmfRAyb1aTKkZk039ynDQ6Nr8QGzfTmyEgcQ
29
- 1QgrtaBZ+Rgx0D2eOfqP5uVrpQeGNQIDAQABozkwNzAJBgNVHRMEAjAAMAsGA1Ud
30
- DwQEAwIEsDAdBgNVHQ4EFgQU1dpUE4OmQ+15s1dn///kQpx9NlMwDQYJKoZIhvcN
31
- AQEFBQADggEBAEHWCFdnW9OMbuIvJsCEHHG/4GDpxgVrzf+FEhnQ9c929wE6nbLN
32
- 9J5Aktbxw6GBBnNTUJr5NBz6xk31F9esUUxER+pN8UqFuOlGwDVxjvPzflUgD0A4
33
- r7vlAKMk3trBD5nMIJKoW02RK2SElrjdjq8K/FMGcGIl1kXWs+lePPh9WE0iFL7D
34
- R252y/PK8xRlA0qwJAz6BG78k8DJnkUNwgZI4FHrjIL1bnH9aJQBsVSYqrv+1Hgx
35
- WCa1RP53Lsw2rCM/m9V8FUNo8ens2QC1LgDx44DgmnmziCXOVtTGFN8BOgWLeu7A
36
- b2yC21SpXEO7VfhMU2RwQVMVJ9x87DpKoko=
37
- -----END CERTIFICATE-----
17
+ cert_chain: []
38
18
 
39
- date: 2010-11-22 00:00:00 -07:00
19
+ date: 2011-09-09 00:00:00 -06:00
40
20
  default_executable:
41
21
  dependencies:
42
22
  - !ruby/object:Gem::Dependency
43
- name: htmldoc
44
- prerelease: false
23
+ type: :runtime
45
24
  requirement: &id001 !ruby/object:Gem::Requirement
46
25
  none: false
47
26
  requirements:
48
27
  - - ">="
49
28
  - !ruby/object:Gem::Version
50
- hash: 17
29
+ hash: 3
51
30
  segments:
52
31
  - 0
53
- - 2
54
- - 3
55
- version: 0.2.3
56
- type: :runtime
32
+ version: "0"
33
+ name: htmldoc
57
34
  version_requirements: *id001
58
- description: A Ruby Gem for generating printable labels in a variety of formats(pdf, html, etc.) and templates.
35
+ prerelease: false
36
+ - !ruby/object:Gem::Dependency
37
+ type: :development
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ hash: 3
44
+ segments:
45
+ - 0
46
+ version: "0"
47
+ name: shoulda
48
+ version_requirements: *id002
49
+ prerelease: false
50
+ - !ruby/object:Gem::Dependency
51
+ type: :development
52
+ requirement: &id003 !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ~>
56
+ - !ruby/object:Gem::Version
57
+ hash: 23
58
+ segments:
59
+ - 1
60
+ - 0
61
+ - 0
62
+ version: 1.0.0
63
+ name: bundler
64
+ version_requirements: *id003
65
+ prerelease: false
66
+ - !ruby/object:Gem::Dependency
67
+ type: :development
68
+ requirement: &id004 !ruby/object:Gem::Requirement
69
+ none: false
70
+ requirements:
71
+ - - ~>
72
+ - !ruby/object:Gem::Version
73
+ hash: 7
74
+ segments:
75
+ - 1
76
+ - 6
77
+ - 4
78
+ version: 1.6.4
79
+ name: jeweler
80
+ version_requirements: *id004
81
+ prerelease: false
82
+ - !ruby/object:Gem::Dependency
83
+ type: :development
84
+ requirement: &id005 !ruby/object:Gem::Requirement
85
+ none: false
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ hash: 3
90
+ segments:
91
+ - 0
92
+ version: "0"
93
+ name: rcov
94
+ version_requirements: *id005
95
+ prerelease: false
96
+ - !ruby/object:Gem::Dependency
97
+ type: :development
98
+ requirement: &id006 !ruby/object:Gem::Requirement
99
+ none: false
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ hash: 3
104
+ segments:
105
+ - 0
106
+ version: "0"
107
+ name: rspec
108
+ version_requirements: *id006
109
+ prerelease: false
110
+ description: A Ruby Gem for generating printable labels in a variety of formats(pdf, html, etc.) and templates(Avery, etc.).
59
111
  email: dave@hulihanapplications.com
60
112
  executables: []
61
113
 
@@ -63,30 +115,31 @@ extensions: []
63
115
 
64
116
  extra_rdoc_files:
65
117
  - README.textile
66
- - lib/lablr.rb
67
118
  files:
119
+ - .document
120
+ - Gemfile
121
+ - Gemfile.lock
68
122
  - README.textile
69
123
  - Rakefile
124
+ - VERSION
70
125
  - assets/layouts/label.html.erb
71
126
  - assets/templates/_avery_5163.erb
72
127
  - init.rb
73
- - lablr-0.0.1.gemspec
128
+ - lablr.gemspec
74
129
  - lib/lablr.rb
130
+ - lib/lablr/template.rb
131
+ - lib/lablr/template_style.rb
132
+ - spec/fixtures/content.html
133
+ - spec/lib/lablr_spec.rb
134
+ - spec/spec_helper.rb
75
135
  - test.rb
76
- - Manifest
77
- - lablr.gemspec
78
136
  has_rdoc: true
79
- homepage: https://github.com/hulihanapplications/Lablr
80
- licenses: []
81
-
137
+ homepage: http://github.com/hulihanapplications/lablr
138
+ licenses:
139
+ - MIT
82
140
  post_install_message:
83
- rdoc_options:
84
- - --line-numbers
85
- - --inline-source
86
- - --title
87
- - Lablr
88
- - --main
89
- - README.textile
141
+ rdoc_options: []
142
+
90
143
  require_paths:
91
144
  - lib
92
145
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -103,17 +156,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
156
  requirements:
104
157
  - - ">="
105
158
  - !ruby/object:Gem::Version
106
- hash: 11
159
+ hash: 3
107
160
  segments:
108
- - 1
109
- - 2
110
- version: "1.2"
161
+ - 0
162
+ version: "0"
111
163
  requirements: []
112
164
 
113
- rubyforge_project: lablr
114
- rubygems_version: 1.3.7
165
+ rubyforge_project:
166
+ rubygems_version: 1.6.2
115
167
  signing_key:
116
168
  specification_version: 3
117
- summary: A Ruby Gem for generating printable labels in a variety of formats(pdf, html, etc.) and templates.
169
+ summary: Generate printable labels with Ruby!
118
170
  test_files: []
119
171
 
data.tar.gz.sig DELETED
Binary file
data/Manifest DELETED
@@ -1,9 +0,0 @@
1
- README.textile
2
- Rakefile
3
- assets/layouts/label.html.erb
4
- assets/templates/_avery_5163.erb
5
- init.rb
6
- lablr-0.0.1.gemspec
7
- lib/lablr.rb
8
- test.rb
9
- Manifest
data/lablr-0.0.1.gemspec DELETED
@@ -1,35 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
- Gem::Specification.new do |s|
4
- s.name = %q{lablr}
5
- s.version = "0.0.1"
6
-
7
- s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
- s.authors = ["Hulihan Applications"]
9
- s.cert_chain = ["/aqpwr/.ssl/gem/gem-public_cert.pem"]
10
- s.date = %q{2010-11-22}
11
- s.description = %q{A Ruby Gem for generating printable labels in a variety of formats(pdf, html, etc.) and templates.}
12
- s.email = %q{dave@hulihanapplications.com}
13
- s.extra_rdoc_files = ["README.textile", "lib/lablr.rb"]
14
- s.files = ["README.textile", "Rakefile", "assets/layouts/label.html.erb", "assets/templates/_avery_5163.erb", "init.rb", "lablr-0.0.1.gemspec", "lib/lablr.rb", "test.rb", "Manifest", "lablr.gemspec"]
15
- s.homepage = %q{https://github.com/hulihanapplications/Lablr}
16
- s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Lablr", "--main", "README.textile"]
17
- s.require_paths = ["lib"]
18
- s.rubyforge_project = %q{lablr}
19
- s.rubygems_version = %q{1.3.7}
20
- s.signing_key = %q{/aqpwr/.ssl/gem/gem-private_key.pem}
21
- s.summary = %q{A Ruby Gem for generating printable labels in a variety of formats(pdf, html, etc.) and templates.}
22
-
23
- if s.respond_to? :specification_version then
24
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
25
- s.specification_version = 3
26
-
27
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
28
- s.add_runtime_dependency(%q<htmldoc>, [">= 0.2.3"])
29
- else
30
- s.add_dependency(%q<htmldoc>, [">= 0.2.3"])
31
- end
32
- else
33
- s.add_dependency(%q<htmldoc>, [">= 0.2.3"])
34
- end
35
- end
metadata.gz.sig DELETED
Binary file