fine_print 0.1.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +74 -45
  3. data/Rakefile +9 -9
  4. data/app/assets/javascripts/application.js~ +16 -0
  5. data/app/assets/javascripts/fine_print/application.js +8 -2
  6. data/app/controllers/fine_print/application_controller.rb +9 -7
  7. data/app/controllers/fine_print/application_controller.rb~ +9 -7
  8. data/app/controllers/fine_print/contracts_controller.rb +79 -0
  9. data/app/controllers/fine_print/contracts_controller.rb~ +79 -0
  10. data/app/controllers/fine_print/home_controller.rb +1 -11
  11. data/app/controllers/fine_print/home_controller.rb~ +2 -11
  12. data/app/controllers/fine_print/signatures_controller.rb +14 -0
  13. data/app/controllers/fine_print/signatures_controller.rb~ +14 -0
  14. data/app/helpers/fine_print/application_helper.rb +7 -0
  15. data/app/helpers/fine_print/application_helper.rb~ +7 -0
  16. data/app/helpers/fine_print/contracts_helper.rb~ +7 -0
  17. data/app/models/fine_print/contract.rb +96 -0
  18. data/app/models/fine_print/contract.rb~ +100 -0
  19. data/app/models/fine_print/signature.rb +25 -0
  20. data/app/models/fine_print/signature.rb~ +25 -0
  21. data/app/views/fine_print/contracts/_form.html.erb +35 -0
  22. data/app/views/fine_print/contracts/_form.html.erb~ +35 -0
  23. data/app/views/fine_print/contracts/edit.html.erb +10 -0
  24. data/app/views/fine_print/contracts/index.html.erb +43 -0
  25. data/app/views/fine_print/contracts/index.html.erb~ +43 -0
  26. data/app/views/fine_print/contracts/new.html.erb +9 -0
  27. data/app/views/fine_print/contracts/new_version.html.erb +9 -0
  28. data/app/views/fine_print/contracts/show.html.erb +33 -0
  29. data/app/views/fine_print/contracts/show.html.erb~ +35 -0
  30. data/app/views/fine_print/home/index.html.erb +15 -6
  31. data/app/views/fine_print/home/index.html.erb~ +12 -4
  32. data/app/views/fine_print/signatures/index.html.erb +36 -0
  33. data/app/views/fine_print/signatures/index.html.erb~ +32 -0
  34. data/app/views/layouts/fine_print/application.html.erb +6 -0
  35. data/app/views/layouts/fine_print/application.html.erb~ +20 -0
  36. data/config/initializers/fine_print.rb +27 -44
  37. data/config/initializers/fine_print.rb~ +23 -40
  38. data/config/routes.rb +9 -3
  39. data/config/routes.rb~ +9 -4
  40. data/db/migrate/0_install_fine_print.rb +26 -0
  41. data/db/migrate/0_install_fine_print.rb~ +26 -0
  42. data/lib/fine_print/controller_additions.rb +69 -0
  43. data/lib/fine_print/controller_additions.rb~ +69 -0
  44. data/lib/fine_print/engine.rb +8 -0
  45. data/lib/fine_print/security_transgression.rb +1 -2
  46. data/lib/fine_print/utilities.rb~ +26 -0
  47. data/lib/fine_print/version.rb +1 -1
  48. data/lib/fine_print.rb +89 -42
  49. data/lib/fine_print.rb~ +89 -41
  50. data/lib/tasks/fine_print_tasks.rake +11 -8
  51. data/spec/controllers/contracts_controller_spec.rb +222 -0
  52. data/spec/controllers/contracts_controller_spec.rb~ +224 -0
  53. data/spec/controllers/home_controller_spec.rb +25 -0
  54. data/spec/controllers/home_controller_spec.rb~ +25 -0
  55. data/spec/controllers/signatures_controller_spec.rb +46 -0
  56. data/spec/controllers/signatures_controller_spec.rb~ +46 -0
  57. data/spec/dummy/README.md +1 -1
  58. data/spec/dummy/app/controllers/dummy_models_controller.rb +2 -0
  59. data/spec/dummy/app/controllers/dummy_models_controller.rb~ +29 -0
  60. data/spec/dummy/app/helpers/application_helper.rb +13 -0
  61. data/spec/dummy/app/models/dummy_user.rb +3 -0
  62. data/spec/dummy/app/models/dummy_user.rb~ +4 -0
  63. data/spec/dummy/app/models/user.rb~ +78 -0
  64. data/spec/dummy/config/application.rb +2 -2
  65. data/spec/dummy/config/application.rb~ +60 -0
  66. data/spec/dummy/config/initializers/fine_print.rb +36 -0
  67. data/spec/dummy/config/initializers/fine_print.rb~ +36 -0
  68. data/spec/dummy/config/initializers/session_store.rb +1 -1
  69. data/spec/dummy/config/initializers/session_store.rb~ +8 -0
  70. data/spec/dummy/config/initializers/wrap_parameters.rb +1 -1
  71. data/spec/dummy/config/initializers/wrap_parameters.rb~ +14 -0
  72. data/spec/dummy/config/routes.rb +1 -2
  73. data/spec/dummy/config/routes.rb~ +4 -0
  74. data/spec/dummy/db/development.sqlite3 +0 -0
  75. data/spec/dummy/db/migrate/1_create_dummy_users.rb +9 -0
  76. data/spec/dummy/db/migrate/1_create_dummy_users.rb~ +8 -0
  77. data/spec/dummy/db/schema.rb +20 -12
  78. data/spec/dummy/db/test.sqlite3 +0 -0
  79. data/spec/dummy/log/development.log +1635 -0
  80. data/spec/dummy/log/test.log +46188 -0
  81. data/spec/factories/contract.rb +25 -0
  82. data/spec/factories/contract.rb~ +26 -0
  83. data/spec/factories/dummy_user.rb +4 -0
  84. data/spec/factories/dummy_user.rb~ +6 -0
  85. data/spec/factories/signature.rb +6 -0
  86. data/spec/factories/signature.rb~ +8 -0
  87. data/spec/factories/user.rb~ +6 -0
  88. data/spec/fine_print_spec.rb~ +15 -4
  89. data/spec/lib/fine_print/controller_additions_spec.rb +20 -0
  90. data/spec/lib/fine_print/controller_additions_spec.rb~ +20 -0
  91. data/spec/lib/fine_print_spec.rb +47 -0
  92. data/spec/lib/fine_print_spec.rb~ +47 -0
  93. data/spec/models/contract_spec.rb +79 -0
  94. data/spec/models/contract_spec.rb~ +80 -0
  95. data/spec/models/signature_spec.rb +28 -0
  96. data/spec/models/signature_spec.rb~ +28 -0
  97. data/spec/spec_helper.rb +31 -0
  98. data/spec/spec_helper.rb~ +32 -0
  99. data/spec/test_helper.rb~ +15 -0
  100. metadata +153 -91
  101. data/app/assets/javascripts/fine_print/agreements.js +0 -19
  102. data/app/assets/javascripts/fine_print/agreements.js~ +0 -19
  103. data/app/assets/javascripts/fine_print/application.js~ +0 -5
  104. data/app/assets/javascripts/fine_print/dialog.js +0 -2
  105. data/app/assets/javascripts/fine_print/dialog.js~ +0 -2
  106. data/app/assets/javascripts/fine_print/user_agreements.js +0 -20
  107. data/app/assets/javascripts/fine_print/user_agreements.js~ +0 -20
  108. data/app/assets/stylesheets/fine_print/agreements.css +0 -11
  109. data/app/assets/stylesheets/fine_print/agreements.css~ +0 -11
  110. data/app/assets/stylesheets/fine_print/application.css~ +0 -60
  111. data/app/assets/stylesheets/fine_print/user_agreements.css~ +0 -3
  112. data/app/assets/stylesheets/scaffold.css~ +0 -56
  113. data/app/controllers/fine_print/agreements_controller.rb +0 -114
  114. data/app/controllers/fine_print/agreements_controller.rb~ +0 -113
  115. data/app/controllers/fine_print/user_agreements_controller.rb +0 -63
  116. data/app/controllers/fine_print/user_agreements_controller.rb~ +0 -63
  117. data/app/models/fine_print/agreement.rb +0 -50
  118. data/app/models/fine_print/agreement.rb~ +0 -50
  119. data/app/models/fine_print/user_agreement.rb +0 -19
  120. data/app/models/fine_print/user_agreement.rb~ +0 -21
  121. data/app/views/fine_print/agreements/_agreement.html.erb +0 -77
  122. data/app/views/fine_print/agreements/_agreement.html.erb~ +0 -77
  123. data/app/views/fine_print/agreements/_dialog.html.erb +0 -27
  124. data/app/views/fine_print/agreements/_dialog.html.erb~ +0 -27
  125. data/app/views/fine_print/agreements/_form.html.erb +0 -51
  126. data/app/views/fine_print/agreements/_form.html.erb~ +0 -51
  127. data/app/views/fine_print/agreements/edit.html.erb +0 -8
  128. data/app/views/fine_print/agreements/edit.html.erb~ +0 -8
  129. data/app/views/fine_print/agreements/index.html.erb +0 -32
  130. data/app/views/fine_print/agreements/index.html.erb~ +0 -32
  131. data/app/views/fine_print/agreements/new.html.erb +0 -7
  132. data/app/views/fine_print/agreements/new.html.erb~ +0 -7
  133. data/app/views/fine_print/agreements/new_version.html.erb +0 -7
  134. data/app/views/fine_print/agreements/new_version.html.erb~ +0 -7
  135. data/app/views/fine_print/agreements/show.html.erb +0 -15
  136. data/app/views/fine_print/agreements/show.html.erb~ +0 -14
  137. data/app/views/fine_print/user_agreements/cancel.js.erb +0 -1
  138. data/app/views/fine_print/user_agreements/cancel.js.erb~ +0 -2
  139. data/app/views/fine_print/user_agreements/create.js.erb +0 -2
  140. data/app/views/fine_print/user_agreements/create.js.erb~ +0 -2
  141. data/app/views/fine_print/user_agreements/index.html.erb +0 -25
  142. data/app/views/fine_print/user_agreements/index.html.erb~ +0 -25
  143. data/db/migrate/0_create_fine_print_agreements.rb~ +0 -22
  144. data/db/migrate/0_install.rb +0 -28
  145. data/db/migrate/0_install.rb~ +0 -28
  146. data/lib/fine_print/agreements_helper.rb +0 -13
  147. data/lib/fine_print/agreements_helper.rb~ +0 -11
  148. data/lib/fine_print/fine_print_agreement.rb +0 -26
  149. data/lib/fine_print/fine_print_agreement.rb~ +0 -26
  150. data/lib/fine_print/require_agreement.rb~ +0 -22
  151. data/lib/fine_print/security_transgression.rb~ +0 -3
  152. data/lib/fine_print/version.rb~ +0 -3
  153. data/lib/tasks/fine_print_tasks.rake~ +0 -42
  154. data/spec/dummy/README.md~ +0 -3
  155. data/spec/fine_print_spec.rb +0 -7
  156. data/spec/minitest_helper.rb +0 -12
