the_moderator 0.1.3 → 0.1.4

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
  SHA256:
3
- metadata.gz: 0e1c0f542a78954963af1fc7afa1110cbfba37b336f3b39bb3479aa653bb6ab2
4
- data.tar.gz: 34a71ad818458e35083c8d1665c73f74ae81062fc1fb129521e6cee5b6c88b3e
3
+ metadata.gz: 81498c28444c75f687ecf2abacfd08c83b2a486d8210be8dac7d191cf2cfdf0b
4
+ data.tar.gz: 3ee4bc90d11bab4ccec3f0a8de6c65095680b75e64539e3e7c47a4499f3b33dd
5
5
  SHA512:
6
- metadata.gz: abd399828478cfb24a3e741b868e79b8dc37eb281c1ce3817e88dffe5ff87e8012256f6e8b4100edc2ede4103aebe0196e761b220d97f1b345652a2086f733c2
7
- data.tar.gz: f2022730b418412ea9360ce8887e5639ca53496bd3a03dc694fb4f6b2abe344feb39e10118d24b88d1377f0e5b4aae3ae8163f27ca32404abcf7e366ce8841fa
6
+ metadata.gz: f4c185285a0961caf5565f6cb7d0e1545b2599d7820a50a49289471988c587a1c3a5c31ee9be5648211645c5a1a7dc82c299bc9138d75b8854bd6e23c6fd97b2
7
+ data.tar.gz: ad41114fd1ab47f4609af45343640a0162391451ad0a08cbb8700e8b31565e908947e051cec5c275c9532e30bfb8aaab0258e01ea1633016c2eeb6690703703d
data/.gitignore CHANGED
@@ -16,4 +16,5 @@ spec/reports
16
16
  test/tmp
17
17
  test/version_tmp
18
18
  tmp
19
+ vendor/bundle
19
20
  *.s[a-w][a-z]
data/config.ru ADDED
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "rubygems"
4
+ require "bundler"
5
+
6
+ Bundler.require :default, :development
7
+
8
+ Combustion.initialize! :all
9
+ run Combustion::Application
@@ -16,7 +16,7 @@ module TheModerator
16
16
  def accept
17
17
  self.class.transaction do
18
18
  destroy
19
- moderatable.update_attributes(data)
19
+ moderatable.update(data)
20
20
  end
21
21
  end
22
22
 
@@ -1,3 +1,3 @@
1
1
  module TheModerator
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
File without changes
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Rails.application.routes.draw do
2
- #
4
+ # Add your own routes here, or remove this file if you don't have need for it.
3
5
  end
@@ -0,0 +1,3 @@
1
+ test:
2
+ service: Disk
3
+ root: /home/guillaume/prog/pro/lafourmiimmo/the_moderator/tmp/storage
@@ -1,4 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  ActiveRecord::Schema.define do
4
+ # Set up any tables you need to exist for your test suite that don't belong
5
+ # in migrations.
6
+
2
7
  create_table :categories, :force => true do |t|
3
8
  t.string :name
4
9
  t.timestamps
File without changes
data/spec/spec_helper.rb CHANGED
@@ -6,7 +6,6 @@ require 'the_moderator'
6
6
  Combustion.initialize! :active_record, :active_model
7
7
 
8
8
  RSpec.configure do |config|
9
- config.treat_symbols_as_metadata_keys_with_true_values = true
10
9
  config.run_all_when_everything_filtered = true
11
10
  config.filter_run :focus
12
11
 
@@ -18,14 +18,14 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "activemodel", ">= 3.2.0", "< 5.3"
22
- spec.add_dependency "activerecord", ">= 3.2.0", "< 5.3"
23
- spec.add_dependency "activesupport", ">= 3.2.0", "< 5.3"
21
+ spec.add_dependency "activemodel", ">= 3.2.0", "< 7"
22
+ spec.add_dependency "activerecord", ">= 3.2.0", "< 7"
23
+ spec.add_dependency "activesupport", ">= 3.2.0", "< 7"
24
24
 
25
- spec.add_development_dependency "bundler", "~> 1.3"
26
- spec.add_development_dependency "rake", "~> 10.3"
25
+ spec.add_development_dependency "bundler", "~> 2.2"
26
+ spec.add_development_dependency "rake", "~> 13.0"
27
27
 
28
- spec.add_development_dependency "rspec", "~> 2.14"
29
- spec.add_development_dependency "combustion", "~> 0.5"
28
+ spec.add_development_dependency "rspec", "~> 3.10"
29
+ spec.add_development_dependency "combustion", "~> 1.3"
30
30
  spec.add_development_dependency "sqlite3", "~> 1.3"
31
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: the_moderator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guillaume DOTT
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-27 00:00:00.000000000 Z
11
+ date: 2021-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 3.2.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '5.3'
22
+ version: '7'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 3.2.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '5.3'
32
+ version: '7'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: activerecord
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: 3.2.0
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: '5.3'
42
+ version: '7'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,7 +49,7 @@ dependencies:
49
49
  version: 3.2.0
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: '5.3'
52
+ version: '7'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: activesupport
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,7 @@ dependencies:
59
59
  version: 3.2.0
60
60
  - - "<"
61
61
  - !ruby/object:Gem::Version
62
- version: '5.3'
62
+ version: '7'
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
@@ -69,63 +69,63 @@ dependencies:
69
69
  version: 3.2.0
