sansom 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 83d66dba113385fce6c56f322029124339fd7b95
4
- data.tar.gz: b8bd60af145d70fa86659611cbb68cfc7b406377
3
+ metadata.gz: c81abee4ed6b93558cbc51b117135cf674fde459
4
+ data.tar.gz: 1bbfd96b4165afe38158c02ac0c0f8cbef6fa0da
5
5
  SHA512:
6
- metadata.gz: 848745905809706be2a7fe194f017249053296ddd858b6f380425ed9d5c89bd92eab1049c9b33b4a00b7cf943d311d2ea6ffce33e1efb641dca4c26518495fda
7
- data.tar.gz: 566b2bf914317d9c64df03cef8518be605d7b26835bf10602f0883ce960ec62ccc45072434d177acdebcb411c2e55f77a5f3ba2efc9ff719af9de46cdc5a436a
6
+ metadata.gz: 52adf8b2ff6fcfa0ebc4e84647a5f3a912c02c47b50363dfd434eecf60f439ce1e32eec5f773b43b4333b7ece92c26824997283d8b62c113af99620cdd735ba0
7
+ data.tar.gz: cc53ff5b59f6da3fb832133ec986131621e524ced4fc5e2971f7644c8036ccbac809db0f7557c5cb411cb2238e31309f123ff113804fa0e0a362a1cbecb56ab9
data/changelog.md CHANGED
@@ -28,3 +28,7 @@ Here's an example
28
28
  end
29
29
 
30
30
  s.start 2000
31
+
32
+ 0.0.4
33
+
34
+ - Fixed bug with with requiring pine
data/examples/before.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require_relative "../lib/sansom"
3
+ require_relative "../lib/sansom" rescue require "sansom"
4
4
 
5
5
  s = Sansom.new
6
6
 
data/examples/generic.rb CHANGED
@@ -1,8 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "json"
4
- #require "sansom"
5
- require_relative "../lib/sansom"
4
+ require_relative "../lib/sansom" rescue require "sansom"
6
5
 
7
6
  class Sansom
8
7
  def food_response r
data/examples/mixin.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require "sansom"
3
+ require_relative "../lib/sansom" rescue require "sansom"
4
4
 
5
5
  class Mixin < Hash
6
6
  include Sansomable
data/lib/sansom.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "rack"
4
- require_relative "./sansom/pine"
4
+ require "sansom/pine"
5
5
 
6
6
  module Sansomable
7
7
  InvalidRouteError = Class.new StandardError
data/sansom.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "sansom"
7
- s.version = "0.0.3"
7
+ s.version = "0.0.4"
8
8
  s.authors = ["Nathaniel Symer"]
9
9
  s.email = ["nate@natesymer.com"]
10
10
  s.summary = "Flexible, versatile, light web framework named after Sansom street in Philly."
@@ -18,4 +18,5 @@ Gem::Specification.new do |s|
18
18
  s.require_paths = ["lib"]
19
19
 
20
20
  s.add_development_dependency "bundler", "~> 1.6"
21
+ s.add_dependency "rack", "~> 1"
21
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sansom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathaniel Symer
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.6'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rack
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1'
27
41
  description: Flexible, versatile, light web framework named after Sansom street in
28
42
  Philly.It's under 140 lines of code & and it's lightning fast. It uses tree-based
29
43
  route resolution.