metadata CHANGED
@@ -1,94 +1,112 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fine_print
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
5
- prerelease:
4
+ version: 1.0.0
6
5
  platform: ruby
7
6
  authors:
7
+ - JP Slavinsky
8
8
  - Dante Soares
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-22 00:00:00.000000000 Z
12
+ date: 2013-11-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
16
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
17
  requirements:
19
- - - ! '>='
18
+ - - '>='
20
19
  - !ruby/object:Gem::Version
21
20
  version: '3.1'
22
21
  type: :runtime
23
22
  prerelease: false
24
23
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
24
  requirements:
27
- - - ! '>='
25
+ - - '>='
28
26
  - !ruby/object:Gem::Version
29
27
  version: '3.1'
30
28
  - !ruby/object:Gem::Dependency
31
29
  name: jquery-rails
32
30
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
31
  requirements:
35
- - - ! '>='
32
+ - - '>='
36
33
  - !ruby/object:Gem::Version
37
34
  version: '0'
38
35
  type: :runtime
39
36
  prerelease: false
40
37
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
38
  requirements:
43
- - - ! '>='
39
+ - - '>='
44
40
  - !ruby/object:Gem::Version
45
41
  version: '0'
46
42
  - !ruby/object:Gem::Dependency
47
43
  name: sqlite3
