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.
Files changed (7) hide show
  1. data/Gemfile +14 -0
  2. data/Rakefile +40 -30
  3. data/VERSION +1 -0
  4. data/selectable_attr.gemspec +43 -27
  5. metadata +83 -15
  6. data/.gitignore +0 -7
  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 "bundler"
2
- Bundler.setup
3
- Bundler::GemHelper.install_tasks
4
-
5
- require "rake"
6
- require "yaml"
7
-
8
- require "rake/rdoctask"
9
- require "rspec/core/rake_task"
10
- require "rspec/core/version"
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
- desc "Run all examples"
18
- RSpec::Core::RakeTask.new(:spec)
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
- namespace :spec do
21
- desc "Run all examples using rcov"
22
- RSpec::Core::RakeTask.new(:rcov) do |t|
23
- t.rcov = true
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
- task :cleanup_rcov_files do
30
- rm_rf 'coverage.data'
35
+ RSpec::Core::RakeTask.new(:rcov) do |spec|
36
+ spec.pattern = 'spec/**/*_spec.rb'
37
+ spec.rcov = true
31
38
  end
32
39
 
33
- desc 'Generate documentation for the selectable_attr plugin.'
34
- Rake::RDocTask.new(:rdoc) do |rdoc|
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 = 'SelectableAttr'
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
@@ -1,57 +1,73 @@
1
1
  # Generated by jeweler
2
- # DO NOT EDIT THIS FILE
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
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.12"
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{2010-11-06}
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{akima@gmail.com}
14
+ s.email = %q{akm2000@gmail.com}
15
15
  s.extra_rdoc_files = [
16
16
  "README"
17
17
  ]
18
18
  s.files = [
19
- ".gitignore",
20
- "MIT-LICENSE",
21
- "README",
22
- "Rakefile",
23
- "VERSION.yml",
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"
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.rdoc_options = ["--charset=UTF-8"]
38
+ s.licenses = ["MIT"]
39
39
  s.require_paths = ["lib"]
40
- s.rubygems_version = %q{1.3.6}
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
- "spec/selectable_attr_enum_spec.rb",
45
- "spec/spec_helper.rb"
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::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
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
- - 12
10
- version: 0.3.12
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: 2010-11-06 00:00:00 +09:00
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: akima@gmail.com
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
- - .gitignore
100
+ - Gemfile
32
101
  - MIT-LICENSE
33
102
  - README
34
103
  - Rakefile
35
- - VERSION.yml
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
- - --charset=UTF-8
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: 3
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
@@ -1,7 +0,0 @@
1
- /*.gem
2
- /.bundle
3
- /Gemfile.lock
4
- /coverage
5
- /pkg
6
- /rdoc
7
- /selectable_attr_test.sqlite3.db
data/VERSION.yml DELETED
@@ -1,4 +0,0 @@
1
- ---
2
- :patch: 11
3
- :major: 0
4
- :minor: 3