yamls 0.1.0 → 0.1.4

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 (80) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +54 -6
  3. data/.rubocop.yml +10 -1
  4. data/Gemfile +3 -0
  5. data/README.md +3 -0
  6. data/example/rails5/.gitignore +28 -0
  7. data/example/rails5/.ruby-version +1 -0
  8. data/example/rails5/Gemfile +47 -0
  9. data/example/rails5/README.md +24 -0
  10. data/example/rails5/Rakefile +6 -0
  11. data/example/rails5/app/channels/application_cable/channel.rb +4 -0
  12. data/example/rails5/app/channels/application_cable/connection.rb +4 -0
  13. data/example/rails5/app/controllers/application_controller.rb +2 -0
  14. data/example/rails5/app/controllers/books_controller.rb +53 -0
  15. data/example/rails5/app/controllers/concerns/.keep +0 -0
  16. data/example/rails5/app/controllers/people_controller.rb +55 -0
  17. data/example/rails5/app/jobs/application_job.rb +2 -0
  18. data/example/rails5/app/mailers/application_mailer.rb +4 -0
  19. data/example/rails5/app/models/application_record.rb +3 -0
  20. data/example/rails5/app/models/book.rb +2 -0
  21. data/example/rails5/app/models/concerns/.keep +0 -0
  22. data/example/rails5/app/models/person.rb +2 -0
  23. data/example/rails5/app/parameters/column.yml +11 -0
  24. data/example/rails5/app/views/layouts/mailer.html.erb +13 -0
  25. data/example/rails5/app/views/layouts/mailer.text.erb +1 -0
  26. data/example/rails5/bin/bundle +3 -0
  27. data/example/rails5/bin/rails +9 -0
  28. data/example/rails5/bin/rake +9 -0
  29. data/example/rails5/bin/setup +33 -0
  30. data/example/rails5/bin/spring +17 -0
  31. data/example/rails5/bin/update +28 -0
  32. data/example/rails5/config/application.rb +35 -0
  33. data/example/rails5/config/boot.rb +4 -0
  34. data/example/rails5/config/cable.yml +10 -0
  35. data/example/rails5/config/credentials.yml.enc +1 -0
  36. data/example/rails5/config/database.yml +25 -0
  37. data/example/rails5/config/environment.rb +5 -0
  38. data/example/rails5/config/environments/development.rb +54 -0
  39. data/example/rails5/config/environments/production.rb +85 -0
  40. data/example/rails5/config/environments/test.rb +46 -0
  41. data/example/rails5/config/initializers/application_controller_renderer.rb +8 -0
  42. data/example/rails5/config/initializers/backtrace_silencers.rb +7 -0
  43. data/example/rails5/config/initializers/cors.rb +16 -0
  44. data/example/rails5/config/initializers/filter_parameter_logging.rb +4 -0
  45. data/example/rails5/config/initializers/inflections.rb +16 -0
  46. data/example/rails5/config/initializers/mime_types.rb +4 -0
  47. data/example/rails5/config/initializers/wrap_parameters.rb +14 -0
  48. data/example/rails5/config/locales/en.yml +33 -0
  49. data/example/rails5/config/puma.rb +37 -0
  50. data/example/rails5/config/routes.rb +5 -0
  51. data/example/rails5/config/spring.rb +6 -0
  52. data/example/rails5/config/storage.yml +34 -0
  53. data/example/rails5/config.ru +5 -0
  54. data/example/rails5/db/migrate/20211031043641_create_people.rb +11 -0
  55. data/example/rails5/db/migrate/20211031052741_create_books.rb +11 -0
  56. data/example/rails5/db/schema.rb +31 -0
  57. data/example/rails5/db/seeds.rb +7 -0
  58. data/example/rails5/lib/tasks/.keep +0 -0
  59. data/example/rails5/log/.keep +0 -0
  60. data/example/rails5/public/robots.txt +1 -0
  61. data/example/rails5/storage/.keep +0 -0
  62. data/example/rails5/test/controllers/.keep +0 -0
  63. data/example/rails5/test/controllers/books_controller_test.rb +50 -0
  64. data/example/rails5/test/controllers/people_controller_test.rb +50 -0
  65. data/example/rails5/test/fixtures/.keep +0 -0
  66. data/example/rails5/test/fixtures/books.yml +10 -0
  67. data/example/rails5/test/fixtures/files/.keep +0 -0
  68. data/example/rails5/test/fixtures/people.yml +10 -0
  69. data/example/rails5/test/integration/.keep +0 -0
  70. data/example/rails5/test/test_helper.rb +10 -0
  71. data/example/rails5/tmp/.keep +0 -0
  72. data/lib/yamls/config.rb +1 -0
  73. data/lib/yamls/parameters.rb +1 -0
  74. data/lib/yamls/support/parameters.rb +19 -0
  75. data/lib/yamls/support.rb +8 -0
  76. data/lib/yamls/version.rb +1 -1
  77. data/lib/yamls/yaml_load.rb +1 -0
  78. data/lib/yamls.rb +3 -2
  79. data/yamls.gemspec +1 -1
  80. metadata +70 -2
data/lib/yamls/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Yamls
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.4"
5
5
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Yamls
2
3
  class YamlLoad
3
4
  def initialize(filepath, loader: YAML)
