charisma 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/charisma.gemspec +38 -39
- data/lib/charisma.rb +0 -8
- data/lib/charisma/number_helper.rb +3 -6
- data/lib/charisma/version.rb +3 -3
- metadata +11 -25
data/charisma.gemspec
CHANGED
@@ -1,39 +1,38 @@
|
|
1
|
-
$:.push File.expand_path("../lib", __FILE__)
|
2
|
-
require 'charisma/version'
|
3
|
-
|
4
|
-
Gem::Specification.new do |s|
|
5
|
-
s.name = 'charisma'
|
6
|
-
s.version = Charisma::VERSION
|
7
|
-
s.platform = Gem::Platform::RUBY
|
8
|
-
s.date = "2011-04-29"
|
9
|
-
s.authors = ['Andy Rossmeissl', 'Seamus Abshere']
|
10
|
-
s.email = 'andy@rossmeissl.net'
|
11
|
-
s.homepage = 'http://github.com/brighterplanet/charisma'
|
12
|
-
s.summary = %Q{Curate your rich Ruby objects' attributes}
|
13
|
-
s.description = %Q{Define strategies for accessing and displaying a subset of your classes' attributes}
|
14
|
-
s.extra_rdoc_files = [
|
15
|
-
'LICENSE',
|
16
|
-
'README.rdoc',
|
17
|
-
]
|
18
|
-
|
19
|
-
s.required_rubygems_version = Gem::Requirement.new('>= 1.3.7')
|
20
|
-
s.rubygems_version = '1.3.7'
|
21
|
-
s.specification_version = 3
|
22
|
-
|
23
|
-
s.files = `git ls-files`.split("\n")
|
24
|
-
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
25
|
-
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
26
|
-
s.require_paths = ['lib']
|
27
|
-
|
28
|
-
s.add_dependency 'activesupport'
|
29
|
-
s.add_dependency '
|
30
|
-
s.add_dependency '
|
31
|
-
|
32
|
-
|
33
|
-
s.add_development_dependency '
|
34
|
-
s.add_development_dependency '
|
35
|
-
s.add_development_dependency '
|
36
|
-
s.add_development_dependency '
|
37
|
-
|
38
|
-
|
39
|
-
|
1
|
+
$:.push File.expand_path("../lib", __FILE__)
|
2
|
+
require 'charisma/version'
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = 'charisma'
|
6
|
+
s.version = Charisma::VERSION
|
7
|
+
s.platform = Gem::Platform::RUBY
|
8
|
+
s.date = "2011-04-29"
|
9
|
+
s.authors = ['Andy Rossmeissl', 'Seamus Abshere']
|
10
|
+
s.email = 'andy@rossmeissl.net'
|
11
|
+
s.homepage = 'http://github.com/brighterplanet/charisma'
|
12
|
+
s.summary = %Q{Curate your rich Ruby objects' attributes}
|
13
|
+
s.description = %Q{Define strategies for accessing and displaying a subset of your classes' attributes}
|
14
|
+
s.extra_rdoc_files = [
|
15
|
+
'LICENSE',
|
16
|
+
'README.rdoc',
|
17
|
+
]
|
18
|
+
|
19
|
+
s.required_rubygems_version = Gem::Requirement.new('>= 1.3.7')
|
20
|
+
s.rubygems_version = '1.3.7'
|
21
|
+
s.specification_version = 3
|
22
|
+
|
23
|
+
s.files = `git ls-files`.split("\n")
|
24
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
25
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
26
|
+
s.require_paths = ['lib']
|
27
|
+
|
28
|
+
s.add_dependency 'activesupport'
|
29
|
+
s.add_dependency 'blockenspiel'
|
30
|
+
s.add_dependency 'conversions'
|
31
|
+
|
32
|
+
s.add_development_dependency 'bundler'
|
33
|
+
s.add_development_dependency 'bueller'
|
34
|
+
s.add_development_dependency 'rake'
|
35
|
+
s.add_development_dependency 'rcov'
|
36
|
+
s.add_development_dependency 'supermodel'
|
37
|
+
end
|
38
|
+
|
data/lib/charisma.rb
CHANGED
@@ -9,14 +9,6 @@ require 'active_support/version'
|
|
9
9
|
require active_support_3_requirement
|
10
10
|
end if ActiveSupport::VERSION::MAJOR == 3
|
11
11
|
|
12
|
-
require 'action_pack'
|
13
|
-
require 'action_pack/version'
|
14
|
-
%w{
|
15
|
-
action_view/helpers/number_helper
|
16
|
-
}.each do |action_pack_3_requirement|
|
17
|
-
require action_pack_3_requirement
|
18
|
-
end if ActionPack::VERSION::MAJOR == 3
|
19
|
-
|
20
12
|
require 'blockenspiel'
|
21
13
|
require 'conversions'
|
22
14
|
|
@@ -1,12 +1,9 @@
|
|
1
|
-
require 'action_pack'
|
2
|
-
require 'action_view'
|
3
|
-
|
4
1
|
module Charisma
|
5
2
|
class NumberHelper
|
6
|
-
extend ActionView::Helpers::NumberHelper
|
7
|
-
|
8
3
|
def self.delimit(number)
|
9
|
-
|
4
|
+
parts = number.to_s.split('.')
|
5
|
+
parts[0].gsub!(/(\d)(?=(\d\d\d)+(?!\d))/, "\\1,")
|
6
|
+
parts.join('.')
|
10
7
|
end
|
11
8
|
end
|
12
9
|
end
|
data/lib/charisma/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
module Charisma
|
2
|
-
VERSION = "0.1.
|
3
|
-
end
|
1
|
+
module Charisma
|
2
|
+
VERSION = "0.1.2"
|
3
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: charisma
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Andy Rossmeissl
|
@@ -35,7 +35,7 @@ dependencies:
|
|
35
35
|
requirement: *id001
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
prerelease: false
|
38
|
-
name:
|
38
|
+
name: blockenspiel
|
39
39
|
type: :runtime
|
40
40
|
version_requirements: &id002 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
@@ -49,7 +49,7 @@ dependencies:
|
|
49
49
|
requirement: *id002
|
50
50
|
- !ruby/object:Gem::Dependency
|
51
51
|
prerelease: false
|
52
|
-
name:
|
52
|
+
name: conversions
|
53
53
|
type: :runtime
|
54
54
|
version_requirements: &id003 !ruby/object:Gem::Requirement
|
55
55
|
none: false
|
@@ -63,8 +63,8 @@ dependencies:
|
|
63
63
|
requirement: *id003
|
64
64
|
- !ruby/object:Gem::Dependency
|
65
65
|
prerelease: false
|
66
|
-
name:
|
67
|
-
type: :
|
66
|
+
name: bundler
|
67
|
+
type: :development
|
68
68
|
version_requirements: &id004 !ruby/object:Gem::Requirement
|
69
69
|
none: false
|
70
70
|
requirements:
|
@@ -77,7 +77,7 @@ dependencies:
|
|
77
77
|
requirement: *id004
|
78
78
|
- !ruby/object:Gem::Dependency
|
79
79
|
prerelease: false
|
80
|
-
name:
|
80
|
+
name: bueller
|
81
81
|
type: :development
|
82
82
|
version_requirements: &id005 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
@@ -91,7 +91,7 @@ dependencies:
|
|
91
91
|
requirement: *id005
|
92
92
|
- !ruby/object:Gem::Dependency
|
93
93
|
prerelease: false
|
94
|
-
name:
|
94
|
+
name: rake
|
95
95
|
type: :development
|
96
96
|
version_requirements: &id006 !ruby/object:Gem::Requirement
|
97
97
|
none: false
|
@@ -105,7 +105,7 @@ dependencies:
|
|
105
105
|
requirement: *id006
|
106
106
|
- !ruby/object:Gem::Dependency
|
107
107
|
prerelease: false
|
108
|
-
name:
|
108
|
+
name: rcov
|
109
109
|
type: :development
|
110
110
|
version_requirements: &id007 !ruby/object:Gem::Requirement
|
111
111
|
none: false
|
@@ -119,7 +119,7 @@ dependencies:
|
|
119
119
|
requirement: *id007
|
120
120
|
- !ruby/object:Gem::Dependency
|
121
121
|
prerelease: false
|
122
|
-
name:
|
122
|
+
name: supermodel
|
123
123
|
type: :development
|
124
124
|
version_requirements: &id008 !ruby/object:Gem::Requirement
|
125
125
|
none: false
|
@@ -131,20 +131,6 @@ dependencies:
|
|
131
131
|
- 0
|
132
132
|
version: "0"
|
133
133
|
requirement: *id008
|
134
|
-
- !ruby/object:Gem::Dependency
|
135
|
-
prerelease: false
|
136
|
-
name: supermodel
|
137
|
-
type: :development
|
138
|
-
version_requirements: &id009 !ruby/object:Gem::Requirement
|
139
|
-
none: false
|
140
|
-
requirements:
|
141
|
-
- - ">="
|
142
|
-
- !ruby/object:Gem::Version
|
143
|
-
hash: 3
|
144
|
-
segments:
|
145
|
-
- 0
|
146
|
-
version: "0"
|
147
|
-
requirement: *id009
|
148
134
|
description: Define strategies for accessing and displaying a subset of your classes' attributes
|
149
135
|
email: andy@rossmeissl.net
|
150
136
|
executables: []
|