has_enum 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,8 @@
1
+ pkg/*
2
+ *.gem
3
+ .bundle
4
+ *.tmp
5
+ .DS_Store
6
+ spec/*.db
7
+ *.swp
8
+ Gemfile.lock
data/.rvmrc ADDED
@@ -0,0 +1,2 @@
1
+ rvm_gemset_create_on_use_flag=1
2
+ rvm use 1.9.2@has_enum
data/Gemfile CHANGED
@@ -1,14 +1,3 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem "rails", "~> 3.0.0"
4
-
5
- # Add dependencies to develop your gem here.
6
- # Include everything needed to run rake, tests, features, etc.
7
- group :development do
8
- gem "rspec", ">= 2.2.0"
9
- gem "rails", "~> 3.0.0"
10
- gem "bundler", ">= 1.0.0"
11
- gem "jeweler", ">= 1.5.1"
12
- gem "sqlite3-ruby", "~> 1.3.2"
13
- gem "rcov", ">= 0"
14
- end
3
+ gemspec
data/Rakefile CHANGED
@@ -1,25 +1,5 @@
1
- require 'rubygems'
2
1
  require 'bundler'
3
- begin
4
- Bundler.setup(:default, :development)
5
- rescue Bundler::BundlerError => e
6
- $stderr.puts e.message
7
- $stderr.puts "Run `bundle install` to install missing gems"
8
- exit e.status_code
9
- end
10
- require 'rake'
11
-
12
- require 'jeweler'
13
- Jeweler::Tasks.new do |gem|
14
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
15
- gem.name = "has_enum"
16
- gem.homepage = "https://github.com/openteam/has_enum"
17
- gem.license = "MIT"
18
- gem.summary = %Q{Gem for Rails to easily handle enumeration attributes in models}
19
- gem.email = "kes.eclipse@gmail.com"
20
- gem.authors = ["Andreas Korth", "Konstantin Shabanov"]
21
- end
22
- Jeweler::RubygemsDotOrgTasks.new
2
+ Bundler::GemHelper.install_tasks
23
3
 
24
4
  require 'rspec/core'
25
5
  require 'rspec/core/rake_task'
@@ -27,19 +7,4 @@ RSpec::Core::RakeTask.new(:spec) do |spec|
27
7
  spec.pattern = FileList['spec/**/*_spec.rb']
28
8
  end
29
9
 
30
- RSpec::Core::RakeTask.new(:rcov) do |spec|
31
- spec.pattern = 'spec/**/*_spec.rb'
32
- spec.rcov = true
33
- end
34
-
35
10
  task :default => :spec
36
-
37
- require 'rake/rdoctask'
38
- Rake::RDocTask.new do |rdoc|
39
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
40
-
41
- rdoc.rdoc_dir = 'rdoc'
42
- rdoc.title = "has_enum #{version}"
43
- rdoc.rdoc_files.include('README*')
44
- rdoc.rdoc_files.include('lib/**/*.rb')
45
- end
@@ -1,80 +1,25 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
1
  # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "has_enum/version"
5
4
 
6
5
  Gem::Specification.new do |s|
