ivyxxcspcqlaocvjbghawvbdartwsfffurhnqzlwvsbgieweawfntuwecdcminmiaunqteqgbrfuxppntjdvyvsswxwepnbfqstnrnsotrhndihkudyahthaxatviwrwtgllwbqhibouqctrxtypac 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +4 -0
- data/.rspec +2 -0
- data/Gemfile +5 -0
- data/Rakefile +1 -0
- data/VERSIONING.md +18 -0
- data/gemspec.gemspec +36 -0
- data/rakelib/gem.rake +13 -0
- data/rakelib/licenses.rake +35 -0
- data/rakelib/release.rake +17 -0
- data/rakelib/spec.rake +3 -0
- data/rakelib/test.rake +7 -0
- data/spec/spec_helper.rb +4 -0
- data/spec/spec_spec.rb +11 -0
- metadata +117 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: fd704c86407ae85e351a10596c25ee5effe9f38d
|
4
|
+
data.tar.gz: fdda48ee0effd9798fd18d58cb7d12f6e6d6c509
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 45040b597633c678c161dceea0285f823f88a7e0b8de50e767179f4e0e6af1569db37808dc147f7735bafe9111fd05908c7efc3a874764b9e2b17d0a88ca5052
|
7
|
+
data.tar.gz: 26170ea2f3092350ed9526d8bd2b3647340eccda01cafd93b12bc119ffa21577c548ae58b9e0345967bde885b09aaeaa84da9b593fffea733341cb5cddf02ed9
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/Gemfile
ADDED
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
task :default => :spec
|
data/VERSIONING.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
## Versioning
|
2
|
+
### Version Number for Machines
|
3
|
+
|
4
|
+
This gem uses a slightly modified version of the **SemVer** specification, namely:
|
5
|
+
```ruby
|
6
|
+
spec.version = "BREAKING.PATCHES.NONBREAKING"
|
7
|
+
```
|
8
|
+
You can use this versioning with your dependency tools, only you have a somewhat stronger guarantee that your
|
9
|
+
code won't break if you limit yourself to the third number, but you need to allow second level updates in order to
|
10
|
+
get (security and other) patches.
|
11
|
+
|
12
|
+
### Version Number for Humans
|
13
|
+
Since the above-described type of versioning doesn't tell you anything about the functional state of the gem (you can go from a "hello world" to a full blown operating system
|
14
|
+
without making a breaking change, as long as your operating system prints "hello world" to the screen) (SemVer, when used correctly, doesn't tell anything about the functional state of a software package either), a second, human-friendly version number can be found in `spec.metadata[:human_version]`.
|
15
|
+
|
16
|
+
The magnitude of this version number shall be made to correspond to actual functional changes in the software. If I've worked a lot on the package, I'll make it move a lot, but unless I've made breaking changes, I'll stick to only moving the third number in the `spec.version` version.
|
17
|
+
|
18
|
+
This number is for you. If you see it increase a lot, it probably means much more new goodies, but is less strictly defined then the version number for the machine. (I reserve the right to later change the way I change this number).
|
data/gemspec.gemspec
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
#Naming utils, git utils, and default boilerplate
|
4
|
+
require 'gemspec'
|
5
|
+
|
6
|
+
#This is a place to put custom overrides to Gemspec.boilerplate
|
7
|
+
begin; require_relative 'gemspec.rb'; rescue LoadError; end
|
8
|
+
|
9
|
+
Gem::Specification.new do |s|
|
10
|
+
|
11
|
+
#Name is the name of the project root directory
|
12
|
+
s.name = Gemspec.base_dirname(__FILE__)
|
13
|
+
|
14
|
+
Gemspec.boilerplate(s)
|
15
|
+
|
16
|
+
#s.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com' to prevent pushes to rubygems.org, or delete to allow pushes to any server."
|
17
|
+
|
18
|
+
#####Must change
|
19
|
+
s.summary = %q{My gem playground}
|
20
|
+
s.description = %q{I hope I didn't take up a gem name somebody else wanted}
|
21
|
+
s.licenses = %w[GPL-2.0]
|
22
|
+
|
23
|
+
|
24
|
+
#####Unlikely to change
|
25
|
+
s.email = [ `git config user.email` ]
|
26
|
+
s.homepage = "https://github.com/#{`git config github.username`.chomp}/#{s.name}.git"
|
27
|
+
$? == 0 or s.homepage = nil
|
28
|
+
###################################
|
29
|
+
|
30
|
+
#Dependencies
|
31
|
+
s.add_development_dependency 'rake', '~> 10.4'
|
32
|
+
s.add_development_dependency 'minitest'
|
33
|
+
s.add_development_dependency 'minitest-documentation'
|
34
|
+
s.add_development_dependency 'rspec'
|
35
|
+
|
36
|
+
end
|
data/rakelib/gem.rake
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'rubygems/package_task'
|
2
|
+
$:.unshift(File.expand_path('../lib',__FILE__))
|
3
|
+
|
4
|
+
$gemspec = Gem::Specification.load(Dir["*.gemspec"][0])
|
5
|
+
files = Rake::FileList.new(Gemspec::Git.ls_files)
|
6
|
+
|
7
|
+
Gem::PackageTask.new($gemspec) { }
|
8
|
+
task :gem => :chmod
|
9
|
+
task :chmod do
|
10
|
+
files.each do |file|
|
11
|
+
chmod 'o+r', file unless File.world_readable?(file)
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
|
2
|
+
desc 'Render licenses into LICENSES/'
|
3
|
+
task 'licenses' => 'LICENSES/.info'
|
4
|
+
|
5
|
+
desc 'View licenses'
|
6
|
+
task 'view-licenses' => 'licenses' do
|
7
|
+
sh "less", *Dir["LICENSES/*"]
|
8
|
+
end
|
9
|
+
|
10
|
+
#############################################3
|
11
|
+
|
12
|
+
directory "LICENSES"
|
13
|
+
gemspec = Gem::Specification.load(Dir["*.gemspec"][0])
|
14
|
+
|
15
|
+
def render_erb(s, src, dest)
|
16
|
+
File.write(dest,
|
17
|
+
ERB.new(File.read(src), nil, '-').result(binding)
|
18
|
+
)
|
19
|
+
end
|
20
|
+
|
21
|
+
file "LICENSES/.info" => "gemspec.gemspec" do |t|
|
22
|
+
mkdir_p "LICENSES"
|
23
|
+
|
24
|
+
licenses_dir = File.expand_path('../../share/gemspec/licenses/', `gem which gemspec`.chomp)
|
25
|
+
$? == 0 or licenses_dir = File.expand_path('licenses/')
|
26
|
+
|
27
|
+
gemspec.licenses.each do |license|
|
28
|
+
render_erb(gemspec,
|
29
|
+
File.join(licenses_dir, license + '.erb'),
|
30
|
+
"LICENSES/#{Shellwords.escape license}"
|
31
|
+
)
|
32
|
+
end
|
33
|
+
File.write(t.name, "This directory contains the licenses you can use with this gem\n")
|
34
|
+
end
|
35
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'gemspec/git'
|
2
|
+
|
3
|
+
desc "Push master to origin, build gem, and push it"
|
4
|
+
task 'release' => 'gem' do
|
5
|
+
Gemspec::Git.cdroot!
|
6
|
+
Gemspec::Git.clean? or (
|
7
|
+
warn "Need to clean up before releasing"
|
8
|
+
exit 1
|
9
|
+
)
|
10
|
+
sh "git checkout master"
|
11
|
+
s = Gem::Specification.load('gemspec.gemspec')
|
12
|
+
sh <<-EOF
|
13
|
+
git push origin master &
|
14
|
+
rake gem && gem push pkg/#{s.name}-#{s.version}.gem
|
15
|
+
wait
|
16
|
+
EOF
|
17
|
+
end
|
data/rakelib/spec.rake
ADDED
data/rakelib/test.rake
ADDED
data/spec/spec_helper.rb
ADDED
data/spec/spec_spec.rb
ADDED
metadata
ADDED
@@ -0,0 +1,117 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ivyxxcspcqlaocvjbghawvbdartwsfffurhnqzlwvsbgieweawfntuwecdcminmiaunqteqgbrfuxppntjdvyvsswxwepnbfqstnrnsotrhndihkudyahthaxatviwrwtgllwbqhibouqctrxtypac
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Petr Skocik
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-06-02 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '10.4'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '10.4'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: minitest
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest-documentation
|
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'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
description: I hope I didn't take up a gem name somebody else wanted
|
70
|
+
email:
|
71
|
+
- |
|
72
|
+
pskocik@gmail.com
|
73
|
+
executables: []
|
74
|
+
extensions: []
|
75
|
+
extra_rdoc_files: []
|
76
|
+
files:
|
77
|
+
- ".gitignore"
|
78
|
+
- ".rspec"
|
79
|
+
- Gemfile
|
80
|
+
- Rakefile
|
81
|
+
- VERSIONING.md
|
82
|
+
- gemspec.gemspec
|
83
|
+
- rakelib/gem.rake
|
84
|
+
- rakelib/licenses.rake
|
85
|
+
- rakelib/release.rake
|
86
|
+
- rakelib/spec.rake
|
87
|
+
- rakelib/test.rake
|
88
|
+
- spec/spec_helper.rb
|
89
|
+
- spec/spec_spec.rb
|
90
|
+
homepage: https://github.com/pjump/ivyxxcspcqlaocvjbghawvbdartwsfffurhnqzlwvsbgieweawfntuwecdcminmiaunqteqgbrfuxppntjdvyvsswxwepnbfqstnrnsotrhndihkudyahthaxatviwrwtgllwbqhibouqctrxtypac.git
|
91
|
+
licenses:
|
92
|
+
- GPL-2.0
|
93
|
+
metadata:
|
94
|
+
namespaced_path: ivyxxcspcqlaocvjbghawvbdartwsfffurhnqzlwvsbgieweawfntuwecdcminmiaunqteqgbrfuxppntjdvyvsswxwepnbfqstnrnsotrhndihkudyahthaxatviwrwtgllwbqhibouqctrxtypac
|
95
|
+
constant_name: Ivyxxcspcqlaocvjbghawvbdartwsfffurhnqzlwvsbgieweawfntuwecdcminmiaunqteqgbrfuxppntjdvyvsswxwepnbfqstnrnsotrhndihkudyahthaxatviwrwtgllwbqhibouqctrxtypac
|
96
|
+
human_version: '0.1'
|
97
|
+
post_install_message:
|
98
|
+
rdoc_options: []
|
99
|
+
require_paths:
|
100
|
+
- lib
|
101
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - ">="
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '0'
|
106
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
requirements: []
|
112
|
+
rubyforge_project:
|
113
|
+
rubygems_version: 2.4.6
|
114
|
+
signing_key:
|
115
|
+
specification_version: 4
|
116
|
+
summary: My gem playground
|
117
|
+
test_files: []
|