rsx 0.0.1

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.
data/.gitignore ADDED
@@ -0,0 +1,6 @@
1
+ pkg/*
2
+ *.gem
3
+ .bundle
4
+ *.rbc
5
+ *.tmproj
6
+
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ -cfs
2
+
data/.rvmrc ADDED
@@ -0,0 +1,2 @@
1
+ rvm use rbx
2
+
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in RSx.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,33 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rsx (0.0.1)
5
+ yard (~> 0.6.4)
6
+
7
+ GEM
8
+ remote: http://rubygems.org/
9
+ specs:
10
+ ZenTest (4.4.2)
11
+ autotest (4.4.6)
12
+ ZenTest (>= 4.4.1)
13
+ diff-lcs (1.1.2)
14
+ mspec (1.5.17)
15
+ rspec (2.3.0)
16
+ rspec-core (~> 2.3.0)
17
+ rspec-expectations (~> 2.3.0)
18
+ rspec-mocks (~> 2.3.0)
19
+ rspec-core (2.3.1)
20
+ rspec-expectations (2.3.0)
21
+ diff-lcs (~> 1.1.2)
22
+ rspec-mocks (2.3.0)
23
+ yard (0.6.4)
24
+
25
+ PLATFORMS
26
+ ruby
27
+
28
+ DEPENDENCIES
29
+ autotest (~> 4.4.0)
30
+ mspec (~> 1.5.0)
31
+ rspec (~> 2.3.0)
32
+ rsx!
33
+ yard (~> 0.6.4)
data/README.md ADDED
@@ -0,0 +1,2 @@
1
+
2
+
data/RSx.gemspec ADDED
@@ -0,0 +1,27 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "RSx/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = 'rsx'
7
+ s.version = RSx::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ['Scott Gonyea', 'Tianqing Gonyea']
10
+ s.email = %w[gonyea@gmail.com]
11
+ s.homepage = 'http://rsx.github.com/'
12
+ s.summary = 'RSx: The R Statistical Language, in Rubinius'
13
+ s.description = 'RSx seeks to implement R, using the terrific Rubinius bytecode'
14
+
15
+ s.rubyforge_project = 'rsx'
16
+
17
+ s.add_dependency 'yard', '~> 0.6.4'
18
+ s.add_development_dependency 'mspec', '~> 1.5.0'
19
+ s.add_development_dependency 'rspec', '~> 2.3.0'
20
+ s.add_development_dependency 'autotest', '~> 4.4.0'
21
+
22
+ s.files = `git ls-files`.split("\n")
23
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
24
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
25
+ s.require_paths = ["lib"]
26
+ s.executables = ["rsx"]
27
+ end
data/Rakefile ADDED
@@ -0,0 +1,22 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
3
+
4
+ require 'rspec'
5
+ require 'rspec/core'
6
+ require 'rspec/core/rake_task'
7
+
8
+ task :release => :spec
9
+
10
+ desc "Run Specs"
11
+ Rspec::Core::RakeTask.new(:spec) do |spec|
12
+ spec.pattern = "spec/**/*_spec.rb"
13
+ spec.verbose = true
14
+ spec.rspec_opts = ['--color']
15
+ end
16
+
17
+ require 'yard'
18
+
19
+ desc "Generate YARD docs"
20
+ YARD::Rake::YardocTask.new(:yard) do |t|
21
+ t.files += ['lib/**/*.rb']
22
+ end
data/bin/rsx ADDED
@@ -0,0 +1,2 @@
1
+
2
+
data/lib/RSx.rb ADDED
@@ -0,0 +1,6 @@
1
+ $:.unshift(File.dirname(__FILE__)) unless
2
+ $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
+
4
+ module RSx
5
+ autoload :Main, 'RSx/main'
6
+ end
data/lib/RSx/main.rb ADDED
@@ -0,0 +1,5 @@
1
+ module RSx
2
+ class Main
3
+ # @todo: Do.
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ module RSx
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,6 @@
1
+ # vim: filetype=ruby
2
+ require 'spec/custom'
3
+
4
+ class MSpecScript
5
+ set :target, 'rbx'
6
+ end
@@ -0,0 +1,11 @@
1
+ require "spec_helper"
2
+
3
+ IGNORE = /\.(gitmodules|png$|tar$|gz$|rbc$|gem$|pdf$)/
4
+
5
+ describe "The application itself" do
6
+ it "has no malformed whitespace" do
7
+ files = `git ls-files`.split("\n").select {|fn| fn !~ IGNORE}
8
+
9
+ files.should be_well_formed
10
+ end
11
+ end
@@ -0,0 +1,7 @@
1
+ require 'rspec'
2
+
3
+ Dir[ Bundler.root.join("spec/support/**/*.rb") ].each{|f| require f}
4
+
5
+ RSpec.configure do |c|
6
+ c.include CustomMatchers
7
+ end
@@ -0,0 +1,44 @@
1
+ module CustomMatchers
2
+ class BeWellFormed
3
+ def matches?(files)
4
+ @errors = files.map {|filename|
5
+ [
6
+ check_for_tabs(filename),
7
+ excessive_spacing(filename),
8
+ newline_precedes_eof(filename)
9
+ ]
10
+ }.flatten.compact
11
+
12
+ @errors.empty?
13
+ end
14
+
15
+ def failure_message_for_should
16
+ @errors.join("\n")
17
+ end
18
+
19
+ private
20
+ def check_for_tabs(filename)
21
+ bad_lines = File.readlines(filename).each_with_index.map do |line, line_no|
22
+ line_no + 1 if line["\t"] and line !~ /^\s+#.*\s+\n$/
23
+ end.flatten.compact
24
+
25
+ "#{filename} has tab characters on lines #{bad_lines.join(', ')}" if bad_lines.any?
26
+ end
27
+
28
+ def excessive_spacing(filename)
29
+ bad_lines = File.readlines(filename).each_with_index.map do |line, line_no|
30
+ line_no + 1 if line =~ /\s+\n$/ and line !~ /^\s+#.*\s+\n$/
31
+ end.flatten.compact
32
+
33
+ "#{filename} has spaces on the EOL on lines #{bad_lines.join(', ')}" if bad_lines.any?
34
+ end
35
+
36
+ def newline_precedes_eof(filename)
37
+ "#{filename} does not have a newline (\\n) before EOF" if File.read(filename) !~ /\n$/
38
+ end
39
+ end
40
+
41
+ def be_well_formed
42
+ BeWellFormed.new
43
+ end
44
+ end
metadata ADDED
@@ -0,0 +1,150 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rsx
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - Scott Gonyea
14
+ - Tianqing Gonyea
15
+ autorequire:
16
+ bindir: bin
17
+ cert_chain: []
18
+
19
+ date: 2010-12-22 00:00:00 -08:00
20
+ default_executable:
21
+ dependencies:
22
+ - !ruby/object:Gem::Dependency
23
+ name: yard
24
+ prerelease: false
25
+ requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ~>
29
+ - !ruby/object:Gem::Version
30
+ hash: 15
31
+ segments:
32
+ - 0
33
+ - 6
34
+ - 4
35
+ version: 0.6.4
36
+ type: :runtime
37
+ version_requirements: *id001
38
+ - !ruby/object:Gem::Dependency
39
+ name: mspec
40
+ prerelease: false
41
+ requirement: &id002 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ~>
45
+ - !ruby/object:Gem::Version
46
+ hash: 3
47
+ segments:
48
+ - 1
49
+ - 5
50
+ - 0
51
+ version: 1.5.0
52
+ type: :development
53
+ version_requirements: *id002
54
+ - !ruby/object:Gem::Dependency
55
+ name: rspec
56
+ prerelease: false
57
+ requirement: &id003 !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ~>
61
+ - !ruby/object:Gem::Version
62
+ hash: 3
63
+ segments:
64
+ - 2
65
+ - 3
66
+ - 0
67
+ version: 2.3.0
68
+ type: :development
69
+ version_requirements: *id003
70
+ - !ruby/object:Gem::Dependency
71
+ name: autotest
72
+ prerelease: false
73
+ requirement: &id004 !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ~>
77
+ - !ruby/object:Gem::Version
78
+ hash: 47
79
+ segments:
80
+ - 4
81
+ - 4
82
+ - 0
83
+ version: 4.4.0
84
+ type: :development
85
+ version_requirements: *id004
86
+ description: RSx seeks to implement R, using the terrific Rubinius bytecode
87
+ email:
88
+ - gonyea@gmail.com
89
+ executables:
90
+ - rsx
91
+ extensions: []
92
+
93
+ extra_rdoc_files: []
94
+
95
+ files:
96
+ - .gitignore
97
+ - .rspec
98
+ - .rvmrc
99
+ - Gemfile
100
+ - Gemfile.lock
101
+ - README.md
102
+ - RSx.gemspec
103
+ - Rakefile
104
+ - bin/rsx
105
+ - lib/RSx.rb
106
+ - lib/RSx/main.rb
107
+ - lib/RSx/version.rb
108
+ - spec/default.mspec
109
+ - spec/quality_spec.rb
110
+ - spec/spec_helper.rb
111
+ - spec/support/custom_matchers.rb
112
+ has_rdoc: true
113
+ homepage: http://rsx.github.com/
114
+ licenses: []
115
+
116
+ post_install_message:
117
+ rdoc_options: []
118
+
119
+ require_paths:
120
+ - lib
121
+ required_ruby_version: !ruby/object:Gem::Requirement
122
+ none: false
123
+ requirements:
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ hash: 3
127
+ segments:
128
+ - 0
129
+ version: "0"
130
+ required_rubygems_version: !ruby/object:Gem::Requirement
131
+ none: false
132
+ requirements:
133
+ - - ">="
134
+ - !ruby/object:Gem::Version
135
+ hash: 3
136
+ segments:
137
+ - 0
138
+ version: "0"
139
+ requirements: []
140
+
141
+ rubyforge_project: rsx
142
+ rubygems_version: 1.3.7
143
+ signing_key:
144
+ specification_version: 3
145
+ summary: "RSx: The R Statistical Language, in Rubinius"
146
+ test_files:
147
+ - spec/default.mspec
148
+ - spec/quality_spec.rb
149
+ - spec/spec_helper.rb
150
+ - spec/support/custom_matchers.rb