billme 0.1.0
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 +7 -0
 - data/.gitignore +9 -0
 - data/.travis.yml +3 -0
 - data/CODE_OF_CONDUCT.md +13 -0
 - data/Gemfile +4 -0
 - data/LICENSE.txt +21 -0
 - data/README.md +38 -0
 - data/Rakefile +1 -0
 - data/billme.gemspec +32 -0
 - data/bin/console +14 -0
 - data/bin/setup +7 -0
 - data/example.rb +49 -0
 - data/lib/billme/factory.rb +48 -0
 - data/lib/billme/section.rb +14 -0
 - data/lib/billme/service_details.rb +14 -0
 - data/lib/billme/services_section.rb +24 -0
 - data/lib/billme/support/helpers.rb +5 -0
 - data/lib/billme/version.rb +3 -0
 - data/lib/billme/views/bill.html.erb +80 -0
 - data/lib/billme/views/style.css +136 -0
 - data/lib/billme.rb +14 -0
 - data/output.html +219 -0
 - metadata +94 -0
 
    
        checksums.yaml
    ADDED
    
    | 
         @@ -0,0 +1,7 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            ---
         
     | 
| 
      
 2 
     | 
    
         
            +
            SHA1:
         
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 4dfffc58684b7c61521297af88cb6eeb03026633
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 06c1fce18fea35e9dc1babb6e1e94586513d8ca3
         
     | 
| 
      
 5 
     | 
    
         
            +
            SHA512:
         
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 4e9ff18dc9dfb4b25f7bacfd0028c4bbcfa6b2577691315362d1983c0a7238eb9ce6e37158d0f14b2e19adef73eb780ab8bd2b0ec40be98501b35c7a1f46bdee
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 13db71707680c0041296bea1531a03ff98189e0ed218ddb07956e62d742d79ebd61d69ebc579294c878bd1177a7f0121842a65d18d7b653fb1e9f989f0e23fc7
         
     | 
    
        data/.gitignore
    ADDED
    
    
    
        data/.travis.yml
    ADDED
    
    
    
        data/CODE_OF_CONDUCT.md
    ADDED
    
    | 
         @@ -0,0 +1,13 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # Contributor Code of Conduct
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
            Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
            This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
         
     | 
    
        data/Gemfile
    ADDED
    
    
    
        data/LICENSE.txt
    ADDED
    
    | 
         @@ -0,0 +1,21 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            The MIT License (MIT)
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            Copyright (c) 2015 Hrvoje G
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            Permission is hereby granted, free of charge, to any person obtaining a copy
         
     | 
| 
      
 6 
     | 
    
         
            +
            of this software and associated documentation files (the "Software"), to deal
         
     | 
| 
      
 7 
     | 
    
         
            +
            in the Software without restriction, including without limitation the rights
         
     | 
| 
      
 8 
     | 
    
         
            +
            to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
         
     | 
| 
      
 9 
     | 
    
         
            +
            copies of the Software, and to permit persons to whom the Software is
         
     | 
| 
      
 10 
     | 
    
         
            +
            furnished to do so, subject to the following conditions:
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
            The above copyright notice and this permission notice shall be included in
         
     | 
| 
      
 13 
     | 
    
         
            +
            all copies or substantial portions of the Software.
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
            THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
         
     | 
| 
      
 16 
     | 
    
         
            +
            IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
         
     | 
| 
      
 17 
     | 
    
         
            +
            FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
         
     | 
| 
      
 18 
     | 
    
         
            +
            AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
         
     | 
| 
      
 19 
     | 
    
         
            +
            LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
         
     | 
| 
      
 20 
     | 
    
         
            +
            OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
         
     | 
| 
      
 21 
     | 
    
         
            +
            THE SOFTWARE.
         
     | 
    
        data/README.md
    ADDED
    
    | 
         @@ -0,0 +1,38 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # Billme
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            This gem generates invoice based on data provided. It is in very early stage and will support other features soon.
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            ## Installation
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
            Add this line to your application's Gemfile:
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
            ```ruby
         
     | 
| 
      
 11 
     | 
    
         
            +
            gem 'billme'
         
     | 
| 
      
 12 
     | 
    
         
            +
            ```
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
            And then execute:
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
      
 16 
     | 
    
         
            +
                $ bundle
         
     | 
| 
      
 17 
     | 
    
         
            +
             
     | 
| 
      
 18 
     | 
    
         
            +
            Or install it yourself as:
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
| 
      
 20 
     | 
    
         
            +
                $ gem install billme
         
     | 
| 
      
 21 
     | 
    
         
            +
             
     | 
| 
      
 22 
     | 
    
         
            +
            ## Usage
         
     | 
| 
      
 23 
     | 
    
         
            +
             
     | 
| 
      
 24 
     | 
    
         
            +
            See example.rb
         
     | 
| 
      
 25 
     | 
    
         
            +
             
     | 
| 
      
 26 
     | 
    
         
            +
            ## Development
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
            After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
         
     | 
| 
      
 29 
     | 
    
         
            +
             
     | 
| 
      
 30 
     | 
    
         
            +
            To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
         
     | 
| 
      
 31 
     | 
    
         
            +
             
     | 
| 
      
 32 
     | 
    
         
            +
            ## Contributing
         
     | 
| 
      
 33 
     | 
    
         
            +
             
     | 
