core_data 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- core_data (0.0.1)
4
+ core_data (0.0.2)
5
5
  nokogiri (~> 1.4)
6
6
 
7
7
  GEM
Binary file
data/lib/core_data.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module CoreData
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
4
4
 
5
5
  require 'nokogiri'
@@ -9,6 +9,12 @@ module CoreData
9
9
  @type = attribute['attributeType']
10
10
  @identifier = attribute['elementID']
11
11
  @version_hash_modifier = attribute['versionHashModifier']
12
+ @default_value = case @type
13
+ when "Integer 16", "Integer 32", "Integer 64"
14
+ attribute['defaultValueString'].to_i
15
+ when "Float", "Decimal"
16
+ attribute['defaultValueString'].to_f
17
+ end if attribute['defaultValueString']
12
18
 
13
19
  @optional = attribute['optional'] == "YES"
14
20
  @transient = attribute['transient'] == "YES"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: core_data
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-07-18 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70152201873960 !ruby/object:Gem::Requirement
16
+ requirement: &70198109801220 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.6.1
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70152201873960
24
+ version_requirements: *70198109801220
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &70152201872480 !ruby/object:Gem::Requirement
27
+ requirement: &70198109800460 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.9.2
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70152201872480
35
+ version_requirements: *70198109800460
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: nokogiri
38
- requirement: &70152201871160 !ruby/object:Gem::Requirement
38
+ requirement: &70198109799620 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,13 +43,14 @@ dependencies:
43
43
  version: '1.4'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70152201871160
46
+ version_requirements: *70198109799620
47
47
  description: A gem for interacting with Core Data models
48
48
  email: m@mattt.me
49
49
  executables: []
50
50
  extensions: []
51
51
  extra_rdoc_files: []
52
52
  files:
53
+ - ./core_data-0.0.1.gem
53
54
  - ./core_data.gemspec
54
55
  - ./Gemfile
55
56
  - ./Gemfile.lock
@@ -75,7 +76,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
75
76
  version: '0'
76
77
  segments:
77
78
  - 0
78
- hash: -1634406435194911796
79
+ hash: -3310717452054011410
79
80
  required_rubygems_version: !ruby/object:Gem::Requirement
80
81
  none: false
81
82
  requirements:
@@ -84,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
85
  version: '0'
85
86
  segments:
86
87
  - 0
87
- hash: -1634406435194911796
88
+ hash: -3310717452054011410
88
89
  requirements: []
89
90
  rubyforge_project:
90
91
  rubygems_version: 1.8.15