godblogit 0.1.1 → 0.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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
data/godblogit.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{godblogit}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Matthew Sullivan"]
data/lib/config.ru CHANGED
@@ -1,5 +1,4 @@
1
1
  require 'sinatra/base'
2
- require 'sequel'
3
2
  require 'godblogit'
4
3
 
5
4
  run GodBlogIt
data/lib/godblogit.rb CHANGED
@@ -1,15 +1,3 @@
1
- DB = Sequel.sqlite
2
-
3
- DB.create_table :posts do
4
- primary_key :id
5
- String :title
6
- Text :body
7
- end
8
-
9
- posts.insert(:title => 'First', :body => "Hello!")
10
-
11
- posts = DB[:posts]
12
-
13
1
  class GodBlogIt < Sinatra::Base
14
2
  get '/' do
15
3
  "#{posts.first}"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: godblogit
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matthew Sullivan