| 
      
 34 
     | 
    
         
            +
            1. Fork it ( https://github.com/[my-github-username]/billme/fork )
         
     | 
| 
      
 35 
     | 
    
         
            +
            2. Create your feature branch (`git checkout -b my-new-feature`)
         
     | 
| 
      
 36 
     | 
    
         
            +
            3. Commit your changes (`git commit -am 'Add some feature'`)
         
     | 
| 
      
 37 
     | 
    
         
            +
            4. Push to the branch (`git push origin my-new-feature`)
         
     | 
| 
      
 38 
     | 
    
         
            +
            5. Create a new Pull Request
         
     | 
    
        data/Rakefile
    ADDED
    
    | 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require "bundler/gem_tasks"
         
     | 
    
        data/billme.gemspec
    ADDED
    
    | 
         @@ -0,0 +1,32 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # coding: utf-8
         
     | 
| 
      
 2 
     | 
    
         
            +
            lib = File.expand_path('../lib', __FILE__)
         
     | 
| 
      
 3 
     | 
    
         
            +
            $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
         
     | 
| 
      
 4 
     | 
    
         
            +
            require 'billme/version'
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            Gem::Specification.new do |spec|
         
     | 
| 
      
 7 
     | 
    
         
            +
              spec.name          = "billme"
         
     | 
| 
      
 8 
     | 
    
         
            +
              spec.version       = Billme::VERSION
         
     | 
| 
      
 9 
     | 
    
         
            +
              spec.authors       = ["Hrvoje G"]
         
     | 
| 
      
 10 
     | 
    
         
            +
              spec.email         = ["hrvoje.grdic1@gmail.com"]
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
              spec.summary       = "Generates invoices"
         
     | 
| 
      
 13 
     | 
    
         
            +
              spec.description   = "Gem will generate an invoice from the data provided"
         
     | 
| 
      
 14 
     | 
    
         
            +
              spec.homepage      = ""
         
     | 
| 
      
 15 
     | 
    
         
            +
              spec.license       = "MIT"
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
              # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
         
     | 
| 
      
 18 
     | 
    
         
            +
              # delete this section to allow pushing this gem to any host.
         
     | 
| 
      
 19 
     | 
    
         
            +
              if spec.respond_to?(:metadata)
         
     | 
| 
      
 20 
     | 
    
         
            +
                spec.metadata['allowed_push_host'] = "https://rubygems.org"
         
     | 
| 
      
 21 
     | 
    
         
            +
              else
         
     | 
| 
      
 22 
     | 
    
         
            +
                raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
         
     | 
| 
      
 23 
     | 
    
         
            +
              end
         
     | 
| 
      
 24 
     | 
    
         
            +
             
     | 
| 
      
 25 
     | 
    
         
            +
              spec.files         = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
         
     | 
| 
      
 26 
     | 
    
         
            +
              spec.bindir        = "exe"
         
     | 
| 
      
 27 
     | 
    
         
            +
              spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
         
     | 
| 
      
 28 
     | 
    
         
            +
              spec.require_paths = ["lib"]
         
     | 
| 
      
 29 
     | 
    
         
            +
             
     | 
| 
      
 30 
     | 
    
         
            +
              spec.add_development_dependency "bundler", "~> 1.9"
         
     | 
| 
      
 31 
     | 
    
         
            +
              spec.add_development_dependency "rake", "~> 10.0"
         
     | 
| 
      
 32 
     | 
    
         
            +
            end
         
     | 
    
        data/bin/console
    ADDED
    
    | 
         @@ -0,0 +1,14 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            #!/usr/bin/env ruby
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            require "bundler/setup"
         
     | 
| 
      
 4 
     | 
    
         
            +
            require "billme"
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            # You can add fixtures and/or initialization code here to make experimenting
         
     | 
| 
      
 7 
     | 
    
         
            +
            # with your gem easier. You can also use a different console, if you like.
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            # (If you use this, don't forget to add pry to your Gemfile!)
         
     | 
| 
      
 10 
     | 
    
         
            +
            # require "pry"
         
     | 
| 
      
 11 
     | 
    
         
            +
            # Pry.start
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
            require "irb"
         
     | 
| 
      
 14 
     | 
    
         
            +
            IRB.start
         
     | 
    
        data/bin/setup
    ADDED
    
    
    
        data/example.rb
    ADDED
    
    | 
         @@ -0,0 +1,49 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require 'billme'
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            Billme.bill do
         
     | 
| 
      
 4 
     | 
    
         
            +
              number "2016-1-1"
         
     | 
| 
      
 5 
     | 
    
         
            +
              filename "Bill printout"
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
              company do
         
     | 
| 
      
 8 
     | 
    
         
            +
                logo "logo.png"
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
                company_name "Enterprise LLC"
         
     | 
| 
      
 11 
     | 
    
         
            +
                company_address "The Neutral Zone 123"
         
     | 
| 
      
 12 
     | 
    
         
            +
                company_city "Beta Quadrant"
         
     | 
| 
      
 13 
     | 
    
         
            +
                company_country "Universe"
         
     | 
| 
      
 14 
     | 
    
         
            +
                company_phone "+ 123 123 123 1"
         
     | 
| 
      
 15 
     | 
    
         
            +
                company_email "uss@ncc1701.com"
         
     | 
| 
      
 16 
     | 
    
         
            +
              end
         
     | 
| 
      
 17 
     | 
    
         
            +
             
     | 
| 
      
 18 
     | 
    
         
            +
              client do
         
     | 
| 
      
 19 
     | 
    
         
            +
                project_name "Battle engagement"
         
     | 
| 
      
 20 
     | 
    
         
            +
                name "Federation"
         
     | 
| 
      
 21 
     | 
    
         
            +
                date "2015-05-05"
         
     | 
| 
      
 22 
     | 
    
         
            +
                due_date "2015-06-05"
         
     | 
| 
      
 23 
     | 
    
         
            +
                address "Earth"
         
     | 
| 
      
 24 
     | 
    
         
            +
                email "starfleet@earth.com"
         
     | 
| 
      
 25 
     | 
    
         
            +
              end
         
     | 
| 
      
 26 
     | 
    
         
            +
             
     | 
| 
      
 27 
     | 
    
         
            +
              services do
         
     | 
| 
      
 28 
     | 
    
         
            +
                tax "0.25"
         
     | 
| 
      
 29 
     | 
    
         
            +
                service do
         
     | 
| 
      
 30 
     | 
    
         
            +
                  name "Engage Romulans"
         
     | 
| 
      
 31 
     | 
    
         
            +
                  description "Warmup for battle"
         
     | 
| 
      
 32 
     | 
    
         
            +
                  unit "1000"
         
     | 
| 
      
 33 
     | 
    
         
            +
                  currency "$"
         
     | 
| 
      
 34 
     | 
    
         
            +
                  quantity "1"
         
     | 
| 
      
 35 
     | 
    
         
            +
                end
         
     | 
| 
      
 36 
     | 
    
         
            +
                service do
         
     | 
| 
      
 37 
     | 
    
         
            +
                  name "Rescue mission"
         
     | 
| 
      
 38 
     | 
    
         
            +
                  description "Rescue captive away teams"
         
     | 
| 
      
 39 
     | 
    
         
            +
                  unit "2000"
         
     | 
| 
      
 40 
     | 
    
         
            +
                  currency "$"
         
     | 
| 
      
 41 
     | 
    
         
            +
                  quantity "2"
         
     | 
| 
      
 42 
     | 
    
         
            +
                end
         
     | 
| 
      
 43 
     | 
    
         
            +
              end
         
     | 
| 
      
 44 
     | 
    
         
            +
             
     | 
| 
      
 45 
     | 
    
         
            +
              other do
         
     | 
| 
      
 46 
     | 
    
         
            +
                notice "A finance charge of 1.5% will be made on unpaid balances after 30 days."
         
     | 
| 
      
 47 
     | 
    
         
            +
                footer "Invoice was created on a computer and is valid without the signature and seal."
         
     | 
| 
      
 48 
     | 
    
         
            +
              end
         
     | 
| 
      
 49 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,48 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require "erb"
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            module Billme
         
     | 
| 
      
 4 
     | 
    
         
            +
              class Factory
         
     | 
| 
      
 5 
     | 
    
         
            +
                def initialize
         
     | 
| 
      
 6 
     | 
    
         
            +
                  @template_file_path = File.expand_path('../views/bill.html.erb', __FILE__)
         
     | 
| 
      
 7 
     | 
    
         
            +
                  @css_path = File.expand_path('../views/style.css', __FILE__)
         
     | 
| 
      
 8 
     | 
    
         
            +
                  @data = {}
         
     | 
| 
      
 9 
     | 
    
         
            +
                  @css = nil
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
                  read_css
         
     | 
| 
      
 12 
     | 
    
         
            +
                end
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
                def method_missing(name, *args, &block)
         
     | 
| 
      
 15 
     | 
    
         
            +
                  return @data[name.to_sym] = args[0] unless block_given?
         
     | 
| 
      
 16 
     | 
    
         
            +
                  #super "Not supported!"
         
     | 
| 
      
 17 
     | 
    
         
            +
                  section = Section.new
         
     | 
| 
      
 18 
     | 
    
         
            +
                  section.instance_eval &block
         
     | 
| 
      
 19 
     | 
    
         
            +
                  @data[name] = section.data
         
     | 
| 
      
 20 
     | 
    
         
            +
                end
         
     | 
| 
      
 21 
     | 
    
         
            +
             
     | 
| 
      
 22 
     | 
    
         
            +
                def services(&block)
         
     | 
| 
      
 23 
     | 
    
         
            +
                  section = ServicesSection.new
         
     | 
| 
      
 24 
     | 
    
         
            +
                  section.instance_eval &block
         
     | 
| 
      
 25 
     | 
    
         
            +
                  @data[:services] = section.data
         
     | 
| 
      
 26 
     | 
    
         
            +
                  @data[:services][:total] = section.total
         
     | 
| 
      
 27 
     | 
    
         
            +
                  @data[:services][:subtotal] = section.subtotal
         
     | 
| 
      
 28 
     | 
    
         
            +
                  @data[:services][:tax] = section.total - section.subtotal
         
     | 
| 
      
 29 
     | 
    
         
            +
                end
         
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
      
 31 
     | 
    
         
            +
                def render
         
     | 
| 
      
 32 
     | 
    
         
            +
                  erb = ERB.new(File.read(@template_file_path))
         
     | 
| 
      
 33 
     | 
    
         
            +
                  erb.filename = filename
         
     | 
| 
      
 34 
     | 
    
         
            +
                  result = erb.result(binding)
         
     | 
| 
      
 35 
     | 
    
         
            +
                  File.open('output.html', 'w') do |file|
         
     | 
| 
      
 36 
     | 
    
         
            +
                    file.write(result)
         
     | 
| 
      
 37 
     | 
    
         
            +
                  end
         
     | 
| 
      
 38 
     | 
    
         
            +
                  result
         
     | 
| 
      
 39 
     | 
    
         
            +
                end
         
     | 
| 
      
 40 
     | 
    
         
            +
             
     | 
| 
      
 41 
     | 
    
         
            +
                private
         
     | 
| 
      
 42 
     | 
    
         
            +
                  def read_css
         
     | 
| 
      
 43 
     | 
    
         
            +
                    File.open(@css_path, 'r') do |file|
         
     | 
| 
      
 44 
     | 
    
         
            +
                      @css = file.read
         
     | 
| 
      
 45 
     | 
    
         
            +
                    end
         
     | 
| 
      
 46 
     | 
    
         
            +
                  end
         
     | 
| 
      
 47 
     | 
    
         
            +
              end
         
     | 
| 
      
 48 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,14 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            module Billme
         
     | 
| 
      
 2 
     | 
    
         
            +
            	class ServiceDetails < ServicesSection
         
     | 
| 
      
 3 
     | 
    
         
            +
            		attr_reader :data
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            		def initialize
         
     | 
| 
      
 6 
     | 
    
         
            +
            			@data = {}
         
     | 
| 
      
 7 
     | 
    
         
            +
            		end
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            		def method_missing(name, *args, &block)
         
     | 
| 
      
 10 
     | 
    
         
            +
            			return @data[name] = args[0] unless block_given?
         
     | 
| 
      
 11 
     | 
    
         
            +
            			raise "Not supported!"
         
     | 
| 
      
 12 
     | 
    
         
            +
            		end
         
     | 
| 
      
 13 
     | 
    
         
            +
            	end
         
     | 
| 
      
 14 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,24 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            module Billme
         
     | 
| 
      
 2 
     | 
    
         
            +
            	class ServicesSection < Section
         
     | 
| 
      
 3 
     | 
    
         
            +
            		attr_reader :data
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            		def initialize
         
     | 
| 
      
 6 
     | 
    
         
            +
            			@data = {services: []}
         
     | 
| 
      
 7 
     | 
    
         
            +
            		end
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            		def method_missing(name, *args, &block)
         
     | 
| 
      
 10 
     | 
    
         
            +
            			return @data[name] = args[0] unless block_given?
         
     | 
| 
      
 11 
     | 
    
         
            +
            			service_details = ServiceDetails.new
         
     | 
| 
      
 12 
     | 
    
         
            +
            			service_details.instance_eval &block
         
     | 
| 
      
 13 
     | 
    
         
            +
            			@data[:services] << service_details.data
         
     | 
| 
      
 14 
     | 
    
         
            +
            		end
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
      
 16 
     | 
    
         
            +
            		def total
         
     | 
| 
      
 17 
     | 
    
         
            +
            			@data[:services].reduce(0) {|sum, obj| sum += obj[:unit].to_i * obj[:quantity].to_i }
         
     | 
| 
      
 18 
     | 
    
         
            +
            		end
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
| 
      
 20 
     | 
    
         
            +
            		def subtotal
         
     | 
| 
      
 21 
     | 
    
         
            +
            			total * (1 - @data[:tax].to_f)
         
     | 
| 
      
 22 
     | 
    
         
            +
            		end
         
     | 
| 
      
 23 
     | 
    
         
            +
            	end
         
     | 
| 
      
 24 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,80 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
             
     | 
| 
      
 2 
     | 
    
         
            +
            <!DOCTYPE html>
         
     | 
| 
      
 3 
     | 
    
         
            +
            <html lang="en">
         
     | 
| 
      
 4 
     | 
    
         
            +
            <head>
         
     | 
| 
      
 5 
     | 
    
         
            +
              <meta charset="utf-8">
         
     | 
| 
      
 6 
     | 
    
         
            +
              <title><%= @data[:number] %></title>
         
     | 
| 
      
 7 
     | 
    
         
            +
              <style>
         
     | 
| 
      
 8 
     | 
    
         
            +
                <%= @css %>
         
     | 
| 
      
 9 
     | 
    
         
            +
              </style>
         
     | 
| 
      
 10 
     | 
    
         
            +
            </head>
         
     | 
| 
      
 11 
     | 
    
         
            +
            <body>
         
     | 
| 
      
 12 
     | 
    
         
            +
            <header class="clearfix">
         
     | 
| 
      
 13 
     | 
    
         
            +
              <% if @data[:logo] %>
         
     | 
| 
      
 14 
     | 
    
         
            +
              <div id="logo">
         
     | 
| 
      
 15 
     | 
    
         
            +
                <img src="<%= @data[:logo] %>" alt="Logo">
         
     | 
| 
      
 16 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 17 
     | 
    
         
            +
              <% end %>
         
     | 
| 
      
 18 
     | 
    
         
            +
              <h1>INVOICE <%= @data[:number] %></h1>
         
     | 
| 
      
 19 
     | 
    
         
            +
              <div id="company" class="clearfix">
         
     | 
| 
      
 20 
     | 
    
         
            +
                <div><%= @data[:company][:company_name] %></div>
         
     | 
| 
      
 21 
     | 
    
         
            +
                <div><%= @data[:company][:company_address] %><br /> <%= @data[:company][:company_city] %>, <%= @data[:company][:company_country] %></div>
         
     | 
| 
      
 22 
     | 
    
         
            +
                <div><%= @data[:company][:company_phone] %></div>
         
     | 
| 
      
 23 
     | 
    
         
            +
                <div><a href="mailto:<%= @data[:company][:company_email] %>"><%= @data[:company][:company_email] %></a></div>
         
     | 
| 
      
 24 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 25 
     | 
    
         
            +
              <div id="project">
         
     | 
| 
      
 26 
     | 
    
         
            +
                <div><span>PROJECT</span> <%= @data[:client][:project_name] %></div>
         
     | 
| 
      
 27 
     | 
    
         
            +
                <div><span>CLIENT</span> <%= @data[:client][:name] %></div>
         
     | 
| 
      
 28 
     | 
    
         
            +
                <div><span>ADDRESS</span> <%= @data[:client][:address] %></div>
         
     | 
| 
      
 29 
     | 
    
         
            +
                <div><span>EMAIL</span> <a href="mailto:<%= @data[:client][:email] %>"><%= @data[:client][:email] %></a></div>
         
     | 
| 
      
 30 
     | 
    
         
            +
                <div><span>DATE</span> <%= @data[:client][:date] %></div>
         
     | 
| 
      
 31 
     | 
    
         
            +
                <div><span>DUE DATE</span> <%= @data[:client][:due_date] %></div>
         
     | 
| 
      
 32 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 33 
     | 
    
         
            +
            </header>
         
     | 
| 
      
 34 
     | 
    
         
            +
            <main>
         
     | 
| 
      
 35 
     | 
    
         
            +
              <table>
         
     | 
| 
      
 36 
     | 
    
         
            +
                <thead>
         
     | 
| 
      
 37 
     | 
    
         
            +
                <tr>
         
     | 
| 
      
 38 
     | 
    
         
            +
                  <th class="service">SERVICE</th>
         
     | 
| 
      
 39 
     | 
    
         
            +
                  <th class="desc">DESCRIPTION</th>
         
     | 
| 
      
 40 
     | 
    
         
            +
                  <th>PRICE</th>
         
     | 
| 
      
 41 
     | 
    
         
            +
                  <th>QTY</th>
         
     | 
| 
      
 42 
     | 
    
         
            +
                  <th>TOTAL</th>
         
     | 
| 
      
 43 
     | 
    
         
            +
                </tr>
         
     | 
| 
      
 44 
     | 
    
         
            +
                </thead>
         
     | 
| 
      
 45 
     | 
    
         
            +
                <tbody>
         
     | 
| 
      
 46 
     | 
    
         
            +
                <% @data[:services][:services].each do |service| %>
         
     | 
| 
      
 47 
     | 
    
         
            +
                <tr>
         
     | 
| 
      
 48 
     | 
    
         
            +
                  <td class="service"><%= service[:name] %></td>
         
     | 
| 
      
 49 
     | 
    
         
            +
                  <td class="desc"><%= service[:description] %></td>
         
     | 
| 
      
 50 
     | 
    
         
            +
                  <td class="unit"><%= service[:unit] %><%= service[:currency] %></td>
         
     | 
| 
      
 51 
     | 
    
         
            +
                  <td class="qty"><%= service[:quantity] %></td>
         
     | 
| 
      
 52 
     | 
    
         
            +
                  <td class="total"><%= service[:quantity].to_i * service[:unit].to_i %><%= service[:currency] %></td>
         
     | 
| 
      
 53 
     | 
    
         
            +
                </tr>
         
     | 
| 
      
 54 
     | 
    
         
            +
                <% end %>
         
     | 
| 
      
 55 
     | 
    
         
            +
                <tr>
         
     | 
| 
      
 56 
     | 
    
         
            +
                  <td colspan="4">SUBTOTAL</td>
         
     | 
| 
      
 57 
     | 
    
         
            +
                  <td class="total"><%= @data[:services][:subtotal] %></td>
         
     | 
| 
      
 58 
     | 
    
         
            +
                </tr>
         
     | 
| 
      
 59 
     | 
    
         
            +
                <tr>
         
     | 
| 
      
 60 
     | 
    
         
            +
                  <td colspan="4">TAX 25%</td>
         
     | 
| 
      
 61 
     | 
    
         
            +
                  <td class="total"><td class="total"><%= @data[:services][:tax] %></td>
         
     | 
| 
      
 62 
     | 
    
         
            +
                  </td>
         
     | 
| 
      
 63 
     | 
    
         
            +
                </tr>
         
     | 
| 
      
 64 
     | 
    
         
            +
                <tr>
         
     | 
| 
      
 65 
     | 
    
         
            +
                  <td colspan="4" class="grand total">TOTAL</td>
         
     | 
| 
      
 66 
     | 
    
         
            +
                  <td class="grand total"><td class="total"><%= @data[:services][:total] %></td>
         
     | 
| 
      
 67 
     | 
    
         
            +
                  </td>
         
     | 
| 
      
 68 
     | 
    
         
            +
                </tr>
         
     | 
| 
      
 69 
     | 
    
         
            +
                </tbody>
         
     | 
| 
      
 70 
     | 
    
         
            +
              </table>
         
     | 
| 
      
 71 
     | 
    
         
            +
              <div id="notices">
         
     | 
| 
      
 72 
     | 
    
         
            +
                <div>NOTICE:</div>
         
     | 
| 
      
 73 
     | 
    
         
            +
                <div class="notice"><%= @data[:other][:notice] %></div>
         
     | 
| 
      
 74 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 75 
     | 
    
         
            +
            </main>
         
     | 
| 
      
 76 
     | 
    
         
            +
            <footer>
         
     | 
| 
      
 77 
     | 
    
         
            +
                <%= @data[:other][:footer] %>
         
     | 
| 
      
 78 
     | 
    
         
            +
            </footer>
         
     | 
| 
      
 79 
     | 
    
         
            +
            </body>
         
     | 
| 
      
 80 
     | 
    
         
            +
            </html>
         
     | 
| 
         @@ -0,0 +1,136 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            .clearfix:after {
         
     | 
| 
      
 2 
     | 
    
         
            +
                content: "";
         
     | 
| 
      
 3 
     | 
    
         
            +
                display: table;
         
     | 
| 
      
 4 
     | 
    
         
            +
                clear: both;
         
     | 
| 
      
 5 
     | 
    
         
            +
            }
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            a {
         
     | 
| 
      
 8 
     | 
    
         
            +
                color: #5D6975;
         
     | 
| 
      
 9 
     | 
    
         
            +
                text-decoration: underline;
         
     | 
| 
      
 10 
     | 
    
         
            +
            }
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
            body {
         
     | 
| 
      
 13 
     | 
    
         
            +
                position: relative;
         
     | 
| 
      
 14 
     | 
    
         
            +
                width: 21cm;
         
     | 
| 
      
 15 
     | 
    
         
            +
                height: 29.7cm;
         
     | 
| 
      
 16 
     | 
    
         
            +
                margin: 0 auto;
         
     | 
| 
      
 17 
     | 
    
         
            +
                color: #001028;
         
     | 
| 
      
 18 
     | 
    
         
            +
                background: #FFFFFF;
         
     | 
| 
      
 19 
     | 
    
         
            +
                font-family: Arial, sans-serif;
         
     | 
| 
      
 20 
     | 
    
         
            +
                font-size: 12px;
         
     | 
| 
      
 21 
     | 
    
         
            +
                font-family: Arial;
         
     | 
| 
      
 22 
     | 
    
         
            +
            }
         
     | 
| 
      
 23 
     | 
    
         
            +
             
     | 
| 
      
 24 
     | 
    
         
            +
            header {
         
     | 
| 
      
 25 
     | 
    
         
            +
                padding: 10px 0;
         
     | 
| 
      
 26 
     | 
    
         
            +
                margin-bottom: 30px;
         
     | 
| 
      
 27 
     | 
    
         
            +
            }
         
     | 
| 
      
 28 
     | 
    
         
            +
             
     | 
| 
      
 29 
     | 
    
         
            +
            #logo {
         
     | 
| 
      
 30 
     | 
    
         
            +
                text-align: center;
         
     | 
| 
      
 31 
     | 
    
         
            +
                margin-bottom: 10px;
         
     | 
| 
      
 32 
     | 
    
         
            +
            }
         
     | 
