beespew 1.0.0 → 1.0.1

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: e790d9c6c7c3bd666019fbb7ceb7918aea4585ce
4
- data.tar.gz: 702e9ff36fef464e219826c862fd2bcce5f4512a
3
+ metadata.gz: d89b5e07a42dd414e86d8910ad440fe2c66a5e61
4
+ data.tar.gz: 1c95b999d8c0c27e67401831fbf8f4c62eac65d9
5
5
  SHA512:
6
- metadata.gz: 326e7894d73c3fb3adc14c8afd91895d10d6a243b2b0d54d0fa94154846022de5c3b0958dbce3568e6b98f17909724ee512e50be6ae4ea3cc89f4f808f78900a
7
- data.tar.gz: a0c94a8d78d02adafef52268f2a5dd1e244173eaf5be83d3304999063f4d5a13cf3005d76d256075091a09273127bbf31f41b3e1fb70ecdd120562fc61444400
6
+ metadata.gz: 420a0f076346eae0f34594a452186307ef579ec0ddf0586ba8f3849d5d897a87d1be7d325b302eeae7ce0d83e48bbddfd5cd3ed45a07d3fb5a29a04d5e970a77
7
+ data.tar.gz: 082b1c737e4bd297c6549e6bf3ca74fbd74e18ef19700f1635de71a8de8444ba3fe70ba80648966b57414feeba04da14b1bf66106c46b05d2a3b8f86fc9f4e2d
data/.travis.yml CHANGED
@@ -2,7 +2,9 @@ language: ruby
2
2
  rvm:
3
3
  - 2.3.0
4
4
  - 2.2.3
5
- - 2.1.0
5
+ gemfile:
6
+ - gemfiles/rails_4.2.gemfile
7
+ - gemfiles/rails_5.0.gemfile
6
8
  cache: bundler
7
9
  script:
8
10
  - bundle exec rspec spec
data/Appraisals ADDED
@@ -0,0 +1,7 @@
1
+ appraise "rails-4.2" do
2
+ gem 'rails', '~> 4.2.0'
3
+ end
4
+
5
+ appraise "rails-5.0" do
6
+ gem 'rails', '~> 5.0.0'
7
+ end
data/README.md CHANGED
@@ -94,6 +94,10 @@ strong parameters will unwillingly disable your spam protection.
94
94
 
95
95
  ### HEAD (not released yet)
96
96
 
97
+ ### 1.0.1
98
+ * Relax rails dependency requirements
99
+ * Freeze string literals
100
+
97
101
  ### 1.0.0
98
102
  * Require Ruby >= 2.1
