gruber-case 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/gruber-case.rb +1 -1
  2. metadata +6 -4
  3. checksums.yaml +0 -15
@@ -38,7 +38,7 @@ class String
38
38
  end
39
39
 
40
40
  def namecase
41
- small_words = ["'s", "'t", "aan", "aan 't", "aan de", "aan den", "aan der", "aan het", "al", "auf", "aus", "bij", "bij 't", "bij de", "bij den", "bij het", "boven d'", "d'", "da[s]?", "dalla", "de", "de die", "de die le", "de l'", "de la", "de las", "de le", "de van der", "del", "della", "den", "der", "des", "di", "do[s]?", "el", "het", "in", "in 't", "in de", "in den", "in der", "in het", "onder", "onder 't", "onder de", "onder den", "onder het", "op", "op 't", "op de", "op den", "op der", "op gen", "op het", "op ten", "over", "over 't", "over de", "over den", "over het", "saint", "st", "ste", "te", "ten", "ter", "tot", "uijt", "uijt 't", "uijt de", "uijt den", "uijt het", "uijt te de", "uijt ten", "uit", "uit 't", "uit de", "uit den", "uit het", "uit te de", "uit ten", "van", "van 't", "van de", "van de l'", "van den", "van der", "van gen", "van het", "van la", "van ter", "van van de", "vander", "ver", "von", "voor", "voor de", "voor den", "voor in 't"]
41
+ small_words = ["'s", "'t", "aan", "aan 't", "aan de", "aan den", "aan der", "aan het", "al", "auf", "aus", "bij", "bij 't", "bij de", "bij den", "bij het", "boven d'", "d'", "da[s]?", "dalla", "de", "de die", "de die le", "de l'", "de la", "de las", "de le", "de van der", "del", "della", "den", "der", "des", "di", "do[s]?", "el", "het", "in", "in 't", "in de", "in den", "in der", "in het", "onder", "onder 't", "onder de", "onder den", "onder het", "op", "op 't", "op de", "op den", "op der", "op gen", "op het", "op ten", "over", "over 't", "over de", "over den", "over het", "saint", "st", "ste", "te", "ten", "ter", "tot", "uijt", "uijt 't", "uijt de", "uijt den", "uijt het", "uijt te de", "uijt ten", "uit", "uit 't", "uit de", "uit den", "uit het", "uit te de", "uit ten", "van 't", "van de", "van de l'", "van den", "van der", "van gen", "van het", "van la", "van ter", "van van de", "vander", "ver", "voor", "voor de", "voor den", "voor in 't"]
42
42
  small_re = small_words.join('|')
43
43
  s = self.split(" ").map(&:capitalize).join(" ")
44
44
  s.gsub!(/'\w/io) { |w| w.upcase }
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gruber-case
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Benjamin Jackson
@@ -20,25 +21,26 @@ files:
20
21
  homepage: https://github.com/longform/gruber-case
21
22
  licenses:
22
23
  - MIT
23
- metadata: {}
24
24
  post_install_message:
25
25
  rdoc_options: []
26
26
  require_paths:
27
27
  - lib
28
28
  required_ruby_version: !ruby/object:Gem::Requirement
29
+ none: false
29
30
  requirements:
30
31
  - - ! '>='
31
32
  - !ruby/object:Gem::Version
32
33
  version: '0'
33
34
  required_rubygems_version: !ruby/object:Gem::Requirement
35
+ none: false
34
36
  requirements:
35
37
  - - ! '>='
36
38
  - !ruby/object:Gem::Version
37
39
  version: '0'
38
40
  requirements: []
39
41
  rubyforge_project:
40
- rubygems_version: 2.0.5
42
+ rubygems_version: 1.8.23
41
43
  signing_key:
42
- specification_version: 4
44
+ specification_version: 3
43
45
  summary: Gruber Case
44
46
  test_files: []
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MWU5M2I0ZmNkNWQ4ZWU4ZTQ4MGEwZTU4ODRmOWQwNDA0M2RlMWE1OA==
5
- data.tar.gz: !binary |-
6
- ZmMwMmZlZTc4MTJmNDNiMWE1ZTRlOGJhOTNjOGFjYjBkZDAzZDUzNA==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- ZTkzNzAzMjQyYTU2NGZiODRmZmQzZDZjNWZmY2JjMzc2NzU5YTMzYjQ5NWY2
10
- OGZjYWUyYjRhMGVkNWE2ZWRjODczYzY2YWE0MGNmZGUzZGRjZmQ5ZTc0OTZl
11
- MzRjNThlOGYzYTVjZjE2MmFkZTYxNDgwYWEwMDIzZjQ5MzllMjU=
12
- data.tar.gz: !binary |-
13
- NGE0MGM1MGUzNTllMTAxMzgwZmE1OTg2MDVkYTI2M2FkMmZmYjBmZTlmNTkz
14
- NzRiZDkzZDRjNDViYTlhZjU5ZGViYzM1YzZlMGUxNmIzNjg4N2M3ZTgxYzE0
15
- OTgyNmEwOGNmYjJmMjMwZjFhNTZiOTEwNmIzNGIxZTIyNTEyNmU=