48
44
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
45
  requirements:
51
- - - ! '>='
46
+ - - '>='
52
47
  - !ruby/object:Gem::Version
53
48
  version: '0'
54
49
  type: :development
55
50
  prerelease: false
56
51
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
52
  requirements:
59
- - - ! '>='
53
+ - - '>='
60
54
  - !ruby/object:Gem::Version
61
55
  version: '0'
62
56
  - !ruby/object:Gem::Dependency
63
- name: minitest-rails
57
+ name: rspec-rails
64
58
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
59
  requirements:
67
- - - ! '>='
60
+ - - '>='
68
61
  - !ruby/object:Gem::Version
69
62
  version: '0'
70
63
  type: :development
71
64
  prerelease: false
72
65
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
66
  requirements:
75
- - - ! '>='
67
+ - - '>='
76
68
  - !ruby/object:Gem::Version
77
69
  version: '0'
78
70
  - !ruby/object:Gem::Dependency
79
- name: minitest-rails-capybara
71
+ name: factory_girl_rails
80
72
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
73
  requirements:
83
- - - ! '>='
74
+ - - '>='
84
75
  - !ruby/object:Gem::Version
85
76
  version: '0'
86
77
  type: :development
87
78
  prerelease: false
88
79
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
80
  requirements:
91
- - - ! '>='
81
+ - - '>='
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: faker
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - '>='
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - '>='
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ - !ruby/object:Gem::Dependency
99
+ name: debugger
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - '>='
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - '>='
92
110
  - !ruby/object:Gem::Version
