comply 1.5.2 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 13f86c2381db50040bf4c1e543e6f275a02c799f
4
- data.tar.gz: cdd96d4beec7d2fe29db35635fae9e3a693a1049
3
+ metadata.gz: f2093d423f8fa4b54e49b7122e1ea13c93aa7b2a
4
+ data.tar.gz: 87d69cb316312e9a4d34754e3ae2822c3b6468f6
5
5
  SHA512:
6
- metadata.gz: ceb67bc897ab3e8eb50da7eef83baf3e2b751e16dec239443042532d85e62d140499de366e6b9e03f5f7c90871df0793997174b65ec9e2458295d3ef20c5ea82
7
- data.tar.gz: cb389fa592f32b18cbbcc5f9f0f6b708fea36b2a155d938e769d916ee49d421ad97e69e6d9ed97fee6f60a46eafc396d0983490fd0738573ac7a77fbdd5402ba
6
+ metadata.gz: 07d31a395dbf14779c2055b78feabdfce488b2a6fa9a40a52ed62317e40d119719fb4c5bd3a404f6899b42a72b7bfa71efeda7f8a6fce80954a67646427b90d2
7
+ data.tar.gz: 4841e13268f817816b740765004280724a9289d20cfa8e5d857f7f8c70e997f67880d5bd1957b220e6abd0a8b162a56d4eeae01653a3dabd40f9c0bbc750967d
@@ -1,5 +1,4 @@
1
1
  module Comply
2
2
  class ApplicationController < ActionController::Base
3
- include ::SslRequirement
4
3
  end
5
4
  end
@@ -5,8 +5,6 @@ end
5
5
 
6
6
  module Comply
7
7
  class ValidationsController < Comply::ApplicationController
8
- ssl_allowed :show
9
-
10
8
  before_filter :require_model, :require_fields
11
9
 
12
10
  if ActiveModel.const_defined?(:ForbiddenAttributesProtection)
@@ -15,7 +13,7 @@ module Comply
15
13
 
16
14
  def show
17
15
  @instance = validation_instance
18
- @instance.valid?
16
+ @instance.valid?(:comply)
19
17
  render json: { error: @instance.errors }
20
18
  end
21
19
 
@@ -1,3 +1,3 @@
1
1
  module Comply
2
- VERSION = '1.5.2'
2
+ VERSION = '1.7.0'
3
3
  end
data/lib/comply.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  require 'comply/engine'
2
- require 'ssl_requirement'
3
2
  require 'comply/whitelist_constantize'
4
3
 
5
4
  module Comply
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comply
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - "@jacobaweiss"
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2016-04-04 00:00:00.000000000 Z
15
+ date: 2016-08-19 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: coffee-rails
@@ -28,48 +28,20 @@ dependencies:
28
28
  - - ">="
29
29
  - !ruby/object:Gem::Version
30
30
  version: '0'
31
- - !ruby/object:Gem::Dependency
32
- name: bartt-ssl_requirement
33
- requirement: !ruby/object:Gem::Requirement
34
- requirements:
35
- - - "~>"
36
- - !ruby/object:Gem::Version
37
- version: 1.4.2
38
- type: :runtime
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- requirements:
42
- - - "~>"
43
- - !ruby/object:Gem::Version
44
- version: 1.4.2
45
31
  - !ruby/object:Gem::Dependency
46
32
  name: rails
47
33
  requirement: !ruby/object:Gem::Requirement
48
34
  requirements:
49
- - - "~>"
50
- - !ruby/object:Gem::Version
51
- version: 3.2.0
52
- type: :runtime
53
- prerelease: false
54
- version_requirements: !ruby/object:Gem::Requirement
55
- requirements:
56
- - - "~>"
57
- - !ruby/object:Gem::Version
58
- version: 3.2.0
59
- - !ruby/object:Gem::Dependency
60
- name: strong_parameters
61
- requirement: !ruby/object:Gem::Requirement
62
- requirements:
63
- - - "~>"
35
+ - - ">="
64
36
  - !ruby/object:Gem::Version
65
- version: 0.2.0
37
+ version: '0'
66
38
  type: :runtime
67
39
  prerelease: false
68
40
  version_requirements: !ruby/object:Gem::Requirement
69
41
  requirements:
70
- - - "~>"
42
+ - - ">="
71
43
  - !ruby/object:Gem::Version
72
- version: 0.2.0
44
+ version: '0'
73
45
  - !ruby/object:Gem::Dependency
74
46
  name: pry-nav
75
47
  requirement: !ruby/object:Gem::Requirement
@@ -161,4 +133,3 @@ signing_key:
161
133
  specification_version: 4
162
134
  summary: Inline validation of your ActiveRecord models via the AJAX internets
163
135
  test_files: []
164
- has_rdoc: