celluloid-extras 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d30c905485f39dc7ae79c346b65e736846540602
4
- data.tar.gz: 6eaa956d1629e58bfe774cdd11174922856f3b9d
3
+ metadata.gz: 3e11d51ab57bb1768d395f264b339794c8c5b0e4
4
+ data.tar.gz: 269011213a252d4f9146c7829d54dfff07489f3e
5
5
  SHA512:
6
- metadata.gz: 7a039ddae1234a5bddc719d6dc634564500cfcd7aea5ea6d7d17d6c89027c9748d0d1e4e904375737d943323d7a10e73fcf9e469c82049f2986f2aa4d16678ac
7
- data.tar.gz: a76770ea7c6619d0d65c500538bf9820c5d21fee7c777044e07008785b31f7e16a5b7b84e7af2ac8e49e675d976741624039c818dd415ef207bbedecc1179201
6
+ metadata.gz: 96e983fb8c4df8bec160878a6533cd25010d1ba3df3cceb68f7fe0d456e0e1aa22d0740729c16f8767c24e638c1d2c61f4712cec23419b73d84d2731dac5f29e
7
+ data.tar.gz: 3019b74b875e29ecc23f1bf41ba4053112f5eba4ce29aaa95b00d3a9520fcc437288e685c7192b28f9b009a519a3e4184370eb02bde4135c3346616b3619e1ac
data/Gemfile CHANGED
@@ -1,24 +1,24 @@
1
1
  require File.expand_path("../culture/sync", __FILE__)
2
- source 'https://rubygems.org'
2
+ source "https://rubygems.org"
3
3
 
4
4
  gemspec # development_group: :gem_build_tools
5
5
 
6
6
  group :development do
7
- gem 'pry'
8
- #de gem 'guard'
9
- #de gem 'guard-rspec'
10
- #de gem 'rb-fsevent', '~> 0.9.1' if RUBY_PLATFORM =~ /darwin/
7
+ gem "pry"
8
+ # de gem 'guard'
9
+ # de gem 'guard-rspec'
10
+ # de gem 'rb-fsevent', '~> 0.9.1' if RUBY_PLATFORM =~ /darwin/
11
11
  end
12
12
 
13
13
  group :test do
14
- gem 'dotenv', '~> 2.0'
15
- gem 'nenv'
16
- gem 'benchmark_suite'
17
- gem 'rspec', '~> 3.2'
14
+ gem "dotenv", "~> 2.0"
15
+ gem "nenv"
16
+ gem "benchmark_suite"
17
+ gem "rspec", "~> 3.2"
18
18
  end
19
19
 
20
20
  group :gem_build_tools do
21
- gem 'rake'
21
+ gem "rake"
22
22
  end
23
23
 
24
24
  Celluloid::Sync.gems(self)
data/Rakefile CHANGED
@@ -1,8 +1,8 @@
1
1
  require "bundler/gem_tasks"
2
- require 'rspec/core/rake_task'
2
+ require "rspec/core/rake_task"
3
3
 
4
4
  RSpec::Core::RakeTask.new(:spec) do |spec|
5
- spec.pattern = 'spec/**/*_spec.rb'
6
- spec.rspec_opts = ['--color --format documentation']
5
+ spec.pattern = "spec/**/*_spec.rb"
6
+ spec.rspec_opts = ["--color --format documentation"]
7
7
  end
8
- task :default => :spec
8
+ task default: :spec
@@ -2,22 +2,22 @@
2
2
  require File.expand_path("../culture/sync", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |gem|
5
- gem.name = 'celluloid-extras'
5
+ gem.name = "celluloid-extras"
6
6
  gem.version = Celluloid::Extras::VERSION
7
7
  gem.platform = Gem::Platform::RUBY
8
- gem.summary = 'Celluloid expansion, testing, and example classes.'
9
- gem.description = 'Classes to support examples, benchmarks, or add special functionality.'
10
- gem.licenses = ['MIT']
8
+ gem.summary = "Celluloid expansion, testing, and example classes."
9
+ gem.description = "Classes to support examples, benchmarks, or add special functionality."
10
+ gem.licenses = ["MIT"]
11
11
 
12
12
  gem.authors = ["digitalextremist //", "Tony Arcieri"]
13
- gem.email = ['code@extremist.digital','tony.arcieri@gmail.com']
14
- gem.homepage = 'https://github.com/celluloid/celluloid-extras'
13
+ gem.email = ["code@extremist.digital", "tony.arcieri@gmail.com"]
14
+ gem.homepage = "https://github.com/celluloid/celluloid-extras"
15
15
 
16
- gem.required_ruby_version = '>= 1.9.2'
17
- gem.required_rubygems_version = '>= 1.3.6'
16
+ gem.required_ruby_version = ">= 1.9.2"
17
+ gem.required_rubygems_version = ">= 1.3.6"
18
18
 
19
19
  gem.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|examples|spec|features)/}) }