93
111
  version: '0'
94
112
  description: FinePrint allows site admins to easily create, update and ask users to
@@ -101,88 +119,86 @@ extensions: []
101
119
  extra_rdoc_files: []
102
120
  files:
103
121
  - app/controllers/fine_print/application_controller.rb~
104
- - app/controllers/fine_print/user_agreements_controller.rb
105
- - app/controllers/fine_print/agreements_controller.rb
106
122
  - app/controllers/fine_print/home_controller.rb
123
+ - app/controllers/fine_print/signatures_controller.rb~
107
124
  - app/controllers/fine_print/home_controller.rb~
108
- - app/controllers/fine_print/agreements_controller.rb~
109
125
  - app/controllers/fine_print/application_controller.rb
110
- - app/controllers/fine_print/user_agreements_controller.rb~
111
- - app/assets/stylesheets/scaffold.css~
126
+ - app/controllers/fine_print/contracts_controller.rb
127
+ - app/controllers/fine_print/signatures_controller.rb
128
+ - app/controllers/fine_print/contracts_controller.rb~
112
129
  - app/assets/stylesheets/fine_print/application.css
113
- - app/assets/stylesheets/fine_print/application.css~
114
- - app/assets/stylesheets/fine_print/agreements.css
115
- - app/assets/stylesheets/fine_print/agreements.css~
116
- - app/assets/stylesheets/fine_print/user_agreements.css~
117
130
  - app/assets/stylesheets/fine_print/scaffold.css
118
- - app/assets/javascripts/fine_print/agreements.js
119
- - app/assets/javascripts/fine_print/agreements.js~
131
+ - app/assets/javascripts/application.js~
120
132
  - app/assets/javascripts/fine_print/application.js
121
- - app/assets/javascripts/fine_print/application.js~
122
- - app/assets/javascripts/fine_print/dialog.js~
123
- - app/assets/javascripts/fine_print/dialog.js
124
- - app/assets/javascripts/fine_print/user_agreements.js
125
- - app/assets/javascripts/fine_print/user_agreements.js~
126
- - app/models/fine_print/user_agreement.rb
127
- - app/models/fine_print/agreement.rb~
128
- - app/models/fine_print/agreement.rb
129
- - app/models/fine_print/user_agreement.rb~
133
+ - app/models/fine_print/contract.rb
134
+ - app/models/fine_print/signature.rb
135
+ - app/models/fine_print/contract.rb~
136
+ - app/models/fine_print/signature.rb~
137
+ - app/helpers/fine_print/contracts_helper.rb~
138
+ - app/helpers/fine_print/application_helper.rb~
139
+ - app/helpers/fine_print/application_helper.rb
140
+ - app/views/layouts/fine_print/application.html.erb~
130
141
  - app/views/layouts/fine_print/application.html.erb
131
- - app/views/fine_print/user_agreements/create.js.erb
132
- - app/views/fine_print/user_agreements/index.html.erb~
133
- - app/views/fine_print/user_agreements/index.html.erb
134
- - app/views/fine_print/user_agreements/cancel.js.erb
135
- - app/views/fine_print/user_agreements/create.js.erb~
136
- - app/views/fine_print/user_agreements/cancel.js.erb~
137
- - app/views/fine_print/agreements/_dialog.html.erb~
138
- - app/views/fine_print/agreements/new.html.erb
139
- - app/views/fine_print/agreements/show.html.erb~
140
- - app/views/fine_print/agreements/new_version.html.erb
141
- - app/views/fine_print/agreements/index.html.erb~
142
- - app/views/fine_print/agreements/new_version.html.erb~
143
- - app/views/fine_print/agreements/index.html.erb
144
- - app/views/fine_print/agreements/_agreement.html.erb~
145
- - app/views/fine_print/agreements/new.html.erb~
146
- - app/views/fine_print/agreements/_agreement.html.erb
147
- - app/views/fine_print/agreements/_dialog.html.erb
148
- - app/views/fine_print/agreements/edit.html.erb
149
- - app/views/fine_print/agreements/_form.html.erb
150
- - app/views/fine_print/agreements/show.html.erb
151
- - app/views/fine_print/agreements/edit.html.erb~
152
- - app/views/fine_print/agreements/_form.html.erb~
142
+ - app/views/fine_print/contracts/new.html.erb
143
+ - app/views/fine_print/contracts/show.html.erb~
144
+ - app/views/fine_print/contracts/new_version.html.erb
145
+ - app/views/fine_print/contracts/index.html.erb~
146
+ - app/views/fine_print/contracts/index.html.erb
147
+ - app/views/fine_print/contracts/edit.html.erb
148
+ - app/views/fine_print/contracts/_form.html.erb
149
+ - app/views/fine_print/contracts/show.html.erb
150
+ - app/views/fine_print/contracts/_form.html.erb~
153
151
  - app/views/fine_print/home/index.html.erb~
154
152
  - app/views/fine_print/home/index.html.erb
153
+ - app/views/fine_print/signatures/index.html.erb~
154
+ - app/views/fine_print/signatures/index.html.erb
155
155
  - config/routes.rb
156
156
  - config/initializers/fine_print.rb
157
157
  - config/initializers/fine_print.rb~
158
158
  - config/routes.rb~
159
- - db/migrate/0_install.rb
160
- - db/migrate/0_install.rb~
161
- - db/migrate/0_create_fine_print_agreements.rb~
159
+ - db/migrate/0_install_fine_print.rb
160
+ - db/migrate/0_install_fine_print.rb~
162
161
  - lib/fine_print.rb
163
- - lib/fine_print/require_agreement.rb~
164
- - lib/fine_print/fine_print_agreement.rb
165
- - lib/fine_print/version.rb~
166
- - lib/fine_print/agreements_helper.rb
162
+ - lib/fine_print/controller_additions.rb~
163
+ - lib/fine_print/controller_additions.rb
167
164
  - lib/fine_print/engine.rb
168
165
  - lib/fine_print/version.rb
169
- - lib/fine_print/security_transgression.rb~
170
- - lib/fine_print/agreements_helper.rb~
171
- - lib/fine_print/fine_print_agreement.rb~
166
+ - lib/fine_print/utilities.rb~
172
167
  - lib/fine_print/security_transgression.rb
173
168
  - lib/tasks/fine_print_tasks.rake
174
- - lib/tasks/fine_print_tasks.rake~
175
169
  - lib/fine_print.rb~
176
170
  - MIT-LICENSE
177
171
  - Rakefile
178
172
  - README.md
179
173
  - spec/fine_print_spec.rb~
180
- - spec/minitest_helper.rb
174
+ - spec/controllers/signatures_controller_spec.rb
175
+ - spec/controllers/contracts_controller_spec.rb~
176
+ - spec/controllers/home_controller_spec.rb
177
+ - spec/controllers/contracts_controller_spec.rb
178
+ - spec/controllers/home_controller_spec.rb~
179
+ - spec/controllers/signatures_controller_spec.rb~
180
+ - spec/factories/contract.rb
181
+ - spec/factories/user.rb~
182
+ - spec/factories/signature.rb
183
+ - spec/factories/contract.rb~
184
+ - spec/factories/signature.rb~
185
+ - spec/factories/dummy_user.rb
186
+ - spec/factories/dummy_user.rb~
187
+ - spec/models/contract_spec.rb
188
+ - spec/models/signature_spec.rb
189
+ - spec/models/signature_spec.rb~
190
+ - spec/models/contract_spec.rb~
191
+ - spec/spec_helper.rb
181
192
  - spec/dummy/script/rails
182
193
  - spec/dummy/Rakefile
194
+ - spec/dummy/app/controllers/dummy_models_controller.rb~
183
195
  - spec/dummy/app/controllers/application_controller.rb
196
+ - spec/dummy/app/controllers/dummy_models_controller.rb
184
197
  - spec/dummy/app/assets/stylesheets/application.css
185
198
  - spec/dummy/app/assets/javascripts/application.js
199
+ - spec/dummy/app/models/user.rb~
200
+ - spec/dummy/app/models/dummy_user.rb
201
+ - spec/dummy/app/models/dummy_user.rb~
186
202
  - spec/dummy/app/helpers/application_helper.rb
187
203
  - spec/dummy/app/views/layouts/application.html.erb
188
204
  - spec/dummy/config/locales/en.yml
@@ -193,14 +209,19 @@ files:
193
209
  - spec/dummy/config/environments/development.rb
194
210
  - spec/dummy/config/initializers/wrap_parameters.rb
195
211
  - spec/dummy/config/initializers/secret_token.rb
