ruby 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.
Files changed (7) hide show
  1. data/HISTORY +0 -0
  2. data/README.md +56 -0
  3. data/Rakefile +68 -0
  4. data/lib/ruby.rb +10 -0
  5. data/lib/ruby/version.rb +3 -0
  6. data/test/test.rb +12 -0
  7. metadata +72 -0
data/HISTORY ADDED
File without changes
@@ -0,0 +1,56 @@
1
+ ruby
2
+ ===========
3
+
4
+ (C) John Mair (banisterfiend) 2010
5
+
6
+ FIXME: _tagline_
7
+
8
+ FIXME: _description goes here_
9
+
10
+ * Install the [gem](https://rubygems.org/gems/ruby): `gem install ruby`
11
+ * Read the [documentation](http://rdoc.info/github/banister/ruby/master/file/README.md)
12
+ * See the [source code](http://github.com/banister/ruby)
13
+
14
+ Example: Example description
15
+ --------
16
+
17
+ Example preamble
18
+
19
+ puts "example code"
20
+
21
+ Features and limitations
22
+ -------------------------
23
+
24
+ Feature List Preamble
25
+
26
+ Contact
27
+ -------
28
+
29
+ Problems or questions contact me at [github](http://github.com/banister)
30
+
31
+
32
+ License
33
+ -------
34
+
35
+ (The MIT License)
36
+
37
+ Copyright (c) 2011 John Mair (banisterfiend)
38
+
39
+ Permission is hereby granted, free of charge, to any person obtaining
40
+ a copy of this software and associated documentation files (the
41
+ 'Software'), to deal in the Software without restriction, including
42
+ without limitation the rights to use, copy, modify, merge, publish,
43
+ distribute, sublicense, and/or sell copies of the Software, and to
44
+ permit persons to whom the Software is furnished to do so, subject to
45
+ the following conditions:
46
+
47
+ The above copyright notice and this permission notice shall be
48
+ included in all copies or substantial portions of the Software.
49
+
50
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
51
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
52
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
53
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
54
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
55
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
56
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,68 @@
1
+ dlext = Config::CONFIG['DLEXT']
2
+ direc = File.dirname(__FILE__)
3
+
4
+ begin
5
+ require 'bones'
6
+ rescue LoadError
7
+ abort '### Please install the "bones" gem ###'
8
+ end
9
+
10
+ PROJECT_NAME = "ruby"
11
+
12
+ require 'rake/clean'
13
+ require 'rake/gempackagetask'
14
+ require "#{direc}/lib/#{PROJECT_NAME}/version"
15
+
16
+ CLOBBER.include("**/*.#{dlext}", "**/*~", "**/*#*", "**/*.log", "**/*.o")
17
+ CLEAN.include("ext/**/*.#{dlext}", "ext/**/*.log", "ext/**/*.o",
18
+ "ext/**/*~", "ext/**/*#*", "ext/**/*.obj", "**/*#*", "**/*#*.*",
19
+ "ext/**/*.def", "ext/**/*.pdb", "**/*_flymake*.*", "**/*_flymake")
20
+
21
+ def apply_spec_defaults(s)
22
+ s.name = PROJECT_NAME
23
+ s.summary = "FIX ME"
24
+ s.version = Ruby::VERSION
25
+ s.date = Time.now.strftime '%Y-%m-%d'
26
+ s.author = "John Mair (banisterfiend)"
27
+ s.email = 'jrmair@gmail.com'
28
+ s.description = s.summary
29
+ s.require_path = 'lib'
30
+ s.homepage = "http://banisterfiend.wordpress.com"
31
+ s.has_rdoc = 'yard'
32
+ s.files = Dir["ext/**/extconf.rb", "ext/**/*.h", "ext/**/*.c", "lib/**/*.rb",
33
+ "test/*.rb", "HISTORY", "README.md", "Rakefile"]
34
+ end
35
+
36
+ desc "run tests"
37
+ task :test do
38
+ sh "bacon -k #{direc}/test/test.rb"
39
+ end
40
+
41
+ namespace :ruby do
42
+ spec = Gem::Specification.new do |s|
43
+ apply_spec_defaults(s)
44
+ s.platform = Gem::Platform::RUBY
45
+ end
46
+
47
+ Rake::GemPackageTask.new(spec) do |pkg|
48
+ pkg.need_zip = false
49
+ pkg.need_tar = false
50
+ end
51
+ end
52
+
53
+ desc "build all platform gems at once"
54
+ task :gems => [:clean, :rmgems, "ruby:gem"]
55
+
56
+ desc "remove all platform gems"
57
+ task :rmgems => ["ruby:clobber_package"]
58
+
59
+ desc "build and push latest gems"
60
+ task :pushgems => :gems do
61
+ chdir("#{direc}/pkg") do
62
+ Dir["*.gem"].each do |gemfile|
63
+ sh "gem push #{gemfile}"
64
+ end
65
+ end
66
+ end
67
+
68
+
@@ -0,0 +1,10 @@
1
+ # ruby.rb
2
+ # (C) John Mair (banisterfiend); MIT license
3
+
4
+ direc = File.dirname(__FILE__)
5
+
6
+ require "#{direc}/ruby/version"
7
+
8
+ module Ruby
9
+ end
10
+
@@ -0,0 +1,3 @@
1
+ module Ruby
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,12 @@
1
+ direc = File.dirname(__FILE__)
2
+
3
+ require 'rubygems'
4
+ require "#{direc}/../lib/ruby"
5
+ require 'bacon'
6
+
7
+ puts "Testing ruby version #{Ruby::VERSION}..."
8
+ puts "Ruby version: #{RUBY_VERSION}"
9
+
10
+ describe Ruby do
11
+ end
12
+
metadata ADDED
@@ -0,0 +1,72 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ruby
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 0
10
+ version: 0.1.0
11
+ platform: ruby
12
+ authors:
13
+ - John Mair (banisterfiend)
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-03-01 00:00:00 +13:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description: FIX ME
23
+ email: jrmair@gmail.com
24
+ executables: []
25
+
26
+ extensions: []
27
+
28
+ extra_rdoc_files: []
29
+
30
+ files:
31
+ - lib/ruby/version.rb
32
+ - lib/ruby.rb
33
+ - test/test.rb
34
+ - HISTORY
35
+ - README.md
36
+ - Rakefile
37
+ has_rdoc: true
38
+ homepage: http://banisterfiend.wordpress.com
39
+ licenses: []
40
+
41
+ post_install_message:
42
+ rdoc_options: []
43
+
44
+ require_paths:
45
+ - lib
46
+ required_ruby_version: !ruby/object:Gem::Requirement
47
+ none: false
48
+ requirements:
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
51
+ hash: 3
52
+ segments:
53
+ - 0
54
+ version: "0"
55
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ hash: 3
61
+ segments:
62
+ - 0
63
+ version: "0"
64
+ requirements: []
65
+
66
+ rubyforge_project:
67
+ rubygems_version: 1.5.2
68
+ signing_key:
69
+ specification_version: 3
70
+ summary: FIX ME
71
+ test_files: []
72
+