tiun 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +21 -0
- data/.rspec +3 -0
- data/.ruby-gemset +1 -0
- data/.travis.yml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +43 -0
- data/Rakefile +6 -0
- data/TODO +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/tiun +5 -0
- data/lib/config/routes.rb +16 -0
- data/lib/layouts/tiun.html.erb +10 -0
- data/lib/tiun/actor/validate.rb +9 -0
- data/lib/tiun/actor.rb +34 -0
- data/lib/tiun/attributes.rb +33 -0
- data/lib/tiun/autocontroller.rb.erb +18 -0
- data/lib/tiun/autolistserializer.rb.erb +9 -0
- data/lib/tiun/automigration.rb.erb +11 -0
- data/lib/tiun/automodel.rb.erb +7 -0
- data/lib/tiun/autopolicy.rb.erb +5 -0
- data/lib/tiun/autoserializer.rb.erb +9 -0
- data/lib/tiun/base.rb +371 -0
- data/lib/tiun/cli.rb +88 -0
- data/lib/tiun/core_controller.rb +6 -0
- data/lib/tiun/core_helper.rb +13 -0
- data/lib/tiun/engine.rb +35 -0
- data/lib/tiun/list_serializer.rb +20 -0
- data/lib/tiun/meta_controller.rb +13 -0
- data/lib/tiun/migration.rb +105 -0
- data/lib/tiun/mixins.rb +48 -0
- data/lib/tiun/model.rb +108 -0
- data/lib/tiun/policy.rb +71 -0
- data/lib/tiun/serializer.rb +31 -0
- data/lib/tiun/version.rb +5 -0
- data/lib/tiun.rb +491 -0
- data/tiun.gemspec +54 -0
- metadata +343 -0
data/tiun.gemspec
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "tiun/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "tiun"
|
8
|
+
spec.version = Tiun::VERSION
|
9
|
+
spec.authors = ["Malo Skrylevo"]
|
10
|
+
spec.email = ["majioa@yandex.ru"]
|
11
|
+
|
12
|
+
spec.summary = %q{Tiun is a backend gem for admin rails application.}
|
13
|
+
spec.description = %q{Tiun is an old russian high level manager for a city from a prince or boyar. According the repo tiun is a backend gem for admin rails application.}
|
14
|
+
spec.homepage = "https://github.com/majioa/tiun"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
21
|
+
else
|
22
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
23
|
+
"public gem pushes."
|
24
|
+
end
|
25
|
+
|
26
|
+
# Specify which files should be added to the gem when it is released.
|
27
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
28
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
29
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
30
|
+
end
|
31
|
+
spec.bindir = "exe"
|
32
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
33
|
+
spec.require_paths = ["lib"]
|
34
|
+
|
35
|
+
spec.add_development_dependency "bundler", "~> 2.0"
|
36
|
+
spec.add_development_dependency "rake", "~> 12.0", ">= 12.3.3"
|
37
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
38
|
+
spec.add_development_dependency "pundit", "~> 1.1"
|
39
|
+
spec.add_development_dependency "pry", "~> 0.11"
|
40
|
+
spec.add_development_dependency "rails", "~> 5.2"
|
41
|
+
spec.add_development_dependency "rspec-rails", "~> 4.0.1"
|
42
|
+
spec.add_development_dependency "pg", "~> 1.2"
|
43
|
+
spec.add_development_dependency "sqlite3", "~> 1.3.6"
|
44
|
+
spec.add_development_dependency "bootsnap", "~> 1.4"
|
45
|
+
spec.add_development_dependency "listen", "~> 3.0"
|
46
|
+
spec.add_development_dependency "cucumber-rails"
|
47
|
+
spec.add_development_dependency "shoulda-matchers-cucumber", "~> 1.0"
|
48
|
+
spec.add_development_dependency "match_hash", "~> 0.1.2"
|
49
|
+
spec.add_development_dependency "dawnscanner", "~> 1.6"
|
50
|
+
# spec.add_development_dependency "active_model_serializers", "~> 0.10", ">= 0.10.6"
|
51
|
+
spec.add_runtime_dependency "activesupport", ">= 4.1.0"
|
52
|
+
spec.add_runtime_dependency "railties", ">= 4.1.0"
|
53
|
+
spec.add_runtime_dependency "jsonize", "~> 0.2"
|
54
|
+
end
|
metadata
ADDED
@@ -0,0 +1,343 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tiun
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Malo Skrylevo
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-12-31 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '12.0'
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 12.3.3
|
37
|
+
type: :development
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - "~>"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '12.0'
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 12.3.3
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rspec
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '3.0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '3.0'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: pundit
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '1.1'
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '1.1'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: pry
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0.11'
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - "~>"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0.11'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: rails
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '5.2'
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - "~>"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '5.2'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: rspec-rails
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 4.0.1
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: 4.0.1
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: pg
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '1.2'
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '1.2'
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: sqlite3
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - "~>"
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: 1.3.6
|
138
|
+
type: :development
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - "~>"
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: 1.3.6
|
145
|
+
- !ruby/object:Gem::Dependency
|
146
|
+
name: bootsnap
|
147
|
+
requirement: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - "~>"
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '1.4'
|
152
|
+
type: :development
|
153
|
+
prerelease: false
|
154
|
+
version_requirements: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - "~>"
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '1.4'
|
159
|
+
- !ruby/object:Gem::Dependency
|
160
|
+
name: listen
|
161
|
+
requirement: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - "~>"
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '3.0'
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - "~>"
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '3.0'
|
173
|
+
- !ruby/object:Gem::Dependency
|
174
|
+
name: cucumber-rails
|
175
|
+
requirement: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - ">="
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '0'
|
180
|
+
type: :development
|
181
|
+
prerelease: false
|
182
|
+
version_requirements: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - ">="
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '0'
|
187
|
+
- !ruby/object:Gem::Dependency
|
188
|
+
name: shoulda-matchers-cucumber
|
189
|
+
requirement: !ruby/object:Gem::Requirement
|
190
|
+
requirements:
|
191
|
+
- - "~>"
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
version: '1.0'
|
194
|
+
type: :development
|
195
|
+
prerelease: false
|
196
|
+
version_requirements: !ruby/object:Gem::Requirement
|
197
|
+
requirements:
|
198
|
+
- - "~>"
|
199
|
+
- !ruby/object:Gem::Version
|
200
|
+
version: '1.0'
|
201
|
+
- !ruby/object:Gem::Dependency
|
202
|
+
name: match_hash
|
203
|
+
requirement: !ruby/object:Gem::Requirement
|
204
|
+
requirements:
|
205
|
+
- - "~>"
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
version: 0.1.2
|
208
|
+
type: :development
|
209
|
+
prerelease: false
|
210
|
+
version_requirements: !ruby/object:Gem::Requirement
|
211
|
+
requirements:
|
212
|
+
- - "~>"
|
213
|
+
- !ruby/object:Gem::Version
|
214
|
+
version: 0.1.2
|
215
|
+
- !ruby/object:Gem::Dependency
|
216
|
+
name: dawnscanner
|
217
|
+
requirement: !ruby/object:Gem::Requirement
|
218
|
+
requirements:
|
219
|
+
- - "~>"
|
220
|
+
- !ruby/object:Gem::Version
|
221
|
+
version: '1.6'
|
222
|
+
type: :development
|
223
|
+
prerelease: false
|
224
|
+
version_requirements: !ruby/object:Gem::Requirement
|
225
|
+
requirements:
|
226
|
+
- - "~>"
|
227
|
+
- !ruby/object:Gem::Version
|
228
|
+
version: '1.6'
|
229
|
+
- !ruby/object:Gem::Dependency
|
230
|
+
name: activesupport
|
231
|
+
requirement: !ruby/object:Gem::Requirement
|
232
|
+
requirements:
|
233
|
+
- - ">="
|
234
|
+
- !ruby/object:Gem::Version
|
235
|
+
version: 4.1.0
|
236
|
+
type: :runtime
|
237
|
+
prerelease: false
|
238
|
+
version_requirements: !ruby/object:Gem::Requirement
|
239
|
+
requirements:
|
240
|
+
- - ">="
|
241
|
+
- !ruby/object:Gem::Version
|
242
|
+
version: 4.1.0
|
243
|
+
- !ruby/object:Gem::Dependency
|
244
|
+
name: railties
|
245
|
+
requirement: !ruby/object:Gem::Requirement
|
246
|
+
requirements:
|
247
|
+
- - ">="
|
248
|
+
- !ruby/object:Gem::Version
|
249
|
+
version: 4.1.0
|
250
|
+
type: :runtime
|
251
|
+
prerelease: false
|
252
|
+
version_requirements: !ruby/object:Gem::Requirement
|
253
|
+
requirements:
|
254
|
+
- - ">="
|
255
|
+
- !ruby/object:Gem::Version
|
256
|
+
version: 4.1.0
|
257
|
+
- !ruby/object:Gem::Dependency
|
258
|
+
name: jsonize
|
259
|
+
requirement: !ruby/object:Gem::Requirement
|
260
|
+
requirements:
|
261
|
+
- - "~>"
|
262
|
+
- !ruby/object:Gem::Version
|
263
|
+
version: '0.2'
|
264
|
+
type: :runtime
|
265
|
+
prerelease: false
|
266
|
+
version_requirements: !ruby/object:Gem::Requirement
|
267
|
+
requirements:
|
268
|
+
- - "~>"
|
269
|
+
- !ruby/object:Gem::Version
|
270
|
+
version: '0.2'
|
271
|
+
description: Tiun is an old russian high level manager for a city from a prince or
|
272
|
+
boyar. According the repo tiun is a backend gem for admin rails application.
|
273
|
+
email:
|
274
|
+
- majioa@yandex.ru
|
275
|
+
executables:
|
276
|
+
- tiun
|
277
|
+
extensions: []
|
278
|
+
extra_rdoc_files: []
|
279
|
+
files:
|
280
|
+
- ".gitignore"
|
281
|
+
- ".rspec"
|
282
|
+
- ".ruby-gemset"
|
283
|
+
- ".travis.yml"
|
284
|
+
- CODE_OF_CONDUCT.md
|
285
|
+
- Gemfile
|
286
|
+
- LICENSE.txt
|
287
|
+
- README.md
|
288
|
+
- Rakefile
|
289
|
+
- TODO
|
290
|
+
- bin/console
|
291
|
+
- bin/setup
|
292
|
+
- exe/tiun
|
293
|
+
- lib/config/routes.rb
|
294
|
+
- lib/layouts/tiun.html.erb
|
295
|
+
- lib/tiun.rb
|
296
|
+
- lib/tiun/actor.rb
|
297
|
+
- lib/tiun/actor/validate.rb
|
298
|
+
- lib/tiun/attributes.rb
|
299
|
+
- lib/tiun/autocontroller.rb.erb
|
300
|
+
- lib/tiun/autolistserializer.rb.erb
|
301
|
+
- lib/tiun/automigration.rb.erb
|
302
|
+
- lib/tiun/automodel.rb.erb
|
303
|
+
- lib/tiun/autopolicy.rb.erb
|
304
|
+
- lib/tiun/autoserializer.rb.erb
|
305
|
+
- lib/tiun/base.rb
|
306
|
+
- lib/tiun/cli.rb
|
307
|
+
- lib/tiun/core_controller.rb
|
308
|
+
- lib/tiun/core_helper.rb
|
309
|
+
- lib/tiun/engine.rb
|
310
|
+
- lib/tiun/list_serializer.rb
|
311
|
+
- lib/tiun/meta_controller.rb
|
312
|
+
- lib/tiun/migration.rb
|
313
|
+
- lib/tiun/mixins.rb
|
314
|
+
- lib/tiun/model.rb
|
315
|
+
- lib/tiun/policy.rb
|
316
|
+
- lib/tiun/serializer.rb
|
317
|
+
- lib/tiun/version.rb
|
318
|
+
- tiun.gemspec
|
319
|
+
homepage: https://github.com/majioa/tiun
|
320
|
+
licenses:
|
321
|
+
- MIT
|
322
|
+
metadata:
|
323
|
+
allowed_push_host: https://rubygems.org
|
324
|
+
post_install_message:
|
325
|
+
rdoc_options: []
|
326
|
+
require_paths:
|
327
|
+
- lib
|
328
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
329
|
+
requirements:
|
330
|
+
- - ">="
|
331
|
+
- !ruby/object:Gem::Version
|
332
|
+
version: '0'
|
333
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
334
|
+
requirements:
|
335
|
+
- - ">="
|
336
|
+
- !ruby/object:Gem::Version
|
337
|
+
version: '0'
|
338
|
+
requirements: []
|
339
|
+
rubygems_version: 3.3.26
|
340
|
+
signing_key:
|
341
|
+
specification_version: 4
|
342
|
+
summary: Tiun is a backend gem for admin rails application.
|
343
|
+
test_files: []
|