morse_nameable 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Guardfile +17 -0
- data/lib/morse_nameable/nameable.rb +6 -1
- data/lib/morse_nameable/version.rb +1 -1
- data/morse_nameable.gemspec +3 -1
- metadata +35 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e80f2b9f10a4cf56c6c67147005640eda03cbe74
|
4
|
+
data.tar.gz: a6c2eb9492a37350e9618e7f6fdd5f8c63cd5398
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24c1956f057e563ad0ca0c68b99e4dee34007e187bb0d9291604b4e300c83486b837d9e40dd43d7a8335c69a01c6a57fb20ae11920fc7411787abd88908b34c0
|
7
|
+
data.tar.gz: ee00ec32982bd80e570edb9c894e657e43291a8ea3427777ce9c7f6040ee3e324c502ccf2dfd430ed66ac7525a2c600d9d7dc9f38a5fdc4a0b3a82c469defd8b
|
data/Guardfile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
guard :rspec, cmd: "bundle exec rspec" do
|
2
|
+
require "guard/rspec/dsl"
|
3
|
+
dsl = Guard::RSpec::Dsl.new(self)
|
4
|
+
|
5
|
+
# Feel free to open issues for suggestions and improvements
|
6
|
+
|
7
|
+
# RSpec files
|
8
|
+
rspec = dsl.rspec
|
9
|
+
watch(rspec.spec_helper) { rspec.spec_dir }
|
10
|
+
watch(rspec.spec_support) { rspec.spec_dir }
|
11
|
+
watch(rspec.spec_files)
|
12
|
+
|
13
|
+
# Ruby files
|
14
|
+
ruby = dsl.ruby
|
15
|
+
dsl.watch_spec_files_for(ruby.lib_files)
|
16
|
+
|
17
|
+
end
|
@@ -3,8 +3,8 @@ module Nameable
|
|
3
3
|
extend ActiveSupport::Concern
|
4
4
|
|
5
5
|
included do
|
6
|
-
validate_column_names(*%w{firstname lastname})
|
7
6
|
load_required_attributes(*%w{firstname lastname})
|
7
|
+
validate_required_attributes
|
8
8
|
end
|
9
9
|
|
10
10
|
public
|
@@ -19,5 +19,10 @@ module Nameable
|
|
19
19
|
|
20
20
|
private
|
21
21
|
|
22
|
+
def required_database_fields
|
23
|
+
result=defined?(super) ? super : []
|
24
|
+
result+=[:firstname, :lastname]
|
25
|
+
end
|
26
|
+
|
22
27
|
end
|
23
28
|
|
data/morse_nameable.gemspec
CHANGED
@@ -21,10 +21,12 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ["lib"]
|
23
23
|
|
24
|
-
spec.add_dependency "morse_fields_validator","
|
24
|
+
spec.add_dependency "morse_fields_validator",">=1.0"
|
25
25
|
|
26
26
|
spec.add_development_dependency "bundler", "~> 1.8"
|
27
27
|
spec.add_development_dependency "coveralls", "~> 0.8"
|
28
|
+
spec.add_development_dependency "guard-rspec", "~> 4.5"
|
29
|
+
spec.add_development_dependency "rb-fsevent", "~> 0.9"
|
28
30
|
spec.add_development_dependency "shoulda-matchers", "~> 2.8"
|
29
31
|
spec.add_development_dependency "rake", "~> 10.0"
|
30
32
|
spec.add_development_dependency "rspec", "~> 3.2"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: morse_nameable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Terry S
|
@@ -9,22 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-07-
|
12
|
+
date: 2015-07-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: morse_fields_validator
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '0
|
20
|
+
version: '1.0'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - "
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '0
|
27
|
+
version: '1.0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: bundler
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,6 +53,34 @@ dependencies:
|
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0.8'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: guard-rspec
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '4.5'
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '4.5'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: rb-fsevent
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - "~>"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0.9'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0.9'
|
56
84
|
- !ruby/object:Gem::Dependency
|
57
85
|
name: shoulda-matchers
|
58
86
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,6 +136,7 @@ files:
|
|
108
136
|
- ".rspec"
|
109
137
|
- ".travis.yml"
|
110
138
|
- Gemfile
|
139
|
+
- Guardfile
|
111
140
|
- README.md
|
112
141
|
- Rakefile
|
113
142
|
- bin/console
|