metannotation 1.0.0rc2

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 81838b946fe1e165ee0c043ed9edba428a670c70ca276b315a763ad1a7aa7098
4
+ data.tar.gz: 9a384326cc440bf79253b94190f12b10522300a823e0d087597bf4b9fd571b05
5
+ SHA512:
6
+ metadata.gz: 10c98a986bd6486ab96e03d6f5349d47baad383f9cf8c2a4b663d6289e894e9017de7ed7fb7c75cec1de2ce7bfd88d94e227d24f373d9e161a4836c93add09fa
7
+ data.tar.gz: 6c7611d19cc6212fb186b6d0b04072113030317739a41865865647a64159c27a081ecf199cb8d1912671d65cfab7598f4620b9f719e61e76bf008b07b1eb614b
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ /Gemfile.lock
10
+ /.idea
11
+ /metannotation.iml
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}"}
4
+
5
+ # Specify your gem's dependencies in metannotation.gemspec
6
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Hdzi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # Metannotation
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/metannotation`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'metannotation'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install metannotation
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/metannotation. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
+
41
+ ## Code of Conduct
42
+
43
+ Everyone interacting in the Metannotation project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/metannotation/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ end
9
+
10
+ task :default => :test
@@ -0,0 +1,50 @@
1
+ module Metannotation # :nodoc:
2
+ # It's core of annotation
3
+ module Core
4
+ class << self
5
+ # Define annotation's core features depend it's type
6
+ def define(annotation)
7
+ annotation.send(:define_method, annotation.simple_name, &send("def_#{annotation.annotation_type.simple_name}_annotation", annotation))
8
+ end
9
+
10
+ private
11
+
12
+ # Define the method-annotation
13
+ def def_method_annotation(annotation)
14
+ def_annotation_common(annotation) do |fun_sym|
15
+ # check it a method
16
+ raise "Annotation's last parameter must be a method symbol!" unless public_method_defined?(fun_sym) ||
17
+ protected_method_defined?(fun_sym) ||
18
+ private_method_defined?(fun_sym)
19
+ end
20
+ end
21
+
22
+ # Define the class-annotation
23
+ def def_class_annotation(annotation)
24
+ def_annotation_common(annotation) do |cls|
25
+ # check it a class
26
+ raise "Annotation's last parameter must be a class constant!" unless cls.class.is_a? Module
27
+ end
28
+ end
29
+
30
+ # Define what to do when annotation a target
31
+ def def_annotation_common(annotation, &block)
32
+ # What target to do
33
+ proc do |*args, target|
34
+ # check target a method or a class or a other
35
+ instance_exec(target, &block)
36
+ # execute annotation's +to_do_block+
37
+ # An annotation can include another annotations, all same type included annotations's +to_do_block+
38
+ # will be execute.
39
+ annotation.included_modules.unshift(annotation).each do |super_annotation|
40
+ class_exec(target, annotation, *args, &super_annotation.annotated_do) if super_annotation.singleton_class.method_defined?(:annotated_do) and
41
+ super_annotation.annotation_type == annotation.annotation_type
42
+ end
43
+ # an1 an2 target
44
+ target
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+
@@ -0,0 +1,30 @@
1
+ require 'metannotation/core_ext/string'
2
+
3
+ class Module # :nodoc:
4
+ using Metannotation::StringExt # :nodoc:
5
+
6
+ # +label+ an annotation
7
+ # class MyClass
8
+ # label Annotation, param1, param2
9
+ # end
10
+ def label(annotation, *parm)
11
+ unless singleton_class.include? annotation
12
+ extend annotation
13
+ send(annotation.simple_name, *parm, self) if annotation.annotation_type == Metannotation::Class
14
+ end
15
+ end
16
+
17
+ # +labels+ annotations
18
+ # use [] if having parameters
19
+ # class MyClass
20
+ # labels Annotation1, [Annotation2, param]
21
+ # end
22
+ def labels(*annotations)
23
+ annotations.each {|annotation| label *annotation}
24
+ end
25
+
26
+ # get module's simple name
27
+ def simple_name
28
+ @__simple_name ||= to_s.demodulize.underscore.to_sym
29
+ end
30
+ end
@@ -0,0 +1,196 @@
1
+ module Metannotation # :nodoc:
2
+ # Some String tools from active support
3
+ module StringExt
4
+ refine ::String do
5
+ # Removes the module part from the expression in the string.
6
+ #
7
+ # demodulize('ActiveRecord::CoreExtensions::String::Inflections') # => "Inflections"
8
+ # demodulize('Inflections') # => "Inflections"
9
+ # demodulize('::Inflections') # => "Inflections"
10
+ # demodulize('') # => ""
11
+ #
12
+ # See active_support gem
13
+ def demodulize
14
+ if i = self.rindex('::')
15
+ self[(i + 2)..-1]
16
+ else
17
+ self
18
+ end
19
+ end
20
+
21
+ # Makes an underscored, lowercase form from the expression in the string.
22
+ # Changes '::' to '/' to convert namespaces to paths.
23
+ #
24
+ # underscore('ActiveModel') # => "active_model"
25
+ # underscore('ActiveModel::Errors') # => "active_model/errors"
26
+ #
27
+ # See active_support gem
28
+ def underscore
29
+ return self unless self =~ /[A-Z-]|::/
30
+ word = self.gsub('::'.freeze, '/'.freeze)
31
+ word.gsub!(/(?:(?<=([A-Za-z\d]))|\b)((?-mix:(?=a)b))(?=\b|[^a-z])/) {"#{$1 && '_'.freeze }#{$2.downcase}"}
32
+ word.gsub!(/([A-Z\d]+)([A-Z][a-z])/, '\1_\2'.freeze)
33
+ word.gsub!(/([a-z\d])([A-Z])/, '\1_\2'.freeze)
34
+ word.tr!("-".freeze, "_".freeze)
35
+ word.downcase!
36
+ word
37
+ end
38
+
39
+
40
+ # Converts strings to UpperCamelCase.
41
+ # If the +uppercase_first_letter+ parameter is set to false, then produces
42
+ # lowerCamelCase.
43
+ #
44
+ # Also converts '/' to '::' which is useful for converting
45
+ # paths to namespaces.
46
+ #
47
+ # camelize('active_model') # => "ActiveModel"
48
+ # camelize('active_model', false) # => "activeModel"
49
+ # camelize('active_model/errors') # => "ActiveModel::Errors"
50
+ # camelize('active_model/errors', false) # => "activeModel::Errors"
51
+ #
52
+ # As a rule of thumb you can think of +camelize+ as the inverse of
53
+ # #underscore, though there are cases where that does not hold:
54
+ #
55
+ # camelize(underscore('SSLError')) # => "SslError"
56
+ #
57
+ # See active_support gem
58
+ def camelize(uppercase_first_letter = true)
59
+ if uppercase_first_letter
60
+ string = self.sub(/^[a-z\d]*/) {|match| match.capitalize}
61
+ else
62
+ string = self.sub(/^(?:(?-mix:(?=a)b)(?=\b|[A-Z_])|\w)/) {|match| match.downcase}
63
+ end
64
+ string.gsub!(/(?:_|(\/))([a-z\d]*)/i) {"#{$1}#{$2.capitalize}"}
65
+ string.gsub!('/'.freeze, '::'.freeze)
66
+ string
67
+ end
68
+
69
+ # Returns the plural form of the word in the string.
70
+ #
71
+ # If passed an optional +locale+ parameter, the word will be
72
+ # pluralized using rules defined for that language. By default,
73
+ # this parameter is set to <tt>:en</tt>.
74
+ #
75
+ # pluralize('post') # => "posts"
76
+ # pluralize('octopus') # => "octopi"
77
+ # pluralize('sheep') # => "sheep"
78
+ # pluralize('words') # => "words"
79
+ # pluralize('CamelOctopus') # => "CamelOctopi"
80
+ #
81
+ # See active_support gem
82
+ def pluralize
83
+ rules = [[/(z)ombies$/i, "\\1ombies"],
84
+ [/(z)ombie$/i, "\\1ombies"],
85
+ [/(m)oves$/i, "\\1oves"],
86
+ [/(m)ove$/i, "\\1oves"],
87
+ [/(s)exes$/i, "\\1exes"],
88
+ [/(s)ex$/i, "\\1exes"],
89
+ [/(c)hildren$/i, "\\1hildren"],
90
+ [/(c)hild$/i, "\\1hildren"],
91
+ [/(m)en$/i, "\\1en"],
92
+ [/(m)an$/i, "\\1en"],
93
+ [/(p)eople$/i, "\\1eople"],
94
+ [/(p)erson$/i, "\\1eople"],
95
+ [/(quiz)$/i, "\\1zes"],
96
+ [/^(oxen)$/i, "\\1"],
97
+ [/^(ox)$/i, "\\1en"],
98
+ [/^(m|l)ice$/i, "\\1ice"],
99
+ [/^(m|l)ouse$/i, "\\1ice"],
100
+ [/(matr|vert|ind)(?:ix|ex)$/i, "\\1ices"],
101
+ [/(x|ch|ss|sh)$/i, "\\1es"],
102
+ [/([^aeiouy]|qu)y$/i, "\\1ies"],
103
+ [/(hive)$/i, "\\1s"],
104
+ [/(?:([^f])fe|([lr])f)$/i, "\\1\\2ves"],
105
+ [/sis$/i, "ses"], [/([ti])a$/i, "\\1a"],
106
+ [/([ti])um$/i, "\\1a"],
107
+ [/(buffal|tomat)o$/i, "\\1oes"],
108
+ [/(bu)s$/i, "\\1ses"],
109
+ [/(alias|status)$/i, "\\1es"],
110
+ [/(octop|vir)i$/i, "\\1i"],
111
+ [/(octop|vir)us$/i, "\\1i"],
112
+ [/^(ax|test)is$/i, "\\1es"],
113
+ [/s$/i, "s"], [/$/, "s"]]
114
+ apply_inflections(self, rules)
115
+ end
116
+
117
+ # The reverse of #pluralize, returns the singular form of a word in a
118
+ # string.
119
+ #
120
+ # If passed an optional +locale+ parameter, the word will be
121
+ # singularized using rules defined for that language. By default,
122
+ # this parameter is set to <tt>:en</tt>.
123
+ #
124
+ # singularize('posts') # => "post"
125
+ # singularize('octopi') # => "octopus"
126
+ # singularize('sheep') # => "sheep"
127
+ # singularize('word') # => "word"
128
+ # singularize('CamelOctopi') # => "CamelOctopus"
129
+ # singularize('leyes', :es) # => "ley"
130
+ #
131
+ # See active_support gem
132
+ def singularize
133
+ rules = [[/(z)ombies$/i, "\\1ombie"],
134
+ [/(z)ombie$/i, "\\1ombie"],
135
+ [/(m)oves$/i, "\\1ove"],
136
+ [/(m)ove$/i, "\\1ove"],
137
+ [/(s)exes$/i, "\\1ex"],
138
+ [/(s)ex$/i, "\\1ex"],
139
+ [/(c)hildren$/i, "\\1hild"],
140
+ [/(c)hild$/i, "\\1hild"],
141
+ [/(m)en$/i, "\\1an"],
142
+ [/(m)an$/i, "\\1an"],
143
+ [/(p)eople$/i, "\\1erson"],
144
+ [/(p)erson$/i, "\\1erson"],
145
+ [/(database)s$/i, "\\1"],
146
+ [/(quiz)zes$/i, "\\1"],
147
+ [/(matr)ices$/i, "\\1ix"],
148
+ [/(vert|ind)ices$/i, "\\1ex"],
149
+ [/^(ox)en/i, "\\1"],
150
+ [/(alias|status)(es)?$/i, "\\1"],
151
+ [/(octop|vir)(us|i)$/i, "\\1us"],
152
+ [/^(a)x[ie]s$/i, "\\1xis"],
153
+ [/(cris|test)(is|es)$/i, "\\1is"],
154
+ [/(shoe)s$/i, "\\1"],
155
+ [/(o)es$/i, "\\1"],
156
+ [/(bus)(es)?$/i, "\\1"],
157
+ [/^(m|l)ice$/i, "\\1ouse"],
158
+ [/(x|ch|ss|sh)es$/i, "\\1"],
159
+ [/(m)ovies$/i, "\\1ovie"],
160
+ [/(s)eries$/i, "\\1eries"],
161
+ [/([^aeiouy]|qu)ies$/i, "\\1y"],
162
+ [/([lr])ves$/i, "\\1f"],
163
+ [/(tive)s$/i, "\\1"],
164
+ [/(hive)s$/i, "\\1"],
165
+ [/([^f])ves$/i, "\\1fe"],
166
+ [/(^analy)(sis|ses)$/i, "\\1sis"],
167
+ [/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)(sis|ses)$/i, "\\1sis"],
168
+ [/([ti])a$/i, "\\1um"],
169
+ [/(n)ews$/i, "\\1ews"],
170
+ [/(ss)$/i, "\\1"],
171
+ [/s$/i, ""]]
172
+
173
+ apply_inflections(self, rules)
174
+ end
175
+
176
+ private
177
+
178
+ # Applies inflection rules for +singularize+ and +pluralize+.
179
+ #
180
+ # apply_inflections('post', inflections.plurals) # => "posts"
181
+ # apply_inflections('posts', inflections.singulars) # => "post"
182
+ #
183
+ # See active_support gem
184
+ def apply_inflections(word, rules)
185
+ result = word.dup
186
+
187
+ if word.empty?
188
+ result
189
+ else
190
+ rules.each {|(rule, replacement)| break if result.sub!(rule, replacement)}
191
+ result
192
+ end
193
+ end
194
+ end
195
+ end
196
+ end
@@ -0,0 +1,44 @@
1
+ require 'metannotation/core'
2
+
3
+ module Metannotation # :nodoc:
4
+ # Define annotation
5
+ module Define
6
+ class << self
7
+ # An interface to define an annotation
8
+ def do(annotation)
9
+ annotation_included annotation_to_do annotation_define annotation
10
+ end
11
+
12
+ private
13
+
14
+ # Define core features
15
+ def annotation_define(annotation)
16
+ Core.define(annotation)
17
+ annotation
18
+ end
19
+
20
+ # Define +to+ method that will be execute when annotate target
21
+ def annotation_to_do(annotation)
22
+ annotation.define_singleton_method(:to) do |&block|
23
+ # The +do+ block is saved as +@annotated_do+ val.
24
+ annotation.singleton_class.send(:attr_accessor, :annotated_do)
25
+ annotation.annotated_do = block
26
+ end
27
+ annotation
28
+ end
29
+
30
+ # Define what to do when annotation includes another annotation
31
+ # module AA
32
+ # include BB # a class annotation
33
+ # include CC # a method annotation
34
+ # end
35
+ # AA is a class annotation
36
+ def annotation_included(annotation)
37
+ annotation.define_singleton_method(:included) do |sub_annotation|
38
+ sub_annotation.include annotation.annotation_type unless sub_annotation.respond_to? :annotation_type
39
+ end
40
+ annotation
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,3 @@
1
+ module Metannotation
2
+ VERSION = "1.0.0rc2"
3
+ end
@@ -0,0 +1,60 @@
1
+ require 'metannotation/version'
2
+ require 'metannotation/core_ext/module'
3
+ require 'metannotation/define'
4
+
5
+ # Define method-annotation
6
+ #
7
+ # module MyAnnotation
8
+ # include Metannotation::Method
9
+ # end
10
+ #
11
+ # Use method-annotation
12
+ #
13
+ # class MyClass
14
+ # label MyAnnotation
15
+ # my_annotation def my_method;end
16
+ # end
17
+ #
18
+ # Define and use class-annotation
19
+ #
20
+ # module YourAnnotation
21
+ # include Metannotation::Class
22
+ # end
23
+ #
24
+ # class YourClass
25
+ # label YourAnnotation
26
+ # end
27
+ #
28
+ module Metannotation
29
+ # method-annotation
30
+ module Method
31
+ def self.included(annotation) # :nodoc:
32
+ Metannotation.define_annotation(annotation, self)
33
+ end
34
+ end
35
+
36
+ # class-annotation
37
+ module Class
38
+ def self.included(annotation) # :nodoc:
39
+ Metannotation.define_annotation(annotation, self)
40
+ end
41
+ end
42
+
43
+ class << self
44
+ # Define annotation
45
+ def define_annotation(annotation, type)
46
+ Define.do check_annotation(annotation, type)
47
+ end
48
+
49
+ private
50
+
51
+ using StringExt # :nodoc:
52
+
53
+ # Define some variables and methods that provide annotation information in the module
54
+ def check_annotation(annotation, type)
55
+ annotation.define_singleton_method(:annotation_type) {type}
56
+ annotation.define_singleton_method(:annotation_name) {simple_name}
57
+ annotation
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,37 @@
1
+ lib = File.expand_path("../lib", __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require "metannotation/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "metannotation"
7
+ spec.version = Metannotation::VERSION
8
+ spec.authors = ["Hdzi"]
9
+ spec.email = ["taojinhou@qq.com"]
10
+
11
+ spec.summary = %q{Ruby Annotation}
12
+ spec.description = %q{This Gem provides "annotation" for Ruby.}
13
+ spec.homepage = "https://github.com/Hdzi/metannotation"
14
+ spec.license = "MIT"
15
+
16
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
17
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
18
+ # if spec.respond_to?(:metadata)
19
+ # spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
20
+ # else
21
+ # raise "RubyGems 2.0 or newer is required to protect against " \
22
+ # "public gem pushes."
23
+ # end
24
+
25
+ # Specify which files should be added to the gem when it is released.
26
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
27
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
28
+ `git ls-files -z`.split("\x0").reject {|f| f.match(%r{^(test|spec|features)/})}
29
+ end
30
+ spec.bindir = "exe"
31
+ spec.executables = spec.files.grep(%r{^exe/}) {|f| File.basename(f)}
32
+ spec.require_paths = ["lib"]
33
+
34
+ spec.add_development_dependency "bundler", "~> 1.16"
35
+ spec.add_development_dependency "rake", "~> 10.0"
36
+ spec.add_development_dependency "minitest", "~> 5.0"
37
+ end
metadata ADDED
@@ -0,0 +1,98 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: metannotation
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0rc2
5
+ platform: ruby
6
+ authors:
7
+ - Hdzi
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-06-14 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: '1.16'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.16'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.0'
55
+ description: This Gem provides "annotation" for Ruby.
56
+ email:
57
+ - taojinhou@qq.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - Gemfile
64
+ - LICENSE.txt
65
+ - README.md
66
+ - Rakefile
67
+ - lib/metannotation.rb
68
+ - lib/metannotation/core.rb
69
+ - lib/metannotation/core_ext/module.rb
70
+ - lib/metannotation/core_ext/string.rb
71
+ - lib/metannotation/define.rb
72
+ - lib/metannotation/version.rb
73
+ - metannotation.gemspec
74
+ homepage: https://github.com/Hdzi/metannotation
75
+ licenses:
76
+ - MIT
77
+ metadata: {}
78
+ post_install_message:
79
+ rdoc_options: []
80
+ require_paths:
81
+ - lib
82
+ required_ruby_version: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ required_rubygems_version: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - ">"
90
+ - !ruby/object:Gem::Version
91
+ version: 1.3.1
92
+ requirements: []
93
+ rubyforge_project:
94
+ rubygems_version: 2.7.6
95
+ signing_key:
96
+ specification_version: 4
97
+ summary: Ruby Annotation
98
+ test_files: []