20
- gem.require_path = 'lib'
20
+ gem.require_path = "lib"
21
21
 
22
22
  Celluloid::Sync.gems(gem)
23
23
  end
@@ -1,13 +1,12 @@
1
- require 'celluloid'
1
+ require "celluloid"
2
2
 
3
3
  module Celluloid
4
4
  module Extras
5
-
6
5
  # Concurrent Hash mirroring the existing Hash API as an Actor.
7
6
  class Hash
8
7
  include Celluloid
9
8
 
10
- def initialize starter={}
9
+ def initialize(starter={})
11
10
  @outer = starter
12
11
  end
13
12
 
@@ -15,20 +14,20 @@ module Celluloid
15
14
  @outer[k]
16
15
  end
17
16
 
18
- def []=(k,v)
17
+ def []=(k, v)
19
18
  @outer.store(k, v)
20
- return v
19
+ v
21
20
  end
22
21
 
23
- def has_key?(k)
24
- @outer.has_key?(k)
22
+ def key?(k)
23
+ @outer.key?(k)
25
24
  end
26
25
 
27
26
  def inspect
28
27
  @outer.inspect
29
28
  end
30
29
 
31
- def insert(k,v)
30
+ def insert(k, v)
32
31
  @outer[k] = v
33
32
  end
34
33
 
@@ -83,7 +82,6 @@ module Celluloid
83
82
  def keys
84
83
  @outer.keys
85
84
  end
86
-
87
85
  end
88
86
  end
89
87
  end
@@ -1,4 +1,4 @@
1
- require 'celluloid'
1
+ require "celluloid"
2
2
 
3
3
  module Celluloid
4
4
  module Extras
@@ -6,7 +6,7 @@ module Celluloid
6
6
  include Celluloid
7
7
 
8
8
  def rehash(string, rounds)
9
- raise ArgumentError, "hurr" unless rounds > 1
9
+ fail ArgumentError, "hurr" unless rounds > 1
10
10
  penultimate = (rounds - 1).times.inject(string) { |s| Digest::SHA512.digest(s) }
11
11
  Digest::SHA512.hexdigest(penultimate)
12
12
  end
@@ -1,5 +1,5 @@
1
1
  module Celluloid
2
2
  module Extras
3
- VERSION = '0.1.1'
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,154 +1,154 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: celluloid-extras
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - digitalextremist //
8
8
  - Tony Arcieri
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-04-30 00:00:00.000000000 Z
12
+ date: 2015-05-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
+ name: bundler
15
16
  requirement: !ruby/object:Gem::Requirement
16
17
  requirements:
17
- - - '>='
18
+ - - ">="
18
19
  - !ruby/object:Gem::Version
19
20
  version: '0'
20
- name: bundler
21
+ type: :runtime
21
22
  prerelease: false
22
- type: :development
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - '>='
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: '0'
28
28
  - !ruby/object:Gem::Dependency
29
+ name: rubocop
29
30
  requirement: !ruby/object:Gem::Requirement
30
31
  requirements:
31
- - - '>='
32
+ - - ">="
32
33
  - !ruby/object:Gem::Version
33
34
  version: '0'
34
- name: coveralls
35
- prerelease: false
36
35
  type: :development
36
+ prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - '>='
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  - !ruby/object:Gem::Dependency
43
+ name: coveralls
43
44
  requirement: !ruby/object:Gem::Requirement
44
45
  requirements:
45
- - - '>='
46
+ - - ">="
46
47
  - !ruby/object:Gem::Version
47
48
  version: '0'
48
- name: celluloid
49
- prerelease: false
50
49
  type: :development
50
+ prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - '>='
53
+ - - ">="
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
56
  - !ruby/object:Gem::Dependency
57
+ name: celluloid
57
58
  requirement: !ruby/object:Gem::Requirement
58
59
  requirements:
59
- - - '>='
60
+ - - ">="
60
61
  - !ruby/object:Gem::Version
61
62
  version: '0'
62
- name: celluloid-essentials
63
- prerelease: false
64
63
  type: :development
64
+ prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - '>='
67
+ - - ">="
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
70
  - !ruby/object:Gem::Dependency
71
+ name: celluloid-essentials
71
72
  requirement: !ruby/object:Gem::Requirement
72
73
  requirements:
73
- - - '>='
74
+ - - ">="
74
75
  - !ruby/object:Gem::Version
