super_settings 0.0.0.rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +9 -0
  3. data/MIT-LICENSE +20 -0
  4. data/README.md +313 -0
  5. data/VERSION +1 -0
  6. data/app/helpers/super_settings/settings_helper.rb +32 -0
  7. data/app/views/layouts/super_settings/settings.html.erb +20 -0
  8. data/config/routes.rb +13 -0
  9. data/db/migrate/20210414004553_create_super_settings.rb +34 -0
  10. data/lib/super_settings/application/api.js +88 -0
  11. data/lib/super_settings/application/helper.rb +119 -0
  12. data/lib/super_settings/application/images/edit.svg +1 -0
  13. data/lib/super_settings/application/images/info.svg +1 -0
  14. data/lib/super_settings/application/images/plus.svg +1 -0
  15. data/lib/super_settings/application/images/slash.svg +1 -0
  16. data/lib/super_settings/application/images/trash.svg +1 -0
  17. data/lib/super_settings/application/index.html.erb +169 -0
  18. data/lib/super_settings/application/layout.html.erb +22 -0
  19. data/lib/super_settings/application/layout_styles.css +193 -0
  20. data/lib/super_settings/application/scripts.js +718 -0
  21. data/lib/super_settings/application/styles.css +122 -0
  22. data/lib/super_settings/application.rb +38 -0
  23. data/lib/super_settings/attributes.rb +24 -0
  24. data/lib/super_settings/coerce.rb +66 -0
  25. data/lib/super_settings/configuration.rb +144 -0
  26. data/lib/super_settings/controller_actions.rb +81 -0
  27. data/lib/super_settings/encryption.rb +76 -0
  28. data/lib/super_settings/engine.rb +70 -0
  29. data/lib/super_settings/history_item.rb +26 -0
  30. data/lib/super_settings/local_cache.rb +306 -0
  31. data/lib/super_settings/rack_middleware.rb +210 -0
  32. data/lib/super_settings/rest_api.rb +195 -0
  33. data/lib/super_settings/setting.rb +599 -0
  34. data/lib/super_settings/storage/active_record_storage.rb +123 -0
  35. data/lib/super_settings/storage/http_storage.rb +279 -0
  36. data/lib/super_settings/storage/redis_storage.rb +293 -0
  37. data/lib/super_settings/storage/test_storage.rb +158 -0
  38. data/lib/super_settings/storage.rb +254 -0
  39. data/lib/super_settings/version.rb +5 -0
  40. data/lib/super_settings.rb +213 -0
  41. data/lib/tasks/super_settings.rake +9 -0
  42. data/super_settings.gemspec +35 -0
  43. metadata +113 -0
metadata ADDED
@@ -0,0 +1,113 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: super_settings
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0.rc1
5
+ platform: ruby
6
+ authors:
7
+ - Brian Durand
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-03-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: secret_keys
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description:
42
+ email:
43
+ - bbdurand@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - CHANGELOG.md
49
+ - MIT-LICENSE
50
+ - README.md
51
+ - VERSION
52
+ - app/helpers/super_settings/settings_helper.rb
53
+ - app/views/layouts/super_settings/settings.html.erb
54
+ - config/routes.rb
55
+ - db/migrate/20210414004553_create_super_settings.rb
56
+ - lib/super_settings.rb
57
+ - lib/super_settings/application.rb
58
+ - lib/super_settings/application/api.js
59
+ - lib/super_settings/application/helper.rb
60
+ - lib/super_settings/application/images/edit.svg
61
+ - lib/super_settings/application/images/info.svg
62
+ - lib/super_settings/application/images/plus.svg
63
+ - lib/super_settings/application/images/slash.svg
64
+ - lib/super_settings/application/images/trash.svg
65
+ - lib/super_settings/application/index.html.erb
66
+ - lib/super_settings/application/layout.html.erb
67
+ - lib/super_settings/application/layout_styles.css
68
+ - lib/super_settings/application/scripts.js
69
+ - lib/super_settings/application/styles.css
70
+ - lib/super_settings/attributes.rb
71
+ - lib/super_settings/coerce.rb
72
+ - lib/super_settings/configuration.rb
73
+ - lib/super_settings/controller_actions.rb
74
+ - lib/super_settings/encryption.rb
75
+ - lib/super_settings/engine.rb
76
+ - lib/super_settings/history_item.rb
77
+ - lib/super_settings/local_cache.rb
78
+ - lib/super_settings/rack_middleware.rb
79
+ - lib/super_settings/rest_api.rb
80
+ - lib/super_settings/setting.rb
81
+ - lib/super_settings/storage.rb
82
+ - lib/super_settings/storage/active_record_storage.rb
83
+ - lib/super_settings/storage/http_storage.rb
84
+ - lib/super_settings/storage/redis_storage.rb
85
+ - lib/super_settings/storage/test_storage.rb
86
+ - lib/super_settings/version.rb
87
+ - lib/tasks/super_settings.rake
88
+ - super_settings.gemspec
89
+ homepage: https://github.com/bdurand/super_settings
90
+ licenses:
91
+ - MIT
92
+ metadata: {}
93
+ post_install_message:
94
+ rdoc_options: []
95
+ require_paths:
96
+ - lib
97
+ required_ruby_version: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: '2.5'
102
+ required_rubygems_version: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - ">"
105
+ - !ruby/object:Gem::Version
106
+ version: 1.3.1
107
+ requirements: []
108
+ rubygems_version: 3.2.23
109
+ signing_key:
110
+ specification_version: 4
111
+ summary: Fast access runtime settings for a Rails application with an included UI
112
+ and API for administration.
113
+ test_files: []