static_model 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/static_model.rb CHANGED
@@ -5,7 +5,7 @@ require 'yaml' unless defined?(YAML)
5
5
  require 'erb' unless defined?(ERB)
6
6
 
7
7
  module StaticModel
8
- VERSION = '1.0.2'
8
+ VERSION = '1.0.3'
9
9
  end
10
10
 
11
11
  require 'static_model/active_support'
@@ -194,7 +194,7 @@ module StaticModel
194
194
 
195
195
  protected
196
196
  def default_data_file_path
197
- File.join(self.class.load_path, "#{self.to_s.tableize}.yml")
197
+ File.join(self.load_path, "#{self.to_s.tableize}.yml")
198
198
  end
199
199
 
200
200
  private
data/static_model.gemspec CHANGED
@@ -4,14 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{static_model}
8
- s.version = "1.0.2"
7
+ s.name = "static_model"
8
+ s.version = "1.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Aaron Quint"]
12
- s.date = %q{2009-12-03}
13
- s.description = %q{StaticModel provides a Base class much like ActiveRecord which supports reading from a YAML file and basic associations to ActiveRecord}
14
- s.email = %q{aaron@quirkey.com}
12
+ s.date = "2009-12-03"
13
+ s.description = "StaticModel provides a Base class much like ActiveRecord which supports reading from a YAML file and basic associations to ActiveRecord"
14
+ s.email = "aaron@quirkey.com"
15
15
  s.extra_rdoc_files = [
16
16
  "README.rdoc"
17
17
  ]
@@ -34,7 +34,6 @@ Gem::Specification.new do |s|
34
34
  "lib/static_model/errors.rb",
35
35
  "lib/static_model/rails.rb",
36
36
  "lib/static_model/scope.rb",
37
- "lib/static_model/version.rb",
38
37
  "static_model.gemspec",
39
38
  "test/data/authors.yml",
40
39
  "test/data/books.yml",
@@ -50,11 +49,11 @@ Gem::Specification.new do |s|
50
49
  "test/test_static_model_generator.rb",
51
50
  "test/test_static_model_scope.rb"
52
51
  ]
53
- s.homepage = %q{http://github.com/quirkey/static_model}
52
+ s.homepage = "http://github.com/quirkey/static_model"
54
53
  s.require_paths = ["lib"]
55
- s.rubyforge_project = %q{quirkey}
56
- s.rubygems_version = %q{1.6.2}
57
- s.summary = %q{ActiveRecord like functionalities for reading from YAML with a simple class implementation}
54
+ s.rubyforge_project = "quirkey"
55
+ s.rubygems_version = "1.8.23"
56
+ s.summary = "ActiveRecord like functionalities for reading from YAML with a simple class implementation"
58
57
 
59
58
  if s.respond_to? :specification_version then
60
59
  s.specification_version = 3
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: static_model
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2009-12-03 00:00:00.000000000 -05:00
13
- default_executable:
12
+ date: 2009-12-03 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: Shoulda
17
- requirement: &2152683560 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
18
17
  none: false
19
18
  requirements:
20
19
  - - ! '>='
@@ -22,7 +21,12 @@ dependencies:
22
21
  version: 1.2.0
23
22
  type: :development
24
23
  prerelease: false
25
- version_requirements: *2152683560
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 1.2.0
26
30
  description: StaticModel provides a Base class much like ActiveRecord which supports
27
31
  reading from a YAML file and basic associations to ActiveRecord
28
32
  email: aaron@quirkey.com
@@ -49,7 +53,6 @@ files:
49
53
  - lib/static_model/errors.rb
50
54
  - lib/static_model/rails.rb
51
55
  - lib/static_model/scope.rb
52
- - lib/static_model/version.rb
53
56
  - static_model.gemspec
54
57
  - test/data/authors.yml
55
58
  - test/data/books.yml
@@ -64,7 +67,6 @@ files:
64
67
  - test/test_static_model_associations.rb
65
68
  - test/test_static_model_generator.rb
66
69
  - test/test_static_model_scope.rb
67
- has_rdoc: true
68
70
  homepage: http://github.com/quirkey/static_model
69
71
  licenses: []
70
72
  post_install_message:
@@ -85,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
87
  version: '0'
86
88
  requirements: []
87
89
  rubyforge_project: quirkey
88
- rubygems_version: 1.6.2
90
+ rubygems_version: 1.8.23
89
91
  signing_key:
90
92
  specification_version: 3
91
93
  summary: ActiveRecord like functionalities for reading from YAML with a simple class
@@ -1,9 +0,0 @@
1
- module StaticModel #:nodoc:
2
- module VERSION #:nodoc:
3
- MAJOR = 0
4
- MINOR = 2
5
- TINY = 2
6
-
7
- STRING = [MAJOR, MINOR, TINY].join('.')
8
- end
9
- end