tagen 0.2.1 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +36 -1
- data/Rakefile +8 -1
- data/TODO +1 -0
- data/lib/tagen/audioinfo.rb +1 -0
- data/lib/tagen/cairo.rb +2 -0
- data/lib/tagen/core.rb +2 -0
- data/lib/tagen/core/array.rb +58 -0
- data/lib/tagen/core/enumerable.rb +20 -0
- data/lib/tagen/core/enumerator.rb +29 -0
- data/lib/tagen/core/module.rb +5 -4
- data/lib/tagen/core/pa.rb +53 -75
- data/lib/tagen/core/pa/cmd.rb +59 -52
- data/lib/tagen/core/pa/dir.rb +41 -20
- data/lib/tagen/core/pa/path.rb +132 -31
- data/lib/tagen/core/pa/state.rb +17 -6
- data/lib/tagen/core/string/pyformat.rb +2 -2
- data/lib/tagen/erb.rb +35 -0
- data/lib/tagen/magick.rb +1 -0
- data/lib/tagen/ncurses.rb +1 -0
- data/lib/tagen/pathname.rb +1 -0
- data/lib/tagen/poppler.rb +1 -0
- data/lib/tagen/socket.rb +2 -0
- data/lib/tagen/tree.rb +2 -0
- data/lib/tagen/xmpp4r.rb +1 -0
- data/lib/tagen/yaml.rb +36 -0
- data/spec/spec_helper.rb +14 -0
- data/spec/tagen/core/array_spec.rb +37 -0
- data/spec/tagen/core/enumerator_spec.rb +21 -0
- data/spec/tagen/core/pa/cmd_spec.rb +17 -14
- data/spec/tagen/core/pa/dir_spec.rb +20 -5
- data/spec/tagen/core/pa/path_spec.rb +117 -0
- data/spec/tagen/core/pa/state_spec.rb +7 -0
- data/spec/tagen/erb_spec.rb +19 -0
- data/spec/tagen/yaml_spec.rb +32 -0
- data/version.rb +1 -1
- metadata +13 -2
@@ -0,0 +1,32 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
require "tagen/yaml"
|
3
|
+
require "tagen/core"
|
4
|
+
require "tmpdir"
|
5
|
+
require "fileutils"
|
6
|
+
|
7
|
+
describe YAML do
|
8
|
+
before :all do
|
9
|
+
@curdir = Dir.pwd
|
10
|
+
@tmpdir = Dir.mktmpdir
|
11
|
+
Dir.chdir @tmpdir
|
12
|
+
end
|
13
|
+
|
14
|
+
after :all do
|
15
|
+
Dir.chdir @curdir
|
16
|
+
FileUtils.rm_r @tmpdir
|
17
|
+
end
|
18
|
+
|
19
|
+
describe ".dump" do
|
20
|
+
it "support Pa" do
|
21
|
+
YAML.dump("foo", Pa('a'))
|
22
|
+
File.read('a').should =~ /foo/
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
describe ".load" do
|
27
|
+
it "support Pa" do
|
28
|
+
YAML.dump('foo', open('b', 'w+'))
|
29
|
+
YAML.load(Pa('b')).should == 'foo'
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
data/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: tagen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.2.
|
5
|
+
version: 0.2.3
|
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-03-
|
13
|
+
date: 2011-03-19 00:00:00 +08:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -53,6 +53,7 @@ files:
|
|
53
53
|
- LICENSE
|
54
54
|
- README.md
|
55
55
|
- Rakefile
|
56
|
+
- TODO
|
56
57
|
- docs/Architecture.md
|
57
58
|
- docs/CoreExtensions.md
|
58
59
|
- docs/ExtraExtensions.md
|
@@ -61,6 +62,8 @@ files:
|
|
61
62
|
- lib/tagen/core.rb
|
62
63
|
- lib/tagen/core/array.rb
|
63
64
|
- lib/tagen/core/array/extract_options.rb
|
65
|
+
- lib/tagen/core/enumerable.rb
|
66
|
+
- lib/tagen/core/enumerator.rb
|
64
67
|
- lib/tagen/core/hash.rb
|
65
68
|
- lib/tagen/core/io.rb
|
66
69
|
- lib/tagen/core/kernel.rb
|
@@ -78,6 +81,7 @@ files:
|
|
78
81
|
- lib/tagen/core/string.rb
|
79
82
|
- lib/tagen/core/string/pyformat.rb
|
80
83
|
- lib/tagen/core/time.rb
|
84
|
+
- lib/tagen/erb.rb
|
81
85
|
- lib/tagen/gdk_pixbuf2.rb
|
82
86
|
- lib/tagen/gtk2.rb
|
83
87
|
- lib/tagen/magick.rb
|
@@ -90,12 +94,19 @@ files:
|
|
90
94
|
- lib/tagen/vim.rb
|
91
95
|
- lib/tagen/xmpp4r.rb
|
92
96
|
- lib/tagen/xmpp4r/roster.rb
|
97
|
+
- lib/tagen/yaml.rb
|
93
98
|
- spec/spec_helper.rb
|
94
99
|
- spec/tagen/cairo_spec.rb
|
95
100
|
- spec/tagen/core/array/extract_options_spec.rb
|
101
|
+
- spec/tagen/core/array_spec.rb
|
102
|
+
- spec/tagen/core/enumerator_spec.rb
|
96
103
|
- spec/tagen/core/pa/cmd_spec.rb
|
97
104
|
- spec/tagen/core/pa/dir_spec.rb
|
105
|
+
- spec/tagen/core/pa/path_spec.rb
|
106
|
+
- spec/tagen/core/pa/state_spec.rb
|
98
107
|
- spec/tagen/core/string/pyformat_spec.rb
|
108
|
+
- spec/tagen/erb_spec.rb
|
109
|
+
- spec/tagen/yaml_spec.rb
|
99
110
|
- tagen.gemspec
|
100
111
|
- tagen.watchr
|
101
112
|
- version.rb
|