bf_multi_rss 0.3.2 → 0.3.3

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 36b02875188265164c0a57312b616f5ec59a1682
4
- data.tar.gz: b25bbe3a16fa83641f309b998cc000bf1520f655
3
+ metadata.gz: e536f09d93fe1aba09a5cdabc13073ff09adda50
4
+ data.tar.gz: 2bf087aba436f1ddd25f3493c6bcfd6e5ae66c85
5
5
  SHA512:
6
- metadata.gz: d3a81fd60f6ea506da8849a4264b05d66b83e22085e121bcff217e3b3a02a4499b08eb9e9240e6aa9c63a6dc5db9badb1ce68989c80a16077e6db8ff187d6394
7
- data.tar.gz: fd2a478521a89b13369a1d3e0f8a444c865f5a1b4d6f1f059d6aa1fc00f152345344d2b75a14685635666025193158a7979fce5b276c1a68d581a5c1ffa030f0
6
+ metadata.gz: 02427e4d4ead863633080a0157592c3c4c6bbe7045e2ecf9b6ffe0150c932f2e52e022ddf9828bb1b3d53253bf8bec245e5592fbfdd0aeb3a3e323465f977052
7
+ data.tar.gz: b72e75ca1e7e00b02d32a0c5054f11fc695102208db78c9c71c16cec03142bcd3d196c1de0ee0b41692870ae2f2a398d0fb81c9f7a060f68818fcc4c705bfbe0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bf_multi_rss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Schürmann
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-12 00:00:00.000000000 Z
11
+ date: 2017-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -81,29 +81,14 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '1.10'
83
83
  description:
84
- email:
85
- - sebs@2xs.org
84
+ email: rubycoder@example.com
86
85
  executables: []
87
86
  extensions: []
88
87
  extra_rdoc_files: []
89
88
  files:
90
- - ".gitignore"
91
- - ".rspec"
92
- - ".rubocop.yml"
93
- - ".travis.yml"
94
- - CODE_OF_CONDUCT.md
95
- - Gemfile
96
- - Guardfile
97
- - LICENSE.txt
98
- - README.md
99
- - Rakefile
100
- - bf_multi_rss.gemspec
101
- - bin/console
102
- - bin/setup
103
89
  - lib/bf_multi_rss/fetcher.rb
104
90
  - lib/bf_multi_rss/rss_error.rb
105
91
  - lib/bf_multi_rss/rss_result.rb
106
- - lib/bf_multi_rss/version.rb
107
92
  homepage: https://github.com/bundesfeeds
108
93
  licenses:
109
94
  - MIT
