babosa 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -175,6 +175,7 @@ Please use Babosa's [Github issue tracker](http://github.com/norman/babosa/issue
175
175
 
176
176
  ## Changelog
177
177
 
178
+ * 0.3.5 - Don't strip underscores from identifiers.
178
179
  * 0.3.4 - Add Romanian support.
179
180
  * 0.3.3 - Add Norwegian support.
180
181
  * 0.3.2 - Improve Macedonian support.
@@ -5,7 +5,7 @@ module Babosa
5
5
  STRIPPABLE = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 14, 15, 16, 17, 18, 19,
6
6
  20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 33, 34, 35, 36, 37, 38, 39,
7
7
  40, 41, 42, 43, 44, 45, 46, 47, 58, 59, 60, 61, 62, 63, 64, 91, 92, 93, 94,
8
- 95, 96, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136,
8
+ 96, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136,
9
9
  137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151,
10
10
  152, 153, 154, 155, 156, 157, 158, 159, 161, 162, 163, 164, 165, 166, 167,
11
11
  168, 169, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 182, 183, 184,
@@ -1,5 +1,5 @@
1
1
  module Babosa
2
2
  module Version
3
- STRING = "0.3.4"
3
+ STRING = "0.3.5"
4
4
  end
5
5
  end
@@ -81,6 +81,10 @@ describe Babosa::Identifier do
81
81
  "a-b-c-d".to_slug.normalize.should eql("a-b-c-d")
82
82
  end
83
83
 
84
+ it "should not convert underscores" do
85
+ "hello_world".to_slug.normalize.should eql("hello_world")
86
+ end
87
+
84
88
  it "should work with non roman chars" do
85
89
  "検 索".to_slug.normalize.should eql("検-索")
86
90
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: babosa
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.3.4
5
+ version: 0.3.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Norman Clarke
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-10 00:00:00 -03:00
13
+ date: 2011-06-08 00:00:00 -03:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency