lts_fixes 0.1.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ceb9829c7f0f504cf4d00ece2aebd53c63d715d4
4
+ data.tar.gz: 7f60a55106b3095313aa7b09bef580b96c859fb7
5
+ SHA512:
6
+ metadata.gz: 1148008ff8943cb9d1a0442307bb2c708901f4a4a9153ef2d298b8003cdb860ee103fb5def59379386d56cac9ee1e1793682a6c7e086c0d64a1a95868a4ac139
7
+ data.tar.gz: a38a4c3d2df5f3ec74e731dab91131507cfd0374589be15d0ed4b43b1aad89005c2395d6163eddeb8df9c429d28b1b8829f0a222407c9b259f165acfc7ef1691
@@ -0,0 +1,12 @@
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 ADDED
@@ -0,0 +1,3 @@
1
+ --require spec_helper
2
+ --format documentation
3
+ --color
@@ -0,0 +1,5 @@
1
+ Changelog for lts-fixes
2
+
3
+ # Version 0.1.1 (2017-09-06)
4
+
5
+ - Add patches for Rspec 1.3.
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in lts_fixes.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2017 Tobias Kraze
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.
@@ -0,0 +1,39 @@
1
+ # lts_fixes
2
+
3
+ This is a collection of (currently exactly one) fixes to make some old rubygems compatible with Ruby 2.3+.
4
+
5
+ ## Installation
6
+
7
+ Add this line to *the top of* your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'lts_fixes'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+
18
+ ## Fixes
19
+
20
+ ### Rspec 1.3
21
+
22
+ This patches Rspec 1.3.x to
23
+ - not crash with the error `uninitialized constant Spec::Runner::Options::Config`,
24
+ - fix issues with using `subject`
25
+
26
+ To activate it, you need to
27
+ - add the following line to your `spec/spec.opts`:
28
+ ```
29
+ --require lts_fixes/rspec_1_3/runner
30
+ ```
31
+ - add the following line to your `spec_helper.rb`:
32
+ ```
33
+ require 'lts_fixes/rspec_1_3'
34
+ ```
35
+
36
+
37
+ ## Credits
38
+
39
+ Tobias Kraze, makandra GmbH
@@ -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
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "lts_fixes"
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__)
@@ -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,4 @@
1
+ require "lts_fixes/version"
2
+
3
+ module LtsFixes
4
+ end
@@ -0,0 +1,5 @@
1
+ Spec::Example::Subject::ExampleGroupMethods.module_eval do
2
+ def implicit_subject
3
+ (described_class ? proc {described_class.new} : proc {description_args.first})
4
+ end
5
+ end
@@ -0,0 +1,7 @@
1
+ module Spec
2
+ module Runner
3
+ class Options
4
+ Config = RbConfig
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,3 @@
1
+ module LtsFixes
2
+ VERSION = "0.1.1"
3
+ end
@@ -0,0 +1,26 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "lts_fixes/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "lts_fixes"
8
+ spec.version = LtsFixes::VERSION
9
+ spec.licenses = ['MIT']
10
+ spec.authors = ["Tobias Kraze"]
11
+ spec.email = ["tobias.kraze@makandra.de"]
12
+
13
+ spec.summary = %q{A collection of fixes to make some old gems Ruby 2.3+ compatible.}
14
+ spec.homepage = "https://github.com/makandra/lts_fixes"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
+ f.match(%r{^(test|spec|features)/})
18
+ end
19
+ spec.bindir = "exe"
20
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
+ spec.require_paths = ["lib"]
22
+
23
+ spec.add_development_dependency "bundler", "~> 1.15"
24
+ spec.add_development_dependency "rake", "~> 10.0"
25
+ spec.add_development_dependency "rspec", "~> 3.0"
26
+ end
metadata ADDED
@@ -0,0 +1,100 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: lts_fixes
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Tobias Kraze
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-09-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.15'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.15'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ description:
56
+ email:
57
+ - tobias.kraze@makandra.de
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - ".rspec"
64
+ - CHANGELOG.md
65
+ - Gemfile
66
+ - LICENSE
67
+ - README.md
68
+ - Rakefile
69
+ - bin/console
70
+ - bin/setup
71
+ - lib/lts_fixes.rb
72
+ - lib/lts_fixes/rspec_1_3.rb
73
+ - lib/lts_fixes/rspec_1_3/runner.rb
74
+ - lib/lts_fixes/version.rb
75
+ - lts-fixes.gemspec
76
+ homepage: https://github.com/makandra/lts_fixes
77
+ licenses:
78
+ - MIT
79
+ metadata: {}
80
+ post_install_message:
81
+ rdoc_options: []
82
+ require_paths:
83
+ - lib
84
+ required_ruby_version: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ required_rubygems_version: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ requirements: []
95
+ rubyforge_project:
96
+ rubygems_version: 2.6.13
97
+ signing_key:
98
+ specification_version: 4
99
+ summary: A collection of fixes to make some old gems Ruby 2.3+ compatible.
100
+ test_files: []