| 
      
 33 
     | 
    
         
            +
             
     | 
| 
      
 34 
     | 
    
         
            +
            #logo img {
         
     | 
| 
      
 35 
     | 
    
         
            +
                width: 90px;
         
     | 
| 
      
 36 
     | 
    
         
            +
            }
         
     | 
| 
      
 37 
     | 
    
         
            +
             
     | 
| 
      
 38 
     | 
    
         
            +
            h1 {
         
     | 
| 
      
 39 
     | 
    
         
            +
                border-top: 1px solid  #5D6975;
         
     | 
| 
      
 40 
     | 
    
         
            +
                border-bottom: 1px solid  #5D6975;
         
     | 
| 
      
 41 
     | 
    
         
            +
                color: #5D6975;
         
     | 
| 
      
 42 
     | 
    
         
            +
                font-size: 2.4em;
         
     | 
| 
      
 43 
     | 
    
         
            +
                line-height: 1.4em;
         
     | 
| 
      
 44 
     | 
    
         
            +
                font-weight: normal;
         
     | 
| 
      
 45 
     | 
    
         
            +
                text-align: center;
         
     | 
| 
      
 46 
     | 
    
         
            +
                margin: 0 0 20px 0;
         
     | 
| 
      
 47 
     | 
    
         
            +
                background: url(dimension.png);
         
     | 
| 
      
 48 
     | 
    
         
            +
            }
         
     | 
| 
      
 49 
     | 
    
         
            +
             
     | 
| 
      
 50 
     | 
    
         
            +
            #project {
         
     | 
| 
      
 51 
     | 
    
         
            +
                float: left;
         
     | 
| 
      
 52 
     | 
    
         
            +
            }
         
     | 
| 
      
 53 
     | 
    
         
            +
             
     | 
| 
      
 54 
     | 
    
         
            +
            #project span {
         
     | 
| 
      
 55 
     | 
    
         
            +
                color: #5D6975;
         
     | 
| 
      
 56 
     | 
    
         
            +
                text-align: right;
         
     | 
| 
      
 57 
     | 
    
         
            +
                width: 52px;
         
     | 
| 
      
 58 
     | 
    
         
            +
                margin-right: 10px;
         
     | 
| 
      
 59 
     | 
    
         
            +
                display: inline-block;
         
     | 
| 
      
 60 
     | 
    
         
            +
                font-size: 0.8em;
         
     | 
| 
      
 61 
     | 
    
         
            +
            }
         
     | 
| 
      
 62 
     | 
    
         
            +
             
     | 
| 
      
 63 
     | 
    
         
            +
            #company {
         
     | 
| 
      
 64 
     | 
    
         
            +
                float: right;
         
     | 
| 
      
 65 
     | 
    
         
            +
                text-align: right;
         
     | 