data/lib/yamls.rb CHANGED
@@ -2,8 +2,9 @@
2
2
 
3
3
  require "yaml"
4
4
 
5
- require_relative "yamls/version"
6
- require_relative "yamls/parameters"
5
+ require "yamls/version"
6
+ require "yamls/parameters"
7
+ require "yamls/support"
7
8
 
8
9
  module Yamls
9
10
  end
data/yamls.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
 
11
11
  spec.summary = "Managed Strong Parameters with yaml file."
12
12
  spec.homepage = "https://github.com/TsuMakoto/yamls"
13
- spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
13
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.5")
14
14
 
15
15
  spec.metadata["homepage_uri"] = spec.homepage
16
16
  spec.metadata["source_code_uri"] = "https://github.com/TsuMakoto/yamls"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yamls
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - TsuMakoto
@@ -28,9 +28,77 @@ files:
28
28
  - Rakefile
29
29
  - bin/console
30
30
  - bin/setup
31
+ - example/rails5/.gitignore
32
+ - example/rails5/.ruby-version
33
+ - example/rails5/Gemfile
34
+ - example/rails5/README.md
35
+ - example/rails5/Rakefile
36
+ - example/rails5/app/channels/application_cable/channel.rb
37
+ - example/rails5/app/channels/application_cable/connection.rb
38
+ - example/rails5/app/controllers/application_controller.rb
39
+ - example/rails5/app/controllers/books_controller.rb
40
+ - example/rails5/app/controllers/concerns/.keep
41
+ - example/rails5/app/controllers/people_controller.rb
42
+ - example/rails5/app/jobs/application_job.rb
43
+ - example/rails5/app/mailers/application_mailer.rb
44
+ - example/rails5/app/models/application_record.rb
45
+ - example/rails5/app/models/book.rb
46
+ - example/rails5/app/models/concerns/.keep
47
+ - example/rails5/app/models/person.rb
48
+ - example/rails5/app/parameters/column.yml
49
+ - example/rails5/app/views/layouts/mailer.html.erb
50
+ - example/rails5/app/views/layouts/mailer.text.erb
51
+ - example/rails5/bin/bundle
52
+ - example/rails5/bin/rails
53
+ - example/rails5/bin/rake
54
+ - example/rails5/bin/setup
55
+ - example/rails5/bin/spring
56
+ - example/rails5/bin/update
57
+ - example/rails5/config.ru
58
+ - example/rails5/config/application.rb
59
+ - example/rails5/config/boot.rb
60
+ - example/rails5/config/cable.yml
61
+ - example/rails5/config/credentials.yml.enc
62
+ - example/rails5/config/database.yml
63
+ - example/rails5/config/environment.rb
64
+ - example/rails5/config/environments/development.rb
65
+ - example/rails5/config/environments/production.rb
66
+ - example/rails5/config/environments/test.rb
67
+ - example/rails5/config/initializers/application_controller_renderer.rb
68
+ - example/rails5/config/initializers/backtrace_silencers.rb
69
+ - example/rails5/config/initializers/cors.rb
70
+ - example/rails5/config/initializers/filter_parameter_logging.rb
71
+ - example/rails5/config/initializers/inflections.rb
72
+ - example/rails5/config/initializers/mime_types.rb
73
+ - example/rails5/config/initializers/wrap_parameters.rb
74
+ - example/rails5/config/locales/en.yml
75
+ - example/rails5/config/puma.rb
76
+ - example/rails5/config/routes.rb
77
+ - example/rails5/config/spring.rb
78
+ - example/rails5/config/storage.yml
79
+ - example/rails5/db/migrate/20211031043641_create_people.rb
80
+ - example/rails5/db/migrate/20211031052741_create_books.rb
81
+ - example/rails5/db/schema.rb
82
+ - example/rails5/db/seeds.rb
83
+ - example/rails5/lib/tasks/.keep
84
+ - example/rails5/log/.keep
85
+ - example/rails5/public/robots.txt
86
+ - example/rails5/storage/.keep
87
+ - example/rails5/test/controllers/.keep
88
+ - example/rails5/test/controllers/books_controller_test.rb
89
+ - example/rails5/test/controllers/people_controller_test.rb
90
+ - example/rails5/test/fixtures/.keep
91
+ - example/rails5/test/fixtures/books.yml
92
+ - example/rails5/test/fixtures/files/.keep
93
+ - example/rails5/test/fixtures/people.yml
94
+ - example/rails5/test/integration/.keep
95
+ - example/rails5/test/test_helper.rb
96
+ - example/rails5/tmp/.keep
31
97
  - lib/yamls.rb
32
98
  - lib/yamls/config.rb
33
99
  - lib/yamls/parameters.rb
100
+ - lib/yamls/support.rb
101
+ - lib/yamls/support/parameters.rb
34
102
  - lib/yamls/version.rb
35
103
  - lib/yamls/yaml_load.rb
36
104
  - yamls.gemspec
@@ -47,7 +115,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
47
115
  requirements:
48
116
  - - ">="
49
117
  - !ruby/object:Gem::Version
50
- version: 2.4.0
118
+ version: '2.5'
51
119
  required_rubygems_version: !ruby/object:Gem::Requirement
52
120
  requirements:
53
121
  - - ">="