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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZDNhY2UwN2Q2ZjY4MGEwZDFmNmJlYTk5OTRiMTk3NjhjNjcwNmYzMA==
4
+ MWJlOGY4NzI4N2U5MWRhOGQwMGY3YjU2MjdlZjc4OTUyZjAxODNlZg==
5
5
  data.tar.gz: !binary |-
6
- Zjc4Zjg0ZGNkMDVlYmM0MjBhZTllZmJhYmM0MjBiNmM3ZmFmMTM3Ng==
6
+ ZjYwNzI0MDhkZjFhMzRjOTQ0NDU5YmYxOTNlOGE0YjZjYTA0N2ZmZg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MGQxZTI0Mzg3ZTFhMjQ1M2RlZDY3MGU5YmFjNTgwMzY3Y2M3Mjc0NTJiZWNk
10
- NmM0YjVmZGRjODZlYTZjOWYwMzYwYmJhOTY4NGI4NzQ3Y2IxYjY5OTNiY2Nj
11
- Y2YyYWU4YzI4MTA2OWUyZDI4NmY3MmFiZGFhZmU5MmMwMmI3NDU=
9
+ OTdmNzI4ODY4ZjcyNGI5ODhlMmY4N2Y3ZGUxNGIxYTE4MjU5ODFlZjM3MzYz
10
+ M2NmZDQ0NzJhYjNlYTlmNmIxMDJhNzc2OTgyY2MyZWFmODlmZDQxZGNhZjY0
11
+ N2I1MWQ4MDQzNTUzZTIxNjQ5YTY4MmVmZTZhOGEwMTIwZTk0Mjc=
12
12
  data.tar.gz: !binary |-
13
- ZDljNGEzYmQ1NWVmN2ZjMjVhMWUzZGM2NmJkYzYxNDM2ZWY1MmE5YmQxOTM5
14
- YTJiZDQ5MzU1NjViMTA0YThkZTgxZmZiZGNiNWZlNjc4NDVmMjc1YzM0Nzcy
15
- NTY1NzFiNDkyY2ViMDA4MDBlZTZlMmEzNTI5NDU5ZWQxYTI2Y2Q=
13
+ NGJlZWE0M2ZjYjg0OTc2ZGFiYTljYWZjY2ZlODQ1ODZhODkwYTQyZWE4Y2Vh
14
+ ZTYyZmUxNDI2ZWZkY2U1NzAzZjI3NTFhOTg5Y2E4ZGNiZGFlMGFiYmVjMTY1
15
+ NWM3ZDZlYTI5OTM2NzczNTM5ZDE0ZTExMzg4NGIzM2JlYzczMmI=
@@ -1 +1,2 @@
1
- ;��IW'�$���jG����nK/%6!
1
+ �CIL*������Y��60��d��e,&�V��Кc`��K��v� �%�遳LJP��1v+���������E=*��F������.r �+���R�I�� �^��������U��un5�����;Po�����ml8��cc4P��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
@@ -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://docs.rubygems.org/read/chapter/21
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
 
@@ -1,7 +1,7 @@
1
1
  class <%= migration_class_name %> < ActiveRecord::Migration
2
2
 
3
3
  def change
4
- create_enum :<%=file_name%>
4
+ create_enum :<%=file_name%><%= ", description: true" if @description %>
5
5
  end
6
6
 
7
7
  end
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.3.0
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-01 00:00:00.000000000 Z
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
- p &P^�ЋD�+���kSrKYf?o��G���sA44���ҁ�^�����
2
- � G�
1
+ ������u�g������raFDf��JVZ/��NI0�qk������>O1����#�K[x��9&%n�;U�/&�=μ�L9=�;�����yt��~���=�QȎ&#�ge*?