method_annotation 0.3.3 → 0.4.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ab0751c5464114f89088bd4854a538b6c2fb615a
4
- data.tar.gz: 8a377a98bd1e6a7d3c61f77805032be48cf0e33f
3
+ metadata.gz: 43ef2e1477e6beffbec678f4c31acc3241a794ad
4
+ data.tar.gz: 788921033b3c8382f2cde430cb88615ed5c8f635
5
5
  SHA512:
6
- metadata.gz: de428bb75110a541fa8f9487be4728898bbaa294ffa6c702a8cdf8d25a8ea4b91476019db31dde5d8fb59d8e66afe926b2bf8b51d8afd10eadaa3d391e0f57c6
7
- data.tar.gz: 03d149f8a4c2f05f22e49dd8656c746b754b7a1b691ddfc005f57857707ab0dce500ab7aafa39d4c19918502e801bb208599580dbdb44b809ef18a5fac5c2c80
6
+ metadata.gz: 017568ff0ce6ae5a466355456dc204f30de207a80d4d84c4138fa8b64de9073d36cb6216736b29ca23777c46d1206bcb3befe4caca1d16e95915c120495317f0
7
+ data.tar.gz: 3f3dddc10a340f2491d9f8dd912decfbb91271b3d91869afd9e77536e5414f13d5732f485629020b8a6a8b8228b56732505392ed04ef4c3f8d5513a546f0e7e2
data/.gitignore CHANGED
@@ -1 +1,3 @@
1
1
  pkg/*
2
+ .ruby-version
3
+
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- method_annotation (0.3.3)
4
+ method_annotation (0.4.0)
5
5
  activesupport (~> 4.2.3)
6
6
 
7
7
  GEM
@@ -43,3 +43,6 @@ DEPENDENCIES
43
43
  method_annotation!
44
44
  rake (~> 10.0)
45
45
  rspec (~> 3.4.0)
46
+
47
+ BUNDLED WITH
48
+ 1.11.2
@@ -9,6 +9,7 @@ module MethodAnnotation
9
9
  autoload :Parameter
10
10
 
11
11
  eager_autoload do
12
+ autoload :Async
12
13
  autoload :Cache
13
14
  autoload :Trace
14
15
  autoload :WillImplemented
@@ -0,0 +1,9 @@
1
+ module MethodAnnotation
2
+ class Async < MethodAnnotation::Base
3
+ self.annotation_name = 'async'
4
+ self.describe = 'It runs the methods of the target asynchronously'
5
+
6
+ around { |param| Thread.new { param.original.call(param) } }
7
+ end
8
+ end
9
+
@@ -1,3 +1,3 @@
1
1
  module MethodAnnotation
2
- VERSION = "0.3.3"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -21,7 +21,7 @@ Note translation function can also be added simply tagged to only cross-processi
21
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  spec.require_paths = ["lib"]
23
23
 
24
- spec.required_ruby_version = Gem::Requirement.create('~> 2.2.1')
24
+ spec.required_ruby_version = Gem::Requirement.create('~> 2.3.0')
25
25
  spec.licenses = ['MIT']
26
26
 
27
27
  spec.add_development_dependency "bundler", "~> 1.9"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: method_annotation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - masatoshi-watanuki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-20 00:00:00.000000000 Z
11
+ date: 2016-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -82,8 +82,8 @@ files:
82
82
  - Rakefile
83
83
  - bin/console
84
84
  - bin/setup
85
- - lib/annotations.rb
86
85
  - lib/method_annotation.rb
86
+ - lib/method_annotation/async.rb
87
87
  - lib/method_annotation/base.rb
88
88
  - lib/method_annotation/cache.rb
89
89
  - lib/method_annotation/enable.rb
@@ -104,7 +104,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
104
104
  requirements:
105
105
  - - "~>"
106
106
  - !ruby/object:Gem::Version
107
- version: 2.2.1
107
+ version: 2.3.0
108
108
  required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  requirements:
110
110
  - - ">="
@@ -112,9 +112,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  requirements: []
114
114
  rubyforge_project:
115
- rubygems_version: 2.4.5
115
+ rubygems_version: 2.5.1
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: method annotation
119
119
  test_files: []
120
- has_rdoc:
data/lib/annotations.rb DELETED
@@ -1,3 +0,0 @@
1
- # Deprecated. Removed in version 0.3
2
- module Annotations
3
- end