administrate-field-money 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 65226fa0b53977411bc24a81f456545b838b5154871066e99cfbefcc5bee1894
4
- data.tar.gz: 9b3e5822ece801282309aa0740012c9ee393f764da5a4f2347dc2214545e5cf5
3
+ metadata.gz: 0dfbfaedae85b3064759bece7b036558cc305e984acb083ecf3f5fc55bf06369
4
+ data.tar.gz: 46778f1d043405e6f81cd413d43804f0f017b251964501b5f284454f882f6595
5
5
  SHA512:
6
- metadata.gz: 303977f1667695cfd9ed0d5171f956acc69f864e701a648b6e34bb31e42b730a488da19a6f58c72903206057156a9308df5f22b8f77713a86eab5ce272c91b3e
7
- data.tar.gz: 5502fe1ea371aa96a102f7ec8f3dee65c58cfdebdab4ede0ceec37e8fb44796da6f06c39528e7ee36de43a0ea902e71735a529116509f3cfaf704a6278d99dc1
6
+ metadata.gz: aa7b0042f711d57da7646424d0972d3cfb58327f36769736f1cc9d46e6d3e93144624e9c3b2315eb732ad348921798003d21547d0375d6c49051cc29bbb4ba66
7
+ data.tar.gz: 12dbf342aebd2dce0650a9e3b075f6b15b7bd710bb40e52ff22f194224f190389a42cc1f00c95fc83559bc91caca043e3c989f9ec5135c9d0880613853ab6b4c
@@ -0,0 +1,17 @@
1
+ name: build
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ tests:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@v2
10
+
11
+ - name: Set up Ruby
12
+ uses: ruby/setup-ruby@v1
13
+ with:
14
+ bundler-cache: true
15
+
16
+ - name: Run tests
17
+ run: bundle exec rake
data/.overcommit.yml ADDED
@@ -0,0 +1,7 @@
1
+ PreCommit:
2
+ RuboCop:
3
+ enabled: true
4
+ on_warn: fail
5
+
6
+ TrailingWhitespace:
7
+ enabled: true
data/.rubocop.yml ADDED
@@ -0,0 +1,11 @@
1
+ AllCops:
2
+ Exclude:
3
+ - 'bin/*'
4
+ NewCops: enable
5
+
6
+ Documentation:
7
+ Enabled: false
8
+
9
+ Metrics/BlockLength:
10
+ Exclude:
11
+ - 'spec/**/*.rb'
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.7.0
1
+ 2.7.5
data/CHANGELOG.md CHANGED
@@ -1,59 +1,65 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.3.0](https://github.com/zooppa/administrate-field-money/tree/v0.3.0) (2022-04-08)
4
+
5
+ [Full Changelog](https://github.com/zooppa/administrate-field-money/compare/v0.2.1...v0.3.0)
6
+
7
+ - Add Rails 7 support
8
+
3
9
  ## [v0.2.1](https://github.com/zooppa/administrate-field-money/tree/v0.2.1) (2020-01-15)
4
10
 
5
11
  [Full Changelog](https://github.com/zooppa/administrate-field-money/compare/v0.2.0...v0.2.1)
6
12
 
7
- * Require Rack greater than 2.0.8
8
- * Explicitly set Money gem defaults
13
+ - Require Rack greater than 2.0.8
14
+ - Explicitly set Money gem defaults
9
15
 
10
16
  ## [v0.2.0](https://github.com/zooppa/administrate-field-money/tree/v0.2.0) (2019-08-27)
11
17
 
12
18
  [Full Changelog](https://github.com/zooppa/administrate-field-money/compare/v0.1.2...v0.2.0)
13
19
 
14
- * Update the requirements on Rails to permit the latest version
20
+ - Update the requirements on Rails to permit the latest version
15
21
 
16
22
  ## [v0.1.2](https://github.com/zooppa/administrate-field-money/tree/v0.1.2) (2019-04-15)
17
23
 
18
24
  [Full Changelog](https://github.com/zooppa/administrate-field-money/compare/v0.1.1...v0.1.2)
19
25
 
20
- * Require `money` gem (thanks @iamnader)
26
+ - Require `money` gem (thanks @iamnader)
21
27
 
22
28
  ## [v0.1.1](https://github.com/zooppa/administrate-field-money/tree/v0.1.1) (2018-10-11)
23
29
 
24
30
  [Full Changelog](https://github.com/zooppa/administrate-field-money/compare/v0.1.0...v0.1.1)
25
31
 
26
- * Clarify expected attribute name (thanks @pkonovalov and @MatteoJoliveau)
32
+ - Clarify expected attribute name (thanks @pkonovalov and @MatteoJoliveau)
27
33
 
28
34
  ## [v0.1.0](https://github.com/zooppa/administrate-field-money/tree/v0.1.0) (2018-03-06)
29
35
 
30
36
  [Full Changelog](https://github.com/zooppa/administrate-field-money/compare/v0.0.6...v0.1.0)
31
37
 
32
- * Use smarter defaults (thanks @serradura)
38
+ - Use smarter defaults (thanks @serradura)
33
39
 
34
40
  ## [v0.0.6](https://github.com/zooppa/administrate-field-money/tree/v0.0.6) (2017-08-01)
35
41
 
36
42
  [Full Changelog](https://github.com/zooppa/administrate-field-money/compare/v0.0.5...v0.0.6)
37
43
 
38
- * Upgrade money gem
44
+ - Upgrade money gem
39
45
 
40
46
  ## [v0.0.5](https://github.com/zooppa/administrate-field-money/tree/v0.0.5) (2017-04-03)
41
47
 
42
48
  [Full Changelog](https://github.com/zooppa/administrate-field-money/compare/v0.0.4...v0.0.5)
43
49
 
44
- * Bump up Administrate dependency
50
+ - Bump up Administrate dependency
45
51
 
46
52
  ## [v0.0.4](https://github.com/zooppa/administrate-field-money/tree/v0.0.4) (2017-03-20)
47
53
 
48
54
  [Full Changelog](https://github.com/zooppa/administrate-field-money/compare/v0.0.3...v0.0.4)
49
55
 
50
- * Bump up Administrate dependency
56
+ - Bump up Administrate dependency
51
57
 
52
58
  ## [v0.0.3](https://github.com/zooppa/administrate-field-money/tree/v0.0.3) (2016-11-22)
53
59
 
54
60
  [Full Changelog](https://github.com/zooppa/administrate-field-money/compare/v0.0.2...v0.0.3)
55
61
 
56
- * Bump up Administrate dependency
62
+ - Bump up Administrate dependency
57
63
 
58
64
  ## [v0.0.2](https://github.com/zooppa/administrate-field-money/tree/v0.0.2) (2016-11-14)
59
65
 
@@ -61,7 +67,7 @@
61
67
 
62
68
  **Implemented enhancements**:
63
69
 
64
- * Allow customization of symbol, delimiter and separator via options
70
+ - Allow customization of symbol, delimiter and separator via options
65
71
 
66
72
  ## [v0.0.1](https://github.com/zooppa/administrate-field-money/tree/v0.0.1) (2016-11-11)
67
73
 
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  gemspec
data/README.md CHANGED
@@ -1,19 +1,28 @@
1
1
  # Administrate::Field::Money
2
2
 
3
- [![Build Status](https://travis-ci.com/zooppa/administrate-field-money.svg?branch=master)](https://travis-ci.com/zooppa/administrate-field-money)
4
- [![Code Climate](https://codeclimate.com/github/zooppa/administrate-field-money/badges/gpa.svg)](https://codeclimate.com/github/zooppa/administrate-field-money)
3
+ [![Build status](https://github.com/zooppa/administrate-field-money/actions/workflows/build.yml/badge.svg)](https://github.com/zooppa/administrate-field-money/actions/workflows/build.yml) [![Code Climate](https://codeclimate.com/github/zooppa/administrate-field-money/badges/gpa.svg)](https://codeclimate.com/github/zooppa/administrate-field-money)
5
4
 
6
5
  A plugin to deal with money in [Administrate], with the help of [Money] gem.
7
6
 
8
7
  **IMPORTANT: this plugin expects the attribute to be an integer representing the
9
8
  number of cents, with a name ending in `_cents`**.
10
9
 
10
+ ---
11
+
12
+ ### IMPORTANT NOTICE
13
+
14
+ **This gem is not actively maintained anymore**.
15
+
16
+ If you’re interested in taking over and steward the project moving forward, please get in touch.
17
+
18
+ ---
19
+
11
20
  ## Usage
12
21
 
13
22
  Add it to your `Gemfile`:
14
23
 
15
24
  ```ruby
16
- gem 'administrate-field-money', '~> 0.2.1'
25
+ gem 'administrate-field-money', '~> 0.3.0'
17
26
  ```
18
27
 
19
28
  Run:
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bundler/gem_tasks'
2
4
  require 'rspec/core/rake_task'
3
5
 
@@ -1,24 +1,31 @@
1
- $:.push File.expand_path('../lib', __FILE__)
1
+ # frozen_string_literal: true
2
+
3
+ $LOAD_PATH.push File.expand_path('lib', __dir__)
2
4
 
3
5
  Gem::Specification.new do |gem|
4
6
  gem.name = 'administrate-field-money'
5
- gem.version = '0.2.1'
7
+ gem.version = '0.3.0'
6
8
  gem.authors = ['Zooppa']
7
9
  gem.email = ['dev@zooppa.com']
8
10
  gem.homepage = 'https://github.com/zooppa/administrate-field-money'
9
11
  gem.summary = 'Money field plugin for Administrate'
10
12
  gem.description = 'A plugin to deal with money in Administrate'
11
13
  gem.license = 'MIT'
14
+ gem.metadata['rubygems_mfa_required'] = 'true'
15
+
16
+ gem.required_ruby_version = '>= 2.7.5'
12
17
 
13
18
  gem.require_paths = ['lib']
14
19
  gem.files = `git ls-files`.split("\n")
15
20
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
21
 
17
22
  gem.add_runtime_dependency 'administrate', '< 1.0.0'
18
- gem.add_runtime_dependency 'rails', '>= 4.2', '< 7'
19
23
  gem.add_runtime_dependency 'money', '~> 6.13'
20
24
  gem.add_runtime_dependency 'rack', '~> 2.0', '>= 2.0.8'
25
+ gem.add_runtime_dependency 'rails', '>= 4.2', '< 8'
21
26
 
27
+ gem.add_development_dependency 'overcommit', '~> 0.58'
22
28
  gem.add_development_dependency 'rake', '~> 13.0'
23
29
  gem.add_development_dependency 'rspec', '~> 3.7'
30
+ gem.add_development_dependency 'rubocop', '~> 1.24'
24
31
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rails'
2
4
  require 'money'
3
5
  require 'administrate/field/text'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spec_helper'
2
4
  require 'money'
3
5
 
data/spec/spec_helper.rb CHANGED
@@ -1,2 +1,4 @@
1
- $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
1
+ # frozen_string_literal: true
2
+
3
+ $LOAD_PATH.unshift File.expand_path('../lib', __dir__)
2
4
  require 'administrate/field/money'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: administrate-field-money
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zooppa
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-15 00:00:00.000000000 Z
11
+ date: 2022-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: administrate
@@ -24,26 +24,6 @@ dependencies:
24
24
  - - "<"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.0.0
27
- - !ruby/object:Gem::Dependency
28
- name: rails
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '4.2'
34
- - - "<"
35
- - !ruby/object:Gem::Version
36
- version: '7'
37
- type: :runtime
38
- prerelease: false
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- version: '4.2'
44
- - - "<"
45
- - !ruby/object:Gem::Version
46
- version: '7'
47
27
  - !ruby/object:Gem::Dependency
48
28
  name: money
49
29
  requirement: !ruby/object:Gem::Requirement
@@ -78,6 +58,40 @@ dependencies:
78
58
  - - ">="
79
59
  - !ruby/object:Gem::Version
80
60
  version: 2.0.8
61
+ - !ruby/object:Gem::Dependency
62
+ name: rails
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '4.2'
68
+ - - "<"
69
+ - !ruby/object:Gem::Version
70
+ version: '8'
71
+ type: :runtime
72
+ prerelease: false
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: '4.2'
78
+ - - "<"
79
+ - !ruby/object:Gem::Version
80
+ version: '8'
81
+ - !ruby/object:Gem::Dependency
82
+ name: overcommit
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: '0.58'
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - "~>"
93
+ - !ruby/object:Gem::Version
94
+ version: '0.58'
81
95
  - !ruby/object:Gem::Dependency
82
96
  name: rake
83
97
  requirement: !ruby/object:Gem::Requirement
@@ -106,6 +120,20 @@ dependencies:
106
120
  - - "~>"
107
121
  - !ruby/object:Gem::Version
108
122
  version: '3.7'
123
+ - !ruby/object:Gem::Dependency
124
+ name: rubocop
125
+ requirement: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - "~>"
128
+ - !ruby/object:Gem::Version
129
+ version: '1.24'
130
+ type: :development
131
+ prerelease: false
132
+ version_requirements: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - "~>"
135
+ - !ruby/object:Gem::Version
136
+ version: '1.24'
109
137
  description: A plugin to deal with money in Administrate
110
138
  email:
111
139
  - dev@zooppa.com
@@ -113,10 +141,12 @@ executables: []
113
141
  extensions: []
114
142
  extra_rdoc_files: []
115
143
  files:
144
+ - ".github/workflows/build.yml"
116
145
  - ".gitignore"
146
+ - ".overcommit.yml"
117
147
  - ".rspec"
148
+ - ".rubocop.yml"
118
149
  - ".ruby-version"
119
- - ".travis.yml"
120
150
  - CHANGELOG.md
121
151
  - Gemfile
122
152
  - LICENSE.md
@@ -135,8 +165,9 @@ files:
135
165
  homepage: https://github.com/zooppa/administrate-field-money
136
166
  licenses:
137
167
  - MIT
138
- metadata: {}
139
- post_install_message:
168
+ metadata:
169
+ rubygems_mfa_required: 'true'
170
+ post_install_message:
140
171
  rdoc_options: []
141
172
  require_paths:
142
173
  - lib
@@ -144,15 +175,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
144
175
  requirements:
145
176
  - - ">="
146
177
  - !ruby/object:Gem::Version
147
- version: '0'
178
+ version: 2.7.5
148
179
  required_rubygems_version: !ruby/object:Gem::Requirement
149
180
  requirements:
150
181
  - - ">="
151
182
  - !ruby/object:Gem::Version
152
183
  version: '0'
153
184
  requirements: []
154
- rubygems_version: 3.1.2
155
- signing_key:
185
+ rubygems_version: 3.1.6
186
+ signing_key:
156
187
  specification_version: 4
157
188
  summary: Money field plugin for Administrate
158
189
  test_files:
data/.travis.yml DELETED
@@ -1,4 +0,0 @@
1
- language: ruby
2
- notifications:
3
- slack:
4
- secure: NzFaI5WiDMGRT3hhTyq7j8LQBnE5Kjc8iPxplVRlqrCs/Dx6DyKlfQIPaekrEci/epd/0bo8sqBn6ahl+/hcVMEBIFb/VazdwfNr/yk0mpIX/dmvzpsoSskbGKNKdrQ+GDxTey+jsVX+i5AF9b1uGJARcbAyIr3hCmOXtj3ww5onmGt9jY/KF4Aloi7ZO7fh+zevqa9KD/hDmobUbTFU/KiEzvnY4WNeT7NZEQmPyLk22bzDTPtfANVLr6C0EcaNRFWGbuI4a+DIBG/7vAUt6CsVljYsFVo3Y9BjSi+kA0we3Hheh82bADDRWqCmmjCIrZX6XvCgxX6Mjp7MAi9c7ZCberN5DNLQhkNEbSLEbl9XqfZ/6bMxcJkjXVS5CtnGATRsRaXsVEgsmkMrbXIMtVlMFvXGNSci1j3/AwZ5NoprQaRhwp9atFI0IttN5AaWE1pdvV4F5fSyl9cb9dbs9ydw0/iMrenLIJ4wFhG34fkAgl8CF/oVTwErnhBePi/3YQR8Ati42I4EQN3mVeWhJeLp6XwrUuSqX5broSyamvsl8F/eTxAGF6LC4qD4ppU1ChPSQkX9YsBDDdOSG6ODoq9/wDkMEYIlIUQZ+t4W8uAYlwhv/NWrsgMwfFIKm8OzGzZWA93jVwgUU7zZYRSForkdn2EDvLhg0YDCL8GsWmk=