versionology 0.1.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 +7 -0
- data/.codeclimate.yml +13 -0
- data/.document +3 -0
- data/.gitignore +141 -0
- data/.rspec +2 -0
- data/.travis.yml +45 -0
- data/.yardopts +1 -0
- data/ChangeLog.rdoc +4 -0
- data/Gemfile +3 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +30 -0
- data/Rakefile +50 -0
- data/gemspec.yml +15 -0
- data/lib/versionology.rb +1 -0
- data/lib/versionology/version.rb +7 -0
- data/scripts/gemnsasium-autoupdate.sh +5 -0
- data/spec/spec_helper.rb +33 -0
- data/spec/versionology_spec.rb +5 -0
- data/versionology.gemspec +61 -0
- metadata +149 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 9fd71dd24ab3d619e0c1095cd1aee8ad4cf31201
|
|
4
|
+
data.tar.gz: b223a7e06ef4699700402723083a32a60882bc7f
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 65cb663fc93d105824d5e90bc348550d74dd524e9d4b6727db9c7d52f8612c09187e2339869d510224922968454411e957781db1ba1c1efcb24052d7326c2904
|
|
7
|
+
data.tar.gz: ab1ea269221026e6bc2b21f52d94bd9a292f433ba4986e7531ed9fd814c3b0df9e34563b45e82cbd3b32bc415b155eb4c6510a3059f11278df0e273ec3ee87e2
|
data/.codeclimate.yml
ADDED
data/.document
ADDED
data/.gitignore
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/.bundle/
|
|
2
|
+
/.yardoc
|
|
3
|
+
/Gemfile.lock
|
|
4
|
+
/_yardoc/
|
|
5
|
+
/coverage/
|
|
6
|
+
/doc/
|
|
7
|
+
/pkg/
|
|
8
|
+
/spec/reports/
|
|
9
|
+
/tmp/
|
|
10
|
+
|
|
11
|
+
### Ruby template
|
|
12
|
+
*.gem
|
|
13
|
+
*.rbc
|
|
14
|
+
/.config
|
|
15
|
+
/coverage/
|
|
16
|
+
/InstalledFiles
|
|
17
|
+
/pkg/
|
|
18
|
+
/spec/reports/
|
|
19
|
+
/test/tmp/
|
|
20
|
+
/test/version_tmp/
|
|
21
|
+
/tmp/
|
|
22
|
+
|
|
23
|
+
## Specific to RubyMotion:
|
|
24
|
+
.dat*
|
|
25
|
+
.repl_history
|
|
26
|
+
build/
|
|
27
|
+
|
|
28
|
+
## Documentation cache and generated files:
|
|
29
|
+
/.yardoc/
|
|
30
|
+
/_yardoc/
|
|
31
|
+
/doc/
|
|
32
|
+
/rdoc/
|
|
33
|
+
|
|
34
|
+
## Environment normalisation:
|
|
35
|
+
/.bundle/
|
|
36
|
+
/vendor/bundle
|
|
37
|
+
/lib/bundler/man/
|
|
38
|
+
|
|
39
|
+
# for a library or gem, you might want to ignore these files since the code is
|
|
40
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
41
|
+
# Gemfile.lock
|
|
42
|
+
# .ruby-version
|
|
43
|
+
# .ruby-gemset
|
|
44
|
+
|
|
45
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
|
46
|
+
.rvmrc
|
|
47
|
+
|
|
48
|
+
spec/examples.txt
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### JetBrains template
|
|
52
|
+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion
|
|
53
|
+
|
|
54
|
+
*.iml
|
|
55
|
+
|
|
56
|
+
## Directory-based project format:
|
|
57
|
+
.idea/
|
|
58
|
+
# if you remove the above rule, at least ignore the following:
|
|
59
|
+
|
|
60
|
+
# User-specific stuff:
|
|
61
|
+
# .idea/workspace.xml
|
|
62
|
+
# .idea/tasks.xml
|
|
63
|
+
# .idea/dictionaries
|
|
64
|
+
|
|
65
|
+
# Sensitive or high-churn files:
|
|
66
|
+
# .idea/dataSources.ids
|
|
67
|
+
# .idea/dataSources.xml
|
|
68
|
+
# .idea/sqlDataSources.xml
|
|
69
|
+
# .idea/dynamic.xml
|
|
70
|
+
# .idea/uiDesigner.xml
|
|
71
|
+
|
|
72
|
+
# Gradle:
|
|
73
|
+
# .idea/gradle.xml
|
|
74
|
+
# .idea/libraries
|
|
75
|
+
|
|
76
|
+
# Mongo Explorer plugin:
|
|
77
|
+
# .idea/mongoSettings.xml
|
|
78
|
+
|
|
79
|
+
## File-based project format:
|
|
80
|
+
*.ipr
|
|
81
|
+
*.iws
|
|
82
|
+
|
|
83
|
+
## Plugin-specific files:
|
|
84
|
+
|
|
85
|
+
# IntelliJ
|
|
86
|
+
/out/
|
|
87
|
+
|
|
88
|
+
# mpeltonen/sbt-idea plugin
|
|
89
|
+
.idea_modules/
|
|
90
|
+
|
|
91
|
+
# JIRA plugin
|
|
92
|
+
atlassian-ide-plugin.xml
|
|
93
|
+
|
|
94
|
+
# Crashlytics plugin (for Android Studio and IntelliJ)
|
|
95
|
+
com_crashlytics_export_strings.xml
|
|
96
|
+
crashlytics.properties
|
|
97
|
+
crashlytics-build.properties
|
|
98
|
+
|
|
99
|
+
### Objective-C template
|
|
100
|
+
# Xcode
|
|
101
|
+
#
|
|
102
|
+
build/
|
|
103
|
+
*.pbxuser
|
|
104
|
+
!default.pbxuser
|
|
105
|
+
*.mode1v3
|
|
106
|
+
!default.mode1v3
|
|
107
|
+
*.mode2v3
|
|
108
|
+
!default.mode2v3
|
|
109
|
+
*.perspectivev3
|
|
110
|
+
!default.perspectivev3
|
|
111
|
+
xcuserdata
|
|
112
|
+
*.xccheckout
|
|
113
|
+
*.moved-aside
|
|
114
|
+
DerivedData
|
|
115
|
+
*.hmap
|
|
116
|
+
*.ipa
|
|
117
|
+
*.xcuserstate
|
|
118
|
+
|
|
119
|
+
# CocoaPods
|
|
120
|
+
#
|
|
121
|
+
# We recommend against adding the Pods directory to your .gitignore. However
|
|
122
|
+
# you should judge for yourself, the pros and cons are mentioned at:
|
|
123
|
+
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
|
124
|
+
#
|
|
125
|
+
#Pods/
|
|
126
|
+
|
|
127
|
+
### Xcode template
|
|
128
|
+
build/
|
|
129
|
+
*.pbxuser
|
|
130
|
+
!default.pbxuser
|
|
131
|
+
*.mode1v3
|
|
132
|
+
!default.mode1v3
|
|
133
|
+
*.mode2v3
|
|
134
|
+
!default.mode2v3
|
|
135
|
+
*.perspectivev3
|
|
136
|
+
!default.perspectivev3
|
|
137
|
+
xcuserdata
|
|
138
|
+
*.xccheckout
|
|
139
|
+
*.moved-aside
|
|
140
|
+
DerivedData
|
|
141
|
+
*.xcuserstate
|
data/.rspec
ADDED
data/.travis.yml
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
language: ruby
|
|
2
|
+
sudo: true
|
|
3
|
+
rvm:
|
|
4
|
+
- 2.1.3
|
|
5
|
+
before_install:
|
|
6
|
+
- gem install bundler -v 1.10.6
|
|
7
|
+
- sudo sh -c 'echo "deb http://apt.gemnasium.com stable main" > /etc/apt/sources.list.d/gemnasium.list'
|
|
8
|
+
- sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com E5CEAB0AC5F1CA2A
|
|
9
|
+
- sudo apt-get update
|
|
10
|
+
install:
|
|
11
|
+
- sudo apt-get install gemnasium-toolbelt
|
|
12
|
+
- bundle install --jobs=3 --retry=3
|
|
13
|
+
script:
|
|
14
|
+
- bundle exec rake spec
|
|
15
|
+
- bundle exec rake yard
|
|
16
|
+
- bundle exec rake abide
|
|
17
|
+
after_deploy:
|
|
18
|
+
- chmod a+x ./scripts/gemnasium-update.sh
|
|
19
|
+
- ./scripts/gemnasium-update.sh
|
|
20
|
+
addons:
|
|
21
|
+
code_climate:
|
|
22
|
+
repo_token: fbe8fd7318fb7221bf9df72edfcd96be594d070d5c8518d30de61568faeee7e8
|
|
23
|
+
deploy:
|
|
24
|
+
- provider: rubygems
|
|
25
|
+
api_key:
|
|
26
|
+
secure: iUqr4kxkxh5jioaDBjdf2Peu543U8dpaP9bAbkLQ5Lc26hYck8VfqTHzVAveLYsaipsgO7vwTTAKizbAj3eZqnASmb9v+A+Ejgrj6XPnPLpXzRAZsAqx5Qf+zCgiA5gRkI7g653HF160nXje08NpWeXKRpyYZj+oxIEUeGr31SHlffHvMBOVchB9UWl1dfiS2mYLdrFCpBlCgvppO0+Mr3OI8JLfLe3bpA3uES/poFyKFBUbYJZF1p1Hmr1lmIM3vaU6W4rzYWjFzfTxs/LgM6GlhQOgohhsvwD6T+cDNunXGze3V4EzwVtIe5VrzepLaH7DXLaO0PKgv+calXseDeAGTz5nE5eFh+GqKEtYl/FeBz+35m1cDIFYUF7p1uPGM+R+sQmPnUFlu6tFXLrwfDkS/Rorjtl0p922DpZqJnGWDJW1YLFt/OGR5zZ0SY01n/1EkCLyd4K6xVyGU/ErUGgmjmljQyjXd4G/FxFm+ULtCYyS0W0o63wX5EHEU0ftO24H1rM8Vb2ajKRZbF9zy7QnMscnDJRnOsgWUq0IbXecQVxK25wegwA31r/k1ImtKPfeKs92LoQkFZgsi3lh4qJGx2vdqQHnJaQkcZ5ZFuPR4u1tFWnmoFRjNB8eCdiHHrKNLm/zFB6m//C+ebeTpuUf+CoYV1SeWzEBnsiK74c=
|
|
27
|
+
gem: versionology
|
|
28
|
+
on:
|
|
29
|
+
branch: master
|
|
30
|
+
repo: Nunnery/versionology
|
|
31
|
+
ruby: 2.1.3
|
|
32
|
+
- provider: rubygems
|
|
33
|
+
api_key:
|
|
34
|
+
secure: iUqr4kxkxh5jioaDBjdf2Peu543U8dpaP9bAbkLQ5Lc26hYck8VfqTHzVAveLYsaipsgO7vwTTAKizbAj3eZqnASmb9v+A+Ejgrj6XPnPLpXzRAZsAqx5Qf+zCgiA5gRkI7g653HF160nXje08NpWeXKRpyYZj+oxIEUeGr31SHlffHvMBOVchB9UWl1dfiS2mYLdrFCpBlCgvppO0+Mr3OI8JLfLe3bpA3uES/poFyKFBUbYJZF1p1Hmr1lmIM3vaU6W4rzYWjFzfTxs/LgM6GlhQOgohhsvwD6T+cDNunXGze3V4EzwVtIe5VrzepLaH7DXLaO0PKgv+calXseDeAGTz5nE5eFh+GqKEtYl/FeBz+35m1cDIFYUF7p1uPGM+R+sQmPnUFlu6tFXLrwfDkS/Rorjtl0p922DpZqJnGWDJW1YLFt/OGR5zZ0SY01n/1EkCLyd4K6xVyGU/ErUGgmjmljQyjXd4G/FxFm+ULtCYyS0W0o63wX5EHEU0ftO24H1rM8Vb2ajKRZbF9zy7QnMscnDJRnOsgWUq0IbXecQVxK25wegwA31r/k1ImtKPfeKs92LoQkFZgsi3lh4qJGx2vdqQHnJaQkcZ5ZFuPR4u1tFWnmoFRjNB8eCdiHHrKNLm/zFB6m//C+ebeTpuUf+CoYV1SeWzEBnsiK74c=
|
|
35
|
+
gem: versionology
|
|
36
|
+
on:
|
|
37
|
+
branch: development
|
|
38
|
+
repo: Nunnery/versionology
|
|
39
|
+
ruby: 2.1.3
|
|
40
|
+
env:
|
|
41
|
+
global:
|
|
42
|
+
GEMNASIUM_TESTSUITE: bundle exec rake
|
|
43
|
+
GEMNASIUM_PROJECT_SLUG: Nunnery/versionology
|
|
44
|
+
matrix:
|
|
45
|
+
secure: mHx//9B7/0e/lSwAwBvywpsi0hTteVCKsZPBqDatfE/cOK7V0fJKZ+pqgzVMgVzhBK9WySL/T1taObc9k9VkZEyHvEPAHbw3bDdwn95aN+VNup5wAmnapiIsvi3SSiiIsVkljqXA3FH9wdpyOqJmSvRt1ZXtXioIZdRWTqWuUHZJjKm/Oiy7N140M/HOJ9sPmhgRIonsvYRd87bCSliR+CJTwYTbHNUX6S3hIL9pL8OvEy9JhRl/Q/66q9IWzNNVmbYWbM6C4woBEk14zqoLG/91e9cIoD9xG0+SYAgSY7ED1/7+F5t7qLNuSPwTAZdRzqTA6okYD4qSYDjIw3r3omLqOmUDKOtxF/x3sKkX/MSR9xEhKB4BmyezVGLvGRQan4ZW8+2Lv4Gxersh2k9NyHGS1EyBiHjPfP8dkod8y5JuVDGHrFLRFIRTkCpBRWa3t2LXHAGeIUMbudMunpn4jf3b7RAxX4Npr/0GLHiSlHpIytsI+LrO1LXMpPjdsXiqYHJvmZXB5vKdETWTTNSeFhtb9jipSDHQPsQoFKTDmCK70EiKMGyPBoCeZxaQBYuXgRnZChOIyINCGpkuGvRmIoChlZ9MyXdjf0I49sdSXOgmqLEMW0snYQlANqvOXvRigwsbotfS98R7ocDFOxKLNo9bub3YsiaDWXGvPeabqj8=
|
data/.yardopts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
--markup markdown --title "versionology Documentation" --protected
|
data/ChangeLog.rdoc
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Copyright (c) 2015 Richard Harrah
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
+
a copy of this software and associated documentation files (the
|
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
+
the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be
|
|
12
|
+
included in all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
= versionology
|
|
2
|
+
|
|
3
|
+
{<img src="https://img.shields.io/codeclimate/github/Nunnery/versionology.svg?style=flat-square" alt="Code Climate" />}[https://codeclimate.com/github/Nunnery/versionology]
|
|
4
|
+
{<img src="https://img.shields.io/codeclimate/coverage/github/Nunnery/versionology.svg?style=flat-square" alt="Code Coverage" />}[https://codeclimate.com/github/Nunnery/versionology/coverage]
|
|
5
|
+
{<img src="https://img.shields.io/travis/Nunnery/versionology.svg?style=flat-square" alt="Build Status" />}[https://travis-ci.org/Nunnery/versionology]
|
|
6
|
+
{<img src="https://img.shields.io/gemnasium/Nunnery/versionology.svg?style=flat-square" alt="Dependency Status" />}[https://gemnasium.com/Nunnery/versionology]
|
|
7
|
+
{<img src="https://img.shields.io/gem/v/versionology.svg?style=flat-square" alt="RubyGems" />}[https://rubygems.org/gems/versionology]
|
|
8
|
+
{<img src="http://inch-ci.org/github/Nunnery/versionology.svg?branch=master&style=flat-square" alt="Doc Coverage" />}[http://inch-ci.org/github/Nunnery/versionology]
|
|
9
|
+
|
|
10
|
+
== Description
|
|
11
|
+
|
|
12
|
+
TODO: Description
|
|
13
|
+
|
|
14
|
+
== Features
|
|
15
|
+
|
|
16
|
+
== Examples
|
|
17
|
+
|
|
18
|
+
require 'versionology'
|
|
19
|
+
|
|
20
|
+
== Requirements
|
|
21
|
+
|
|
22
|
+
== Install
|
|
23
|
+
|
|
24
|
+
$ gem install versionology
|
|
25
|
+
|
|
26
|
+
== Copyright
|
|
27
|
+
|
|
28
|
+
Copyright (c) 2015 Richard Harrah
|
|
29
|
+
|
|
30
|
+
See LICENSE.txt for details.
|
data/Rakefile
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
|
|
3
|
+
require 'rubygems'
|
|
4
|
+
|
|
5
|
+
begin
|
|
6
|
+
require 'bundler'
|
|
7
|
+
rescue LoadError => e
|
|
8
|
+
warn e.message
|
|
9
|
+
warn "Run `gem install bundler` to install Bundler."
|
|
10
|
+
exit -1
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
begin
|
|
14
|
+
Bundler.setup(:development)
|
|
15
|
+
rescue Bundler::BundlerError => e
|
|
16
|
+
warn e.message
|
|
17
|
+
warn "Run `bundle install` to install missing gems."
|
|
18
|
+
exit e.status_code
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
require 'rake'
|
|
22
|
+
|
|
23
|
+
desc "Removes the pkg directory"
|
|
24
|
+
task :clean do
|
|
25
|
+
pwd = Dir.pwd.to_s
|
|
26
|
+
FileUtils.rm_rf Dir["#{pwd}/pkg"]
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
require 'rspec/core/rake_task'
|
|
30
|
+
RSpec::Core::RakeTask.new
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
Rake::Task[:spec].enhance [:clean]
|
|
34
|
+
|
|
35
|
+
task :test => :spec
|
|
36
|
+
task :default => :spec
|
|
37
|
+
|
|
38
|
+
require 'yard'
|
|
39
|
+
YARD::Rake::YardocTask.new
|
|
40
|
+
task :doc => :yard
|
|
41
|
+
|
|
42
|
+
task :abide => :build do
|
|
43
|
+
require 'abide'
|
|
44
|
+
|
|
45
|
+
Bundler.clean_exec 'lebascii'
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
require "bundler/gem_tasks"
|
|
49
|
+
|
|
50
|
+
Rake::Task[:build].enhance [:clean]
|
data/gemspec.yml
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
name: versionology
|
|
2
|
+
summary: "A generic version parsing library."
|
|
3
|
+
description: "A generic version parsing library."
|
|
4
|
+
license: MIT
|
|
5
|
+
authors: Richard Harrah
|
|
6
|
+
email: topplethenunnery@gmail.com
|
|
7
|
+
homepage: https://rubygems.org/gems/versionology
|
|
8
|
+
|
|
9
|
+
development_dependencies:
|
|
10
|
+
bundler: ~> 1.10
|
|
11
|
+
rake: ~> 10.0
|
|
12
|
+
rspec: ~> 3.3
|
|
13
|
+
yard: ~> 0.8.7.6
|
|
14
|
+
codeclimate-test-reporter: ~> 0.4
|
|
15
|
+
abide: ~> 0.0.3
|
data/lib/versionology.rb
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require 'versionology/version'
|
data/spec/spec_helper.rb
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
require 'versionology'
|
|
2
|
+
require 'codeclimate-test-reporter'
|
|
3
|
+
CodeClimate::TestReporter.start
|
|
4
|
+
|
|
5
|
+
RSpec.configure do |config|
|
|
6
|
+
|
|
7
|
+
config.expect_with :rspec do |expectations|
|
|
8
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
config.mock_with :rspec do |mocks|
|
|
12
|
+
mocks.verify_partial_doubles = true
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
config.filter_run :focus
|
|
16
|
+
config.run_all_when_everything_filtered = true
|
|
17
|
+
|
|
18
|
+
config.example_status_persistence_file_path = "spec/examples.txt"
|
|
19
|
+
|
|
20
|
+
config.disable_monkey_patching!
|
|
21
|
+
|
|
22
|
+
config.warnings = true
|
|
23
|
+
|
|
24
|
+
if config.files_to_run.one?
|
|
25
|
+
config.default_formatter = 'doc'
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
config.profile_examples = 10
|
|
29
|
+
|
|
30
|
+
config.order = :random
|
|
31
|
+
|
|
32
|
+
Kernel.srand config.seed
|
|
33
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
|
|
3
|
+
require 'yaml'
|
|
4
|
+
|
|
5
|
+
Gem::Specification.new do |gem|
|
|
6
|
+
gemspec = YAML.load_file('gemspec.yml')
|
|
7
|
+
|
|
8
|
+
gem.name = gemspec.fetch('name')
|
|
9
|
+
gem.version = gemspec.fetch('version') do
|
|
10
|
+
lib_dir = File.join(File.dirname(__FILE__), 'lib')
|
|
11
|
+
$LOAD_PATH << lib_dir unless $LOAD_PATH.include?(lib_dir)
|
|
12
|
+
|
|
13
|
+
require 'versionology/version'
|
|
14
|
+
Versionology::VERSION
|
|
15
|
+
end
|
|
16
|
+
gem.version = "#{gem.version}-alpha-#{ENV['TRAVIS_BUILD_NUMBER']}" if !ENV['TRAVIS_TAG'].nil? && ENV['TRAVIS_TAG'] == ''
|
|
17
|
+
|
|
18
|
+
gem.summary = gemspec['summary']
|
|
19
|
+
gem.description = gemspec['description']
|
|
20
|
+
gem.licenses = Array(gemspec['license'])
|
|
21
|
+
gem.authors = Array(gemspec['authors'])
|
|
22
|
+
gem.email = gemspec['email']
|
|
23
|
+
gem.homepage = gemspec['homepage']
|
|
24
|
+
|
|
25
|
+
glob = lambda { |patterns| gem.files & Dir[*patterns] }
|
|
26
|
+
|
|
27
|
+
gem.files = `git ls-files`.split($/)
|
|
28
|
+
gem.files = glob[gemspec['files']] if gemspec['files']
|
|
29
|
+
|
|
30
|
+
gem.executables = gemspec.fetch('executables') do
|
|
31
|
+
glob['bin/*'].map { |path| File.basename(path) }
|
|
32
|
+
end
|
|
33
|
+
gem.default_executable = gem.executables.first if Gem::VERSION < '1.7.'
|
|
34
|
+
|
|
35
|
+
gem.extensions = glob[gemspec['extensions'] || 'ext/**/extconf.rb']
|
|
36
|
+
gem.test_files = glob[gemspec['test_files'] || '{test/{**/}*_test.rb']
|
|
37
|
+
gem.extra_rdoc_files = glob[gemspec['extra_doc_files'] || '*.{txt,rdoc}']
|
|
38
|
+
|
|
39
|
+
gem.require_paths = Array(gemspec.fetch('require_paths') {
|
|
40
|
+
%w[ext lib].select { |dir| File.directory?(dir) }
|
|
41
|
+
})
|
|
42
|
+
|
|
43
|
+
gem.requirements = gemspec['requirements']
|
|
44
|
+
gem.required_ruby_version = gemspec['required_ruby_version']
|
|
45
|
+
gem.required_rubygems_version = gemspec['required_rubygems_version']
|
|
46
|
+
gem.post_install_message = gemspec['post_install_message']
|
|
47
|
+
|
|
48
|
+
split = lambda { |string| string.split(/,\s*/) }
|
|
49
|
+
|
|
50
|
+
if gemspec['dependencies']
|
|
51
|
+
gemspec['dependencies'].each do |name, versions|
|
|
52
|
+
gem.add_dependency(name, split[versions])
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
if gemspec['development_dependencies']
|
|
57
|
+
gemspec['development_dependencies'].each do |name, versions|
|
|
58
|
+
gem.add_development_dependency(name, split[versions])
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: versionology
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Richard Harrah
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2015-08-22 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.10'
|
|
20
|
+
type: :development
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '1.10'
|
|
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.3'
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - "~>"
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '3.3'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: yard
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - "~>"
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: 0.8.7.6
|
|
62
|
+
type: :development
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - "~>"
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: 0.8.7.6
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: codeclimate-test-reporter
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - "~>"
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '0.4'
|
|
76
|
+
type: :development
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - "~>"
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '0.4'
|
|
83
|
+
- !ruby/object:Gem::Dependency
|
|
84
|
+
name: abide
|
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - "~>"
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: 0.0.3
|
|
90
|
+
type: :development
|
|
91
|
+
prerelease: false
|
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - "~>"
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: 0.0.3
|
|
97
|
+
description: A generic version parsing library.
|
|
98
|
+
email: topplethenunnery@gmail.com
|
|
99
|
+
executables: []
|
|
100
|
+
extensions: []
|
|
101
|
+
extra_rdoc_files:
|
|
102
|
+
- ChangeLog.rdoc
|
|
103
|
+
- LICENSE.txt
|
|
104
|
+
- README.rdoc
|
|
105
|
+
files:
|
|
106
|
+
- ".codeclimate.yml"
|
|
107
|
+
- ".document"
|
|
108
|
+
- ".gitignore"
|
|
109
|
+
- ".rspec"
|
|
110
|
+
- ".travis.yml"
|
|
111
|
+
- ".yardopts"
|
|
112
|
+
- ChangeLog.rdoc
|
|
113
|
+
- Gemfile
|
|
114
|
+
- LICENSE.txt
|
|
115
|
+
- README.rdoc
|
|
116
|
+
- Rakefile
|
|
117
|
+
- gemspec.yml
|
|
118
|
+
- lib/versionology.rb
|
|
119
|
+
- lib/versionology/version.rb
|
|
120
|
+
- scripts/gemnsasium-autoupdate.sh
|
|
121
|
+
- spec/spec_helper.rb
|
|
122
|
+
- spec/versionology_spec.rb
|
|
123
|
+
- versionology.gemspec
|
|
124
|
+
homepage: https://rubygems.org/gems/versionology
|
|
125
|
+
licenses:
|
|
126
|
+
- MIT
|
|
127
|
+
metadata: {}
|
|
128
|
+
post_install_message:
|
|
129
|
+
rdoc_options: []
|
|
130
|
+
require_paths:
|
|
131
|
+
- lib
|
|
132
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
133
|
+
requirements:
|
|
134
|
+
- - ">="
|
|
135
|
+
- !ruby/object:Gem::Version
|
|
136
|
+
version: '0'
|
|
137
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
|
+
requirements:
|
|
139
|
+
- - ">="
|
|
140
|
+
- !ruby/object:Gem::Version
|
|
141
|
+
version: '0'
|
|
142
|
+
requirements: []
|
|
143
|
+
rubyforge_project:
|
|
144
|
+
rubygems_version: 2.4.6
|
|
145
|
+
signing_key:
|
|
146
|
+
specification_version: 4
|
|
147
|
+
summary: A generic version parsing library.
|
|
148
|
+
test_files: []
|
|
149
|
+
has_rdoc:
|