75
76
  version: '0'
76
- name: celluloid-supervision
77
+ type: :runtime
77
78
  prerelease: false
78
- type: :development
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - '>='
81
+ - - ">="
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  - !ruby/object:Gem::Dependency
85
+ name: celluloid-supervision
85
86
  requirement: !ruby/object:Gem::Requirement
86
87
  requirements:
87
- - - '>='
88
+ - - ">="
88
89
  - !ruby/object:Gem::Version
89
90
  version: '0'
90
- name: celluloid-pool
91
+ type: :runtime
91
92
  prerelease: false
92
- type: :development
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - '>='
95
+ - - ">="
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0'
98
98
  - !ruby/object:Gem::Dependency
99
+ name: celluloid-pool
99
100
  requirement: !ruby/object:Gem::Requirement
100
101
  requirements:
101
- - - '>='
102
+ - - ">="
102
103
  - !ruby/object:Gem::Version
103
104
  version: '0'
104
- name: celluloid-fsm
105
+ type: :runtime
105
106
  prerelease: false
106
- type: :development
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - '>='
109
+ - - ">="
110
110
  - !ruby/object:Gem::Version
111
111
  version: '0'
112
112
  - !ruby/object:Gem::Dependency
113
+ name: celluloid-fsm
113
114
  requirement: !ruby/object:Gem::Requirement
114
115
  requirements:
115
- - - '>='
116
+ - - ">="
116
117
  - !ruby/object:Gem::Version
117
118
  version: '0'
118
- name: timers
119
+ type: :runtime
119
120
  prerelease: false
120
- type: :development
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
- - - '>='
123
+ - - ">="
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  - !ruby/object:Gem::Dependency
127
+ name: timers
127
128
  requirement: !ruby/object:Gem::Requirement
128
129
  requirements:
129
- - - '>='
130
+ - - ">="
130
131
  - !ruby/object:Gem::Version
131
132
  version: '0'
132
- name: rubocop
133
+ type: :runtime
133
134
  prerelease: false
134
- type: :development
135
135
  version_requirements: !ruby/object:Gem::Requirement
136
136
  requirements:
137
- - - '>='
137
+ - - ">="
138
138
  - !ruby/object:Gem::Version
139
139
  version: '0'
140
140
  - !ruby/object:Gem::Dependency
141
+ name: rspec-logsplit
141
142
  requirement: !ruby/object:Gem::Requirement
142
143
  requirements:
143
- - - '>='
144
+ - - ">="
144
145
  - !ruby/object:Gem::Version
145
146
  version: '0'
146
- name: rspec-log_split
147
+ type: :runtime
147
148
  prerelease: false
148
- type: :development
149
149
  version_requirements: !ruby/object:Gem::Requirement
150
150
  requirements:
151
- - - '>='
151
+ - - ">="
152
152
  - !ruby/object:Gem::Version
153
153
  version: '0'
154
154
  description: Classes to support examples, benchmarks, or add special functionality.
@@ -159,11 +159,11 @@ executables: []
159
159
  extensions: []
160
160
  extra_rdoc_files: []
161
161
  files:
162
- - .gitignore
163
- - .gitmodules
164
- - .rspec
165
- - .rubocop.yml
166
- - .travis.yml
162
+ - ".gitignore"
163
+ - ".gitmodules"
164
+ - ".rspec"
165
+ - ".rubocop.yml"
166
+ - ".travis.yml"
167
167
  - CHANGES.md
168
168
  - Gemfile
169
169
  - LICENSE.txt
@@ -177,24 +177,24 @@ homepage: https://github.com/celluloid/celluloid-extras
177
177
  licenses:
178
178
  - MIT
179
179
  metadata: {}
180
- post_install_message:
180
+ post_install_message:
181
181
  rdoc_options: []
182
182
  require_paths:
183
183
  - lib
184
184
  required_ruby_version: !ruby/object:Gem::Requirement
185
185
  requirements:
186
- - - '>='
186
+ - - ">="
187
187
  - !ruby/object:Gem::Version
188
188
  version: 1.9.2
189
189
  required_rubygems_version: !ruby/object:Gem::Requirement
190
190
  requirements:
191
- - - '>='
191
+ - - ">="
192
192
  - !ruby/object:Gem::Version
193
193
  version: 1.3.6
194
194
  requirements: []
195
- rubyforge_project:
195
+ rubyforge_project:
196
196
  rubygems_version: 2.4.6
197
- signing_key:
197
+ signing_key:
198
198
  specification_version: 4
199
199
  summary: Celluloid expansion, testing, and example classes.
200
200
  test_files: []