data/.gitignore DELETED
@@ -1,12 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
-
11
- # rspec failure tracking
12
- .rspec_status
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --format documentation
2
- --color
data/.rubocop.yml DELETED
@@ -1,86 +0,0 @@
1
- Metrics/BlockLength:
2
- Enabled: false
3
-
4
- # Disable global vars
5
- Style/SpecialGlobalVars:
6
- Enabled: false
7
-
8
- # Disable class length restriction
9
- Metrics/ClassLength:
10
- Enabled: false
11
-
12
- # Disable module length restriction
13
- Metrics/ModuleLength:
14
- Enabled: false
15
-
16
- # Disable method length restriction
17
- Metrics/MethodLength:
18
- Enabled: false
19
-
20
- # Disable checking of ABC metrics (assignment, branch, condition)
21
- Metrics/AbcSize:
22
- Enabled: false
23
-
24
- # Disable method perceived complexity (how it is hard to read a method)
25
- Metrics/PerceivedComplexity:
26
- Enabled: false
27
-
28
- # Disable cyclomatic complexity which is a number of paths through a method
29
- Metrics/CyclomaticComplexity:
30
- Enabled: false
31
-
32
- # Block nesting is 5
33
- Metrics/BlockNesting:
34
- Max: 5
35
-
36
- # Set max line length to 120
37
- Metrics/LineLength:
38
- Max: 120
39
-
40
- Style/Documentation:
41
- Enabled: false
42
-
43
- # Trailing comma helps not to forget to put it
44
- # if you want to add new value below
45
- Style/TrailingCommaInLiteral:
46
- Enabled: false
47
-
48
- # It is totally ok to use block chain by my preference
49
- # It promotes functional programming style
50
- Style/MultilineBlockChain:
51
- Enabled: false
52
-
53
- # Empty lines are enabled to simplify vim paragraph selection
54
- Style/EmptyLinesAroundBlockBody:
55
- Enabled: false
56
-
57
- Style/EmptyLinesAroundClassBody:
58
- Enabled: false
59
-
60
- Style/EmptyLinesAroundMethodBody:
61
- Enabled: false
62
-
63
- # Disable multiline method indentation, not comfortable with it
64
- Style/MultilineMethodCallIndentation:
65
- Enabled: false
66
-
67
- # extend self uses ruby inheritance instead of copying methods
68
- Style/ModuleFunction:
69
- Enabled: false
70
-
71
- Style/Lambda:
72
- Enabled: false
73
-
74
- AllCops:
75
- DisplayCopNames: true
76
- Exclude:
77
- - db/**/*
78
- - bin/**
79
- - config/**/**
80
- - spec/dummy/bin/**
81
- - spec/dummy/db/**
82
- - Guardfile
83
-
84
- Rails:
85
- Enabled: false
86
- Exclude:
data/.travis.yml DELETED
@@ -1,5 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.3.1
5
- before_install: gem install bundler -v 1.14.5
data/CODE_OF_CONDUCT.md DELETED
@@ -1,74 +0,0 @@
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 sebs@2xs.org. 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 DELETED
@@ -1,11 +0,0 @@
1
- source 'https://rubygems.org'
2
- gemspec
3
-
4
- group :development do
5
- gem 'guard'
6
- gem 'guard-rspec', require: false
7
- gem 'guard-rubocop'
8
- gem 'rspec'
9
- gem 'rubocop'
10
- gem 'webmock'
11
- end
data/Guardfile DELETED
@@ -1,75 +0,0 @@
1
- # A sample Guardfile
2
- # More info at https://github.com/guard/guard#readme
3
-
4
- ## Uncomment and set this to only include directories you want to watch
5
- # directories %w(app lib config test spec features) \
6
- # .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
7
-
8
- ## Note: if you are using the `directories` clause above and you are not
9
- ## watching the project directory ('.'), then you will want to move
10
- ## the Guardfile to a watched dir and symlink it back, e.g.
11
- #
12
- # $ mkdir config
13
- # $ mv Guardfile config/
14
- # $ ln -s config/Guardfile .
15
- #
16
- # and, you'll have to watch "config/Guardfile" instead of "Guardfile"
17
-
18
- # Note: The cmd option is now required due to the increasing number of ways
19
- # rspec may be run, below are examples of the most common uses.
20
- # * bundler: 'bundle exec rspec'
21
- # * bundler binstubs: 'bin/rspec'
22
- # * spring: 'bin/rspec' (This will use spring if running and you have
23
- # installed the spring binstubs per the docs)
24
- # * zeus: 'zeus rspec' (requires the server to be started separately)
25
- # * 'just' rspec: 'rspec'
26
-
27
- guard :rspec, cmd: "bundle exec rspec" do
28
- require "guard/rspec/dsl"
29
- dsl = Guard::RSpec::Dsl.new(self)
30
-
31
- # Feel free to open issues for suggestions and improvements
32
-
33
- # RSpec files
34
- rspec = dsl.rspec
35
- watch(rspec.spec_helper) { rspec.spec_dir }
36
- watch(rspec.spec_support) { rspec.spec_dir }
37
- watch(rspec.spec_files)
38
-
39
- # Ruby files
40
- ruby = dsl.ruby
41
- dsl.watch_spec_files_for(ruby.lib_files)
42
-
43
- # Rails files
44
- rails = dsl.rails(view_extensions: %w(erb haml slim))
45
- dsl.watch_spec_files_for(rails.app_files)
46
- dsl.watch_spec_files_for(rails.views)
47
-
48
- watch(rails.controllers) do |m|
49
- [
50
- rspec.spec.call("routing/#{m[1]}_routing"),
51
- rspec.spec.call("controllers/#{m[1]}_controller"),
52
- rspec.spec.call("acceptance/#{m[1]}")
53
- ]
54
- end
55
-
56
- # Rails config changes
57
- watch(rails.spec_helper) { rspec.spec_dir }
58
- watch(rails.routes) { "#{rspec.spec_dir}/routing" }
59
- watch(rails.app_controller) { "#{rspec.spec_dir}/controllers" }
60
-
61
- # Capybara features specs
62
- watch(rails.view_dirs) { |m| rspec.spec.call("features/#{m[1]}") }
63
- watch(rails.layouts) { |m| rspec.spec.call("features/#{m[1]}") }
64
-
65
- # Turnip features and steps
66
- watch(%r{^spec/acceptance/(.+)\.feature$})
67
- watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
68
- Dir[File.join("**/#{m[1]}.feature")][0] || "spec/acceptance"
69
- end
70
- end
71
-
72
- guard :rubocop do
73
- watch(%r{.+\.rb$})
74
- watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
75
- end
data/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2017 Sebastian Schürmann
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 DELETED
@@ -1,48 +0,0 @@
1
- # BfMultiRss
2
-
3
- Fetches multiple RSS Feeds in 'parallel' and gives you back the result
4
-
5
- ## TODO
6
-
7
- * learn ruby
8
- * Better api
9
- * checking parameters
10
- * reporting errors
11
-
12
- ## Installation
13
-
14
- Add this line to your application's Gemfile:
15
-
16
- ```ruby
17
- gem 'bf_multi_rss'
18
- ```
19
-
20
- And then execute:
21
-
22
- $ bundle
23
-
24
- Or install it yourself as:
25
-
26
- $ gem install bf_multi_rss
27
-
28
- ## Usage
29
-
30
- ```
31
- require 'bf_multi_rss'
32
- bf = BfMultiRss.new(10)
33
- bf.fetch_all['http://','http://']
34
- ``
35
- ## Development
36
-
37
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
38
-
39
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
40
-
41
- ## Contributing
42
-
43
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/bf_multi_rss. 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.
44
-
45
-
46
- ## License
47
-
48
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- require 'bundler/gem_tasks'
2
- require 'rspec/core/rake_task'
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task default: :spec
data/bf_multi_rss.gemspec DELETED
@@ -1,27 +0,0 @@
1
- lib = File.expand_path('../lib', __FILE__)
2
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
- require 'bf_multi_rss/version'
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = 'bf_multi_rss'
7
- spec.version = BfMultiRss::VERSION
8
- spec.authors = ['Sebastian Schürmann']
9
- spec.email = ['sebs@2xs.org']
10
-
11
- spec.summary = 'Parallel rss fetching'
12
- spec.homepage = 'https://github.com/bundesfeeds'
13
- spec.license = 'MIT'
14
-
15
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
16
- f.match(%r{^(test|spec|features)/})
17
- end
18
- spec.bindir = 'exe'
19
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
- spec.require_paths = ['lib']
21
-
22
- spec.add_development_dependency 'bundler', '~> 1.14'
23
- spec.add_development_dependency 'rake', '~> 10.0'
24
- spec.add_development_dependency 'rspec', '~> 3.0'
25
- spec.add_runtime_dependency 'http', '~> 2.2'
26
- spec.add_runtime_dependency 'parallel', '~> 1.10'
27
- end
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "bf_multi_rss"
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 DELETED
@@ -1,8 +0,0 @@
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
@@ -1,3 +0,0 @@
1
- module BfMultiRss
2
- VERSION = '0.3.2'.freeze
3
- end