attribute_extras 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,6 +28,7 @@ module AttributeExtras
28
28
  def #{@verb}_attributes(*attributes, validator: true, writer: true)
29
29
  if self.table_exists? && (non_attributes = attributes.map(&:to_s) - self.column_names).any?
30
30
  AttributeExtras.logger.warn("Invalid attributes passed to #{@verb}_attributes: \#{non_attributes.join(', ')}")
31
+ return
31
32
  end
32
33
 
33
34
  include ::AttributeExtras::#{@verb.capitalize}Attributes
@@ -1,6 +1,6 @@
1
1
  module AttributeExtras
2
2
 
3
3
  # current version of the gem
4
- VERSION = '0.1.3'
4
+ VERSION = '0.1.4'
5
5
 
6
6
  end
metadata CHANGED
@@ -1,55 +1,62 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attribute_extras
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Kevin Deisz
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2015-09-03 00:00:00.000000000 Z
12
+ date: 2016-02-08 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: activerecord
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - ">"
19
+ - - ! '>'
18
20
  - !ruby/object:Gem::Version
19
21
  version: '3'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - ">"
27
+ - - ! '>'
25
28
  - !ruby/object:Gem::Version
26
29
  version: '3'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: activesupport
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - ">"
35
+ - - ! '>'
32
36
  - !ruby/object:Gem::Version
33
37
  version: '3'
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - ">"
43
+ - - ! '>'
39
44
  - !ruby/object:Gem::Version
40
45
  version: '3'
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: sqlite3
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - ">="
51
+ - - ! '>='
46
52
  - !ruby/object:Gem::Version
47
53
  version: '0'
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - ">="
59
+ - - ! '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  description: Builds macros to automatically manipulate your models' attributes.
@@ -59,14 +66,14 @@ executables: []
59
66
  extensions: []
60
67
  extra_rdoc_files: []
61
68
  files:
62
- - MIT-LICENSE
63
- - README.md
64
- - Rakefile
65
- - lib/attribute_extras.rb
66
69
  - lib/attribute_extras/extra_builder.rb
67
70
  - lib/attribute_extras/hook_builder.rb
68
71
  - lib/attribute_extras/modifier.rb
69
72
  - lib/attribute_extras/version.rb
73
+ - lib/attribute_extras.rb
74
+ - MIT-LICENSE
75
+ - Rakefile
76
+ - README.md
70
77
  - test/base_extensions_test.rb
71
78
  - test/modifier_test.rb
72
79
  - test/nullify_attributes_test.rb
@@ -77,26 +84,27 @@ files:
77
84
  homepage: https://github.com/drugdev/attribute_extras
78
85
  licenses:
79
86
  - MIT
80
- metadata: {}
81
87
  post_install_message:
82
88
  rdoc_options: []
83
89
  require_paths:
84
90
  - lib
85
91
  required_ruby_version: !ruby/object:Gem::Requirement
92
+ none: false
86
93
  requirements:
87
- - - ">="
94
+ - - ! '>='
88
95
  - !ruby/object:Gem::Version
89
96
  version: '0'
90
97
  required_rubygems_version: !ruby/object:Gem::Requirement
98
+ none: false
91
99
  requirements:
92
- - - ">="
100
+ - - ! '>='
93
101
  - !ruby/object:Gem::Version
94
102
  version: '0'
95
103
  requirements: []
96
104
  rubyforge_project:
97
- rubygems_version: 2.4.5
105
+ rubygems_version: 1.8.23
98
106
  signing_key:
99
- specification_version: 4
107
+ specification_version: 3
100
108
  summary: Extra macros for auto attribute manipulation.
101
109
  test_files:
102
110
  - test/base_extensions_test.rb
@@ -106,4 +114,3 @@ test_files:
106
114
  - test/test_classes.rb
107
115
  - test/test_helper.rb
108
116
  - test/truncate_attributes_test.rb
109
- has_rdoc:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 10a90bb4e6bf56b13a54edf33e931fbfab2bed8a
4
- data.tar.gz: 2358a40e44937cd3c03d085be35ff494d2de4dde
5
- SHA512:
6
- metadata.gz: 1a56ab58683db265c247d3f32ccff17e02dab15bc26888e19396e51d60132760f63387d8a4ea4d3886d55a120c079d5d96cb2d8450886aac253281ba0c63cb5b
7
- data.tar.gz: 2f246e1be37f16968fe3e1b905e4aa44191eedacfc5e68f69a2a5f44823826f1227d5c44d27e1180633c2918b3d4fed0d4976df91a5479c3e32807f09333ffbf