administrate-field-enum 0.0.2 → 0.0.3

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
  SHA1:
3
- metadata.gz: d55f19a55a5d8ee9a57c2629a96f3a99a935afe7
4
- data.tar.gz: b3bcba8cfb70fd0ddecab8af0b7043c56780ca4e
3
+ metadata.gz: 641c98e64212ec461d84950decd3fe628c1a630e
4
+ data.tar.gz: 871ae103bbb92894eb50991c1a14e564fc78c708
5
5
  SHA512:
6
- metadata.gz: c555fa9e7e1a69fb2c5ec08e2b5c69c6d8c28a8fa2525d14662b7709e032bc74f31445d362725b3f0a7863d398912806bbf5a6dc164f0745b08d0372805874b7
7
- data.tar.gz: d977ec0fcca8433679e3af049a7e6ef94fed80a4eaeac71a1e55d5e958fe27bff029a9aa8aff95e4c3abc92ffe770085cd9ad6d2f78b1ff0212e5077fcae63b1
6
+ metadata.gz: 733df550e19e98b0aa7e4efcca9d06c9dc0b2a50f52f3bf049031dcd0229659d3085cb992bfd30f480a9dff58dae71364573f429346ae02decc45d87d877cd18
7
+ data.tar.gz: 19cc0e5e03a1fd1efa5148987272fc158c1d5dcbde9ca06216ed99099091b866e81068061035057e2991f1a51eb822b507c1753ad437e729bf5a0275349ec7d6
data/Gemfile CHANGED
@@ -1,5 +1,7 @@
1
- source 'https://rubygems.org'
1
+ source 'http://rubygems.org'
2
2
 
3
- # gem 'administrate', '>= 0.2.2', '< 0.3.0'
4
- # gem 'rails', '>= 4.0', '< 5.1'
5
3
  gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rspec-rails', '~> 3.5.0'
7
+ end
@@ -1,13 +1,11 @@
1
1
  $:.push File.expand_path('../lib', __FILE__)
2
2
 
3
- require 'administrate/field/enum'
4
-
5
3
  Gem::Specification.new do |s|
6
4
  s.name = 'administrate-field-enum'
7
- s.version = Administrate::Field::Enum::VERSION
8
- s.authors = ['Balbina Santana']
9
- s.email = ['balbina@disruptiveangels.com']
10
- s.homepage = 'https://github.com/DisruptiveAngels/administrate_field_enum'
5
+ s.version = '0.0.3'
6
+ s.authors = ['Balbina Santana', 'Adrian Rangel']
7
+ s.email = ['adrian@disruptiveangels.com']
8
+ s.homepage = 'https://github.com/DisruptiveAngels/administrate-field-enum'
11
9
  s.summary = 'Enum field plugin for Administrate'
12
10
  s.description = s.summary
13
11
  s.license = 'MIT'
@@ -16,6 +14,6 @@ Gem::Specification.new do |s|
16
14
  s.files = `git ls-files`.split("\n")
17
15
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
16
 
19
- s.add_dependency 'administrate', '>= 0.2.2', '< 0.3.0'
20
- s.add_dependency 'rails', '>= 4.0', '< 5.1'
17
+ s.add_dependency 'administrate'
18
+ s.add_dependency 'rails', '>= 4.2', '< 5.1'
21
19
  end
@@ -4,10 +4,8 @@ require 'rails'
4
4
  module Administrate
5
5
  module Field
6
6
  class Enum < Administrate::Field::Base
7
- VERSION = '0.0.2'
8
-
9
7
  def to_s
10
- data.humanize
8
+ data.humanize unless data.nil?
11
9
  end
12
10
 
13
11
  class Engine < ::Rails::Engine
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: administrate-field-enum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Balbina Santana
8
+ - Adrian Rangel
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2016-07-07 00:00:00.000000000 Z
12
+ date: 2017-01-16 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: administrate
@@ -16,27 +17,21 @@ dependencies:
16
17
  requirements:
17
18
  - - ">="
18
19
  - !ruby/object:Gem::Version
19
- version: 0.2.2
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: 0.3.0
20
+ version: '0'
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
24
  requirements:
27
25
  - - ">="
28
26
  - !ruby/object:Gem::Version
29
- version: 0.2.2
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: 0.3.0
27
+ version: '0'
33
28
  - !ruby/object:Gem::Dependency
34
29
  name: rails
35
30
  requirement: !ruby/object:Gem::Requirement
36
31
  requirements:
37
32
  - - ">="
38
33
  - !ruby/object:Gem::Version
39
- version: '4.0'
34
+ version: '4.2'
40
35
  - - "<"
41
36
  - !ruby/object:Gem::Version
42
37
  version: '5.1'
@@ -46,13 +41,13 @@ dependencies:
46
41
  requirements:
47
42
  - - ">="
48
43
  - !ruby/object:Gem::Version
49
- version: '4.0'
44
+ version: '4.2'
50
45
  - - "<"
51
46
  - !ruby/object:Gem::Version
52
47
  version: '5.1'
53
48
  description: Enum field plugin for Administrate
54
49
  email:
55
- - balbina@disruptiveangels.com
50
+ - adrian@disruptiveangels.com
56
51
  executables: []
57
52
  extensions: []
58
53
  extra_rdoc_files: []
@@ -66,7 +61,7 @@ files:
66
61
  - app/views/fields/enum/_show.html.erb
67
62
  - lib/administrate/field/enum.rb
68
63
  - spec/lib/administrate/field/enum_spec.rb
69
- homepage: https://github.com/DisruptiveAngels/administrate_field_enum
64
+ homepage: https://github.com/DisruptiveAngels/administrate-field-enum
70
65
  licenses:
71
66
  - MIT
72
67
  metadata: {}
@@ -86,9 +81,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
81
  version: '0'
87
82
  requirements: []
88
83
  rubyforge_project:
89
- rubygems_version: 2.6.6
84
+ rubygems_version: 2.5.2
90
85
  signing_key:
91
86
  specification_version: 4
92
87
  summary: Enum field plugin for Administrate
93
88
  test_files:
94
89
  - spec/lib/administrate/field/enum_spec.rb
90
+ has_rdoc: