cramp 0.14 → 0.14.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cramp.rb +1 -1
- data/lib/cramp/callbacks.rb +1 -1
- data/lib/cramp/generators/application.rb +2 -2
- metadata +10 -10
data/lib/cramp.rb
CHANGED
data/lib/cramp/callbacks.rb
CHANGED
@@ -60,7 +60,7 @@ module Cramp
|
|
60
60
|
data = data.split(/\000([^\377]*)\377/).select{|d| !d.empty? }.collect{|d| d.gsub(/^\x00|\xff$/, '') }
|
61
61
|
self.class.on_data_callbacks.each do |callback|
|
62
62
|
data.each do |message|
|
63
|
-
|
63
|
+
callback_wrapper { send(callback, message) }
|
64
64
|
end
|
65
65
|
end
|
66
66
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'thor/group'
|
2
2
|
require 'active_support/core_ext/string/strip'
|
3
|
-
require 'active_support/
|
3
|
+
require 'active_support/inflector/methods'
|
4
4
|
require 'active_support/core_ext/object/blank'
|
5
5
|
|
6
6
|
module Cramp
|
@@ -81,7 +81,7 @@ module Cramp
|
|
81
81
|
end
|
82
82
|
|
83
83
|
def app_const_base
|
84
|
-
@app_const_base ||= app_name.gsub(/\W/, '_').squeeze('_')
|
84
|
+
@app_const_base ||= ActiveSupport::Inflector.camelize(app_name.gsub(/\W/, '_').squeeze('_'), true)
|
85
85
|
end
|
86
86
|
|
87
87
|
def valid_const?
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cramp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.14.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,12 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-08-
|
12
|
+
date: 2011-08-10 00:00:00.000000000 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
17
|
-
requirement: &
|
17
|
+
requirement: &2160171700 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: 3.0.9
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2160171700
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: rack
|
28
|
-
requirement: &
|
28
|
+
requirement: &2160171100 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: 1.3.2
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *2160171100
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: eventmachine
|
39
|
-
requirement: &
|
39
|
+
requirement: &2160170520 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ~>
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
version: 1.0.0.beta.3
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *2160170520
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: thor
|
50
|
-
requirement: &
|
50
|
+
requirement: &2160169960 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ~>
|
@@ -55,7 +55,7 @@ dependencies:
|
|
55
55
|
version: 0.14.6
|
56
56
|
type: :runtime
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *2160169960
|
59
59
|
description: Cramp is a framework for developing asynchronous web applications.
|
60
60
|
email: pratiknaik@gmail.com
|
61
61
|
executables:
|