trinidad 0.9.4 → 0.9.5

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.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.9.5 (2010-08-08)
2
+
3
+ * fix TRINIDAD-15: trinidad defines String#camelize incompatibly with ActiveSupport: Argument is missing
4
+ * update JRuby-Rack dependency to avoid compatibility issues with rvm'
5
+
1
6
  == 0.9.4 (2010-08-04)
2
7
 
3
8
  * fix error configuring ssl
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.4
1
+ 0.9.5
@@ -38,9 +38,3 @@ Hash.class_eval do
38
38
  self
39
39
  end
40
40
  end
41
-
42
- class String
43
- def camelize
44
- self.gsub(/\/(.?)/) { "::#{$1.upcase}" }.gsub(/(?:^|_)(.)/) { $1.upcase }
45
- end
46
- end
@@ -33,7 +33,7 @@ module Trinidad
33
33
  end
34
34
 
35
35
  def self.extension(name, type, options)
36
- class_name = (name.to_s.camelize << type).to_sym
36
+ class_name = (camelize(name.to_s) << type).to_sym
37
37
  load_extension(name) unless const_defined?(class_name)
38
38
  clazz = const_get(class_name) rescue nil
39
39
  clazz.new(options) if clazz
@@ -68,5 +68,10 @@ module Trinidad
68
68
  raise NotImplementedError, "#{self.class}#configure not implemented"
69
69
  end
70
70
  end
71
+
72
+ private
73
+ def self.camelize(string)
74
+ string.gsub(/\/(.?)/) { "::#{$1.upcase}" }.gsub(/(?:^|_)(.)/) { $1.upcase }
75
+ end
71
76
  end
72
77
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trinidad
3
3
  version: !ruby/object:Gem::Version
4
- hash: 51
4
+ hash: 49
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 4
10
- version: 0.9.4
9
+ - 5
10
+ version: 0.9.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Calavera
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-04 00:00:00 +02:00
18
+ date: 2010-08-08 00:00:00 +02:00
19
19
  default_executable: trinidad
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -41,12 +41,12 @@ dependencies:
41
41
  requirements:
42
42
  - - ">="
43
43
  - !ruby/object:Gem::Version
44
- hash: 21
44
+ hash: 19
45
45
  segments:
46
46
  - 1
47
47
  - 0
48
- - 1
49
- version: 1.0.1
48
+ - 2
49
+ version: 1.0.2
50
50
  type: :runtime
51
51
  version_requirements: *id002
52
52
  - !ruby/object:Gem::Dependency