red 4.1.1 → 4.1.2

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/Manifest.txt CHANGED
@@ -5,13 +5,11 @@ PostInstall.txt
5
5
  README.txt
6
6
  Rakefile
7
7
  bin/red
8
- config/hoe.rb
9
- config/requirements.rb
8
+ config/website.yml
10
9
  lib/red.rb
11
10
  lib/red/errors.rb
12
11
  lib/red/executable.rb
13
12
  lib/red/plugin.rb
14
- lib/red/version.rb
15
13
  lib/red/nodes/assignment_nodes.rb
16
14
  lib/red/nodes/call_nodes.rb
17
15
  lib/red/nodes/control_nodes.rb
@@ -22,7 +20,6 @@ lib/red/nodes/literal_nodes.rb
22
20
  lib/red/nodes/logic_nodes.rb
23
21
  lib/red/nodes/variable_nodes.rb
24
22
  lib/source/ruby.rb
25
- lib/source/redshift
26
23
  lib/source/redshift/accessors.rb
27
24
  lib/source/redshift/browser.rb
28
25
  lib/source/redshift/chainable.rb
@@ -41,7 +38,6 @@ lib/source/redshift/tween.rb
41
38
  lib/source/redshift/user_events.rb
42
39
  lib/source/redshift/validator.rb
43
40
  lib/source/redshift/window.rb
44
- lib/source/redspec
45
41
  lib/source/redspec/index.html
46
42
  lib/source/redspec/lib
47
43
  lib/source/redspec/lib/red_spec
@@ -56,6 +52,3 @@ spec/array.red
56
52
  spec/hash.red
57
53
  spec/object.red
58
54
  spec/string.red
59
- tasks/deployment.rake
60
- tasks/environment.rake
61
- tasks/rspec.rake
data/Rakefile CHANGED
@@ -1,4 +1,31 @@
1
- require 'config/requirements'
2
- require 'config/hoe'
1
+ %w[rubygems rake rake/clean fileutils newgem rubigen].each { |f| require f }
2
+ require File.dirname(__FILE__) + '/lib/red'
3
3
 
4
- Dir['tasks/**/*.rake'].each { |rake| load rake }
4
+ # Generate all the Rake tasks
5
+ # Run 'rake -T' to see list of generated tasks (from gem root directory)
6
+ $hoe = Hoe.new('red', Red::VERSION) do |p|
7
+ p.developer('Jesse Sielaff', 'jesse.sielaff@gmail.com')
8
+ p.description = 'Red writes like Ruby and runs like JavaScript.'
9
+ p.changes = '' #p.paragraphs_of("History.txt", 0..1).join("\n\n")
10
+ p.post_install_message = 'PostInstall.txt'
11
+ p.name = 'red'
12
+ p.rubyforge_name = 'red-js'
13
+ p.extra_deps = [
14
+ ['ParseTree', '~> 2.2.0'],
15
+ ['rake', '~> 0.8.3']
16
+ ]
17
+ p.extra_dev_deps = [
18
+ ['newgem', ">= #{::Newgem::VERSION}"]
19
+ ]
20
+
21
+ p.clean_globs |= %w[**/.DS_Store tmp *.log]
22
+ path = (p.rubyforge_name == p.name) ? p.rubyforge_name : "\#{p.rubyforge_name}/\#{p.name}"
23
+ p.remote_rdoc_dir = File.join(path.gsub(/^#{p.rubyforge_name}\/?/,''), 'rdoc')
24
+ p.rsync_args = '-av --delete --ignore-errors'
25
+ end
26
+
27
+ require 'newgem/tasks' # load /tasks/*.rake
28
+ Dir['tasks/**/*.rake'].each { |t| load t }
29
+
30
+ # TODO - want other tests/tasks run by default? Add them to the list
31
+ # task :default => [:spec, :features]
@@ -0,0 +1,2 @@
1
+ host: jessesielaff@red-js.rubyforge.org
2
+ remote_dir: /var/www/gforge-projects/red-js/red
data/lib/red.rb CHANGED
@@ -15,6 +15,8 @@ require 'red/nodes/logic_nodes'
15
15
  require 'red/nodes/variable_nodes'
16
16
 
17
17
  module Red # :nodoc:
18
+ VERSION = '4.1.2'
19
+
18
20
  ARRAY_NODES = {
19
21
  :and => LogicNode::Conjunction::And,
20
22
  :alias => DefinitionNode::Alias,
@@ -34,9 +34,9 @@ class Request
34
34
  `this.__xhr__ = typeof(ActiveXObject)=='undefined' ? new XMLHttpRequest : new ActiveXObject('MSXML2.XMLHTTP')`
35
35
  @options = OPTIONS.merge(options)
36
36
  `#{@options[:headers]}.__xhr__=this.__xhr__` # MooTools sets the ResponseHeaders in the xhr
37
- #def (@options[:headers]).[](name) # only during execution, but allows you to get
38
- # `this.__xhr__.getResponseHeader(name)` # at them at any time. I'm not sure whether it
39
- #end # is necessary for us to emulate this exactly.
37
+ # def (@options[:headers]).[](name) # only during execution, but allows you to get
38
+ # `this.__xhr__.getResponseHeader(name)` # at them at any time. I'm not sure whether it
39
+ # end # is necessary for us to emulate this exactly.
40
40
  end
41
41
 
42
42
  # call-seq:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: red
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.1
4
+ version: 4.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesse Sielaff
@@ -30,7 +30,17 @@ dependencies:
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 0.8.1
33
+ version: 0.8.3
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: newgem
37
+ type: :development
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 1.0.6
34
44
  version:
35
45
  - !ruby/object:Gem::Dependency
36
46
  name: hoe
@@ -40,7 +50,7 @@ dependencies:
40
50
  requirements:
41
51
  - - ">="
42
52
  - !ruby/object:Gem::Version
43
- version: 1.8.2
53
+ version: 1.8.0
44
54
  version:
45
55
  description: Red writes like Ruby and runs like JavaScript.
46
56
  email:
@@ -63,13 +73,11 @@ files:
63
73
  - README.txt
64
74
  - Rakefile
65
75
  - bin/red
66
- - config/hoe.rb
67
- - config/requirements.rb
76
+ - config/website.yml
68
77
  - lib/red.rb
69
78
  - lib/red/errors.rb
70
79
  - lib/red/executable.rb
71
80
  - lib/red/plugin.rb
72
- - lib/red/version.rb
73
81
  - lib/red/nodes/assignment_nodes.rb
74
82
  - lib/red/nodes/call_nodes.rb
75
83
  - lib/red/nodes/control_nodes.rb
@@ -80,7 +88,6 @@ files:
80
88
  - lib/red/nodes/logic_nodes.rb
81
89
  - lib/red/nodes/variable_nodes.rb
82
90
  - lib/source/ruby.rb
83
- - lib/source/redshift
84
91
  - lib/source/redshift/accessors.rb
85
92
  - lib/source/redshift/browser.rb
86
93
  - lib/source/redshift/chainable.rb
@@ -99,7 +106,6 @@ files:
99
106
  - lib/source/redshift/user_events.rb
100
107
  - lib/source/redshift/validator.rb
101
108
  - lib/source/redshift/window.rb
102
- - lib/source/redspec
103
109
  - lib/source/redspec/index.html
104
110
  - lib/source/redspec/lib
105
111
  - lib/source/redspec/lib/red_spec
@@ -114,15 +120,9 @@ files:
114
120
  - spec/hash.red
115
121
  - spec/object.red
116
122
  - spec/string.red
117
- - tasks/deployment.rake
118
- - tasks/environment.rake
119
- - tasks/rspec.rake
120
123
  has_rdoc: true
121
- homepage: http://red-js.rubyforge.org
122
- post_install_message: |
123
-
124
- For more information on Red, see http://github.com/jessesielaff/red/wikis
125
-
124
+ homepage: Red takes the Ruby you write and turns it into JavaScript for your browser.
125
+ post_install_message: PostInstall.txt
126
126
  rdoc_options:
127
127
  - --main
128
128
  - README.txt
@@ -146,6 +146,6 @@ rubyforge_project: red-js
146
146
  rubygems_version: 1.2.0
147
147
  signing_key:
148
148
  specification_version: 2
149
- summary: Red writes like Ruby and runs like JavaScript.
149
+ summary: ""
150
150
  test_files: []
151
151
 
data/config/hoe.rb DELETED
@@ -1,73 +0,0 @@
1
- require 'red/version'
2
-
3
- AUTHOR = 'Jesse Sielaff'
4
- EMAIL = "jesse.sielaff@gmail.com"
5
- DESCRIPTION = "Red writes like Ruby and runs like JavaScript."
6
- GEM_NAME = 'red'
7
- RUBYFORGE_PROJECT = 'red-js'
8
- HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
9
- DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
10
- EXTRA_DEPENDENCIES = [
11
- ['ParseTree', '~> 2.2.0'],
12
- ['rake', '~> 0.8.1']
13
- ]
14
-
15
- @config_file = "~/.rubyforge/user-config.yml"
16
- @config = nil
17
- RUBYFORGE_USERNAME = "unknown"
18
- def rubyforge_username
19
- unless @config
20
- begin
21
- @config = YAML.load(File.read(File.expand_path(@config_file)))
22
- rescue
23
- puts <<-EOS
24
- ERROR: No rubyforge config file found: #{@config_file}
25
- Run 'rubyforge setup' to prepare your env for access to Rubyforge
26
- - See http://newgem.rubyforge.org/rubyforge.html for more details
27
- EOS
28
- exit
29
- end
30
- end
31
- RUBYFORGE_USERNAME.replace @config["username"]
32
- end
33
-
34
-
35
- REV = nil
36
- # UNCOMMENT IF REQUIRED:
37
- # REV = YAML.load(`svn info`)['Revision']
38
- VERS = Red::VERSION::STRING + (REV ? ".#{REV}" : "")
39
- RDOC_OPTS = [
40
- "--quiet",
41
- "--title", "red documentation",
42
- "--opname", "index.html",
43
- "--line-numbers"
44
- ]
45
-
46
- class Hoe
47
- def extra_deps
48
- @extra_deps.reject! { |x| Array(x).first == 'hoe' }
49
- @extra_deps
50
- end
51
- end
52
-
53
- # Generate all the Rake tasks
54
- # Run 'rake -T' to see list of generated tasks (from gem root directory)
55
- $hoe = Hoe.new(GEM_NAME, VERS) do |p|
56
- p.developer(AUTHOR, EMAIL)
57
- p.description = DESCRIPTION
58
- p.summary = DESCRIPTION
59
- p.url = HOMEPATH
60
- p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
61
- p.test_globs = ["test/**/test_*.rb"]
62
- p.clean_globs |= ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store'] #An array of file patterns to delete on clean.
63
-
64
- # == Optional
65
- p.extra_deps = EXTRA_DEPENDENCIES
66
-
67
- #p.spec_extras = {} # A hash of extra values to set in the gemspec.
68
- end
69
-
70
- PATH = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : "#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
71
- $hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')
72
- $hoe.rsync_args = '-av --delete --ignore-errors'
73
- $hoe.spec.post_install_message = File.open(File.dirname(__FILE__) + "/../PostInstall.txt").read rescue ""
@@ -1,15 +0,0 @@
1
- require 'fileutils'
2
- include FileUtils
3
-
4
- require 'rubygems'
5
- %w[rake hoe newgem rubigen].each do |req_gem|
6
- begin
7
- require req_gem
8
- rescue LoadError
9
- puts "This Rakefile requires the '#{req_gem}' RubyGem."
10
- puts "Installation: gem install #{req_gem} -y"
11
- exit
12
- end
13
- end
14
-
15
- $:.unshift(File.join(File.dirname(__FILE__), %w[.. lib]))
data/lib/red/version.rb DELETED
@@ -1,9 +0,0 @@
1
- module Red
2
- module VERSION #:nodoc:
3
- MAJOR = 4
4
- MINOR = 1
5
- TINY = 1
6
-
7
- STRING = [MAJOR, MINOR, TINY].join('.')
8
- end
9
- end
@@ -1,26 +0,0 @@
1
- desc 'Release the website and new gem version'
2
- task :deploy => [:check_version, :publish_docs, :release] do
3
- end
4
-
5
- task :check_version do
6
- unless ENV['VERSION']
7
- puts 'Must pass a VERSION=x.y.z release version'
8
- exit
9
- end
10
- unless ENV['VERSION'] == VERS
11
- puts "Please update your version.rb to match the release version, currently #{VERS}"
12
- exit
13
- end
14
- end
15
-
16
- desc 'Install the package as a gem, without generating documentation(ri/rdoc)'
17
- task :ig => [:clean, :package] do
18
- sh "#{'sudo ' unless Hoe::WINDOZE }gem install pkg/*.gem --no-rdoc --no-ri"
19
- end
20
-
21
- namespace :manifest do
22
- desc 'Recreate Manifest.txt to include ALL files'
23
- task :refresh do
24
- `rake check_manifest | patch -p0 > Manifest.txt`
25
- end
26
- end
@@ -1,7 +0,0 @@
1
- task :ruby_env do
2
- RUBY_APP = if RUBY_PLATFORM =~ /java/
3
- "jruby"
4
- else
5
- "ruby"
6
- end unless defined? RUBY_APP
7
- end
data/tasks/rspec.rake DELETED
@@ -1,21 +0,0 @@
1
- begin
2
- require 'spec'
3
- rescue LoadError
4
- require 'rubygems'
5
- require 'spec'
6
- end
7
- begin
8
- require 'spec/rake/spectask'
9
- rescue LoadError
10
- puts <<-EOS
11
- To use rspec for testing you must install rspec gem:
12
- gem install rspec
13
- EOS
14
- exit(0)
15
- end
16
-
17
- desc "Run the specs under spec/models"
18
- Spec::Rake::SpecTask.new do |t|
19
- t.spec_opts = ['--options', "spec/spec.opts"]
20
- t.spec_files = FileList['spec/**/*_spec.rb']
21
- end