property_sets 0.7.2 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/.gitignore ADDED
@@ -0,0 +1,46 @@
1
+ Gemfile.lock
2
+ test/*.log
3
+ .rvmrc
4
+
5
+ # rcov generated
6
+ coverage
7
+
8
+ # rdoc generated
9
+ rdoc
10
+
11
+ # yard generated
12
+ doc
13
+ .yardoc
14
+
15
+ # bundler
16
+ .bundle
17
+
18
+ # jeweler generated
19
+ pkg
20
+
21
+ # Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
22
+ #
23
+ # * Create a file at ~/.gitignore
24
+ # * Include files you want ignored
25
+ # * Run: git config --global core.excludesfile ~/.gitignore
26
+ #
27
+ # After doing this, these files will be ignored in all your git projects,
28
+ # saving you from having to 'pollute' every project you touch with them
29
+ #
30
+ # Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
31
+ #
32
+ # For MacOS:
33
+ #
34
+ #.DS_Store
35
+ #
36
+ # For TextMate
37
+ #*.tmproj
38
+ #tmtags
39
+ #
40
+ # For emacs:
41
+ #*~
42
+ #\#*
43
+ #.\#*
44
+ #
45
+ # For vim:
46
+ #*.swp
data/.travis.yml ADDED
@@ -0,0 +1,13 @@
1
+ before_install:
2
+ - gem update --system
3
+ before_script:
4
+ - "mysql -e 'create database property_sets_test;'"
5
+ rvm:
6
+ - 1.8.7
7
+ - 1.9.3
8
+ - jruby
9
+ - ree
10
+ script: "bundle exec rake test"
11
+ gemfile:
12
+ - gemfiles/rails2.3.gemfile
13
+ - gemfiles/rails3.2.gemfile
data/Appraisals CHANGED
@@ -4,8 +4,14 @@ appraise "rails2.3" do
4
4
  gem "actionpack", "2.3.14"
5
5
  end
6
6
 
7
+ appraise "rails3.0" do
8
+ gem "activerecord", "3.0.15"
9
+ gem "activesupport", "3.0.15"
10
+ gem "actionpack", "3.0.15"
11
+ end
12
+
7
13
  appraise "rails3.2" do
8
- gem "activerecord", "3.2.2"
9
- gem "activesupport", "3.2.2"
10
- gem "actionpack", "3.2.2"
14
+ gem "activerecord", "3.2.6"
15
+ gem "activesupport", "3.2.6"
16
+ gem "actionpack", "3.2.6"
11
17
  end
File without changes
data/Rakefile CHANGED
@@ -1,152 +1,13 @@
1
- require 'rubygems'
1
+ require 'bundler/gem_tasks'
2
2
  require 'appraisal'
3
- require 'bundler'
4
- require 'rake'
5
- require 'date'
6
-
7
- #############################################################################
8
- #
9
- # Helper functions
10
- #
11
- #############################################################################
12
-
13
- def name
14
- @name ||= Dir['*.gemspec'].first.split('.').first
15
- end
16
-
17
- def version
18
- line = File.read("lib/#{name}.rb")[/^\s*VERSION\s*=\s*.*/]
19
- line.match(/.*VERSION\s*=\s*['"](.*)['"]/)[1]
20
- end
21
-
22
- def date
23
- Date.today.to_s
24
- end
25
-
26
- def rubyforge_project
27
- name
28
- end
29
-
30
- def gemspec_file
31
- "#{name}.gemspec"
32
- end
33
-
34
- def gem_file
35
- "#{name}-#{version}.gem"
36
- end
37
-
38
- def replace_header(head, header_name)
39
- head.sub!(/(\.#{header_name}\s*= ').*'/) { "#{$1}#{send(header_name)}'"}
40
- end
41
-
42
- #############################################################################
43
- #
44
- # Standard tasks
45
- #
46
- #############################################################################
47
-
48
- task :default => :test
49
3
 
50
4
  require 'rake/testtask'
51
- Rake::TestTask.new(:test) do |test|
52
- test.libs << 'lib' << 'test'
5
+ Rake::TestTask.new do |test|
6
+ test.libs << 'lib'
53
7
  test.pattern = 'test/**/test_*.rb'
54
8
  test.verbose = true
55
9
  end
56
10
 
57
- desc "Generate RCov test coverage and open in your browser"
58
- task :coverage do
59
- require 'rcov'
60
- sh "rm -fr coverage"
61
- sh "rcov test/test_*.rb"
62
- sh "open coverage/index.html"
11
+ task :default do
12
+ sh "bundle exec rake appraisal:install && bundle exec rake appraisal test"
63
13
  end
64
-
65
- require 'rake/rdoctask'
66
- Rake::RDocTask.new do |rdoc|
67
- rdoc.rdoc_dir = 'rdoc'
68
- rdoc.title = "#{name} #{version}"
69
- rdoc.rdoc_files.include('README*')
70
- rdoc.rdoc_files.include('lib/**/*.rb')
71
- end
72
-
73
- desc "Open an irb session preloaded with this library"
74
- task :console do
75
- sh "irb -rubygems -r ./lib/#{name}.rb"
76
- end
77
-
78
- #############################################################################
79
- #
80
- # Custom tasks (add your own tasks here)
81
- #
82
- #############################################################################
83
-
84
-
85
-
86
- #############################################################################
87
- #
88
- # Packaging tasks
89
- #
90
- #############################################################################
91
-
92
- desc "Create tag v#{version} and build and push #{gem_file} to Rubygems"
93
- task :release => :build do
94
- unless `git branch` =~ /^\* master$/
95
- puts "You must be on the master branch to release!"
96
- exit!
97
- end
98
- sh "git commit --allow-empty -a -m 'Release #{version}'"
99
- sh "git tag v#{version}"
100
- sh "git push origin master"
101
- sh "git push origin v#{version}"
102
- sh "gem push pkg/#{name}-#{version}.gem"
103
- end
104
-
105
- desc "Build #{gem_file} into the pkg directory"
106
- task :build => :gemspec do
107
- sh "mkdir -p pkg"
108
- sh "gem build #{gemspec_file}"
109
- sh "mv #{gem_file} pkg"
110
- end
111
-
112
- desc "Generate #{gemspec_file}"
113
- task :gemspec => :validate do
114
- # read spec file and split out manifest section
115
- spec = File.read(gemspec_file)
116
- head, manifest, tail = spec.split(" # = MANIFEST =\n")
117
-
118
- # replace name version and date
119
- replace_header(head, :name)
120
- replace_header(head, :version)
121
- replace_header(head, :date)
122
- #comment this out if your rubyforge_project has a different name
123
- replace_header(head, :rubyforge_project)
124
-
125
- # determine file list from git ls-files
126
- files = `git ls-files`.
127
- split("\n").
128
- sort.
129
- reject { |file| file =~ /^\./ }.
130
- reject { |file| file =~ /^(rdoc|pkg)/ }.
131
- map { |file| " #{file}" }.
132
- join("\n")
133
-
134
- # piece file back together and write
135
- manifest = " s.files = %w[\n#{files}\n ]\n"
136
- spec = [head, manifest, tail].join(" # = MANIFEST =\n")
137
- File.open(gemspec_file, 'w') { |io| io.write(spec) }
138
- puts "Updated #{gemspec_file}"
139
- end
140
-
141
- desc "Validate #{gemspec_file}"
142
- task :validate do
143
- libfiles = Dir['lib/*'] - ["lib/#{name}.rb", "lib/#{name}"]
144
- unless libfiles.empty?
145
- puts "Directory `lib` should only contain a `#{name}.rb` file and `#{name}` dir."
146
- exit!
147
- end
148
- unless Dir['VERSION*'].empty?
149
- puts "A `VERSION` file at root level violates Gem best practices."
150
- exit!
151
- end
152
- end
@@ -1,10 +1,11 @@
1
1
  PATH
2
- remote: /Users/primdahl/Git/property_sets
2
+ remote: /Users/mgrosser/code/tools/property_sets
3
3
  specs:
4
- property_sets (0.6.1)
4
+ property_sets (0.7.2)
5
5
  actionpack (>= 2.3.14, < 3.3)
6
6
  activerecord (>= 2.3.14, < 3.3)
7
7
  activesupport (>= 2.3.14, < 3.3)
8
+ json
8
9
 
9
10
  GEM
10
11
  remote: http://rubygems.org/
@@ -23,6 +24,7 @@ GEM
23
24
  bundler
24
25
  rake
25
26
  jdbc-mysql (5.1.13)
27
+ json (1.7.3)
26
28
  metaclass (0.0.1)
27
29
  mocha (0.10.3)
28
30
  metaclass (~> 0.0.1)
@@ -0,0 +1,11 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "activerecord-jdbcmysql-adapter", "1.2.2", :platforms=>:jruby
6
+ gem "mysql", :platforms=>:ruby
7
+ gem "activerecord", "3.0.15"
8
+ gem "activesupport", "3.0.15"
9
+ gem "actionpack", "3.0.15"
10
+
11
+ gemspec :path=>"../"
@@ -0,0 +1,74 @@
1
+ PATH
2
+ remote: /Users/mgrosser/code/tools/property_sets
3
+ specs:
4
+ property_sets (0.7.2)
5
+ actionpack (>= 2.3.14, < 3.3)
6
+ activerecord (>= 2.3.14, < 3.3)
7
+ activesupport (>= 2.3.14, < 3.3)
8
+ json
9
+
10
+ GEM
11
+ remote: http://rubygems.org/
12
+ specs:
13
+ abstract (1.0.0)
14
+ actionpack (3.0.15)
15
+ activemodel (= 3.0.15)
16
+ activesupport (= 3.0.15)
17
+ builder (~> 2.1.2)
18
+ erubis (~> 2.6.6)
19
+ i18n (~> 0.5.0)
20
+ rack (~> 1.2.5)
21
+ rack-mount (~> 0.6.14)
22
+ rack-test (~> 0.5.7)
23
+ tzinfo (~> 0.3.23)
24
+ activemodel (3.0.15)
25
+ activesupport (= 3.0.15)
26
+ builder (~> 2.1.2)
27
+ i18n (~> 0.5.0)
28
+ activerecord (3.0.15)
29
+ activemodel (= 3.0.15)
30
+ activesupport (= 3.0.15)
31
+ arel (~> 2.0.10)
32
+ tzinfo (~> 0.3.23)
33
+ activesupport (3.0.15)
34
+ appraisal (0.4.1)
35
+ bundler
36
+ rake
37
+ arel (2.0.10)
38
+ builder (2.1.2)
39
+ erubis (2.6.6)
40
+ abstract (>= 1.0.0)
41
+ i18n (0.5.0)
42
+ json (1.7.3)
43
+ metaclass (0.0.1)
44
+ mocha (0.12.0)
45
+ metaclass (~> 0.0.1)
46
+ mysql (2.8.1)
47
+ rack (1.2.5)
48
+ rack-mount (0.6.14)
49
+ rack (>= 1.0.0)
50
+ rack-test (0.5.7)
51
+ rack (>= 1.0)
52
+ rake (0.9.2.2)
53
+ shoulda (3.0.1)
54
+ shoulda-context (~> 1.0.0)
55
+ shoulda-matchers (~> 1.0.0)
56
+ shoulda-context (1.0.0)
57
+ shoulda-matchers (1.0.0)
58
+ tzinfo (0.3.33)
59
+
60
+ PLATFORMS
61
+ ruby
62
+
63
+ DEPENDENCIES
64
+ actionpack (= 3.0.15)
65
+ activerecord (= 3.0.15)
66
+ activerecord-jdbcmysql-adapter (= 1.2.2)
67
+ activesupport (= 3.0.15)
68
+ appraisal
69
+ bundler
70
+ mocha
71
+ mysql
72
+ property_sets!
73
+ rake
74
+ shoulda
@@ -4,8 +4,8 @@ source "http://rubygems.org"
4
4
 
5
5
  gem "activerecord-jdbcmysql-adapter", "1.2.2", :platforms=>:jruby
6
6
  gem "mysql", :platforms=>:ruby
7
- gem "activerecord", "3.2.2"
8
- gem "activesupport", "3.2.2"
9
- gem "actionpack", "3.2.2"
7
+ gem "activerecord", "3.2.6"
8
+ gem "activesupport", "3.2.6"
9
+ gem "actionpack", "3.2.6"
10
10
 
11
11
  gemspec :path=>"../"
@@ -1,37 +1,38 @@
1
1
  PATH
2
- remote: /Users/primdahl/Git/property_sets
2
+ remote: /Users/mgrosser/code/tools/property_sets
3
3
  specs:
4
- property_sets (0.6.1)
4
+ property_sets (0.7.2)
5
5
  actionpack (>= 2.3.14, < 3.3)
6
6
  activerecord (>= 2.3.14, < 3.3)
7
7
  activesupport (>= 2.3.14, < 3.3)
8
+ json
8
9
 
9
10
  GEM
10
11
  remote: http://rubygems.org/
11
12
  specs:
12
- actionpack (3.2.2)
13
- activemodel (= 3.2.2)
14
- activesupport (= 3.2.2)
13
+ actionpack (3.2.6)
14
+ activemodel (= 3.2.6)
15
+ activesupport (= 3.2.6)
15
16
  builder (~> 3.0.0)
16
17
  erubis (~> 2.7.0)
17
18
  journey (~> 1.0.1)
18
19
  rack (~> 1.4.0)
19
- rack-cache (~> 1.1)
20
+ rack-cache (~> 1.2)
20
21
  rack-test (~> 0.6.1)
21
- sprockets (~> 2.1.2)
22
- activemodel (3.2.2)
23
- activesupport (= 3.2.2)
22
+ sprockets (~> 2.1.3)
23
+ activemodel (3.2.6)
24
+ activesupport (= 3.2.6)
24
25
  builder (~> 3.0.0)
25
- activerecord (3.2.2)
26
- activemodel (= 3.2.2)
27
- activesupport (= 3.2.2)
26
+ activerecord (3.2.6)
27
+ activemodel (= 3.2.6)
28
+ activesupport (= 3.2.6)
28
29
  arel (~> 3.0.2)
29
30
  tzinfo (~> 0.3.29)
30
31
  activerecord-jdbc-adapter (1.2.2)
31
32
  activerecord-jdbcmysql-adapter (1.2.2)
32
33
  activerecord-jdbc-adapter (~> 1.2.2)
33
34
  jdbc-mysql (~> 5.1.0)
34
- activesupport (3.2.2)
35
+ activesupport (3.2.6)
35
36
  i18n (~> 0.6)
36
37
  multi_json (~> 1.0)
37
38
  appraisal (0.4.0)
@@ -43,11 +44,12 @@ GEM
43
44
  hike (1.2.1)
44
45
  i18n (0.6.0)
45
46
  jdbc-mysql (5.1.13)
46
- journey (1.0.3)
47
+ journey (1.0.4)
48
+ json (1.7.3)
47
49
  metaclass (0.0.1)
48
50
  mocha (0.10.3)
49
51
  metaclass (~> 0.0.1)
50
- multi_json (1.1.0)
52
+ multi_json (1.3.6)
51
53
  mysql (2.8.1)
52
54
  rack (1.4.1)
53
55
  rack-cache (1.2)
@@ -56,22 +58,22 @@ GEM
56
58
  rack (>= 1.0)
57
59
  rake (0.9.2.2)
58
60
  shoulda (2.11.3)
59
- sprockets (2.1.2)
61
+ sprockets (2.1.3)
60
62
  hike (~> 1.2)
61
63
  rack (~> 1.0)
62
64
  tilt (~> 1.1, != 1.3.0)
63
65
  tilt (1.3.3)
64
- tzinfo (0.3.32)
66
+ tzinfo (0.3.33)
65
67
 
66
68
  PLATFORMS
67
69
  java
68
70
  ruby
69
71
 
70
72
  DEPENDENCIES
71
- actionpack (= 3.2.2)
72
- activerecord (= 3.2.2)
73
+ actionpack (= 3.2.6)
74
+ activerecord (= 3.2.6)
73
75
  activerecord-jdbcmysql-adapter (= 1.2.2)
74
- activesupport (= 3.2.2)
76
+ activesupport (= 3.2.6)
75
77
  appraisal
76
78
  bundler
77
79
  mocha
@@ -95,7 +95,7 @@ module PropertySets
95
95
  instance ||= build_default(arg)
96
96
  instance.value_serialized = property_serialized?(arg)
97
97
 
98
- if ActiveRecord::VERSION::MAJOR == 3
98
+ if ActiveRecord::VERSION::STRING >= "3.1.0"
99
99
  owner = proxy_association.owner
100
100
  else
101
101
  owner = @owner
@@ -110,7 +110,7 @@ module PropertySets
110
110
  def lookup_or_default(arg)
111
111
  instance = lookup_without_default(arg)
112
112
  instance ||= begin
113
- if ActiveRecord::VERSION::MAJOR == 3
113
+ if ActiveRecord::VERSION::STRING >= "3.1.0"
114
114
  association_class = proxy_association.klass
115
115
  else
116
116
  association_class = @reflection.klass
@@ -1,97 +1,21 @@
1
- ## This is the rakegem gemspec template. Make sure you read and understand
2
- ## all of the comments. Some sections require modification, and others can
3
- ## be deleted if you don't need them. Once you understand the contents of
4
- ## this file, feel free to delete any comments that begin with two hash marks.
5
- ## You can find comprehensive Gem::Specification documentation, at
6
- ## http://docs.rubygems.org/read/chapter/20
7
- Gem::Specification.new do |s|
8
- s.specification_version = 2 if s.respond_to? :specification_version=
9
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
10
- s.rubygems_version = '1.8.15'
11
-
12
- ## Leave these as is they will be modified for you by the rake gemspec task.
13
- ## If your rubyforge_project name is different, then edit it and comment out
14
- ## the sub! line in the Rakefile
15
- s.name = 'property_sets'
16
- s.version = '0.7.2'
17
- s.date = '2012-04-09'
18
- s.rubyforge_project = 'property_sets'
19
-
20
- ## Make sure your summary is short. The description may be as long
21
- ## as you like.
1
+ Gem::Specification.new "property_sets", "0.8.0" do |s|
22
2
  s.summary = "Property sets for ActiveRecord."
23
3
  s.description = "This gem is an ActiveRecord extension which provides a convenient interface for managing per row properties."
24
-
25
- ## List the primary authors. If there are a bunch of authors, it's probably
26
- ## better to set the email to an email list or something. If you don't have
27
- ## a custom homepage, consider using your GitHub URL or the like.
28
4
  s.authors = ["Morten Primdahl"]
29
5
  s.email = 'primdahl@me.com'
30
6
  s.homepage = 'http://github.com/morten/property_sets'
31
7
 
32
- ## This gets added to the $LOAD_PATH so that 'lib/NAME.rb' can be required as
33
- ## require 'NAME.rb' or'/lib/NAME/file.rb' can be as require 'NAME/file.rb'
34
- s.require_paths = %w[lib]
35
-
36
- ## This sections is only necessary if you have C extensions.
37
- # s.require_paths << 'ext'
38
- # s.extensions = %w[ext/extconf.rb]
39
-
40
- ## If your gem includes any executables, list them here.
41
- # s.executables = ["name"]
42
-
43
- ## Specify any RDoc options here. You'll want to add your README and
44
- ## LICENSE files to the extra_rdoc_files list.
45
- s.rdoc_options = ["--charset=UTF-8"]
46
- s.extra_rdoc_files = %w[README.md LICENSE.txt]
47
-
48
- ## List your runtime dependencies here. Runtime dependencies are those
49
- ## that are needed for an end user to actually USE your code.
50
8
  s.add_runtime_dependency("activesupport", ">= 2.3.14", "< 3.3")
51
9
  s.add_runtime_dependency("activerecord", ">= 2.3.14", "< 3.3")
52
10
  s.add_runtime_dependency("actionpack", ">= 2.3.14", "< 3.3")
53
11
  s.add_runtime_dependency("json")
54
12
 
55
- ## List your development dependencies here. Development dependencies are
56
- ## those that are only needed during development
57
13
  s.add_development_dependency('rake')
58
14
  s.add_development_dependency('bundler')
59
15
  s.add_development_dependency('shoulda')
60
16
  s.add_development_dependency('mocha')
61
- s.add_development_dependency("appraisal")
62
-
63
- ## Leave this section as-is. It will be automatically generated from the
64
- ## contents of your Git repository via the gemspec task. DO NOT REMOVE
65
- ## THE MANIFEST COMMENTS, they are used as delimiters by the task.
66
- # = MANIFEST =
67
- s.files = %w[
68
- Appraisals
69
- Gemfile
70
- LICENSE.txt
71
- README.md
72
- Rakefile
73
- gemfiles/rails2.3.gemfile
74
- gemfiles/rails2.3.gemfile.lock
75
- gemfiles/rails3.2.gemfile
76
- gemfiles/rails3.2.gemfile.lock
77
- lib/property_sets.rb
78
- lib/property_sets/action_view_extension.rb
79
- lib/property_sets/active_record_extension.rb
80
- lib/property_sets/casting.rb
81
- lib/property_sets/property_set_model.rb
82
- property_sets.gemspec
83
- test/fixtures/account_settings.yml
84
- test/fixtures/account_texts.yml
85
- test/fixtures/accounts.yml
86
- test/helper.rb
87
- test/schema.rb
88
- test/test_casting.rb
89
- test/test_property_sets.rb
90
- test/test_view_extensions.rb
91
- ]
92
- # = MANIFEST =
17
+ s.add_development_dependency('appraisal')
93
18
 
94
- ## Test files will be grabbed from the file list. Make sure the path glob
95
- ## matches what you actually use.
96
- s.test_files = s.files.select { |path| path =~ /^test\/test_.*\.rb/ }
19
+ s.files = `git ls-files`.split("\n")
20
+ s.license = "MIT"
97
21
  end
@@ -1,3 +1,29 @@
1
+ # setup database
2
+ require 'active_record'
3
+ ActiveRecord::Base.logger = Logger.new(STDOUT)
4
+ ActiveRecord::Base.logger.level = Logger::ERROR
5
+
6
+ config = {
7
+ :adapter => 'mysql',
8
+ :database => 'property_sets_test',
9
+ :username => 'root',
10
+ :password => nil,
11
+ :host => '127.0.0.1',
12
+ :port => 3306
13
+ }
14
+
15
+ ActiveRecord::Base.establish_connection(config.merge(:database => nil))
16
+
17
+ # clear out everything
18
+ ActiveRecord::Base.connection.drop_database config[:database]
19
+ ActiveRecord::Base.connection.create_database config[:database], :charset => 'utf8', :collation => 'utf8_unicode_ci'
20
+
21
+ # connect and check
22
+ ActiveRecord::Base.establish_connection(config)
23
+ ActiveRecord::Base.connection.execute('select 1')
24
+
25
+ ActiveRecord::Migration.verbose = false
26
+
1
27
  ActiveRecord::Schema.define(:version => 1) do
2
28
  create_table "account_settings", :force => true do |t|
3
29
  t.integer "account_id"
data/test/helper.rb CHANGED
@@ -7,24 +7,10 @@ require 'active_record'
7
7
  require 'active_record/fixtures'
8
8
  require 'shoulda'
9
9
 
10
- ActiveRecord::Base.establish_connection(
11
- :adapter => 'mysql',
12
- :database => 'property_sets_test',
13
- :username => 'root',
14
- :password => nil,
15
- :host => '127.0.0.1',
16
- :port => 3306
17
- )
18
-
19
- ActiveRecord::Base.logger = Logger.new(STDOUT)
20
- ActiveRecord::Base.logger.level = Logger::ERROR
21
-
22
- ActiveRecord::Migration.verbose = false
23
-
24
- load(File.dirname(__FILE__) + "/schema.rb")
10
+ require File.expand_path "../database", __FILE__
25
11
 
26
12
  $LOAD_PATH.unshift(File.dirname(__FILE__))
27
- require File.dirname(__FILE__)+'/../lib/property_sets'
13
+ require 'property_sets'
28
14
 
29
15
  class ActiveSupport::TestCase
30
16
  include ActiveRecord::TestFixtures
metadata CHANGED
@@ -1,192 +1,197 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: property_sets
3
- version: !ruby/object:Gem::Version
4
- hash: 7
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.8.0
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 7
9
- - 2
10
- version: 0.7.2
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Morten Primdahl
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-04-09 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-07-11 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: activesupport
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 31
29
- segments:
30
- - 2
31
- - 3
32
- - 14
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
33
21
  version: 2.3.14
34
22
  - - <
35
- - !ruby/object:Gem::Version
36
- hash: 1
37
- segments:
38
- - 3
39
- - 3
40
- version: "3.3"
23
+ - !ruby/object:Gem::Version
24
+ version: '3.3'
41
25
  type: :runtime
42
- version_requirements: *id001
43
- - !ruby/object:Gem::Dependency
44
- name: activerecord
45
26
  prerelease: false
46
- requirement: &id002 !ruby/object:Gem::Requirement
47
- none: false
48
- requirements:
49
- - - ">="
50
- - !ruby/object:Gem::Version
51
- hash: 31
52
- segments:
53
- - 2
54
- - 3
55
- - 14
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: 2.3.14
33
+ - - <
34
+ - !ruby/object:Gem::Version
35
+ version: '3.3'
36
+ - !ruby/object:Gem::Dependency
37
+ name: activerecord
38
+ requirement: !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
56
43
  version: 2.3.14
57
44
  - - <
58
- - !ruby/object:Gem::Version
59
- hash: 1
60
- segments:
61
- - 3
62
- - 3
63
- version: "3.3"
45
+ - !ruby/object:Gem::Version
46
+ version: '3.3'
64
47
  type: :runtime
65
- version_requirements: *id002
66
- - !ruby/object:Gem::Dependency
67
- name: actionpack
68
48
  prerelease: false
69
- requirement: &id003 !ruby/object:Gem::Requirement
70
- none: false
71
- requirements:
72
- - - ">="
73
- - !ruby/object:Gem::Version
74
- hash: 31
75
- segments:
76
- - 2
77
- - 3
78
- - 14
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
79
54
  version: 2.3.14
80
55
  - - <
81
- - !ruby/object:Gem::Version
82
- hash: 1
83
- segments:
84
- - 3
85
- - 3
86
- version: "3.3"
56
+ - !ruby/object:Gem::Version
57
+ version: '3.3'
58
+ - !ruby/object:Gem::Dependency
59
+ name: actionpack
60
+ requirement: !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: 2.3.14
66
+ - - <
67
+ - !ruby/object:Gem::Version
68
+ version: '3.3'
87
69
  type: :runtime
88
- version_requirements: *id003
89
- - !ruby/object:Gem::Dependency
90
- name: json
91
70
  prerelease: false
92
- requirement: &id004 !ruby/object:Gem::Requirement
93
- none: false
94
- requirements:
95
- - - ">="
96
- - !ruby/object:Gem::Version
97
- hash: 3
98
- segments:
99
- - 0
100
- version: "0"
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: 2.3.14
77
+ - - <
78
+ - !ruby/object:Gem::Version
79
+ version: '3.3'
80
+ - !ruby/object:Gem::Dependency
81
+ name: json
82
+ requirement: !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
101
88
  type: :runtime
102
- version_requirements: *id004
103
- - !ruby/object:Gem::Dependency
104
- name: rake
105
89
  prerelease: false
106
- requirement: &id005 !ruby/object:Gem::Requirement
107
- none: false
108
- requirements:
109
- - - ">="
110
- - !ruby/object:Gem::Version
111
- hash: 3
112
- segments:
113
- - 0
114
- version: "0"
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ none: false
92
+ requirements:
93
+ - - ! '>='
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ - !ruby/object:Gem::Dependency
97
+ name: rake
98
+ requirement: !ruby/object:Gem::Requirement
99
+ none: false
100
+ requirements:
101
+ - - ! '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
115
104
  type: :development
116
- version_requirements: *id005
117
- - !ruby/object:Gem::Dependency
118
- name: bundler
119
105
  prerelease: false
120
- requirement: &id006 !ruby/object:Gem::Requirement
121
- none: false
122
- requirements:
123
- - - ">="
124
- - !ruby/object:Gem::Version
125
- hash: 3
126
- segments:
127
- - 0
128
- version: "0"
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ none: false
108
+ requirements:
109
+ - - ! '>='
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ - !ruby/object:Gem::Dependency
113
+ name: bundler
114
+ requirement: !ruby/object:Gem::Requirement
115
+ none: false
116
+ requirements:
117
+ - - ! '>='
118
+ - !ruby/object:Gem::Version
119
+ version: '0'
129
120
  type: :development
130
- version_requirements: *id006
131
- - !ruby/object:Gem::Dependency
132
- name: shoulda
133
121
  prerelease: false
134
- requirement: &id007 !ruby/object:Gem::Requirement
135
- none: false
136
- requirements:
137
- - - ">="
138
- - !ruby/object:Gem::Version
139
- hash: 3
140
- segments:
141
- - 0
142
- version: "0"
122
+ version_requirements: !ruby/object:Gem::Requirement
123
+ none: false
124
+ requirements:
125
+ - - ! '>='
126
+ - !ruby/object:Gem::Version
127
+ version: '0'
128
+ - !ruby/object:Gem::Dependency
129
+ name: shoulda
130
+ requirement: !ruby/object:Gem::Requirement
131
+ none: false
132
+ requirements:
133
+ - - ! '>='
134
+ - !ruby/object:Gem::Version
135
+ version: '0'
143
136
  type: :development
144
- version_requirements: *id007
145
- - !ruby/object:Gem::Dependency
146
- name: mocha
147
137
  prerelease: false
148
- requirement: &id008 !ruby/object:Gem::Requirement
149
- none: false
150
- requirements:
151
- - - ">="
152
- - !ruby/object:Gem::Version
153
- hash: 3
154
- segments:
155
- - 0
156
- version: "0"
138
+ version_requirements: !ruby/object:Gem::Requirement
139
+ none: false
140
+ requirements:
141
+ - - ! '>='
142
+ - !ruby/object:Gem::Version
143
+ version: '0'
144
+ - !ruby/object:Gem::Dependency
145
+ name: mocha
146
+ requirement: !ruby/object:Gem::Requirement
147
+ none: false
148
+ requirements:
149
+ - - ! '>='
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
157
152
  type: :development
158
- version_requirements: *id008
159
- - !ruby/object:Gem::Dependency
160
- name: appraisal
161
153
  prerelease: false
162
- requirement: &id009 !ruby/object:Gem::Requirement
163
- none: false
164
- requirements:
165
- - - ">="
166
- - !ruby/object:Gem::Version
167
- hash: 3
168
- segments:
169
- - 0
170
- version: "0"
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ none: false
156
+ requirements:
157
+ - - ! '>='
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ - !ruby/object:Gem::Dependency
161
+ name: appraisal
162
+ requirement: !ruby/object:Gem::Requirement
163
+ none: false
164
+ requirements:
165
+ - - ! '>='
166
+ - !ruby/object:Gem::Version
167
+ version: '0'
171
168
  type: :development
172
- version_requirements: *id009
173
- description: This gem is an ActiveRecord extension which provides a convenient interface for managing per row properties.
169
+ prerelease: false
170
+ version_requirements: !ruby/object:Gem::Requirement
171
+ none: false
172
+ requirements:
173
+ - - ! '>='
174
+ - !ruby/object:Gem::Version
175
+ version: '0'
176
+ description: This gem is an ActiveRecord extension which provides a convenient interface
177
+ for managing per row properties.
174
178
  email: primdahl@me.com
175
179
  executables: []
176
-
177
180
  extensions: []
178
-
179
- extra_rdoc_files:
180
- - README.md
181
- - LICENSE.txt
182
- files:
181
+ extra_rdoc_files: []
182
+ files:
183
+ - .document
184
+ - .gitignore
185
+ - .travis.yml
183
186
  - Appraisals
184
187
  - Gemfile
185
- - LICENSE.txt
188
+ - MIT-LICENSE.txt
186
189
  - README.md
187
190
  - Rakefile
188
191
  - gemfiles/rails2.3.gemfile
189
192
  - gemfiles/rails2.3.gemfile.lock
193
+ - gemfiles/rails3.0.gemfile
194
+ - gemfiles/rails3.0.gemfile.lock
190
195
  - gemfiles/rails3.2.gemfile
191
196
  - gemfiles/rails3.2.gemfile.lock
192
197
  - lib/property_sets.rb
@@ -195,49 +200,37 @@ files:
195
200
  - lib/property_sets/casting.rb
196
201
  - lib/property_sets/property_set_model.rb
197
202
  - property_sets.gemspec
203
+ - test/database.rb
198
204
  - test/fixtures/account_settings.yml
199
205
  - test/fixtures/account_texts.yml
200
206
  - test/fixtures/accounts.yml
201
207
  - test/helper.rb
202
- - test/schema.rb
203
208
  - test/test_casting.rb
204
209
  - test/test_property_sets.rb
205
210
  - test/test_view_extensions.rb
206
211
  homepage: http://github.com/morten/property_sets
207
- licenses: []
208
-
212
+ licenses:
213
+ - MIT
209
214
  post_install_message:
210
- rdoc_options:
211
- - --charset=UTF-8
212
- require_paths:
215
+ rdoc_options: []
216
+ require_paths:
213
217
  - lib
214
- required_ruby_version: !ruby/object:Gem::Requirement
218
+ required_ruby_version: !ruby/object:Gem::Requirement
215
219
  none: false
216
- requirements:
217
- - - ">="
218
- - !ruby/object:Gem::Version
219
- hash: 3
220
- segments:
221
- - 0
222
- version: "0"
223
- required_rubygems_version: !ruby/object:Gem::Requirement
220
+ requirements:
221
+ - - ! '>='
222
+ - !ruby/object:Gem::Version
223
+ version: '0'
224
+ required_rubygems_version: !ruby/object:Gem::Requirement
224
225
  none: false
225
- requirements:
226
- - - ">="
227
- - !ruby/object:Gem::Version
228
- hash: 3
229
- segments:
230
- - 0
231
- version: "0"
226
+ requirements:
227
+ - - ! '>='
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
232
230
  requirements: []
233
-
234
- rubyforge_project: property_sets
235
- rubygems_version: 1.8.15
231
+ rubyforge_project:
232
+ rubygems_version: 1.8.24
236
233
  signing_key:
237
- specification_version: 2
234
+ specification_version: 3
238
235
  summary: Property sets for ActiveRecord.
239
- test_files:
240
- - test/test_casting.rb
241
- - test/test_property_sets.rb
242
- - test/test_view_extensions.rb
243
- has_rdoc:
236
+ test_files: []