mspire 0.10.7.3 → 0.10.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8df274039d16839cbdf35f56f1e7ecf32ca47bac
4
- data.tar.gz: b5c1d079ff977beca71a96b6ae104eabca0c0d09
3
+ metadata.gz: 72807eb6132aa38fc1277fb7ca3be77d48b8fbf7
4
+ data.tar.gz: 3661728260192eb6a782d553c3294366bb9fca1d
5
5
  SHA512:
6
- metadata.gz: 8441a8f5be0b660115d2da8e8c1b738cfecdc3f03aa2611032cf7c346288c25028e47802bc04566d4adb39abd09bbebabd6a37cdc81cd83ef91d7bc28ffd295a
7
- data.tar.gz: d9f25609b05e3629d04db3b4906f2323cf1988bb1aa42034f8ba7d2c8f2dba167670d0b9a0b435b15920cd8e91192acdf6668d3379ae41e1c6e1a3fb94ac0341
6
+ metadata.gz: 65900c051fdba40996f0b8b2366b9e4f47444207c26982ae23c8d58c17e689d79984ff8a7443299932b33a1770f5fa013c4fbe804260cc5114c66190338131af
7
+ data.tar.gz: 811e9abc828e5dc2f38d423a460c3b262ba6d87b462c9aeb6c910de463529a78bda44944f93eccb4ed1cdcdfd1764631f68c08cc24d9bdf0b86aa471adda1164
@@ -181,8 +181,8 @@ module Mspire
181
181
  # array.
182
182
  def self.from_arrays(id, arrays)
183
183
  spec = self.new(id)
184
- arrays.zip(['MS:1000514','MS:1000515']).each do |ar, acc|
185
- dar = DataArray.new(ar).describe!(acc)
184
+ spec.data_arrays = arrays.zip(['MS:1000514','MS:1000515']).map do |ar, acc|
185
+ DataArray.new(ar).describe!(acc)
186
186
  end
187
187
  spec
188
188
  end
@@ -360,11 +360,7 @@ module Mspire
360
360
 
361
361
  # returns an Mspire::Spectrum object
362
362
  def to_spectrum
363
- xs = [] ; ys = []
364
- each do |peak|
365
- xs << peak.x ; ys << peak.y
366
- end
367
- Mspire::Spectrum.new([xs, ys])
363
+ Mspire::Spectrum.new(self.transpose)
368
364
  end
369
365
  end
370
366
  end
@@ -1,3 +1,3 @@
1
1
  module Mspire
2
- VERSION = "0.10.7.3"
2
+ VERSION = "0.10.8.0"
3
3
  end
@@ -31,10 +31,10 @@ Gem::Specification.new do |spec|
31
31
  end
32
32
 
33
33
  [
34
- ["bundler", "~> 1.5.1"],
34
+ ["bundler", "~> 1.6.2"],
35
35
  ["rake"],
36
36
  ["rspec", "~> 2.14.1"],
37
- ["rdoc", "~> 4.1.0"],
37
+ ["rdoc", "~> 4.1.1"],
38
38
  ["simplecov", "~> 0.8.2"],
39
39
  ["coveralls"],
40
40
  # here because bad microsoft OS support
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mspire
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.7.3
4
+ version: 0.10.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John T. Prince
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-05-12 00:00:00.000000000 Z
12
+ date: 2014-05-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -115,14 +115,14 @@ dependencies:
115
115
  requirements:
116
116
  - - "~>"
117
117
  - !ruby/object:Gem::Version
118
- version: 1.5.1
118
+ version: 1.6.2
119
119
  type: :development
120
120
  prerelease: false
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
123
  - - "~>"
124
124
  - !ruby/object:Gem::Version
125
- version: 1.5.1
125
+ version: 1.6.2
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: rake
128
128
  requirement: !ruby/object:Gem::Requirement
@@ -157,14 +157,14 @@ dependencies:
157
157
  requirements:
158
158
  - - "~>"
159
159
  - !ruby/object:Gem::Version
160
- version: 4.1.0
160
+ version: 4.1.1
161
161
  type: :development
162
162
  prerelease: false
163
163
  version_requirements: !ruby/object:Gem::Requirement
164
164
  requirements:
165
165
  - - "~>"
166
166
  - !ruby/object:Gem::Version
167
- version: 4.1.0
167
+ version: 4.1.1
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: simplecov
170
170
  requirement: !ruby/object:Gem::Requirement