active_record-humanized_enum 0.1.2 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 9cb3636f627e3571f72cff2e39345aeb524f44e2
4
- data.tar.gz: 0432220b70e3476f6c807714b28e380a9b9263f3
2
+ SHA256:
3
+ metadata.gz: 2d9cabc225e78a4d2fbca4b5bc6b29d487bda90d1612c95737cb0f57d677c2e0
4
+ data.tar.gz: bfd0430660615f681394e1da22bad82312ba7c3fea895bf74516b8d174ef0b6a
5
5
  SHA512:
6
- metadata.gz: 5e64c5f0fe6686d011a223bf7e81b644d55ccdb1edfdc83a6181900e7934d65d8406e23f74c1f43ba3981ffcefe999f315081b198b8607f40b91d5c238416ee7
7
- data.tar.gz: 7b349c6971a724f2da5dc7cb5617072f524c68731f4bd154320d6cb03bf70a664ded728472ec6f45b603a8e302270c392a4c1ea3610bbdcbe35a38c84e8e58fc
6
+ metadata.gz: 2965ed5703c9e4d187bc152b629303f1f8e8326a36311b9fad839169864fcd1e769c655f6df798349e6c96ed9dbaf006a1890bd6f608773dee4ddf8aaea3cce7
7
+ data.tar.gz: 5f6c7b8138d596f85e6233e8e159c08b4e00399b48af97c9205cbfadf823b33b1135ddf90b5135a3dadffd4935415d9ffaaa913e7399083a361874ddc5812dba
data/CONTRIBUTING.md CHANGED
@@ -30,10 +30,10 @@ Version: [Add gem version here]
30
30
 
31
31
  Once you've made your great commits (include tests, please):
32
32
 
33
- 1. [Fork](http://help.github.com/forking/) the [original repository](http://github.com/dhyegofernando/active_record-humanized_enum)
33
+ 1. [Fork](http://help.github.com/forking/) the [original repository](http://github.com/dhyegocalota/active_record-humanized_enum)
34
34
  2. Create a topic branch - `git checkout -b my_branch`
35
35
  3. Push to your branch - `git push origin my_branch`
36
- 4. [Create an Issue](http://github.com/dhyegofernando/active_record-humanized_enum/issues) with a link to your branch
36
+ 4. [Create an Issue](http://github.com/dhyegocalota/active_record-humanized_enum/issues) with a link to your branch
37
37
  5. That's it!
38
38
 
39
39
  Please respect the code style using [editorconfig](http://editorconfig.org/) in your text editor.
data/README.md CHANGED
@@ -35,7 +35,7 @@ pt-BR:
35
35
  3. Will be available the following methods:
36
36
  ```ruby
37
37
  User.humanized_status(:enabled) # Ativo
38
- User.humanized_status(:disnabled) # Inativo
38
+ User.humanized_status(:disabled) # Inativo
39
39
 
40
40
  user = User.first
41
41
  puts user.status # enabled
@@ -46,7 +46,7 @@ puts user.humanized_status # Inativo
46
46
  ```
47
47
 
48
48
  ## Related Projects
49
- - [Integration with ActiveAdmin](http://github.com/dhyegofernando/active_admin-humanized_enum)
49
+ - [Integration with ActiveAdmin](http://github.com/dhyegocalota/active_admin-humanized_enum)
50
50
 
51
51
  ## Maintainer
52
- [Dhyego Fernando](https://github.com/dhyegofernando)
52
+ [Dhyego Fernando](https://github.com/dhyegocalota)
@@ -5,17 +5,17 @@ require './lib/active_record/humanized_enum/version'
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'active_record-humanized_enum'
7
7
  spec.version = ActiveRecord::HumanizedEnum::Version::STRING
8
- spec.authors = ['Dhyego Fernando']
8
+ spec.authors = ['Dhyego Calota']
9
9
  spec.email = ['dhyegofernando@gmail.com']
10
10
 
11
11
  spec.summary = 'Easily translate your ActiveRecord\'s enums.'
12
12
  spec.description = spec.summary
13
- spec.homepage = 'http://github.com/dhyegofernando/active_record-humanized_enum'
13
+ spec.homepage = 'http://github.com/dhyegocalota/active_record-humanized_enum'
14
14
  spec.license = 'MIT'
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
17
 
18
- spec.add_dependency 'railties'
18
+ spec.add_dependency 'railties', '>= 4.0'
19
19
  spec.add_dependency 'activesupport'
20
20
  spec.add_dependency 'i18n'
21
21
 
@@ -2,8 +2,8 @@ module ActiveRecord
2
2
  module HumanizedEnum
3
3
  module Version
4
4
  MAJOR = 0
5
- MINOR = 1
6
- PATCH = 2
5
+ MINOR = 2
6
+ PATCH = 0
7
7
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
8
8
  end
9
9
  end
@@ -11,8 +11,8 @@ module ActiveRecord
11
11
  "this will generate a %{type} method \"%{method}\", which is already defined " \
12
12
  "by %{source}."
13
13
 
14
- def enum(definitions)
15
- super(definitions)
14
+ def enum(*args, **kwargs)
15
+ definitions = super(*args, **kwargs)
16
16
  humanized_enum(*definitions.keys)
17
17
  end
18
18
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record-humanized_enum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
- - Dhyego Fernando
8
- autorequire:
7
+ - Dhyego Calota
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-12 00:00:00.000000000 Z
11
+ date: 2022-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '4.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activesupport
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -139,11 +139,11 @@ files:
139
139
  - active_record-humanized_enum.gemspec
140
140
  - lib/active_record/humanized_enum.rb
141
141
  - lib/active_record/humanized_enum/version.rb
142
- homepage: http://github.com/dhyegofernando/active_record-humanized_enum
142
+ homepage: http://github.com/dhyegocalota/active_record-humanized_enum
143
143
  licenses:
144
144
  - MIT
145
145
  metadata: {}
146
- post_install_message:
146
+ post_install_message:
147
147
  rdoc_options: []
148
148
  require_paths:
149
149
  - lib
@@ -158,9 +158,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  requirements: []
161
- rubyforge_project:
162
- rubygems_version: 2.6.14
163
- signing_key:
161
+ rubygems_version: 3.1.2
162
+ signing_key:
164
163
  specification_version: 4
165
164
  summary: Easily translate your ActiveRecord's enums.
166
165
  test_files: []