212
+ - spec/dummy/config/initializers/session_store.rb~
213
+ - spec/dummy/config/initializers/wrap_parameters.rb~
214
+ - spec/dummy/config/initializers/fine_print.rb
196
215
  - spec/dummy/config/initializers/mime_types.rb
197
216
  - spec/dummy/config/initializers/session_store.rb
198
217
  - spec/dummy/config/initializers/backtrace_silencers.rb
199
218
  - spec/dummy/config/initializers/inflections.rb
219
+ - spec/dummy/config/initializers/fine_print.rb~
200
220
  - spec/dummy/config/boot.rb
221
+ - spec/dummy/config/routes.rb~
201
222
  - spec/dummy/config/application.rb
202
223
  - spec/dummy/config/database.yml
203
- - spec/dummy/README.md~
224
+ - spec/dummy/config/application.rb~
204
225
  - spec/dummy/README.md
205
226
  - spec/dummy/public/500.html
206
227
  - spec/dummy/public/422.html
@@ -211,40 +232,69 @@ files:
211
232
  - spec/dummy/config.ru
212
233
  - spec/dummy/db/schema.rb
213
234
  - spec/dummy/db/development.sqlite3
235
+ - spec/dummy/db/migrate/1_create_dummy_users.rb~
236
+ - spec/dummy/db/migrate/1_create_dummy_users.rb
214
237
  - spec/dummy/db/test.sqlite3
215
- - spec/fine_print_spec.rb
238
+ - spec/test_helper.rb~
239
+ - spec/spec_helper.rb~
240
+ - spec/lib/fine_print_spec.rb~
241
+ - spec/lib/fine_print/controller_additions_spec.rb~
242
+ - spec/lib/fine_print/controller_additions_spec.rb
243
+ - spec/lib/fine_print_spec.rb
216
244
  homepage: http://github.com/lml/fine_print
217
- licenses: []
245
+ licenses:
246
+ - MIT
247
+ metadata: {}
218
248
  post_install_message:
219
249
  rdoc_options: []
220
250
  require_paths:
221
251
  - lib
222
252
  required_ruby_version: !ruby/object:Gem::Requirement
223
- none: false
224
253
  requirements:
225
- - - ! '>='
254
+ - - '>='
226
255
  - !ruby/object:Gem::Version
227
256
  version: '0'
228
257
  required_rubygems_version: !ruby/object:Gem::Requirement
229
- none: false
230
258
  requirements:
231
- - - ! '>='
259
+ - - '>='
232
260
  - !ruby/object:Gem::Version
233
261
  version: '0'
234
262
  requirements: []
235
263
  rubyforge_project:
236
- rubygems_version: 1.8.24
264
+ rubygems_version: 2.0.3
237
265
  signing_key:
238
- specification_version: 3
266
+ specification_version: 4
239
267
  summary: Manages site agreements with versioning.
240
268
  test_files:
241
269
  - spec/fine_print_spec.rb~
242
- - spec/minitest_helper.rb
270
+ - spec/controllers/signatures_controller_spec.rb
271
+ - spec/controllers/contracts_controller_spec.rb~
272
+ - spec/controllers/home_controller_spec.rb
273
+ - spec/controllers/contracts_controller_spec.rb
274
+ - spec/controllers/home_controller_spec.rb~
275
+ - spec/controllers/signatures_controller_spec.rb~
276
+ - spec/factories/contract.rb
277
+ - spec/factories/user.rb~
278
+ - spec/factories/signature.rb
279
+ - spec/factories/contract.rb~
280
+ - spec/factories/signature.rb~
281
+ - spec/factories/dummy_user.rb
282
+ - spec/factories/dummy_user.rb~
283
+ - spec/models/contract_spec.rb
284
+ - spec/models/signature_spec.rb
285
+ - spec/models/signature_spec.rb~
286
+ - spec/models/contract_spec.rb~
287
+ - spec/spec_helper.rb
243
288
  - spec/dummy/script/rails
244
289
  - spec/dummy/Rakefile
290
+ - spec/dummy/app/controllers/dummy_models_controller.rb~
245
291
  - spec/dummy/app/controllers/application_controller.rb
292
+ - spec/dummy/app/controllers/dummy_models_controller.rb
246
293
  - spec/dummy/app/assets/stylesheets/application.css
247
294
  - spec/dummy/app/assets/javascripts/application.js
295
+ - spec/dummy/app/models/user.rb~
296
+ - spec/dummy/app/models/dummy_user.rb
297
+ - spec/dummy/app/models/dummy_user.rb~
248
298
  - spec/dummy/app/helpers/application_helper.rb