7
- s.name = %q{has_enum}
8
- s.version = "0.5.0"
6
+ s.name = "has_enum"
7
+ s.version = HasEnum::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Andreas Korth", "Konstantin Shabanov"]
10
+ s.email = ["kes.eclipse@gmail.com"]
11
+ s.homepage = "http://github.com/openteam/has_enum"
12
+ s.summary = %q{Gem for Rails to easily handle enumeration attributes in models}
13
+ s.description = %q{Gem for and Rails3 to easily handle enumeration attributes in ActiveRecord's models}
14
+ s.licenses = ["MIT"]
9
15
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Andreas Korth", "Konstantin Shabanov"]
12
- s.date = %q{2011-01-19}
13
- s.email = %q{kes.eclipse@gmail.com}
14
- s.extra_rdoc_files = [
15
- "LICENSE.txt",
16
- "README.md"
17
- ]
18
- s.files = [
19
- ".rspec",
20
- "Gemfile",
21
- "Gemfile.lock",
22
- "LICENSE.txt",
23
- "README.md",
24
- "Rakefile",
25
- "VERSION",
26
- "has_enum.gemspec",
27
- "lib/has_enum.rb",
28
- "lib/has_enum/active_record.rb",
29
- "lib/has_enum/helpers.rb",
30
- "spec/has_enum_spec.rb",
31
- "spec/helpers/form_helper_spec.rb",
32
- "spec/rcov.opts",
33
- "spec/ru.yml",
34
- "spec/spec_helper.rb",
35
- "spec/test_model.rb"
36
- ]
37
- s.homepage = %q{https://github.com/openteam/has_enum}
38
- s.licenses = ["MIT"]
39
- s.require_paths = ["lib"]
40
- s.rubygems_version = %q{1.3.7}
41
- s.summary = %q{Gem for Rails to easily handle enumeration attributes in models}
42
- s.test_files = [
43
- "spec/has_enum_spec.rb",
44
- "spec/helpers/form_helper_spec.rb",
45
- "spec/spec_helper.rb",
46
- "spec/test_model.rb"
47
- ]
16
+ s.add_dependency "rails", ["~> 3.0.0"]
17
+ s.add_development_dependency "rspec"
18
+ s.add_development_dependency "sqlite3"
48
19
 
49
- if s.respond_to? :specification_version then
50
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
51
- s.specification_version = 3
52
-
53
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
54
- s.add_runtime_dependency(%q<rails>, ["~> 3.0.0"])
55
- s.add_development_dependency(%q<rspec>, [">= 2.2.0"])
56
- s.add_development_dependency(%q<rails>, ["~> 3.0.0"])
57
- s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
58
- s.add_development_dependency(%q<jeweler>, [">= 1.5.1"])
59
- s.add_development_dependency(%q<sqlite3-ruby>, ["~> 1.3.2"])
60
- s.add_development_dependency(%q<rcov>, [">= 0"])
61
- else
62
- s.add_dependency(%q<rails>, ["~> 3.0.0"])
63
- s.add_dependency(%q<rspec>, [">= 2.2.0"])
64
- s.add_dependency(%q<rails>, ["~> 3.0.0"])
65
- s.add_dependency(%q<bundler>, [">= 1.0.0"])
66
- s.add_dependency(%q<jeweler>, [">= 1.5.1"])
67
- s.add_dependency(%q<sqlite3-ruby>, ["~> 1.3.2"])
68
- s.add_dependency(%q<rcov>, [">= 0"])
69
- end
70
- else
71
- s.add_dependency(%q<rails>, ["~> 3.0.0"])
72
- s.add_dependency(%q<rspec>, [">= 2.2.0"])
73
- s.add_dependency(%q<rails>, ["~> 3.0.0"])
74
- s.add_dependency(%q<bundler>, [">= 1.0.0"])
75
- s.add_dependency(%q<jeweler>, [">= 1.5.1"])
76
- s.add_dependency(%q<sqlite3-ruby>, ["~> 1.3.2"])
77
- s.add_dependency(%q<rcov>, [">= 0"])
78
- end
20
+ s.extra_rdoc_files = [ "LICENSE.txt", "README.md"]
21
+ s.files = `git ls-files`.split("\n")
22
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
23
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
24
+ s.require_paths = ["lib"]
79
25
  end
80
-
@@ -1,4 +1,4 @@
1
1
  require 'has_enum/active_record'
2
2
  require 'has_enum/helpers'
3
3
 
4
- ActiveRecord::Base.send(:include, HasEnum::ActiveRecord)
4
+ ActiveRecord::Base.send(:include, HasEnum::ActiveRecord)
@@ -18,12 +18,11 @@ module HasEnum
18
18
  values.each do |val|
19
19
  scope :"#{attribute}_#{val}", where(:"#{attribute}" => "#{val}")
20
20
  end if options[:scopes]
21
-
21
+
22
22
  values.each do |val|
23
23
  define_method(:"#{attribute}_#{val}?") { self.send(attribute) == val }
24
24
  end if options[:query_methods] != false
25
25
 
26
-
27
26
  define_method(:"#{attribute}=") do |value|
28
27
  if value.nil? or values.find{ |val| val == value }
29
28
  set_value = lambda { |value| value.is_a?(Symbol) ? Marshal.dump(value) : value }
@@ -42,26 +41,46 @@ module HasEnum
42
41
  define_method "human_#{attribute}" do
43
42
  return nil unless self.send(attribute)
44
43
 
45
- klass = self.class
46
- klass_key = klass.model_name.respond_to?(:i18n_key) ? klass.model_name.i18n_key : klass.name.underscore
47
- defaults = ["activerecord.attributes.#{klass_key}.#{attribute}_enum.#{self.send(attribute)}"]
48
-
44
+ defaults = ["activerecord.attributes.#{self.class.klass_key}.#{attribute}_enum.#{self.send(attribute)}"]
49
45
  defaults << self.send(attribute).to_s.humanize
50
46
  I18n.translate(defaults.shift, :default => defaults, :raise => true)
51
47
  end
52
48
  end
53
49
 
50
+ def human_enum
51
+ scope = "activerecord.attributes.#{self.klass_key}"
52
+ i18n = lambda { |key| I18n.t(key, :scope => scope, :raise => true) }
53
+ trans_hash = {}
54
+
55
+ enum.each_pair do |attribute, values|
56
+ begin
57
+ trans_hash[attribute] = i18n.call("#{attribute}_enum")
58
+ rescue I18n::MissingTranslationData
59
+ hash = {}
60
+ values.each do |value|
61
+ hash[value.to_sym] = value.humanize
62
+ end
63
+ trans_hash[attribute] = hash
64
+ end
65
+ end
66
+
67
+ trans_hash
68
+ end
69
+
54
70
  def values_for_select_tag(enum)
55
71
  values = enum(enum)
56
72
  begin
57
- klass_key = self.model_name.respond_to?(:i18n_key) ? self.model_name.i18n_key : self.name.underscore
58
- translation = I18n.translate("activerecord.attributes.#{klass_key}.#{enum}_enum", :raise => true)
73
+ translation = I18n.translate("activerecord.attributes.#{self.klass_key}.#{enum}_enum", :raise => true)
59
74
 
60
75
  values.map { |value| [translation[value.to_sym], value] }
61
76
  rescue I18n::MissingTranslationData
62
77
  values.map { |value| [value.to_s.humanize, value] }
63
78
  end
64
79
  end
80
+
81
+ def klass_key
82
+ self.model_name.respond_to?(:i18n_key) ? self.model_name.i18n_key : self.name.underscore
83
+ end
65
84
  end
66
85
  end
67
86
  end
@@ -0,0 +1,3 @@
1
+ module HasEnum
2
+ VERSION = "0.6.0"
3
+ end
@@ -6,11 +6,47 @@ describe HasEnum::ActiveRecord do
6
6
  before :each do
7
7
  @model = TestModel.new(:category => 'misc', :color => 'blue', :foo => 'bar', :status => :pending)
8
8
  end
9
-
9
+
10
10
  it "should return the values for a given enum attribute" do
11
11
  TestModel.enum[:category].should eql(%w(stuff things misc))
12
12
  end
13
+
14
+ it "should return hash of values with it's translated equivalent" do
15
+ I18n.reload!
16
+ TestModel.human_enum[:size].should eql Hash[:small => "Маленький",
17
+ :medium => "Средний",
18
+ :large => "Большой"]
19
+ TestModel.human_enum[:status].should eql Hash[:pending => "На рассмотрении",
20
+ :failed =>"Обработано с ошибкой",
21
+ :done =>"Завершено"]
22
+ TestModel.human_enum[:category].should eql Hash[:stuff => 'Stuff',
23
+ :things => 'Things',
24
+ :misc => 'Misc']
25
+ end
13
26
 
27
+ it "should return hash of enums with hashes of attributes and theirs translated equivalent" do
28
+ I18n.reload!
29
+ TestModel.human_enum.should eql Hash[:category => {:stuff=>"Stuff",
30
+ :things=>"Things",
31
+ :misc=>"Misc"},
32
+ :color => {:red=>"Red",
33
+ :green=>"Green",
34
+ :blue=>"Blue"},
35
+ :size => {:small=>"Маленький",
36
+ :medium=>"Средний",
37
+ :large=>"Большой"},
38
+ :status => {:pending=>"На рассмотрении",
39
+ :failed=>"Обработано с ошибкой",
40
+ :done=>"Завершено"}]
41
+ end
42
+
43
+ it "should return translated value for attribute" do
44
+ I18n.reload!
45
+ TestModel.human_enum[:size][:large].should eql "Большой"
46
+ TestModel.human_enum[:color][:red].should eql "Red"
47
+ TestModel.human_enum[:status][:done].should eql "Завершено"
48
+ end
49
+
14
50
  describe "category enum" do
15
51
  it "should accept enum values for the attribute" do
16
52
  %w(stuff things misc).each do |value|
@@ -18,24 +54,24 @@ describe HasEnum::ActiveRecord do
18
54
  @model.should be_valid
19
55
  end
20
56
  end
21
-
57
+
22
58
  it "should accept nil value for the attribute" do
23
59
  @model.category = nil
24
60
  @model.category.should be_nil
25
61
  end
26
-
62
+
27
63
  it "should reject non enum values for the attribute" do
28
64
  @model.category = 'objects'
29
65
  @model.errors[:category].size.should eql(1)
30
66
  end
31
-
67
+
32
68
  it "should define query methods for enum values" do
33
69
  %w( stuff things misc ).each do |value|
34
70
  @model.should respond_to(:"category_#{value}?")
35
71
  end
36
72
  end
37
73
  end
38
-
74
+
39
75
  describe "color enum" do
40
76
  it "should accept any value for the attribute" do
41
77
  %w(red orange yellow).each do |value|
@@ -43,12 +79,12 @@ describe HasEnum::ActiveRecord do
43
79
  @model.should be_valid
44
80
  end
45
81
  end
46
-
82
+
47
83
  it "should reject an empty value for the attribute" do
48
84
  @model.color = ''
49
85
  @model.errors[:color].size.should eql(1)
50
86
  end
51
-
87
+
52
88
  it "should define a query method for each enum value" do
53
89
  @model.color = 'green'
54
90
  @model.category = 'stuff'
@@ -57,7 +93,7 @@ describe HasEnum::ActiveRecord do
57
93
  @model.should_not be_color_red
58
94
  @model.should_not be_color_blue
59
95
  end
60
-
96
+
61
97
  it "should define a scope for each enum value" do
62
98
  @model.color = 'red'
63
99
  @model.save
@@ -76,16 +112,16 @@ describe HasEnum::ActiveRecord do
76
112
  @model.should be_valid
77
113
  end
78
114
  end
79
-
115
+
80
116
  it "should not define query methods for enum values" do
81
117
  %w(small medium large).each do |value|
82
118
  @model.should_not respond_to(:"size_#{value}?")
83
119
  end
84
120
  end
85
-
121
+
86
122
  it "should return humanized translation if not localized" do
87
- @model.size = 'medium'
88
- @model.human_size.should eql("Medium")
123
+ @model.category = 'stuff'
124
+ @model.human_category.should eql("Stuff")
89
125
  end
90
126
  end
91
127
 
@@ -94,21 +130,21 @@ describe HasEnum::ActiveRecord do
94
130
  @model.status = :pending
95
131
  @model.status.should eql(:pending)
96
132
  end
97
-
133
+
98
134
  it "should define query methods for enum values" do
99
135
  @model.status = :pending
100
136
  @model.should be_status_pending
101
137
  end
102
-
138
+
103
139
  it "should accept nil value for the attribute" do
104
140
  @model.status = nil
105
141
  @model.status.should be_nil
106
142
  end
107
-
143
+
108
144
  it "should translate values for the enum" do
109
145
  I18n.reload!
110
146
  @model.status = :pending
111
147
  @model.human_status.should eql("На рассмотрении")
112
148
  end
113
149
  end
114
- end
150
+ end
@@ -2,7 +2,11 @@ ru:
2
2
  activerecord:
3
3
  attributes:
4
4
  test_model:
5
+ size_enum:
6
+ small: "Маленький"
7
+ medium: "Средний"
8
+ large: "Большой"
5
9
  status_enum:
6
10
  pending: "На рассмотрении"
7
11
  failed: "Обработано с ошибкой"
8
- done: "Завершено"
12
+ done: "Завершено"
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_enum
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 5
8
- - 0
9
- version: 0.5.0
4
+ prerelease:
5
+ version: 0.6.0
10
6
  platform: ruby
11
7
  authors:
12
8
  - Andreas Korth
@@ -15,114 +11,45 @@ autorequire:
15
11
  bindir: bin
16
12
  cert_chain: []
17
13
 
18
- date: 2011-01-19 00:00:00 +06:00
14
+ date: 2011-02-08 00:00:00 +06:00
19
15
  default_executable:
20
16
  dependencies:
21
17
  - !ruby/object:Gem::Dependency
22
18
  name: rails
19
+ prerelease: false
23
20
  requirement: &id001 !ruby/object:Gem::Requirement
24
21
  none: false
25
22
  requirements:
26
23
  - - ~>
27
24
  - !ruby/object:Gem::Version
28
- segments:
29
- - 3
30
- - 0
31
- - 0
32
25
  version: 3.0.0
33
26
  type: :runtime
34
- prerelease: false
35
27
  version_requirements: *id001
36
28
  - !ruby/object:Gem::Dependency
37
29
  name: rspec
30
+ prerelease: false
38
31
  requirement: &id002 !ruby/object:Gem::Requirement
39
32
  none: false
40
33
  requirements:
41
34
  - - ">="
42
35
  - !ruby/object:Gem::Version
43
- segments:
44
- - 2
45
- - 2
46
- - 0
47
- version: 2.2.0
36
+ version: "0"
48
37
  type: :development
49
- prerelease: false
50
38
  version_requirements: *id002
51
39
  - !ruby/object:Gem::Dependency
52
- name: rails
53
- requirement: &id003 !ruby/object:Gem::Requirement
54
- none: false
55
- requirements:
56
- - - ~>
57
- - !ruby/object:Gem::Version
58
- segments:
59
- - 3
60
- - 0
61
- - 0
62
- version: 3.0.0
63
- type: :development
40
+ name: sqlite3
64
41
  prerelease: false
65
- version_requirements: *id003
66
- - !ruby/object:Gem::Dependency
67
- name: bundler
68
- requirement: &id004 !ruby/object:Gem::Requirement
69
- none: false
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- segments:
74
- - 1
75
- - 0
76
- - 0
77
- version: 1.0.0
78
- type: :development
79
- prerelease: false
80
- version_requirements: *id004
81
- - !ruby/object:Gem::Dependency
82
- name: jeweler
83
- requirement: &id005 !ruby/object:Gem::Requirement
84
- none: false
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- segments:
89
- - 1
90
- - 5
91
- - 1
92
- version: 1.5.1
93
- type: :development
94
- prerelease: false
95
- version_requirements: *id005
96
- - !ruby/object:Gem::Dependency
97
- name: sqlite3-ruby
98
- requirement: &id006 !ruby/object:Gem::Requirement
99
- none: false
100
- requirements:
101
- - - ~>
102
- - !ruby/object:Gem::Version
103
- segments:
104
- - 1
105
- - 3
106
- - 2
107
- version: 1.3.2
108
- type: :development
109
- prerelease: false
110
- version_requirements: *id006
111
- - !ruby/object:Gem::Dependency
112
- name: rcov
113
- requirement: &id007 !ruby/object:Gem::Requirement
42
+ requirement: &id003 !ruby/object:Gem::Requirement
114
43
  none: false
115
44
  requirements:
116
45
  - - ">="
117
46
  - !ruby/object:Gem::Version
118
- segments:
119
- - 0
120
47
  version: "0"
121
48
  type: :development
122
- prerelease: false
123
- version_requirements: *id007
124
- description:
125
- email: kes.eclipse@gmail.com
49
+ version_requirements: *id003
50
+ description: Gem for and Rails3 to easily handle enumeration attributes in ActiveRecord's models
51
+ email:
52
+ - kes.eclipse@gmail.com
126
53
  executables: []
127
54
 
128
55
  extensions: []
@@ -131,25 +58,25 @@ extra_rdoc_files:
131
58
  - LICENSE.txt
132
59
  - README.md
133
60
  files:
61
+ - .gitignore
134
62
  - .rspec
63
+ - .rvmrc
135
64
  - Gemfile
136
- - Gemfile.lock
137
65
  - LICENSE.txt
138
66
  - README.md
139
67
  - Rakefile
140
- - VERSION
141
68
  - has_enum.gemspec
142
69
  - lib/has_enum.rb
143
70
  - lib/has_enum/active_record.rb
144
71
  - lib/has_enum/helpers.rb
72
+ - lib/has_enum/version.rb
145
73
  - spec/has_enum_spec.rb
146
74
  - spec/helpers/form_helper_spec.rb
147
- - spec/rcov.opts
148
75
  - spec/ru.yml
149
76
  - spec/spec_helper.rb
150
77
  - spec/test_model.rb
151
78
  has_rdoc: true
152
- homepage: https://github.com/openteam/has_enum
79
+ homepage: http://github.com/openteam/has_enum
153
80
  licenses:
154
81
  - MIT
155
82
  post_install_message:
@@ -162,27 +89,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
162
89
  requirements:
163
90
  - - ">="
164
91
  - !ruby/object:Gem::Version
165
- hash: -956477031175016980
166
- segments:
167
- - 0
168
92
  version: "0"
169
93
  required_rubygems_version: !ruby/object:Gem::Requirement
170
94
  none: false
171
95
  requirements:
172
96
  - - ">="
173
97
  - !ruby/object:Gem::Version
174
- segments:
175
- - 0
176
98
  version: "0"
177
99
  requirements: []
178
100
 
179
101
  rubyforge_project:
180
- rubygems_version: 1.3.7
102
+ rubygems_version: 1.5.0
181
103
  signing_key:
182
104
  specification_version: 3
183
105
  summary: Gem for Rails to easily handle enumeration attributes in models
184
106
  test_files:
185
107
  - spec/has_enum_spec.rb
186
108
  - spec/helpers/form_helper_spec.rb
109
+ - spec/ru.yml
187
110
  - spec/spec_helper.rb
188
111
  - spec/test_model.rb
@@ -1,92 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- abstract (1.0.0)
5
- actionmailer (3.0.3)
6
- actionpack (= 3.0.3)
7
- mail (~> 2.2.9)
8
- actionpack (3.0.3)
9
- activemodel (= 3.0.3)
10
- activesupport (= 3.0.3)
11
- builder (~> 2.1.2)
12
- erubis (~> 2.6.6)
13
- i18n (~> 0.4)
14
- rack (~> 1.2.1)
15
- rack-mount (~> 0.6.13)
16
- rack-test (~> 0.5.6)
17
- tzinfo (~> 0.3.23)
18
- activemodel (3.0.3)
19
- activesupport (= 3.0.3)
20
- builder (~> 2.1.2)
21
- i18n (~> 0.4)
22
- activerecord (3.0.3)
23
- activemodel (= 3.0.3)
24
- activesupport (= 3.0.3)
25
- arel (~> 2.0.2)
26
- tzinfo (~> 0.3.23)
27
- activeresource (3.0.3)
28
- activemodel (= 3.0.3)
29
- activesupport (= 3.0.3)
30
- activesupport (3.0.3)
31
- arel (2.0.6)
32
- builder (2.1.2)
33
- diff-lcs (1.1.2)
34
- erubis (2.6.6)
35
- abstract (>= 1.0.0)
36
- git (1.2.5)
37
- i18n (0.5.0)
38
- jeweler (1.5.2)
39
- bundler (~> 1.0.0)
40
- git (>= 1.2.5)
41
- rake
42
- mail (2.2.12)
43
- activesupport (>= 2.3.6)
44
- i18n (>= 0.4.0)
45
- mime-types (~> 1.16)
46
- treetop (~> 1.4.8)
47
- mime-types (1.16)
48
- polyglot (0.3.1)
49
- rack (1.2.1)
50
- rack-mount (0.6.13)
51
- rack (>= 1.0.0)
52
- rack-test (0.5.6)
53
- rack (>= 1.0)
54
- rails (3.0.3)
55
- actionmailer (= 3.0.3)
56
- actionpack (= 3.0.3)
57
- activerecord (= 3.0.3)
58
- activeresource (= 3.0.3)
59
- activesupport (= 3.0.3)
60
- bundler (~> 1.0)
61
- railties (= 3.0.3)
62
- railties (3.0.3)
63
- actionpack (= 3.0.3)
64
- activesupport (= 3.0.3)
65
- rake (>= 0.8.7)
66
- thor (~> 0.14.4)
67
- rake (0.8.7)
68
- rcov (0.9.9)
69
- rspec (2.3.0)
70
- rspec-core (~> 2.3.0)
71
- rspec-expectations (~> 2.3.0)
72
- rspec-mocks (~> 2.3.0)
73
- rspec-core (2.3.1)
74
- rspec-expectations (2.3.0)
75
- diff-lcs (~> 1.1.2)
76
- rspec-mocks (2.3.0)
77
- sqlite3-ruby (1.3.2)
78
- thor (0.14.6)
79
- treetop (1.4.9)
80
- polyglot (>= 0.3.1)
81
- tzinfo (0.3.23)
82
-
83
- PLATFORMS
84
- ruby
85
-
86
- DEPENDENCIES
87
- bundler (>= 1.0.0)
88
- jeweler (>= 1.5.1)
89
- rails (~> 3.0.0)
90
- rcov
91
- rspec (>= 2.2.0)
92
- sqlite3-ruby (~> 1.3.2)
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.5.0
@@ -1,3 +0,0 @@
1
- --exclude "spec/*,gems/*"
2
- --rails
3
- --sort coverage