lego-core 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -64,9 +64,11 @@ It's all about the bits an pieces!
64
64
  Lego.plugin SamplePlugin
65
65
 
66
66
  class MyApp < Lego::Controller
67
+
67
68
  get '/hello' do
68
69
  h1 'Hello world'
69
70
  end
71
+
70
72
  end
71
73
 
72
74
  == Example Rackup/Shotgun file (config.ru)
@@ -86,6 +88,8 @@ It's all about the bits an pieces!
86
88
 
87
89
  shotgun config.ru
88
90
 
91
+ # Now open up a web browser and point it to http://127.0.0.1:9393/hello or :9292 if you are using rackup
92
+
89
93
  == Thoughts
90
94
 
91
95
  - Move ActionContext and RouteHandler into different module that controller?
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{lego-core}
8
- s.version = "0.0.1"
8
+ s.version = "0.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Mathias Stjernstr\303\266m", "Patrik Hedman"]
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
22
22
  "VERSION",
23
23
  "examples/config.ru",
24
24
  "lego-core.gemspec",
25
- "lib/lego.rb",
25
+ "lib/lego-core.rb",
26
26
  "lib/lego/controller.rb",
27
27
  "lib/lego/controller/action_context.rb",
28
28
  "lib/lego/controller/config.rb",
File without changes
@@ -1,7 +1,7 @@
1
1
  $LOAD_PATH.unshift(File.dirname(__FILE__))
2
2
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'lib'))
3
3
 
4
- require 'lib/lego'
4
+ require 'lib/lego-core'
5
5
  require 'spec'
6
6
 
7
7
  def create_new_app(class_name, baseclass = Class)
@@ -32,7 +32,7 @@ def reset_lego_base
32
32
  Object.class_eval do
33
33
  remove_const :Lego
34
34
  end
35
- load 'lib/lego.rb'
35
+ load 'lib/lego-core.rb'
36
36
  load 'lib/lego/plugin.rb'
37
37
  load 'lib/lego/plugin/controller/not_found.rb'
38
38
  load 'lib/lego/controller.rb'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lego-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Mathias Stjernstr\xC3\xB6m"
@@ -29,7 +29,7 @@ files:
29
29
  - VERSION
30
30
  - examples/config.ru
31
31
  - lego-core.gemspec
32
- - lib/lego.rb
32
+ - lib/lego-core.rb
33
33
  - lib/lego/controller.rb
34
34
  - lib/lego/controller/action_context.rb
35
35
  - lib/lego/controller/config.rb