249
299
  - spec/dummy/app/views/layouts/application.html.erb
250
300
  - spec/dummy/config/locales/en.yml
@@ -255,14 +305,19 @@ test_files:
255
305
  - spec/dummy/config/environments/development.rb
256
306
  - spec/dummy/config/initializers/wrap_parameters.rb
257
307
  - spec/dummy/config/initializers/secret_token.rb
308
+ - spec/dummy/config/initializers/session_store.rb~
309
+ - spec/dummy/config/initializers/wrap_parameters.rb~
310
+ - spec/dummy/config/initializers/fine_print.rb
258
311
  - spec/dummy/config/initializers/mime_types.rb
259
312
  - spec/dummy/config/initializers/session_store.rb
260
313
  - spec/dummy/config/initializers/backtrace_silencers.rb
261
314
  - spec/dummy/config/initializers/inflections.rb
315
+ - spec/dummy/config/initializers/fine_print.rb~
262
316
  - spec/dummy/config/boot.rb
317
+ - spec/dummy/config/routes.rb~
263
318
  - spec/dummy/config/application.rb
264
319
  - spec/dummy/config/database.yml
265
- - spec/dummy/README.md~
320
+ - spec/dummy/config/application.rb~
266
321
  - spec/dummy/README.md
267
322
  - spec/dummy/public/500.html
268
323
  - spec/dummy/public/422.html
@@ -273,5 +328,12 @@ test_files:
273
328
  - spec/dummy/config.ru
274
329
  - spec/dummy/db/schema.rb
275
330
  - spec/dummy/db/development.sqlite3
331
+ - spec/dummy/db/migrate/1_create_dummy_users.rb~
332
+ - spec/dummy/db/migrate/1_create_dummy_users.rb
276
333
  - spec/dummy/db/test.sqlite3
