mango 0.5.0.beta1 → 0.5.0.beta2

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.
@@ -9,16 +9,14 @@ require "spec_helper"
9
9
  describe Mango::Rack::Debugger do
10
10
 
11
11
  # Ensure the ::Debugger constant is initialized
12
- class ::Debugger; end
13
-
14
- before(:all) do
15
- @mock_kernel = mock(Kernel)
16
- @mock_app = mock("app")
17
- @mock_env = mock("env")
18
- end
12
+ module ::Debugger; end
19
13
 
20
14
  before(:each) do
21
15
  $stdout = StringIO.new
16
+
17
+ @mock_kernel = double(Kernel)
18
+ @mock_app = double("app")
19
+ @mock_env = double("env")
22
20
  end
23
21
 
24
22
  after(:each) do
@@ -33,19 +31,19 @@ describe Mango::Rack::Debugger do
33
31
  ::Debugger.should_receive(:start)
34
32
  end
35
33
 
36
- it "should properly set @app" do
34
+ it "sets @app" do
37
35
  debugger = Mango::Rack::Debugger.new(@mock_app, @mock_kernel)
38
36
  debugger.instance_variable_get(:@app).should == @mock_app
39
37
  end
40
38
 
41
- it "should inform the user" do
39
+ it "informs the user" do
42
40
  Mango::Rack::Debugger.new(@mock_app, @mock_kernel)
43
41
  $stdout.string.should == <<-OUTPUT
44
42
  => Debugger enabled
45
43
  OUTPUT
46
44
  end
47
45
 
48
- it "should invoke the app" do
46
+ it "invokes the app" do
49
47
  debugger = Mango::Rack::Debugger.new(@mock_app, @mock_kernel)
50
48
  @mock_app.should_receive(:call).with(@mock_env)
51
49
  debugger.call(@mock_env)
@@ -74,37 +72,37 @@ describe Mango::Rack::Debugger do
74
72
  ::Debugger.should_not_receive(:start)
75
73
  end
76
74
 
77
- it "should set @app" do
75
+ it "sets @app" do
78
76
  debugger = Mango::Rack::Debugger.new(@mock_app, @mock_kernel)
79
77
  debugger.instance_variable_get(:@app).should == @mock_app
80
78
  end
81
79
 
82
- it "should inform the user for ruby 1.8.6" do
80
+ it "informs the user for ruby 1.8.6" do
83
81
  Mango::Rack::Debugger.new(@mock_app, @mock_kernel, "1.8.6")
84
82
  $stdout.string.should == @expected_ruby18_output
85
83
  end
86
84
 
87
- it "should inform the user for ruby 1.8.7" do
85
+ it "informs the user for ruby 1.8.7" do
88
86
  Mango::Rack::Debugger.new(@mock_app, @mock_kernel, "1.8.7")
89
87
  $stdout.string.should == @expected_ruby18_output
90
88
  end
91
89
 
92
- it "should inform the user for ruby 1.9.0" do
90
+ it "informs the user for ruby 1.9.0" do
93
91
  Mango::Rack::Debugger.new(@mock_app, @mock_kernel, "1.9.0")
94
92
  $stdout.string.should == @expected_ruby19_output
95
93
  end
96
94
 
97
- it "should inform the user for ruby 1.9.1" do
95
+ it "informs the user for ruby 1.9.1" do
98
96
  Mango::Rack::Debugger.new(@mock_app, @mock_kernel, "1.9.1")
99
97
  $stdout.string.should == @expected_ruby19_output
100
98
  end
101
99
 
102
- it "should inform the user for ruby 1.9.2" do
100
+ it "informs the user for ruby 1.9.2" do
103
101
  Mango::Rack::Debugger.new(@mock_app, @mock_kernel, "1.9.2")
104
102
  $stdout.string.should == @expected_ruby19_output
105
103
  end
106
104
 
107
- it "should invoke the app" do
105
+ it "invokes the app" do
108
106
  debugger = Mango::Rack::Debugger.new(@mock_app, @mock_kernel)
109
107
  @mock_app.should_receive(:call).with(@mock_env)
110
108
  debugger.call(@mock_env)
@@ -4,14 +4,14 @@ require "spec_helper"
4
4
  describe Mango do
5
5
  describe "version synchronizing" do
6
6
  before(:each) do
7
- @expected = "0.5.0.beta1"
7
+ @expected = "0.5.0.beta2"
8
8
  end
9
9
 
10
- it "should be correct for Mango::VERSION" do
10
+ it "is correct for Mango::VERSION" do
11
11
  Mango::VERSION.should == @expected
