fine_print 2.1.1 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/locales/fine_print/en.yml +24 -25
- data/lib/fine_print/version.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +2828 -0
- data/spec/factories/fine_print/contract.rb +7 -4
- data/spec/factories/fine_print/signature.rb +1 -1
- metadata +2 -16
@@ -5,17 +5,20 @@ FactoryGirl.define do
|
|
5
5
|
content { Faker::Lorem.paragraphs.join("\n") }
|
6
6
|
|
7
7
|
trait :published do
|
8
|
-
|
8
|
+
transient do
|
9
9
|
user_factory :user
|
10
10
|
signatures_count 0
|
11
11
|
end
|
12
12
|
|
13
13
|
after(:build) do |contract, evaluator|
|
14
|
-
contract.version = (contract.same_name.published
|
14
|
+
contract.version = (contract.same_name.published
|
15
|
+
.first.try(:version) || 0) + 1
|
15
16
|
|
16
17
|
evaluator.signatures_count.times do
|
17
|
-
contract.signatures << FactoryGirl.build(
|
18
|
-
|
18
|
+
contract.signatures << FactoryGirl.build(
|
19
|
+
:fine_print_signature,
|
20
|
+
user_factory: evaluator.user_factory
|
21
|
+
)
|
19
22
|
end
|
20
23
|
end
|
21
24
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fine_print
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JP Slavinsky
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-12-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -123,20 +123,6 @@ dependencies:
|
|
123
123
|
- - ">="
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '0'
|
126
|
-
- !ruby/object:Gem::Dependency
|
127
|
-
name: debugger
|
128
|
-
requirement: !ruby/object:Gem::Requirement
|
129
|
-
requirements:
|
130
|
-
- - ">="
|
131
|
-
- !ruby/object:Gem::Version
|
132
|
-
version: '0'
|
133
|
-
type: :development
|
134
|
-
prerelease: false
|
135
|
-
version_requirements: !ruby/object:Gem::Requirement
|
136
|
-
requirements:
|
137
|
-
- - ">="
|
138
|
-
- !ruby/object:Gem::Version
|
139
|
-
version: '0'
|
140
126
|
description: FinePrint allows site admins to easily create, update and ask users to
|
141
127
|
sign site agreements, keeping a record of when users signed a certain version of
|
142
128
|
each agreement.
|