peak_flow_utils 0.0.0 → 0.0.1

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: ea418495b5cc8d0346fcd544e923abcd3cb3784a
4
- data.tar.gz: c5868fb678b6f32c96b7ddbb6709ddc1f20dea8b
3
+ metadata.gz: 2717441d565b367b1449347e1d910ef7b970e5e1
4
+ data.tar.gz: 77e3e9b897ff94d066d2fbe8ac9add5575936d28
5
5
  SHA512:
6
- metadata.gz: 165a3f792d3fac258ba3e1859e768d750de7a41f0e2262de9b1f6bdfa7b74d8b21d3a79f544a04d4609128c452caf3d9df288e63fe84e02b83f741d4ee5ea141
7
- data.tar.gz: 47d5a2875d4f182496d1c77e157060b242fce1f7922a40ca28cbe638a68804e31b04b1e04e467784bdb4733a00e038a05cbc616669746ee62f321433fc694979
6
+ metadata.gz: 89c6b42adc519119dbc83b9d2c5d766b9e768e30ad553ff0cdd882ff37f039911fdf0017be8a1e4993d99462fcf3fe3d57fada0e1792ed7365569f7411a05082
7
+ data.tar.gz: f71a689bd0372ee257cdd4f6ba6d6004ea5214469c3b544127458872a9cfa52bc034bffea37143705b8ce8511ee6f476fe74a2217098b17e3185e0540a79754d
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.0
1
+ 0.0.1
@@ -2,11 +2,18 @@
2
2
 
3
3
  # This task detects and prints out the RSpec files for the current build group
4
4
 
5
- require "peak_flow_utils"
5
+ require "#{File.dirname(__FILE__)}/../lib/peak_flow_utils"
6
+
7
+ args = {}
8
+ ARGV.each do |arg|
9
+ if (match = arg.match(/\A--(.+?)=(.+)\Z/))
10
+ args[match[1]] = match[2]
11
+ end
12
+ end
6
13
 
7
14
  rspec_helper = PeakFlowUtils::RspecHelper.new(
8
- groups: args[:groups].to_i,
9
- group_number: args[:group_number].to_i
15
+ groups: args.fetch("groups").to_i,
16
+ group_number: args.fetch("group-number").to_i
10
17
  )
11
18
 
12
19
  print rspec_helper.group_files.join(" ")
@@ -31,7 +31,8 @@ class PeakFlowUtils::RspecHelper
31
31
  private
32
32
 
33
33
  def dry_result
34
- @dry_result ||= JSON.parse(`bundle exec rspec --dry-run --format json`)
34
+ require "json"
35
+ @dry_result ||= ::JSON.parse(`bundle exec rspec --dry-run --format json`)
35
36
  end
36
37
 
37
38
  def files
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: peak_flow_utils 0.0.0 ruby lib
5
+ # stub: peak_flow_utils 0.0.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "peak_flow_utils"
9
- s.version = "0.0.0"
9
+ s.version = "0.0.1"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
data/spec/spec_helper.rb CHANGED
@@ -1,19 +1,3 @@
1
- require "simplecov"
2
-
3
- module SimpleCov::Configuration
4
- def clean_filters
5
- @filters = []
6
- end
7
- end
8
-
9
- SimpleCov.configure do
10
- clean_filters
11
- load_adapter "test_frameworks"
12
- end
13
-
14
- ENV["COVERAGE"] && SimpleCov.start do
15
- add_filter "/.rvm/"
16
- end
17
1
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
18
2
  $LOAD_PATH.unshift(File.dirname(__FILE__))
19
3
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peak_flow_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - kaspernj