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.
@@ -5,17 +5,20 @@ FactoryGirl.define do
5
5
  content { Faker::Lorem.paragraphs.join("\n") }
6
6
 
7
7
  trait :published do
8
- ignore do
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.first.try(:version) || 0) + 1
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(:fine_print_signature,
18
- user_factory: evaluator.user_factory)
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
@@ -2,7 +2,7 @@ FactoryGirl.define do
2
2
  factory :fine_print_signature, :class => FinePrint::Signature do
3
3
  association :contract, :factory => [:fine_print_contract, :published]
4
4
 
5
- ignore do
5
+ transient do
6
6
  user_factory :user
7
7
  end
8
8
 
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.1.1
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-09-29 00:00:00.000000000 Z
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.