12
12
  end
13
13
 
14
- it "should be correct for the VERSION rubygem file" do
14
+ it "is correct for the VERSION file" do
15
15
  Dir.chdir(PROJECT_ROOT) { File.read("VERSION").chomp.should == @expected }
16
16
  end
17
17
  end
data/spec/quality_spec.rb CHANGED
@@ -6,7 +6,7 @@ describe "This project's" do
6
6
  #################################################################################################
7
7
 
8
8
  describe "git tracked files" do
9
- it "should have no malformed whitespace" do
9
+ it "has no malformed whitespace" do
10
10
  Dir.chdir(PROJECT_ROOT) do
11
11
  `git ls-files`.split("\n").each do |tracked_file|
12
12
  next if tracked_file =~ /\.jpg|\.gif/
@@ -20,7 +20,7 @@ describe "This project's" do
20
20
  #################################################################################################
21
21
 
22
22
  describe Gem::Specification do
23
- it "should build" do
23
+ it "builds a .gem successfully" do
24
24
  Dir.chdir(PROJECT_ROOT) do
25
25
  `gem build mango.gemspec`
26
26
  $?.should == 0
data/spec/spec_helper.rb CHANGED
@@ -1,11 +1,11 @@
1
1
  # encoding: UTF-8
2
+ ENV["RACK_ENV"] = "test"
2
3
  require "mango"
3
4
 
4
5
  PROJECT_ROOT = File.expand_path("..", File.dirname(__FILE__))
5
6
  SPEC_APP_ROOT = File.expand_path("app_root", File.dirname(__FILE__))
6
7
 
7
8
  class Mango::Application
8
- set :environment, :test
9
9
  set :root, SPEC_APP_ROOT
10
10
  end
11
11
 
@@ -13,6 +13,6 @@ end
13
13
 
14
14
  Dir[File.join(File.dirname(__FILE__), "support", "**", "*.rb")].each { |f| require f }
15
15
 
16
- Spec::Runner.configure do |config|
17
- config.include(MalformedWhitespaceMatchers)
16
+ RSpec.configure do |config|
17
+ config.include MalformedWhitespaceMatchers
18
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mango
3
3
  version: !ruby/object:Gem::Version
4
- hash: 949545762
4
+ hash: -792433516
5
5
  prerelease: true
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
9
  - 0
10
- - beta1
11
- version: 0.5.0.beta1
10
+ - beta2
11
+ version: 0.5.0.beta2
12
12
  platform: ruby
13
13
  authors:
14
14
  - Ryan Sobol
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-10-19 00:00:00 -07:00
19
+ date: 2010-10-21 00:00:00 -07:00
20
20
  default_executable: mango
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -27,12 +27,12 @@ dependencies:
27
27
  requirements:
28
28
  - - ~>
29
29
  - !ruby/object:Gem::Version
30
- hash: 23
30
+ hash: 17
31
31
  segments:
32
32
  - 1
33
33
  - 0
34
- - 0
35
- version: 1.0.0
34
+ - 3
35
+ version: 1.0.3
36
36
  type: :runtime
37
37
  version_requirements: *id001
38
38
  - !ruby/object:Gem::Dependency
@@ -74,12 +74,12 @@ dependencies:
74
74
  requirements:
75
75
  - - ~>
76
76
  - !ruby/object:Gem::Version
77
- hash: 35
77
+ hash: 43
78
78
  segments:
79
79
  - 3
80
80
  - 0
81
- - 18
82
- version: 3.0.18
81
+ - 22
82
+ version: 3.0.22
83
83
  type: :runtime
84
84
  version_requirements: *id004
85
85
  - !ruby/object:Gem::Dependency
@@ -90,12 +90,12 @@ dependencies:
90
90
  requirements:
91
91
  - - ~>
92
92
  - !ruby/object:Gem::Version
93
- hash: 1
93
+ hash: 29
94
94
  segments:
95
95
  - 2
96
96
  - 0
97
- - 7
98
- version: 2.0.7
97
+ - 9
98
+ version: 2.0.9
99
99
  type: :runtime
100
100
  version_requirements: *id005
101
101
  - !ruby/object:Gem::Dependency
@@ -106,12 +106,12 @@ dependencies:
106
106
  requirements:
107
107
  - - ~>
108
108
  - !ruby/object:Gem::Version
109
- hash: 39
109
+ hash: 33
110
110
  segments:
111
111
  - 0
112
112
  - 14
