signed_form 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/spec/spec_helper.rb CHANGED
@@ -3,10 +3,15 @@ require 'action_view/template'
3
3
  require 'action_controller'
4
4
  require 'active_model'
5
5
  require 'action_controller'
6
- require 'signed_form'
7
-
8
6
  require 'active_support/core_ext'
9
7
 
8
+ require 'coveralls'
9
+ Coveralls.wear! do
10
+ add_filter "/spec/"
11
+ end
12
+
13
+ require 'signed_form'
14
+
10
15
  module SignedFormViewHelper
11
16
  include ActionView::Helpers
12
17
 
@@ -61,4 +66,11 @@ RSpec.configure do |config|
61
66
  config.filter_run_excluding action_pack: ->(version) { ActionPack::VERSION::STRING.match(/\d+\.\d+/)[0] !~ version }
62
67
 
63
68
  config.order = 'random'
69
+
70
+ config.around(:each) do |example|
71
+ pristine_module = SignedForm.dup
72
+ example.run
73
+ Object.send :remove_const, :SignedForm
74
+ SignedForm = pristine_module
75
+ end
64
76
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: signed_form
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erich Menge
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-21 00:00:00.000000000 Z
11
+ date: 2013-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.1'
69
+ - !ruby/object:Gem::Dependency
70
+ name: coveralls
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: actionpack
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -91,18 +105,30 @@ files:
91
105
  - .rspec
92
106
  - .travis.yml
93
107
  - .yardopts
108
+ - Changes.md
94
109
  - Gemfile
95
110
  - LICENSE.txt
96
111
  - README.md
97
112
  - Rakefile
113
+ - app/views/signed_form/expired_form.html
98
114
  - lib/signed_form.rb
99
115
  - lib/signed_form/action_controller/permit_signed_params.rb
100
116
  - lib/signed_form/action_view/form_helper.rb
117
+ - lib/signed_form/digest_stores.rb
118
+ - lib/signed_form/digest_stores/memory_store.rb
119
+ - lib/signed_form/digest_stores/null_store.rb
120
+ - lib/signed_form/digestor.rb
121
+ - lib/signed_form/engine.rb
101
122
  - lib/signed_form/errors.rb
102
123
  - lib/signed_form/form_builder.rb
124
+ - lib/signed_form/gate_keeper.rb
103
125
  - lib/signed_form/hmac.rb
126
+ - lib/signed_form/test_helper.rb
104
127
  - lib/signed_form/version.rb
105
128
  - signed_form.gemspec
129
+ - spec/digestor_spec.rb
130
+ - spec/fixtures/views/_fields.html.erb
131
+ - spec/fixtures/views/form.html.erb
106
132
  - spec/form_builder_spec.rb
107
133
  - spec/hmac_spec.rb
108
134
  - spec/permit_signed_params_spec.rb
@@ -127,11 +153,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
153
  version: '0'
128
154
  requirements: []
129
155
  rubyforge_project:
130
- rubygems_version: 2.0.0
156
+ rubygems_version: 2.0.2
131
157
  signing_key:
132
158
  specification_version: 4
133
159
  summary: Rails signed form security
134
160
  test_files:
161
+ - spec/digestor_spec.rb
162
+ - spec/fixtures/views/_fields.html.erb
163
+ - spec/fixtures/views/form.html.erb
135
164
  - spec/form_builder_spec.rb
136
165
  - spec/hmac_spec.rb
137
166
  - spec/permit_signed_params_spec.rb