webtranslateit-payday 1.4.0 → 1.5.0.pre.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 842bfa9c7b5cf094139d3a5076498d4c947c5701ba7e28a0e227bbb459d084c6
4
- data.tar.gz: 1bac34a2bd9e729397f3492e56e9649101efdcf126fe687482980210cdce715c
3
+ metadata.gz: 68cf3d59e575ecea2fe472b0efa5801b5ed326d90868802ca9c9c5d65b704201
4
+ data.tar.gz: 75f2c4ef9903cf9c0c2b6800e0f300f012a56da7103fb4f2dbe00586b11acff4
5
5
  SHA512:
6
- metadata.gz: 0d3ccddb211b49394f2402125264fdbf914558320d4359ca898729eae6b2cebd67c6fd7f7bd41592e54979361443238a773710ccb76d7bbfd58beddf310eb0cb
7
- data.tar.gz: c128c0239f0566faecd6bd63a95b300839824766cf31e8928bf2823c932ada8b0ac4f3e001adcee118be46699beac44dbb1683a7471da11a682314d3efd22528
6
+ metadata.gz: a901971e1943e6e7532431ee009da1b27df8667524f549569cb8757956d50a8c0c71229b36a1fc83964c7850e9c4a21d475f867bf14f0c3bebdae869491b2285
7
+ data.tar.gz: 3747e6ff8f5f78e01594094c8614e82d83f50480b41049d265ee697bf246dae6d437a52a4f229876be0a43bb5de74d5cf91233bc417dd6deb32308a6961fb839
data/.rubocop.yml CHANGED
@@ -155,3 +155,11 @@ Lint/ConstantOverwrittenInRescue: # new in 1.31
155
155
  Enabled: true
156
156
  Lint/NonAtomicFileOperation: # new in 1.31
157
157
  Enabled: true
158
+ Lint/RequireRangeParentheses: # new in 1.32
159
+ Enabled: true
160
+ Style/EmptyHeredoc: # new in 1.32
161
+ Enabled: true
162
+ RSpec/Capybara/SpecificMatcher: # new in 2.12
163
+ Enabled: true
164
+ RSpec/Rails/HaveHttpStatus: # new in 2.12
165
+ Enabled: true
data/.rubocop_todo.yml CHANGED
@@ -13,10 +13,3 @@ Style/Documentation:
13
13
  - 'spec/**/*'
14
14
  - 'test/**/*'
15
15
  - 'lib/generators/payday/setup/setup_generator.rb'
16
-
17
- # Offense count: 19
18
- # Cop supports --auto-correct.
19
- # Configuration parameters: EnforcedStyle.
20
- # SupportedStyles: always, always_true, never
21
- Style/FrozenStringLiteralComment:
22
- Enabled: false
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'http://rubygems.org'
2
4
 
3
5
  gemspec
data/Guardfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  guard :rspec, cmd: 'bundle exec rspec --color --format progress' do
2
4
  watch(%r{^spec/.+_spec\.rb$})
3
5
  watch('spec/spec_helper.rb') { 'spec' }
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bundler'
2
4
 
3
5
  require 'rake'
data/lib/payday/config.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Payday
2
4
  # Configuration for Payday. This is a singleton, so to set the company_name you would call
3
5
  # Payday::Config.default.company_name = "Awesome Corp".
data/lib/payday/i18n.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Load everything in the local folder
2
4
  I18n.enforce_available_locales = false
3
5
  I18n.load_path.concat(Dir[File.join(File.dirname(__FILE__), 'locale', '*.yml')])
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Payday
2
4
  # Basically just an invoice. Stick a ton of line items in it, add some details, and then render it out!
3
5
  class Invoice
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Include {Payday::Invoiceable} in your Invoice class to make it Payday compatible. Payday
2
4
  # expects that a +line_items+ method containing an Enumerable of {Payday::LineItem} compatible
3
5
  # elements exists. Those LineItem objects primarily need to include quantity, price, and description methods.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Payday
2
4
  # Represents a line item in an invoice.
3
5
  #
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Include this module into your line item implementation to make sure that Payday stays happy
2
4
  # with it, or just make sure that your line item implements the amount method.
3
5
  module Payday
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Payday
2
4
  # The PDF renderer. We use this internally in Payday to render pdfs, but really you should just need to call
3
5
  # {{Payday::Invoiceable#render_pdf}} to render pdfs yourself.
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # This is Payday!
2
4
  module Payday
3
5
  # Current Version
4
- VERSION = '1.4.0'.freeze
6
+ VERSION = '1.5.0.pre.1'
5
7
  end
data/lib/payday.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Not much to see here
2
4
  require 'date'
3
5
  require 'time'
data/payday.gemspec CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  $LOAD_PATH.push File.expand_path('lib', __dir__)
2
4
  require 'payday/version'
3
5
 
data/spec/invoice_spec.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  module Payday # rubocop:todo Metrics/ModuleLength
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  module Payday
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  module Payday
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative '../lib/payday'
2
4
 
3
5
  # Requires supporting ruby files with custom matchers and macros, etc, in
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fileutils'
2
4
 
3
5
  # Usage: expect(renderer.render).to match_binary_asset('pdf/test.pdf')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webtranslateit-payday
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0.pre.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alan Johnson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-06-29 00:00:00.000000000 Z
12
+ date: 2022-08-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -273,9 +273,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
273
273
  version: '3.1'
274
274
  required_rubygems_version: !ruby/object:Gem::Requirement
275
275
  requirements:
276
- - - ">="
276
+ - - ">"
277
277
  - !ruby/object:Gem::Version
278
- version: '0'
278
+ version: 1.3.1
279
279
  requirements: []
280
280
  rubygems_version: 3.3.7
281
281
  signing_key: