Skip to content

Commit d39c96b

Browse files
authored
🔀 Merge pull request #3 from pboling/bug/70-rspec-autotest
âž• Switch from autotest to guard-rspec
2 parents 24daab3 + 57d4964 commit d39c96b

9 files changed

Lines changed: 74 additions & 64 deletions

File tree

‎.autotest‎

Lines changed: 0 additions & 14 deletions
This file was deleted.

‎.document‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎Gemfile.lock‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,41 @@ PATH
66
GEM
77
remote: http://rubygems.org/
88
specs:
9+
coderay (1.1.3)
910
diff-lcs (1.5.0)
11+
ffi (1.15.5)
12+
formatador (1.1.0)
13+
guard (2.18.0)
14+
formatador (>= 0.2.4)
15+
listen (>= 2.7, < 4.0)
16+
lumberjack (>= 1.0.12, < 2.0)
17+
nenv (~> 0.1)
18+
notiffany (~> 0.0)
19+
pry (>= 0.13.0)
20+
shellany (~> 0.0)
21+
thor (>= 0.18.1)
22+
guard-compat (1.2.1)
23+
guard-rspec (4.7.3)
24+
guard (~> 2.1)
25+
guard-compat (~> 1.1)
26+
rspec (>= 2.99.0, < 4.0)
27+
listen (3.7.1)
28+
rb-fsevent (~> 0.10, >= 0.10.3)
29+
rb-inotify (~> 0.9, >= 0.9.10)
30+
lumberjack (1.2.8)
31+
method_source (1.0.0)
32+
nenv (0.3.0)
33+
notiffany (0.1.3)
34+
nenv (~> 0.1)
35+
shellany (~> 0.0)
1036
power_assert (2.0.2)
37+
pry (0.14.1)
38+
coderay (~> 1.1)
39+
method_source (~> 1.0)
1140
rake (10.5.0)
41+
rb-fsevent (0.11.2)
42+
rb-inotify (0.10.1)
43+
ffi (~> 1.0)
1244
rspec (3.12.0)
1345
rspec-core (~> 3.12.0)
1446
rspec-expectations (~> 3.12.0)
@@ -22,13 +54,16 @@ GEM
2254
diff-lcs (>= 1.2.0, < 2.0)
2355
rspec-support (~> 3.12.0)
2456
rspec-support (3.12.0)
57+
shellany (0.0.1)
2558
test-unit (3.5.5)
2659
power_assert
60+
thor (1.2.1)
2761

2862
PLATFORMS
2963
x86_64-darwin-19
3064

3165
DEPENDENCIES
66+
guard-rspec (~> 4.7)
3267
os!
3368
rake (~> 10.5)
3469
rspec (~> 3.12)

‎Guardfile‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# More info at https://github.com/guard/guard#readme
2+
3+
guard :rspec, cmd: "bundle exec rspec" do
4+
require "guard/rspec/dsl"
5+
dsl = Guard::RSpec::Dsl.new(self)
6+
7+
# Feel free to open issues for suggestions and improvements
8+
9+
# RSpec files
10+
rspec = dsl.rspec
11+
watch(rspec.spec_helper) { rspec.spec_dir }
12+
watch(rspec.spec_support) { "#{rspec.spec_dir}/config" }
13+
watch(rspec.spec_files)
14+
15+
# Ruby files
16+
ruby = dsl.ruby
17+
dsl.watch_spec_files_for(ruby.lib_files)
18+
end

‎README.md‎

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
The OS gem allows for some easy telling if you're on windows or not.
22

3+
## Install
4+
5+
```shell
6+
bundle add os
7+
```
8+
9+
## Usage
10+
311
```ruby
412
require 'os'
513

@@ -80,7 +88,7 @@ If there are any other features you'd like, let me know, I'll do what I can to a
8088

8189
http://github.com/rdp/os for feedback et al
8290

83-
Related projects:
91+
## Alternatives
8492

8593
rubygems:
8694

@@ -104,4 +112,15 @@ the ["platform" gem](http://rubydoc.info/github/ffi/ffi/master/FFI/Platform), it
104112
FFI::Platform::OS
105113
```
106114

115+
## Contributing
116+
117+
Develop locally:
118+
119+
```shell
120+
bundle install
121+
bundle exec guard
122+
```
123+
124+
## License
125+
107126
License: MIT (see LICENSE file)

‎Rakefile‎

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,5 @@
11
require 'rubygems' if RUBY_VERSION < '1.9.0'
22

3-
# HOW TO DEPLOY
4-
# bump VERSION file manually
5-
# rake release
6-
# Don't forget to run rake gemspec with each release! ... I think...or rake release might be same thing
7-
# then manually edit os.gemspec remove duplicatee rspecs, circular dependency on os? HUH?
8-
# # then gem build os.gemspec
9-
# rake build doesn't work???
10-
# sooo...
11-
# ...gem push os-1.1.2.gem
12-
13-
begin
14-
require 'jeweler'
15-
Jeweler::Tasks.new do |gem|
16-
gem.name = "os"
17-
gem.summary = %Q{Simple and easy way to know if you're on windows or not (reliably), as well as how many bits the OS is, etc.}
18-
gem.description = %Q{The OS gem allows for some useful and easy functions, like OS.windows? (=> true or false) OS.bits ( => 32 or 64) etc"}
19-
gem.email = "rogerpack2005@gmail.com"
20-
gem.homepage = "https://github.com/rdp/os"
21-
gem.authors = ["rdp", "David McCullars"]
22-
gem.license = "MIT"
23-
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
24-
# gem.add_development_dependency "fast_require"
25-
# gem.add_development_dependency "rspec", ">= 2.0"
26-
end
27-
rescue LoadError => e
28-
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler #{e}"
29-
end
30-
313
require 'rspec/core/rake_task'
324
RSpec::Core::RakeTask.new(:spec)
335
task :default => :spec

‎VERSION‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎autotest/discover.rb‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎os.gemspec‎

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,14 @@ Gem::Specification.new do |s|
1414
s.date = "2021-11-07"
1515
s.description = "The OS gem allows for some useful and easy functions, like OS.windows? (=> true or false) OS.bits ( => 32 or 64) etc\"".freeze
1616
s.email = "rogerpack2005@gmail.com".freeze
17-
s.extra_rdoc_files = [
18-
"ChangeLog",
19-
"LICENSE",
20-
"README.md"
21-
]
2217
s.files = [
23-
".autotest",
24-
".document",
2518
"ChangeLog",
2619
"Gemfile",
27-
"Gemfile.lock",
2820
"LICENSE",
2921
"README.md",
3022
"Rakefile",
31-
"VERSION",
32-
"autotest/discover.rb",
3323
"lib/os.rb",
3424
"os.gemspec",
35-
"spec/linux_spec.rb",
36-
"spec/os_spec.rb",
37-
"spec/osx_spec.rb",
38-
"spec/spec_helper.rb"
3925
]
4026
s.homepage = "https://github.com/rdp/os".freeze
4127
s.licenses = ["MIT".freeze]
@@ -45,4 +31,5 @@ Gem::Specification.new do |s|
4531
s.add_development_dependency(%q<rake>.freeze, ["~> 10.5"])
4632
s.add_development_dependency(%q<test-unit>.freeze, ["~> 3.5"])
4733
s.add_development_dependency(%q<rspec>.freeze, ["~> 3.12"])
34+
s.add_development_dependency(%q<guard-rspec>.freeze, ["~> 4.7"])
4835
end

0 commit comments

Comments
 (0)