textutils 0.6.6 → 0.6.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 526367f0ef97dce6925616ab11b108b1fcddd0d9
4
+ data.tar.gz: ea3a6c42310cf7ab0a45e1c71cfcd3dc8d5c2d05
5
+ SHA512:
6
+ metadata.gz: 5e1ab42c2b9222f2b35513d73221b55c491ef12facac4503b127430f0d086a0e3c25cf57c5f53394fe30e9bb6af8d392c8639e2a5457068810cb2e92ddfc7b31
7
+ data.tar.gz: bfb33fd98637d1ed90ed82e06fe5c5727c28b781c934de6cea82772a9b7789fe7c70524b6e468fc121ccedc1a96f93a1958cf5951c885cf122d3fcb1b3118185
@@ -31,3 +31,28 @@ def title_esc_regex( title_unescaped )
31
31
  TextUtils.title_esc_regex( title_unescaped )
32
32
  end
33
33
 
34
+
35
+ def find_data_path_from_gemfile_gitref( name )
36
+ puts "[debug] find_data_path( name='#{name}' )..."
37
+ puts "load path:"
38
+ pp $LOAD_PATH
39
+
40
+ # escape chars for regex e.g. . becomes \.
41
+ name_esc = name.gsub( '.', '\.' )
42
+ name_regex = /\/(#{name_esc}-[a-z0-9]+)|(#{name_esc})\/lib$/ # e.g. /\/(beer\.db-[a-z0-9]+)|(beer\.db)\//
43
+
44
+ candidates = []
45
+ $LOAD_PATH.each do |path|
46
+ if path =~ name_regex
47
+ # cutoff trailing /lib
48
+ candidates << path[0..-5]
49
+ end
50
+ end
51
+
52
+ puts 'found candidates:'
53
+ pp candidates
54
+
55
+ ## use first candidate
56
+ candidates[0]
57
+ end
58
+
@@ -1,6 +1,6 @@
1
1
 
2
2
  module TextUtils
3
3
 
4
- VERSION = '0.6.6'
4
+ VERSION = '0.6.7'
5
5
 
6
6
  end # module TextUtils
metadata CHANGED
@@ -1,49 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: textutils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.6
5
- prerelease:
4
+ version: 0.6.7
6
5
  platform: ruby
7
6
  authors:
8
7
  - Gerald Bauer
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-06-25 00:00:00.000000000Z
11
+ date: 2013-08-19 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: logutils
16
- requirement: &16771836 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0.5'
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *16771836
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '0.5'
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: rdoc
27
- requirement: &16771092 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
31
  - - ~>
31
32
  - !ruby/object:Gem::Version
32
33
  version: '4.0'
33
34
  type: :development
34
35
  prerelease: false
35
- version_requirements: *16771092
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '4.0'
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: hoe
38
- requirement: &16770396 !ruby/object:Gem::Requirement
39
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
40
44
  requirements:
41
45
  - - ~>
42
46
  - !ruby/object:Gem::Version
43
47
  version: '3.6'
44
48
  type: :development
45
49
  prerelease: false
46
- version_requirements: *16770396
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '3.6'
47
55
  description: textutils - Text Filters, Helpers, Readers and More
48
56
  email: webslideshow@googlegroups.com
49
57
  executables: []
@@ -78,6 +86,7 @@ files:
78
86
  homepage: http://geraldb.github.com/textutils
79
87
  licenses:
80
88
  - Public Domain
89
+ metadata: {}
81
90
  post_install_message:
82
91
  rdoc_options:
83
92
  - --main
@@ -85,22 +94,20 @@ rdoc_options:
85
94
  require_paths:
86
95
  - lib
87
96
  required_ruby_version: !ruby/object:Gem::Requirement
88
- none: false
89
97
  requirements:
90
98
  - - ! '>='
91
99
  - !ruby/object:Gem::Version
92
100
  version: 1.9.2
93
101
  required_rubygems_version: !ruby/object:Gem::Requirement
94
- none: false
95
102
  requirements:
96
103
  - - ! '>='
97
104
  - !ruby/object:Gem::Version
98
105
  version: '0'
99
106
  requirements: []
100
107
  rubyforge_project: textutils
101
- rubygems_version: 1.7.2
108
+ rubygems_version: 2.0.6
102
109
  signing_key:
103
- specification_version: 3
110
+ specification_version: 4
104
111
  summary: textutils - Text Filters, Helpers, Readers and More
105
112
  test_files:
106
113
  - test/test_helper.rb