| 
      
 66 
     | 
    
         
            +
            }
         
     | 
| 
      
 67 
     | 
    
         
            +
             
     | 
| 
      
 68 
     | 
    
         
            +
            #project div,
         
     | 
| 
      
 69 
     | 
    
         
            +
            #company div {
         
     | 
| 
      
 70 
     | 
    
         
            +
                white-space: nowrap;
         
     | 
| 
      
 71 
     | 
    
         
            +
            }
         
     | 
| 
      
 72 
     | 
    
         
            +
             
     | 
| 
      
 73 
     | 
    
         
            +
            table {
         
     | 
| 
      
 74 
     | 
    
         
            +
                width: 100%;
         
     | 
| 
      
 75 
     | 
    
         
            +
                border-collapse: collapse;
         
     | 
| 
      
 76 
     | 
    
         
            +
                border-spacing: 0;
         
     | 
| 
      
 77 
     | 
    
         
            +
                margin-bottom: 20px;
         
     | 
| 
      
 78 
     | 
    
         
            +
            }
         
     | 
| 
      
 79 
     | 
    
         
            +
             
     | 
| 
      
 80 
     | 
    
         
            +
            table tr:nth-child(2n-1) td {
         
     | 
| 
      
 81 
     | 
    
         
            +
                background: #F5F5F5;
         
     | 
| 
      
 82 
     | 
    
         
            +
            }
         
     | 
| 
      
 83 
     | 
    
         
            +
             
     | 
| 
      
 84 
     | 
    
         
            +
            table th,
         
     | 
| 
      
 85 
     | 
    
         
            +
            table td {
         
     | 
| 
      
 86 
     | 
    
         
            +
                text-align: center;
         
     | 
| 
      
 87 
     | 
    
         
            +
            }
         
     | 
| 
      
 88 
     | 
    
         
            +
             
     | 
| 
      
 89 
     | 
    
         
            +
            table th {
         
     | 
| 
      
 90 
     | 
    
         
            +
                padding: 5px 20px;
         
     | 
| 
      
 91 
     | 
    
         
            +
                color: #5D6975;
         
     | 
| 
      
 92 
     | 
    
         
            +
                border-bottom: 1px solid #C1CED9;
         
     | 
| 
      
 93 
     | 
    
         
            +
                white-space: nowrap;
         
     | 
| 
      
 94 
     | 
    
         
            +
                font-weight: normal;
         
     | 
| 
      
 95 
     | 
    
         
            +
            }
         
     | 
| 
      
 96 
     | 
    
         
            +
             
     | 
| 
      
 97 
     | 
    
         
            +
            table .service,
         
     | 
| 
      
 98 
     | 
    
         
            +
            table .desc {
         
     | 
| 
      
 99 
     | 
    
         
            +
                text-align: left;
         
     | 
| 
      
 100 
     | 
    
         
            +
            }
         
     | 
| 
      
 101 
     | 
    
         
            +
             
     | 
| 
      
 102 
     | 
    
         
            +
            table td {
         
     | 
| 
      
 103 
     | 
    
         
            +
                padding: 20px;
         
     | 
| 
      
 104 
     | 
    
         
            +
                text-align: right;
         
     | 
| 
      
 105 
     | 
    
         
            +
            }
         
     | 
| 
      
 106 
     | 
    
         
            +
             
     | 
| 
      
 107 
     | 
    
         
            +
            table td.service,
         
     | 
| 
      
 108 
     | 
    
         
            +
            table td.desc {
         
     | 
| 
      
 109 
     | 
    
         
            +
                vertical-align: top;
         
     | 
| 
      
 110 
     | 
    
         
            +
            }
         
     | 
| 
      
 111 
     | 
    
         
            +
             
     | 
| 
      
 112 
     | 
    
         
            +
            table td.unit,
         
     | 
| 
      
 113 
     | 
    
         
            +
            table td.qty,
         
     | 
| 
      
 114 
     | 
    
         
            +
            table td.total {
         
     | 
| 
      
 115 
     | 
    
         
            +
                font-size: 1.2em;
         
     | 
| 
      
 116 
     | 
    
         
            +
            }
         
     | 
| 
      
 117 
     | 
    
         
            +
             
     | 
| 
      
 118 
     | 
    
         
            +
            table td.grand {
         
     | 
| 
      
 119 
     | 
    
         
            +
                border-top: 1px solid #5D6975;;
         
     | 
| 
      
 120 
     | 
    
         
            +
            }
         
     | 
| 
      
 121 
     | 
    
         
            +
             
     | 
| 
      
 122 
     | 
    
         
            +
            #notices .notice {
         
     | 
| 
      
 123 
     | 
    
         
            +
                color: #5D6975;
         
     | 
| 
      
 124 
     | 
    
         
            +
                font-size: 1.2em;
         
     | 
| 
      
 125 
     | 
    
         
            +
            }
         
     | 
| 
      
 126 
     | 
    
         
            +
             
     | 
| 
      
 127 
     | 
    
         
            +
            footer {
         
     | 
| 
      
 128 
     | 
    
         
            +
                color: #5D6975;
         
     | 
| 
      
 129 
     | 
    
         
            +
                width: 100%;
         
     | 
| 
      
 130 
     | 
    
         
            +
                height: 30px;
         
     | 
| 
      
 131 
     | 
    
         
            +
                position: absolute;
         
     | 
| 
      
 132 
     | 
    
         
            +
                bottom: 0;
         
     | 
| 
      
 133 
     | 
    
         
            +
                border-top: 1px solid #C1CED9;
         
     | 
| 
      
 134 
     | 
    
         
            +
                padding: 8px 0;
         
     | 
| 
      
 135 
     | 
    
         
            +
                text-align: center;
         
     | 
| 
      
 136 
     | 
    
         
            +
            }
         
     | 
    
        data/lib/billme.rb
    ADDED
    
    | 
         @@ -0,0 +1,14 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require_relative "billme/support/helpers"
         
     | 
| 
      
 2 
     | 
    
         
            +
            require "billme/version"
         
     | 
| 
      
 3 
     | 
    
         
            +
            require_relative "billme/factory"
         
     | 
| 
      
 4 
     | 
    
         
            +
            require_relative "billme/section"
         
     | 
| 
      
 5 
     | 
    
         
            +
            require_relative "billme/services_section"
         
     | 
| 
      
 6 
     | 
    
         
            +
            require_relative "billme/service_details"
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
            module Billme
         
     | 
| 
      
 9 
     | 
    
         
            +
              def self.bill(&block)
         
     | 
| 
      
 10 
     | 
    
         
            +
                factory = Factory.new
         
     | 
| 
      
 11 
     | 
    
         
            +
                factory.instance_eval &block
         
     | 
| 
      
 12 
     | 
    
         
            +
                factory.render
         
     | 
| 
      
 13 
     | 
    
         
            +
              end
         
     | 
| 
      
 14 
     | 
    
         
            +
            end
         
     | 
    
        data/output.html
    ADDED
    
    | 
         @@ -0,0 +1,219 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
             
     | 
| 
      
 2 
     | 
    
         
            +
            <!DOCTYPE html>
         
     | 
| 
      
 3 
     | 
    
         
            +
            <html lang="en">
         
     | 
| 
      
 4 
     | 
    
         
            +
            <head>
         
     | 
| 
      
 5 
     | 
    
         
            +
              <meta charset="utf-8">
         
     | 
| 
      
 6 
     | 
    
         
            +
              <title>2016-1-1</title>
         
     | 
| 
      
 7 
     | 
    
         
            +
              <style>
         
     | 
