underscore_plus 0.9.0 → 0.9.1

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- N2Y0MDMzMGNlZGI5ZDNlNTMwNDkwOTg0ZGU4MWE1NzdjMDk1M2IxMw==
4
+ YWQwMGUzY2M4MDNhMDk4MjhjMmFmNjMwNzYzZmViMGZjNjM1Y2QyZg==
5
5
  data.tar.gz: !binary |-
6
- MGZmM2Y1MTc1YzYyNjUxNmE1MmNhMjM1Yzc1NjdiZjMzYmJiZTEzYg==
6
+ OTJlM2VmN2M5Y2YzZmU4NWUxMGRjOWYxMWQ0ZWMxNWMyMWEzMDliYQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NzE4YTAyNjZjYWQzMTA3ZjY3ZDI1ZWNiNGM2YTZmZTg5Y2RiYTljYjMxN2Y1
10
- YmExMGNmMWFhYmI3MmI5MGU2NjQ0MWYyNWI0NzMwNTQ4NDFmNjFkMmViMWQy
11
- ZmQ2NWRjZmVjNTI0ZWFiZGY3NGIyZDUwNzdiNjE0ODBlNDQ2NGU=
9
+ ZjJlMWI4MWI0ZWFlN2E5MDY3MzA0NmFlYTI4OWYxNTA2MzRlMDRjNzI2ZjUz
10
+ YmJjYzljODM5ZDE5MDg3M2E4ODhjNTgwOTI3Y2M0ZDI4NzBmYjIwNjIxNzlm
11
+ ZDljYjA3Y2NhYjk3YjQ2ZTg1OTYyYTVmMDNmOTM4Njg0MTI1YWU=
12
12
  data.tar.gz: !binary |-
13
- N2ZmYWYwNDJmODRhMjBkYmNkNmM4NTNjMmYxNDg1MDYwYjVkNGFmY2VlMzEz
14
- ODkwMDgyMmI4MmIwNWQ3OTdhMTE4N2M5NDdiZTgxNTFlNmRmZmM4ZDk4ZjMw
15
- MzRhZjFhYmNjYTBiNTFmNDA4M2FhM2RiNzk2MjRiYmNhYTYxZjI=
13
+ MTU0NGY0ZmE3MzA4YzYyMjMwOGEzM2JlYjUyNWEyNWM1ODcwM2U4MjliNmZi
14
+ ZmJlYTUyMTA0YTViOTQ1ZWFiNWU0NTljMWYxMGIxNGI2Y2JjYTc2MmJkZmY2
15
+ Yjg5YTI3Y2FmMTA1ZjZiNzhjNGNhZjRhMTBkNTM5Zjg2Y2E3NmU=
@@ -455,4 +455,9 @@ _.pickWithPrefix = function(aObject,aPrefix) {
455
455
  return result;
456
456
  };
457
457
 
458
+ _.round = function(aNumber,aDecimals) {
459
+ var mult = Math.pow(10, aDecimals);
460
+ return Math.round(aNumber*mult)/mult;
461
+ };
462
+
458
463
  }).call(this);
@@ -1,3 +1,3 @@
1
1
  module UnderscorePlus
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
@@ -17,8 +17,8 @@ Gem::Specification.new do |spec|
17
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
- spec.add_dependency "railties", "~> 3.1"
21
- spec.add_dependency "underscore-rails", "= 1.4.3"
22
- spec.add_development_dependency "bundler", "~> 1.3"
20
+ spec.add_development_dependency "railties", ">= 3.1"
21
+ spec.add_development_dependency "underscore-rails", "= 1.4.3"
22
+ spec.add_development_dependency "bundler", ">= 1.3"
23
23
  spec.add_development_dependency "rake"
24
24
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: underscore_plus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gary McGhee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-21 00:00:00.000000000 Z
11
+ date: 2013-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.1'
20
- type: :runtime
20
+ type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - ! '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.1'
27
27
  - !ruby/object:Gem::Dependency
@@ -31,7 +31,7 @@ dependencies:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
33
  version: 1.4.3
34
- type: :runtime
34
+ type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
@@ -42,14 +42,14 @@ dependencies:
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - ! '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.3'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.3'
55
55
  - !ruby/object:Gem::Dependency