99
103
  * Set honeypot field with a [tabindex of -1](https://www.w3.org/TR/html5/editing.html#sequential-focus-navigation-and-the-tabindex-attribute)
data/beespew.gemspec CHANGED
@@ -14,16 +14,17 @@ Gem::Specification.new do |s|
14
14
  s.description = "Beespew is a naive spam protection plugin for rails using a honeypot"
15
15
  s.license = "MIT"
16
16
 
17
- s.required_ruby_version = '>= 2.1'
17
+ s.required_ruby_version = '>= 2.2.2'
18
18
 
19
19
  s.files = `git ls-files`.split($/)
20
20
  s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
21
21
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
22
22
  s.require_paths = ["lib"]
23
23
 
24
- s.add_dependency "rails", ">= 4.0", '<= 5.0'
24
+ s.add_dependency "rails", ">= 4.0", '< 5.1'
25
25
 
26
26
  s.add_development_dependency "sqlite3"
27
27
  s.add_development_dependency "rspec-rails", '>= 3.0.0'
28
28
  s.add_development_dependency "rspec-html-matchers"
29
+ s.add_development_dependency "appraisal"
29
30
  end
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 4.2.0"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,144 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ beespew (1.0.0)
5
+ rails (>= 4.0, <= 5.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actionmailer (4.2.5)
11
+ actionpack (= 4.2.5)
12
+ actionview (= 4.2.5)
13
+ activejob (= 4.2.5)
14
+ mail (~> 2.5, >= 2.5.4)
15
+ rails-dom-testing (~> 1.0, >= 1.0.5)
16
+ actionpack (4.2.5)
17
+ actionview (= 4.2.5)
18
+ activesupport (= 4.2.5)
19
+ rack (~> 1.6)
20
+ rack-test (~> 0.6.2)
21
+ rails-dom-testing (~> 1.0, >= 1.0.5)
22
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
23
+ actionview (4.2.5)
24
+ activesupport (= 4.2.5)
25
+ builder (~> 3.1)
26
+ erubis (~> 2.7.0)
27
+ rails-dom-testing (~> 1.0, >= 1.0.5)
28
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
29
+ activejob (4.2.5)
30
+ activesupport (= 4.2.5)
31
+ globalid (>= 0.3.0)
32
+ activemodel (4.2.5)
33
+ activesupport (= 4.2.5)
34
+ builder (~> 3.1)
35
+ activerecord (4.2.5)
36
+ activemodel (= 4.2.5)
37
+ activesupport (= 4.2.5)
38
+ arel (~> 6.0)
39
+ activesupport (4.2.5)
40
+ i18n (~> 0.7)
41
+ json (~> 1.7, >= 1.7.7)
42
+ minitest (~> 5.1)
43
+ thread_safe (~> 0.3, >= 0.3.4)
44
+ tzinfo (~> 1.1)
45
+ appraisal (2.1.0)
46
+ bundler
47
+ rake
48
+ thor (>= 0.14.0)
49
+ arel (6.0.3)
50
+ builder (3.2.2)
51
+ concurrent-ruby (1.0.0)
52
+ diff-lcs (1.2.5)
53
+ erubis (2.7.0)
54
+ globalid (0.3.6)
55
+ activesupport (>= 4.1.0)
56
+ i18n (0.7.0)
57
+ json (1.8.3)
58
+ loofah (2.0.3)
59
+ nokogiri (>= 1.5.9)
60
+ mail (2.6.3)
61
+ mime-types (>= 1.16, < 3)
62
+ mime-types (2.99)
63
+ mini_portile2 (2.0.0)
64
+ minitest (5.8.3)
65
+ nokogiri (1.6.7)
66
+ mini_portile2 (~> 2.0.0.rc2)
67
+ rack (1.6.4)
68
+ rack-test (0.6.3)
69
+ rack (>= 1.0)
70
+ rails (4.2.5)
71
+ actionmailer (= 4.2.5)
72
+ actionpack (= 4.2.5)
73
+ actionview (= 4.2.5)
74
+ activejob (= 4.2.5)
75
+ activemodel (= 4.2.5)
76
+ activerecord (= 4.2.5)
77
+ activesupport (= 4.2.5)
78
+ bundler (>= 1.3.0, < 2.0)
79
+ railties (= 4.2.5)
80
+ sprockets-rails
81
+ rails-deprecated_sanitizer (1.0.3)
82
+ activesupport (>= 4.2.0.alpha)
83
+ rails-dom-testing (1.0.7)
84
+ activesupport (>= 4.2.0.beta, < 5.0)
85
+ nokogiri (~> 1.6.0)
86
+ rails-deprecated_sanitizer (>= 1.0.1)
87
+ rails-html-sanitizer (1.0.2)
88
+ loofah (~> 2.0)
89
+ railties (4.2.5)
90
+ actionpack (= 4.2.5)
91
+ activesupport (= 4.2.5)
92
+ rake (>= 0.8.7)
93
+ thor (>= 0.18.1, < 2.0)
94
+ rake (10.4.2)
95
+ rspec (3.4.0)
96
+ rspec-core (~> 3.4.0)
97
+ rspec-expectations (~> 3.4.0)
98
+ rspec-mocks (~> 3.4.0)
99
+ rspec-core (3.4.1)
100
+ rspec-support (~> 3.4.0)
101
+ rspec-expectations (3.4.0)
102
+ diff-lcs (>= 1.2.0, < 2.0)
103
+ rspec-support (~> 3.4.0)
104
+ rspec-html-matchers (0.7.0)
105
+ nokogiri (~> 1)
106
+ rspec (~> 3)
107
+ rspec-mocks (3.4.0)
108
+ diff-lcs (>= 1.2.0, < 2.0)
109
+ rspec-support (~> 3.4.0)
110
+ rspec-rails (3.4.0)
111
+ actionpack (>= 3.0, < 4.3)
112
+ activesupport (>= 3.0, < 4.3)
113
+ railties (>= 3.0, < 4.3)
114
+ rspec-core (~> 3.4.0)
115
+ rspec-expectations (~> 3.4.0)
116
+ rspec-mocks (~> 3.4.0)
117
+ rspec-support (~> 3.4.0)
118
+ rspec-support (3.4.1)
119
+ sprockets (3.5.2)
120
+ concurrent-ruby (~> 1.0)
121
+ rack (> 1, < 3)
122
+ sprockets-rails (2.3.3)
123
+ actionpack (>= 3.0)
124
+ activesupport (>= 3.0)
125
+ sprockets (>= 2.8, < 4.0)
126
+ sqlite3 (1.3.11)
127
+ thor (0.19.1)
128
+ thread_safe (0.3.5)
129
+ tzinfo (1.2.2)
130
+ thread_safe (~> 0.1)
131
+
132
+ PLATFORMS
133
+ ruby
134
+
135
+ DEPENDENCIES
136
+ appraisal
137
+ beespew!
138
+ rails (~> 4.2.0)
139
+ rspec-html-matchers
140
+ rspec-rails (>= 3.0.0)
141
+ sqlite3
142
+
143
+ BUNDLED WITH
144
+ 1.10.6
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 5.0.0"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,151 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ beespew (1.0.0)
5
+ rails (>= 4.0, <= 5.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actioncable (5.0.0)
11
+ actionpack (= 5.0.0)
12
+ nio4r (~> 1.2)
13
+ websocket-driver (~> 0.6.1)
14
+ actionmailer (5.0.0)
15
+ actionpack (= 5.0.0)
16
+ actionview (= 5.0.0)
17
+ activejob (= 5.0.0)
18
+ mail (~> 2.5, >= 2.5.4)
19
+ rails-dom-testing (~> 2.0)
20
+ actionpack (5.0.0)
21
+ actionview (= 5.0.0)
22
+ activesupport (= 5.0.0)
23
+ rack (~> 2.0)
24
+ rack-test (~> 0.6.3)
25
+ rails-dom-testing (~> 2.0)
26
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
27
+ actionview (5.0.0)
28
+ activesupport (= 5.0.0)
29
+ builder (~> 3.1)
30
+ erubis (~> 2.7.0)
31
+ rails-dom-testing (~> 2.0)
32
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
33
+ activejob (5.0.0)
34
+ activesupport (= 5.0.0)
35
+ globalid (>= 0.3.6)
36
+ activemodel (5.0.0)
37
+ activesupport (= 5.0.0)
38
+ activerecord (5.0.0)
39
+ activemodel (= 5.0.0)
40
+ activesupport (= 5.0.0)
41
+ arel (~> 7.0)
42
+ activesupport (5.0.0)
43
+ concurrent-ruby (~> 1.0, >= 1.0.2)
44
+ i18n (~> 0.7)
45
+ minitest (~> 5.1)
46
+ tzinfo (~> 1.1)
47
+ appraisal (2.1.0)
48
+ bundler
49
+ rake
50
+ thor (>= 0.14.0)
51
+ arel (7.1.4)
52
+ builder (3.2.2)
53
+ concurrent-ruby (1.0.2)
54
+ diff-lcs (1.2.5)
55
+ erubis (2.7.0)
56
+ globalid (0.3.7)
57
+ activesupport (>= 4.1.0)
58
+ i18n (0.7.0)
59
+ loofah (2.0.3)
60
+ nokogiri (>= 1.5.9)
61
+ mail (2.6.4)
62
+ mime-types (>= 1.16, < 4)
63
+ method_source (0.8.2)
64
+ mime-types (3.1)
65
+ mime-types-data (~> 3.2015)
66
+ mime-types-data (3.2016.0521)
67
+ mini_portile2 (2.1.0)
68
+ minitest (5.9.1)
69
+ nio4r (1.2.1)
70
+ nokogiri (1.6.8.1)
71
+ mini_portile2 (~> 2.1.0)
72
+ rack (2.0.1)
73
+ rack-test (0.6.3)
74
+ rack (>= 1.0)
75
+ rails (5.0.0)
76
+ actioncable (= 5.0.0)
77
+ actionmailer (= 5.0.0)
78
+ actionpack (= 5.0.0)
79
+ actionview (= 5.0.0)
80
+ activejob (= 5.0.0)
81
+ activemodel (= 5.0.0)
82
+ activerecord (= 5.0.0)
83
+ activesupport (= 5.0.0)
84
+ bundler (>= 1.3.0, < 2.0)
85
+ railties (= 5.0.0)
86
+ sprockets-rails (>= 2.0.0)
87
+ rails-dom-testing (2.0.1)
88
+ activesupport (>= 4.2.0, < 6.0)
89
+ nokogiri (~> 1.6.0)
90
+ rails-html-sanitizer (1.0.3)
91
+ loofah (~> 2.0)
92
+ railties (5.0.0)
93
+ actionpack (= 5.0.0)
94
+ activesupport (= 5.0.0)
95
+ method_source
96
+ rake (>= 0.8.7)
97
+ thor (>= 0.18.1, < 2.0)
98
+ rake (11.3.0)
99
+ rspec (3.5.0)
100
+ rspec-core (~> 3.5.0)
101
+ rspec-expectations (~> 3.5.0)
102
+ rspec-mocks (~> 3.5.0)
103
+ rspec-core (3.5.4)
104
+ rspec-support (~> 3.5.0)
105
+ rspec-expectations (3.5.0)
106
+ diff-lcs (>= 1.2.0, < 2.0)
107
+ rspec-support (~> 3.5.0)
108
+ rspec-html-matchers (0.8.1)
109
+ nokogiri (~> 1)
110
+ rspec (>= 3.0.0.a, < 4)
111
+ rspec-mocks (3.5.0)
112
+ diff-lcs (>= 1.2.0, < 2.0)
113
+ rspec-support (~> 3.5.0)
114
+ rspec-rails (3.5.2)
115
+ actionpack (>= 3.0)
116
+ activesupport (>= 3.0)
117
+ railties (>= 3.0)
118
+ rspec-core (~> 3.5.0)
119
+ rspec-expectations (~> 3.5.0)
120
+ rspec-mocks (~> 3.5.0)
121
+ rspec-support (~> 3.5.0)
122
+ rspec-support (3.5.0)
123
+ sprockets (3.7.0)
124
+ concurrent-ruby (~> 1.0)
125
+ rack (> 1, < 3)
126
+ sprockets-rails (3.2.0)
127
+ actionpack (>= 4.0)
128
+ activesupport (>= 4.0)
129
+ sprockets (>= 3.0.0)
130
+ sqlite3 (1.3.12)
131
+ thor (0.19.1)
132
+ thread_safe (0.3.5)
133
+ tzinfo (1.2.2)
134
+ thread_safe (~> 0.1)
135
+ websocket-driver (0.6.4)
136
+ websocket-extensions (>= 0.1.0)
137
+ websocket-extensions (0.1.2)
138
+
139
+ PLATFORMS
140
+ ruby
141
+
142
+ DEPENDENCIES
143
+ appraisal
144
+ beespew!
145
+ rails (~> 5.0.0)
146
+ rspec-html-matchers
147
+ rspec-rails (>= 3.0.0)
148
+ sqlite3
149
+
150
+ BUNDLED WITH
151
+ 1.10.6
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Beespew
2
3
  class Engine < ::Rails::Engine
3
4
  isolate_namespace Beespew
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Beespew
2
3
  class FormBuilder < ActionView::Helpers::FormBuilder
3
4
 
data/lib/beespew/model.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Beespew
2
3
  module Model
3
4
  extend ActiveSupport::Concern
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Beespew
2
- VERSION = '1.0.0'.freeze
3
+ VERSION = '1.0.1'
3
4
  end
data/lib/beespew.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'beespew/engine'
2
3
  require 'beespew/model'
3
4
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beespew
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carsten Zimmermann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-06 00:00:00.000000000 Z
11
+ date: 2017-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -17,9 +17,9 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '4.0'
20
- - - "<="
20
+ - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '5.0'
22
+ version: '5.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,9 +27,9 @@ dependencies:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
29
  version: '4.0'
30
- - - "<="
30
+ - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '5.0'
32
+ version: '5.1'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: sqlite3
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -72,6 +72,20 @@ dependencies:
72
72
  - - ">="
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: appraisal
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
75
89
  description: Beespew is a naive spam protection plugin for rails using a honeypot
76
90
  email:
77
91
  - carsten.zimmermann@absolventa.de
@@ -84,6 +98,7 @@ files:
84
98
  - ".ruby-gemset"
85
99
  - ".ruby-version"
86
100
  - ".travis.yml"
101
+ - Appraisals
87
102
  - Gemfile
88
103
  - MIT-LICENSE
89
104
  - README.md
@@ -91,6 +106,10 @@ files:
91
106
  - app/assets/stylesheets/beespew/beespew.css
92
107
  - beespew.gemspec
93
108
  - config/locales/de.yml
109
+ - gemfiles/rails_4.2.gemfile
110
+ - gemfiles/rails_4.2.gemfile.lock
111
+ - gemfiles/rails_5.0.gemfile
112
+ - gemfiles/rails_5.0.gemfile.lock
94
113
  - lib/beespew.rb
95
114
  - lib/beespew/engine.rb
96
115
  - lib/beespew/form_builder.rb
@@ -157,7 +176,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
157
176
  requirements:
158
177
  - - ">="
159
178
  - !ruby/object:Gem::Version
160
- version: '2.1'
179
+ version: 2.2.2
161
180
  required_rubygems_version: !ruby/object:Gem::Requirement
162
181
  requirements:
163
182
  - - ">="