has_bootstrap 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -3,6 +3,4 @@ source 'http://rubygems.org'
3
3
  group :development do
4
4
  gem 'yard', '~> 0.8.2.1'
5
5
  gem 'jeweler', '~> 1.8.3'
6
- gem 'magic_encoding', '~> 0.0.2'
7
- gem 'whitespace', '~> 2.0.4'
8
6
  end
@@ -8,11 +8,9 @@ GEM
8
8
  rake
9
9
  rdoc
10
10
  json (1.7.5)
11
- magic_encoding (0.0.2)
12
11
  rake (10.0.2)
13
12
  rdoc (3.12)
14
13
  json (~> 1.4)
15
- whitespace (2.0.4)
16
14
  yard (0.8.2.1)
17
15
 
18
16
  PLATFORMS
@@ -20,6 +18,4 @@ PLATFORMS
20
18
 
21
19
  DEPENDENCIES
22
20
  jeweler (~> 1.8.3)
23
- magic_encoding (~> 0.0.2)
24
- whitespace (~> 2.0.4)
25
21
  yard (~> 0.8.2.1)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "has_bootstrap"
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Thomas Boerger"]
12
- s.date = "2012-11-28"
12
+ s.date = "2013-07-08"
13
13
  s.email = "tboerger@tbpro.de"
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE.md",
@@ -40,19 +40,13 @@ Gem::Specification.new do |s|
40
40
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
41
41
  s.add_development_dependency(%q<yard>, ["~> 0.8.2.1"])
42
42
  s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
43
- s.add_development_dependency(%q<magic_encoding>, ["~> 0.0.2"])
44
- s.add_development_dependency(%q<whitespace>, ["~> 2.0.4"])
45
43
  else
46
44
  s.add_dependency(%q<yard>, ["~> 0.8.2.1"])
47
45
  s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
48
- s.add_dependency(%q<magic_encoding>, ["~> 0.0.2"])
49
- s.add_dependency(%q<whitespace>, ["~> 2.0.4"])
50
46
  end
51
47
  else
52
48
  s.add_dependency(%q<yard>, ["~> 0.8.2.1"])
53
49
  s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
54
- s.add_dependency(%q<magic_encoding>, ["~> 0.0.2"])
55
- s.add_dependency(%q<whitespace>, ["~> 2.0.4"])
56
50
  end
57
51
  end
58
52
 
@@ -28,9 +28,11 @@ module HasBootstrap
28
28
 
29
29
  record = if record = existing[attributes[primary_key]]
30
30
  if defaults
31
- attributes.merge! defaults.delete_if do |attribute, value|
31
+ available_defaults = defaults.delete_if do |attribute, value|
32
32
  record.send("#{attribute}?")
33
33
  end
34
+
35
+ attributes.merge! available_defaults
34
36
  end
35
37
 
36
38
  record.attributes = attributes
@@ -6,7 +6,7 @@ module HasBootstrap
6
6
  module Version
7
7
  MAJOR = 0
8
8
  MINOR = 1
9
- PATCH = 0
9
+ PATCH = 1
10
10
  BUILD = nil
11
11
 
12
12
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-28 00:00:00.000000000 Z
12
+ date: 2013-07-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: yard
@@ -43,38 +43,6 @@ dependencies:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
45
  version: 1.8.3
46
- - !ruby/object:Gem::Dependency
47
- name: magic_encoding
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ~>
52
- - !ruby/object:Gem::Version
53
- version: 0.0.2
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- version: 0.0.2
62
- - !ruby/object:Gem::Dependency
63
- name: whitespace
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ~>
68
- - !ruby/object:Gem::Version
69
- version: 2.0.4
70
- type: :development
71
- prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ~>
76
- - !ruby/object:Gem::Version
77
- version: 2.0.4
78
46
  description:
79
47
  email: tboerger@tbpro.de
80
48
  executables: []
@@ -109,7 +77,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
109
77
  version: '0'
110
78
  segments:
111
79
  - 0
112
- hash: -2672859310885189518
80
+ hash: 2376138391860766055
113
81
  required_rubygems_version: !ruby/object:Gem::Requirement
114
82
  none: false
115
83
  requirements: