procemon 0.9.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzAzZTk1YTI5OGFjMzA4YTQxYmI1ZmE5ZDExNWQwNjBhOWY2YjI5YQ==
4
+ ODgzMDI3YjdhMmQ4MzJhOThmYmIwYmM5NDI4YmU1NmYyYzc4NjFlZg==
5
5
  data.tar.gz: !binary |-
6
- YWEyNjE5YWI5ODIyYzNhMTFhZWEwMWJlMzg2MDZjNWI5Yjg3ZDIxYQ==
6
+ YzZjMjJjNWI5Y2JkZTBlMjA4N2UxYjlkODc0NzgxMzAwNTE4Zjc2Mg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NDRiMTg3MzA2ODJhN2FhYzdkODM2Y2NmZTc1YjMwMmZkNzlmZWJmNzgxN2Vh
10
- ZWRjNDU2ZDU1NWFlYjUzMGFkZGQwY2YzZTU2NjZkNDQxNDM1NGE5Y2RkMzIy
11
- MTRlYWRhMjFmOWY0ZTllNTc5MjcwMzVjZjYwMmNmMmQ1MDZkNzM=
9
+ YmUzNzhmZjlkYTU1MWRiZGExZTdlOGY3YmYzNzExOTQ3ZmUxZjRmOGJiNzhj
10
+ OTc3ZWRjMzdiNzcyMTI5NWIyZWMwNjYyY2VmMTcxNWVlYzMyY2JjN2JmZmMy
11
+ MTMxZTVhODMyZjU2MzI5YmU3MDI5MWVjMTY3YjJkOTBkZjIxZDQ=
12
12
  data.tar.gz: !binary |-
13
- MmVlMWQ1Y2RhOGU3ZmVjNTI5ZTRhZDhjM2I3NTg1MDhkZGIyMTQ4ZmZiNzFh
14
- MzI2NzU2MWQ5Y2VlNjk1OTdjYWZkODZmYjc3NWVhNjljNmVlZWQ2NjRkZDkz
15
- ZDkwMGEyMDg1ZmM2OTVkN2E0NmRmNDYyNDlmM2NjMDdmOWJmMzE=
13
+ YTY3MTUwOTY5MTFiYzU3ODk2MmJlN2Q4ZmU1YzhjMzEwMjBjODkxNzAwNzJj
14
+ NzI0ZDE4MzJjYjZjOWQxZjMzOWVjNjliNjhjODhkNTI1N2YyN2VlMGMwNGEw
15
+ MDg5NjIwMjMwOWRiMjhiYTFlMTMzNTY0ZDFjOTQ5NTczNjM2ZGM=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.1
1
+ 1.0.0
data/lib/procemon.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  #encoding: UTF-8
2
2
  module Procemon
3
3
 
4
- require 'asynchronous'
5
4
  require 'sourcerer'
6
5
  require 'loader'
7
6
  require 'mpatch'
data/procemon.gemspec CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.version = File.open(File.join(File.dirname(__FILE__),"VERSION")).read.split("\n")[0].chomp.gsub(' ','')
10
10
  spec.authors = ["Adam Luzsi"]
11
11
  spec.email = ["adamluzsi@gmail.com"]
12
- spec.description = %q{This is a collection of my Ruby Procs in the adventure of becoming the best! In short this provides extra tools in Application configs, argumens processing,daemonise,eval, getting source of a block,method,process and work with it, or even fuse them into a new proc , require relative files, or directories, string to duck parsing, system tmp_dir using, meta-programing stuffs,async dsl for easy concurrency patterns in both VM managed and OS managed way (concurrency and Parallelism), micro framework that can be used alongside with any framework and a lot of monkey patch for extra functions :) follow me on github if you like my work! }
12
+ spec.description = %q{This is a collection of my Ruby Procs in the adventure of becoming the best! In short this provides extra tools in Application configs, argumens processing,daemonise,eval, getting source of a block,method,process and work with it, or even fuse them into a new proc , require relative files, or directories, string to duck parsing, system tmp_dir using, meta-programing stuffs,(async stuffs went to different project), micro framework that can be used alongside with any framework and a lot of monkey patch for extra functions :) follow me on github if you like my work! }
13
13
  spec.summary = %q{Gotta catch em all!}
