tty-platform 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +14 -0
- data/README.md +19 -9
- data/Rakefile +1 -0
- data/lib/tty-platform.rb +1 -4
- data/lib/tty/platform.rb +4 -2
- data/lib/tty/platform/version.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- data/spec/unit/new_spec.rb +1 -1
- data/spec/unit/platform_spec.rb +1 -1
- data/spec/unit/to_s_spec.rb +2 -2
- data/tty-platform.gemspec +8 -3
- metadata +38 -15
- data/.gitignore +0 -14
- data/.rspec +0 -2
- data/.ruby-version +0 -1
- data/.travis.yml +0 -24
- data/Gemfile +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 196f25ef722267ed1b9c152af8d10624cba1141aa1f5f258ef0373fc922e6c2b
|
4
|
+
data.tar.gz: 85aba10b4d39a14cb3d8cf019a99427d2508e5c8d0bcd74506c2cf6689aa2a39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12560309de595c8bc7a720a50a841e4cd3b893897b25437fc3a34bb017e4c841b506f9fb12761544dc159e80ea9827470451a43458966352e50bfe269300b957
|
7
|
+
data.tar.gz: 22b15f1e31d142ce52f6abd650af07404dfc1ad29b73982b44dea1c9e1d85cb7ccc46db1fadc1ce5e82f5d0ef590471ebf8a304bb541e2e2f1afb861f9325a92
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# Change log
|
2
|
+
|
3
|
+
## [v0.2.0] - 2018-12-02
|
4
|
+
|
5
|
+
### Changed
|
6
|
+
* Change to Ruby >= 2.0
|
7
|
+
|
8
|
+
|
9
|
+
## [v0.1.0] - 2015-05-16
|
10
|
+
|
11
|
+
* Initial implementation and release
|
12
|
+
|
13
|
+
[v0.2.0]: https://github.com/piotrmurach/tty-platform/compare/v0.1.0...v0.2.0
|
14
|
+
[v0.1.0]: https://github.com/piotrmurach/tty-platform/compare/v0.1.0
|
data/README.md
CHANGED
@@ -1,17 +1,27 @@
|
|
1
|
-
|
1
|
+
<div align="center">
|
2
|
+
<a href="https://piotrmurach.github.io/tty" target="_blank"><img width="130" src="https://cdn.rawgit.com/piotrmurach/tty/master/images/tty.png" alt="tty logo" /></a>
|
3
|
+
</div>
|
4
|
+
|
5
|
+
# TTY::Platform [![Gitter](https://badges.gitter.im/Join%20Chat.svg)][gitter]
|
6
|
+
|
2
7
|
[![Gem Version](https://badge.fury.io/rb/tty-platform.svg)][gem]
|
3
|
-
[![Build Status](https://secure.travis-ci.org/
|
4
|
-
[![
|
5
|
-
[![
|
8
|
+
[![Build Status](https://secure.travis-ci.org/piotrmurach/tty-platform.svg?branch=master)][travis]
|
9
|
+
[![Build status](https://ci.appveyor.com/api/projects/status/f0oeux03trg78uui?svg=true)][appveyor]
|
10
|
+
[![Code Climate](https://codeclimate.com/github/piotrmurach/tty-platform/badges/gpa.svg)][codeclimate]
|
11
|
+
[![Coverage Status](https://coveralls.io/repos/github/piotrmurach/tty-platform/badge.svg)][coverage]
|
12
|
+
[![Inline docs](http://inch-ci.org/github/piotrmurach/tty-platform.svg?branch=master)][inchpages]
|
6
13
|
|
14
|
+
[gitter]: https://gitter.im/piotrmurach/tty
|
7
15
|
[gem]: http://badge.fury.io/rb/tty-platform
|
8
|
-
[travis]: http://travis-ci.org/
|
9
|
-
[
|
10
|
-
[
|
16
|
+
[travis]: http://travis-ci.org/piotrmurach/tty-platform
|
17
|
+
[appveyor]: https://ci.appveyor.com/project/piotrmurach/tty-platform
|
18
|
+
[codeclimate]: https://codeclimate.com/github/piotrmurach/tty-platform
|
19
|
+
[coverage]: https://coveralls.io/github/piotrmurach/tty-platform
|
20
|
+
[inchpages]: http://inch-ci.org/github/piotrmurach/tty-platform
|
11
21
|
|
12
22
|
> Terminal platform query methods for detecting different operating systems.
|
13
23
|
|
14
|
-
**TTY::Platform** provides independent operating system detection component for [TTY](https://github.com/
|
24
|
+
**TTY::Platform** provides independent operating system detection component for [TTY](https://github.com/piotrmurach/tty) toolkit.
|
15
25
|
|
16
26
|
## Installation
|
17
27
|
|
@@ -72,7 +82,7 @@ platform.mac? # => true
|
|
72
82
|
|
73
83
|
## Contributing
|
74
84
|
|
75
|
-
1. Fork it ( https://github.com/
|
85
|
+
1. Fork it ( https://github.com/piotrmurach/tty-platform/fork )
|
76
86
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
77
87
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
78
88
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/Rakefile
CHANGED
data/lib/tty-platform.rb
CHANGED
data/lib/tty/platform.rb
CHANGED
data/lib/tty/platform/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
data/spec/unit/new_spec.rb
CHANGED
data/spec/unit/platform_spec.rb
CHANGED
data/spec/unit/to_s_spec.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
#
|
1
|
+
# frozen_string_literal: true
|
2
2
|
|
3
|
-
RSpec.describe TTY::Platform, '
|
3
|
+
RSpec.describe TTY::Platform, '#to_s' do
|
4
4
|
it "display platform information" do
|
5
5
|
allow(RbConfig::CONFIG).to receive(:[]).with('arch').and_return('i686-darwin8.10.1')
|
6
6
|
platform = TTY::Platform.new
|
data/tty-platform.gemspec
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# coding: utf-8
|
2
1
|
lib = File.expand_path('../lib', __FILE__)
|
3
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
3
|
require 'tty/platform/version'
|
@@ -10,13 +9,19 @@ Gem::Specification.new do |spec|
|
|
10
9
|
spec.email = [""]
|
11
10
|
spec.summary = %q{Query methods for detecting different operating systems.}
|
12
11
|
spec.description = %q{Query methods for detecting different operating systems.}
|
13
|
-
spec.homepage = ""
|
12
|
+
spec.homepage = "https://github.com/piotrmurach/tty-platform"
|
14
13
|
spec.license = "MIT"
|
15
14
|
|
16
|
-
spec.files =
|
15
|
+
spec.files = Dir['{lib,spec}/**/*.rb']
|
16
|
+
spec.files += Dir['{bin,tasks}/*', 'tty-platform.gemspec']
|
17
|
+
spec.files += Dir['README.md', 'CHANGELOG.md', 'LICENSE.txt', 'Rakefile']
|
17
18
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
20
|
spec.require_paths = ["lib"]
|
20
21
|
|
22
|
+
spec.required_ruby_version = '>= 2.0.0'
|
23
|
+
|
21
24
|
spec.add_development_dependency "bundler", "~> 1.6"
|
25
|
+
spec.add_development_dependency 'rspec', '~> 3.1'
|
26
|
+
spec.add_development_dependency 'rake'
|
22
27
|
end
|
metadata
CHANGED
@@ -1,29 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tty-platform
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Murach
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.6'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.1'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.1'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
27
55
|
description: Query methods for detecting different operating systems.
|
28
56
|
email:
|
29
57
|
- ''
|
@@ -31,11 +59,7 @@ executables: []
|
|
31
59
|
extensions: []
|
32
60
|
extra_rdoc_files: []
|
33
61
|
files:
|
34
|
-
- .
|
35
|
-
- .rspec
|
36
|
-
- .ruby-version
|
37
|
-
- .travis.yml
|
38
|
-
- Gemfile
|
62
|
+
- CHANGELOG.md
|
39
63
|
- LICENSE.txt
|
40
64
|
- README.md
|
41
65
|
- Rakefile
|
@@ -50,7 +74,7 @@ files:
|
|
50
74
|
- tasks/coverage.rake
|
51
75
|
- tasks/spec.rake
|
52
76
|
- tty-platform.gemspec
|
53
|
-
homepage:
|
77
|
+
homepage: https://github.com/piotrmurach/tty-platform
|
54
78
|
licenses:
|
55
79
|
- MIT
|
56
80
|
metadata: {}
|
@@ -60,17 +84,17 @@ require_paths:
|
|
60
84
|
- lib
|
61
85
|
required_ruby_version: !ruby/object:Gem::Requirement
|
62
86
|
requirements:
|
63
|
-
- -
|
87
|
+
- - ">="
|
64
88
|
- !ruby/object:Gem::Version
|
65
|
-
version:
|
89
|
+
version: 2.0.0
|
66
90
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
91
|
requirements:
|
68
|
-
- -
|
92
|
+
- - ">="
|
69
93
|
- !ruby/object:Gem::Version
|
70
94
|
version: '0'
|
71
95
|
requirements: []
|
72
96
|
rubyforge_project:
|
73
|
-
rubygems_version: 2.
|
97
|
+
rubygems_version: 2.7.3
|
74
98
|
signing_key:
|
75
99
|
specification_version: 4
|
76
100
|
summary: Query methods for detecting different operating systems.
|
@@ -79,4 +103,3 @@ test_files:
|
|
79
103
|
- spec/unit/new_spec.rb
|
80
104
|
- spec/unit/platform_spec.rb
|
81
105
|
- spec/unit/to_s_spec.rb
|
82
|
-
has_rdoc:
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.0.0
|
data/.travis.yml
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
bundler_args: --without yard benchmarks
|
3
|
-
script: "bundle exec rake ci"
|
4
|
-
rvm:
|
5
|
-
- 1.9.3
|
6
|
-
- 2.0
|
7
|
-
- 2.1
|
8
|
-
- 2.2
|
9
|
-
- ruby-head
|
10
|
-
matrix:
|
11
|
-
include:
|
12
|
-
- rvm: jruby-19mode
|
13
|
-
- rvm: jruby-20mode
|
14
|
-
- rvm: jruby-21mode
|
15
|
-
- rvm: jruby-head
|
16
|
-
- rvm: rbx-2
|
17
|
-
allow_failures:
|
18
|
-
- rvm: ruby-head
|
19
|
-
- rvm: jruby-head
|
20
|
-
- rvm: jruby-20mode
|
21
|
-
- rvm: jruby-21mode
|
22
|
-
fast_finish: true
|
23
|
-
branches:
|
24
|
-
only: master
|
data/Gemfile
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
gemspec
|
4
|
-
|
5
|
-
group :development do
|
6
|
-
gem 'rake', '~> 10.4.2'
|
7
|
-
gem 'rspec', '~> 3.2.0'
|
8
|
-
gem 'yard', '~> 0.8.7'
|
9
|
-
end
|
10
|
-
|
11
|
-
group :metrics do
|
12
|
-
gem 'coveralls', '~> 0.8.1'
|
13
|
-
gem 'simplecov', '~> 0.10.0'
|
14
|
-
gem 'yardstick', '~> 0.9.9'
|
15
|
-
end
|