radiation 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/.coveralls.yml +1 -0
- data/.gitignore +17 -17
- data/.rspec +1 -1
- data/.travis.yml +1 -1
- data/CHANGELOG.md +42 -42
- data/Gemfile +6 -6
- data/LICENSE.txt +22 -22
- data/README.md +52 -51
- data/Rakefile +6 -6
- data/lib/radiation/spectrum.rb +14 -13
- data/lib/radiation/version.rb +1 -1
- data/radiation.gemspec +32 -32
- data/spec/spec_helper.rb +3 -3
- metadata +22 -21
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
YzQwZjVkZGExMmY4MGYyZDM4MGYzYzY5MTUwMDZmYzFjMGQ1MDVlZjRiY2Vk
|
10
|
-
NjQyMjI1MDEzZjYzYTUyZGM0Mzk0ZDI5ZjNlMDVjNjZjZGU3NjJlNTAzZTMz
|
11
|
-
OGIyNjljMTY5MjZjNjE5M2JjMDNhNDNkMDMyNDQ4YjI0YzJkYTM=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
OGY4NmY5OGRmODQ4MDFjMjkzYjExNDdjZGUxYTBlNTI4OTgwMTM1N2JlNThk
|
14
|
-
YWY4MmM0M2Q4MTJjMDAyODZlOTI1ZGExNWRhM2I3Y2FlNjUyMGNkNDc1Y2U1
|
15
|
-
NDM2ZDMzNDRmZGRmMDVkOGI2N2U2NzNkMjFkZGZlZWExOTM1ZGM=
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3a1ec8f768d2fe5e091fcffc4338682149e7eced
|
4
|
+
data.tar.gz: 4e5a442dd7b7d2ccab8840256ecc884e5ebabb35
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e33af9bfa2a5d739a4dc5cecca947da8ad9a9b07f70843631b19e58430d3911479f63084c925948090f445891c3ca3c0d346dbd084b61334a4d3ad63d5d5164f
|
7
|
+
data.tar.gz: a7d08ba6706a4d7e2e665bcb61ad6f3f4410c3de65d927baf13ba9555f959a34f18196006e90fbf846ebe75964474a8b8a6cb796a6ed55c7279d3323d4955b20
|
data/.coveralls.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
service_name: travis-ci
|
data/.gitignore
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
*.gem
|
2
|
-
*.rbc
|
3
|
-
.bundle
|
4
|
-
.config
|
5
|
-
.yardoc
|
6
|
-
Gemfile.lock
|
7
|
-
InstalledFiles
|
8
|
-
_yardoc
|
9
|
-
coverage
|
10
|
-
doc/
|
11
|
-
lib/bundler/man
|
12
|
-
pkg
|
13
|
-
rdoc
|
14
|
-
spec/reports
|
15
|
-
test/tmp
|
16
|
-
test/version_tmp
|
17
|
-
tmp
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
9
|
+
coverage
|
10
|
+
doc/
|
11
|
+
lib/bundler/man
|
12
|
+
pkg
|
13
|
+
rdoc
|
14
|
+
spec/reports
|
15
|
+
test/tmp
|
16
|
+
test/version_tmp
|
17
|
+
tmp
|
data/.rspec
CHANGED
@@ -1 +1 @@
|
|
1
|
-
#--color
|
1
|
+
#--color
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,42 +1,42 @@
|
|
1
|
-
## v0.1.4
|
2
|
-
|
3
|
-
* Added list to resources and CLI
|
4
|
-
* Example for 30 seconds en
|
5
|
-
* Changed number formatting in CLI, see plusminus nio_write
|
6
|
-
|
7
|
-
## v0.1.3
|
8
|
-
|
9
|
-
* Removed internal resource in favor of IAEA Data
|
10
|
-
|
11
|
-
## v0.1.2
|
12
|
-
|
13
|
-
* Fixing bug with percentage based intensities
|
14
|
-
* Gnuplot fitting experiments
|
15
|
-
|
16
|
-
## v0.1.1
|
17
|
-
|
18
|
-
* Weighted fits
|
19
|
-
* Added IAEA recommended data
|
20
|
-
|
21
|
-
## v0.1.0
|
22
|
-
|
23
|
-
* Added initial efficiency calculations
|
24
|
-
* Modified class structure of resources.
|
25
|
-
* Fixed rspec: Replaced round() with be_within
|
26
|
-
|
27
|
-
## v0.0.4
|
28
|
-
|
29
|
-
* Added CLI
|
30
|
-
|
31
|
-
## v0.0.3
|
32
|
-
|
33
|
-
* Added basic parsing for hdtv xml files
|
34
|
-
* Changed dependency for linefit
|
35
|
-
|
36
|
-
## v0.0.2
|
37
|
-
|
38
|
-
* Added spectrum class with energy calibration options
|
39
|
-
|
40
|
-
## v0.0.1
|
41
|
-
|
42
|
-
* initial release
|
1
|
+
## v0.1.4
|
2
|
+
|
3
|
+
* Added list to resources and CLI
|
4
|
+
* Example for 30 seconds en
|
5
|
+
* Changed number formatting in CLI, see plusminus nio_write
|
6
|
+
|
7
|
+
## v0.1.3
|
8
|
+
|
9
|
+
* Removed internal resource in favor of IAEA Data
|
10
|
+
|
11
|
+
## v0.1.2
|
12
|
+
|
13
|
+
* Fixing bug with percentage based intensities
|
14
|
+
* Gnuplot fitting experiments
|
15
|
+
|
16
|
+
## v0.1.1
|
17
|
+
|
18
|
+
* Weighted fits
|
19
|
+
* Added IAEA recommended data
|
20
|
+
|
21
|
+
## v0.1.0
|
22
|
+
|
23
|
+
* Added initial efficiency calculations
|
24
|
+
* Modified class structure of resources.
|
25
|
+
* Fixed rspec: Replaced round() with be_within
|
26
|
+
|
27
|
+
## v0.0.4
|
28
|
+
|
29
|
+
* Added CLI
|
30
|
+
|
31
|
+
## v0.0.3
|
32
|
+
|
33
|
+
* Added basic parsing for hdtv xml files
|
34
|
+
* Changed dependency for linefit
|
35
|
+
|
36
|
+
## v0.0.2
|
37
|
+
|
38
|
+
* Added spectrum class with energy calibration options
|
39
|
+
|
40
|
+
## v0.0.1
|
41
|
+
|
42
|
+
* initial release
|
data/Gemfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
gem 'coveralls', require: false
|
4
|
-
#gem "linefit", git: "https://github.com/janmayer/linefit.git"
|
5
|
-
# Specify your gem's dependencies in radiation.gemspec
|
6
|
-
gemspec
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
gem 'coveralls', require: false
|
4
|
+
#gem "linefit", git: "https://github.com/janmayer/linefit.git"
|
5
|
+
# Specify your gem's dependencies in radiation.gemspec
|
6
|
+
gemspec
|
data/LICENSE.txt
CHANGED
@@ -1,22 +1,22 @@
|
|
1
|
-
Copyright (c) 2013 Jan Mayer
|
2
|
-
|
3
|
-
MIT License
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
a copy of this software and associated documentation files (the
|
7
|
-
"Software"), to deal in the Software without restriction, including
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
the following conditions:
|
12
|
-
|
13
|
-
The above copyright notice and this permission notice shall be
|
14
|
-
included in all copies or substantial portions of the Software.
|
15
|
-
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
1
|
+
Copyright (c) 2013 Jan Mayer
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -1,52 +1,53 @@
|
|
1
|
-
# Radiation
|
2
|
-
[![Gem Version](https://badge.fury.io/rb/radiation.png)](http://badge.fury.io/rb/radiation)
|
3
|
-
[![Build Status](https://travis-ci.org/janmayer/radiation.png?branch=master)](https://travis-ci.org/janmayer/radiation)
|
4
|
-
[![Code Climate](https://codeclimate.com/github/janmayer/radiation.png)](https://codeclimate.com/github/janmayer/radiation)
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
*
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
$ radiation
|
23
|
-
|
24
|
-
=>
|
25
|
-
=>
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
$
|
45
|
-
$
|
46
|
-
$ rvm
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
1
|
+
# Radiation
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/radiation.png)](http://badge.fury.io/rb/radiation)
|
3
|
+
[![Build Status](https://travis-ci.org/janmayer/radiation.png?branch=master)](https://travis-ci.org/janmayer/radiation)
|
4
|
+
[![Code Climate](https://codeclimate.com/github/janmayer/radiation.png)](https://codeclimate.com/github/janmayer/radiation)
|
5
|
+
[![Coverage Status](https://coveralls.io/repos/janmayer/radiation/badge.png)](https://coveralls.io/r/janmayer/radiation)
|
6
|
+
|
7
|
+
This gem provides easy access to energies and intensities from the decay of radioactive nuclei.
|
8
|
+
Currently two data sources are accessible:
|
9
|
+
|
10
|
+
* IAEA [xgamma](http://www-nds.iaea.org/xgamma_standards/) recommended values (default)
|
11
|
+
* Laboratoire National Henri Becquerel [DDEP](http://www.nucleide.org/DDEP_WG/DDEPdata.htm) recommended data
|
12
|
+
|
13
|
+
Note that IAEA data is compiled and filtered with energy and efficiency calibration in mind, while DDEP data ist focused on completeness.
|
14
|
+
|
15
|
+
|
16
|
+
## Example Usage
|
17
|
+
|
18
|
+
The radiation gem can be use in two ways:
|
19
|
+
|
20
|
+
### Command line interface
|
21
|
+
|
22
|
+
$ radiation
|
23
|
+
$ radiation source Na-22
|
24
|
+
=> E_ɣ ΔE_ɣ I_ɣ ΔI_ɣ
|
25
|
+
=> 511.0 0.0 1.798 2E-03
|
26
|
+
=> 1274.537 0.003 0.9994 1E-04
|
27
|
+
|
28
|
+
Refer to the CLI for more options.
|
29
|
+
|
30
|
+
### In your ruby files:
|
31
|
+
|
32
|
+
require "radiation"
|
33
|
+
Radiation::Source.new(nuclide: "Ra-226").energies.collect{|e| e.value}
|
34
|
+
|
35
|
+
See files in `./samples/`.
|
36
|
+
|
37
|
+
|
38
|
+
## Installation
|
39
|
+
|
40
|
+
Requirement is a (local) ruby with rubygems. Using rvm is recommended
|
41
|
+
|
42
|
+
### Installing ruby locally on a debian based system
|
43
|
+
|
44
|
+
$ \curl -L https://get.rvm.io | bash -s stable
|
45
|
+
$ source ~/.bashrc
|
46
|
+
$ rvm mount -r http://rvm.io/binaries/debian/7.0/x86_64/ruby-2.0.0-p247.tar.bz2 --verify-downloads 1
|
47
|
+
$ rvm use --default 2.0.0
|
48
|
+
|
49
|
+
### Installing the gem
|
50
|
+
|
51
|
+
$ gem install radiation
|
52
|
+
|
52
53
|
Or use bundler.
|
data/Rakefile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
require "bundler/gem_tasks"
|
2
|
-
require 'rspec/core/rake_task'
|
3
|
-
|
4
|
-
RSpec::Core::RakeTask.new(:spec)
|
5
|
-
|
6
|
-
task default: :spec
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
require 'rspec/core/rake_task'
|
3
|
+
|
4
|
+
RSpec::Core::RakeTask.new(:spec)
|
5
|
+
|
6
|
+
task default: :spec
|
data/lib/radiation/spectrum.rb
CHANGED
@@ -6,21 +6,22 @@ require "xmlsimple"
|
|
6
6
|
|
7
7
|
module Radiation
|
8
8
|
class Spectrum
|
9
|
-
attr_accessor :peaks, :source, :calibration, :livetime, :activity
|
10
|
-
|
9
|
+
attr_accessor :peaks, :source, :calibration, :livetime, :activity, :count_correction
|
10
|
+
|
11
11
|
def initialize(options={})
|
12
12
|
@peaks = options.key?(:peaks) ? options[:peaks] : []
|
13
13
|
@source = options.key?(:source) ? options[:source] : nil
|
14
14
|
@calibration= options.key?(:calibration) ? options[:calibration] : [0, 1]
|
15
15
|
@livetime = options.key?(:livetime) ? options[:livetime] : 1
|
16
16
|
@activity = options.key?(:activity) ? options[:activity] : 1
|
17
|
+
@count_correction = options.key?(:count_correction) ? options[:count_correction] : 1
|
17
18
|
end
|
18
|
-
|
19
|
+
|
19
20
|
def calibrate
|
20
21
|
if @peaks.empty? or @peaks.select{|p| p.key?(:channel)}.empty?
|
21
22
|
raise "Nothing to calibrate"
|
22
23
|
end
|
23
|
-
|
24
|
+
|
24
25
|
if @peaks.select{|p| p.key?(:channel) and p.key?(:energy)}.empty?
|
25
26
|
if @calibration == [0,1] and @source.nil?
|
26
27
|
raise "No channel <-> energy associations. Specify a Source or a preliminary calibration to improve"
|
@@ -33,7 +34,7 @@ module Radiation
|
|
33
34
|
@calibration = apply_linefit(@peaks)
|
34
35
|
return self
|
35
36
|
end
|
36
|
-
|
37
|
+
|
37
38
|
def guess_calibration(energies=@source.energies, rounding=4)
|
38
39
|
# Build all possible combinations of known energies and peaks
|
39
40
|
arr = [energies, @peaks.collect{|peak| peak[:channel]}].comprehension
|
@@ -42,20 +43,20 @@ module Radiation
|
|
42
43
|
@calibration = [0, freq.last[0] ]
|
43
44
|
return self
|
44
45
|
end
|
45
|
-
|
46
|
+
|
46
47
|
def channel_energy(chn)
|
47
48
|
@calibration[0] + @calibration[1]*chn
|
48
49
|
end
|
49
|
-
|
50
|
+
|
50
51
|
def parse_hdtv(file)
|
51
52
|
xml = XmlSimple.xml_in(file, { 'KeyAttr' => 'name' })
|
52
53
|
@peaks = xml["fit"].collect{|p| p["peak"]}.flatten.collect{|p| p["uncal"]}.flatten.collect do |p|
|
53
54
|
{:channel => p["pos"].first["value"].first.to_f.pm(p["pos"].first["error"].first.to_f),
|
54
|
-
:counts => p["vol"].first["value"].first.to_f.pm(p["vol"].first["error"].first.to_f) }
|
55
|
+
:counts => p["vol"].first["value"].first.to_f.pm(p["vol"].first["error"].first.to_f) }
|
55
56
|
end
|
56
57
|
return self
|
57
58
|
end
|
58
|
-
|
59
|
+
|
59
60
|
def efficiencies(rounding=4)
|
60
61
|
self.match_channels
|
61
62
|
@peaks.select{|p| p.key?(:intensity) and p.key?(:counts)}.each{|p| p[:efficiency] = channel_efficiency(p)}
|
@@ -76,7 +77,7 @@ module Radiation
|
|
76
77
|
|
77
78
|
|
78
79
|
def channel_efficiency(peak)
|
79
|
-
peak[:counts]/(peak[:intensity]*@livetime*@activity)
|
80
|
+
peak[:counts]*@count_correction/(peak[:intensity]*@livetime*@activity)
|
80
81
|
end
|
81
82
|
|
82
83
|
private
|
@@ -94,7 +95,7 @@ module Radiation
|
|
94
95
|
else
|
95
96
|
lineFit.setData(x,y)
|
96
97
|
end
|
97
|
-
|
98
|
+
|
98
99
|
intercept, slope = lineFit.coefficients
|
99
100
|
varianceIntercept, varianceSlope = lineFit.varianceOfEstimates
|
100
101
|
return [intercept.pm(Math.sqrt(varianceIntercept.abs)), slope.pm(Math.sqrt(varianceSlope.abs))]
|
@@ -102,8 +103,8 @@ module Radiation
|
|
102
103
|
|
103
104
|
end
|
104
105
|
end
|
105
|
-
|
106
|
-
|
106
|
+
|
107
|
+
|
107
108
|
class Float
|
108
109
|
def approx_equal?(other,threshold=0.5)
|
109
110
|
if (self-other).abs < threshold # "<" not exact either
|
data/lib/radiation/version.rb
CHANGED
data/radiation.gemspec
CHANGED
@@ -1,32 +1,32 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'radiation/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = "radiation"
|
8
|
-
spec.version = Radiation::VERSION
|
9
|
-
spec.authors = ["Jan Mayer"]
|
10
|
-
spec.email = ["jan.mayer@ikp.uni-koeln.de"]
|
11
|
-
spec.description = %q{Decay Radiation}
|
12
|
-
spec.summary = %q{This gem provides easy access to energies and intensities from the decay of radioactive nuclei}
|
13
|
-
spec.homepage = "https://github.com/janmayer/radiation"
|
14
|
-
spec.license = "MIT"
|
15
|
-
|
16
|
-
spec.files = `git ls-files`.split($/)
|
17
|
-
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
-
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
-
spec.require_paths = ["lib"]
|
20
|
-
|
21
|
-
spec.add_dependency "plusminus"
|
22
|
-
spec.add_dependency "open-uri-cached"
|
23
|
-
spec.add_dependency "combinatorics"
|
24
|
-
spec.add_dependency "linefit"
|
25
|
-
spec.add_dependency "xml-simple"
|
26
|
-
spec.add_dependency "thor"
|
27
|
-
|
28
|
-
|
29
|
-
spec.add_development_dependency "bundler", "~> 1.3"
|
30
|
-
spec.add_development_dependency "rake"
|
31
|
-
spec.add_development_dependency "rspec"
|
32
|
-
end
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'radiation/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "radiation"
|
8
|
+
spec.version = Radiation::VERSION
|
9
|
+
spec.authors = ["Jan Mayer"]
|
10
|
+
spec.email = ["jan.mayer@ikp.uni-koeln.de"]
|
11
|
+
spec.description = %q{Decay Radiation}
|
12
|
+
spec.summary = %q{This gem provides easy access to energies and intensities from the decay of radioactive nuclei}
|
13
|
+
spec.homepage = "https://github.com/janmayer/radiation"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_dependency "plusminus"
|
22
|
+
spec.add_dependency "open-uri-cached"
|
23
|
+
spec.add_dependency "combinatorics"
|
24
|
+
spec.add_dependency "linefit"
|
25
|
+
spec.add_dependency "xml-simple"
|
26
|
+
spec.add_dependency "thor"
|
27
|
+
|
28
|
+
|
29
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
30
|
+
spec.add_development_dependency "rake"
|
31
|
+
spec.add_development_dependency "rspec"
|
32
|
+
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,97 +1,97 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Mayer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: plusminus
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
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: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: open-uri-cached
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: combinatorics
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :runtime
|
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: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: linefit
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: xml-simple
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - '>='
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - '>='
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: thor
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - '>='
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - '>='
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
@@ -112,28 +112,28 @@ dependencies:
|
|
112
112
|
name: rake
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - '>='
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - '>='
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rspec
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- -
|
129
|
+
- - '>='
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- -
|
136
|
+
- - '>='
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
139
|
description: Decay Radiation
|
@@ -144,6 +144,7 @@ executables:
|
|
144
144
|
extensions: []
|
145
145
|
extra_rdoc_files: []
|
146
146
|
files:
|
147
|
+
- .coveralls.yml
|
147
148
|
- .gitignore
|
148
149
|
- .rspec
|
149
150
|
- .travis.yml
|
@@ -184,17 +185,17 @@ require_paths:
|
|
184
185
|
- lib
|
185
186
|
required_ruby_version: !ruby/object:Gem::Requirement
|
186
187
|
requirements:
|
187
|
-
- -
|
188
|
+
- - '>='
|
188
189
|
- !ruby/object:Gem::Version
|
189
190
|
version: '0'
|
190
191
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
191
192
|
requirements:
|
192
|
-
- -
|
193
|
+
- - '>='
|
193
194
|
- !ruby/object:Gem::Version
|
194
195
|
version: '0'
|
195
196
|
requirements: []
|
196
197
|
rubyforge_project:
|
197
|
-
rubygems_version: 2.0.
|
198
|
+
rubygems_version: 2.0.3
|
198
199
|
signing_key:
|
199
200
|
specification_version: 4
|
200
201
|
summary: This gem provides easy access to energies and intensities from the decay
|