blirb 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,11 +1,15 @@
1
1
  # Blirb
2
2
 
3
+ ### Currently only compatible with Ruby ~> 1.9.2
4
+
3
5
  Blirb is a ruby teaching and practice tool that sits on top of IRB, also known
4
6
  as the "Interactive Ruby Shell". It can be used in two different ways:
5
7
 
6
8
  ## Using Blirb to learn
7
9
 
8
- As a student, Blirb can be used in tutorial mode by running `./bin/blirb`.
10
+ As a student, Blirb can be used in tutorial mode by installing (`gem install blirb`)
11
+ and then simply running `blirb`. Custom task files (as described below) can be passed as a
12
+ single command line argument: `blirb custom_task_file.rb`.
9
13
  The student selects a task to complete that involves various ruby concepts.
10
14
  He is then dropped into a special IRB session where several additional global
11
15
  commands have been added.
data/bin/blirb CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require File.expand_path('../../lib/blirb', __FILE__)
3
+ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
4
+ require 'blirb'
4
5
 
5
6
  # # if a tasks file is passed in, parse the yml-based tasks and feed them to blirb
6
7
 
data/lib/blirb.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require 'irb'
2
- require File.expand_path('../blirb/commands', __FILE__)
3
- require File.expand_path('../blirb/task', __FILE__)
4
- require File.expand_path('../blirb/behaviors', __FILE__)
5
- require File.expand_path('../blirb/core_extensions', __FILE__)
6
- require File.expand_path('../blirb/coordinator', __FILE__)
2
+ require 'blirb/commands'
3
+ require 'blirb/task'
4
+ require 'blirb/behaviors'
5
+ require 'blirb/core_extensions'
6
+ require 'blirb/version'
7
+ require 'blirb/coordinator'
@@ -39,6 +39,7 @@ module Blirb
39
39
 
40
40
  private
41
41
  def list_commands
42
+ puts "\nWelcome to Blirb v#{Blirb::VERSION}\n\n"
42
43
  puts "\nThe following commands are available during the tutorial (irb) session:\n\n"
43
44
  Blirb::COMMANDS.each do |command|
44
45
  puts "\t#{command}\n"
data/lib/blirb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Blirb
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/pkg/blirb-0.0.4.gem CHANGED
Binary file
Binary file
data/spec/blirb_spec.rb CHANGED
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe "Blirb" do
4
4
  it "fails" do
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,3 @@
1
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
- $LOAD_PATH.unshift(File.dirname(__FILE__))
3
- require 'rspec'
4
1
  require 'blirb'
5
2
 
6
3
  # Requires supporting files with custom matchers and macros, etc,
data/spec/task_spec.rb CHANGED
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe "each task" do
4
4
  it "has verification code that allows it to pass" do
metadata CHANGED
@@ -1,48 +1,35 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: blirb
3
- version: !ruby/object:Gem::Version
4
- hash: 23
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.5
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 4
10
- version: 0.0.4
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - ian asaff
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-08-16 00:00:00 -04:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2011-08-17 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: rspec
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70214756373440 !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
33
22
  type: :development
34
- version_requirements: *id001
23
+ prerelease: false
24
+ version_requirements: *70214756373440
35
25
  description: ruby adventure awaits! also, you will learn stuff.
36
- email:
26
+ email:
37
27
  - ian.asaff@gmail.com
38
- executables:
28
+ executables:
39
29
  - blirb
40
30
  extensions: []
41
-
42
31
  extra_rdoc_files: []
43
-
44
- files:
45
- - .DS_Store
32
+ files:
46
33
  - .autotest
47
34
  - .document
48
35
  - .gitignore
@@ -65,44 +52,35 @@ files:
65
52
  - pkg/blirb-0.0.2.gem
66
53
  - pkg/blirb-0.0.3.gem
67
54
  - pkg/blirb-0.0.4.gem
55
+ - pkg/blirb-0.0.5.gem
68
56
  - spec/blirb_spec.rb
69
57
  - spec/spec_helper.rb
70
58
  - spec/task_spec.rb
71
- has_rdoc: true
72
- homepage: ""
59
+ homepage: ''
73
60
  licenses: []
74
-
75
61
  post_install_message:
76
62
  rdoc_options: []
77
-
78
- require_paths:
63
+ require_paths:
79
64
  - lib
80
- required_ruby_version: !ruby/object:Gem::Requirement
65
+ required_ruby_version: !ruby/object:Gem::Requirement
81
66
  none: false
82
- requirements:
83
- - - ">="
84
- - !ruby/object:Gem::Version
85
- hash: 3
86
- segments:
87
- - 0
88
- version: "0"
89
- required_rubygems_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ! '>='
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ required_rubygems_version: !ruby/object:Gem::Requirement
90
72
  none: false
91
- requirements:
92
- - - ">="
93
- - !ruby/object:Gem::Version
94
- hash: 3
95
- segments:
96
- - 0
97
- version: "0"
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
98
77
  requirements: []
99
-
100
78
  rubyforge_project: blirb
101
- rubygems_version: 1.6.2
79
+ rubygems_version: 1.8.6
102
80
  signing_key:
103
81
  specification_version: 3
104
82
  summary: command line ruby tutorial adventure
105
- test_files:
83
+ test_files:
106
84
  - spec/blirb_spec.rb
107
85
  - spec/spec_helper.rb
108
86
  - spec/task_spec.rb
data/.DS_Store DELETED
Binary file