113
- - 0
114
- version: 0.14.0
113
+ - 3
114
+ version: 0.14.3
115
115
  type: :runtime
116
116
  version_requirements: *id006
117
117
  - !ruby/object:Gem::Dependency
@@ -122,12 +122,12 @@ dependencies:
122
122
  requirements:
123
123
  - - ~>
124
124
  - !ruby/object:Gem::Version
125
- hash: 27
125
+ hash: 13
126
126
  segments:
127
- - 1
128
- - 3
127
+ - 2
129
128
  - 0
130
- version: 1.3.0
129
+ - 1
130
+ version: 2.0.1
131
131
  type: :development
132
132
  version_requirements: *id007
133
133
  - !ruby/object:Gem::Dependency
@@ -138,12 +138,12 @@ dependencies:
138
138
  requirements:
139
139
  - - ~>
140
140
  - !ruby/object:Gem::Version
141
- hash: 3
141
+ hash: 7
142
142
  segments:
143
143
  - 0
144
144
  - 5
145
- - 4
146
- version: 0.5.4
145
+ - 6
146
+ version: 0.5.6
147
147
  type: :development
148
148
  version_requirements: *id008
149
149
  - !ruby/object:Gem::Dependency
@@ -170,12 +170,12 @@ dependencies:
170
170
  requirements:
171
171
  - - ~>
172
172
  - !ruby/object:Gem::Version
173
- hash: 1
173
+ hash: 29
174
174
  segments:
175
175
  - 2
176
176
  - 0
177
- - 7
178
- version: 2.0.7
177
+ - 9
178
+ version: 2.0.9
179
179
  type: :development
180
180
  version_requirements: *id010
181
181
  - !ruby/object:Gem::Dependency
@@ -186,12 +186,12 @@ dependencies:
186
186
  requirements:
187
187
  - - ~>
188
188
  - !ruby/object:Gem::Version
189
- hash: 11
189
+ hash: 9
190
190
  segments:
191
191
  - 0
192
192
  - 5
193
- - 0
194
- version: 0.5.0
193
+ - 1
194
+ version: 0.5.1
195
195
  type: :development
196
196
  version_requirements: *id011
197
197
  description: Mango is a dynamic, database-free, and open source website framework that is designed to make life easier for small teams of designers, developers, and content writers.
@@ -204,14 +204,14 @@ extra_rdoc_files: []
204
204
 
205
205
  files:
206
206
  - .gitignore
207
+ - .rspec
207
208
  - .yardopts
209
+ - CHANGES.mdown
208
210
  - LICENSE
209
211
  - README.mdown
210
212
  - Rakefile
211
213
  - VERSION
212
214
  - bin/mango
213
- - doc/HISTORY.mdown
214
- - doc/ROAD-MAP.mdown
215
215
  - lib/mango.rb
216
216
  - lib/mango/application.rb
217
217
  - lib/mango/content_page.rb
@@ -219,6 +219,7 @@ files:
219
219
  - lib/mango/flavored_markdown.rb
220
220
  - lib/mango/rack/debugger.rb
221
221
  - lib/mango/runner.rb
222
+ - lib/mango/templates/.gitignore
222
223
  - lib/mango/templates/Gemfile
223
224
  - lib/mango/templates/README.md
224
225
  - lib/mango/templates/config.ru
@@ -274,7 +275,6 @@ files:
274
275
  - spec/mango/rack/debugger_spec.rb
275
276
  - spec/mango/version_spec.rb
276
277
  - spec/quality_spec.rb
277
- - spec/spec.opts
278
278
  - spec/spec_helper.rb
279
279
  - spec/support/matchers/malformed_whitespace_matchers.rb
280
280
  has_rdoc: true
@@ -353,6 +353,5 @@ test_files:
353
353
  - spec/mango/rack/debugger_spec.rb
354
354
  - spec/mango/version_spec.rb
355
355
  - spec/quality_spec.rb
356
- - spec/spec.opts
357
356
  - spec/spec_helper.rb
358
357
  - spec/support/matchers/malformed_whitespace_matchers.rb
data/doc/ROAD-MAP.mdown DELETED
@@ -1,10 +0,0 @@
1
- Road-map of Potential Improvements
2
- ==================================
3
-
4
- In no particular order of importance:
5
-
6
- Mango::Dependencies
7
- -------------------
8
-
9
- * Compare, contrast, extend, and/or integrate with Bundler
10
- * Promote the installation and use of RVM
data/spec/spec.opts DELETED
@@ -1,3 +0,0 @@
1
- --colour
2
- --format progress
3
- --loadby mtime