subsurface 0.1.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 1465695dfb219a8e4cc1c32a3d71ecf8d5329b7cb19c9f0d29758e472a882eaa
4
+ data.tar.gz: 2680a772f23a8dcb8394ecf86a795c1a270d27affab45a118125c45cddb0795a
5
+ SHA512:
6
+ metadata.gz: a4c57df9cbcb7f7e0addd118fffcee7f26dc79e43f76b0a9b1d697d8a584c2ef2943d8dd9495d7296277563df1f24c84ed5355954af80f7b47ba8c8b5043d206
7
+ data.tar.gz: 38d909ed68fd1c609bf5a3e91c8cf78b29db50d5345d626e571a6a21e35533cf7f4bb9e84de7e08ce94a4f4b0a7a4168a0098ea6b981cd00f9fd06891639a53f
data/.gitignore ADDED
@@ -0,0 +1,13 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ .idea/*
11
+
12
+ # rspec failure tracking
13
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ subsurface
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-2.5.1
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.5.1
7
+ before_install: gem install bundler -v 1.16.6
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at shrikant.patnaik@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in subsurface.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,39 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ subsurface (0.1.0)
5
+ nokogiri (~> 1.6, >= 1.6.8)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ diff-lcs (1.3)
11
+ mini_portile2 (2.3.0)
12
+ nokogiri (1.8.5)
13
+ mini_portile2 (~> 2.3.0)
14
+ rake (10.5.0)
15
+ rspec (3.8.0)
16
+ rspec-core (~> 3.8.0)
17
+ rspec-expectations (~> 3.8.0)
18
+ rspec-mocks (~> 3.8.0)
19
+ rspec-core (3.8.0)
20
+ rspec-support (~> 3.8.0)
21
+ rspec-expectations (3.8.2)
22
+ diff-lcs (>= 1.2.0, < 2.0)
23
+ rspec-support (~> 3.8.0)
24
+ rspec-mocks (3.8.0)
25
+ diff-lcs (>= 1.2.0, < 2.0)
26
+ rspec-support (~> 3.8.0)
27
+ rspec-support (3.8.0)
28
+
29
+ PLATFORMS
30
+ ruby
31
+
32
+ DEPENDENCIES
33
+ bundler (~> 1.16)
34
+ rake (~> 10.0)
35
+ rspec (~> 3.0)
36
+ subsurface!
37
+
38
+ BUNDLED WITH
39
+ 1.16.6
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Shrikant Patnaik
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,36 @@
1
+ # Subsurface
2
+ Simple Gem to read Subsurface dive logs file
3
+
4
+ ## Installation
5
+
6
+ Add this line to your application's Gemfile:
7
+
8
+ ```ruby
9
+ gem 'subsurface'
10
+ ```
11
+
12
+ And then execute:
13
+
14
+ $ bundle
15
+
16
+ Or install it yourself as:
17
+
18
+ $ gem install subsurface
19
+
20
+ ## Usage
21
+
22
+ `dives = Subsurface::Reader.read(file)`
23
+
24
+ where file is an instance of `Nokogiri::XML`
25
+
26
+ ## Contributing
27
+
28
+ Bug reports and pull requests are welcome on GitHub at https://github.com/shrikantpatnaik/subsurface. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
29
+
30
+ ## License
31
+
32
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
33
+
34
+ ## Code of Conduct
35
+
36
+ Everyone interacting in the Subsurface project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/subsurface/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +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
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "subsurface"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/lib/subsurface.rb ADDED
@@ -0,0 +1,176 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'subsurface/version'
4
+ require 'subsurface/extra_data'
5
+ require 'subsurface/sample'
6
+ require 'subsurface/computer_data'
7
+ require 'subsurface/dive'
8
+ # rubocop:disable Metrics/AbcSize, Metrics/MethodLength, Metrics/ClassLength
9
+ # main reader class
10
+ module Subsurface
11
+ # Reader is the main class that reads the xml data
12
+ class Reader
13
+ def self.read(data)
14
+ dives = []
15
+ data.xpath('//dive').each do |dive|
16
+ computer_data = []
17
+ dive.xpath('divecomputer').each do |computer|
18
+ extra_datas = []
19
+ computer.xpath('extradata').each do |ed|
20
+ extra_datas.push(
21
+ ExtraData.new(
22
+ get_attribute_value(ed, nil, 'key'),
23
+ get_attribute_value(ed, nil, 'value')
24
+ )
25
+ )
26
+ end
27
+ samples = []
28
+ computer.xpath('sample').each do |sample|
29
+ samples.push(create_sample(sample))
30
+ end
31
+ computer_data.push(
32
+ create_computer_data(computer, extra_datas, samples)
33
+ )
34
+ end
35
+ dives.push(create_dive(dive, computer_data))
36
+ end
37
+ dives
38
+ end
39
+
40
+ class << self
41
+ private
42
+
43
+ def get_attribute_value(parent, xpath, attribute)
44
+ val = if xpath
45
+ if parent.xpath(xpath).empty?
46
+ nil
47
+ else
48
+ parent.xpath(xpath).attribute(attribute)
49
+ end
50
+ else
51
+ parent.attribute(attribute)
52
+ end
53
+ val&.value
54
+ end
55
+
56
+ def create_dive(dive_xpath, computer_data)
57
+ Dive.new(
58
+ get_attribute_value(dive_xpath, nil, 'number').to_i,
59
+ get_attribute_value(dive_xpath, nil, 'date'),
60
+ get_attribute_value(dive_xpath, nil, 'time'),
61
+ duration_in_seconds(
62
+ strip_minutes(get_attribute_value(dive_xpath, nil, 'duration'))
63
+ ),
64
+ strip_percent(
65
+ get_attribute_value(dive_xpath, 'cylinder', 'o2')
66
+ )&.to_f,
67
+ computer_data
68
+ )
69
+ end
70
+
71
+ def create_computer_data(computer_xpath, extra_datas, samples)
72
+ ComputerData.new(
73
+ get_attribute_value(computer_xpath, nil, 'model'),
74
+ get_attribute_value(computer_xpath, nil, 'deviceid'),
75
+ get_attribute_value(computer_xpath, nil, 'diveid'),
76
+ strip_meters(
77
+ get_attribute_value(computer_xpath, 'depth', 'max')
78
+ )&.to_f,
79
+ strip_meters(
80
+ get_attribute_value(computer_xpath, 'depth', 'mean')
81
+ )&.to_f,
82
+ strip_celsius(
83
+ get_attribute_value(computer_xpath, 'temperature', 'air')
84
+ )&.to_f,
85
+ strip_celsius(
86
+ get_attribute_value(computer_xpath, 'temperature', 'water')
87
+ )&.to_f,
88
+ strip_bar(
89
+ get_attribute_value(computer_xpath, 'surface', 'pressure')
90
+ )&.to_f,
91
+ strip_g_l(
92
+ get_attribute_value(computer_xpath, 'water', 'salinity')
93
+ )&.to_f,
94
+ extra_datas, samples
95
+ )
96
+ end
97
+
98
+ def create_sample(sample_xpath)
99
+ Sample.new(duration_in_seconds(
100
+ strip_minutes(
101
+ get_attribute_value(sample_xpath, nil, 'time')
102
+ )
103
+ ),
104
+ strip_meters(
105
+ get_attribute_value(sample_xpath, nil, 'depth')
106
+ )&.to_f,
107
+ strip_celsius(
108
+ get_attribute_value(sample_xpath, nil, 'temp')
109
+ )&.to_f,
110
+ strip_bar(
111
+ get_attribute_value(sample_xpath, nil, 'pressure')
112
+ )&.to_f,
113
+ duration_in_seconds(
114
+ strip_minutes(
115
+ get_attribute_value(sample_xpath, nil, 'ndl')
116
+ )
117
+ ),
118
+ duration_in_seconds(
119
+ strip_minutes(
120
+ get_attribute_value(sample_xpath, nil, 'tts')
121
+ )
122
+ ),
123
+ duration_in_seconds(
124
+ strip_minutes(
125
+ get_attribute_value(sample_xpath, nil, 'rbt')
126
+ )
127
+ ),
128
+ strip_percent(
129
+ get_attribute_value(sample_xpath, nil, 'cns')
130
+ )&.to_f)
131
+ end
132
+
133
+ def strip_minutes(string)
134
+ strip_unit(string, 'min')
135
+ end
136
+
137
+ def strip_percent(string)
138
+ strip_unit(string, '%')
139
+ end
140
+
141
+ def strip_celsius(string)
142
+ strip_unit(string, 'C')
143
+ end
144
+
145
+ def strip_bar(string)
146
+ strip_unit(string, 'bar')
147
+ end
148
+
149
+ def strip_meters(string)
150
+ strip_unit(string, 'm')
151
+ end
152
+
153
+ def strip_g_l(string)
154
+ strip_unit(string, 'g/l')
155
+ end
156
+
157
+ def strip_unit(string, unit)
158
+ if string.nil?
159
+ nil
160
+ else
161
+ string.slice! unit
162
+ string.strip
163
+ end
164
+ end
165
+
166
+ def duration_in_seconds(string)
167
+ unless string.nil?
168
+ durations = string.split(':')
169
+ return (durations[0].strip.to_i * 60) + durations[1].strip.to_i
170
+ end
171
+ nil
172
+ end
173
+ end
174
+ end
175
+ # rubocop:enable Metrics/AbcSize, Metrics/MethodLength, Metrics/ClassLength
176
+ end
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Subsurface
4
+ # noinspection RubyTooManyInstanceVariablesInspection
5
+ # Stores the computer data for each computer in the dive
6
+ class ComputerData
7
+ # TODO: Handle events
8
+ attr_reader :model, :device_id, :dive_id, :max_depth, :mean_depth,
9
+ :air_temp, :water_temp, :surface_pressure,
10
+ :salinity, :extra_datas, :samples
11
+ # rubocop:disable Metrics/ParameterLists, Metrics/MethodLength
12
+ # @param [String] model
13
+ # @param [String] device_id
14
+ # @param [String] dive_id
15
+ # @param [Integer] max_depth in meters
16
+ # @param [Integer] mean_depth in meters
17
+ # @param [Integer] air_temp in C
18
+ # @param [Integer] water_temp in C
19
+ # @param [Integer] surface_pressure in bar
20
+ # @param [Integer] salinity in g/l
21
+ # @param [ExtraData] extra_datas
22
+ # @param [Sample] samples
23
+ # @return [ComputerData]
24
+ def initialize(model, device_id, dive_id, max_depth, mean_depth, air_temp,
25
+ water_temp, surface_pressure, salinity, extra_datas, samples)
26
+ @model = model
27
+ @device_id = device_id
28
+ @dive_id = dive_id
29
+ @max_depth = max_depth
30
+ @mean_depth = mean_depth
31
+ @air_temp = air_temp
32
+ @water_temp = water_temp
33
+ @surface_pressure = surface_pressure
34
+ @salinity = salinity
35
+ @extra_datas = extra_datas
36
+ @samples = samples
37
+ end
38
+ # rubocop:enable Metrics/ParameterLists, Metrics/MethodLength
39
+ end
40
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Dive is the model that contains all the information for each dive
4
+ class Dive
5
+ attr_reader :number, :date, :time, :duration, :o2_percent, :computer_data
6
+ # rubocop:disable Metrics/ParameterLists
7
+ # @param [Integer] number
8
+ # @param [String] date
9
+ # @param [String] time
10
+ # @param [Integer] duration in seconds
11
+ # @param [Integer] o2_percent=
12
+ # @param [ComputerData] computer_data
13
+ # @return [Dive]
14
+ def initialize(number, date, time, duration, o2_percent, computer_data)
15
+ @number = number
16
+ @date = date
17
+ @time = time
18
+ @duration = duration
19
+ @o2_percent = o2_percent
20
+ @computer_data = computer_data
21
+ end
22
+ # rubocop:enable Metrics/ParameterLists
23
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Subsurface
4
+ # Stores extra data in key value pairs
5
+ class ExtraData
6
+ attr_reader :key, :value
7
+ # @param [String] key
8
+ # @param [String] value
9
+ def initialize(key, value)
10
+ @key = key
11
+ @value = value
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Subsurface
4
+ # TODO: Stops, o2sensors, set_point, heartbeat, bearing, in_deco
5
+ # Stores the data in each sample
6
+ class Sample
7
+ attr_reader :time, :depth, :temp, :pressure, :ndl, :tts, :rbt, :cns
8
+ # rubocop:disable Metrics/ParameterLists
9
+ # @param [String] time
10
+ # @param [Integer] depth
11
+ # @param [Integer] temp
12
+ # @param [Integer] pressure
13
+ # @param [Integer] ndl
14
+ # @param [Integer] tts
15
+ # @param [Integer] rbt
16
+ # @param [Integer] cns
17
+ # @return [Sample]
18
+ def initialize(time, depth, temp, pressure, ndl, tts, rbt, cns)
19
+ @time = time
20
+ @depth = depth
21
+ @temp = temp
22
+ @pressure = pressure
23
+ @ndl = ndl
24
+ @tts = tts
25
+ @rbt = rbt
26
+ @cns = cns
27
+ end
28
+ # rubocop:enable Metrics/ParameterLists
29
+ end
30
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Subsurface
4
+ VERSION = '0.1.0'
5
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'subsurface/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'subsurface'
9
+ spec.version = Subsurface::VERSION
10
+ spec.authors = ['Shrikant Patnaik']
11
+ spec.email = ['shrikant.patnaik@gmail.com']
12
+
13
+ spec.summary = 'Convert SSRF to Ruby models'
14
+ spec.description = 'Easy way to use Subsurface exports in ruby'
15
+ spec.homepage = 'https://github.com/shrikantpatnaik/subsurface'
16
+ spec.license = 'MIT'
17
+
18
+ # Specify which files should be added to the gem when it is released.
19
+ # The `git ls-files -z` loads the files in the RubyGem that have been
20
+ # added into git.
21
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
22
+ `git ls-files -z`.split("\x0").reject do |f|
23
+ f.match(%r{^(test|spec|features)/})
24
+ end
25
+ end
26
+
27
+ spec.bindir = 'exe'
28
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
29
+ spec.require_paths = ['lib']
30
+
31
+ spec.add_dependency 'nokogiri', '~> 1.6', '>= 1.6.8'
32
+
33
+ spec.add_development_dependency 'bundler', '~> 1.16'
34
+ spec.add_development_dependency 'rake', '~> 10.0'
35
+ spec.add_development_dependency 'rspec', '~> 3.0'
36
+ end
metadata ADDED
@@ -0,0 +1,126 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: subsurface
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Shrikant Patnaik
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-10-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: nokogiri
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.6'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.6.8
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '1.6'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 1.6.8
33
+ - !ruby/object:Gem::Dependency
34
+ name: bundler
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '1.16'
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '1.16'
47
+ - !ruby/object:Gem::Dependency
48
+ name: rake
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '10.0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '10.0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: rspec
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '3.0'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '3.0'
75
+ description: Easy way to use Subsurface exports in ruby
76
+ email:
77
+ - shrikant.patnaik@gmail.com
78
+ executables: []
79
+ extensions: []
80
+ extra_rdoc_files: []
81
+ files:
82
+ - ".gitignore"
83
+ - ".rspec"
84
+ - ".ruby-gemset"
85
+ - ".ruby-version"
86
+ - ".travis.yml"
87
+ - CODE_OF_CONDUCT.md
88
+ - Gemfile
89
+ - Gemfile.lock
90
+ - LICENSE.txt
91
+ - README.md
92
+ - Rakefile
93
+ - bin/console
94
+ - bin/setup
95
+ - lib/subsurface.rb
96
+ - lib/subsurface/computer_data.rb
97
+ - lib/subsurface/dive.rb
98
+ - lib/subsurface/extra_data.rb
99
+ - lib/subsurface/sample.rb
100
+ - lib/subsurface/version.rb
101
+ - subsurface.gemspec
102
+ homepage: https://github.com/shrikantpatnaik/subsurface
103
+ licenses:
104
+ - MIT
105
+ metadata: {}
106
+ post_install_message:
107
+ rdoc_options: []
108
+ require_paths:
109
+ - lib
110
+ required_ruby_version: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ version: '0'
115
+ required_rubygems_version: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - ">="
118
+ - !ruby/object:Gem::Version
119
+ version: '0'
120
+ requirements: []
121
+ rubyforge_project:
122
+ rubygems_version: 2.7.7
123
+ signing_key:
124
+ specification_version: 4
125
+ summary: Convert SSRF to Ruby models
126
+ test_files: []