sandbox-sinatra 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 5d354d8471cac8e53a879037c4f6ffb09fe966ac2096826f91dbbdeb1a310f4f
4
+ data.tar.gz: 3bc63fb80a5b81ef9e47612b61f04f8e7db6d3f6ae3178a3dbb6b8508f29feeb
5
+ SHA512:
6
+ metadata.gz: 4b26b064ec2b9edb8b852d3ab3116a72470cd4907834d26bafb4b2e65a36b8ae22bdfff457ed18029b0a316a59b49d214318bf4d3f1ce8977fe7873dfc4a8671
7
+ data.tar.gz: 6cb847330afcc87b0028770eec140623cb45ed172b301b632831dbcaf301b0928e0590aef679e313be0a18300852cfb0e3aa073c44c37df1ef08a772900b987a
data/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ # v0.0.2 / 2019-01-10
2
+
3
+ * Remove -e option from echo [#2](https://github.com/sinatra-bot/sandbox/pull/2) by [@namusyaka](https://github.com/namusyaka)
4
+
5
+ # v0.0.1 / 2019-01-10
6
+
7
+ * Implement auto release [#1](https://github.com/sinatra-bot/sandbox/pull/1) by [@namusyaka](https://github.com/namusyaka)
8
+
9
+ # v0.0.0
10
+
11
+ * hello world
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'http://rubygems.org/'
2
+
3
+ gem 'rake'
4
+ gem 'octokit'
data/LICENSE ADDED
File without changes
data/README.md ADDED
@@ -0,0 +1 @@
1
+ # sandbox
data/Rakefile ADDED
@@ -0,0 +1,99 @@
1
+ require 'rake/clean'
2
+
3
+ task(:test) { }
4
+
5
+ def source_version
6
+ File.read(File.expand_path("../VERSION", __FILE__)).strip
7
+ end
8
+
9
+ if defined?(Gem)
10
+ GEMS_AND_ROOT_DIRECTORIES = {
11
+ "sandbox-sinatra" => ".",
12
+ }
13
+
14
+ def package(gem, ext='')
15
+ "pkg/#{gem}-#{source_version}" + ext
16
+ end
17
+
18
+
19
+ directory 'pkg/'
20
+ CLOBBER.include('pkg')
21
+
22
+ GEMS_AND_ROOT_DIRECTORIES.each do |gem, directory|
23
+ file package(gem, '.gem') => ["pkg/", "#{directory + '/' + gem}.gemspec"] do |f|
24
+ sh "cd #{directory} && gem build #{gem}.gemspec"
25
+ mv directory + "/" + File.basename(f.name), f.name
26
+ end
27
+
28
+ file package(gem, '.tar.gz') => ["pkg/"] do |f|
29
+ sh <<-SH
30
+ git archive \
31
+ --prefix=#{gem}-#{source_version}/ \
32
+ --format=tar \
33
+ HEAD -- #{directory} | gzip > #{f.name}
34
+ SH
35
+ end
36
+ end
37
+
38
+ namespace :package do
39
+ GEMS_AND_ROOT_DIRECTORIES.each do |gem, directory|
40
+ desc "Build #{gem} packages"
41
+ task gem => %w[.gem .tar.gz].map { |e| package(gem, e) }
42
+ end
43
+
44
+ desc "Build all packages"
45
+ task all: GEMS_AND_ROOT_DIRECTORIES.keys
46
+ end
47
+
48
+ namespace :install do
49
+ GEMS_AND_ROOT_DIRECTORIES.each do |gem, directory|
50
+ desc "Build and install #{gem} as local gem"
51
+ task gem => package(gem, '.gem') do
52
+ sh "gem install #{package(gem, '.gem')}"
53
+ end
54
+ end
55
+
56
+ desc "Build and install all of the gems as local gems"
57
+ task all: GEMS_AND_ROOT_DIRECTORIES.keys
58
+ end
59
+
60
+ namespace :release do
61
+ GEMS_AND_ROOT_DIRECTORIES.each do |gem, directory|
62
+ desc "Release #{gem} as a package"
63
+ task gem => "package:#{gem}" do
64
+ sh <<-SH
65
+ gem install #{package(gem, '.gem')} --local &&
66
+ gem push #{package(gem, '.gem')}
67
+ SH
68
+ end
69
+ end
70
+
71
+ desc "Prepares for the patch release"
72
+ task :travis do
73
+ load "ci/release.rb"
74
+ sh <<-SH
75
+ echo "---\n:rubygems_api_key: #{ENV['RUBYGEMS_API_KEY']}" > ~/.gem/credentials
76
+ cat ~/.gem/credentials
77
+ chmod 0600 ~/.gem/credentials
78
+ sed -i "s/.*VERSION.*/ VERSION = '#{source_version}'/" lib/sandbox/version.rb
79
+ SH
80
+ end
81
+
82
+ desc "Commits the version to github repository"
83
+ task :commit_version do
84
+ sh <<-SH
85
+ sed -i "s/.*VERSION.*/ VERSION = '#{source_version}'/" lib/sandbox/version.rb
86
+ SH
87
+
88
+ sh <<-SH
89
+ git commit --allow-empty -a -m '#{source_version} release' &&
90
+ git tag -#{ENV['TRAVIS'] ? ?a : ?s}a v#{source_version} -m '#{source_version} release' &&
91
+ git push && (git push origin || true) &&
92
+ git push --tags && (git push origin --tags || true)
93
+ SH
94
+ end
95
+
96
+ desc "Release all gems as packages"
97
+ task all: [:test, :commit_version] + GEMS_AND_ROOT_DIRECTORIES.keys
98
+ end
99
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.0.2
@@ -0,0 +1,3 @@
1
+ module Sandbox
2
+ VERSION = '0.0.2'
3
+ end
data/lib/sandbox.rb ADDED
@@ -0,0 +1,4 @@
1
+ require 'sandbox/version'
2
+
3
+ module Sandbox
4
+ end
@@ -0,0 +1,19 @@
1
+ version = File.read(File.expand_path("../VERSION", __FILE__)).strip
2
+
3
+ Gem::Specification.new 'sandbox-sinatra', version do |s|
4
+ s.description = "testing, testing, testing"
5
+ s.summary = "sinatra sandbox"
6
+ s.authors = ["namusyaka"]
7
+ s.email = "namusyaka@gmail.com"
8
+ s.homepage = "http://namusyaka.com/"
9
+ s.license = 'MIT'
10
+ s.files = Dir['README*.md', 'lib/**/*'] + [
11
+ "CHANGELOG.md",
12
+ "Gemfile",
13
+ "LICENSE",
14
+ "Rakefile",
15
+ "sandbox-sinatra.gemspec",
16
+ "VERSION"]
17
+ s.extra_rdoc_files = s.files.select { |p| p =~ /^README/ } << 'LICENSE'
18
+ s.rdoc_options = %w[--line-numbers --inline-source --title sandbox-sinatra --main README.rdoc --encoding=UTF-8]
19
+ end
metadata ADDED
@@ -0,0 +1,61 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sandbox-sinatra
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - namusyaka
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-01-10 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: testing, testing, testing
14
+ email: namusyaka@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files:
18
+ - README.md
19
+ - LICENSE
20
+ files:
21
+ - CHANGELOG.md
22
+ - Gemfile
23
+ - LICENSE
24
+ - README.md
25
+ - Rakefile
26
+ - VERSION
27
+ - lib/sandbox.rb
28
+ - lib/sandbox/version.rb
29
+ - sandbox-sinatra.gemspec
30
+ homepage: http://namusyaka.com/
31
+ licenses:
32
+ - MIT
33
+ metadata: {}
34
+ post_install_message:
35
+ rdoc_options:
36
+ - "--line-numbers"
37
+ - "--inline-source"
38
+ - "--title"
39
+ - sandbox-sinatra
40
+ - "--main"
41
+ - README.rdoc
42
+ - "--encoding=UTF-8"
43
+ require_paths:
44
+ - lib
45
+ required_ruby_version: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
50
+ required_rubygems_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ requirements: []
56
+ rubyforge_project:
57
+ rubygems_version: 2.7.7
58
+ signing_key:
59
+ specification_version: 4
60
+ summary: sinatra sandbox
61
+ test_files: []