fat_core 0.1.12 → 0.1.13

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ffa9bd02f68ddfae5676b80fb9b9f6db788e66e6
4
- data.tar.gz: b865e251c27c603fa9ea25698f64f644de508ba2
3
+ metadata.gz: a8e08e0c1225985c5745b361c5d4610b227fdec3
4
+ data.tar.gz: 00e25d12b59957fd9324cbfb68d73a2ddb890bdf
5
5
  SHA512:
6
- metadata.gz: 3994eda5e762e1a979f0c609320919f7d03e9fbdbb2dd441cfef1cf634f01e0d8b2c68f8603fc7456294dcb129feb32c79c07568c9f221cad9a86deb40e83783
7
- data.tar.gz: f9d315906028ebcc769341b44f972e0f2f91f6577e83ae918a18d7618208066ebca3c8da9f3ea3b190a6ad416b3aff098e344c013039d4ce9407309949231870
6
+ metadata.gz: 35b470d0c1eda2d523b81448284578a9497a9fbfc354f52d99fb54046dfea3abbf8e777f5e9d1858c2df41c4a1a9cb41a8b31f60c8f3a74c006a61208e4a1bd9
7
+ data.tar.gz: 1755e9ee66a5f791be2cd17b93d74e00e3441d3dc0082f2fb40291454580ca2ec774a5ade9b44712c86bf1f1b59fe2c9d76428ff4debc86a73567dd66a5830d6
@@ -63,7 +63,7 @@ class String
63
63
  # Convert to symbol "Hello World" -> :hello_world
64
64
  def as_sym
65
65
  strip.squeeze(' ').gsub(/\s+/, '_').
66
- gsub(/[^_A-Za-z]/, '').downcase.to_sym
66
+ gsub(/[^_A-Za-z0-9]/, '').downcase.to_sym
67
67
  end
68
68
 
69
69
  def as_string
@@ -1,7 +1,7 @@
1
1
  module FatCore
2
2
  MAJOR = 0
3
3
  MINOR = 1
4
- PATCH = 12
4
+ PATCH = 13
5
5
 
6
6
  VERSION = [MAJOR, MINOR, PATCH].compact.join('.')
7
7
  end
@@ -118,6 +118,7 @@ the people, for the people, shall not perish from the earth."
118
118
  expect("joke".as_sym).to eq :joke
119
119
  expect("hello world".as_sym).to eq :hello_world
120
120
  expect("hello world it's me".as_sym).to eq :hello_world_its_me
121
+ expect("Street1".as_sym).to eq :street1
121
122
  end
122
123
 
123
124
  it "should do nothing in response to as_string" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fat_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel E. Doherty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-14 00:00:00.000000000 Z
11
+ date: 2014-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simplecov