o 2.0.0 → 2.0.1
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/Gemfile.lock +31 -0
- data/README.md +34 -23
- data/lib/o/version.rb +1 -1
- metadata +3 -2
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
o (2.0.0)
|
|
5
|
+
|
|
6
|
+
GEM
|
|
7
|
+
remote: http://rubygems.org/
|
|
8
|
+
specs:
|
|
9
|
+
activesupport (3.0.9)
|
|
10
|
+
pa (1.0.2)
|
|
11
|
+
pa (~> 1.0.0)
|
|
12
|
+
tagen (~> 1.0.0)
|
|
13
|
+
thor (~> 0.14.0)
|
|
14
|
+
pd (1.0.2)
|
|
15
|
+
rag (1.0.6)
|
|
16
|
+
pa (~> 1.0.0)
|
|
17
|
+
tagen (~> 1.0.0)
|
|
18
|
+
thor (~> 0.14.0)
|
|
19
|
+
tagen (1.0.2)
|
|
20
|
+
activesupport
|
|
21
|
+
pd
|
|
22
|
+
thor (0.14.6)
|
|
23
|
+
watchr (0.7)
|
|
24
|
+
|
|
25
|
+
PLATFORMS
|
|
26
|
+
ruby
|
|
27
|
+
|
|
28
|
+
DEPENDENCIES
|
|
29
|
+
o!
|
|
30
|
+
rag
|
|
31
|
+
watchr
|
data/README.md
CHANGED
|
@@ -38,8 +38,8 @@ do configuration at three levels: system, user, cmdline
|
|
|
38
38
|
mail.stmp.address "stmp.gmail.com"
|
|
39
39
|
|
|
40
40
|
my.development do # namespace
|
|
41
|
-
adapter "
|
|
42
|
-
database "
|
|
41
|
+
adapter "postgresql"
|
|
42
|
+
database "hello_development"
|
|
43
43
|
username "guten"
|
|
44
44
|
end
|
|
45
45
|
|
|
@@ -62,6 +62,25 @@ alternative syntax
|
|
|
62
62
|
c.time = proc{|offset| Time.now}
|
|
63
63
|
end
|
|
64
64
|
|
|
65
|
+
a sugar syntax
|
|
66
|
+
|
|
67
|
+
# file: guten/rc.rb
|
|
68
|
+
development:
|
|
69
|
+
adapter "mysql2"
|
|
70
|
+
database "hello"
|
|
71
|
+
username "guten"
|
|
72
|
+
|
|
73
|
+
#=>
|
|
74
|
+
|
|
75
|
+
development do
|
|
76
|
+
adapter "mysql2"
|
|
77
|
+
database "hello"
|
|
78
|
+
username "guten"
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
**WARNNING**: must use \t to indent for this sugar syntax.
|
|
82
|
+
|
|
83
|
+
|
|
65
84
|
### initialize ###
|
|
66
85
|
|
|
67
86
|
either way is fine
|
|
@@ -201,36 +220,28 @@ for a list of semantic methods, see O::Semantics
|
|
|
201
220
|
|
|
202
221
|
a list of blocked methods is in O::BUILTIN_METHODS
|
|
203
222
|
|
|
204
|
-
### another sugar syntax ###
|
|
205
223
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
# file: guten/rc.rb
|
|
209
|
-
a:
|
|
210
|
-
b 1
|
|
211
|
-
c:
|
|
212
|
-
d 1
|
|
213
|
-
|
|
214
|
-
#=>
|
|
224
|
+
### some other examples ###
|
|
215
225
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
226
|
+
O do
|
|
227
|
+
name do
|
|
228
|
+
first "Guten"
|
|
229
|
+
last "Ye"
|
|
230
|
+
is "#{first} #{last}"
|
|
220
231
|
end
|
|
221
232
|
end
|
|
222
233
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
### some other examples ###
|
|
234
|
+
\# file: a.rb
|
|
226
235
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
236
|
+
c = self
|
|
237
|
+
c.host = "localhost"
|
|
238
|
+
c.port = 8080
|
|
239
|
+
c.name do |c|
|
|
240
|
+
c.first = "Guten"
|
|
231
241
|
end
|
|
232
242
|
|
|
233
243
|
|
|
244
|
+
|
|
234
245
|
Contributing
|
|
235
246
|
-------------
|
|
236
247
|
|
data/lib/o/version.rb
CHANGED
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: o
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 2.0.
|
|
5
|
+
version: 2.0.1
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Guten
|
|
@@ -10,7 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2011-07-
|
|
13
|
+
date: 2011-07-22 00:00:00 Z
|
|
14
14
|
dependencies: []
|
|
15
15
|
|
|
16
16
|
description: |
|
|
@@ -27,6 +27,7 @@ files:
|
|
|
27
27
|
- .gitignore
|
|
28
28
|
- .rspec
|
|
29
29
|
- Gemfile
|
|
30
|
+
- Gemfile.lock
|
|
30
31
|
- LICENSE
|
|
31
32
|
- README.md
|
|
32
33
|
- Ragfile
|