a_series_of_tubes 1.1.2 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +1 -1
- data/a_series_of_tubes.gemspec +4 -4
- data/lib/a_series_of_tubes/tube_record/sql_object.rb +11 -0
- data/lib/a_series_of_tubes/version.rb +1 -1
- data/pkg/a_series_of_tubes-1.1.2.gem +0 -0
- metadata +20 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f849c1ad3cff0489f3cc1dad761c060663aeacc8
|
4
|
+
data.tar.gz: 35fe610ed0cba5073f0ff2a6dcc3851dd8b14799
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a17dcc44cca278bb4471f2edebb72591a521619865fedd90d31a51e125fa1b0b237ad25c8f8d3c90b048562c27402dd8340887ec723079f754330c3126ad6392
|
7
|
+
data.tar.gz: c68099cc312793cc0629086157f4b64e38b98f19c4205401b33b1503e0e9820b7d4f493e4460ea49cda0e6a9dc74f7507cefe93cbc4b9782d1da38756c93580d
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
This is a simple web development framework built in Ruby! It is currently under development, so stay tuned for more updates!
|
4
4
|
|
5
|
-
[Sample Server](http://www.github.com/danmakenoise/a_series_of_tubes_demo) | [Live Link](http://
|
5
|
+
[Sample Server](http://www.github.com/danmakenoise/a_series_of_tubes_demo) | [Live Link](http://asotd.danphillips.io)
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
data/a_series_of_tubes.gemspec
CHANGED
@@ -20,8 +20,8 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.10"
|
22
22
|
spec.add_development_dependency "rake", "~> 10.0"
|
23
|
-
spec.add_development_dependency "rspec"
|
24
|
-
spec.add_runtime_dependency "rack"
|
25
|
-
spec.add_runtime_dependency "json"
|
26
|
-
spec.add_runtime_dependency "sqlite3"
|
23
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
24
|
+
spec.add_runtime_dependency "rack", "~> 1.0"
|
25
|
+
spec.add_runtime_dependency "json", "~> 1.0"
|
26
|
+
spec.add_runtime_dependency "sqlite3", "~> 1.0"
|
27
27
|
end
|
@@ -102,6 +102,17 @@ module ASeriesOfTubes
|
|
102
102
|
def save
|
103
103
|
self.id ? self.update : self.insert
|
104
104
|
end
|
105
|
+
|
106
|
+
def destroy
|
107
|
+
return unless self.id
|
108
|
+
|
109
|
+
ASeriesOfTubes::TubeRecord::DBConnection.execute(<<-SQL)
|
110
|
+
DELETE FROM
|
111
|
+
#{self.class.table_name}
|
112
|
+
WHERE
|
113
|
+
id = #{self.id}
|
114
|
+
SQL
|
115
|
+
end
|
105
116
|
end
|
106
117
|
end
|
107
118
|
end
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: a_series_of_tubes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Phillips
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -42,58 +42,58 @@ dependencies:
|
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
47
|
+
version: '3.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
54
|
+
version: '3.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rack
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
61
|
+
version: '1.0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
68
|
+
version: '1.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: json
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
75
|
+
version: '1.0'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
82
|
+
version: '1.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: sqlite3
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
89
|
+
version: '1.0'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
96
|
+
version: '1.0'
|
97
97
|
description:
|
98
98
|
email:
|
99
99
|
- dan@danphillips.io
|
@@ -134,6 +134,7 @@ files:
|
|
134
134
|
- pkg/a_series_of_tubes-1.0.1.gem
|
135
135
|
- pkg/a_series_of_tubes-1.1.0.gem
|
136
136
|
- pkg/a_series_of_tubes-1.1.1.gem
|
137
|
+
- pkg/a_series_of_tubes-1.1.2.gem
|
137
138
|
homepage: http://www.github.com/danmakenoise/a_series_of_tubes
|
138
139
|
licenses:
|
139
140
|
- MIT
|
@@ -154,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
155
|
version: '0'
|
155
156
|
requirements: []
|
156
157
|
rubyforge_project:
|
157
|
-
rubygems_version: 2.
|
158
|
+
rubygems_version: 2.4.5
|
158
159
|
signing_key:
|
159
160
|
specification_version: 4
|
160
161
|
summary: a web development framework
|