stream_lines 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: f0c2fd50863a37c75523351cac80ccecf777bd54a06c72544558ffa825b63531
4
+ data.tar.gz: cda429e3f9e80828196874ea92834043e4bc4d87835aa16b8464a4b10061af4d
5
+ SHA512:
6
+ metadata.gz: 1176bdabbc7a563b23fcbe14cd7edee5ab1070c7e3b8949eea51ec087c04504acb58ffecff33387a0e00f67ee83df449aa84a90debf2629dd829e76fcf3112e3
7
+ data.tar.gz: d98cbf64f7fd4ccd10f7f2ba183f5316a9e704dd8572ba5c79d21653e6045a304d5f229d86cf437b38db9ef1c31e7ab390d0eb3befcba8e06af7a615c8a854cd
@@ -0,0 +1,13 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ *.swp
10
+ .byebug_history
11
+
12
+ # rspec failure tracking
13
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,14 @@
1
+ AllCops:
2
+ Exclude:
3
+ - '*.gemspec'
4
+ - 'vendor/bundle/**/*'
5
+
6
+ Metrics/BlockLength:
7
+ Exclude:
8
+ - 'spec/**/*.rb'
9
+
10
+ Metrics/LineLength:
11
+ Max: 99
12
+
13
+ Style/Documentation:
14
+ Enabled: false
@@ -0,0 +1 @@
1
+ stream_lines
@@ -0,0 +1 @@
1
+ ruby-2.6.4
@@ -0,0 +1,14 @@
1
+ ---
2
+ language: ruby
3
+ cache: bundler
4
+ rvm:
5
+ - 2.6.0
6
+ - 2.5.0
7
+ before_install: gem install bundler -v 2.0.2
8
+ script:
9
+ - bundle exec bundle-audit check --update
10
+ - bundle exec rubocop
11
+ - bundle exec rspec
12
+ branches:
13
+ only:
14
+ - master
@@ -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 joel.lubrano@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,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ gemspec
@@ -0,0 +1,117 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ stream_lines (0.1.0)
5
+ httparty (~> 0.14)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ addressable (2.7.0)
11
+ public_suffix (>= 2.0.2, < 5.0)
12
+ ast (2.4.0)
13
+ awesome_print (1.8.0)
14
+ backports (3.15.0)
15
+ bundler-audit (0.6.1)
16
+ bundler (>= 1.2.0, < 3)
17
+ thor (~> 0.18)
18
+ bundler-gem_version_tasks (0.2.1)
19
+ byebug (11.0.1)
20
+ crack (0.4.3)
21
+ safe_yaml (~> 1.0.0)
22
+ diff-lcs (1.3)
23
+ docile (1.3.2)
24
+ ffi (1.11.3)
25
+ get_process_mem (0.2.5)
26
+ ffi (~> 1.0)
27
+ hashdiff (1.0.0)
28
+ httparty (0.17.1)
29
+ mime-types (~> 3.0)
30
+ multi_xml (>= 0.5.2)
31
+ jaro_winkler (1.5.4)
32
+ json (2.2.0)
33
+ memory_profiler (0.9.14)
34
+ mime-types (3.3)
35
+ mime-types-data (~> 3.2015)
36
+ mime-types-data (3.2019.1009)
37
+ multi_json (1.14.1)
38
+ multi_xml (0.6.0)
39
+ mustermann (1.0.3)
40
+ parallel (1.19.1)
41
+ parser (2.6.5.0)
42
+ ast (~> 2.4.0)
43
+ public_suffix (4.0.1)
44
+ rack (2.0.7)
45
+ rack-protection (2.0.7)
46
+ rack
47
+ rainbow (3.0.0)
48
+ rake (13.0.1)
49
+ rspec (3.9.0)
50
+ rspec-core (~> 3.9.0)
51
+ rspec-expectations (~> 3.9.0)
52
+ rspec-mocks (~> 3.9.0)
53
+ rspec-core (3.9.0)
54
+ rspec-support (~> 3.9.0)
55
+ rspec-expectations (3.9.0)
56
+ diff-lcs (>= 1.2.0, < 2.0)
57
+ rspec-support (~> 3.9.0)
58
+ rspec-mocks (3.9.0)
59
+ diff-lcs (>= 1.2.0, < 2.0)
60
+ rspec-support (~> 3.9.0)
61
+ rspec-support (3.9.0)
62
+ rubocop (0.77.0)
63
+ jaro_winkler (~> 1.5.1)
64
+ parallel (~> 1.10)
65
+ parser (>= 2.6)
66
+ rainbow (>= 2.2.2, < 4.0)
67
+ ruby-progressbar (~> 1.7)
68
+ unicode-display_width (>= 1.4.0, < 1.7)
69
+ ruby-progressbar (1.10.1)
70
+ safe_yaml (1.0.5)
71
+ simplecov (0.17.1)
72
+ docile (~> 1.1)
73
+ json (>= 1.8, < 3)
74
+ simplecov-html (~> 0.10.0)
75
+ simplecov-html (0.10.2)
76
+ sinatra (2.0.7)
77
+ mustermann (~> 1.0)
78
+ rack (~> 2.0)
79
+ rack-protection (= 2.0.7)
80
+ tilt (~> 2.0)
81
+ sinatra-contrib (2.0.7)
82
+ backports (>= 2.8.2)
83
+ multi_json
84
+ mustermann (~> 1.0)
85
+ rack-protection (= 2.0.7)
86
+ sinatra (= 2.0.7)
87
+ tilt (~> 2.0)
88
+ thor (0.20.3)
89
+ tilt (2.0.10)
90
+ unicode-display_width (1.6.0)
91
+ webmock (3.7.6)
92
+ addressable (>= 2.3.6)
93
+ crack (>= 0.3.2)
94
+ hashdiff (>= 0.4.0, < 2.0.0)
95
+
96
+ PLATFORMS
97
+ ruby
98
+
99
+ DEPENDENCIES
100
+ awesome_print (~> 1.8)
101
+ bundler (~> 2.0)
102
+ bundler-audit
103
+ bundler-gem_version_tasks
104
+ byebug
105
+ get_process_mem
106
+ memory_profiler
107
+ rake (~> 13.0)
108
+ rspec (~> 3.0)
109
+ rubocop (~> 0.77.0)
110
+ simplecov (~> 0.17)
111
+ sinatra (~> 2.0)
112
+ sinatra-contrib (~> 2.0)
113
+ stream_lines!
114
+ webmock (~> 3.0)
115
+
116
+ BUNDLED WITH
117
+ 2.0.2
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Joel Lubrano
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.
@@ -0,0 +1,82 @@
1
+ # StreamLines
2
+
3
+ An API for streaming files from remote locations one line at a time.
4
+
5
+ ## Background
6
+
7
+ Some applications run in production environments without writable file system;
8
+ usually this is a security measure. Futhermore, with the proliferation of
9
+ container-based production environments, containers may not have access to
10
+ tremendous amounts of memory. Thus, it can be impossible to read large files
11
+ unless you read the file into memory in small doses. A common pattern is to
12
+ use a line-delimited file like [JSON Lines](http://jsonlines.org) or a CSV
13
+ and to read the file one line at a time in order to iterate over a dataset.
14
+
15
+ ## Installation
16
+
17
+ Add this line to your application's Gemfile:
18
+
19
+ ```ruby
20
+ gem 'stream_lines'
21
+ ```
22
+
23
+ And then execute:
24
+
25
+ $ bundle
26
+
27
+ Or install it yourself as:
28
+
29
+ $ gem install stream_lines
30
+
31
+ ## Usage
32
+
33
+ ### Reading
34
+
35
+ #### From a URL
36
+
37
+ ```ruby
38
+ url = 'https://my.remote.file/file.txt'
39
+ stream = StreamLines::Reading::Stream.new(url)
40
+
41
+ stream.each do |line|
42
+ # Do something with the line of data
43
+ end
44
+
45
+ # A StreamLines::Reading::Stream object is Enumerable, so you can also use
46
+ # any Enumerable methods.
47
+
48
+ stream.each_slice(100) do |lines|
49
+ # Do something with the 100 lines of data
50
+ end
51
+ ```
52
+
53
+ ## Development
54
+
55
+ After checking out the repo, run `bin/setup` to install dependencies.
56
+ Then, run `rake spec` to run the tests. You can also run `bin/console` for an
57
+ interactive prompt that will allow you to experiment.
58
+
59
+ To install this gem onto your local machine, run `bundle exec rake install`.
60
+
61
+ ## Releasing
62
+
63
+ After merging in the new functionality to the master branch:
64
+
65
+ ```
66
+ git checkout master
67
+ git pull --prune
68
+ bundle exec rake version:bump:<major, minor, or patch>
69
+ bundle exec rake release
70
+ ```
71
+
72
+ ## Contributing
73
+
74
+ Bug reports and pull requests are welcome on GitHub at
75
+ https://github.com/jdlubrano/stream_lines. This project is intended to be a
76
+ safe, welcoming space for collaboration, and contributors are expected to
77
+ adhere to the [code of conduct](https://github.com/jdlubrano/stream_lines/blob/master/CODE_OF_CONDUCT.md).
78
+
79
+ ## License
80
+
81
+ The gem is available as open source under the terms of the
82
+ [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'bundler/gem_version_tasks'
5
+ require 'rspec/core/rake_task'
6
+
7
+ RSpec::Core::RakeTask.new(:spec)
8
+
9
+ task default: :spec
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # frozen_string_literal: true
4
+
5
+ require 'bundler/setup'
6
+ require 'stream_lines'
7
+
8
+ # You can add fixtures and/or initialization code here to make experimenting
9
+ # with your gem easier. You can also use a different console, if you like.
10
+
11
+ # (If you use this, don't forget to add pry to your Gemfile!)
12
+ # require "pry"
13
+ # Pry.start
14
+
15
+ require 'irb'
16
+ IRB.start(__FILE__)
@@ -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
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'stream_lines/error'
4
+ require 'stream_lines/version'
5
+ require 'stream_lines/reading/stream'
6
+
7
+ module StreamLines
8
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module StreamLines
4
+ class Error < RuntimeError; end
5
+ end
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ module StreamLines
4
+ module Reading
5
+ end
6
+ end
@@ -0,0 +1,54 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'httparty'
4
+
5
+ require 'stream_lines/error'
6
+
7
+ module StreamLines
8
+ module Reading
9
+ class Stream
10
+ include Enumerable
11
+ include HTTParty
12
+
13
+ raise_on 400..599
14
+
15
+ def initialize(url)
16
+ @url = url
17
+ @buffer = StringIO.new
18
+ end
19
+
20
+ def each(&block)
21
+ stream_lines(&block)
22
+ rescue HTTParty::Error => e
23
+ raise Error, "Failed to download #{url} with code: #{e.response.code}"
24
+ end
25
+
26
+ private
27
+
28
+ attr_reader :url
29
+
30
+ def stream_lines(&block)
31
+ self.class.get(url, stream_body: true) do |chunk|
32
+ lines = extract_lines(chunk)
33
+ lines.each { |line| block.call(line) }
34
+ end
35
+
36
+ @buffer.rewind
37
+ block.call(@buffer.read) if @buffer.size.positive?
38
+ end
39
+
40
+ def extract_lines(chunk)
41
+ lines = chunk.split($INPUT_RECORD_SEPARATOR, -1)
42
+
43
+ if lines.length > 1
44
+ @buffer.rewind
45
+ lines.first.prepend(@buffer.read)
46
+ @buffer.truncate(0)
47
+ end
48
+
49
+ @buffer << lines.pop
50
+ lines
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module StreamLines
4
+ VERSION = '0.1.0'
5
+ end
@@ -0,0 +1,45 @@
1
+ lib = File.expand_path("lib", __dir__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require "stream_lines/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "stream_lines"
7
+ spec.version = StreamLines::VERSION
8
+ spec.authors = ["Joel Lubrano"]
9
+ spec.email = ["joel.lubrano@gmail.com"]
10
+
11
+ spec.summary = 'A utility to stream lines of a file over HTTP'
12
+ spec.homepage = 'https://github.com/jdlubrano/stream_lines'
13
+ spec.license = 'MIT'
14
+
15
+ spec.metadata["homepage_uri"] = spec.homepage
16
+ spec.metadata["source_code_uri"] = 'https://github.com/jdlubrano/stream_lines'
17
+ spec.metadata["changelog_uri"] = 'https://github.com/jdlubrano/stream_lines/releases'
18
+
19
+ # Specify which files should be added to the gem when it is released.
20
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
21
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
22
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
23
+ end
24
+
25
+ spec.bindir = 'bin'
26
+ spec.executables = []
27
+ spec.require_paths = ["lib"]
28
+
29
+ spec.add_runtime_dependency 'httparty', '~> 0.14'
30
+
31
+ spec.add_development_dependency 'awesome_print', '~> 1.8'
32
+ spec.add_development_dependency 'bundler', '~> 2.0'
33
+ spec.add_development_dependency 'bundler-audit'
34
+ spec.add_development_dependency 'bundler-gem_version_tasks'
35
+ spec.add_development_dependency 'byebug'
36
+ spec.add_development_dependency 'get_process_mem'
37
+ spec.add_development_dependency 'memory_profiler'
38
+ spec.add_development_dependency 'rake', '~> 13.0'
39
+ spec.add_development_dependency 'rspec', '~> 3.0'
40
+ spec.add_development_dependency 'rubocop', '~> 0.77.0'
41
+ spec.add_development_dependency 'simplecov', '~> 0.17'
42
+ spec.add_development_dependency 'sinatra', '~> 2.0'
43
+ spec.add_development_dependency 'sinatra-contrib', '~> 2.0'
44
+ spec.add_development_dependency 'webmock', '~> 3.0'
45
+ end
metadata ADDED
@@ -0,0 +1,276 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: stream_lines
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Joel Lubrano
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-11-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: httparty
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.14'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.14'
27
+ - !ruby/object:Gem::Dependency
28
+ name: awesome_print
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.8'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.8'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler-audit
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: bundler-gem_version_tasks
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: byebug
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: get_process_mem
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: memory_profiler
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rake
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '13.0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '13.0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rspec
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '3.0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '3.0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rubocop
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: 0.77.0
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: 0.77.0
167
+ - !ruby/object:Gem::Dependency
168
+ name: simplecov
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '0.17'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: '0.17'
181
+ - !ruby/object:Gem::Dependency
182
+ name: sinatra
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '2.0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '2.0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: sinatra-contrib
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: '2.0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: '2.0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: webmock
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - "~>"
214
+ - !ruby/object:Gem::Version
215
+ version: '3.0'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - "~>"
221
+ - !ruby/object:Gem::Version
222
+ version: '3.0'
223
+ description:
224
+ email:
225
+ - joel.lubrano@gmail.com
226
+ executables: []
227
+ extensions: []
228
+ extra_rdoc_files: []
229
+ files:
230
+ - ".gitignore"
231
+ - ".rspec"
232
+ - ".rubocop.yml"
233
+ - ".ruby-gemset"
234
+ - ".ruby-version"
235
+ - ".travis.yml"
236
+ - CODE_OF_CONDUCT.md
237
+ - Gemfile
238
+ - Gemfile.lock
239
+ - LICENSE.txt
240
+ - README.md
241
+ - Rakefile
242
+ - bin/console
243
+ - bin/setup
244
+ - lib/stream_lines.rb
245
+ - lib/stream_lines/error.rb
246
+ - lib/stream_lines/reading.rb
247
+ - lib/stream_lines/reading/stream.rb
248
+ - lib/stream_lines/version.rb
249
+ - stream_lines.gemspec
250
+ homepage: https://github.com/jdlubrano/stream_lines
251
+ licenses:
252
+ - MIT
253
+ metadata:
254
+ homepage_uri: https://github.com/jdlubrano/stream_lines
255
+ source_code_uri: https://github.com/jdlubrano/stream_lines
256
+ changelog_uri: https://github.com/jdlubrano/stream_lines/releases
257
+ post_install_message:
258
+ rdoc_options: []
259
+ require_paths:
260
+ - lib
261
+ required_ruby_version: !ruby/object:Gem::Requirement
262
+ requirements:
263
+ - - ">="
264
+ - !ruby/object:Gem::Version
265
+ version: '0'
266
+ required_rubygems_version: !ruby/object:Gem::Requirement
267
+ requirements:
268
+ - - ">="
269
+ - !ruby/object:Gem::Version
270
+ version: '0'
271
+ requirements: []
272
+ rubygems_version: 3.0.3
273
+ signing_key:
274
+ specification_version: 4
275
+ summary: A utility to stream lines of a file over HTTP
276
+ test_files: []