277
- - spec/fine_print_spec.rb
334
+ - spec/test_helper.rb~
335
+ - spec/spec_helper.rb~
336
+ - spec/lib/fine_print_spec.rb~
337
+ - spec/lib/fine_print/controller_additions_spec.rb~
338
+ - spec/lib/fine_print/controller_additions_spec.rb
339
+ - spec/lib/fine_print_spec.rb
@@ -1,19 +0,0 @@
1
- function fine_print_agreement_checkbox(index) {
2
- var checkbox = $("#fine_print_confirmation_checkbox_" + index);
3
- if (!checkbox) {
4
- return;
5
- }
6
- checkbox.change(function() {
7
- $("#fine_print_submit_ok_" + index).attr("disabled", !this.checked);
8
- try {
9
- if (this.checked) {
10
- $("#fine_print_submit_ok_" + index).button("enable");
11
- }
12
- else {
13
- $("#fine_print_submit_ok_" + index).button("disable");
14
- }
15
- }
16
- catch(e) {}
17
- });
18
- $("#fine_print_submit_ok_" + index).attr("disabled", !checkbox.checked);
19
- }
@@ -1,19 +0,0 @@
1
- function fine_print_agreement_checkbox(index) {
2
- var checkbox = $("#fine_print_confirmation_checkbox_" + index);
3
- if (!checkbox) {
4
- return;
5
- }
6
- checkbox.change(function() {
7
- $("#fine_print_submit_ok_" + index).attr("disabled", !this.checked);
8
- try {
9
- if (this.checked) {
10
- $("#fine_print_submit_ok_" + index).button("enable");
11
- }
12
- else {
13
- $("#fine_print_submit_ok_" + index).button("disable");
14
- }
15
- }
16
- catch (e) {}
17
- });
18
- $("#fine_print_submit_ok_" + index).attr("disabled", !checkbox.checked);
19
- }
@@ -1,5 +0,0 @@
1
- //= require jquery
2
- //= require jquery_ujs
3
- //= require jquery-ui
4
- //= require fine_print/agreements
5
- //= require fine_print/user_agreements
@@ -1,2 +0,0 @@
1
- //= require fine_print/agreements
2
- //= require fine_print/user_agreements
@@ -1,2 +0,0 @@
1
- //= require agreements
2
- //= require user_agreements
@@ -1,20 +0,0 @@
1
- function fine_print_init_dialog(index, width, height) {
2
- $("#fine_print_dialog_" + index).dialog({
3
- autoOpen: false,
4
- draggable: false,
5
- modal: true,
6
- resizable: false,
7
- width: width,
8
- height: height
9
- }).on("dialogbeforeclose", function(event, ui) {
10
- window.history.back();
11
- return false;
12
- });
13
- }
14
-
15
- $(function () {
16
- try {
17
- $("#fine_print_dialog_0").dialog("open");
18
- }
19
- catch(e) {}
20
- });
@@ -1,20 +0,0 @@
1
- function fine_print_init_dialog(index, width, height) {
2
- $("#fine_print_dialog_" + index).dialog({
3
- autoOpen: false,
4
- draggable: false,
5
- modal: true,
6
- resizable: false,
7
- width: 640,
8
- height: 480
9
- }).on("dialogbeforeclose", function(event, ui) {
10
- window.history.back();
11
- return false;
12
- });
13
- }
14
-
15
- $(function () {
16
- try {
17
- $("#fine_print_dialog_0").dialog("open");
18
- }
19
- catch(e) {}
20
- });
@@ -1,11 +0,0 @@
1
- pre.fine_print.agreement.content {
2
- background-color: white;
3
- }
4
-
5
- div.fine_print.agreement.dialog {
6
- display: none;
7
- }
8
-
9
- input.fine_print.checkbox {
10
- float: left;
11
- }
@@ -1,11 +0,0 @@
1
- pre.fine_print.agreement.content {
2
- background-color: white;
3
- }
4
-
5
- pre.fine_print.agreement.dialog {
6
- display: none;
7
- }
8
-
9
- input.fine_print.checkbox {
10
- float: left;
11
- }
@@ -1,60 +0,0 @@
1
- /*
2
- *= require_self
3
- *= require_tree .
4
- */
5
- body { background-color: #fff; color: #333; }
6
-
7
- body, p, ol, ul, td {
8
- font-family: verdana, arial, helvetica, sans-serif;
9
- font-size: 13px;
10
- line-height: 18px;
11
- }
12
-
13
- pre {
14
- background-color: #eee;
15
- padding: 10px;
16
- font-size: 11px;
17
- }
18
-
19
- a { color: #000; }
20
- a:visited { color: #666; }
21
- a:hover { color: #fff; background-color:#000; }
22
-
23
- div.field, div.actions {
24
- margin-bottom: 10px;
25
- }
26
-
27
- #notice {
28
- color: green;
29
- }
30
-
31
- .field_with_errors {
32
- padding: 2px;
33
- background-color: red;
34
- display: table;
35
- }
36
-
37
- #error_explanation {
38
- width: 450px;
39
- border: 2px solid red;
40
- padding: 7px;
41
- padding-bottom: 0;
42
- margin-bottom: 20px;
43
- background-color: #f0f0f0;
44
- }
45
-
46
- #error_explanation h2 {
47
- text-align: left;
48
- font-weight: bold;
49
- padding: 5px 5px 5px 15px;
50
- font-size: 12px;
51
- margin: -7px;
52
- margin-bottom: 0px;
53
- background-color: #c00;
54
- color: #fff;
55
- }
56
-
57
- #error_explanation ul li {
58
- font-size: 12px;
59
- list-style: square;
60
- }
@@ -1,3 +0,0 @@
1
- input.fine_print .check_box {
2
- float: left;
3
- }
@@ -1,56 +0,0 @@
1
- body { background-color: #fff; color: #333; }
2
-
3
- body, p, ol, ul, td {
4
- font-family: verdana, arial, helvetica, sans-serif;
5
- font-size: 13px;
6
- line-height: 18px;
7
- }
8
-
9
- pre {
10
- background-color: #eee;
11
- padding: 10px;
12
- font-size: 11px;
13
- }
14
-
15
- a { color: #000; }
16
- a:visited { color: #666; }
17
- a:hover { color: #fff; background-color:#000; }
18
-
19
- div.field, div.actions {
20
- margin-bottom: 10px;
21
- }
22
-
23
- #notice {
24
- color: green;
25
- }
26
-
27
- .field_with_errors {
28
- padding: 2px;
29
- background-color: red;
30
- display: table;
31
- }
32
-
33
- #error_explanation {
34
- width: 450px;
35
- border: 2px solid red;
36
- padding: 7px;
37
- padding-bottom: 0;
38
- margin-bottom: 20px;
39
- background-color: #f0f0f0;
40
- }
41
-
42
- #error_explanation h2 {
43
- text-align: left;
44
- font-weight: bold;
45
- padding: 5px 5px 5px 15px;
46
- font-size: 12px;
47
- margin: -7px;
48
- margin-bottom: 0px;
49
- background-color: #c00;
50
- color: #fff;
51
- }
52
-
53
- #error_explanation ul li {
54
- font-size: 12px;
55
- list-style: square;
56
- }