70
70
  - - "<"
71
71
  - !ruby/object:Gem::Version
72
- version: '5.3'
72
+ version: '7'
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: bundler
75
75
  requirement: !ruby/object:Gem::Requirement
76
76
  requirements:
77
77
  - - "~>"
78
78
  - !ruby/object:Gem::Version
79
- version: '1.3'
79
+ version: '2.2'
80
80
  type: :development
81
81
  prerelease: false
82
82
  version_requirements: !ruby/object:Gem::Requirement
83
83
  requirements:
84
84
  - - "~>"
85
85
  - !ruby/object:Gem::Version
86
- version: '1.3'
86
+ version: '2.2'
87
87
  - !ruby/object:Gem::Dependency
88
88
  name: rake
89
89
  requirement: !ruby/object:Gem::Requirement
90
90
  requirements:
91
91
  - - "~>"
92
92
  - !ruby/object:Gem::Version
93
- version: '10.3'
93
+ version: '13.0'
94
94
  type: :development
95
95
  prerelease: false
96
96
  version_requirements: !ruby/object:Gem::Requirement
97
97
  requirements:
98
98
  - - "~>"
99
99
  - !ruby/object:Gem::Version
100
- version: '10.3'
100
+ version: '13.0'
101
101
  - !ruby/object:Gem::Dependency
102
102
  name: rspec
103
103
  requirement: !ruby/object:Gem::Requirement
104
104
  requirements:
105
105
  - - "~>"
106
106
  - !ruby/object:Gem::Version
107
- version: '2.14'
107
+ version: '3.10'
108
108
  type: :development
109
109
  prerelease: false
110
110
  version_requirements: !ruby/object:Gem::Requirement
111
111
  requirements:
112
112
  - - "~>"
113
113
  - !ruby/object:Gem::Version
114
- version: '2.14'
114
+ version: '3.10'
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: combustion
117
117
  requirement: !ruby/object:Gem::Requirement
118
118
  requirements:
119
119
  - - "~>"
120
120
  - !ruby/object:Gem::Version
121
- version: '0.5'
121
+ version: '1.3'
122
122
  type: :development
123
123
  prerelease: false
124
124
  version_requirements: !ruby/object:Gem::Requirement
125
125
  requirements:
126
126
  - - "~>"
127
127
  - !ruby/object:Gem::Version
128
- version: '0.5'
128
+ version: '1.3'
129
129
  - !ruby/object:Gem::Dependency
130
130
  name: sqlite3
131
131
  requirement: !ruby/object:Gem::Requirement
@@ -154,6 +154,7 @@ files:
154
154
  - LICENSE.txt
155
155
  - README.md
156
156
  - Rakefile
157
+ - config.ru
157
158
  - lib/generators/the_moderator/install/USAGE
158
159
  - lib/generators/the_moderator/install/install_generator.rb
159
160
  - lib/generators/the_moderator/install/templates/migration.rb
@@ -163,14 +164,17 @@ files:
163
164
  - lib/the_moderator/model.rb
164
165
  - lib/the_moderator/moderation_model.rb
165
166
  - lib/the_moderator/version.rb
167
+ - spec/internal/app/assets/config/manifest.js
166
168
  - spec/internal/app/models/category.rb
167
169
  - spec/internal/app/models/link.rb
168
170
  - spec/internal/app/models/moderation.rb
169
171
  - spec/internal/app/models/page.rb
170
172
  - spec/internal/config/database.yml
171
173
  - spec/internal/config/routes.rb
174
+ - spec/internal/config/storage.yml
172
175
  - spec/internal/db/schema.rb
173
176
  - spec/internal/log/.gitignore
177
+ - spec/internal/public/favicon.ico
174
178
  - spec/spec_helper.rb
175
179
  - spec/the_moderator/model_spec.rb
176
180
  - spec/the_moderator/moderation_model_spec.rb
@@ -179,7 +183,7 @@ homepage: https://github.com/gdott9/the_moderator
179
183
  licenses:
180
184
  - MIT
181
185
  metadata: {}
182
- post_install_message:
186
+ post_install_message:
183
187
  rdoc_options: []
184
188
  require_paths:
185
189
  - lib
@@ -194,21 +198,23 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
198
  - !ruby/object:Gem::Version
195
199
  version: '0'
196
200
  requirements: []
197
- rubyforge_project:
198
- rubygems_version: 2.7.6
199
- signing_key:
201
+ rubygems_version: 3.2.21
202
+ signing_key:
200
203
  specification_version: 4
201
204
  summary: Moderate fields before their insertion in the database by serializing and
202
205
  saving them into a separate 'moderations' table.
203
206
  test_files:
207
+ - spec/internal/app/assets/config/manifest.js
204
208
  - spec/internal/app/models/category.rb
205
209
  - spec/internal/app/models/link.rb
206
210
  - spec/internal/app/models/moderation.rb
207
211
  - spec/internal/app/models/page.rb
208
212
  - spec/internal/config/database.yml
209
213
  - spec/internal/config/routes.rb
214
+ - spec/internal/config/storage.yml
210
215
  - spec/internal/db/schema.rb
211
216
  - spec/internal/log/.gitignore
217
+ - spec/internal/public/favicon.ico
212
218
  - spec/spec_helper.rb
213
219
  - spec/the_moderator/model_spec.rb
214
220
  - spec/the_moderator/moderation_model_spec.rb