power_enum 2.3.0 → 2.4.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 +8 -8
- checksums.yaml.gz.sig +2 -1
- data.tar.gz.sig +0 -0
- data/README.markdown +1 -1
- data/lib/generators/enum/enum_generator.rb +3 -0
- data/lib/generators/enum/templates/rails31_migration.rb.erb +1 -1
- metadata +2 -2
- metadata.gz.sig +1 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
MWJlOGY4NzI4N2U5MWRhOGQwMGY3YjU2MjdlZjc4OTUyZjAxODNlZg==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ZjYwNzI0MDhkZjFhMzRjOTQ0NDU5YmYxOTNlOGE0YjZjYTA0N2ZmZg==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
OTdmNzI4ODY4ZjcyNGI5ODhlMmY4N2Y3ZGUxNGIxYTE4MjU5ODFlZjM3MzYz
|
|
10
|
+
M2NmZDQ0NzJhYjNlYTlmNmIxMDJhNzc2OTgyY2MyZWFmODlmZDQxZGNhZjY0
|
|
11
|
+
N2I1MWQ4MDQzNTUzZTIxNjQ5YTY4MmVmZTZhOGEwMTIwZTk0Mjc=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
NGJlZWE0M2ZjYjg0OTc2ZGFiYTljYWZjY2ZlODQ1ODZhODkwYTQyZWE4Y2Vh
|
|
14
|
+
ZTYyZmUxNDI2ZWZkY2U1NzAzZjI3NTFhOTg5Y2E4ZGNiZGFlMGFiYmVjMTY1
|
|
15
|
+
NWM3ZDZlYTI5OTM2NzczNTM5ZDE0ZTExMzg4NGIzM2JlYzczMmI=
|
checksums.yaml.gz.sig
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
�CIL*������Y��60��d��e,&�V��Кc`��K��v� �%�遳LJP��1v+���������E=*��F������.r �+���R�I�� �^��������U��un5�����;Po�����ml�8��c�c4P��d�]y�
|
|
2
|
+
9��b��v��>,]���'=鼟1�o2��zEޣ?�=�y��ϓ�P�X���Cڢ��f�=7F�5�0����i��f+���Ҟ
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/README.markdown
CHANGED
|
@@ -73,7 +73,7 @@ store. Download the certificate (gem-public\_cert.pem) and run the following.
|
|
|
73
73
|
|
|
74
74
|
gem cert -a gem-public_cert.pem
|
|
75
75
|
|
|
76
|
-
More information is available at http://
|
|
76
|
+
More information is available at http://guides.rubygems.org/security/
|
|
77
77
|
which I strongly urge you to read.
|
|
78
78
|
|
|
79
79
|
#### Using Bundler
|
|
@@ -10,6 +10,8 @@ class EnumGenerator < Rails::Generators::NamedBase
|
|
|
10
10
|
source_root File.expand_path('../templates', __FILE__)
|
|
11
11
|
class_option :migration, :type => :boolean, :default => true, :desc => 'Generate migration for the enum'
|
|
12
12
|
class_option :fixture, :type => :boolean, :default => false, :desc => 'Generate fixture for the enum'
|
|
13
|
+
class_option :description, :type => :boolean, :default => false, :desc => "Add description to the enum"
|
|
14
|
+
|
|
13
15
|
|
|
14
16
|
# Generates the enum ActiveRecord model.
|
|
15
17
|
def generate_model
|
|
@@ -18,6 +20,7 @@ class EnumGenerator < Rails::Generators::NamedBase
|
|
|
18
20
|
|
|
19
21
|
# Generates the migration to create the enum table.
|
|
20
22
|
def generate_migration
|
|
23
|
+
@description = options.description?
|
|
21
24
|
migration_template 'rails31_migration.rb.erb', "db/migrate/create_enum_#{table_name}.rb" if options.migration?
|
|
22
25
|
end
|
|
23
26
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: power_enum
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Trevor Squires
|
|
@@ -41,7 +41,7 @@ cert_chain:
|
|
|
41
41
|
L2xKOGNVV2ZuUytGU0lMVm5tSXJoUGZyRHF3CmluWG9GdW5CNzJFTDZvcHd1
|
|
42
42
|
a2M3Y0Q5cFVtc05zVjBIZEFTdENHNWpPaGM1VHhMMVpYaFg4UXFlMmlOb25n
|
|
43
43
|
PT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=
|
|
44
|
-
date: 2014-03-
|
|
44
|
+
date: 2014-03-27 00:00:00.000000000 Z
|
|
45
45
|
dependencies:
|
|
46
46
|
- !ruby/object:Gem::Dependency
|
|
47
47
|
name: rails
|
metadata.gz.sig
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
�G�
|
|
1
|
+
������u�g������r�aFDf��JVZ/��N�I0�q�k������>O1����#�K[�x��9&%n�;U�/&�=μ�L�9=�;�����y�t��~���=�QȎ&#�ge*?�
|