itrigga-core_ext 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.2.0
@@ -0,0 +1,77 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{itrigga-core_ext}
8
+ s.version = "0.2.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Al Davidson", "Anson Kelly"]
12
+ s.date = %q{2011-08-01}
13
+ s.description = %q{Adds methods for
14
+ Hash:
15
+ - symbolize_keys
16
+ - recursive_symbolize_keys
17
+ Array:
18
+ - to_csv (requires FasterCSV gem)
19
+ - select_with_index
20
+ - to_auto_complete_list
21
+ - active_record_type_condition_rendering
22
+ }
23
+ s.email = %q{aldavidson@itrigga.com}
24
+ s.extra_rdoc_files = [
25
+ "LICENSE.txt",
26
+ "README.rdoc"
27
+ ]
28
+ s.files = [
29
+ "Gemfile",
30
+ "Gemfile.lock",
31
+ "LICENSE.txt",
32
+ "README.rdoc",
33
+ "Rakefile",
34
+ "VERSION",
35
+ "itrigga-core_ext.gemspec",
36
+ "lib/itrigga/core_ext.rb",
37
+ "lib/itrigga/core_ext/array.rb",
38
+ "lib/itrigga/core_ext/hash.rb",
39
+ "lib/itrigga/core_ext/string.rb",
40
+ "pkg/core_ext-0.1.0.gem",
41
+ "pkg/itrigga-core_ext-0.1.0.gem",
42
+ "pkg/trigga-core_ext-0.1.0.gem",
43
+ "test/helper.rb",
44
+ "test/test_core_ext.rb"
45
+ ]
46
+ s.homepage = %q{http://gems.itrigga.com/trigga-core_ext}
47
+ s.licenses = ["MIT"]
48
+ s.require_paths = ["lib", "lib/itrigga", "lib/itrigga"]
49
+ s.rubygems_version = %q{1.3.7}
50
+ s.summary = %q{extensions for core classes Hash, Array}
51
+
52
+ if s.respond_to? :specification_version then
53
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
54
+ s.specification_version = 3
55
+
56
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
57
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
58
+ s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
59
+ s.add_development_dependency(%q<rcov>, [">= 0"])
60
+ s.add_development_dependency(%q<rspec>, [">= 0"])
61
+ s.add_development_dependency(%q<fastercsv>, [">= 1.5.4"])
62
+ else
63
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
64
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
65
+ s.add_dependency(%q<rcov>, [">= 0"])
66
+ s.add_dependency(%q<rspec>, [">= 0"])
67
+ s.add_dependency(%q<fastercsv>, [">= 1.5.4"])
68
+ end
69
+ else
70
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
71
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
72
+ s.add_dependency(%q<rcov>, [">= 0"])
73
+ s.add_dependency(%q<rspec>, [">= 0"])
74
+ s.add_dependency(%q<fastercsv>, [">= 1.5.4"])
75
+ end
76
+ end
77
+
@@ -12,4 +12,8 @@ class String
12
12
  Iconv.conv('utf-16le', 'UTF-8', self)
13
13
  end
14
14
 
15
+ def to_active_record_condition
16
+ "%#{self.trim.gsub(/[[:space:]]+/, '%')}%"
17
+ end
18
+
15
19
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itrigga-core_ext
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 1
9
- - 1
10
- version: 0.1.1
8
+ - 2
9
+ - 0
10
+ version: 0.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Al Davidson
@@ -16,11 +16,10 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-07-22 00:00:00 +01:00
19
+ date: 2011-08-01 00:00:00 +01:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
- type: :development
24
23
  prerelease: false
25
24
  name: bundler
26
25
  version_requirements: &id001 !ruby/object:Gem::Requirement
@@ -35,8 +34,8 @@ dependencies:
35
34
  - 0
36
35
  version: 1.0.0
37
36
  requirement: *id001
38
- - !ruby/object:Gem::Dependency
39
37
  type: :development
38
+ - !ruby/object:Gem::Dependency
40
39
  prerelease: false
41
40
  name: jeweler
42
41
  version_requirements: &id002 !ruby/object:Gem::Requirement
@@ -51,8 +50,8 @@ dependencies:
51
50
  - 4
52
51
  version: 1.6.4
53
52
  requirement: *id002
54
- - !ruby/object:Gem::Dependency
55
53
  type: :development
54
+ - !ruby/object:Gem::Dependency
56
55
  prerelease: false
57
56
  name: rcov
58
57
  version_requirements: &id003 !ruby/object:Gem::Requirement
@@ -65,8 +64,8 @@ dependencies:
65
64
  - 0
66
65
  version: "0"
67
66
  requirement: *id003
68
- - !ruby/object:Gem::Dependency
69
67
  type: :development
68
+ - !ruby/object:Gem::Dependency
70
69
  prerelease: false
71
70
  name: rspec
72
71
  version_requirements: &id004 !ruby/object:Gem::Requirement
@@ -79,8 +78,8 @@ dependencies:
79
78
  - 0
80
79
  version: "0"
81
80
  requirement: *id004
82
- - !ruby/object:Gem::Dependency
83
81
  type: :development
82
+ - !ruby/object:Gem::Dependency
84
83
  prerelease: false
85
84
  name: fastercsv
86
85
  version_requirements: &id005 !ruby/object:Gem::Requirement
@@ -95,6 +94,7 @@ dependencies:
95
94
  - 4
96
95
  version: 1.5.4
97
96
  requirement: *id005
97
+ type: :development
98
98
  description: "Adds methods for \n Hash: \n - symbolize_keys\n - recursive_symbolize_keys\n Array:\n - to_csv (requires FasterCSV gem)\n - select_with_index\n - to_auto_complete_list\n - active_record_type_condition_rendering\n "
99
99
  email: aldavidson@itrigga.com
100
100
  executables: []
@@ -111,6 +111,7 @@ files:
111
111
  - README.rdoc
112
112
  - Rakefile
113
113
  - VERSION
114
+ - itrigga-core_ext.gemspec
114
115
  - lib/itrigga/core_ext.rb
115
116
  - lib/itrigga/core_ext/array.rb
116
117
  - lib/itrigga/core_ext/hash.rb