| 
      
 8 
     | 
    
         
            +
                .clearfix:after {
         
     | 
| 
      
 9 
     | 
    
         
            +
                content: "";
         
     | 
| 
      
 10 
     | 
    
         
            +
                display: table;
         
     | 
| 
      
 11 
     | 
    
         
            +
                clear: both;
         
     | 
| 
      
 12 
     | 
    
         
            +
            }
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
            a {
         
     | 
| 
      
 15 
     | 
    
         
            +
                color: #5D6975;
         
     | 
| 
      
 16 
     | 
    
         
            +
                text-decoration: underline;
         
     | 
| 
      
 17 
     | 
    
         
            +
            }
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
      
 19 
     | 
    
         
            +
            body {
         
     | 
| 
      
 20 
     | 
    
         
            +
                position: relative;
         
     | 
| 
      
 21 
     | 
    
         
            +
                width: 21cm;
         
     | 
| 
      
 22 
     | 
    
         
            +
                height: 29.7cm;
         
     | 
| 
      
 23 
     | 
    
         
            +
                margin: 0 auto;
         
     | 
| 
      
 24 
     | 
    
         
            +
                color: #001028;
         
     | 
| 
      
 25 
     | 
    
         
            +
                background: #FFFFFF;
         
     | 
| 
      
 26 
     | 
    
         
            +
                font-family: Arial, sans-serif;
         
     | 
| 
      
 27 
     | 
    
         
            +
                font-size: 12px;
         
     | 
| 
      
 28 
     | 
    
         
            +
                font-family: Arial;
         
     | 
| 
      
 29 
     | 
    
         
            +
            }
         
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
      
 31 
     | 
    
         
            +
            header {
         
     | 
| 
      
 32 
     | 
    
         
            +
                padding: 10px 0;
         
     | 
| 
      
 33 
     | 
    
         
            +
                margin-bottom: 30px;
         
     | 
| 
      
 34 
     | 
    
         
            +
            }
         
     | 
| 
      
 35 
     | 
    
         
            +
             
     | 
| 
      
 36 
     | 
    
         
            +
            #logo {
         
     | 
| 
      
 37 
     | 
    
         
            +
                text-align: center;
         
     | 
| 
      
 38 
     | 
    
         
            +
                margin-bottom: 10px;
         
     | 
| 
      
 39 
     | 
    
         
            +
            }
         
     | 
| 
      
 40 
     | 
    
         
            +
             
     | 
| 
      
 41 
     | 
    
         
            +
            #logo img {
         
     | 
| 
      
 42 
     | 
    
         
            +
                width: 90px;
         
     | 
| 
      
 43 
     | 
    
         
            +
            }
         
     | 
| 
      
 44 
     | 
    
         
            +
             
     | 
| 
      
 45 
     | 
    
         
            +
            h1 {
         
     | 
| 
      
 46 
     | 
    
         
            +
                border-top: 1px solid  #5D6975;
         
     | 
| 
      
 47 
     | 
    
         
            +
                border-bottom: 1px solid  #5D6975;
         
     | 
| 
      
 48 
     | 
    
         
            +
                color: #5D6975;
         
     | 
| 
      
 49 
     | 
    
         
            +
                font-size: 2.4em;
         
     | 
| 
      
 50 
     | 
    
         
            +
                line-height: 1.4em;
         
     | 
| 
      
 51 
     | 
    
         
            +
                font-weight: normal;
         
     | 
| 
      
 52 
     | 
    
         
            +
                text-align: center;
         
     | 
| 
      
 53 
     | 
    
         
            +
                margin: 0 0 20px 0;
         
     | 
| 
      
 54 
     | 
    
         
            +
                background: url(dimension.png);
         
     | 
| 
      
 55 
     | 
    
         
            +
            }
         
     | 
| 
      
 56 
     | 
    
         
            +
             
     | 
| 
      
 57 
     | 
    
         
            +
            #project {
         
     | 
| 
      
 58 
     | 
    
         
            +
                float: left;
         
     | 
| 
      
 59 
     | 
    
         
            +
            }
         
     | 
| 
      
 60 
     | 
    
         
            +
             
     | 
| 
      
 61 
     | 
    
         
            +
            #project span {
         
     | 
| 
      
 62 
     | 
    
         
            +
                color: #5D6975;
         
     | 
| 
      
 63 
     | 
    
         
            +
                text-align: right;
         
     | 
| 
      
 64 
     | 
    
         
            +
                width: 52px;
         
     | 
| 
      
 65 
     | 
    
         
            +
                margin-right: 10px;
         
     | 
| 
      
 66 
     | 
    
         
            +
                display: inline-block;
         
     | 
| 
      
 67 
     | 
    
         
            +
                font-size: 0.8em;
         
     | 
| 
      
 68 
     | 
    
         
            +
            }
         
     | 
| 
      
 69 
     | 
    
         
            +
             
     | 
| 
      
 70 
     | 
    
         
            +
            #company {
         
     | 
| 
      
 71 
     | 
    
         
            +
                float: right;
         
     | 
| 
      
 72 
     | 
    
         
            +
                text-align: right;
         
     | 
| 
      
 73 
     | 
    
         
            +
            }
         
     | 
| 
      
 74 
     | 
    
         
            +
             
     | 
| 
      
 75 
     | 
    
         
            +
            #project div,
         
     | 
| 
      
 76 
     | 
    
         
            +
            #company div {
         
     | 
| 
      
 77 
     | 
    
         
            +
                white-space: nowrap;
         
     | 
| 
      
 78 
     | 
    
         
            +
            }
         
     | 
| 
      
 79 
     | 
    
         
            +
             
     | 
| 
      
 80 
     | 
    
         
            +
            table {
         
     | 
| 
      
 81 
     | 
    
         
            +
                width: 100%;
         
     | 
| 
      
 82 
     | 
    
         
            +
                border-collapse: collapse;
         
     | 
| 
      
 83 
     | 
    
         
            +
                border-spacing: 0;
         
     | 
| 
      
 84 
     | 
    
         
            +
                margin-bottom: 20px;
         
     | 
| 
      
 85 
     | 
    
         
            +
            }
         
     | 
| 
      
 86 
     | 
    
         
            +
             
     | 
| 
      
 87 
     | 
    
         
            +
            table tr:nth-child(2n-1) td {
         
     | 
| 
      
 88 
     | 
    
         
            +
                background: #F5F5F5;
         
     | 
| 
      
 89 
     | 
    
         
            +
            }
         
     | 
| 
      
 90 
     | 
    
         
            +
             
     | 
| 
      
 91 
     | 
    
         
            +
            table th,
         
     | 
| 
      
 92 
     | 
    
         
            +
            table td {
         
     | 
| 
      
 93 
     | 
    
         
            +
                text-align: center;
         
     | 
| 
      
 94 
     | 
    
         
            +
            }
         
     | 
| 
      
 95 
     | 
    
         
            +
             
     | 
| 
      
 96 
     | 
    
         
            +
            table th {
         
     | 
| 
      
 97 
     | 
    
         
            +
                padding: 5px 20px;
         
     | 
| 
      
 98 
     | 
    
         
            +
                color: #5D6975;
         
     | 
| 
      
 99 
     | 
    
         
            +
                border-bottom: 1px solid #C1CED9;
         
     | 
| 
      
 100 
     | 
    
         
            +
                white-space: nowrap;
         
     | 
| 
      
 101 
     | 
    
         
            +
                font-weight: normal;
         
     | 
| 
      
 102 
     | 
    
         
            +
            }
         
     | 
| 
      
 103 
     | 
    
         
            +
             
     | 
| 
      
 104 
     | 
    
         
            +
            table .service,
         
     | 
| 
      
 105 
     | 
    
         
            +
            table .desc {
         
     | 
| 
      
 106 
     | 
    
         
            +
                text-align: left;
         
     | 
| 
      
 107 
     | 
    
         
            +
            }
         
     | 
| 
      
 108 
     | 
    
         
            +
             
     | 
