notion_ruby_mapping 0.1.0

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 (46) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +3 -0
  3. data/.rubocop.yml +37 -0
  4. data/CHANGELOG.md +5 -0
  5. data/CODE_OF_CONDUCT.md +84 -0
  6. data/Gemfile +6 -0
  7. data/Guardfile +72 -0
  8. data/LICENSE.txt +21 -0
  9. data/README.md +408 -0
  10. data/Rakefile +12 -0
  11. data/bin/console +15 -0
  12. data/bin/setup +8 -0
  13. data/lib/notion_ruby_mapping/base.rb +49 -0
  14. data/lib/notion_ruby_mapping/block.rb +10 -0
  15. data/lib/notion_ruby_mapping/checkbox_property.rb +9 -0
  16. data/lib/notion_ruby_mapping/created_by_property.rb +7 -0
  17. data/lib/notion_ruby_mapping/created_time_property.rb +7 -0
  18. data/lib/notion_ruby_mapping/database.rb +15 -0
  19. data/lib/notion_ruby_mapping/date_base_property.rb +73 -0
  20. data/lib/notion_ruby_mapping/date_property.rb +7 -0
  21. data/lib/notion_ruby_mapping/email_property.rb +7 -0
  22. data/lib/notion_ruby_mapping/files_property.rb +9 -0
  23. data/lib/notion_ruby_mapping/formula_property.rb +11 -0
  24. data/lib/notion_ruby_mapping/last_edited_by_property.rb +7 -0
  25. data/lib/notion_ruby_mapping/last_edited_time_property.rb +7 -0
  26. data/lib/notion_ruby_mapping/list.rb +16 -0
  27. data/lib/notion_ruby_mapping/multi_property.rb +9 -0
  28. data/lib/notion_ruby_mapping/multi_select_property.rb +8 -0
  29. data/lib/notion_ruby_mapping/notion_cache.rb +100 -0
  30. data/lib/notion_ruby_mapping/number_property.rb +11 -0
  31. data/lib/notion_ruby_mapping/page.rb +16 -0
  32. data/lib/notion_ruby_mapping/people_property.rb +7 -0
  33. data/lib/notion_ruby_mapping/phone_number_property.rb +7 -0
  34. data/lib/notion_ruby_mapping/property.rb +88 -0
  35. data/lib/notion_ruby_mapping/query.rb +50 -0
  36. data/lib/notion_ruby_mapping/relation_property.rb +8 -0
  37. data/lib/notion_ruby_mapping/rich_text_property.rb +7 -0
  38. data/lib/notion_ruby_mapping/select_property.rb +10 -0
  39. data/lib/notion_ruby_mapping/text_property.rb +11 -0
  40. data/lib/notion_ruby_mapping/title_property.rb +7 -0
  41. data/lib/notion_ruby_mapping/url_property.rb +7 -0
  42. data/lib/notion_ruby_mapping/version.rb +5 -0
  43. data/lib/notion_ruby_mapping.rb +9 -0
  44. data/notion_ruby_mapping.gemspec +47 -0
  45. data/sig/notion_ruby_mapping.rbs +4 -0
  46. metadata +171 -0
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/notion_ruby_mapping/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "notion_ruby_mapping"
7
+ spec.version = NotionRubyMapping::VERSION
8
+ spec.authors = ["Hiroyuki KOBAYASHI"]
9
+ spec.email = ["hkob@metro-cit.ac.jp"]
10
+
11
+ spec.summary = "Notion Ruby mapping tool"
12
+ spec.description = "Mapping tool from Notion Database/Page/Block to Ruby Objects."
13
+ spec.homepage = "https://github.com/hkob/notion_ruby_mapping.git"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = ">= 2.6.0"
16
+
17
+ # spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
18
+
19
+ # spec.metadata["homepage_uri"] = spec.homepage
20
+ # spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
21
+ # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
22
+
23
+ # Specify which files should be added to the gem when it is released.
24
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
26
+ `git ls-files -z`.split("\x0").reject do |f|
27
+ (f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
28
+ end
29
+ end
30
+ spec.bindir = "exe"
31
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
32
+ spec.require_paths = ["lib"]
33
+
34
+ # Uncomment to register a new dependency of your gem
35
+ # spec.add_dependency "example-gem", "~> 1.0"
36
+
37
+ spec.add_dependency "notion-ruby-client", "0.1.0.pre.beta1"
38
+
39
+ spec.add_development_dependency "guard"
40
+ spec.add_development_dependency "guard-rspec"
41
+ spec.add_development_dependency "rake"
42
+ spec.add_development_dependency "rspec"
43
+ spec.add_development_dependency "rubocop"
44
+
45
+ # For more information and examples about making a new gem, check out our
46
+ # guide at: https://bundler.io/guides/creating_gem.html
47
+ end
@@ -0,0 +1,4 @@
1
+ module NotionRubyMapping
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,171 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: notion_ruby_mapping
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Hiroyuki KOBAYASHI
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2022-02-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: notion-ruby-client
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 0.1.0.pre.beta1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 0.1.0.pre.beta1
27
+ - !ruby/object:Gem::Dependency
28
+ name: guard
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
+ - !ruby/object:Gem::Dependency
42
+ name: guard-rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description: Mapping tool from Notion Database/Page/Block to Ruby Objects.
98
+ email:
99
+ - hkob@metro-cit.ac.jp
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - ".rspec"
105
+ - ".rubocop.yml"
106
+ - CHANGELOG.md
107
+ - CODE_OF_CONDUCT.md
108
+ - Gemfile
109
+ - Guardfile
110
+ - LICENSE.txt
111
+ - README.md
112
+ - Rakefile
113
+ - bin/console
114
+ - bin/setup
115
+ - lib/notion_ruby_mapping.rb
116
+ - lib/notion_ruby_mapping/base.rb
117
+ - lib/notion_ruby_mapping/block.rb
118
+ - lib/notion_ruby_mapping/checkbox_property.rb
119
+ - lib/notion_ruby_mapping/created_by_property.rb
120
+ - lib/notion_ruby_mapping/created_time_property.rb
121
+ - lib/notion_ruby_mapping/database.rb
122
+ - lib/notion_ruby_mapping/date_base_property.rb
123
+ - lib/notion_ruby_mapping/date_property.rb
124
+ - lib/notion_ruby_mapping/email_property.rb
125
+ - lib/notion_ruby_mapping/files_property.rb
126
+ - lib/notion_ruby_mapping/formula_property.rb
127
+ - lib/notion_ruby_mapping/last_edited_by_property.rb
128
+ - lib/notion_ruby_mapping/last_edited_time_property.rb
129
+ - lib/notion_ruby_mapping/list.rb
130
+ - lib/notion_ruby_mapping/multi_property.rb
131
+ - lib/notion_ruby_mapping/multi_select_property.rb
132
+ - lib/notion_ruby_mapping/notion_cache.rb
133
+ - lib/notion_ruby_mapping/number_property.rb
134
+ - lib/notion_ruby_mapping/page.rb
135
+ - lib/notion_ruby_mapping/people_property.rb
136
+ - lib/notion_ruby_mapping/phone_number_property.rb
137
+ - lib/notion_ruby_mapping/property.rb
138
+ - lib/notion_ruby_mapping/query.rb
139
+ - lib/notion_ruby_mapping/relation_property.rb
140
+ - lib/notion_ruby_mapping/rich_text_property.rb
141
+ - lib/notion_ruby_mapping/select_property.rb
142
+ - lib/notion_ruby_mapping/text_property.rb
143
+ - lib/notion_ruby_mapping/title_property.rb
144
+ - lib/notion_ruby_mapping/url_property.rb
145
+ - lib/notion_ruby_mapping/version.rb
146
+ - notion_ruby_mapping.gemspec
147
+ - sig/notion_ruby_mapping.rbs
148
+ homepage: https://github.com/hkob/notion_ruby_mapping.git
149
+ licenses:
150
+ - MIT
151
+ metadata: {}
152
+ post_install_message:
153
+ rdoc_options: []
154
+ require_paths:
155
+ - lib
156
+ required_ruby_version: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ version: 2.6.0
161
+ required_rubygems_version: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - ">="
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ requirements: []
167
+ rubygems_version: 3.3.3
168
+ signing_key:
169
+ specification_version: 4
170
+ summary: Notion Ruby mapping tool
171
+ test_files: []