tty-platform 0.1.0 → 0.2.0

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
- SHA1:
3
- metadata.gz: 7e68ecc0742c5f300e164e6664cfc3c228cc31f4
4
- data.tar.gz: a9abe4cc3950411fe3e2155fc5796347459a7fd7
2
+ SHA256:
3
+ metadata.gz: 196f25ef722267ed1b9c152af8d10624cba1141aa1f5f258ef0373fc922e6c2b
4
+ data.tar.gz: 85aba10b4d39a14cb3d8cf019a99427d2508e5c8d0bcd74506c2cf6689aa2a39
5
5
  SHA512:
6
- metadata.gz: 72112f32a469e449c1b897b9a268976b50c8485b8895cb558e09f6f92634ab32189bf1767235e93cd6f198aa68884638188e394ca2e1eb0c5b1d36e9c961ca00
7
- data.tar.gz: fe28d96ede597fa9b693937588330739aad7a49ce1bec753509d0748ea60f1fcf854022bb1787d2a2ebc3885d135d35a31524632c5ba93969f208e8ad5b03daa
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
- # TTY::Platform
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/peter-murach/tty-platform.svg?branch=master)][travis]
4
- [![Code Climate](https://codeclimate.com/github/peter-murach/tty-platform.svg)][codeclimate]
5
- [![Coverage Status](https://coveralls.io/repos/peter-murach/tty-platform/badge.svg)][coverage]
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/peter-murach/tty-platform
9
- [codeclimate]: https://codeclimate.com/github/peter-murach/tty-platform
10
- [coverage]: https://coveralls.io/r/peter-murach/tty-platform
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/peter-murach/tty) toolkit.
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/peter-murach/tty-platform/fork )
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
@@ -7,3 +7,4 @@ FileList['tasks/**/*.rake'].each(&method(:import))
7
7
  desc 'Run all specs'
8
8
  task ci: %w[ spec ]
9
9
 
10
+ task default: :spec
data/lib/tty-platform.rb CHANGED
@@ -1,4 +1 @@
1
- # coding: utf-8
2
-
3
- require 'rbconfig'
4
- require 'tty/platform'
1
+ require_relative 'tty/platform'
data/lib/tty/platform.rb CHANGED
@@ -1,6 +1,8 @@
1
- # coding: utf-8
1
+ # frozen_string_literal: true
2
2
 
3
- require 'tty/platform/version'
3
+ require 'rbconfig'
4
+
5
+ require_relative 'platform/version'
4
6
 
5
7
  module TTY
6
8
  # Detects system platform properties
@@ -1,7 +1,7 @@
1
- # coding: utf-8
1
+ # frozen_string_literal: true
2
2
 
3
3
  module TTY
4
4
  class Platform
5
- VERSION = "0.1.0"
5
+ VERSION = "0.2.0"
6
6
  end # Platform
7
7
  end # TTY
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,6 @@
1
- # encoding: utf-8
1
+ # frozen_string_literal: true
2
2
 
3
- if RUBY_VERSION > '1.9' and (ENV['COVERAGE'] || ENV['TRAVIS'])
3
+ if ENV['COVERAGE'] || ENV['TRAVIS']
4
4
  require 'simplecov'
5
5
  require 'coveralls'
6
6
 
@@ -1,4 +1,4 @@
1
- # coding: utf-8
1
+ # frozen_string_literal: true
2
2
 
3
3
  RSpec.describe TTY::Platform, '#new' do
4
4
  it "detects system properties" do
@@ -1,4 +1,4 @@
1
- # coding: utf-8
1
+ # frozen_string_literal: true
2
2
 
3
3
  RSpec.describe TTY::Platform, 'platform' do
4
4
  it "correctly detects windows platform" do
@@ -1,6 +1,6 @@
1
- # coding: utf-8
1
+ # frozen_string_literal: true
2
2
 
3
- RSpec.describe TTY::Platform, '.to_s' do
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 = `git ls-files -z`.split("\x0")
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.1.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: 2015-05-16 00:00:00.000000000 Z
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
- - .gitignore
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: '0'
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.0.3
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
@@ -1,14 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
- *.bundle
11
- *.so
12
- *.o
13
- *.a
14
- mkmf.log
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --color
2
- --require spec_helper
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