14
14
  spec.homepage = "https://github.com/adamluzsi/procemon"
15
15
  spec.license = "MIT"
@@ -19,7 +19,6 @@ Gem::Specification.new do |spec|
19
19
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_dependency "asynchronous"
23
22
  spec.add_dependency "sourcerer"
24
23
  spec.add_dependency "loader"
25
24
  spec.add_dependency "mpatch"
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: procemon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Luzsi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-12 00:00:00.000000000 Z
11
+ date: 2014-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: asynchronous
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ! '>='
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ! '>='
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: sourcerer
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -70,10 +56,9 @@ description: ! 'This is a collection of my Ruby Procs in the adventure of becomi
70
56
  the best! In short this provides extra tools in Application configs, argumens processing,daemonise,eval,
71
57
  getting source of a block,method,process and work with it, or even fuse them into
72
58
  a new proc , require relative files, or directories, string to duck parsing, system
73
- tmp_dir using, meta-programing stuffs,async dsl for easy concurrency patterns in
74
- both VM managed and OS managed way (concurrency and Parallelism), micro framework
75
- that can be used alongside with any framework and a lot of monkey patch for extra
76
- functions :) follow me on github if you like my work! '
59
+ tmp_dir using, meta-programing stuffs,(async stuffs went to different project),
60
+ micro framework that can be used alongside with any framework and a lot of monkey
61
+ patch for extra functions :) follow me on github if you like my work! '
77
62
  email:
78
63
  - adamluzsi@gmail.com
79
64
  executables: []
@@ -88,7 +73,6 @@ files:
88
73
  - VERSION
89
74
  - examples/how_to_inject_with_extra_process_a_method.rb
90
75
  - examples/require_files.rb
91
- - examples/simple_async_processing.rb
92
76
  - files.rb
93
77
  - lib/procemon.rb
94
78
  - lib/procemon/extra/sender.rb
@@ -1,56 +0,0 @@
1
- # Require Gemfile gems
2
- require_relative "../lib/procemon"
3
-
4
- # you can use simple :c also instead of :concurrency
5
- # remember :concurrency is all about GIL case, so
6
- # you can modify the objects in memory
7
- # This is ideal for little operations in simultaneously or
8
- # when you need to update objects in the memory
9
- calculation = async :concurrency do
10
-
11
- sleep 2
12
- 4 * 2
13
-
14
- end
15
- puts "hello concurrency"
16
-
17
- calculation.value += 1
18
-
19
- puts calculation.value
20
-
21
- #>--------------------------------------------------
22
- # or you can use simple {} without sym and this will be by default a
23
- # :concurrency pattern
24
-
25
- calculation = async { sleep 3; 4 * 3 }
26
-
27
- puts "hello simple concurrency"
28
-
29
- calculation.value += 1
30
-
31
- # remember you have to use .value to cal the return value from the code block!
32
- puts calculation.value
33
-
34
-
35
- #>--------------------------------------------------
36
- # now let's see the Parallelism
37
- # you can use simple :p also instead of :parallelism
38
- # remember :parallelism is all about real OS thread case, so
39
- # you CANT modify the objects in memory only copy on write modify
40
- # This is ideal for big operations where you need do a big process
41
- # and only get the return value so you can do big works without the fear of the
42
- # Garbage collector slowness or the GIL lock
43
- # when you need to update objects in the memory use :concurrency
44
- calculation = async :parallelism do
45
-
46
- sleep 4
47
- 4 * 5
48
-
49
- end
50
- puts "hello parallelism"
51
-
52
- calculation.value += 1
53
-
54
- puts calculation.value
55
-
56
- #>--------------------------------------------------