selectable_attr 0.3.12 → 0.3.13
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +14 -0
- data/Rakefile +40 -30
- data/VERSION +1 -0
- data/selectable_attr.gemspec +43 -27
- metadata +83 -15
- data/.gitignore +0 -7
- data/VERSION.yml +0 -4
data/Gemfile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
|
6
|
+
# Add dependencies to develop your gem here.
|
7
|
+
# Include everything needed to run rake, tests, features, etc.
|
8
|
+
group :development do
|
9
|
+
gem "rspec", "~> 2.3.0"
|
10
|
+
gem "bundler", "~> 1.0.0"
|
11
|
+
gem "jeweler", "~> 1.5.2"
|
12
|
+
gem "rcov", ">= 0"
|
13
|
+
gem "autotest"
|
14
|
+
end
|
data/Rakefile
CHANGED
@@ -1,40 +1,50 @@
|
|
1
|
-
require
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
require
|
11
|
-
# require "cucumber/rake/task"
|
12
|
-
|
13
|
-
desc 'Default: run unit tests.'
|
14
|
-
task :default => :spec
|
15
|
-
# task :default => [:spec, :cucumber]
|
1
|
+
require 'rubygems'
|
2
|
+
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'
|
16
11
|
|
17
|
-
|
18
|
-
|
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 = "selectable_attr"
|
16
|
+
gem.homepage = "http://github.com/akm/selectable_attr/"
|
17
|
+
gem.license = "MIT"
|
18
|
+
gem.summary = %Q{selectable_attr generates extra methods dynamically}
|
19
|
+
gem.description = %Q{selectable_attr generates extra methods dynamically for attribute which has options}
|
20
|
+
gem.email = "akm2000@gmail.com"
|
21
|
+
gem.authors = ["Takeshi Akima"]
|
22
|
+
# Include your dependencies below. Runtime dependencies are required when using your gem,
|
23
|
+
# and development dependencies are only needed for development (ie running rake tasks, tests, etc)
|
24
|
+
# gem.add_runtime_dependency 'jabber4r', '> 0.1'
|
25
|
+
# gem.add_development_dependency 'rspec', '> 1.2.3'
|
26
|
+
end
|
27
|
+
Jeweler::RubygemsDotOrgTasks.new
|
19
28
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
t.rcov_opts = %[--exclude "gems/*"]
|
25
|
-
# t.rcov_opts << %[--sort]
|
26
|
-
end
|
29
|
+
require 'rspec/core'
|
30
|
+
require 'rspec/core/rake_task'
|
31
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
32
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
27
33
|
end
|
28
34
|
|
29
|
-
|
30
|
-
|
35
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
36
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
37
|
+
spec.rcov = true
|
31
38
|
end
|
32
39
|
|
33
|
-
|
34
|
-
|
40
|
+
task :default => :spec
|
41
|
+
|
42
|
+
require 'rake/rdoctask'
|
43
|
+
Rake::RDocTask.new do |rdoc|
|
44
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
45
|
+
|
35
46
|
rdoc.rdoc_dir = 'rdoc'
|
36
|
-
rdoc.title
|
37
|
-
rdoc.options << '--line-numbers' << '--inline-source' << '-c UTF-8'
|
47
|
+
rdoc.title = "selectable_attr #{version}"
|
38
48
|
rdoc.rdoc_files.include('README*')
|
39
49
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
40
50
|
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.3.13
|
data/selectable_attr.gemspec
CHANGED
@@ -1,57 +1,73 @@
|
|
1
1
|
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{selectable_attr}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.13"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Takeshi Akima"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2011-02-06}
|
13
13
|
s.description = %q{selectable_attr generates extra methods dynamically for attribute which has options}
|
14
|
-
s.email = %q{
|
14
|
+
s.email = %q{akm2000@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"README"
|
17
17
|
]
|
18
18
|
s.files = [
|
19
|
-
"
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
19
|
+
"Gemfile",
|
20
|
+
"MIT-LICENSE",
|
21
|
+
"README",
|
22
|
+
"Rakefile",
|
23
|
+
"VERSION",
|
24
|
+
"init.rb",
|
25
|
+
"install.rb",
|
26
|
+
"lib/selectable_attr.rb",
|
27
|
+
"lib/selectable_attr/base.rb",
|
28
|
+
"lib/selectable_attr/enum.rb",
|
29
|
+
"lib/selectable_attr/version.rb",
|
30
|
+
"selectable_attr.gemspec",
|
31
|
+
"spec/selectable_attr_base_alias_spec.rb",
|
32
|
+
"spec/selectable_attr_enum_spec.rb",
|
33
|
+
"spec/spec_helper.rb",
|
34
|
+
"tasks/selectable_attr_tasks.rake",
|
35
|
+
"uninstall.rb"
|
36
36
|
]
|
37
37
|
s.homepage = %q{http://github.com/akm/selectable_attr/}
|
38
|
-
s.
|
38
|
+
s.licenses = ["MIT"]
|
39
39
|
s.require_paths = ["lib"]
|
40
|
-
s.rubygems_version = %q{1.3.
|
40
|
+
s.rubygems_version = %q{1.3.7}
|
41
41
|
s.summary = %q{selectable_attr generates extra methods dynamically}
|
42
42
|
s.test_files = [
|
43
43
|
"spec/selectable_attr_base_alias_spec.rb",
|
44
|
-
|
45
|
-
|
44
|
+
"spec/selectable_attr_enum_spec.rb",
|
45
|
+
"spec/spec_helper.rb"
|
46
46
|
]
|
47
47
|
|
48
48
|
if s.respond_to? :specification_version then
|
49
49
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
50
50
|
s.specification_version = 3
|
51
51
|
|
52
|
-
if Gem::Version.new(Gem::
|
52
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
53
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
|
54
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
55
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
56
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
57
|
+
s.add_development_dependency(%q<autotest>, [">= 0"])
|
53
58
|
else
|
59
|
+
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
60
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
61
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
62
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
63
|
+
s.add_dependency(%q<autotest>, [">= 0"])
|
54
64
|
end
|
55
65
|
else
|
66
|
+
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
67
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
68
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
69
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
70
|
+
s.add_dependency(%q<autotest>, [">= 0"])
|
56
71
|
end
|
57
72
|
end
|
73
|
+
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: selectable_attr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 11
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
8
|
+
- 13
|
9
|
+
version: 0.3.13
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Takeshi Akima
|
@@ -15,12 +14,82 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date:
|
17
|
+
date: 2011-02-06 00:00:00 +09:00
|
19
18
|
default_executable:
|
20
|
-
dependencies:
|
21
|
-
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: rspec
|
22
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
23
|
+
none: false
|
24
|
+
requirements:
|
25
|
+
- - ~>
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 2
|
29
|
+
- 3
|
30
|
+
- 0
|
31
|
+
version: 2.3.0
|
32
|
+
type: :development
|
33
|
+
prerelease: false
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: bundler
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
38
|
+
none: false
|
39
|
+
requirements:
|
40
|
+
- - ~>
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
segments:
|
43
|
+
- 1
|
44
|
+
- 0
|
45
|
+
- 0
|
46
|
+
version: 1.0.0
|
47
|
+
type: :development
|
48
|
+
prerelease: false
|
49
|
+
version_requirements: *id002
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
name: jeweler
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ~>
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
segments:
|
58
|
+
- 1
|
59
|
+
- 5
|
60
|
+
- 2
|
61
|
+
version: 1.5.2
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: *id003
|
65
|
+
- !ruby/object:Gem::Dependency
|
66
|
+
name: rcov
|
67
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
68
|
+
none: false
|
69
|
+
requirements:
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
segments:
|
73
|
+
- 0
|
74
|
+
version: "0"
|
75
|
+
type: :development
|
76
|
+
prerelease: false
|
77
|
+
version_requirements: *id004
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: autotest
|
80
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
segments:
|
86
|
+
- 0
|
87
|
+
version: "0"
|
88
|
+
type: :development
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: *id005
|
22
91
|
description: selectable_attr generates extra methods dynamically for attribute which has options
|
23
|
-
email:
|
92
|
+
email: akm2000@gmail.com
|
24
93
|
executables: []
|
25
94
|
|
26
95
|
extensions: []
|
@@ -28,11 +97,11 @@ extensions: []
|
|
28
97
|
extra_rdoc_files:
|
29
98
|
- README
|
30
99
|
files:
|
31
|
-
-
|
100
|
+
- Gemfile
|
32
101
|
- MIT-LICENSE
|
33
102
|
- README
|
34
103
|
- Rakefile
|
35
|
-
- VERSION
|
104
|
+
- VERSION
|
36
105
|
- init.rb
|
37
106
|
- install.rb
|
38
107
|
- lib/selectable_attr.rb
|
@@ -47,11 +116,11 @@ files:
|
|
47
116
|
- uninstall.rb
|
48
117
|
has_rdoc: true
|
49
118
|
homepage: http://github.com/akm/selectable_attr/
|
50
|
-
licenses:
|
51
|
-
|
119
|
+
licenses:
|
120
|
+
- MIT
|
52
121
|
post_install_message:
|
53
|
-
rdoc_options:
|
54
|
-
|
122
|
+
rdoc_options: []
|
123
|
+
|
55
124
|
require_paths:
|
56
125
|
- lib
|
57
126
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -59,7 +128,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
59
128
|
requirements:
|
60
129
|
- - ">="
|
61
130
|
- !ruby/object:Gem::Version
|
62
|
-
hash:
|
131
|
+
hash: 492791099691289112
|
63
132
|
segments:
|
64
133
|
- 0
|
65
134
|
version: "0"
|
@@ -68,7 +137,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
68
137
|
requirements:
|
69
138
|
- - ">="
|
70
139
|
- !ruby/object:Gem::Version
|
71
|
-
hash: 3
|
72
140
|
segments:
|
73
141
|
- 0
|
74
142
|
version: "0"
|
data/.gitignore
DELETED
data/VERSION.yml
DELETED