acts-as-contactable 0.1.10 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -97
- data/acts_as_contactable.gemspec +0 -2
- data/lib/acts_as_contactable/version.rb +1 -1
- data/lib/acts_as_contactable.rb +1 -1
- data/spec/contactable_spec.rb +6 -6
- data/spec/factories/contactable.rb +3 -1
- data/spec/generators/active_record_generator_spec.rb +5 -5
- data/spec/shared_example/contactable_model.rb +4 -2
- data/spec/shared_examples/support/factory_bot.rb +3 -1
- data/spec/spec_helper.rb +9 -11
- metadata +1 -16
- data/lib/acts_as_contactable/engine.rb +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c03a2c52e980b1dd1b3bbebd39e869fa9938e196468012e501a7672838086b1
|
4
|
+
data.tar.gz: 83548e42bd26fc969ea2905361b92d18473cc72e78b7f69327856532dff86644
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10346eca67eec689cf3fb2e571e83edd31b76d7411ea6dc1fb51b00b063a8637ee06b2709f0d953acbba468e71985806b0148975776a5fbb3268733e31b88b53
|
7
|
+
data.tar.gz: 0e42b71058a1f1bc2938e8afe6df0fe34ab90c0ad36395c54fc027af9a620833897dc8f703ec2df21268db693ce201ea79f00a14d575f5490456183ba4ec1b69
|
data/Gemfile.lock
CHANGED
@@ -1,115 +1,31 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
acts-as-contactable (0.
|
5
|
-
rails (~> 5.2.1)
|
4
|
+
acts-as-contactable (0.2.0)
|
6
5
|
|
7
6
|
GEM
|
8
7
|
remote: https://rubygems.org/
|
9
8
|
specs:
|
10
|
-
actioncable (5.2.1)
|
11
|
-
actionpack (= 5.2.1)
|
12
|
-
nio4r (~> 2.0)
|
13
|
-
websocket-driver (>= 0.6.1)
|
14
|
-
actionmailer (5.2.1)
|
15
|
-
actionpack (= 5.2.1)
|
16
|
-
actionview (= 5.2.1)
|
17
|
-
activejob (= 5.2.1)
|
18
|
-
mail (~> 2.5, >= 2.5.4)
|
19
|
-
rails-dom-testing (~> 2.0)
|
20
|
-
actionpack (5.2.1)
|
21
|
-
actionview (= 5.2.1)
|
22
|
-
activesupport (= 5.2.1)
|
23
|
-
rack (~> 2.0)
|
24
|
-
rack-test (>= 0.6.3)
|
25
|
-
rails-dom-testing (~> 2.0)
|
26
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
27
|
-
actionview (5.2.1)
|
28
|
-
activesupport (= 5.2.1)
|
29
|
-
builder (~> 3.1)
|
30
|
-
erubi (~> 1.4)
|
31
|
-
rails-dom-testing (~> 2.0)
|
32
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
33
|
-
activejob (5.2.1)
|
34
|
-
activesupport (= 5.2.1)
|
35
|
-
globalid (>= 0.3.6)
|
36
|
-
activemodel (5.2.1)
|
37
|
-
activesupport (= 5.2.1)
|
38
|
-
activerecord (5.2.1)
|
39
|
-
activemodel (= 5.2.1)
|
40
|
-
activesupport (= 5.2.1)
|
41
|
-
arel (>= 9.0)
|
42
|
-
activestorage (5.2.1)
|
43
|
-
actionpack (= 5.2.1)
|
44
|
-
activerecord (= 5.2.1)
|
45
|
-
marcel (~> 0.3.1)
|
46
9
|
activesupport (5.2.1)
|
47
10
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
48
11
|
i18n (>= 0.7, < 2)
|
49
12
|
minitest (~> 5.1)
|
50
13
|
tzinfo (~> 1.1)
|
51
|
-
arel (9.0.0)
|
52
14
|
ast (2.4.0)
|
53
|
-
|
54
|
-
bump (0.6.0)
|
15
|
+
bump (0.6.1)
|
55
16
|
concurrent-ruby (1.0.5)
|
56
|
-
crass (1.0.4)
|
57
17
|
diff-lcs (1.3)
|
58
18
|
docile (1.1.5)
|
59
|
-
erubi (1.7.1)
|
60
19
|
factory_bot (4.11.0)
|
61
20
|
activesupport (>= 3.0.0)
|
62
|
-
globalid (0.4.1)
|
63
|
-
activesupport (>= 4.2.0)
|
64
21
|
i18n (1.1.0)
|
65
22
|
concurrent-ruby (~> 1.0)
|
66
23
|
json (2.1.0)
|
67
|
-
loofah (2.2.2)
|
68
|
-
crass (~> 1.0.2)
|
69
|
-
nokogiri (>= 1.5.9)
|
70
|
-
mail (2.7.0)
|
71
|
-
mini_mime (>= 0.1.1)
|
72
|
-
marcel (0.3.2)
|
73
|
-
mimemagic (~> 0.3.2)
|
74
|
-
method_source (0.9.0)
|
75
|
-
mimemagic (0.3.2)
|
76
|
-
mini_mime (1.0.1)
|
77
|
-
mini_portile2 (2.3.0)
|
78
24
|
minitest (5.11.3)
|
79
|
-
nio4r (2.3.1)
|
80
|
-
nokogiri (1.8.4)
|
81
|
-
mini_portile2 (~> 2.3.0)
|
82
25
|
parallel (1.12.1)
|
83
26
|
parser (2.5.1.2)
|
84
27
|
ast (~> 2.4.0)
|
85
28
|
powerpack (0.1.2)
|
86
|
-
rack (2.0.5)
|
87
|
-
rack-test (1.1.0)
|
88
|
-
rack (>= 1.0, < 3)
|
89
|
-
rails (5.2.1)
|
90
|
-
actioncable (= 5.2.1)
|
91
|
-
actionmailer (= 5.2.1)
|
92
|
-
actionpack (= 5.2.1)
|
93
|
-
actionview (= 5.2.1)
|
94
|
-
activejob (= 5.2.1)
|
95
|
-
activemodel (= 5.2.1)
|
96
|
-
activerecord (= 5.2.1)
|
97
|
-
activestorage (= 5.2.1)
|
98
|
-
activesupport (= 5.2.1)
|
99
|
-
bundler (>= 1.3.0)
|
100
|
-
railties (= 5.2.1)
|
101
|
-
sprockets-rails (>= 2.0.0)
|
102
|
-
rails-dom-testing (2.0.3)
|
103
|
-
activesupport (>= 4.2.0)
|
104
|
-
nokogiri (>= 1.6)
|
105
|
-
rails-html-sanitizer (1.0.4)
|
106
|
-
loofah (~> 2.2, >= 2.2.2)
|
107
|
-
railties (5.2.1)
|
108
|
-
actionpack (= 5.2.1)
|
109
|
-
activesupport (= 5.2.1)
|
110
|
-
method_source
|
111
|
-
rake (>= 0.8.7)
|
112
|
-
thor (>= 0.19.0, < 2.0)
|
113
29
|
rainbow (2.2.2)
|
114
30
|
rake
|
115
31
|
rake (12.3.1)
|
@@ -139,22 +55,11 @@ GEM
|
|
139
55
|
json (>= 1.8, < 3)
|
140
56
|
simplecov-html (~> 0.10.0)
|
141
57
|
simplecov-html (0.10.2)
|
142
|
-
sprockets (3.7.2)
|
143
|
-
concurrent-ruby (~> 1.0)
|
144
|
-
rack (> 1, < 3)
|
145
|
-
sprockets-rails (3.2.1)
|
146
|
-
actionpack (>= 4.0)
|
147
|
-
activesupport (>= 4.0)
|
148
|
-
sprockets (>= 3.0.0)
|
149
58
|
sqlite3 (1.3.13)
|
150
|
-
thor (0.20.0)
|
151
59
|
thread_safe (0.3.6)
|
152
60
|
tzinfo (1.2.5)
|
153
61
|
thread_safe (~> 0.1)
|
154
62
|
unicode-display_width (1.4.0)
|
155
|
-
websocket-driver (0.7.0)
|
156
|
-
websocket-extensions (>= 0.1.0)
|
157
|
-
websocket-extensions (0.1.3)
|
158
63
|
|
159
64
|
PLATFORMS
|
160
65
|
ruby
|
data/acts_as_contactable.gemspec
CHANGED
@@ -21,8 +21,6 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
22
22
|
s.require_paths = ['lib']
|
23
23
|
|
24
|
-
s.add_dependency "rails", "~> 5.2.1"
|
25
|
-
|
26
24
|
s.add_development_dependency 'bump', '~> 0.5', '>= 0.5.3'
|
27
25
|
s.add_development_dependency 'factory_bot', '~> 4.8'
|
28
26
|
s.add_development_dependency 'rspec', '~> 3.6'
|
data/lib/acts_as_contactable.rb
CHANGED
data/spec/contactable_spec.rb
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
3
|
+
require 'spec_helper'
|
4
4
|
|
5
5
|
describe ActsAsContactable::Contactable do
|
6
|
-
it
|
6
|
+
it 'should not be contactable' do
|
7
7
|
expect(NotContactable).not_to be_contactable
|
8
8
|
end
|
9
9
|
|
10
|
-
it
|
10
|
+
it 'should be contactable' do
|
11
11
|
expect(Contactable).to be_contactable
|
12
12
|
end
|
13
13
|
|
14
|
-
it_behaves_like
|
15
|
-
let (:contactable) { create(:contactable, name:
|
14
|
+
it_behaves_like 'a contactable_model' do
|
15
|
+
let (:contactable) { create(:contactable, name: 'a contactable model') }
|
16
16
|
end
|
17
|
-
end
|
17
|
+
end
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
4
|
-
require
|
3
|
+
require 'acts_as_contactable'
|
4
|
+
require 'spec_helper'
|
5
5
|
|
6
|
-
require
|
7
|
-
require
|
6
|
+
require 'rails/generators'
|
7
|
+
require 'generators/acts_as_contactable/migration/migration_generator'
|
8
8
|
|
9
9
|
module ActsAsContactable
|
10
10
|
describe MigrationGenerator do
|
11
11
|
pending
|
12
12
|
end
|
13
|
-
end
|
13
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,19 +1,17 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
$LOAD_PATH << File.join(File.dirname(__FILE__),
|
4
|
-
require '
|
5
|
-
require '
|
6
|
-
require
|
7
|
-
require
|
8
|
-
require "simplecov"
|
9
|
-
require "factory_bot"
|
3
|
+
$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
|
4
|
+
require 'acts_as_contactable'
|
5
|
+
require 'sqlite3'
|
6
|
+
require 'simplecov'
|
7
|
+
require 'factory_bot'
|
10
8
|
|
11
|
-
Dir[
|
12
|
-
Dir[
|
9
|
+
Dir['./spec/shared_example/**/*.rb'].sort.each { |f| require f }
|
10
|
+
Dir['./spec/support/**/*.rb'].sort.each { |f| require f }
|
13
11
|
|
14
12
|
SimpleCov.start
|
15
13
|
|
16
|
-
ActiveRecord::Base.establish_connection(adapter:
|
14
|
+
ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:')
|
17
15
|
|
18
16
|
ActiveRecord::Schema.define(version: 1) do
|
19
17
|
create_table :addresses do |t|
|
@@ -43,4 +41,4 @@ class Contactable < ActiveRecord::Base
|
|
43
41
|
end
|
44
42
|
|
45
43
|
class NotContactable < ActiveRecord::Base
|
46
|
-
end
|
44
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts-as-contactable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nora Alvarado
|
@@ -10,20 +10,6 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2018-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: rails
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 5.2.1
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 5.2.1
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: bump
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -145,7 +131,6 @@ files:
|
|
145
131
|
- lib/acts_as_contactable.rb
|
146
132
|
- lib/acts_as_contactable/address.rb
|
147
133
|
- lib/acts_as_contactable/contactable.rb
|
148
|
-
- lib/acts_as_contactable/engine.rb
|
149
134
|
- lib/acts_as_contactable/extenders/contactable.rb
|
150
135
|
- lib/acts_as_contactable/version.rb
|
151
136
|
- lib/generators/acts_as_contactable/migration/migration_generator.rb
|