receipts 1.1.2 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,85 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: receipts
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Oliver
8
8
  autorequire:
9
- bindir: bin
9
+ bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-04 00:00:00.000000000 Z
11
+ date: 2022-11-24 00:00:00.000000000 Z
12
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: '0'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
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
- - !ruby/object:Gem::Dependency
42
- name: rspec
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: pry
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: standard
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
13
  - !ruby/object:Gem::Dependency
84
14
  name: prawn
85
15
  requirement: !ruby/object:Gem::Requirement
@@ -121,31 +51,30 @@ executables: []
121
51
  extensions: []
122
52
  extra_rdoc_files: []
123
53
  files:
124
- - ".github/FUNDING.yml"
125
- - ".github/workflows/ci.yml"
126
- - ".gitignore"
127
- - ".travis.yml"
128
54
  - CHANGELOG.md
129
55
  - Gemfile
130
56
  - LICENSE.txt
131
57
  - README.md
132
58
  - Rakefile
133
- - examples/gorails.png
59
+ - examples/images/logo.png
60
+ - examples/images/options.jpg
134
61
  - examples/invoice.pdf
135
62
  - examples/receipt.pdf
136
63
  - examples/statement.pdf
137
64
  - lib/receipts.rb
65
+ - lib/receipts/base.rb
138
66
  - lib/receipts/invoice.rb
139
67
  - lib/receipts/receipt.rb
140
68
  - lib/receipts/statement.rb
141
69
  - lib/receipts/version.rb
142
70
  - receipts.gemspec
143
- - spec/receipts_spec.rb
144
- - spec/spec_helper.rb
145
- homepage: ''
71
+ homepage: https://github.com/excid3/receipts
146
72
  licenses:
147
73
  - MIT
148
- metadata: {}
74
+ metadata:
75
+ homepage_uri: https://github.com/excid3/receipts
76
+ source_code_uri: https://github.com/excid3/receipts
77
+ changelog_uri: https://github.com/excid3/receipts/blob/master/CHANGELOG.md
149
78
  post_install_message:
150
79
  rdoc_options: []
151
80
  require_paths:
@@ -161,10 +90,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
90
  - !ruby/object:Gem::Version
162
91
  version: '0'
163
92
  requirements: []
164
- rubygems_version: 3.2.22
93
+ rubygems_version: 3.3.7
165
94
  signing_key:
166
95
  specification_version: 4
167
96
  summary: Receipts for your Rails application that works with any payment provider.
168
- test_files:
169
- - spec/receipts_spec.rb
170
- - spec/spec_helper.rb
97
+ test_files: []
data/.github/FUNDING.yml DELETED
@@ -1,12 +0,0 @@
1
- # These are supported funding model platforms
2
-
3
- github: [excid3] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4
- patreon: # Replace with a single Patreon username
5
- open_collective: # Replace with a single Open Collective username
6
- ko_fi: # Replace with a single Ko-fi username
7
- tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8
- community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9
- liberapay: # Replace with a single Liberapay username
10
- issuehunt: # Replace with a single IssueHunt username
11
- otechie: # Replace with a single Otechie username
12
- custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
@@ -1,36 +0,0 @@
1
- name: Tests
2
-
3
- on:
4
- pull_request:
5
- branches:
6
- - '*'
7
- push:
8
- branches:
9
- - master
10
- jobs:
11
- tests:
12
- runs-on: ubuntu-latest
13
- strategy:
14
- matrix:
15
- ruby: ['2.7', '3.0']
16
- env:
17
- BUNDLE_PATH_RELATIVE_TO_CWD: true
18
-
19
- steps:
20
- - uses: actions/checkout@master
21
-
22
- - name: Set up Ruby
23
- uses: ruby/setup-ruby@v1
24
- with:
25
- ruby-version: ${{ matrix.ruby }}
26
- bundler: default
27
- bundler-cache: true
28
-
29
- - name: StandardRb check
30
- run: bundle exec standardrb
31
-
32
- - name: Run tests
33
- env:
34
- RAILS_ENV: test
35
- run: |
36
- bundle exec rspec
data/.gitignore DELETED
@@ -1,15 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
- *.bundle
11
- *.so
12
- *.o
13
- *.a
14
- mkmf.log
15
- .DS_Store
data/.travis.yml DELETED
@@ -1,4 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.3.3
4
- - 2.4.0
@@ -1,18 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe Receipts do
4
- it "lets you create a new receipt" do
5
- expect(Receipts::Receipt.new(
6
- id: 1,
7
- product: "GoRails",
8
- company: {
9
- name: "One Month, Inc.",
10
- address: "37 Great Jones\nFloor 2\nNew York City, NY 10012",
11
- email: "teachers@onemonth.com"
12
- },
13
- line_items: [
14
- ["Product", "GoRails"]
15
- ]
16
- ).class.name).to eq("Receipts::Receipt")
17
- end
18
- end
data/spec/spec_helper.rb DELETED
@@ -1,9 +0,0 @@
1
- begin
2
- require "pry"
3
- rescue LoadError
4
- end
5
-
6
- require "receipts"
7
-
8
- RSpec.configure do |config|
9
- end