billme 0.2.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +1 -1
- data/billme.gemspec +1 -1
- data/example.rb +1 -0
- data/lib/billme/version.rb +1 -1
- data/lib/billme/views/bill.html.erb +15 -4
- data/output.html +13 -4
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ceeaf18ea6f59bfc4dd1fac59586ecc9dfd0c010
|
4
|
+
data.tar.gz: 95ffd8393f03577005b56a5436e2c2d58bfe8dae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4891bdb556ba9a74861675a6e7d6417c935a4387bf5d569774b8a5ba057c8dad9550c1e24205c38d9f4d5c28afc5105e38d519bd16422e679bc8104d05a4d19d
|
7
|
+
data.tar.gz: a3bc7ac08cc4850d3be6d8007c66db7a5676e347580c10c4e0d00a19315377fb61a60002a49a4a6d777ceaedbac538e8f5f90057ab1d9c0676683662508d17e2
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Billme
|
2
2
|
|
3
3
|
|
4
|
-
This gem generates invoice based on data provided. It is in very early stage and will support other features soon.
|
4
|
+
This gem generates invoice based on data provided. The output will be an erb generated HTML file and return html string as result. It is in very early stage and will support other features soon.
|
5
5
|
|
6
6
|
## Installation
|
7
7
|
|
data/billme.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["hrvoje.grdic1@gmail.com"]
|
11
11
|
|
12
12
|
spec.summary = "Generates invoices"
|
13
|
-
spec.description = "
|
13
|
+
spec.description = "This gem generates invoice based on data provided. The output will be an erb generated HTML file and return html string as result. It is in very early stage and will support other features soon."
|
14
14
|
spec.homepage = "https://github.com/caphg/billme"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
data/example.rb
CHANGED
data/lib/billme/version.rb
CHANGED
@@ -19,14 +19,25 @@
|
|
19
19
|
<div id="company" class="clearfix">
|
20
20
|
<div><%= @data[:company][:company_name] %></div>
|
21
21
|
<div><%= @data[:company][:company_address] %><br /> <%= @data[:company][:company_city] %>, <%= @data[:company][:company_country] %></div>
|
22
|
-
|
23
|
-
|
22
|
+
<% if @data[:company][:company_phone] %>
|
23
|
+
<div><%= @data[:company][:company_phone] %></div>
|
24
|
+
<% end %>
|
25
|
+
<% if @data[:company][:vat] %>
|
26
|
+
<div>VAT ID: <%= @data[:company][:vat] %></div>
|
27
|
+
<% end %>
|
28
|
+
<% if @data[:company][:company_email] %>
|
29
|
+
<div><a href="mailto:<%= @data[:company][:company_email] %>"><%= @data[:company][:company_email] %></a></div>
|
30
|
+
<% end %>
|
24
31
|
</div>
|
25
32
|
<div id="project">
|
26
|
-
|
33
|
+
<% if @data[:client][:project_name] %>
|
34
|
+
<div><span>PROJECT</span> <%= @data[:client][:project_name] %></div>
|
35
|
+
<% end %>
|
27
36
|
<div><span>CLIENT</span> <%= @data[:client][:name] %></div>
|
28
37
|
<div><span>ADDRESS</span> <%= @data[:client][:address] %></div>
|
29
|
-
|
38
|
+
<% if @data[:client][:email] %>
|
39
|
+
<div><span>EMAIL</span> <a href="mailto:<%= @data[:client][:email] %>"><%= @data[:client][:email] %></a></div>
|
40
|
+
<% end %>
|
30
41
|
<div><span>DATE</span> <%= @data[:client][:date] %></div>
|
31
42
|
<div><span>DUE DATE</span> <%= @data[:client][:due_date] %></div>
|
32
43
|
</div>
|
data/output.html
CHANGED
@@ -150,14 +150,23 @@ footer {
|
|
150
150
|
<div id="company" class="clearfix">
|
151
151
|
<div>Enterprise LLC</div>
|
152
152
|
<div>The Neutral Zone 123<br /> Beta Quadrant, Universe</div>
|
153
|
-
|
154
|
-
|
153
|
+
|
154
|
+
<div>+ 123 123 123 1</div>
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
<div><a href="mailto:uss@ncc1701.com">uss@ncc1701.com</a></div>
|
159
|
+
|
155
160
|
</div>
|
156
161
|
<div id="project">
|
157
|
-
|
162
|
+
|
163
|
+
<div><span>PROJECT</span> Battle engagement</div>
|
164
|
+
|
158
165
|
<div><span>CLIENT</span> Federation</div>
|
159
166
|
<div><span>ADDRESS</span> Earth</div>
|
160
|
-
|
167
|
+
|
168
|
+
<div><span>EMAIL</span> <a href="mailto:starfleet@earth.com">starfleet@earth.com</a></div>
|
169
|
+
|
161
170
|
<div><span>DATE</span> 2015-05-05</div>
|
162
171
|
<div><span>DUE DATE</span> 2015-06-05</div>
|
163
172
|
</div>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: billme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hrvoje G
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,7 +38,9 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
|
-
description:
|
41
|
+
description: This gem generates invoice based on data provided. The output will be
|
42
|
+
an erb generated HTML file and return html string as result. It is in very early
|
43
|
+
stage and will support other features soon.
|
42
44
|
email:
|
43
45
|
- hrvoje.grdic1@gmail.com
|
44
46
|
executables: []
|