morph 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/CHANGELOG +2 -0
  2. data/lib/morph.rb +2 -2
  3. data/morph.gemspec +3 -3
  4. metadata +66 -55
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v0.3.4. return instance morph_attributes ordered by original addition of attribute
2
+
1
3
  v0.3.3. removed show_ruby() method; updated script_generate() to utilise new rails commands
2
4
 
3
5
  v0.3.2. from_hash() can now handle keys that are symbols
data/lib/morph.rb CHANGED
@@ -18,7 +18,7 @@ rescue Exception => e
18
18
  end
19
19
 
20
20
  module Morph
21
- VERSION = "0.3.3" unless defined? Morph::VERSION
21
+ VERSION = "0.3.4" unless defined? Morph::VERSION
22
22
 
23
23
  class << self
24
24
  def generate_migrations object, options={}
@@ -274,7 +274,7 @@ module Morph
274
274
  end
275
275
 
276
276
  def morph_attributes
277
- attributes = self.class.morph_methods.inject({}) do |hash, attribute|
277
+ attributes = self.class.morph_attributes.inject({}) do |hash, attribute|
278
278
  unless attribute =~ /=\Z/
279
279
  symbol = attribute.to_sym
280
280
  value = send(symbol)
data/morph.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "morph"
5
- s.version = "0.3.3"
5
+ s.version = "0.3.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Rob McKinnon"]
9
- s.date = "2011-09-21"
9
+ s.date = "2012-06-15"
10
10
  s.description = "Morph mixin allows you to emerge class definitions via calling assignment methods; mix with Nokogiri for screen scraping fun.\n"
11
11
  s.email = ["rob ~@nospam@~ rubyforge.org"]
12
12
  s.extra_rdoc_files = ["CHANGELOG", "LICENSE", "README"]
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Morph", "--main", "README", "--inline-source"]
17
17
  s.require_paths = ["lib"]
18
18
  s.rubyforge_project = "morph"
19
- s.rubygems_version = "1.8.10"
19
+ s.rubygems_version = "1.8.18"
20
20
  s.summary = "Morph mixin allows you to emerge class definitions via calling assignment methods."
21
21
 
22
22
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,64 +1,77 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: morph
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.4
4
5
  prerelease:
5
- version: 0.3.3
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Rob McKinnon
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-09-21 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+ date: 2012-06-15 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
16
15
  name: activesupport
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
19
17
  none: false
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
23
21
  version: 2.0.2
24
22
  type: :runtime
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
27
- name: rspec
28
23
  prerelease: false
29
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 2.0.2
30
+ - !ruby/object:Gem::Dependency
31
+ name: rspec
32
+ requirement: !ruby/object:Gem::Requirement
30
33
  none: false
31
- requirements:
32
- - - ">="
33
- - !ruby/object:Gem::Version
34
- version: "0"
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
35
38
  type: :development
36
- version_requirements: *id002
37
- - !ruby/object:Gem::Dependency
38
- name: echoe
39
39
  prerelease: false
40
- requirement: &id003 !ruby/object:Gem::Requirement
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: echoe
48
+ requirement: !ruby/object:Gem::Requirement
41
49
  none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- version: "0"
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
46
54
  type: :development
47
- version_requirements: *id003
48
- description: |
49
- Morph mixin allows you to emerge class definitions via calling assignment methods; mix with Nokogiri for screen scraping fun.
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ description: ! 'Morph mixin allows you to emerge class definitions via calling assignment
63
+ methods; mix with Nokogiri for screen scraping fun.
50
64
 
51
- email:
65
+ '
66
+ email:
52
67
  - rob ~@nospam@~ rubyforge.org
53
68
  executables: []
54
-
55
69
  extensions: []
56
-
57
- extra_rdoc_files:
70
+ extra_rdoc_files:
58
71
  - CHANGELOG
59
72
  - LICENSE
60
73
  - README
61
- files:
74
+ files:
62
75
  - CHANGELOG
63
76
  - examples/forger.rb
64
77
  - examples/hubbit.rb
@@ -73,9 +86,8 @@ files:
73
86
  - Rakefile
74
87
  homepage: https://github.com/robmckinnon/morph
75
88
  licenses: []
76
-
77
- post_install_message: "Read usage examples at: https://github.com/robmckinnon/morph#readme"
78
- rdoc_options:
89
+ post_install_message: ! 'Read usage examples at: https://github.com/robmckinnon/morph#readme'
90
+ rdoc_options:
79
91
  - --line-numbers
80
92
  - --inline-source
81
93
  - --title
@@ -83,26 +95,25 @@ rdoc_options:
83
95
  - --main
84
96
  - README
85
97
  - --inline-source
86
- require_paths:
98
+ require_paths:
87
99
  - lib
88
- required_ruby_version: !ruby/object:Gem::Requirement
100
+ required_ruby_version: !ruby/object:Gem::Requirement
89
101
  none: false
90
- requirements:
91
- - - ">="
92
- - !ruby/object:Gem::Version
93
- version: "0"
94
- required_rubygems_version: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - ! '>='
104
+ - !ruby/object:Gem::Version
105
+ version: '0'
106
+ required_rubygems_version: !ruby/object:Gem::Requirement
95
107
  none: false
96
- requirements:
97
- - - ">="
98
- - !ruby/object:Gem::Version
99
- version: "1.2"
108
+ requirements:
109
+ - - ! '>='
110
+ - !ruby/object:Gem::Version
111
+ version: '1.2'
100
112
  requirements: []
101
-
102
113
  rubyforge_project: morph
103
- rubygems_version: 1.8.10
114
+ rubygems_version: 1.8.18
104
115
  signing_key:
105
116
  specification_version: 3
106
- summary: Morph mixin allows you to emerge class definitions via calling assignment methods.
117
+ summary: Morph mixin allows you to emerge class definitions via calling assignment
118
+ methods.
107
119
  test_files: []
108
-