priceable 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7ac277c8d1cae06483933583c7dc43660c0f6f67
4
+ data.tar.gz: cb1e728439ce8144b164792d30808ff8d8262010
5
+ SHA512:
6
+ metadata.gz: 43d2bbf764ea01a1055784517cacb022374ac7410d73f22819e28423c4804ae99e1449f4af9c875a10d7a8d415aaeb21a41b42c1ad2dcf968a276bbc108322e0
7
+ data.tar.gz: f4357fd051f66a34e8f70c7ab177c018bf504b37d3739ee00e25aa31ea6263b3d62397b4e01992d89f13f1a7c38d4a1b18522242dca107723bab21804e08a1dd
@@ -12,14 +12,18 @@ module Priceable
12
12
  else
13
13
  0.0
14
14
  end
15
- end
15
+ end
16
16
  define_method "#{price_field}=".to_sym do |new_price|
17
17
  send("#{price_field}#{suffix}=".to_sym, (new_price.to_f * 100).round)
18
18
  end
19
19
  end
20
- if self._accessible_attributes?
21
- attr_accessible *price_fields
20
+
21
+ unless Rails::VERSION::MAJOR == 4 && !defined?(ProtectedAttributes)
22
+ if self._accessible_attributes?
23
+ attr_accessible *price_fields
24
+ end
22
25
  end
26
+
23
27
  end
24
28
  end
25
29
 
@@ -1,3 +1,3 @@
1
1
  module Priceable
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,46 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: priceable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
5
- prerelease:
4
+ version: 0.0.7
6
5
  platform: ruby
7
6
  authors:
8
7
  - Will Cosgrove
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-09-20 00:00:00.000000000 Z
11
+ date: 2013-07-16 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rspec
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  description: Super simple way to store prices
@@ -120,33 +115,26 @@ files:
120
115
  - test/dummy/vendor/plugins/.gitkeep
121
116
  homepage: http://github.com/willcosgrove/priceable
122
117
  licenses: []
118
+ metadata: {}
123
119
  post_install_message:
124
120
  rdoc_options: []
125
121
  require_paths:
126
122
  - lib
127
123
  required_ruby_version: !ruby/object:Gem::Requirement
128
- none: false
129
124
  requirements:
130
- - - ! '>='
125
+ - - '>='
131
126
  - !ruby/object:Gem::Version
132
127
  version: '0'
133
- segments:
134
- - 0
135
- hash: -1792010130764451248
136
128
  required_rubygems_version: !ruby/object:Gem::Requirement
137
- none: false
138
129
  requirements:
139
- - - ! '>='
130
+ - - '>='
140
131
  - !ruby/object:Gem::Version
141
132
  version: '0'
142
- segments:
143
- - 0
144
- hash: -1792010130764451248
145
133
  requirements: []
146
134
  rubyforge_project:
147
- rubygems_version: 1.8.23
135
+ rubygems_version: 2.0.3
148
136
  signing_key:
149
- specification_version: 3
137
+ specification_version: 4
150
138
  summary: Quit storing prices the stupid way. Get Priceable!
151
139
  test_files:
152
140
  - spec/priceable_spec.rb