| 
      
 109 
     | 
    
         
            +
            table td {
         
     | 
| 
      
 110 
     | 
    
         
            +
                padding: 20px;
         
     | 
| 
      
 111 
     | 
    
         
            +
                text-align: right;
         
     | 
| 
      
 112 
     | 
    
         
            +
            }
         
     | 
| 
      
 113 
     | 
    
         
            +
             
     | 
| 
      
 114 
     | 
    
         
            +
            table td.service,
         
     | 
| 
      
 115 
     | 
    
         
            +
            table td.desc {
         
     | 
| 
      
 116 
     | 
    
         
            +
                vertical-align: top;
         
     | 
| 
      
 117 
     | 
    
         
            +
            }
         
     | 
| 
      
 118 
     | 
    
         
            +
             
     | 
| 
      
 119 
     | 
    
         
            +
            table td.unit,
         
     | 
| 
      
 120 
     | 
    
         
            +
            table td.qty,
         
     | 
| 
      
 121 
     | 
    
         
            +
            table td.total {
         
     | 
| 
      
 122 
     | 
    
         
            +
                font-size: 1.2em;
         
     | 
| 
      
 123 
     | 
    
         
            +
            }
         
     | 
| 
      
 124 
     | 
    
         
            +
             
     | 
| 
      
 125 
     | 
    
         
            +
            table td.grand {
         
     | 
| 
      
 126 
     | 
    
         
            +
                border-top: 1px solid #5D6975;;
         
     | 
| 
      
 127 
     | 
    
         
            +
            }
         
     | 
| 
      
 128 
     | 
    
         
            +
             
     | 
| 
      
 129 
     | 
    
         
            +
            #notices .notice {
         
     | 
| 
      
 130 
     | 
    
         
            +
                color: #5D6975;
         
     | 
| 
      
 131 
     | 
    
         
            +
                font-size: 1.2em;
         
     | 
| 
      
 132 
     | 
    
         
            +
            }
         
     | 
| 
      
 133 
     | 
    
         
            +
             
     | 
| 
      
 134 
     | 
    
         
            +
            footer {
         
     | 
| 
      
 135 
     | 
    
         
            +
                color: #5D6975;
         
     | 
| 
      
 136 
     | 
    
         
            +
                width: 100%;
         
     | 
| 
      
 137 
     | 
    
         
            +
                height: 30px;
         
     | 
| 
      
 138 
     | 
    
         
            +
                position: absolute;
         
     | 
| 
      
 139 
     | 
    
         
            +
                bottom: 0;
         
     | 
| 
      
 140 
     | 
    
         
            +
                border-top: 1px solid #C1CED9;
         
     | 
| 
      
 141 
     | 
    
         
            +
                padding: 8px 0;
         
     | 
| 
      
 142 
     | 
    
         
            +
                text-align: center;
         
     | 
| 
      
 143 
     | 
    
         
            +
            }
         
     | 
| 
      
 144 
     | 
    
         
            +
              </style>
         
     | 
| 
      
 145 
     | 
    
         
            +
            </head>
         
     | 
| 
      
 146 
     | 
    
         
            +
            <body>
         
     | 
| 
      
 147 
     | 
    
         
            +
            <header class="clearfix">
         
     | 
| 
      
 148 
     | 
    
         
            +
              
         
     | 
| 
      
 149 
     | 
    
         
            +
              <h1>INVOICE 2016-1-1</h1>
         
     | 
| 
      
 150 
     | 
    
         
            +
              <div id="company" class="clearfix">
         
     | 
| 
      
 151 
     | 
    
         
            +
                <div>Enterprise LLC</div>
         
     | 
| 
      
 152 
     | 
    
         
            +
                <div>The Neutral Zone 123<br /> Beta Quadrant, Universe</div>
         
     | 
| 
      
 153 
     | 
    
         
            +
                <div>+ 123 123 123 1</div>
         
     | 
| 
      
 154 
     | 
    
         
            +
                <div><a href="mailto:uss@ncc1701.com">uss@ncc1701.com</a></div>
         
     | 
| 
      
 155 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 156 
     | 
    
         
            +
              <div id="project">
         
     | 
| 
      
 157 
     | 
    
         
            +
                <div><span>PROJECT</span> Battle engagement</div>
         
     | 
| 
      
 158 
     | 
    
         
            +
                <div><span>CLIENT</span> Federation</div>
         
     | 
| 
      
 159 
     | 
    
         
            +
                <div><span>ADDRESS</span> Earth</div>
         
     | 
| 
      
 160 
     | 
    
         
            +
                <div><span>EMAIL</span> <a href="mailto:starfleet@earth.com">starfleet@earth.com</a></div>
         
     | 
| 
      
 161 
     | 
    
         
            +
                <div><span>DATE</span> 2015-05-05</div>
         
     | 
| 
      
 162 
     | 
    
         
            +
                <div><span>DUE DATE</span> 2015-06-05</div>
         
     | 
| 
      
 163 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 164 
     | 
    
         
            +
            </header>
         
     | 
| 
      
 165 
     | 
    
         
            +
            <main>
         
     | 
| 
      
 166 
     | 
    
         
            +
              <table>
         
     | 
| 
      
 167 
     | 
    
         
            +
                <thead>
         
     | 
| 
      
 168 
     | 
    
         
            +
                <tr>
         
     | 
| 
      
 169 
     | 
    
         
            +
                  <th class="service">SERVICE</th>
         
     | 
| 
      
 170 
     | 
    
         
            +
                  <th class="desc">DESCRIPTION</th>
         
     | 
| 
      
 171 
     | 
    
         
            +
                  <th>PRICE</th>
         
     | 
| 
      
 172 
     | 
    
         
            +
                  <th>QTY</th>
         
     | 
| 
      
 173 
     | 
    
         
            +
                  <th>TOTAL</th>
         
     | 
| 
      
 174 
     | 
    
         
            +
                </tr>
         
     | 
| 
      
 175 
     | 
    
         
            +
                </thead>
         
     | 
| 
      
 176 
     | 
    
         
            +
                <tbody>
         
     | 
| 
      
 177 
     | 
    
         
            +
                
         
     | 
| 
      
 178 
     | 
    
         
            +
                <tr>
         
     | 
| 
      
 179 
     | 
    
         
            +
                  <td class="service">Engage Romulans</td>
         
     | 
| 
      
 180 
     | 
    
         
            +
                  <td class="desc">Warmup for battle</td>
         
     | 
| 
      
 181 
     | 
    
         
            +
                  <td class="unit">1000$</td>
         
     | 
| 
      
 182 
     | 
    
         
            +
                  <td class="qty">1</td>
         
     | 
| 
      
 183 
     | 
    
         
            +
                  <td class="total">1000$</td>
         
     | 
| 
      
 184 
     | 
    
         
            +
                </tr>
         
     | 
| 
      
 185 
     | 
    
         
            +
                
         
     | 
| 
      
 186 
     | 
    
         
            +
                <tr>
         
     | 
| 
      
 187 
     | 
    
         
            +
                  <td class="service">Rescue mission</td>
         
     | 
| 
      
 188 
     | 
    
         
            +
                  <td class="desc">Rescue captive away teams</td>
         
     | 
| 
      
 189 
     | 
    
         
            +
                  <td class="unit">2000$</td>
         
     | 
| 
      
 190 
     | 
    
         
            +
                  <td class="qty">2</td>
         
     | 
| 
      
 191 
     | 
    
         
            +
                  <td class="total">4000$</td>
         
     | 
| 
      
 192 
     | 
    
         
            +
                </tr>
         
     | 
| 
      
 193 
     | 
    
         
            +
                
         
     | 
| 
      
 194 
     | 
    
         
            +
                <tr>
         
     | 
| 
      
 195 
     | 
    
         
            +
                  <td colspan="4">SUBTOTAL</td>
         
     | 
| 
      
 196 
     | 
    
         
            +
                  <td class="total">3750.0</td>
         
     | 
| 
      
 197 
     | 
    
         
            +
                </tr>
         
     | 
| 
      
 198 
     | 
    
         
            +
                <tr>
         
     | 
| 
      
 199 
     | 
    
         
            +
                  <td colspan="4">TAX 25%</td>
         
     | 
| 
      
 200 
     | 
    
         
            +
                  <td class="total"><td class="total">1250.0</td>
         
     | 
| 
      
 201 
     | 
    
         
            +
                  </td>
         
     | 
| 
      
 202 
     | 
    
         
            +
                </tr>
         
     | 
| 
      
 203 
     | 
    
         
            +
                <tr>
         
     | 
| 
      
 204 
     | 
    
         
            +
                  <td colspan="4" class="grand total">TOTAL</td>
         
     | 
| 
      
 205 
     | 
    
         
            +
                  <td class="grand total"><td class="total">5000</td>
         
     | 
| 
      
 206 
     | 
    
         
            +
                  </td>
         
     | 
| 
      
 207 
     | 
    
         
            +
                </tr>
         
     | 
| 
      
 208 
     | 
    
         
            +
                </tbody>
         
     | 
| 
      
 209 
     | 
    
         
            +
              </table>
         
     | 
| 
      
 210 
     | 
    
         
            +
              <div id="notices">
         
     | 
| 
      
 211 
     | 
    
         
            +
                <div>NOTICE:</div>
         
     | 
| 
      
 212 
     | 
    
         
            +
                <div class="notice">A finance charge of 1.5% will be made on unpaid balances after 30 days.</div>
         
     | 
| 
      
 213 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 214 
     | 
    
         
            +
            </main>
         
     | 
| 
      
 215 
     | 
    
         
            +
            <footer>
         
     | 
| 
      
 216 
     | 
    
         
            +
                Invoice was created on a computer and is valid without the signature and seal.
         
     | 
| 
      
 217 
     | 
    
         
            +
            </footer>
         
     | 
| 
      
 218 
     | 
    
         
            +
            </body>
         
     | 
| 
      
 219 
     | 
    
         
            +
            </html>
         
     | 
    
        metadata
    ADDED
    
    | 
         @@ -0,0 +1,94 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            --- !ruby/object:Gem::Specification
         
     | 
| 
      
 2 
     | 
    
         
            +
            name: billme
         
     | 
| 
      
 3 
     | 
    
         
            +
            version: !ruby/object:Gem::Version
         
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.1.0
         
     | 
| 
      
 5 
     | 
    
         
            +
            platform: ruby
         
     | 
| 
      
 6 
     | 
    
         
            +
            authors:
         
     | 
| 
      
 7 
     | 
    
         
            +
            - Hrvoje G
         
     | 
| 
      
 8 
     | 
    
         
            +
            autorequire: 
         
     | 
| 
      
 9 
     | 
    
         
            +
            bindir: exe
         
     | 
| 
      
 10 
     | 
    
         
            +
            cert_chain: []
         
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2016-02-19 00:00:00.000000000 Z
         
     | 
| 
      
 12 
     | 
    
         
            +
            dependencies:
         
     | 
| 
      
 13 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 14 
     | 
    
         
            +
              name: bundler
         
     | 
| 
      
 15 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 16 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 17 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
      
 18 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 19 
     | 
    
         
            +
                    version: '1.9'
         
     | 
| 
      
 20 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 21 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 22 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 23 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 24 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
      
 25 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 26 
     | 
    
         
            +
                    version: '1.9'
         
     | 
| 
      
 27 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 28 
     | 
    
         
            +
              name: rake
         
     | 
| 
      
 29 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 30 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 31 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
      
 32 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 33 
     | 
    
         
            +
                    version: '10.0'
         
     | 
| 
      
 34 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 35 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 36 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 37 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 38 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
      
 39 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 40 
     | 
    
         
            +
                    version: '10.0'
         
     | 
| 
      
 41 
     | 
    
         
            +
            description: Gem will generate an invoice from the data provided
         
     | 
| 
      
 42 
     | 
    
         
            +
            email:
         
     | 
| 
      
 43 
     | 
    
         
            +
            - hrvoje.grdic1@gmail.com
         
     | 
| 
      
 44 
     | 
    
         
            +
            executables: []
         
     | 
| 
      
 45 
     | 
    
         
            +
            extensions: []
         
     | 
| 
      
 46 
     | 
    
         
            +
            extra_rdoc_files: []
         
     | 
| 
      
 47 
     | 
    
         
            +
            files:
         
     | 
| 
      
 48 
     | 
    
         
            +
            - ".gitignore"
         
     | 
| 
      
 49 
     | 
    
         
            +
            - ".travis.yml"
         
     | 
| 
      
 50 
     | 
    
         
            +
            - CODE_OF_CONDUCT.md
         
     | 
| 
      
 51 
     | 
    
         
            +
            - Gemfile
         
     | 
| 
      
 52 
     | 
    
         
            +
            - LICENSE.txt
         
     | 
| 
      
 53 
     | 
    
         
            +
            - README.md
         
     | 
| 
      
 54 
     | 
    
         
            +
            - Rakefile
         
     | 
| 
      
 55 
     | 
    
         
            +
            - billme.gemspec
         
     | 
| 
      
 56 
     | 
    
         
            +
            - bin/console
         
     | 
| 
      
 57 
     | 
    
         
            +
            - bin/setup
         
     | 
| 
      
 58 
     | 
    
         
            +
            - example.rb
         
     | 
| 
      
 59 
     | 
    
         
            +
            - lib/billme.rb
         
     | 
| 
      
 60 
     | 
    
         
            +
            - lib/billme/factory.rb
         
     | 
| 
      
 61 
     | 
    
         
            +
            - lib/billme/section.rb
         
     | 
| 
      
 62 
     | 
    
         
            +
            - lib/billme/service_details.rb
         
     | 
| 
      
 63 
     | 
    
         
            +
            - lib/billme/services_section.rb
         
     | 
| 
      
 64 
     | 
    
         
            +
            - lib/billme/support/helpers.rb
         
     | 
| 
      
 65 
     | 
    
         
            +
            - lib/billme/version.rb
         
     | 
| 
      
 66 
     | 
    
         
            +
            - lib/billme/views/bill.html.erb
         
     | 
| 
      
 67 
     | 
    
         
            +
            - lib/billme/views/style.css
         
     | 
| 
      
 68 
     | 
    
         
            +
            - output.html
         
     | 
| 
      
 69 
     | 
    
         
            +
            homepage: ''
         
     | 
| 
      
 70 
     | 
    
         
            +
            licenses:
         
     | 
| 
      
 71 
     | 
    
         
            +
            - MIT
         
     | 
| 
      
 72 
     | 
    
         
            +
            metadata:
         
     | 
| 
      
 73 
     | 
    
         
            +
              allowed_push_host: https://rubygems.org
         
     | 
| 
      
 74 
     | 
    
         
            +
            post_install_message: 
         
     | 
| 
      
 75 
     | 
    
         
            +
            rdoc_options: []
         
     | 
| 
      
 76 
     | 
    
         
            +
            require_paths:
         
     | 
| 
      
 77 
     | 
    
         
            +
            - lib
         
     | 
| 
      
 78 
     | 
    
         
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 79 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 80 
     | 
    
         
            +
              - - ">="
         
     | 
| 
      
 81 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 82 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
      
 83 
     | 
    
         
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 84 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 85 
     | 
    
         
            +
              - - ">="
         
     | 
| 
      
 86 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 87 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
      
 88 
     | 
    
         
            +
            requirements: []
         
     | 
| 
      
 89 
     | 
    
         
            +
            rubyforge_project: 
         
     | 
| 
      
 90 
     | 
    
         
            +
            rubygems_version: 2.4.5
         
     | 
| 
      
 91 
     | 
    
         
            +
            signing_key: 
         
     | 
| 
      
 92 
     | 
    
         
            +
            specification_version: 4
         
     | 
| 
      
 93 
     | 
    
         
            +
            summary: Generates invoices
         
     | 
| 
      
 94 
     | 
    
         
            +
            test_files: []
         
     |